/* =========================================================
   คลินิกแพทย์พลชัย จันทบุรี — Stylesheet
   Theme: Modern Orange & White
   ========================================================= */

:root {
  --orange: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;
  --orange-400: #FB923C;
  --orange-50: #FFF7ED;
  --orange-100: #FFEDD5;

  --ink: #1F2430;
  --ink-soft: #4B5563;
  --muted: #8A93A2;
  --line: #EFE7DF;
  --bg: #FFFFFF;
  --bg-soft: #FFFBF7;

  --shadow-sm: 0 2px 8px rgba(234, 88, 12, .06);
  --shadow: 0 14px 40px rgba(234, 88, 12, .12);
  --shadow-lg: 0 30px 70px rgba(234, 88, 12, .18);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;

  --font-head: 'Prompt', 'Sarabun', system-ui, sans-serif;
  --font-body: 'Sarabun', 'Prompt', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.3px; }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.muted { color: var(--muted); font-size: .85em; font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: .22s ease; white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: #fff; box-shadow: 0 10px 26px rgba(234, 88, 12, .32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(234, 88, 12, .42); }
.btn--ghost { background: #fff; color: var(--orange-600); border-color: var(--orange-100); }
.btn--ghost:hover { border-color: var(--orange); background: var(--orange-50); transform: translateY(-3px); }
.btn--white { background: #fff; color: var(--orange-600); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Eyebrow / heads ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange-600); background: var(--orange-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__sub { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--orange-700), var(--orange-600));
  color: #fff; font-size: .84rem;
}
.topbar__inner { display: flex; align-items: center; gap: 22px; padding: 9px 22px; }
.topbar__item { display: flex; align-items: center; gap: 7px; opacity: .95; }
.topbar__item svg { flex-shrink: 0; }
.topbar__phone { transition: opacity .2s; font-weight: 600; }
.topbar__phone:hover { opacity: .8; text-decoration: underline; }
.topbar__hours { margin-left: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(234,88,12,.09); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; padding: 12px 22px; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: auto; height: 58px; flex-shrink: 0; object-fit: contain; }
.brand__logo--footer {
  height: 54px; background: #fff; border-radius: 12px; padding: 5px 8px;
}
.brand__mark {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 8px 18px rgba(234,88,12,.32);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.brand__text small { font-size: .74rem; color: var(--muted); }

.header__navrow { border-top: 1px solid var(--line); background: rgba(255,247,237,.5); }
.nav { display: flex; justify-content: center; gap: 6px; padding: 7px 0; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; white-space: nowrap;
  padding: 9px 18px; border-radius: 10px; color: var(--ink-soft); transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--orange-600); background: #fff; box-shadow: var(--shadow-sm); }
.header__cta { flex-shrink: 0; }

.header__social { display: flex; gap: 8px; }
.header__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--orange-50); color: var(--orange-600);
  border-radius: 50%; transition: .2s;
}
.header__social a:hover {
  background: var(--orange-600); color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234,88,12,.28);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; background: var(--orange-50);
  border: none; border-radius: 12px; cursor: pointer; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2.4px; background: var(--orange-600); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero (จัดองค์ประกอบตาม og-image) ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(45% 55% at 6% 20%, #FFF3E9 0%, transparent 60%),
    var(--bg);
}
/* วงโค้งสีส้มด้านขวา (อยู่หลังรูปแพทย์) */
.hero__arc {
  position: absolute; z-index: 0; top: 48%; right: 1%;
  width: min(640px, 52vw); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 0 77%, #FBEFE6 77% 81%, transparent 81.5%),
    radial-gradient(closest-side, transparent 0 84%, var(--orange) 84% 92%, transparent 92.5%),
    radial-gradient(closest-side, transparent 0 95%, #565b62 95% 99%, transparent 99.5%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 30px; align-items: center;
  padding: clamp(30px, 4.5vw, 56px) 22px clamp(26px, 3.5vw, 40px);
}

/* --- ซ้าย --- */
.hero__brand { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(10px, 2vw, 20px); }
.hero__brand img { width: auto; height: clamp(58px, 7vw, 82px); flex-shrink: 0; object-fit: contain; }
.hero__brandText { display: flex; flex-direction: column; line-height: 1.1; }
.hero__brandText strong {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 2px;
  font-size: clamp(1.3rem, 2.6vw, 2rem); color: #52585f;
}
.hero__brandText small {
  font-family: var(--font-head); letter-spacing: 1.5px; font-weight: 500;
  font-size: clamp(.6rem, 1vw, .78rem); color: var(--orange-600);
  border-top: 2px solid var(--orange); padding-top: 4px; margin-top: 3px;
}

.hero__title {
  font-family: var(--font-head); font-weight: 800; line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -1px;
  color: var(--ink); margin-bottom: clamp(14px, 2vw, 20px);
}
.hero__title .hl { color: var(--orange); }

.hero__tagpill {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.4rem); color: #fff;
  background: #3d434b; padding: 10px 26px; border-radius: 999px;
  margin-bottom: clamp(14px, 2vw, 18px);
}
.hero__loc {
  display: flex; align-items: center; gap: 8px; color: var(--orange-600);
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-bottom: clamp(14px, 2vw, 18px);
}
.hero__loc svg { flex-shrink: 0; }
.hero__lead { color: var(--ink-soft); font-size: clamp(.98rem, 1.5vw, 1.12rem); margin-bottom: clamp(20px, 3vw, 30px); }

/* ไอคอนบริการ 5 อย่าง */
.hero__feats {
  list-style: none; display: grid; gap: 14px 10px;
  grid-template-columns: repeat(5, 1fr); max-width: 640px;
}
.hero__feats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.hero__featIc {
  width: clamp(58px, 8vw, 76px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; color: var(--orange-600);
  background: radial-gradient(circle at 50% 35%, #FFF3E9, #FFE7D6);
  box-shadow: inset 0 0 0 1px var(--orange-100), 0 6px 16px rgba(234,88,12,.10);
}
.hero__featTx { font-size: clamp(.72rem, 1.15vw, .82rem); color: var(--ink-soft); line-height: 1.35; font-weight: 500; }

/* --- ขวา: รูปแพทย์ --- */
.hero__visual { position: relative; align-self: end; justify-self: center; }
.hero__photo { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.hero__photo img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.hero__docbadge {
  position: absolute; z-index: 2; left: -4%; top: 30%;
  width: clamp(118px, 15vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: 0 14px 34px rgba(234,88,12,.22);
  border: 3px solid var(--orange); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 10px;
  animation: float 5.5s ease-in-out infinite;
}
.hero__docbadgeTop { font-family: var(--font-head); font-size: clamp(.72rem, 1.1vw, .9rem); color: var(--ink-soft); }
.hero__docbadge strong { font-family: var(--font-head); font-weight: 700; color: var(--orange-600); font-size: clamp(.92rem, 1.5vw, 1.2rem); line-height: 1.1; margin: 1px 0 3px; }
.hero__docbadgeSub { font-size: clamp(.64rem, 1vw, .8rem); color: var(--ink-soft); line-height: 1.3; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* --- แถบติดต่อสีส้ม --- */
.hero__contact {
  position: relative; z-index: 2;
  background: linear-gradient(90deg, var(--orange-600), var(--orange));
  color: #fff;
}
.hero__contactInner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px;
  padding: 16px 22px;
}
.hero__contactItem { display: flex; align-items: center; gap: 12px; min-width: 0; transition: opacity .2s; }
a.hero__contactItem:hover { opacity: .82; }
.hero__contactIc {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
}
.hero__contactItem div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hero__contactItem strong { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.hero__contactItem span { font-size: .84rem; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Trust strip (จุดเด่น 4 ข้อ) ---------- */
.trust { position: relative; z-index: 2; padding: clamp(22px, 3vw, 34px) 0; background: var(--bg-soft); }
.trust__grid {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px; gap: 10px;
}
.trust__item { display: flex; align-items: center; gap: 14px; padding: 6px 16px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item svg { color: var(--orange); flex-shrink: 0; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.trust__item span { font-size: .82rem; color: var(--muted); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.about__visual { position: relative; }
.about__imgwrap {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); aspect-ratio: 4/3.4;
}
.about__floater {
  position: absolute; bottom: -22px; right: -14px; background: #fff;
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); max-width: 220px; display: flex; flex-direction: column; gap: 4px;
}
.about__floaterNum { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--orange-600); }
.about__floaterTxt { font-size: .82rem; color: var(--ink-soft); }

.about__content p { color: var(--ink-soft); margin-bottom: 22px; }
.checklist { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: .98rem; }
.checklist svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .28s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-400), var(--orange-600));
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--orange-100); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px;
  background: var(--orange-50); color: var(--orange-600); margin-bottom: 18px; transition: .28s;
}
.card:hover .card__icon { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Conditions ---------- */
.conditions { background: linear-gradient(180deg, #fff, var(--orange-50)); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.tag {
  background: #fff; border: 1px solid var(--orange-100); color: var(--ink);
  padding: 11px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 500;
  font-size: .95rem; box-shadow: var(--shadow-sm); transition: .22s;
}
.tag:hover {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: #fff; transform: translateY(-3px); border-color: transparent;
}

/* ---------- Doctor ---------- */
.doctor__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.doctor__card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; max-width: 340px;
}
.doctor__photo { aspect-ratio: 4/5; overflow: hidden; background: #EAF3F3; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor__cardInfo { padding: 20px; text-align: center; }
.doctor__cardInfo strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.doctor__cardInfo span { color: var(--orange-600); font-size: .9rem; font-weight: 500; }
.doctor__role { color: var(--orange-600); font-weight: 600; font-family: var(--font-head); margin-bottom: 16px; }
.doctor__content p { color: var(--ink-soft); margin-bottom: 22px; }
.doctor__creds { list-style: none; display: grid; gap: 14px; margin-bottom: 28px; }
.doctor__creds li { display: flex; align-items: flex-start; gap: 12px; }
.doctor__creds svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative; transition: .28s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(234,88,12,.3);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq__intro p { color: var(--ink-soft); margin: 14px 0 24px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 14px; transition: .2s;
}
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: var(--orange-100); }
.faq__item summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600;
  padding: 16px 30px 16px 0; position: relative; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--orange-600); font-weight: 400; transition: .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding: 0 0 18px; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--orange-50), #fff); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
.contact__info {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 24px;
}
.contact__item { display: flex; gap: 16px; }
.contact__ic {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 13px; background: var(--orange-50); color: var(--orange-600);
}
.contact__item strong { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.contact__item p { color: var(--ink-soft); font-size: .96rem; }
.contact__item a { color: var(--orange-600); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours td { padding: 5px 0; font-size: .92rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours__closed { color: var(--muted) !important; font-weight: 500 !important; }
.contact__socials { display: flex; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head);
  font-weight: 500; font-size: .9rem; padding: 8px 15px; border-radius: 999px;
  background: var(--orange-50); color: var(--orange-700); transition: .2s;
}
.chip:hover { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); color: #fff; }
.contact__cta { justify-content: center; margin-top: 6px; }

.contact__map {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 420px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; }

/* ---------- CTA band ---------- */
.ctaband {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-700));
  color: #fff; position: relative; overflow: hidden;
}
.ctaband::after {
  content: ""; position: absolute; top: -80px; right: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.ctaband__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(40px, 6vw, 64px) 22px; position: relative; z-index: 1; flex-wrap: wrap;
}
.ctaband h2 { color: #fff; margin-bottom: 8px; }
.ctaband p { opacity: .92; }

/* ---------- Footer ---------- */
.footer { background: #241a14; color: #d8cdc4; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding: 60px 22px 44px;
}
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #b39c8c; }
.footer__brand p { margin: 18px 0; font-size: .94rem; color: #b7a99e; max-width: 340px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255,255,255,.08); color: #fff; transition: .2s;
}
.footer__social a:hover { background: var(--orange-600); transform: translateY(-3px); }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 1.02rem; }
.footer__col a, .footer__col p { display: block; color: #b7a99e; font-size: .94rem; margin-bottom: 10px; transition: .2s; }
.footer__col a:hover { color: var(--orange-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bottomInner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 20px 22px; font-size: .86rem; color: #9c8b7e;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; z-index: 90;
  display: grid; place-items: center; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 10px 26px rgba(234,88,12,.4); opacity: 0; visibility: hidden;
  transform: translateY(16px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Hero: แท็บเล็ต — จัดเป็นคอลัมน์เดียว, เนื้อหาอยู่บน รูปแพทย์อยู่ล่าง */
@media (max-width: 980px) {
  .about__grid, .doctor__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; margin: 0 auto; }
  .doctor__card { margin: 0 auto; }
  .cards, .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-left: none; }
  .about__content, .doctor__content, .faq__intro { text-align: center; }
  .checklist li, .doctor__creds li { text-align: left; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero__brand, .hero__loc, .hero__feats { justify-content: center; }
  .hero__feats { margin: 0 auto; }
  .hero__tagpill { margin-inline: auto; }
  .hero__visual { max-width: 440px; margin-top: 6px; order: 2; }
  .hero__docbadge { left: auto; right: -2%; top: 22%; }
  .hero__arc { top: 78%; right: 50%; transform: translate(50%, -50%); width: 130vw; opacity: .6; }
}

/* Hero: มือถือใหญ่ — ไอคอนบริการเหลือ 3 คอลัมน์ */
@media (max-width: 620px) {
  .hero__feats { grid-template-columns: repeat(3, 1fr); max-width: 380px; }
  .hero__contactInner { grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
  .hero__contactItem span { white-space: normal; }
}

/* Hero: มือถือเล็ก */
@media (max-width: 400px) {
  .hero__feats { grid-template-columns: repeat(2, 1fr); max-width: 280px; }
  .hero__contactInner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header__navrow { border-top: none; background: transparent; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 14px; gap: 4px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav.open a { padding: 13px 16px; }
  .topbar__hours { display: none; }
}
@media (max-width: 600px) {
  .topbar__addr { display: none; }
  .topbar__inner { justify-content: space-between; }
  .header__social { display: none; }
}
@media (max-width: 420px) {
  .header__cta span, .brand__text small { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .trust__grid, .steps { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: none; border-top: 1px solid var(--line); padding-top: 16px; }
  .topbar__item span { font-size: .78rem; }
  .about__floater { right: 0; }
  .ctaband__inner { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
