
:root{
  --navy:#0f2f57;
  --navy2:#153f70;
  --teal:#258b91;
  --gold:#b88732;
  --gold2:#d6b267;
  --cream:#fbf6ec;
  --cream2:#f4eadb;
  --ink:#233040;
  --muted:#637083;
  --paper:#fff;
  --line:#06c755;
  --shadow:0 24px 70px rgba(15,47,87,.13);
  --shadow-sm:0 12px 34px rgba(15,47,87,.10);
  --border:rgba(15,47,87,.12);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"IBM Plex Sans Thai","Noto Sans Thai","Prompt",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#fff 0%,var(--cream) 42%,#fff 100%);
  line-height:1.7;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.wrap{width:min(1180px,92vw);margin-inline:auto}
h1,h2,h3{line-height:1.15;margin:0;color:var(--navy)}
p{color:var(--muted);margin:0}
header{
  position:sticky;top:0;z-index:99;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(15,47,87,.08);
}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;color:var(--navy)}
.brand .mark{font-size:2rem;line-height:.86;letter-spacing:.03em}
.brand small{display:block;font-size:.72rem;letter-spacing:.16em;color:var(--gold);font-weight:800}
.brand .bar{height:34px;width:1px;background:rgba(184,135,50,.5)}
.brand .sub{font-size:.78rem;line-height:1.2;color:#38536f;font-weight:800;text-transform:uppercase}
.navlinks{display:flex;align-items:center;gap:4px}
.navlinks a{padding:10px 12px;border-radius:999px;font-weight:800;font-size:.92rem;color:#24364c}
.navlinks a:hover,.navlinks a.active{background:rgba(184,135,50,.12);color:var(--navy)}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:0;border-radius:999px;padding:12px 18px;font-weight:900;
  cursor:pointer;transition:.18s ease;white-space:nowrap
}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.btn-navy{background:var(--navy);color:#fff}
.btn-teal{background:var(--teal);color:#fff}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#fff}
.btn-line{background:var(--line);color:#fff}
.btn-ghost{background:#fff;color:var(--navy);border:1px solid var(--border)}
.menu{display:none;border:1px solid var(--border);background:#fff;border-radius:12px;padding:8px;color:var(--navy)}
.hero{
  position:relative;min-height:88vh;overflow:hidden;display:flex;align-items:center;background:#fff;
}
.hero picture,.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.88) 31%,rgba(255,255,255,.48) 56%,rgba(255,255,255,.06) 100%),
    linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.55));
}
.hero .content{position:relative;z-index:2;padding:120px 0 130px;max-width:580px}
.eyebrow{display:inline-flex;padding:8px 14px;border-radius:999px;background:rgba(184,135,50,.13);color:var(--gold);font-weight:900;margin-bottom:14px}
.hero h1{font-size:clamp(3.8rem,8vw,6.6rem);letter-spacing:-.055em;text-transform:uppercase;text-shadow:0 4px 20px rgba(255,255,255,.75)}
.hero .tag{font-size:clamp(1.35rem,2.5vw,2.25rem);font-weight:900;color:var(--navy);line-height:1.25;margin:14px 0}
.hero .tag .teal{color:var(--teal)}
.hero .lead{font-size:1.1rem;max-width:46ch;color:#465569;margin-bottom:26px}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.linebar{
  position:absolute;z-index:3;bottom:28px;left:50%;transform:translateX(-50%);
  width:min(1180px,92vw);
  background:rgba(255,255,255,.92);border:1px solid rgba(15,47,87,.1);
  box-shadow:var(--shadow-sm);backdrop-filter:blur(12px);border-radius:26px;
  display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden
}
.linebar a,.linebar div{padding:16px 18px;display:flex;gap:12px;align-items:center;border-right:1px solid rgba(15,47,87,.08)}
.linebar a:last-child{border-right:0}
.ico{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--navy);color:#fff;flex:0 0 auto}
.ico.line{background:var(--line)}
.ico.teal{background:var(--teal)}
.linebar b{display:block;color:var(--navy);font-size:.96rem}
.linebar small{display:block;color:var(--muted);font-weight:700}
.section{padding:82px 0}
.section-head{max-width:760px;margin:0 auto 34px;text-align:center}
.section-head h2{font-size:clamp(2rem,4vw,3rem);margin:10px 0}
.section-head p{font-size:1.05rem}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.card{
  background:#fff;border:1px solid var(--border);border-radius:32px;padding:34px;
  box-shadow:var(--shadow-sm);position:relative;overflow:hidden
}
.card::after{content:"";position:absolute;right:-60px;top:-70px;width:210px;height:210px;border-radius:50%;background:rgba(184,135,50,.11)}
.card.ent::after{background:rgba(37,139,145,.13)}
.card .icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:var(--navy);color:#fff;margin-bottom:18px}
.card.ent .icon{background:var(--teal)}
.card h3{font-size:1.65rem;margin-bottom:10px}
.card ul{color:#5e6a7a;margin:18px 0 24px;padding-left:20px}
.card li{margin:7px 0}
.services{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.service{
  background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;text-align:center;box-shadow:0 10px 28px rgba(15,47,87,.07)
}
.service .round{margin:0 auto 12px;width:54px;height:54px;border-radius:50%;border:1px solid rgba(184,135,50,.4);display:grid;place-items:center;color:var(--gold);font-weight:900}
.service b{color:var(--navy)}
.doctor-band{
  display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:center;
  background:linear-gradient(135deg,#fff,rgba(244,234,219,.8));border:1px solid var(--border);border-radius:36px;padding:34px;box-shadow:var(--shadow)
}
.doctor-photo{
  border-radius:28px;overflow:hidden;min-height:330px;background:linear-gradient(135deg,#fff,var(--cream2));
}
.doctor-photo img{width:100%;height:100%;object-fit:cover}
.doctor-text h2{font-size:clamp(2rem,4vw,3.1rem);margin-bottom:14px}
.contact-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:stretch}
.contact-card,.map-card{
  background:#fff;border:1px solid var(--border);border-radius:32px;padding:30px;box-shadow:var(--shadow-sm)
}
.info{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid rgba(15,47,87,.08)}
.info:last-child{border-bottom:0}
.info b{display:block;color:var(--navy)}
.info span{color:var(--muted)}
.map-placeholder{
  min-height:320px;border-radius:24px;background:
    linear-gradient(135deg,rgba(15,47,87,.06),rgba(184,135,50,.12)),
    repeating-linear-gradient(135deg,rgba(15,47,87,.05) 0 1px,transparent 1px 12px);
  display:grid;place-items:center;text-align:center;color:var(--navy);font-weight:900;border:1px dashed rgba(15,47,87,.2)
}
footer{background:var(--navy);color:#fff;padding:52px 0 26px;margin-top:30px}
footer p,footer a{color:rgba(255,255,255,.74)}
.foot{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
.foot h3,.foot h4{color:#fff}
.foot a{display:block;margin:8px 0}
.copy{margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.13);font-size:.9rem}

/* subpage */
.subhero{
  min-height:72vh;
}
.subhero::after{
  background:
    linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.78) 42%,rgba(255,255,255,.15) 100%),
    linear-gradient(180deg,rgba(255,255,255,.25),rgba(255,255,255,.55));
}
.subhero .content{padding-bottom:90px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.price{background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;box-shadow:var(--shadow-sm)}
.price h3{font-size:1.25rem;margin-bottom:8px}
.price .money{font-size:1.35rem;color:var(--gold);font-weight:900}
.note{padding:18px;border-radius:18px;background:rgba(184,135,50,.10);color:#6a5128;margin-top:20px}

@media(max-width:980px){
  .nav{height:70px}
  .navlinks{display:none;position:fixed;top:78px;left:4vw;right:4vw;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:22px;padding:12px;flex-direction:column;align-items:stretch}
  .navlinks.open{display:flex}
  .menu{display:grid}
  .nav-actions .phone{display:none}
  .hero{min-height:860px;align-items:flex-start}
  .hero-bg img{object-position:center}
  .hero::after{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.86) 36%,rgba(255,255,255,.22) 70%,rgba(255,255,255,.82))}
  .hero .content{padding-top:70px;padding-bottom:350px}
  .linebar{grid-template-columns:1fr;position:relative;bottom:auto;left:auto;transform:none;margin: -180px auto 0}
  .linebar a,.linebar div{border-right:0;border-bottom:1px solid rgba(15,47,87,.08)}
  .cards,.doctor-band,.contact-grid{grid-template-columns:1fr}
  .services,.grid3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .brand .sub{display:none}
  .hero h1{font-size:3.15rem}
  .actions .btn{width:100%}
  .services,.grid3{grid-template-columns:1fr}
  .section{padding:58px 0}
  .card,.contact-card,.map-card{padding:24px}
}

.branch-list,[data-branches]{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.branch-pill{display:inline-flex;flex-direction:column;gap:2px;padding:13px 16px;border-radius:18px;background:#fff;border:1px solid var(--border);box-shadow:0 10px 25px rgba(15,47,87,.07)}
.branch-pill strong{color:var(--navy)}
.branch-pill span{color:var(--muted);font-size:.9rem}

/* ===== Subpage full hero tints (dental = blue-white, ENT = green-white) ===== */
.subhero.dental::after{
  background:
    linear-gradient(90deg,rgba(232,242,251,.97) 0%,rgba(232,242,251,.8) 38%,rgba(232,242,251,.28) 64%,rgba(232,242,251,.05) 100%),
    linear-gradient(180deg,rgba(255,255,255,.18),rgba(231,240,250,.55));
}
.subhero.ent::after{
  background:
    linear-gradient(90deg,rgba(230,245,239,.97) 0%,rgba(230,245,239,.8) 38%,rgba(230,245,239,.28) 64%,rgba(230,245,239,.05) 100%),
    linear-gradient(180deg,rgba(255,255,255,.18),rgba(229,244,238,.55));
}
.subhero.dental .eyebrow{background:rgba(37,99,160,.14);color:#1f5fa0}
.subhero.ent .eyebrow{background:rgba(37,139,145,.16);color:#1d7d80}
.subhero .actions{margin-top:6px}

/* ===== Tablet breakpoint ===== */
@media(min-width:981px) and (max-width:1180px){
  .services{grid-template-columns:repeat(3,1fr)}
  .hero{min-height:78vh}
  .subhero{min-height:64vh}
}

/* ===== Team cards (doctors) ===== */
.team{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tcard{background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;text-align:center;box-shadow:var(--shadow-sm)}
.tcard .pic{width:104px;height:104px;border-radius:50%;margin:0 auto 14px;overflow:hidden;background:linear-gradient(135deg,var(--cream2),#fff);display:grid;place-items:center;color:var(--gold);font-weight:900;font-size:1.7rem;border:1px solid rgba(184,135,50,.3)}
.tcard .pic img{width:100%;height:100%;object-fit:cover}
.tcard b{display:block;color:var(--navy);font-size:1.06rem;margin-bottom:2px}
.tcard small{color:var(--muted)}
@media(max-width:980px){.team{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.team{grid-template-columns:1fr}}

/* single featured doctor photo framing */
.doctor-photo img{object-position:center 22%}

/* ===== Contact: per-branch (phone / LINE icon-link / address) ===== */
.contact-card .bhead{font-size:1.05rem;color:var(--navy);font-weight:800;margin:20px 0 6px}
.contact-card .bhead:first-of-type{margin-top:4px}
.info.linerow{text-decoration:none}
.info.linerow:hover b,.info.linerow:hover span{color:var(--line)}
.info .ico.line{background:var(--line);color:#fff}

/* ===== Articles list (home) ===== */
.artgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.artcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:24px;padding:24px;box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s}
.artcard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.artcard .cat{align-self:flex-start;font-size:.72rem;font-weight:800;letter-spacing:.05em;color:var(--gold);background:rgba(184,135,50,.12);padding:4px 10px;border-radius:999px;margin-bottom:10px}
.artcard h3{font-size:1.1rem;color:var(--navy);margin-bottom:8px;line-height:1.4}
.artcard p{color:var(--muted);font-size:.94rem;flex:1}
.artcard .more{margin-top:14px;font-weight:800;color:var(--navy)}
@media(max-width:980px){.artgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.artgrid{grid-template-columns:1fr}}

/* ===== Article page ===== */
.article{max-width:760px;margin:0 auto;padding:96px 0 56px}
.article h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:12px 0 6px;text-transform:none;letter-spacing:-.01em;text-shadow:none}
.article h2{font-size:1.35rem;color:var(--navy);margin:28px 0 10px}
.article p{margin:12px 0;color:#3f4a59;font-size:1.06rem}
.article-meta{color:var(--muted);font-size:.92rem;margin-bottom:16px}


/* ===== Home hero: larger Thai description ===== */
.hero:not(.subhero) .lead{font-size:1.32rem;line-height:1.6;font-weight:600;color:#3a4757;max-width:40ch}
@media(max-width:600px){.hero:not(.subhero) .lead{font-size:1.12rem}}

/* ===== Hero (desktop/tablet): ยึดขอบขวาให้เห็นหมอเต็มตัว ตัดพื้นที่ว่างซ้ายแทน ===== */
@media(min-width:981px){
  .hero .hero-bg img{object-position:right center}
}
