:root {
  color-scheme: light dark;
  --bg: #eaf4fc;
  --surface: #ffffff;
  --ink: #13355e;
  --muted: #3f5d85;
  --red: #c21f2c;
  --red-ink: #ffffff;
  --yellow: #f4be2c;
  --line: #c6dbef;
  --zalo: #0058d6;
  --wave: #13355e;
  --wave-ink: #eaf4fc;
  --radius: 14px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1e32;
    --surface: #132b45;
    --ink: #e4eef8;
    --muted: #a9bfd6;
    --red: #ff7d83;
    --red-ink: #2a0508;
    --line: #24456a;
    --zalo: #4c8dff;
    --wave: #071423;
    --wave-ink: #e4eef8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  padding-bottom: 4.75rem;
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 800; }
h2 { font-size: var(--step-2); color: var(--red); }
p { margin: 0; }
.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }

/* Top nav */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; }
.brand svg { width: 2.1rem; height: auto; }
.brand b { font-weight: 800; font-style: italic; color: var(--red); font-size: 1.1rem; letter-spacing: .01em; }
.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; font-size: var(--step--1); font-weight: 600; padding: .45rem .7rem; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.top .call-top { display: none; }
@media (min-width: 960px) {
  .top .call-top { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 800; border-radius: 999px; padding: .85rem 1.35rem; font-size: var(--step-0); line-height: 1.1; border: 2px solid transparent; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-call { background: var(--red); color: var(--red-ink); }
.btn-call:hover { filter: brightness(1.08); }
.btn-zalo { background: var(--surface); color: var(--zalo); border-color: var(--zalo); }
.btn-zalo:hover { background: var(--zalo); color: #fff; }
.btn-doc { background: var(--ink); color: var(--surface); }
.btn-doc:hover { filter: brightness(1.15); }
.btn-sm { padding: .5rem .95rem; font-size: var(--step--1); }

/* Hero */
.hero { padding-block: clamp(1.75rem, 1rem + 4vw, 4.5rem) clamp(2rem, 1rem + 4vw, 4rem); }
.hero .wrap { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.logo { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.logo svg { width: clamp(4rem, 3rem + 4vw, 5.5rem); height: auto; }
.logo .word { display: grid; line-height: 1; }
.logo .word b { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; font-style: italic; color: var(--red); letter-spacing: .01em; }
.logo .word span { font-size: clamp(.72rem, .65rem + .3vw, .9rem); font-weight: 600; letter-spacing: .32em; margin-top: .45rem; color: var(--ink); }
.hero h1 { font-size: var(--step-3); letter-spacing: -.015em; max-width: 16ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); margin-top: 1rem; max-width: 34ch; line-height: 1.45; }
/* Two labelled contact lines (clinic, doctor), each a Gọi + Zalo pair */
.lines { display: grid; gap: 1rem; margin-top: 1.75rem; max-width: 30rem; }
.line { display: grid; gap: .45rem; }
.who { font-size: var(--step--1); color: var(--muted); line-height: 1.35; }
.who b { color: var(--ink); font-size: var(--step-0); }
.who .num { display: block; font-weight: 800; color: var(--ink); font-size: var(--step-1); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pair .btn { min-height: 3rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: var(--step--1); font-weight: 600; }
.facts a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.status { display: inline-flex; align-items: center; gap: .45rem; }
.status::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.status[data-open='1']::before { background: #1f9d55; box-shadow: 0 0 0 3px color-mix(in srgb, #1f9d55 25%, transparent); }
.star { color: #b07800; }
@media (prefers-color-scheme: dark) { .star { color: var(--yellow); } }

figure { margin: 0; }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 28px 120px; background: var(--line); }
.photo figcaption { position: absolute; right: .75rem; bottom: .75rem; font-size: .75rem; background: rgb(0 0 0 / .55); color: #fff; padding: .2rem .55rem; border-radius: 999px; }

/* Sections */
section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.sec-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.sec-head p { color: var(--muted); margin-top: .6rem; }
.alt { background: var(--surface); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }
.services li { display: grid; grid-template-columns: 2.75rem 1fr; gap: .25rem .75rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.services .no { grid-row: span 3; font-weight: 800; color: var(--red); font-size: var(--step--1); padding-top: .2rem; }
.services h3 { font-size: var(--step-1); }
.services p { color: var(--muted); font-size: var(--step--1); }
.services a { font-size: var(--step--1); font-weight: 600; color: var(--red); text-underline-offset: 3px; width: fit-content; }

/* Price list — styled after the clinic's own poster: red banner per group */
.prices { columns: 1; column-gap: 2rem; }
@media (min-width: 860px) { .prices { columns: 2; } }
.pgroup { break-inside: avoid; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.alt .pgroup { background: var(--bg); }
.pgroup h3 { background: var(--red); color: var(--red-ink); font-size: var(--step-0); padding: .65rem 1rem; display: flex; gap: .6rem; }
.pgroup h3 span { opacity: .85; min-width: 2.2rem; }
.pgroup ul { list-style: none; margin: 0; padding: .35rem 1rem .6rem; }
.pgroup li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; padding-block: .5rem; border-bottom: 1px dashed var(--line); }
.pgroup li:last-child { border-bottom: 0; }
.pgroup .item { flex: 1 1 12rem; }
.pgroup .price { margin-left: auto; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { color: var(--muted); font-size: var(--step--1); margin-top: .5rem; }

/* About */
.about .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .about .wrap { grid-template-columns: .8fr 1.2fr; } }
.about .photo img { aspect-ratio: 4 / 5; border-radius: 120px 28px 28px 28px; }
.about-text { display: grid; gap: 1rem; max-width: 38rem; }
.about-text h2 { margin-bottom: .25rem; }

/* Hours & address */
.visit { display: grid; gap: 2rem; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1.2fr; } }
.hours { margin: 0; display: grid; gap: 1rem; }
.hours div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.hours dt { font-weight: 800; }
.hours dd { margin: .2rem 0 0; font-size: var(--step-1); font-weight: 600; }
.addr { margin-top: 1.5rem; font-style: normal; }
.addr p { font-weight: 600; font-size: var(--step-1); line-height: 1.4; max-width: 26ch; }
.addr .btn { margin-top: 1rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Contact + footer (navy wave echoes the poster's footer) */
.contact { background: var(--wave); color: var(--wave-ink); position: relative; padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem); margin-top: 2rem; }
.contact::before { content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: var(--wave);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 2 450 18s300 22 450 4S1100 4 1200 14v26z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 2 450 18s300 22 450 4S1100 4 1200 14v26z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.contact h2 { color: var(--wave-ink); font-size: var(--step-3); max-width: 18ch; }
.contact .lede { margin-top: .75rem; opacity: .85; max-width: 40ch; }
.contact .btn-zalo { background: transparent; color: var(--wave-ink); border-color: currentColor; }
.contact .btn-zalo:hover { background: var(--wave-ink); color: var(--wave); }
.contact .btn-call { background: #e0323f; color: #fff; }
.contact .btn-doc { background: var(--wave-ink); color: var(--wave); }
.contact .who, .contact .who b, .contact .who .num { color: var(--wave-ink); }
.contact .who { opacity: .9; }
.foot { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: var(--step--1); display: grid; gap: .5rem; opacity: .85; }
.foot a { text-underline-offset: 3px; }

/* Mobile sticky action bar */
.bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .45rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(19 53 94 / .12); }
.bar .btn { padding: .5rem .4rem; font-size: .95rem; gap: .4rem; min-height: 3.1rem; }
.bar .btn span { display: grid; line-height: 1.1; text-align: left; }
.bar .btn small { font-size: .7rem; font-weight: 600; opacity: .9; white-space: nowrap; }
@media (min-width: 760px) { .bar { display: none; } }
