/* ============================================================
   RSUD dr. ISKAK TULUNGAGUNG — Design System
   Website Resmi Rumah Sakit Umum Daerah
   Static multi-page site — shared stylesheet
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

/* ============================================================
   1. Design Tokens
   ============================================================ */
:root {
  /* Brand — medical teal + emerald */
  --brand:            #0E7490;   /* teal-700 */
  --brand-dark:       #155E75;   /* teal-800 */
  --brand-darker:     #0B3E4E;
  --brand-light:      #0891B2;   /* cyan-600 */
  --brand-lighter:    #22D3EE;
  --brand-soft:       #E0F2FE;   /* light wash */
  --accent:           #059669;   /* emerald-600 — health green */
  --accent-dark:      #047857;
  --accent-soft:      #D1FAE5;
  --emergency:        #DC2626;   /* IGD red */
  --emergency-dark:   #B91C1C;
  --emergency-soft:   #FEE2E2;
  --gold:             #F59E0B;

  /* Surfaces */
  --bg:               #FFFFFF;
  --bg-soft:          #F4F8FB;
  --bg-mute:          #EAF2F7;
  --bg-card:          #FFFFFF;
  --bg-inverse:       #072530;
  --bg-glass:         rgba(255, 255, 255, 0.82);
  --overlay:          rgba(7, 37, 48, 0.62);

  /* Text */
  --text:             #0F2A34;
  --text-soft:        #4A6470;
  --text-mute:        #7C97A2;
  --text-inverse:     #FFFFFF;
  --text-on-brand:    #FFFFFF;

  /* Lines */
  --border:           #DCE8EF;
  --border-soft:      #EBF2F6;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 62, 78, 0.06);
  --shadow-sm: 0 2px 6px rgba(11, 62, 78, 0.08);
  --shadow-md: 0 6px 18px -4px rgba(11, 62, 78, 0.14), 0 2px 6px -2px rgba(11, 62, 78, 0.08);
  --shadow-lg: 0 18px 40px -12px rgba(11, 62, 78, 0.22), 0 6px 14px -6px rgba(11, 62, 78, 0.12);
  --shadow-brand: 0 12px 28px -10px rgba(14, 116, 144, 0.5);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Typography */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --max: 1240px;
  --nav-h: 72px;
  --topbar-h: 40px;

  /* Motion */
  --t-fast: 140ms ease;
  --t: 240ms ease;
  --t-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  --gradient-brand: linear-gradient(135deg, #0E7490 0%, #0891B2 55%, #059669 130%);
  --gradient-hero: linear-gradient(120deg, #0B3E4E 0%, #0E7490 48%, #0F766E 100%);
}

/* ---- Dark mode ---- */
[data-theme="dark"] {
  --bg:          #0A1D24;
  --bg-soft:     #0D242D;
  --bg-mute:     #123039;
  --bg-card:     #0F2A34;
  --bg-glass:    rgba(10, 29, 36, 0.85);
  --overlay:     rgba(0, 0, 0, 0.66);

  --text:        #E6F1F5;
  --text-soft:   #A5C0CB;
  --text-mute:   #6E8B96;
  --text-inverse:#E6F1F5;

  --border:      #1B3B45;
  --border-soft: #16333C;

  --brand-soft:  rgba(8, 145, 178, 0.16);
  --accent-soft: rgba(5, 150, 105, 0.18);
  --emergency-soft: rgba(220, 38, 38, 0.20);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.45);
  --shadow-md: 0 6px 18px -4px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 40px -12px rgba(0,0,0,0.6);
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-soft); }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   3. Layout Helpers
   ============================================================ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--mute { background: var(--bg-mute); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.hidden { display: none !important; }

/* ============================================================
   4. Section Headings
   ============================================================ */
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 0.4rem 0.85rem; border-radius: var(--r-full); margin-bottom: var(--sp-4);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { font-size: 1.05rem; }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: var(--r-full); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all var(--t); text-decoration: none;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(14,116,144,0.6); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--emergency { background: var(--emergency); color: #fff; box-shadow: 0 10px 24px -8px rgba(220,38,38,0.55); }
.btn--emergency:hover { background: var(--emergency-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--border); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.btn--ghost { background: var(--bg-mute); color: var(--text); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn--white { background: #fff; color: var(--brand-dark); }
.btn--white:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ============================================================
   6. Top Utility Bar
   ============================================================ */
.topbar {
  background: var(--brand-darker); color: #cfe8f0; font-size: 0.85rem;
  height: var(--topbar-h); display: flex; align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__left { display: flex; align-items: center; gap: 1.4rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; color: #cfe8f0; }
.topbar__item svg { width: 15px; height: 15px; opacity: 0.85; }
.topbar__item strong { color: #fff; }
.topbar__social { display: flex; gap: 0.75rem; }
.topbar__social a { color: #a9d3df; display: inline-flex; }
.topbar__social a:hover { color: #fff; }
@media (max-width: 780px) { .topbar__left .topbar__item--hide { display: none; } }

/* ============================================================
   7. Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; background: var(--bg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow var(--t), background var(--t);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__logo {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-brand);
  display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.brand__logo svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand__text span { font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.02em; }

.menu { display: flex; align-items: center; gap: 0.2rem; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.85rem;
  font-weight: 600; font-size: 0.94rem; color: var(--text); border-radius: var(--r-sm);
}
.menu > li > a:hover, .menu > li.active > a { color: var(--brand); background: var(--brand-soft); }
.menu > li > a .chev { width: 14px; height: 14px; transition: transform var(--t); }
.menu > li:hover > a .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--t); z-index: 120;
}
.menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm); color: var(--text-soft); font-size: 0.9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown a svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle, .nav__toggle {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: all var(--t);
}
.theme-toggle:hover, .nav__toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav__toggle { display: none; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav__toggle { display: grid; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0.15rem; background: var(--bg-card);
    padding: 1.25rem; overflow-y: auto; transform: translateX(100%); transition: transform var(--t-slow);
    box-shadow: var(--shadow-lg); z-index: 200;
  }
  .menu.open { transform: translateX(0); }
  .menu > li > a { padding: 0.85rem 0.75rem; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--border); border-radius: 0; margin: 0 0 0.4rem 0.75rem;
    padding: 0.15rem 0 0.15rem 0.4rem; display: none;
  }
  .menu > li.expanded .dropdown { display: block; }
  .menu > li:hover .dropdown { opacity: 1; }
  .nav-backdrop {
    position: fixed; inset: 0; background: var(--overlay); opacity: 0; visibility: hidden;
    transition: all var(--t); z-index: 150;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ============================================================
   8. Hero
   ============================================================ */
.hero { position: relative; background: var(--gradient-hero); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 15%, rgba(34,211,238,0.25), transparent 45%),
              radial-gradient(circle at 12% 90%, rgba(5,150,105,0.28), transparent 42%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 0.45rem 1rem;
  border-radius: var(--r-full); font-size: 0.82rem; font-weight: 600; margin-bottom: var(--sp-5);
  backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero__lead { color: rgba(255,255,255,0.9); font-size: 1.12rem; max-width: 540px; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: var(--sp-6); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
.hero__stat b { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; display: block; }
.hero__stat span { font-size: 0.85rem; color: rgba(255,255,255,0.82); }

.hero__card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-xl); padding: var(--sp-6); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; margin-bottom: var(--sp-4); }
.hero__visual { display: grid; place-items: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* Emergency strip inside hero card */
.emg-card {
  background: rgba(220,38,38,0.16); border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-lg); padding: var(--sp-5); color: #fff;
}
.emg-card .emg-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--emergency); display: grid; place-items: center; }
.emg-card b { font-size: 1.7rem; font-family: var(--font-head); }

/* ============================================================
   9. Page Header (interior pages)
   ============================================================ */
.page-hero { position: relative; background: var(--gradient-hero); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(34,211,238,0.22), transparent 44%);
}
.page-hero__inner { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin-bottom: var(--sp-4); }
.breadcrumb a { color: rgba(255,255,255,0.82); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.55); }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* ============================================================
   10. Cards
   ============================================================ */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--accent { background: var(--accent-soft); color: var(--accent); }
.card__icon--emergency { background: var(--emergency-soft); color: var(--emergency); }
.card h3 { margin-bottom: var(--sp-2); font-size: 1.2rem; }
.card p { font-size: 0.95rem; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--sp-4); font-weight: 600; font-size: 0.9rem; }
.card__link svg { width: 16px; height: 16px; transition: transform var(--t); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature/service card with top accent */
.svc-card { position: relative; overflow: hidden; }
.svc-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: var(--gradient-brand); transform: scaleX(0); transform-origin:left; transition: transform var(--t); }
.svc-card:hover::before { transform: scaleX(1); }

/* Stat tile */
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); line-height: 1; }
.stat__num span { color: var(--accent); }
.stat__label { color: var(--text-soft); font-size: 0.9rem; margin-top: var(--sp-2); }

/* News card */
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__img { aspect-ratio: 16/10; background: var(--gradient-brand); position: relative; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__cat { position: absolute; top: 12px; left: 12px; background: var(--bg-card); color: var(--brand); font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: var(--r-full); }
.news-card__body { padding: var(--sp-5); }
.news-card__meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-mute); margin-bottom: var(--sp-2); }
.news-card__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.news-card__body h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.news-card__body h3 a { color: var(--text); }
.news-card__body h3 a:hover { color: var(--brand); }

/* Doctor card */
.doctor-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; text-align: center; transition: transform var(--t), box-shadow var(--t); }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-card__photo { aspect-ratio: 1; background: linear-gradient(160deg, var(--brand-soft), var(--accent-soft)); display: grid; place-items: center; color: var(--brand); position: relative; }
.doctor-card__photo svg { width: 64px; height: 64px; opacity: 0.55; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: var(--sp-4); }
.doctor-card__body h4 { margin-bottom: 0.15rem; }
.doctor-card__spec { color: var(--brand); font-size: 0.85rem; font-weight: 600; }
.doctor-card__sched { font-size: 0.8rem; color: var(--text-mute); margin-top: var(--sp-2); }

/* ============================================================
   11. Badges / chips / pills
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand); }
.badge--accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge--emergency { background: var(--emergency-soft); color: var(--emergency); }
.badge--gold { background: rgba(245,158,11,0.15); color: #B45309; }
.badge--gray { background: var(--bg-mute); color: var(--text-soft); }
.badge--open { background: var(--accent-soft); color: var(--accent-dark); }
.badge--closed { background: var(--emergency-soft); color: var(--emergency); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg-card); font-size: 0.88rem; font-weight: 500; color: var(--text-soft); cursor: pointer; transition: all var(--t); }
.chip:hover, .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   12. Icon list / feature list
   ============================================================ */
.feature-list { display: grid; gap: var(--sp-3); }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-soft); }
.feature-list li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.icon-box { display: flex; gap: var(--sp-4); }
.icon-box__icon { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.icon-box__icon svg { width: 26px; height: 26px; }
.icon-box h4 { margin-bottom: 0.25rem; }
.icon-box p { font-size: 0.92rem; }

/* ============================================================
   13. Tables (schedule / tariff)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.92rem; }
table.data thead th { background: var(--brand); color: #fff; font-weight: 600; font-family: var(--font-head); white-space: nowrap; }
table.data thead th:first-child { border-top-left-radius: 0; }
table.data tbody tr { border-top: 1px solid var(--border); }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody tr:hover { background: var(--brand-soft); }
table.data td strong { color: var(--text); }
table.data .price { font-family: var(--font-head); font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ============================================================
   14. Accordion (FAQ)
   ============================================================ */
.accordion { display: grid; gap: var(--sp-3); }
.acc-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.acc-head:hover { color: var(--brand); }
.acc-head .acc-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; transition: transform var(--t); }
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.acc-body__inner { padding: 0 1.35rem 1.25rem; color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   15. Timeline (history)
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); margin-left: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.timeline__item h4 { margin: 0.2rem 0; }
.timeline__item p { font-size: 0.93rem; }

/* ============================================================
   16. Forms
   ============================================================ */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.field .req { color: var(--emergency); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; transition: all var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.field__hint { font-size: 0.8rem; color: var(--text-mute); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   17. Notices / Alerts
   ============================================================ */
.notice { display: flex; gap: 0.85rem; padding: 1rem 1.25rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-soft); }
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.notice__body { font-size: 0.92rem; color: var(--text-soft); }
.notice__body strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.notice--info { background: var(--brand-soft); border-color: transparent; } .notice--info svg { color: var(--brand); }
.notice--success { background: var(--accent-soft); border-color: transparent; } .notice--success svg { color: var(--accent); }
.notice--warn { background: rgba(245,158,11,0.12); border-color: transparent; } .notice--warn svg { color: var(--gold); }
.notice--emergency { background: var(--emergency-soft); border-color: transparent; } .notice--emergency svg { color: var(--emergency); }

/* ============================================================
   18. CTA Band
   ============================================================ */
.cta-band { position: relative; background: var(--gradient-brand); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); overflow: hidden; text-align: center; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 40%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto var(--sp-5); }
.cta-band .btn-group { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   19. Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
.gallery__item { position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--gradient-brand); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem 0.8rem; background: linear-gradient(transparent, rgba(7,37,48,0.85)); color: #fff; font-size: 0.88rem; font-weight: 600; opacity: 0; transition: opacity var(--t); }
.gallery__item:hover .gallery__cap { opacity: 1; }

/* ============================================================
   20. Tabs
   ============================================================ */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-6); }
.tab { padding: 0.7rem 1.15rem; font-weight: 600; font-size: 0.92rem; color: var(--text-soft); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--t); }
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   21. Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: var(--sp-7); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   22. Prose (article/detail content)
   ============================================================ */
.prose { max-width: 760px; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-6); font-size: 1.6rem; }
.prose h3 { margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text-soft); font-size: 1.02rem; line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ul li { margin-top: 0.5rem; }
.prose blockquote { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 1rem 1.5rem; border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; color: var(--text); }
.prose img { border-radius: var(--r-md); margin-block: var(--sp-5); }
.prose a { color: var(--brand); text-decoration: underline; }

/* ============================================================
   23. Map / contact
   ============================================================ */
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-mute); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; min-height: 320px; color: var(--text-mute); text-align: center; padding: 2rem; }
.map-placeholder svg { width: 48px; height: 48px; margin-bottom: 0.5rem; opacity: 0.5; }

/* ============================================================
   24. Footer
   ============================================================ */
.footer { background: var(--bg-inverse); color: #b9d3dc; padding-top: var(--sp-8); margin-top: 0; }
.footer a { color: #b9d3dc; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__brand .brand__text b { color: #fff; }
.footer__brand .brand__text span { color: #7fa8b5; }
.footer__brand p { color: #90b5c1; font-size: 0.92rem; margin-top: var(--sp-4); max-width: 320px; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: var(--sp-4); }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { font-size: 0.92rem; }
.footer__contact li { display: flex; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.75rem; color: #90b5c1; }
.footer__contact svg { width: 18px; height: 18px; color: var(--brand-lighter); flex-shrink: 0; margin-top: 3px; }
.footer__social { display: flex; gap: 0.6rem; margin-top: var(--sp-4); }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: all var(--t); }
.footer__social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--sp-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: #7fa8b5; }
.footer__bottom a { color: #7fa8b5; }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   25. Floating emergency button
   ============================================================ */
.float-emg { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--emergency); color: #fff; padding: 0.8rem 1.2rem; border-radius: var(--r-full); font-weight: 700; box-shadow: 0 12px 28px -8px rgba(220,38,38,0.6); transition: transform var(--t); }
.float-emg:hover { transform: scale(1.05); color: #fff; }
.float-emg svg { width: 20px; height: 20px; animation: ring 1.6s infinite; }
@keyframes ring { 0%,100%{transform:rotate(0);} 10%,30%{transform:rotate(-12deg);} 20%,40%{transform:rotate(12deg);} }
@media (max-width: 560px){ .float-emg span { display: none; } .float-emg { padding: 0.9rem; } }

/* ============================================================
   26. Utility / misc
   ============================================================ */
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--sp-6); }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.bg-pattern { background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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