/* ═══════════════════════════════════════════════════════
   PERAVECH HOSPITAL v4 — White/Green Premium
   Design: Clean · Airy · Professional · Trustworthy
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────── */
:root {
  /* Green palette */
  --g900: #0b2e1e;
  --g800: #134027;
  --g700: #1a5233;
  --g600: #1e6b40;
  --g500: #22874e;   /* primary */
  --g400: #3ea865;
  --g300: #72c48e;
  --g200: #b8e4c8;
  --g100: #e0f4e8;
  --g50:  #f2fbf5;

  /* Gold accent */
  --gold:    #b8912a;
  --gold-l:  #d4aa3f;
  --gold-bg: #fdf8ee;

  /* Neutral */
  --white:  #ffffff;
  --off:    #fafbfa;
  --n50:    #f5f6f5;
  --n100:   #eaece9;
  --n200:   #d4d8d3;
  --n300:   #b0b8ae;
  --n400:   #8c9689;
  --n500:   #687063;
  --n700:   #3a4037;
  --n900:   #181c17;

  /* Semantic */
  --bg:     var(--white);
  --text:   var(--n900);
  --muted:  var(--n500);
  --line:   var(--n100);
  --focus:  var(--g500);

  /* Shadows */
  --sh0: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh1: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --sh2: 0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
  --sh3: 0 16px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --sh4: 0 32px 80px rgba(0,0,0,.12), 0 16px 32px rgba(0,0,0,.07);
  --sh-green: 0 8px 32px rgba(34,135,78,.18);
  --sh-green-lg: 0 16px 56px rgba(34,135,78,.22);

  /* Border radius */
  --r2:  2px;
  --r4:  4px;
  --r6:  6px;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
  --r32: 32px;
  --rpill: 999px;

  /* Spacing */
  --container: 1240px;
  --container-sm: 960px;

  /* Typography */
  --f-display: 'Playfair Display', 'Sarabun', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', 'Sarabun', system-ui, sans-serif;
  --f-thai:    'Sarabun', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--g500); outline-offset: 2px; }

/* ── Typography scale ────────────────────────────────── */
.display-xl { font-family: var(--f-display); font-size: clamp(48px,6vw,80px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.display-lg { font-family: var(--f-display); font-size: clamp(36px,4.5vw,60px); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
.display-md { font-family: var(--f-display); font-size: clamp(28px,3.5vw,44px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.display-sm { font-family: var(--f-display); font-size: clamp(22px,2.5vw,32px); font-weight: 500; line-height: 1.28; }
.heading-lg  { font-family: var(--f-body); font-size: clamp(18px,2vw,24px); font-weight: 600; line-height: 1.35; }
.heading-md  { font-family: var(--f-body); font-size: 18px; font-weight: 600; line-height: 1.4; }
.heading-sm  { font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.4; }
.body-lg     { font-family: var(--f-thai); font-size: 17px; line-height: 1.75; }
.body-md     { font-family: var(--f-thai); font-size: 15px; line-height: 1.7; }
.body-sm     { font-family: var(--f-thai); font-size: 14px; line-height: 1.65; }
.label-lg    { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.label-sm    { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ── Layout ──────────────────────────────────────────── */
.wrap    { width: min(100% - 40px, var(--container));    margin: 0 auto; }
.wrap-sm { width: min(100% - 40px, var(--container-sm)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-xs { padding: 48px 0; }
.bg-off     { background: var(--off); }
.bg-g50     { background: var(--g50); }
.bg-g900    { background: var(--g900); }

/* ── Eyebrow label ───────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--g600); font-family: var(--f-body);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block; width: 20px; height: 2px;
  background: var(--g500); border-radius: 2px; flex-shrink: 0;
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::before, .eyebrow-center::after { content: ''; display: block; width: 20px; height: 2px; background: var(--g500); border-radius: 2px; flex-shrink: 0; }

/* ── Badge / Tag ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--rpill);
  font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.badge-green  { background: var(--g100); color: var(--g700); }
.badge-gold   { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(184,145,42,.2); }
.badge-white  { background: rgba(255,255,255,.92); color: var(--g700); }
.badge-outline{ background: transparent; color: var(--g600); border: 1px solid var(--g200); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--rpill);
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600;
  letter-spacing: .01em; border: 1.5px solid transparent;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0);
  transition: background var(--t-fast) var(--ease);
}
.btn:hover::after { background: rgba(255,255,255,.1); }
.btn-primary {
  background: var(--g600); color: var(--white);
  box-shadow: var(--sh-green);
}
.btn-primary:hover { background: var(--g700); transform: translateY(-2px); box-shadow: var(--sh-green-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--white); color: var(--g700);
  border-color: var(--n200); box-shadow: var(--sh0);
}
.btn-secondary:hover { border-color: var(--g300); background: var(--g50); transform: translateY(-1px); box-shadow: var(--sh1); }
.btn-ghost { background: transparent; color: var(--g600); border-color: var(--g300); }
.btn-ghost:hover { background: var(--g50); border-color: var(--g500); }
.btn-white { background: var(--white); color: var(--g700); }
.btn-white:hover { background: var(--g50); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn-sm  { padding: 9px 20px; font-size: 13px; }
.btn-xs  { padding: 7px 14px; font-size: 12px; }
.btn-lg  { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { gap: 6px; }
.btn-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform var(--t-base) var(--ease); }
.btn:hover .btn-icon svg { transform: translateX(3px); }

/* ── Section header ──────────────────────────────────── */
.sec-header { margin-bottom: 56px; }
.sec-header.center { text-align: center; }
.sec-header h2 { margin-top: 8px; }
.sec-header p { margin-top: 12px; color: var(--muted); max-width: 52ch; font-family: var(--f-thai); font-size: 16px; line-height: 1.75; }
.sec-header.center p { margin-left: auto; margin-right: auto; }
.sec-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

/* ── Link arrow ──────────────────────────────────────── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600; color: var(--g600);
  letter-spacing: .02em; transition: gap var(--t-base) var(--ease), color var(--t-fast);
  flex-shrink: 0;
}
.link-arrow:hover { gap: 10px; color: var(--g700); }
.link-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--n100);
  border-radius: var(--r20); box-shadow: var(--sh1);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base);
}
.card:hover { box-shadow: var(--sh3); transform: translateY(-3px); border-color: var(--n200); }
.card-p { padding: 28px; }

/* ── Divider ─────────────────────────────────────────── */
.hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ═══════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════ */
.topbar {
  background: var(--g900); color: rgba(255,255,255,.75);
  font-size: 12.5px; padding: 9px 0; letter-spacing: .02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; transition: color var(--t-fast); font-family: var(--f-thai); }
.topbar-links a:hover { color: rgba(255,255,255,.95); }
.topbar-links svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
#site-header { position: sticky; top: 0; z-index: 200; }
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--n100);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh2); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.brand-divider { width: 1px; height: 26px; background: var(--n100); }
.brand-name { font-family: var(--f-display); font-size: 16px; font-weight: 600; color: var(--g800); line-height: 1.2; letter-spacing: -.01em; }
.brand-sub  { font-family: var(--f-body); font-size: 10.5px; color: var(--n400); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: flex-end; }
.nav-item {
  padding: 7px 10px; border-radius: var(--r8);
  font-family: var(--f-thai); font-size: 13.5px; font-weight: 500; color: var(--n700);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap; cursor: pointer; border: none; background: none;
  display: inline-flex; align-items: center; gap: 3px; line-height: 1;
}
.nav-item:hover, .nav-item.active { background: var(--g50); color: var(--g700); }
.nav-item.active { font-weight: 600; color: var(--g600); }

/* Shrink brand text at mid-sizes to give nav more room */
@media (max-width: 1200px) {
  .brand-name { font-size: 15px; }
  .brand-sub  { font-size: 9.5px; }
  .nav-item   { padding: 7px 8px; font-size: 13px; }
  }
@media (max-width: 1060px) {
  .brand-divider { display: none; }
  .brand-name    { font-size: 14px; }
  .nav-item      { padding: 6px 7px; font-size: 12.5px; }
}

/* Dropdown */
.nav-has-sub { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 210px; background: var(--white);
  border: 1px solid var(--n100); border-radius: var(--r16);
  box-shadow: var(--sh4);
  padding: 14px 6px 6px; /* padding-top เผื่อ bridge gap */
  margin-top: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s linear var(--t-base); /* delay ก่อนซ่อน */
  z-index: 300;
}
/* Bridge ช่องว่างระหว่าง button กับ dropdown */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s linear 0s;
}
.nav-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r8);
  font-family: var(--f-thai); font-size: 14px; color: var(--n700);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-sub a:hover { background: var(--g50); color: var(--g700); }
.nav-sub-icon {
  width: 28px; height: 28px; border-radius: var(--r6);
  background: var(--g50); display: grid; place-items: center; flex-shrink: 0;
}
.nav-sub-icon svg { width: 14px; height: 14px; stroke: var(--g600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-call { margin-left: 10px; }

/* Desktop default: nav-call-mobile และ hamburger ซ่อน, nav-call แสดง */
.nav-call-mobile { display: none; }
.hamburger { display: none; padding: 8px; border-radius: var(--r8); transition: background var(--t-fast); }
.hamburger:hover { background: var(--g50); }
.hamburger svg { width: 22px; height: 22px; stroke: var(--g800); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ═══════════════════════════════════════════════════════
   MOBILE NAV DRAWER
═══════════════════════════════════════════════════════ */
.nav-drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
}
.nav-drawer-overlay.open { display: block; }
.nav-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(24,28,23,.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: scrimIn .25s var(--ease) both;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.nav-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--white); display: flex; flex-direction: column;
  box-shadow: var(--sh4); overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s var(--ease-out);
}
.nav-drawer-overlay.open .nav-drawer { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { height: 34px; }
.drawer-brand strong { font-family: var(--f-display); font-size: 15px; color: var(--g800); font-weight: 600; }
.drawer-close {
  width: 34px; height: 34px; border-radius: var(--r8); background: var(--n50);
  display: grid; place-items: center; transition: background var(--t-fast);
}
.drawer-close:hover { background: var(--n100); }
.drawer-close svg { width: 16px; height: 16px; stroke: var(--n700); fill: none; stroke-width: 2; stroke-linecap: round; }

.drawer-body { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  font-family: var(--f-thai); font-size: 15px; font-weight: 500; color: var(--n700);
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line);
}
.drawer-link:last-of-type { border-bottom: none; }
.drawer-link:hover { background: var(--g50); color: var(--g700); }
.drawer-link.active { background: var(--g50); color: var(--g700); font-weight: 600; }
.drawer-link-icon { display: none; }
.drawer-link-arrow { margin-left: auto; color: var(--n300); font-size: 16px; transition: transform .2s; }
.drawer-link:hover .drawer-link-arrow { transform: translateX(2px); color: var(--n500); }
.drawer-sub { display: none; padding: 4px 0 4px 16px; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.drawer-sub.open { display: flex; }
.drawer-sub a { padding: 11px 16px; font-family: var(--f-thai); font-size: 14px; color: var(--n500); border-radius: 0; transition: all var(--t-fast); border-bottom: 1px solid var(--n50); }
.drawer-sub a:last-child { border-bottom: none; }
.drawer-sub a:hover { background: var(--g50); color: var(--g700); }
.drawer-divider { display: none; }

.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-tel { text-align: center; font-family: var(--f-thai); font-size: 12px; color: var(--n400); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  background: var(--g900);
  position: relative; overflow: hidden;
  min-height: min(90vh, 760px); display: flex; flex-direction: column;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(108deg,
    rgba(11,46,30,.88) 0%,
    rgba(11,46,30,.72) 45%,
    rgba(11,46,30,.38) 100%
  );
}
.hero-body {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; padding: 80px 0 64px;
}
.hero-content { max-width: 660px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--rpill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85);
  margin-bottom: 24px;
}
.hero-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g300); flex-shrink: 0; }
.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 20px;
}
.hero-h1 em { font-style: italic; color: var(--g300); }
.hero-desc { font-family: var(--f-thai); font-size: 17px; color: rgba(255,255,255,.72); line-height: 1.75; max-width: 50ch; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: var(--f-display); font-size: 36px; font-weight: 400; color: var(--white); line-height: 1;
}
.hero-stat-num sup { font-size: .55em; vertical-align: super; }
.hero-stat-label { font-family: var(--f-thai); font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }
/* Gradient bottom fade into next section */
.hero-fade { position: relative; z-index: 2; height: 80px; background: linear-gradient(to bottom, transparent, var(--white)); }

/* ═══════════════════════════════════════════════════════
   QUICK ACCESS BAR
═══════════════════════════════════════════════════════ */
.quick-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 0; }
.quick-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-bar-item {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px;
  border-right: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: background var(--t-fast); position: relative;
}
.quick-bar-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--g500); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.quick-bar-item:hover { background: var(--g50); }
.quick-bar-item:hover::after { transform: scaleX(1); }
.quick-bar-item:last-child { border-right: none; }
.qb-icon { width: 44px; height: 44px; border-radius: var(--r12); background: var(--g50); display: grid; place-items: center; flex-shrink: 0; transition: background var(--t-fast), box-shadow var(--t-fast); }
.quick-bar-item:hover .qb-icon { background: var(--g100); box-shadow: var(--sh-green); }
.qb-icon svg { width: 22px; height: 22px; stroke: var(--g600); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qb-title { font-family: var(--f-thai); font-size: 15px; font-weight: 600; color: var(--n900); margin-bottom: 2px; }
.qb-sub   { font-family: var(--f-thai); font-size: 12.5px; color: var(--n400); }

/* ═══════════════════════════════════════════════════════
   ABOUT / INTRO SECTION
═══════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.about-img-a { grid-row: 1 / 3; border-radius: var(--r20); overflow: hidden; }
.about-img-b { border-radius: var(--r20); overflow: hidden; }
.about-img-c { border-radius: var(--r20); overflow: hidden; background: var(--g600); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.about-img-c .num { font-family: var(--f-display); font-size: 40px; color: var(--white); line-height: 1; }
.about-img-c .desc { font-family: var(--f-thai); font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }
.about-images img { width: 100%; height: 100%; object-fit: cover; }
.about-checks { margin-top: 24px; display: grid; gap: 14px; }
.about-check { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--g500); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-icon svg { width: 12px; height: 12px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.check-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--n900); margin-bottom: 2px; }
.check-text span { font-family: var(--f-thai); font-size: 14px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   SERVICES GRID
═══════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item {
  background: var(--white); border: 1px solid var(--n100);
  border-radius: var(--r20); padding: 32px 28px;
  transition: all var(--t-base) var(--ease); cursor: pointer; text-decoration: none;
  display: block; position: relative; overflow: hidden;
}
.service-item::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g500), var(--g300));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease);
}
.service-item:hover { box-shadow: var(--sh3); transform: translateY(-4px); border-color: var(--g200); }
.service-item:hover::before { transform: scaleX(1); }
.service-item:hover .svc-icon { background: var(--g600); }
.service-item:hover .svc-icon svg { stroke: white; }
.service-num { font-family: var(--f-display); font-size: 12px; font-style: italic; color: var(--n300); margin-bottom: 18px; letter-spacing: .06em; }
.svc-icon { width: 52px; height: 52px; border-radius: var(--r16); background: var(--g50); display: grid; place-items: center; margin-bottom: 20px; transition: background var(--t-base); }
.svc-icon svg { width: 26px; height: 26px; stroke: var(--g600); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t-base); }
.service-item h3 { font-family: var(--f-body); font-size: 18px; font-weight: 600; color: var(--n900); margin-bottom: 10px; }
.service-item p { font-family: var(--f-thai); font-size: 14px; color: var(--muted); line-height: 1.7; }
.svc-arrow { display: flex; align-items: center; gap: 5px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--g600); transition: gap var(--t-base); }
.service-item:hover .svc-arrow { gap: 9px; }
.svc-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════
   DOCTORS
═══════════════════════════════════════════════════════ */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor-card {
  background: var(--white); border: 1px solid var(--n100);
  border-radius: var(--r20); overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.doctor-card:hover { box-shadow: var(--sh3); transform: translateY(-4px); }
.doctor-photo-wrap { position: relative; overflow: hidden; }
.doctor-photo-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; transition: transform var(--t-slow) var(--ease); }
.doctor-card:hover .doctor-photo-wrap img { transform: scale(1.04); }
.doctor-photo-badge { position: absolute; bottom: 12px; left: 12px; }
.doctor-info { padding: 18px 20px; }
.doctor-name { font-family: var(--f-display); font-size: 18px; font-weight: 500; color: var(--n900); margin-bottom: 4px; line-height: 1.3; }
.doctor-spec { font-family: var(--f-thai); font-size: 13px; color: var(--g600); font-weight: 600; margin-bottom: 10px; }
.doctor-schedule { display: flex; align-items: center; gap: 6px; font-family: var(--f-thai); font-size: 13px; color: var(--muted); }
.doctor-schedule svg { width: 13px; height: 13px; stroke: var(--n400); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   PROMOTIONS
═══════════════════════════════════════════════════════ */
.promo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-featured {
  background: var(--g900); border-radius: var(--r24); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.promo-featured-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.promo-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.promo-featured:hover .promo-featured-img img { transform: scale(1.04); }
.promo-featured-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,46,30,.7) 0%, transparent 60%); }
.promo-featured-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.promo-featured-body h3 { font-family: var(--f-display); font-size: 26px; color: var(--white); margin: 10px 0 10px; }
.promo-featured-body p { font-family: var(--f-thai); font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; flex: 1; }
.promo-price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0; }
.price-main { font-family: var(--f-display); font-size: 40px; color: var(--white); font-weight: 400; line-height: 1; }
.price-unit { font-family: var(--f-thai); font-size: 14px; color: rgba(255,255,255,.55); }
.price-old  { font-family: var(--f-thai); font-size: 14px; color: rgba(255,255,255,.4); text-decoration: line-through; }
.promo-stack { display: flex; flex-direction: column; gap: 16px; }
.promo-card {
  background: var(--white); border: 1px solid var(--n100); border-radius: var(--r20);
  overflow: hidden; display: flex; gap: 0;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.promo-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); }
.promo-card-img { width: 130px; flex-shrink: 0; overflow: hidden; }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); }
.promo-card:hover .promo-card-img img { transform: scale(1.06); }
.promo-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.promo-card-body h4 { font-family: var(--f-body); font-size: 16px; font-weight: 600; color: var(--n900); margin-bottom: 4px; }
.promo-card-body p { font-family: var(--f-thai); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.promo-card-price { display: flex; align-items: baseline; gap: 6px; }
.pc-price { font-family: var(--f-display); font-size: 22px; color: var(--g600); font-weight: 500; }
.pc-old   { font-family: var(--f-thai); font-size: 12px; color: var(--n300); text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════
   ACTIVITY GALLERY
═══════════════════════════════════════════════════════ */
.activity-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; }
.activity-item { border-radius: var(--r16); overflow: hidden; position: relative; cursor: pointer; }
.activity-item.span-col { grid-column: 1; grid-row: 1 / 3; }
.activity-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.activity-item:hover img { transform: scale(1.06); }
.activity-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,46,30,.75) 0%, transparent 55%); opacity: 0; transition: opacity var(--t-base); }
.activity-item:hover .activity-overlay { opacity: 1; }
.activity-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; transform: translateY(6px); opacity: 0; transition: all var(--t-base); }
.activity-item:hover .activity-label { transform: translateY(0); opacity: 1; }
.activity-label-date { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g300); margin-bottom: 4px; }
.activity-label-title { font-family: var(--f-thai); font-size: 15px; font-weight: 600; color: white; }

/* ═══════════════════════════════════════════════════════
   ROOMS
═══════════════════════════════════════════════════════ */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.room-card { background: var(--white); border: 1px solid var(--n100); border-radius: var(--r20); overflow: hidden; transition: all var(--t-base) var(--ease); display: flex; flex-direction: column; }
.room-card:hover { box-shadow: var(--sh3); transform: translateY(-4px); }
.room-card-img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform var(--t-slow); }
.room-card:hover .room-card-img { transform: scale(1.04); }
.room-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.room-card-body h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; color: var(--n900); margin: 8px 0 8px; }
.room-card-body p { font-family: var(--f-thai); font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   CONTRACTS
═══════════════════════════════════════════════════════ */
.contracts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.contract-logo {
  background: var(--white); border: 1px solid var(--n100); border-radius: var(--r16);
  aspect-ratio: 3/2; display: flex; align-items: center; justify-content: center; padding: 14px;
  transition: all var(--t-base) var(--ease);
}
.contract-logo:hover { box-shadow: var(--sh2); border-color: var(--g200); transform: translateY(-2px); }
.contract-logo img { max-height: 36px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(30%); transition: filter var(--t-base); }
.contract-logo:hover img { filter: grayscale(0%); }

/* ═══════════════════════════════════════════════════════
   ORG CHART (text-based)
═══════════════════════════════════════════════════════ */
.org-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-root { background: var(--g700); color: white; padding: 18px 40px; border-radius: var(--r12); text-align: center; box-shadow: var(--sh-green); }
.org-root strong { display: block; font-size: 17px; font-weight: 700; }
.org-root span { font-family: var(--f-thai); font-size: 13px; color: rgba(255,255,255,.75); }
.org-line-v { width: 2px; height: 32px; background: var(--n200); margin: 0 auto; }
.org-line-h { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 0; width: 100%; }
.org-line-h::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--n200); }
.org-branch { display: flex; flex-direction: column; align-items: center; flex: 1; }
.org-branch-line { width: 2px; height: 24px; background: var(--n200); }
.org-deputy { background: var(--g100); color: var(--g800); padding: 14px 24px; border-radius: var(--r12); border: 1px solid var(--g200); text-align: center; min-width: 200px; }
.org-deputy strong { display: block; font-size: 14px; font-weight: 700; }
.org-deputy span { font-family: var(--f-thai); font-size: 12px; color: var(--g600); }
.org-dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; width: 100%; }
.org-dept-col { background: var(--white); border: 1px solid var(--n100); border-radius: var(--r16); overflow: hidden; }
.org-dept-head { padding: 16px 20px; border-bottom: 1px solid var(--n100); }
.org-dept-head.green { background: var(--g50); }
.org-dept-head.amber { background: #fffbeb; }
.org-dept-head h4 { font-size: 15px; font-weight: 700; color: var(--g800); }
.org-dept-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.org-dept-sub h5 { font-size: 13px; font-weight: 700; color: var(--n700); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.org-dept-sub h5::before { content: ''; width: 3px; height: 12px; background: var(--g500); border-radius: 2px; flex-shrink: 0; }
.org-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.org-chip { padding: 3px 10px; background: var(--g50); border: 1px solid var(--g200); border-radius: var(--rpill); font-size: 12px; color: var(--g700); font-family: var(--f-thai); }
.org-chip.outsource { background: #fffbeb; border-color: rgba(184,145,42,.2); color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   JOB / CAREER
═══════════════════════════════════════════════════════ */
.job-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.job-info-card { background: var(--white); border: 1px solid var(--n100); border-radius: var(--r20); box-shadow: var(--sh2); padding: 36px; }
.job-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.job-row:last-child { border-bottom: none; }
.job-row-icon { width: 40px; height: 40px; border-radius: var(--r12); background: var(--g50); display: grid; place-items: center; flex-shrink: 0; }
.job-row-icon svg { width: 20px; height: 20px; stroke: var(--g600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.job-row-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n400); margin-bottom: 3px; }
.job-row-value { font-family: var(--f-thai); font-size: 15px; font-weight: 600; color: var(--n900); }
.job-row-value a { color: var(--g600); }
.job-poster { border-radius: var(--r20); overflow: hidden; box-shadow: var(--sh4); }
.job-poster img { width: 100%; display: block; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.why-card { padding: 28px; background: var(--white); border: 1px solid var(--n100); border-radius: var(--r20); text-align: center; }
.why-icon { font-size: 32px; margin-bottom: 14px; }
.why-card h4 { font-size: 16px; font-weight: 700; color: var(--n900); margin-bottom: 8px; }
.why-card p { font-family: var(--f-thai); font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--white); border: 1px solid var(--n100); border-radius: var(--r20); box-shadow: var(--sh2); padding: 36px; }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-row-icon { width: 44px; height: 44px; border-radius: var(--r12); background: var(--g50); display: grid; place-items: center; flex-shrink: 0; }
.contact-row-icon svg { width: 20px; height: 20px; stroke: var(--g600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-row-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n400); margin-bottom: 3px; }
.contact-row-value { font-family: var(--f-thai); font-size: 15px; font-weight: 600; color: var(--n900); }
.contact-row-value a { color: var(--g600); transition: color var(--t-fast); }
.contact-row-value a:hover { color: var(--g700); }
.map-box { border-radius: var(--r20); overflow: hidden; border: 1px solid var(--n100); box-shadow: var(--sh2); }
.map-box iframe { display: block; width: 100%; height: 440px; border: none; }

/* ═══════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════ */
.cta-section { background: var(--g800); position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 120% at 110% 50%, rgba(34,135,78,.25) 0%, transparent 60%),
              radial-gradient(ellipse 50% 80% at -10% 50%, rgba(34,135,78,.15) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding: 96px 0; }
.cta-inner h2 { font-family: var(--f-display); font-size: clamp(32px,4.5vw,52px); color: var(--white); margin: 10px 0 16px; font-weight: 400; }
.cta-inner p { font-family: var(--f-thai); font-size: 17px; color: rgba(255,255,255,.65); max-width: 50ch; margin: 0 auto 36px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════════════ */
.page-hero { background: var(--g900); padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 90% 50%, rgba(34,135,78,.2) 0%, transparent 65%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.page-hero h1 { font-family: var(--f-display); color: var(--white); font-size: clamp(32px,4.5vw,56px); font-weight: 400; margin: 10px 0 16px; }
.page-hero p { font-family: var(--f-thai); color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.75; }
.page-hero-img { border-radius: var(--r20); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh4); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-text { max-width: 680px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer { background: var(--n900); color: rgba(255,255,255,.65); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-logo { height: 42px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand h3 { font-family: var(--f-display); font-size: 19px; color: var(--white); margin-bottom: 12px; font-weight: 500; }
.footer-brand p { font-family: var(--f-thai); font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.5); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.footer-badge { padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--rpill); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-family: var(--f-thai); font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--white); }
.footer-contact li { margin-bottom: 12px; }
.footer-contact li strong { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 3px; }
.footer-contact a, .footer-contact span { font-family: var(--f-thai); font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 12px; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.3); transition: color var(--t-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ═══════════════════════════════════════════════════════
   MISC / SHARED
═══════════════════════════════════════════════════════ */
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); align-items: flex-start; font-family: var(--f-thai); }
.info-list li:last-child { border-bottom: none; }
.info-list strong { min-width: 120px; color: var(--n900); flex-shrink: 0; font-weight: 600; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--n100); }
.timeline-item { position: relative; padding: 0 0 28px 28px; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--g500); border: 2px solid white; box-shadow: 0 0 0 2px var(--g500); }
.tl-year { font-family: var(--f-display); font-style: italic; color: var(--g600); font-size: 13px; margin-bottom: 2px; }
.tl-title { font-size: 15px; font-weight: 600; color: var(--n900); margin-bottom: 3px; }
.tl-desc { font-family: var(--f-thai); font-size: 14px; color: var(--muted); }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,.1); border: none; color: white; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 22px; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.2); }

/* Utility */
.mt-4  { margin-top:  4px; }  .mt-8  { margin-top:  8px; }  .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }  .mt-20 { margin-top: 20px; }  .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }  .mt-40 { margin-top: 40px; }  .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.anim-up   { animation: fadeUp  .65s var(--ease) both; }
.anim-in   { animation: fadeIn  .65s var(--ease) both; }
.d1 { animation-delay: .1s; }  .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }  .d4 { animation-delay: .4s; }
.d5 { animation-delay: .5s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .doctors-grid     { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 960px) {
  .section          { padding: 72px 0; }
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .promo-layout     { grid-template-columns: 1fr; }
  .promo-stack      { grid-template-columns: 1fr 1fr; display: grid; gap: 16px; }
  .activity-grid    { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .activity-item.span-col { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/7; }
  .rooms-grid       { grid-template-columns: 1fr 1fr; }
  .contracts-grid   { grid-template-columns: repeat(4, 1fr); }
  .job-layout       { grid-template-columns: 1fr; }
  .contact-layout   { grid-template-columns: 1fr; }
  .page-hero-grid   { grid-template-columns: 1fr; }
  .quick-bar-inner  { grid-template-columns: 1fr 1fr; }
  .org-dept-grid    { grid-template-columns: 1fr; }
  .two-col          { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .hamburger              { display: flex; }
  .main-nav .nav-item,
  .main-nav .nav-has-sub  { display: none; }
  .nav-call-mobile        { display: inline-flex; }
}

@media (max-width: 768px) {
  .section          { padding: 56px 0; }
  .wrap             { width: min(100% - 32px, var(--container)); }
  .topbar           { display: none; }
  .hamburger        { display: flex; }
  .main-nav .nav-item, .main-nav .nav-has-sub { display: none; }
  .nav-call-mobile  { display: inline-flex; }
  .services-grid    { grid-template-columns: 1fr; }
  .doctors-grid     { grid-template-columns: 1fr 1fr; }
  .rooms-grid       { grid-template-columns: 1fr; }
  .contracts-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .cta-btns         { flex-direction: column; align-items: center; }
  .promo-stack      { grid-template-columns: 1fr; }
  .hero-stats       { gap: 24px; }
  .why-grid         { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .doctors-grid     { grid-template-columns: 1fr; }
  .contracts-grid   { grid-template-columns: repeat(2, 1fr); }
  .quick-bar-inner  { grid-template-columns: 1fr; }
  .activity-item.span-col { grid-column: 1; }
  .activity-grid    { grid-template-columns: 1fr; }
  .hero-h1          { font-size: clamp(32px,9vw,48px); }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE PATCH — inline grid overrides
   fixes all style="grid-template-columns:..." in HTML
═══════════════════════════════════════════════════════ */

/* ── Hero bottom padding fix on small screens ─────── */
@media (max-width: 768px) {
  .hero-body { padding: 56px 0 40px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-num { font-size: 28px; }

  /* Quick bar: 1-col on mobile */
  .quick-bar-inner { grid-template-columns: 1fr !important; }

  /* Page hero images: hide on very small to save space */
  .page-hero-grid { grid-template-columns: 1fr !important; }
  .page-hero-grid .page-hero-img { display: none; }

  /* About page – vision/mission side-by-side → stack */
  .about-vm-cols { grid-template-columns: 1fr !important; }
  /* Quality grid 3-col → 2-col */
  .about-quality-grid { grid-template-columns: 1fr 1fr !important; }
  /* Service list 2-col → 1-col */
  .about-service-list { grid-template-columns: 1fr !important; }
  /* Quick links 3-col → 2-col */
  .about-links-grid { grid-template-columns: 1fr 1fr !important; }

  /* Executive page */
  .exec-layout-grid { grid-template-columns: 1fr !important; }
  .exec-detail-grid { grid-template-columns: 1fr !important; }

  /* History / general two-col */
  .history-two-col { grid-template-columns: 1fr !important; }
  .history-img-row { grid-template-columns: 1fr !important; }

  /* Contact photo row */
  .contact-photo-row { grid-template-columns: 1fr 1fr !important; }

  /* Contract steps */
  .contract-steps-grid { grid-template-columns: 1fr !important; }

  /* Room info posters */
  .room-posters-grid { grid-template-columns: 1fr 1fr !important; }
  .room-mini-gallery { grid-template-columns: 1fr 1fr !important; }

  /* Promotion golden row */
  .promo-extra-row { grid-template-columns: 1fr !important; }

  /* Activity photo strip */
  .activity-photo-strip { grid-template-columns: 1fr 1fr !important; }
  .activity-cards-grid { grid-template-columns: 1fr !important; }

  /* Footer grid already handled, confirm */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* CTA banner */
  .cta-btns { flex-direction: column !important; align-items: center !important; }
  .cta-btns .btn { width: 100% !important; max-width: 320px; justify-content: center; }
}

@media (max-width: 540px) {
  /* About quality grid → 1-col */
  .about-quality-grid { grid-template-columns: 1fr !important; }
  /* About links → 1-col */
  .about-links-grid   { grid-template-columns: 1fr !important; }
  /* Contract logo grid */
  .contracts-full-grid { grid-template-columns: repeat(2,1fr) !important; }
  /* Room posters → 1-col */
  .room-posters-grid  { grid-template-columns: 1fr !important; }
  /* Contact photo → 1-col */
  .contact-photo-row  { grid-template-columns: 1fr !important; }
  /* Activity photo strip → 2-col */
  .activity-photo-strip { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 400px) {
  .about-links-grid { grid-template-columns: 1fr !important; }
  .wrap { width: min(100% - 24px, var(--container)); }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}

/* ── Generic responsive grid classes ─────────────── */
.resp-two-col,
.resp-three-col,
.resp-four-col,
.resp-exec-layout,
.resp-grid { display: grid; }   /* base already set inline */

@media (max-width: 960px) {
  .resp-exec-layout { grid-template-columns: 1fr !important; }
  .resp-four-col    { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
  .resp-two-col     { grid-template-columns: 1fr !important; }
  .resp-three-col   { grid-template-columns: 1fr 1fr !important; }
  .resp-four-col    { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .resp-three-col   { grid-template-columns: 1fr !important; }
  .resp-four-col    { grid-template-columns: 1fr 1fr !important; }
}

/* hamburger alignment */
.hamburger { align-items: center; justify-content: center; }

/* ── Promo layout fix (featured + stack) ─────────── */
@media (max-width: 768px) {
  .promo-featured { grid-template-columns: 1fr !important; border-radius: var(--r16); }
  .promo-featured-img { aspect-ratio: 16/9; }
  .promo-featured-body { padding: 24px; }
  .price-big { font-size: 36px; }
}

/* ── Activity grid fix ───────────────────────────── */
@media (max-width: 768px) {
  .activity-grid { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .activity-item.span-col { grid-column: 1 !important; grid-row: auto !important; aspect-ratio: 16/9; }
  .activity-item { aspect-ratio: 4/3; }
}

/* ── Doctor cards: prevent overflow on mobile ────── */
@media (max-width: 540px) {
  .doctor-photo-wrap img { aspect-ratio: 4/3; }
}

/* ── Contracts grid: adjust at small sizes ───────── */
@media (max-width: 400px) {
  .contracts-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── Footer bottom: stack on mobile ─────────────── */
@media (max-width: 480px) {
  .footer-bottom > div { flex-direction: column; gap: 8px; }
}

/* ── Hero: fix overflow on very small screens ────── */
@media (max-width: 400px) {
  .hero { min-height: auto; }
  .hero-kicker { font-size: 10px; padding: 5px 10px; }
  .hero-pill { font-size: 12px; padding: 5px 10px; }
}

/* ── Service items: full-width link on mobile ────── */
@media (max-width: 480px) {
  .service-item { padding: 22px 18px; }
}

/* ── Promo card: prevent img overflow ────────────── */
@media (max-width: 540px) {
  .promo-card { flex-direction: column !important; }
  .promo-card-img { width: 100% !important; height: 180px; }
  .promo-card-img img { height: 180px; }
}

/* ── Org chart: mobile ───────────────────────────── */
@media (max-width: 768px) {
  .org-line-h { flex-direction: column !important; align-items: center !important; }
  .org-line-h::before { display: none !important; }
  .org-branch { width: 100%; max-width: 280px; }
  .org-deputy { min-width: unset; width: 100%; }
  .org-root   { min-width: unset; padding: 16px 24px; }
}

/* ── Job layout ──────────────────────────────────── */
@media (max-width: 768px) {
  .job-layout { grid-template-columns: 1fr !important; }
  .why-grid   { grid-template-columns: 1fr !important; }
}
@media (max-width: 960px) {
  .job-layout { grid-template-columns: 1fr !important; }
}

/* ── Contact: map height on mobile ──────────────── */
@media (max-width: 540px) {
  .map-box iframe { height: 300px; }
}

/* ── Executive: photo full-width ─────────────────── */
@media (max-width: 900px) {
  .exec-layout-grid { grid-template-columns: 1fr !important; }
  .exec-detail-grid { grid-template-columns: 1fr !important; }
}

/* ── Room: mini gallery stays 2-col always ───────── */
@media (max-width: 400px) {
  .room-mini-gallery { grid-template-columns: 1fr 1fr !important; }
}
