/* ============================================================
   Ona-Ara Hospital — design system
   Brand: forest green + gold on warm cream. Caring for a healthy future.
   ============================================================ */

:root {
  /* Brand */
  --green-900: #0a3d24;
  --green-800: #0c4d2e;
  --green-700: #0d6b3f;
  --green-500: #1a9d5c;
  --green-100: #e4f2e9;
  --gold-600: #d99400;
  --gold-500: #f2a900;
  --gold-100: #fdf1d6;
  --navy: #0f2942;

  --cream: #fbf8f1;
  --cream-deep: #f4eee1;
  --paper: #ffffff;
  --ink: #17281f;
  --ink-soft: #4a5a51;
  --line: #e7e0d1;

  --shadow-sm: 0 1px 2px rgba(10, 61, 36, .06), 0 2px 8px rgba(10, 61, 36, .05);
  --shadow-md: 0 8px 24px rgba(10, 61, 36, .09);
  --shadow-lg: 0 24px 60px rgba(10, 61, 36, .16);

  --r: 16px;
  --r-lg: 26px;
  --maxw: 1180px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-900);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--green-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost { background: transparent; border-color: var(--green-700); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-100); }
.btn-white { background: #fff; color: var(--green-800); }

/* ---------- Emergency strip ---------- */
.emergency {
  background: var(--green-900); color: #fff;
  font-size: .88rem; letter-spacing: .01em;
}
.emergency .container {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center;
}
.emergency strong { color: var(--gold-500); }
.emergency a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 0 rgba(242,169,0,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,169,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,169,0,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.brand .name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--green-900); line-height: 1; }
.brand .tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold-500); transition: width .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green-800); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 85% -10%, var(--green-100) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 110%, var(--gold-100) 0%, transparent 50%),
    var(--cream);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.hero h1 span { color: var(--green-700); }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust .t-item { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-800); }
.hero-trust small { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 30px; position: relative; z-index: 2;
}
.hero-card .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-card h3 { color: var(--green-900); }
.mini-list { list-style: none; margin: 16px 0 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mini-list li:first-child { border-top: 0; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .8rem; }
.hero-float { position: absolute; z-index: 3; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md); font-weight: 700; color: var(--green-800); display: flex; align-items: center; gap: 10px; }
.hero-float.one { top: -22px; right: 8px; }
.hero-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { color: var(--green-900); margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }
.card.accent .ico { background: var(--gold-100); color: var(--gold-600); }

/* Section header helper */
.sec-head { max-width: 62ch; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; }

/* ---------- Values ---------- */
.value { display: flex; gap: 16px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.value .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-600); flex: none; }
.value h3 { font-size: 1.1rem; margin-bottom: 4px; }
.value p { font-size: .92rem; margin: 0; }

/* ---------- Split band ---------- */
.band { background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0%, rgba(242,169,0,.18), transparent 50%); }
.band h2 { color: #fff; position: relative; }
.band p { color: rgba(255,255,255,.82); position: relative; }
.band .btn { position: relative; }

/* ---------- Doctors ---------- */
.doc { text-align: center; }
.doc .avatar { width: 100%; aspect-ratio: 1/1; border-radius: var(--r); background: linear-gradient(160deg, var(--green-100), var(--gold-100)); display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.doc .avatar span { font-family: var(--font-display); font-size: 3rem; color: var(--green-700); }
.doc h3 { margin-bottom: 2px; }
.doc .role { color: var(--gold-600); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.doc .cred { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--ink); transition: border .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--ink-soft); }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.contact-method .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.contact-method h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-method p { margin: 0; font-size: .94rem; }
.contact-method a { color: var(--green-700); font-weight: 700; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background:
    radial-gradient(100% 100% at 90% 0%, var(--green-100), transparent 60%), var(--cream);
  padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .crumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--green-700); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 70px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; }
.site-footer a { color: rgba(255,255,255,.75); display: block; padding: 5px 0; transition: color .18s; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand .name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 32ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.55); }

/* ============================================================
   Johns-Hopkins-style components (full-bleed hero, tiles, stats)
   ============================================================ */

/* Full-bleed cinematic hero */
.hero-full {
  position: relative; min-height: 82vh; display: grid; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-full .hero-bg { /* photo/branded layer — add background-image:url(...) inline for a real photo */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 80% 10%, #12633b 0%, transparent 60%),
    linear-gradient(135deg, #0a3d24 0%, #0d5a35 45%, #0a3d24 100%);
  background-size: cover; background-position: center;
}
.hero-full::before { /* dark overlay — always sits on top of the photo for legible text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,48,29,.30) 0%, rgba(8,48,29,.52) 55%, rgba(8,48,29,.88) 100%);
}
.hero-full::after { /* faint medical texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 34px 34px; pointer-events: none;
}
.hero-full .container { padding-top: 90px; padding-bottom: 70px; position: relative; }
.hero-full .eyebrow { color: var(--gold-500); }
.hero-full .eyebrow::before { background: var(--gold-500); }
.hero-full h1 { color: #fff; font-weight: 500; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-full .lead { color: rgba(255,255,255,.9); max-width: 54ch; }
.hero-full .hero-actions { margin-top: 30px; }
.hero-photo-note {
  position: absolute; bottom: 14px; right: 16px; z-index: 2;
  font-size: .72rem; color: rgba(255,255,255,.6); background: rgba(0,0,0,.25);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* Quick-action tiles (Hopkins "Our Services / Your Visit / Directions / Book") */
.tiles {
  position: relative; z-index: 5; margin-top: -56px; margin-bottom: 20px;
}
.tiles .grid-4 { gap: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 26px;
  border-right: 1px solid var(--line); transition: background .2s ease; position: relative;
}
.tile:last-child { border-right: 0; }
.tile:hover { background: var(--green-100); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.tile:nth-child(2) .ico { background: var(--gold-100); color: var(--gold-600); }
.tile h3 { font-size: 1.15rem; margin: 4px 0 0; }
.tile p { font-size: .9rem; margin: 0; }
.tile .go { margin-top: auto; color: var(--green-700); font-weight: 700; font-size: .88rem; }

/* Credibility stat row */
.stats { background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: 48px clamp(24px,5vw,60px); }
.stats .grid-4 { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); color: var(--gold-500); line-height: 1; }
.stat span { font-size: .9rem; color: rgba(255,255,255,.8); letter-spacing: .02em; }

/* Facility / photo-slot band */
.facility { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.facility .copy { padding: clamp(30px,5vw,56px); background: var(--paper); }
.facility .photo { min-height: 340px; position: relative; background: var(--green-900); }
.facility .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Photo gallery tiles */
.photo-tile { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; margin: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(10,61,36,.9)); }

/* Where-to-go-for-care strip */
.care-guide { background: var(--gold-100); border: 1px solid #f2dfa8; border-radius: var(--r-lg); padding: clamp(28px,4vw,44px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.care-guide .ico-lg { width: 64px; height: 64px; border-radius: 16px; background: var(--gold-500); color: var(--green-900); display: grid; place-items: center; flex: none; }
.care-guide h2 { margin: 0 0 6px; }
.care-guide .txt { flex: 1; min-width: 240px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Hidden state only applies once JS confirms it can reveal, and never if the
   user prefers reduced motion — so content is always visible without JS. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(22px); }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .tiles .grid-4 { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(2) { border-right: 0; }
  .tile { border-bottom: 1px solid var(--line); }
  .facility { grid-template-columns: 1fr; }
  .facility .photo { min-height: 240px; order: -1; }
  .hero-full { min-height: 0; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--cream); flex-direction: column; align-items: flex-start; padding: 90px 30px; gap: 20px; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); border-left: 1px solid var(--line); }
  .nav-links.open { transform: none; }
  .menu-toggle { display: block; z-index: 60; }
  .nav-cta .btn-book-desktop { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
