/* ===== HOPITAL.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Mulish:wght@300;400;500;600;700&family=Azeret+Mono:wght@300;400;500&display=swap');

:root {
  --white:      #ffffff;
  --paper:      #f6f8f5;
  --ice:        #edf2ec;
  --mint:       #2d7d46;
  --mint-med:   #3a9958;
  --mint-light: #52b96e;
  --mint-pale:  #e3f2e7;
  --mint-dark:  #1a4d2b;
  --blue-acc:   #1e6fa8;
  --red-acc:    #c0392b;
  --amber-acc:  #d68910;
  --text-dark:  #1a2416;
  --text-body:  #334033;
  --text-mid:   #5a6b57;
  --text-light: #9aaa96;
  --border:     #d4e0d2;
  --shadow-s:   0 1px 4px rgba(45,125,70,.07);
  --shadow-m:   0 4px 18px rgba(45,125,70,.11);
  --shadow-l:   0 10px 40px rgba(45,125,70,.15);
  --font-head:  'Spectral', serif;
  --font-body:  'Mulish', sans-serif;
  --font-mono:  'Azeret Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-body);
  line-height: 1.75;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--mint); }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(45,125,70,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: 0;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--mint-light));
  width: 0%; z-index: 200; transition: width .1s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(246,248,245,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-s);
}

.nav-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--mint);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 3px; padding: 7px;
}
.nav-logo-icon .cross-h {
  width: 100%; height: 4px; background: white; border-radius: 2px;
}
.nav-logo-icon .cross-v {
  width: 4px; height: 100%; background: white; border-radius: 2px;
  position: absolute;
}
.nav-cross-wrap {
  width: 24px; height: 24px; position: relative;
  display: grid; place-items: center;
}
.nav-cross-wrap::before, .nav-cross-wrap::after {
  content: ''; position: absolute; background: white; border-radius: 2px;
}
.nav-cross-wrap::before { width: 14px; height: 4px; }
.nav-cross-wrap::after  { width: 4px; height: 14px; }

.nav-logo-name {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--text-dark); letter-spacing: .01em;
}
.nav-logo-sub {
  font-family: var(--font-mono); font-size: .62rem; color: var(--text-light);
  letter-spacing: .06em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .84rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--mint); }

.nav-emergency {
  background: var(--red-acc); color: white;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 6px; text-decoration: none;
  transition: background .2s;
  display: flex; align-items: center; gap: .4rem;
}
.nav-emergency:hover { background: #a93226; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, var(--mint-pale), #d4efd9);
  z-index: -1;
}
.hero-bg-pattern {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background-image:
    radial-gradient(circle, rgba(45,125,70,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--mint);
  background: var(--mint-pale); border: 1px solid rgba(45,125,70,.2);
  padding: .3rem .8rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700; color: var(--text-dark);
  line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--mint); }

.hero-desc {
  font-size: .97rem; color: var(--text-mid);
  max-width: 460px; line-height: 1.85; margin-bottom: 2.5rem; font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-p {
  background: var(--mint); color: white;
  font-size: .88rem; font-weight: 600;
  padding: .85rem 2rem; border-radius: 8px; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-s);
}
.btn-p:hover { background: var(--mint-dark); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-o {
  background: transparent; color: var(--mint);
  font-size: .88rem; font-weight: 600;
  padding: .85rem 1.8rem; border-radius: 8px; text-decoration: none;
  border: 1.5px solid var(--mint);
  transition: background .2s;
}
.btn-o:hover { background: var(--mint-pale); }

/* ── HERO VISUAL (right) ── */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1.2rem;
}

.info-card {
  background: var(--white); border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-m);
  border: 1px solid rgba(45,125,70,.1);
  transition: transform .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.ic-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ic-title { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--text-dark); }

.status-pill {
  font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .08em; padding: .22rem .6rem; border-radius: 100px;
}
.s-open  { background: #d1fae5; color: #065f46; }
.s-warn  { background: #fef3c7; color: #92400e; }
.s-full  { background: #fee2e2; color: #991b1b; }

/* ── STAT BAND ── */
.stat-band { background: var(--mint-dark); padding: 4rem 3rem; }
.stat-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.sb-n { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #a7d9b5; line-height: 1; }
.sb-l { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .4rem; font-weight: 500; }

/* ── SECTION ── */
.sec-wrap { max-width: 1200px; margin: 0 auto; padding: 5rem 3rem; position: relative; z-index: 1; }

.s-eyebrow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: .5rem; display: block; }
.s-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; color: var(--text-dark); }
.s-desc { font-size: .95rem; color: var(--text-mid); margin-top: .8rem; max-width: 600px; line-height: 1.8; font-weight: 300; }

/* ── SERVICE CARDS ── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--mint);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover { border-color: rgba(45,125,70,.3); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.svc-icon { width: 44px; height: 44px; background: var(--mint-pale); border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1.2rem; }
.svc-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: .5rem; }
.svc-desc { font-size: .86rem; color: var(--text-mid); line-height: 1.7; }
.svc-detail { margin-top: 1rem; font-family: var(--font-mono); font-size: .66rem; color: var(--mint); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
thead { background: var(--mint-pale); }
th {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mint-dark);
  padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border);
}
td { padding: .9rem 1.2rem; border-bottom: 1px solid rgba(45,125,70,.06); color: var(--text-body); }
tr:hover td { background: var(--mint-pale); }
tr:last-child td { border-bottom: none; }
.t-badge {
  font-family: var(--font-mono); font-size: .63rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .18rem .55rem; border-radius: 4px;
}
.tb-g { background: #d1fae5; color: #065f46; }
.tb-a { background: #fef3c7; color: #92400e; }
.tb-b { background: #dbeafe; color: #1e40af; }

/* ── ORG CHART ── */
.org-wrap { margin-top: 2.5rem; }
.org-level { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.org-box {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 1rem 1.5rem; text-align: center;
  min-width: 160px; transition: border-color .2s, box-shadow .2s;
}
.org-box:hover { border-color: var(--mint); box-shadow: var(--shadow-s); }
.org-box.primary { background: var(--mint); color: white; border-color: var(--mint); }
.org-box.primary .ob-name { color: white; }
.ob-name { font-family: var(--font-head); font-size: .9rem; font-weight: 600; color: var(--text-dark); margin-bottom: .2rem; }
.ob-role { font-family: var(--font-mono); font-size: .62rem; color: var(--text-light); letter-spacing: .06em; }
.org-box.primary .ob-role { color: rgba(255,255,255,.7); }
.org-connector { text-align: center; color: var(--mint); font-size: 1.2rem; margin: -.5rem 0; }

/* ── ACCORDION ── */
.acc { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 2rem; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-btn {
  width: 100%; background: none; border: none; padding: 1.2rem 1.5rem;
  text-align: left; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  color: var(--text-dark); transition: background .2s;
}
.acc-btn:hover { background: var(--mint-pale); }
.acc-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-pale); color: var(--mint);
  display: grid; place-items: center; font-size: .9rem;
  transition: transform .3s, background .2s; flex-shrink: 0;
}
.acc-item.open .acc-arrow { transform: rotate(180deg); background: var(--mint); color: white; }
.acc-body {
  max-height: 0; overflow: hidden; padding: 0 1.5rem;
  font-size: .88rem; color: var(--text-mid); line-height: 1.8;
  transition: max-height .4s, padding .3s;
}
.acc-item.open .acc-body { max-height: 500px; padding: 0 1.5rem 1.2rem; }

/* ── ALERT / INFO ── */
.alert-info { background: #dbeafe; border: 1px solid #bfdbfe; border-left: 4px solid var(--blue-acc); padding: 1.2rem 1.5rem; border-radius: 8px; font-size: .88rem; color: #1e3a5f; line-height: 1.75; margin-top: 1rem; }
.alert-warn { background: #fef9c3; border: 1px solid #fde68a; border-left: 4px solid var(--amber-acc); padding: 1.2rem 1.5rem; border-radius: 8px; font-size: .88rem; color: #78350f; line-height: 1.75; margin-top: 1rem; }

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.fi.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer { background: var(--text-dark); color: rgba(255,255,255,.35); padding: 3rem; }
.ft-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ft-brand { font-family: var(--font-head); font-size: 1.1rem; color: rgba(255,255,255,.7); font-weight: 600; }
.ft-copy { font-family: var(--font-mono); font-size: .7rem; }

@media(max-width:900px){
  .hero { grid-template-columns: 1fr; padding: 7rem 1.2rem 3rem; }
  .hero-bg, .hero-bg-pattern { display: none; }
  .hero-visual { display: none; }
  .stat-inner { grid-template-columns: repeat(2,1fr); }
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .sec-wrap { padding: 3rem 1.2rem; }
  footer { padding: 2rem 1.2rem; }
}
