/* ==========================================================================
   I Plastic Surgery & Reconstructive Surgery Clinic — Kuching
   Global stylesheet
   ========================================================================== */

:root {
  /* Brand palette — drawn from the clinic's blue + gold identity */
  --navy-deep: #072433;
  --navy: #0e3b52;
  --navy-dark: #082a3c;
  --blue: #17607f;
  --blue-soft: #e8f1f5;
  --gold: #c9a961;
  --gold-dark: #a8873f;
  --gold-soft: #f6efe0;

  --ink: #1c2b33;
  --body: #46606e;
  --muted: #6f8794;
  --line: #e2e9ee;
  --paper: #ffffff;
  --cream: #fbfaf7;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 59, 82, .07), 0 8px 24px rgba(14, 59, 82, .05);
  --shadow-md: 0 4px 12px rgba(14, 59, 82, .09), 0 20px 48px rgba(14, 59, 82, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.15em; padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- Layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow { max-width: 820px; }

section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* --------------------------------------------------- Section headings -- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .9em;
  display: block;
}

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--body); }

.rule {
  width: 54px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 26px;
}
.section-head--center .rule { margin-inline: auto; }

/* ------------------------------------------------------------ Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: .89rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: #fff; }

.btn--sm { padding: 11px 20px; font-size: .78rem; }
.btn--full { width: 100%; }

/* ------------------------------------------------------------- Header -- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .82);
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  padding-block: 7px;
}
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--gold); }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { flex: none; opacity: .75; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 20px rgba(14, 59, 82, .09); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

/* Wordmark — allowed to shrink so it never pushes the menu button off-screen
   on narrow phones (320px and similar) */
.brand { display: flex; align-items: center; gap: 13px; flex: 0 1 auto; min-width: 0; }
.brand > span { min-width: 0; }
.brand:hover { color: inherit; }
/* Clinic mark, traced from the Premier 101 shopfront signage */
.brand__mark {
  height: 44px;
  width: auto;
  flex: none;
  display: block;
}

.footer-brand__logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: .01em;
  display: block;
}
.brand__sub {
  font-size: .655rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .87rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: var(--radius);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.header-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 19px; height: 1.6px;
  background: var(--navy);
  position: relative;
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 1.6px;
  background: var(--navy);
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  background: linear-gradient(150deg, #0b3345 0%, #10485f 45%, #17607f 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(80px, 11vw, 148px) 0 clamp(72px, 10vw, 130px);
}
.hero__arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}
.hero__glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -280px;
  background: radial-gradient(circle, rgba(201, 169, 97, .2) 0%, transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 780px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: .38em; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero__zh {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, .72);
  letter-spacing: .22em;
  margin-bottom: 1.2em;
}
.hero__lede {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: rgba(255, 255, 255, .87);
  max-width: 610px;
  margin-bottom: 2.2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: clamp(44px, 6vw, 66px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .17);
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .03em;
}
.hero__badge svg { flex: none; color: var(--gold); }

/* Page banner (interior pages) */
.page-hero {
  background: linear-gradient(150deg, #0b3345 0%, #10485f 55%, #17607f 100%);
  color: #fff;
  padding: clamp(58px, 7vw, 96px) 0 clamp(52px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}
.page-hero__arcs { position: absolute; inset: 0; opacity: .42; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .84); max-width: 640px; font-size: 1.04rem; }
.page-hero .eyebrow { color: var(--gold); }

.crumbs {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.crumbs a { color: rgba(255, 255, 255, .82); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* --------------------------------------------------------------- Grid -- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------- Card -- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201, 169, 97, .5); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; }

.card__icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex: none;
}

.card__link {
  margin-top: auto;
  padding-top: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card__link:hover { color: var(--gold-dark); gap: 12px; }
.card__link svg { transition: transform .25s var(--ease); }

/* Service list inside a card */
.card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: .95rem;
  columns: 1;
}
.card__list li {
  position: relative;
  padding: 5px 0 5px 20px;
  color: var(--body);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 7px; height: 7px;
  border-top: 1.4px solid var(--gold);
  border-right: 1.4px solid var(--gold);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------- Split -- */
.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-md);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.portrait-frame {
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  border-radius: var(--radius-lg);
  padding: 22px 22px 0;
  box-shadow: var(--shadow-md);
}
.portrait-frame img { border-radius: 6px; box-shadow: none; }

/* Credential list */
.creds { list-style: none; padding: 0; margin: 26px 0 0; }
.creds li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .97rem;
}
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds svg { flex: none; color: var(--gold-dark); margin-top: 5px; }
.creds strong { color: var(--navy); font-weight: 600; }

/* ------------------------------------------------------------- Stats -- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--paper); padding: 34px 24px; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat__num span { color: var(--gold); }
.stat__label {
  font-size: .79rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 11px;
  display: block;
}

/* ---------------------------------------------------------- Hospitals -- */
.hospitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.hospital {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hospital strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; }
.hospital span { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------- Steps -- */
.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .55;
  line-height: 1;
}
.step h3 { font-size: 1.22rem; }
.step p { font-size: .96rem; margin: 0; }

/* --------------------------------------------------------------- CTA -- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 50%, var(--blue) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band__arcs { position: absolute; inset: 0; opacity: .38; pointer-events: none; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 560px; margin-inline: auto; font-size: 1.04rem; }
.cta-band .hero__actions { justify-content: center; margin-top: 34px; }
.cta-band .rule { margin-inline: auto; background: var(--gold); }

/* ------------------------------------------------------ Services page -- */
.svc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.svc-nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--navy);
  background: #fff;
}
.svc-nav a:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--navy); }

.svc-block { padding: clamp(46px, 5vw, 68px) 0; border-top: 1px solid var(--line); }
.svc-block:first-of-type { border-top: 0; }
.svc-block__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
}
.svc-block h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
.svc-block__intro { font-size: .99rem; }

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 10px;
  align-content: start;
}
.chip-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px 13px 40px;
  font-size: .94rem;
  color: var(--ink);
  position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.chip-list li:hover { border-color: var(--gold); transform: translateX(3px); }
.chip-list li::before {
  content: "";
  position: absolute;
  left: 17px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -4px;
  border-top: 1.5px solid var(--gold-dark);
  border-right: 1.5px solid var(--gold-dark);
  transform: rotate(45deg);
}

/* ----------------------------------------------------------- Contact -- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(34px, 5vw, 62px);
  align-items: start;
}

.info-block { margin-bottom: 30px; }
.info-block h3 { font-size: 1.18rem; margin-bottom: .4em; }
.info-block p { font-size: .99rem; margin: 0; }
.info-block a { font-weight: 500; }

.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink); }
.hours td { text-align: right; color: var(--body); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted); }

.map-embed {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Booking panel — WhatsApp / phone / email, no form */
.book-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  position: sticky;
  top: 100px;
}

.btn--wa { background: #25d366; border-color: #25d366; color: #06301a; }
.btn--wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.contact-actions { display: grid; gap: 12px; margin: 26px 0 0; }

/* Numbered "how it works" list inside the booking panel */
.book-steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: bs; }
.book-steps li {
  position: relative;
  padding: 0 0 16px 40px;
  font-size: .94rem;
  line-height: 1.65;
}
.book-steps li:last-child { padding-bottom: 0; }
.book-steps li::before {
  counter-increment: bs;
  content: counter(bs);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.book-note { font-size: .84rem; color: var(--muted); margin-top: 22px; }

/* Surgeon byline inside the booking panel */
.surgeon-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.surgeon-chip img {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.surgeon-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}
.surgeon-chip span { font-size: .81rem; color: var(--muted); line-height: 1.45; display: block; }

/* Captioned photo */
.figure { margin: 0; }
.figure img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-sm); }
.figure figcaption {
  font-size: .86rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 32px;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--gold-dark);
  border-bottom: 1.6px solid var(--gold-dark);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq details p { padding: 0 20px 24px 0; font-size: .99rem; margin: 0 0 .9em; }
.faq details p:last-child { margin-bottom: 0; padding-bottom: 26px; }

/* ------------------------------------------------------------ Notice -- */
.notice {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .92rem;
  color: var(--body);
}
.notice strong { color: var(--navy); }

/* ------------------------------------------------------------ Footer -- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
  padding: clamp(56px, 6vw, 78px) 0 0;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }

.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, .5); }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: .89rem; line-height: 1.7; }
.footer-zh { font-family: var(--font-display); letter-spacing: .12em; color: rgba(255,255,255,.55); font-size: .95rem; margin-top: 6px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-disclaimer {
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .42);
  padding-bottom: 30px;
  max-width: 900px;
}

/* --------------------------------------------------- Floating WhatsApp -- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ------------------------------------------------------- Reveal anim -- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- Responsive -- */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .site-header .wrap { min-height: 68px; }

  .nav-toggle { display: grid; }

  /* Mobile menu: a panel anchored to the bottom edge of the header that sizes
     itself to its content — no fixed top padding, and no scrolling unless the
     viewport is genuinely too short. --header-bottom is set by main.js to the
     header's real height, so the panel never guesses. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 20px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(14, 59, 82, .15);
    max-height: calc(100vh - var(--header-bottom, 110px) - 16px);
    max-height: calc(100dvh - var(--header-bottom, 110px) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  /* :not(.btn) so the gold CTA keeps its own border */
  .nav a:not(.btn) {
    padding: 15px 2px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }

  .header-cta { margin: 18px 0 0; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split, .svc-block__grid, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media::after { display: none; }
  .book-panel { position: static; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .site-header .wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand__mark { height: 38px; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .12em; }
  .card { padding: 28px 24px; }
  .chip-list { grid-template-columns: 1fr; }
  /* The mobile menu spans the full header width, so match the tighter gutter */
  .nav { padding-inline: 18px; }
}

/* -------------------------------------------------------------- Print -- */
@media print {
  .site-header, .topbar, .wa-float, .cta-band, .site-footer { display: none; }
  body { color: #000; font-size: 12pt; }
  .hero, .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .hero h1, .page-hero h1 { color: #000; }
}
