/* =====================================================================
 * pages.css — สไตล์ร่วมสำหรับหน้าย่อย (สาขา / B2B ชุดยาห้องพยาบาล)
 * ใช้ดีไซน์/สีเดียวกับหน้าแรก (index.html) เพื่อความเป็นแบรนด์เดียวกัน
 * ===================================================================== */
:root{
  --ink:#0c2740; --ink-soft:#4a6175; --ink-faint:#7d93a6;
  --navy:#0e3a5f; --navy-900:#0a2b46; --blue:#1f74c4; --blue-600:#1763aa; --blue-700:#114f86;
  --sky:#7fb0e6; --sky-100:#eaf2fc; --sky-200:#d4e6f9;
  --gold:#c2912f; --gold-soft:#f6ecd4; --clay:#c0573a; --teal:#1f9e88; --teal-soft:#dcf3ee;
  --cream:#f5f8fc; --paper:#ffffff; --line:#06c755;
  --bd:rgba(12,39,64,.10); --bd-2:rgba(12,39,64,.16);
  --sh-sm:0 1px 2px rgba(10,43,70,.07);
  --sh:0 8px 24px -10px rgba(10,43,70,.22);
  --sh-lg:0 24px 60px -22px rgba(10,43,70,.34);
  --r:14px; --r-lg:22px; --r-xl:30px; --r-pill:999px; --wrap:1100px;
  --font-head:'Kanit','Noto Sans SC',system-ui,sans-serif;
  --font-body:'Sarabun','Noto Sans SC',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--cream);line-height:1.7;-webkit-font-smoothing:antialiased}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--font-head);color:var(--navy);line-height:1.25;margin:0 0 .5em}
a{color:var(--blue-700)}
img{max-width:100%;height:auto}
.kicker{display:inline-block;font-family:var(--font-head);font-weight:600;font-size:.82rem;letter-spacing:.04em;color:var(--blue-600);background:var(--sky-100);padding:.32rem .8rem;border-radius:var(--r-pill);margin-bottom:.7rem}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-head);font-weight:600;font-size:1rem;
  padding:.78rem 1.4rem;border-radius:var(--r-pill);border:1px solid transparent;cursor:pointer;text-decoration:none;transition:.18s;white-space:nowrap}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-600)}
.btn-line{background:var(--line);color:#fff}.btn-line:hover{filter:brightness(.95)}
.btn-ghost{background:#fff;color:var(--navy);border-color:var(--bd-2)}.btn-ghost:hover{border-color:var(--blue);color:var(--blue-700)}
.btn-gold{background:var(--gold);color:#fff}.btn-gold:hover{filter:brightness(.96)}

/* ---- header ---- */
.head{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--bd)}
.head .wrap{display:flex;align-items:center;gap:1rem;height:64px}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--navy);font-family:var(--font-head)}
.brand img{width:40px;height:40px;border-radius:9px}
.brand b{font-size:1.05rem;display:block;line-height:1.1}
.brand span small{color:var(--ink-faint);font-size:.72rem;font-weight:500}
.head nav{margin-left:auto;display:flex;align-items:center;gap:.4rem}
.head nav a.lnk{color:var(--ink-soft);text-decoration:none;font-weight:600;font-size:.92rem;padding:.4rem .6rem;border-radius:8px}
.head nav a.lnk:hover{color:var(--blue-700);background:var(--sky-100)}
@media(max-width:760px){.head nav a.lnk{display:none}}

/* ---- hero ---- */
.phero{background:linear-gradient(160deg,var(--navy) 0%,var(--blue-700) 60%,var(--blue-600) 100%);color:#fff;padding:54px 0 60px}
.phero .kicker{background:rgba(255,255,255,.16);color:#eaf2fc}
.phero h1{color:#fff;font-size:clamp(1.7rem,4.4vw,2.6rem);max-width:18ch}
.phero p{color:#dbe8f7;font-size:1.08rem;max-width:60ch;margin:.6rem 0 1.4rem}
.phero .row{display:flex;flex-wrap:wrap;gap:.7rem}
.crumb{font-size:.85rem;margin-bottom:1rem}
.crumb a{color:#bcd6f2;text-decoration:none}.crumb span{color:#7fa6cf;margin:0 .4rem}

/* ---- sections / cards ---- */
section.blk{padding:46px 0}
.lead{font-size:1.05rem;color:var(--ink-soft);max-width:70ch}
.grid{display:grid;gap:18px}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:860px){.g3,.g4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.g2,.g3,.g4{grid-template-columns:1fr}}
.card{background:var(--paper);border:1px solid var(--bd);border-radius:var(--r-lg);padding:22px;box-shadow:var(--sh-sm)}
.card h3{font-size:1.12rem;margin-bottom:.35rem}
.card p{margin:.2rem 0;color:var(--ink-soft);font-size:.96rem}
.ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--sky-100);color:var(--blue-600);margin-bottom:.7rem}
.ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic.gold{background:var(--gold-soft);color:var(--gold)}.ic.teal{background:var(--teal-soft);color:var(--teal)}.ic.clay{background:#fbe7df;color:var(--clay)}

/* info rows (address / hours) */
.info{display:flex;gap:.75rem;align-items:flex-start;margin:.5rem 0}
.info svg{width:20px;height:20px;flex:none;margin-top:3px;stroke:var(--blue-600);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.info b{color:var(--navy)}
.hours-tbl{width:100%;border-collapse:collapse;margin-top:.4rem;font-size:.95rem}
.hours-tbl td{padding:.35rem 0;border-bottom:1px dashed var(--bd)}
.hours-tbl td:last-child{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-soft)}

.checks{list-style:none;padding:0;margin:1rem 0}
.checks li{display:flex;gap:.6rem;align-items:flex-start;margin:.5rem 0}
.checks li::before{content:"✓";color:var(--teal);font-weight:800;flex:none}

.callout{background:var(--sky-100);border:1px solid var(--sky-200);border-radius:var(--r-lg);padding:22px}
.callout.gold{background:var(--gold-soft);border-color:#ecd9aa}

/* FAQ */
.faq details{background:#fff;border:1px solid var(--bd);border-radius:var(--r);padding:.4rem 1rem;margin:.6rem 0}
.faq summary{font-family:var(--font-head);font-weight:600;color:var(--navy);cursor:pointer;padding:.6rem 0;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"＋";color:var(--blue);margin-right:.5rem;font-weight:700}
.faq details[open] summary::before{content:"－"}
.faq p{color:var(--ink-soft);margin:.2rem 0 .8rem}

/* CTA band */
.ctaband{background:linear-gradient(120deg,var(--navy),var(--blue-700));color:#fff;border-radius:var(--r-xl);padding:38px 28px;text-align:center}
.ctaband h2{color:#fff}.ctaband p{color:#cfe0f4;max-width:52ch;margin:.4rem auto 1.3rem}
.ctaband .row{display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap}

/* footer */
.foot{background:var(--navy-900);color:#b9cde0;padding:34px 0;margin-top:30px;font-size:.92rem}
.foot a{color:#dbe8f7;text-decoration:none}.foot a:hover{text-decoration:underline}
.foot .fl{display:flex;flex-wrap:wrap;gap:.5rem 1.3rem;margin:.6rem 0}
.foot .dim{color:#7fa0c0;font-size:.85rem;margin-top:.8rem}

/* form fields (lead capture) */
.fld{display:block;margin:.55rem 0}
.fld>span{display:block;font-size:.85rem;color:var(--ink-soft);margin-bottom:.25rem;font-weight:600}
.fld input,.fld select,.fld textarea{width:100%;padding:.62rem .7rem;border:1px solid var(--bd-2);border-radius:10px;font:inherit;color:var(--ink);background:#fff}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--sky-100)}
.frow2{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
@media(max-width:480px){.frow2{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* sticky mobile CTA */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:none;gap:.5rem;padding:.55rem;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--bd)}
.mbar .btn{flex:1;justify-content:center}
@media(max-width:760px){.mbar{display:flex}body{padding-bottom:70px}}
