/* Dr Thái ENT — design: Navy + Ivory + deep Teal + a touch of warm Gold (ChatGPT design brief) */
:root {
  --navy: #0D2B3E;
  --navy-2: #133A52;
  --teal: #0F5C5E;
  --teal-2: #0B4A4C;
  --sage: #6FA9A3;
  --ivory: #F8F7F3;
  --white: #FFFFFF;
  --gold: #B99A62;
  --ink: #263238;
  --muted: #5B6B70;
  --line: #E7ECEC;
  --shadow: 0 12px 40px rgba(13, 43, 62, .08);
  --shadow-lg: 0 24px 60px rgba(13, 43, 62, .14);
  --r-card: 16px;
  --r-img: 24px;
  --serif: "Lora", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 11px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { color: var(--navy); border-color: rgba(13, 43, 62, .2); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--ivory); transform: translateY(-2px); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 243, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(13, 43, 62, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 19px; color: var(--navy); letter-spacing: .04em; }
.brand__text small { font-size: 12px; color: var(--muted); }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .6); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(111, 169, 163, .18), transparent); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 4.6vw, 56px); letter-spacing: -.01em; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--teal); }
.hero__slogan { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--navy); border-left: 2px solid var(--gold); padding-left: 16px; margin: 24px 0; }
.hero__desc { color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: var(--navy); font-weight: 500; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__media { position: relative; }
.hero__frame { border-radius: 200px 200px var(--r-img) var(--r-img); overflow: hidden; background: linear-gradient(180deg, #E9EFEE, #F3F1EA); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.badge-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 20px; }
.badge-float--years { left: -40px; bottom: 60px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(185, 154, 98, .35); }
.badge-float__num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.badge-float__num sup { font-size: 22px; }
.badge-float__label { font-size: 13px; line-height: 1.4; color: var(--navy); font-weight: 600; }
.badge-float--hours { right: -24px; top: 48px; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.badge-float--hours small { font-weight: 400; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2BA36B; margin-right: 6px; box-shadow: 0 0 0 4px rgba(43, 163, 107, .15); }

/* Trust bar */
.trustbar { background: var(--navy); color: #fff; padding: 28px 0; }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.3; }
.trust-item span { display: flex; flex-direction: column; font-size: 13px; color: rgba(255, 255, 255, .65); line-height: 1.4; }
.trust-item strong { color: #fff; font-size: 15px; font-weight: 600; }

/* Sections */
.section { padding: 112px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head .eyebrow { justify-content: center; }
.section__head p:last-child { color: var(--muted); }
.section__head--light h2 { color: #fff; }
.lead { font-size: 18px; color: var(--muted); }

/* Doctor */
.doctor { background: #fff; }
.doctor__grid { display: grid; grid-template-columns: 45fr 55fr; gap: 72px; align-items: center; }
.doctor__media { position: relative; padding-bottom: 60px; }
.doctor__main { border-radius: var(--r-img); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 88%; }
.doctor__cv { position: absolute; right: 0; bottom: 0; width: 42%; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .3s; }
.doctor__cv:hover { transform: translateY(-4px); }
.doctor__cv img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.doctor__cv span { display: block; font-size: 13px; font-weight: 600; color: var(--teal); text-align: center; padding: 8px 0 2px; }
.doctor h2 { font-size: clamp(32px, 3.6vw, 44px); }
.timeline { list-style: none; padding: 0; margin: 28px 0 36px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 26px; font-size: 15.5px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline span { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats div { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.stats strong { display: block; font-family: var(--serif); font-size: 34px; color: var(--navy); line-height: 1.1; }
.stats strong sup { font-size: 18px; color: var(--gold); }
.stats span { font-size: 13.5px; color: var(--muted); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(15, 92, 94, .08); color: var(--teal); display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Why */
.why { background: #fff; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.usp { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 26px; }
.usp li { display: flex; gap: 20px; }
.usp__num { font-family: var(--serif); font-size: 20px; color: var(--gold); font-weight: 600; min-width: 34px; padding-top: 2px; }
.usp h3 { font-size: 19px; margin-bottom: 4px; }
.usp p { color: var(--muted); font-size: 15.5px; margin: 0; }
.why__collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.why__collage img { border-radius: var(--r-card); width: 100%; height: 100%; object-fit: cover; }
.why__collage .c1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.why__collage .c2 { aspect-ratio: 1; }
.why__collage .c3 { background: var(--navy); color: #fff; border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.why__collage .c3 strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.45; }
.why__collage .c3 span { font-size: 13px; color: var(--gold); letter-spacing: .06em; }

/* Family */
.family { background: var(--navy); background-image: radial-gradient(circle at 15% 0%, rgba(111, 169, 163, .18), transparent 50%), radial-gradient(circle at 90% 100%, rgba(185, 154, 98, .12), transparent 45%); }
.family .eyebrow { color: var(--sage); }
.family__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.fcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 40px; color: rgba(255, 255, 255, .8); transition: background .3s; }
.fcard:hover { background: rgba(255, 255, 255, .08); }
.fcard h3 { color: #fff; font-size: 26px; }
.fcard__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(185, 154, 98, .5); border-radius: 30px; padding: 4px 14px; margin-bottom: 18px; }
.fcard__note { font-size: 15px; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; margin: 16px 0 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, var(--gold), var(--sage)); opacity: .6; }
.steps li { text-align: center; position: relative; padding: 0 8px; }
.steps span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 1px solid var(--gold); font-family: var(--serif); font-weight: 600; color: var(--navy); box-shadow: var(--shadow); position: relative; }
.steps p { color: var(--muted); font-size: 15px; }

/* Reviews */
.reviews { background: #fff; }
.section__head .stars { color: var(--gold); font-size: 22px; letter-spacing: 4px; }
.review-shots { columns: 3; column-gap: 24px; margin-bottom: 40px; }
.review-shots img { width: 100%; break-inside: avoid; margin-bottom: 24px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .review-shots { columns: 2; column-gap: 16px; } .review-shots img { margin-bottom: 16px; } }
@media (max-width: 600px) { .review-shots { columns: 1; } }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--ivory); border-radius: var(--r-card); padding: 32px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.quote::before { content: "“"; font-family: var(--serif); font-size: 72px; line-height: .6; color: var(--gold); opacity: .6; display: block; height: 30px; }
.quote blockquote { margin: 0 0 20px; font-size: 16px; color: var(--ink); }
.quote figcaption { font-size: 14px; font-weight: 600; color: var(--navy); }
.quote figcaption::before { content: "★★★★★  "; color: var(--gold); letter-spacing: 1px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--teal-2), var(--teal) 55%, #2E7C79); color: #fff; padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); max-width: 680px; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta__btns { display: flex; gap: 14px; flex-shrink: 0; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
.info { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 20px; }
.info li { display: flex; gap: 16px; }
.info svg { color: var(--teal); margin-top: 3px; }
.info strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info a { color: var(--navy); font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--teal); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__map { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.footer nav a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 10px; }
.footer__slogan { font-family: var(--serif); font-style: italic; margin-top: 20px !important; max-width: 360px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Mobile sticky bar */
.mbar { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 14px; }
  .hero__grid, .doctor__grid, .why__grid { gap: 48px; }
  .badge-float--years { left: -16px; }
  .badge-float--hours { right: -8px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); padding: 8px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__cta { margin-top: 16px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 64px; }
  .hero__grid, .doctor__grid, .why__grid, .contact__grid, .family__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px; box-shadow: 0 -6px 24px rgba(13, 43, 62, .12); }
  .mbar a { display: grid; place-items: center; font-weight: 600; text-decoration: none; font-size: 15px; }
  .mbar__call { background: #fff; color: var(--navy); }
  .mbar__book { background: var(--teal); color: #fff; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header__inner { height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .brand img { width: 42px; height: 42px; }
  .brand__text strong { font-size: 17px; }
  .hero h1 { font-size: 34px; }
  .hero__ctas .btn { width: 100%; }
  .badge-float--years { left: 8px; bottom: 16px; padding: 12px 14px; }
  .badge-float__num { font-size: 34px; }
  .badge-float--hours { right: 8px; top: 16px; font-size: 12.5px; padding: 10px 14px; }
  .trustbar__grid, .cards, .quotes, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats div { padding: 14px 10px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 12px; }
  .card, .quote { padding: 26px; }
  .fcard { padding: 28px; }
  .why__collage .c3 { grid-column: 1 / -1; }
  .why__collage .c2 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .cta__btns { flex-direction: column; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__map, .contact__map iframe { min-height: 320px; }
}
