@font-face { font-family: "Kanit"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/kanit-thai-300-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/kanit-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kanit-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kanit-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/kanit-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/kanit-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/kanit-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/kanit-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Layout idea: a clinic front desk you can see — real photos lead, a petrol utility bar and footer frame the page, green carries the brand, blue is only for actions, honey marks "open now". */
  --petrol: #234C53;
  --petrol-deep: #183A40;
  --green: #1F6B40;
  --green-deep: #154D2E;
  --green-tint: #E1F0E6;
  --mint: #CFEBDD;
  --cream: #FCFAF6;
  --cream-deep: #F3EEE3;
  --white: #FFFFFF;
  --blue: #2560A6;
  --blue-dark: #1C4C86;
  --blue-tint: #E7EFF8;
  --honey: #E8B54A;
  --ink: #1A2E32;
  --ink-soft: #4F6468;
  --line: #E3E6E2;
  --font-display: "Anuphan", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --radius: 16px;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; color: var(--green-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }

/* Utility bar + header */
.topbar { background: var(--green-deep); color: #D7E6E7; font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; }
.topbar .items { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #D7E6E7; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 15px; height: 15px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 2px 12px; }
.lang [aria-current="true"] { background: var(--white); color: var(--petrol); font-weight: 600; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: 46px; display: block; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--green-deep); }
.brand-name span { font-size: 0.82rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.nav-link { color: var(--ink); text-decoration: none; font-size: 0.96rem; font-weight: 500; }
.nav a.nav-link:hover { color: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary .icon { color: var(--honey); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-line { background: var(--white); color: var(--green-deep); border-color: var(--green); }
.btn-line:hover { background: var(--green-tint); }
.btn-light { background: var(--white); color: var(--petrol); }
.btn-light:hover { background: var(--mint); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

/* Hero */
.hero { background: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: -220px; bottom: -320px; width: 640px; height: 640px; border-radius: 50%; border: 110px solid var(--green-tint); border-right-color: transparent; transform: rotate(-30deg); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 64px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--green); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--green); }
.hero h1 em { font-style: normal; color: var(--blue); display: block; }
.hero .lead { margin-top: 20px; color: var(--ink-soft); font-size: 1.1rem; max-width: 33em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 25%; border-radius: 28px; display: block; }
.hero-card { position: absolute; left: -28px; bottom: -28px; background: var(--white); border-radius: 20px; padding: 18px 22px; box-shadow: 0 18px 40px rgba(24, 58, 64, .16); display: grid; gap: 6px; min-width: 260px; }
.hero-card small { color: var(--ink-soft); font-size: 0.85rem; }
.hero-card a { font-size: 0.9rem; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.98rem; color: var(--petrol); }
.status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(232, 181, 74, .25); }
.status.closed { color: var(--ink-soft); }
.status.closed .dot { background: #9AA7A9; box-shadow: none; }

/* Trust strip */
.trust { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust li { display: flex; gap: 14px; align-items: center; }
.trust .badge { width: 46px; height: 46px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.trust b { display: block; font-size: 0.98rem; color: var(--petrol); line-height: 1.35; }
.trust span { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; display: block; }

/* Sections */
section.block { padding: 88px 0; }
section.block + section.block:not(.steps-band) { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 40px; margin-bottom: 36px; }
.section-head .kicker { font-size: 0.9rem; font-weight: 600; color: var(--green); margin-bottom: 8px; display: block; }
.section-head p { color: var(--ink-soft); max-width: 34em; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.service:hover { border-color: var(--green); transform: translateY(-2px); }
.service .badge { width: 52px; height: 52px; border-radius: 16px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.service p { color: var(--ink-soft); font-size: 0.97rem; }
.service .note { font-size: 0.86rem; color: var(--ink-soft); }
.service .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.93rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.service .more:hover { text-decoration: underline; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; background: var(--cream-deep); }
.gallery .g-a { grid-column: span 2; grid-row: span 2; }
.gallery .g-b { grid-column: span 2; }

/* Schedule */
.schedule-band { background: var(--white); }
.schedule { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cal, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.schedule-band .cal { background: var(--cream); border-color: var(--cream-deep); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cal-head h3 { font-size: 1.3rem; }
.cal-head span { font-size: 0.85rem; color: var(--ink-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-grid .dow { font-size: 0.8rem; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.cal-grid .day { min-height: 62px; border-radius: 10px; border: 1px solid var(--line); padding: 6px 8px; font-size: 0.76rem; line-height: 1.3; display: flex; flex-direction: column; gap: 2px; background: var(--white); }
.cal-grid .day b { font-family: var(--font-display); font-size: 1rem; color: var(--petrol); }
.cal-grid .day span { overflow-wrap: anywhere; }
.cal-grid .day.open span { color: var(--green); }
.cal-grid .day.off { background: transparent; border-style: dashed; color: var(--ink-soft); }
.cal-grid .day.off b { color: var(--ink-soft); }
.cal-grid .day.holiday { background: var(--cream-deep); border-color: var(--cream-deep); color: var(--ink-soft); }
.cal-grid .day.is-today { outline: 2px solid var(--blue); outline-offset: -2px; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.86rem; color: var(--ink-soft); }
.legend li { display: flex; gap: 8px; align-items: center; }
.legend i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.legend .l-open { background: var(--white); }
.legend .l-off { border-style: dashed; }
.legend .l-hol { background: var(--cream-deep); border-color: var(--cream-deep); }
.side { display: grid; gap: 18px; }
.side h3 { margin-bottom: 4px; }
.hours { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px; background: var(--cream); border: 1px solid transparent; font-size: 0.95rem; }
.hours li span:first-child { font-weight: 500; color: var(--petrol); }
.hours li span:last-child { font-variant-numeric: tabular-nums; }
.hours li.off { background: transparent; border: 1px dashed var(--line); color: var(--ink-soft); }
.hours li.off span:first-child { color: var(--ink-soft); }
.hours li.is-today { background: var(--blue-tint); border-color: var(--blue); }
.hours li.is-today span:first-child::after { content: attr(data-today); margin-left: 8px; font-size: 0.72rem; font-weight: 600; color: var(--ink); background: var(--honey); padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.side .fine { font-size: 0.86rem; color: var(--ink-soft); margin-top: 10px; }
.closures { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 0.92rem; }

/* Steps */
.steps-band { background: var(--blue); color: #E3ECF7; }
.steps-band h2 { color: var(--white); }
.steps-band .section-head .kicker { color: var(--honey); }
.steps-band .section-head p { color: #D3E0F1; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--honey); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--honey); display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { color: var(--white); font-size: 1.1rem; }
.steps p { color: #D3E0F1; font-size: 0.94rem; margin-top: 8px; }

/* Doctor + payment */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.doctor { display: flex; gap: 22px; align-items: center; background: var(--green-tint); border-color: #C6E2CF; }
.doctor img { width: 84px; height: 84px; flex: none; background: var(--white); border-radius: 50%; padding: 12px; }
.doctor .role { font-size: 0.9rem; color: var(--green); font-weight: 600; }
.doctor h2 { font-size: 1.6rem; margin-top: 2px; }
.doctor .lic { margin-top: 6px; font-size: 0.93rem; color: var(--ink-soft); }
.checks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 2px; }
.mark.yes { background: var(--green-tint); color: var(--green); }
.mark.no { background: var(--cream-deep); color: var(--ink-soft); }
.mark.wait { background: var(--blue-tint); color: var(--blue-dark); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.contact dl { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; }
.contact dt { color: var(--ink-soft); font-size: 0.92rem; }
.contact dd { margin: 0; font-weight: 500; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mapcard { border-radius: var(--radius); background: var(--green-deep); color: var(--white); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.mapcard h3 { color: var(--white); font-size: 1.4rem; }
.mapcard p { color: #D8ECDF; }
.landmark { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.1); border-radius: 14px; padding: 16px; }
.landmark .icon { color: var(--honey); margin-top: 3px; }
.mapcard .btn { align-self: flex-start; margin-top: auto; }

/* Footer */
.site-footer { background: #103A22; color: #BFD6C6; padding: 44px 0 28px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand-name strong { color: var(--white); }
.site-footer .brand-name span { color: #BFD6C6; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.site-footer a { color: #E2EEE6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer nav, .site-footer address { display: grid; gap: 6px; font-style: normal; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 0.82rem; }

/* Mobile action bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .nav .nav-link { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 72px; }
  .hero-card { left: 16px; bottom: -24px; }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .schedule, .split, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .topbar .items span.hide-sm { display: none; }
  .brand-name span { display: none; }
  .brand img { height: 40px; width: 40px; }
  .site-header .btn { display: none; }
  .services, .steps, .trust ul { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 150px; }
  section.block { padding: 60px 0; }
  .cal-grid .day { min-height: 46px; padding: 4px; }
  .cal-grid .day span { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero .actions .btn { flex: 1 1 100%; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 48px; padding: 10px; }
}

/* ===== v3 additions ===== */
.hero-media img { object-position: center 45%; }

/* services: featured pair + private banner + small cards */
.svc-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-big { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc-big:hover { border-color: var(--green); box-shadow: 0 18px 40px rgba(20, 60, 40, .08); transform: translateY(-2px); }
.svc-big::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 34px solid var(--green-tint); border-left-color: transparent; }
.svc-big .badge { width: 58px; height: 58px; border-radius: 18px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; position: relative; z-index: 1; }
.svc-big h3 { font-size: 1.55rem; }
.svc-big p { color: var(--ink-soft); }
.svc-big ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc-big li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.svc-big li::before { content: "✓"; color: var(--green); font-weight: 700; }
.svc-big .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.svc-private { margin-top: 20px; background: var(--petrol); color: #DCE9EA; border-radius: 24px; padding: 32px 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.svc-private .badge { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.1); color: var(--honey); display: grid; place-items: center; }
.svc-private h3 { color: var(--white); font-size: 1.4rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.svc-private .tag { font-size: .75rem; font-weight: 700; color: #2A2210; background: var(--honey); padding: 2px 10px; border-radius: 999px; font-family: var(--font-body); }
.svc-private p { color: #C3D6D8; margin-top: 6px; }
.svc-private .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-private .btn-outline { color: var(--white); border-color: rgba(255,255,255,.45); background: transparent; }
.svc-private .btn-outline:hover { background: rgba(255,255,255,.1); }
.services.small { margin-top: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services.small .service { padding: 24px; }

/* doctor section */
.doc-sec { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: center; }
.doc-photo { aspect-ratio: 4 / 5; border-radius: 24px; border: 2px dashed #C9D8CE; background: var(--green-tint); display: grid; place-items: center; text-align: center; color: var(--green-deep); padding: 20px; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.doc-photo b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.doc-photo span { font-size: .85rem; color: var(--ink-soft); }
.doc-sec .role { color: var(--green); font-weight: 600; }
.doc-sec h2 { margin-top: 6px; }
.doc-sec .lic { margin-top: 8px; color: var(--ink-soft); }
.doc-sec .bio { margin-top: 20px; color: var(--ink-soft); max-width: 34em; }
.doc-facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-facts li { background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.doc-facts b { display: block; color: var(--green-deep); font-family: var(--font-display); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--green); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--green-deep); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* calendar collapse on mobile */
.cal-wrap > summary { display: none; }
@media (max-width: 600px) {
  .cal-wrap > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 600; color: var(--blue); padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .cal-wrap > summary::-webkit-details-marker { display: none; }
  .cal-wrap[open] > summary { margin-bottom: 12px; }
}

/* map + parking */
.mapframe { width: 100%; height: 100%; min-height: 260px; border: 0; border-radius: 14px; background: rgba(255,255,255,.12); }
.mapcard .rows { display: grid; gap: 10px; }

/* cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(20, 40, 44, .18); padding: 18px 20px; display: none; gap: 12px; font-size: .92rem; }
.consent.show { display: grid; }
.consent .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.consent button { font: inherit; cursor: pointer; }
.consent .btn { min-height: 42px; padding: 8px 18px; }
.btn-plain { background: var(--white); color: var(--ink); border-color: var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: #E2EEE6; text-decoration: underline; cursor: pointer; font: inherit; }

/* simple content pages */
.page-hero { background: var(--petrol); color: #DCE9EA; padding: 72px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { margin-top: 16px; max-width: 36em; color: #C3D6D8; font-size: 1.08rem; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.45); }
.page-hero .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: #2A2210; background: var(--honey); padding: 2px 12px; border-radius: 999px; margin-bottom: 16px; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.privacy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 960px) {
  .svc-feature, .doc-sec { grid-template-columns: 1fr; }
  .doc-sec .doc-photo { max-width: 320px; }
  .svc-private { grid-template-columns: 1fr; }
  .services.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services.small, .doc-facts { grid-template-columns: 1fr; }
  .svc-big { padding: 26px; }
  .consent { bottom: 84px; }
}
#schedule .schedule { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 960px) { #schedule .schedule { grid-template-columns: 1fr; } }

/* ===== v4: green trust strip, decorations kept clear of text ===== */
.trust { background: var(--green); border-color: var(--green); }
.trust .badge { background: rgba(255,255,255,.14); color: var(--white); }
.trust b { color: var(--white); }
.trust span { color: #D3E9DA; }
.hero::before { left: auto; right: -260px; bottom: auto; top: -260px; width: 560px; height: 560px; border-width: 90px; }
.hero .wrap { z-index: 1; }
.svc-big::after { right: -70px; top: -70px; width: 150px; height: 150px; border-width: 28px; z-index: 0; }
.svc-big > * { position: relative; z-index: 1; }
.svc-big h3, .svc-big p { padding-right: 56px; }
@media (max-width: 960px) { .hero::before { display: none; } }

/* ===== v5: softer green and blue, tinted small service cards ===== */
:root {
  --green: #3B7D5B; --green-deep: #275C43; --green-tint: #E6F1EA;
  --blue: #3E6FA6; --blue-dark: #305A8A; --blue-tint: #ECF2F8;
}
.btn-primary { box-shadow: 0 6px 16px rgba(62, 111, 166, .22); }
.site-footer { background: #1F4A36; }
.services.small .service { border: 0; background: var(--green-tint); }
.services.small .service:nth-child(even) { background: var(--blue-tint); }
.services.small .service .badge { background: var(--white); }
.services.small .service:nth-child(even) .badge { color: var(--blue); }
.services.small .service:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(39, 92, 67, .1); }
.services.small .service h3 { color: var(--green-deep); }
.services.small .service p { color: #4D625B; }
.services.small .service h3 { text-wrap: pretty; }

/* ===== v6: softer overall, gentle "poem" gradients ===== */
:root {
  --green: #438262; --green-deep: #2F6B4F; --green-tint: #EAF4EE;
  --blue: #46739F; --blue-dark: #3D6A96; --blue-tint: #EEF3F9;
  --line: #E8EDEA; --ink: #22363A; --ink-soft: #586D70;
  --grad-hero: radial-gradient(60% 70% at 8% 10%, #D9EEE1 0%, rgba(217,238,225,0) 72%),
               radial-gradient(55% 65% at 95% 20%, #DAE6F5 0%, rgba(218,230,245,0) 72%),
               radial-gradient(45% 50% at 60% 100%, #FAF0D9 0%, rgba(250,240,217,0) 72%),
               #FFFFFF;
}
body { color: var(--ink); }
.topbar { background: linear-gradient(90deg, #2F6B4F 0%, #3E7A6E 55%, #46739F 100%); }
.site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom-color: rgba(232,237,234,.8); }

/* Hero: soft mesh wash instead of the ring */
.hero { background: var(--grad-hero); }
.hero::before { display: none; }
.hero-card { box-shadow: 0 18px 44px rgba(47, 107, 79, .12); }
.hero-media img { box-shadow: 0 24px 60px rgba(47, 107, 79, .14); }

/* Trust strip: green that drifts into teal */
.trust { background: linear-gradient(100deg, #438262 0%, #3E7A6E 60%, #46739F 100%); border: 0; }
.trust .badge { background: rgba(255,255,255,.16); }

/* Sections breathe on soft washes, no hard dividers */
section.block + section.block:not(.steps-band) { border-top: 0; }
#services { background: linear-gradient(180deg, #FFFFFF 0%, #F3F9F5 100%); }
#clinic { background: #FFFFFF; }
.schedule-band { background: linear-gradient(180deg, #F5F8FC 0%, #FFFFFF 100%); }
#faq { background: linear-gradient(180deg, #FFFFFF 0%, #F6FAF7 100%); }
#contact { background: radial-gradient(60% 80% at 100% 0%, #EAF2F9 0%, rgba(234,242,249,0) 70%), radial-gradient(50% 70% at 0% 100%, #EAF4EE 0%, rgba(234,244,238,0) 70%), #FFFFFF; }

/* Cards: lighter borders, airy shadows */
.service, .svc-big, .faq details, .cal, .panel { border-color: var(--line); }
.svc-big { background: linear-gradient(160deg, #FFFFFF 0%, #F7FBF8 100%); box-shadow: 0 10px 30px rgba(47, 107, 79, .06); }
.svc-big:nth-child(2) { background: linear-gradient(160deg, #FFFFFF 0%, #F5F8FC 100%); }
.svc-big:nth-child(2) .badge { background: var(--blue-tint); color: var(--blue); }
.svc-big:nth-child(2)::after { border-color: var(--blue-tint); border-left-color: transparent; }
.services.small .service { background: linear-gradient(160deg, #EAF4EE 0%, #F6FAF7 100%); }
.services.small .service:nth-child(even) { background: linear-gradient(160deg, #EEF3F9 0%, #F7F9FC 100%); }
.services.small .service:hover { box-shadow: 0 14px 30px rgba(47, 107, 79, .08); }
.schedule-band .cal { background: #FFFFFF; border-color: var(--line); box-shadow: 0 10px 30px rgba(70, 115, 159, .06); }
.hours li { background: #F5F8F6; }
.faq details { box-shadow: 0 4px 14px rgba(47, 107, 79, .04); }

/* Private-service banner, steps, map, footer: deep gradients that stay readable */
.svc-private { background: linear-gradient(110deg, #335F55 0%, #36646A 50%, #3D6A96 100%); }
.steps-band { background: linear-gradient(120deg, #46739F 0%, #3F7487 50%, #3E7A6E 100%); }
.steps li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.mapcard { background: linear-gradient(160deg, #2F6B4F 0%, #335F55 100%); }
.site-footer { background: linear-gradient(180deg, #2C5C4C 0%, #274F45 100%); }
.page-hero { background: linear-gradient(120deg, #335F55 0%, #3D6A96 100%); }

/* Buttons: softer weight */
.btn-primary { background: linear-gradient(180deg, #4B78A4 0%, #46739F 100%); box-shadow: 0 6px 18px rgba(70, 115, 159, .2); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-line { border-color: #A9CDB8; }

/* ===== v7: Kanit as the single typeface, tuned for easy reading ===== */
:root { --font-display: "Kanit", "Noto Sans Thai", system-ui, sans-serif; --font-body: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --grad-brand: linear-gradient(90deg, #438262 0%, #3E7A6E 50%, #46739F 100%); }
body { font-family: var(--font-body); font-weight: 300; font-size: 16.5px; line-height: 1.75; color: #1F3236; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.3; }
h1 { font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.25; }
h2 { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-weight: 500; font-size: 1.15rem; }
b, strong { font-weight: 500; }
.brand-name strong { font-weight: 500; font-size: 1.12rem; }
.brand-name span, .topbar { font-weight: 300; }
.nav a.nav-link { font-weight: 400; font-size: .95rem; }
.btn { font-weight: 500; letter-spacing: .01em; }
.eyebrow, .section-head .kicker, .hero-card a, .status, .service .more, .doc-sec .role { font-weight: 500; }
.hero .lead { font-size: 1.06rem; }
.trust b { font-weight: 500; font-size: .96rem; }
.trust span, .service p, .svc-big p, .steps p { font-weight: 300; }
.svc-big h3 { font-size: 1.45rem; }
.svc-big li { font-weight: 400; font-size: .96rem; }
.svc-big li::before, .mark { font-weight: 500; }
.svc-private h3, .mapcard h3 { font-size: 1.32rem; }
.hours li span:first-child, .contact dd { font-weight: 400; }
.cal-grid .day b { font-weight: 500; }
.steps li::before { font-weight: 600; }
.steps h3 { font-size: 1.08rem; }
.faq summary { font-weight: 500; }
.faq details p, .faq details div { font-weight: 300; }
.site-footer h3 { font-weight: 500; }
.hours li.is-today span:first-child::after, .svc-private .tag, .page-hero .tag { font-weight: 500; }
@media (max-width: 600px) { body { font-size: 16px; } h1 { font-size: 2rem; } }

/* ===== v7: a few more gradient touches, kept light ===== */
/* signature: short brand-gradient stroke under each section heading */
.section-head h2::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 4px; margin-top: 14px; background: var(--grad-brand); }
.steps-band .section-head h2::after { background: linear-gradient(90deg, #E8B54A, rgba(255,255,255,.7)); }
.eyebrow::before { background: var(--grad-brand); }
/* hero second line: green into blue */
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #3D6A96 0%, #3E7A6E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
/* icon tiles pick up a soft wash */
.svc-big .badge, .service .badge { background: linear-gradient(145deg, #DDEFE4 0%, #EEF3F9 100%); }
.svc-big:nth-child(2) .badge { background: linear-gradient(145deg, #E1EBF7 0%, #EAF4EE 100%); }
/* today's row and open FAQ item */
.hours li.is-today { background: linear-gradient(90deg, #E6EEF8 0%, #F1F6FB 100%); }
.faq details[open] { border-color: transparent; box-shadow: 0 10px 28px rgba(47,107,79,.08), inset 3px 0 0 #438262; }
/* gallery gets a quiet side wash */
#clinic { background: radial-gradient(45% 60% at 100% 30%, #EEF3F9 0%, rgba(238,243,249,0) 70%), #FFFFFF; }
/* footer opens with a thin brand line */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #438262, #46739F 60%, #E8B54A); }
/* small text never drops to the light weight */
.topbar, .brand-name span, .trust span, .hero-card small, .legend, .side .fine, .cal-grid .day, .cal-grid .dow, .cal-head span, .service .note, .contact dt, .site-footer, .site-footer .legal, .closures { font-weight: 400; }
/* first trust item carries the doctor's name: give it a little more room */
@media (min-width: 961px) { .trust ul { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }

/* ===== v8: gallery — storefront shown whole (6:5) beside reception, then a row of five; all interiors cropped 4:5 ===== */
.gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: 14px; }
.gallery img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 26px rgba(47, 107, 79, .08); }
.gallery .g-wide { grid-column: span 3; aspect-ratio: auto; height: 100%; contain: size; }
.gallery .g-pair { grid-column: span 2; }
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .gallery .g-wide { grid-column: span 2; aspect-ratio: 1440 / 1200; height: auto; contain: none; }
  .gallery .g-pair { grid-column: span 1; }
}
@media (max-width: 600px) { .gallery { grid-auto-rows: auto; gap: 10px; } }
.hero-media img { object-position: center center; }

/* ===== v9: sexual-health service cards ===== */
.services.sh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sh-cards .service { border: 0; border-radius: 22px; padding: 30px; gap: 12px; box-shadow: 0 10px 28px rgba(47, 107, 79, .06); transition: transform .2s, box-shadow .2s; }
.sh-cards .service:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 107, 79, .1); }
.sh-cards .service:nth-child(1) { background: linear-gradient(150deg, #E4F2E9 0%, #F6FAF7 100%); }
.sh-cards .service:nth-child(2) { background: linear-gradient(150deg, #E6EEF8 0%, #F7F9FC 100%); }
.sh-cards .service:nth-child(4) { background: linear-gradient(150deg, #E2F0EE 0%, #F5F9F9 100%); }
.sh-cards .service .badge { background: var(--white); box-shadow: 0 4px 12px rgba(47, 107, 79, .08); }
.sh-cards .service:nth-child(2) .badge { color: var(--blue); }
.sh-cards .service:nth-child(4) .badge { color: #3E7A6E; }
.sh-cards .service h3 { font-size: 1.22rem; color: var(--green-deep); }
.sh-cards .service p { color: #4D625B; }
.sh-cards .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
/* PEP: the 72-hour window is the message */
.sh-cards .service.is-urgent { background: linear-gradient(150deg, #FBF1DC 0%, #FFF9EE 100%); box-shadow: 0 12px 30px rgba(198, 140, 30, .12), inset 0 0 0 1px #F1DDB0; }
.sh-cards .service.is-urgent .badge { color: #A8730F; }
.sh-cards .service.is-urgent strong { color: #8A5A00; font-weight: 600; background: linear-gradient(transparent 62%, rgba(232, 181, 74, .45) 62%); padding: 0 2px; }
.hl-hours { display: grid; justify-items: center; line-height: 1; padding: 10px 16px 12px; border-radius: 18px; background: linear-gradient(160deg, #E8B54A 0%, #D99A2B 100%); color: #3A2600; box-shadow: 0 8px 20px rgba(217, 154, 43, .28); }
.hl-hours small { font-size: .72rem; font-weight: 500; margin-bottom: 4px; }
.hl-hours b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -.01em; }
.hl-hours span { font-size: .82rem; font-weight: 500; margin-top: 4px; }
@media (max-width: 760px) { .services.sh-cards { grid-template-columns: 1fr; } }

/* ===== v10: mobile call/LINE as floating pills (bottom-right).
   They sit right at the bottom edge; when Netlify's badge is present (html.has-host-badge)
   they rise above it, and drop back down automatically once the badge is gone. ===== */
@media (max-width: 600px) {
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  html.has-host-badge .site-footer { padding-bottom: calc(214px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    --fab-base: calc(14px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    position: fixed; left: auto; right: 14px; bottom: var(--fab-base); z-index: 40;
    padding: 0; background: none; border: 0; box-shadow: none; pointer-events: none;
    transition: bottom .25s ease;
  }
  html.has-host-badge .mobile-bar { bottom: calc(var(--fab-base) + 60px); }
  .mobile-bar .btn {
    pointer-events: auto; min-height: 52px; height: 52px; padding: 0 20px 0 16px; gap: 8px;
    border-radius: 999px; font-size: 1rem; width: auto;
    box-shadow: 0 10px 26px rgba(31, 74, 54, .25);
  }
  .mobile-bar .btn-line { background: var(--white); color: var(--green-deep); border: 1.5px solid #A9CDB8; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* v11: sexual-health page with 5 cards — last odd card spans the row */
.sh-cards .service:last-child:nth-child(odd) { grid-column: 1 / -1; background: linear-gradient(150deg, #EEF3EC 0%, #F8FAF7 100%); }
.sh-cards .service:nth-child(5) .badge { color: var(--green); }
