/* ============================================================
   Nahhas Hospital — مشفى النحاس
   Design system derived from the official logo.
   Teal caregiver · coral child · white cross · warm-white field
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* sampled from the official logo pixels */
  --brand-teal: #056F81;
  --brand-teal-deep: #05505D;
  --brand-teal-night: #063842;
  --brand-coral: #F56959;
  --brand-coral-deep: #B44434; /* accessible coral for text / solid CTA */
  --paper: #F8F7F8;            /* the logo's own warm-white field */
  --ink: #0C333C;
  --muted: #46626B;
  --surface: #FFFFFF;
  --line: #E2E8E9;
  --teal-tint: #EAF2F3;
  --coral-tint: #FBEFEC;

  --font-display: "El Messiri", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-body: "Tajawal", "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-soft: 0 18px 50px -24px rgba(6, 56, 66, 0.25);
  --shadow-lift: 0 10px 30px -14px rgba(6, 56, 66, 0.28);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-teal); }
a:hover { color: var(--brand-teal-deep); }

:focus-visible {
  outline: 3px solid var(--brand-coral-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--brand-teal);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 0; color: #fff; }

.container {
  width: min(1160px, calc(100% - 2 * clamp(18px, 5vw, 48px)));
  margin-inline: auto;
}

/* film grain — fixed, non-interactive, extremely subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* pause every CSS animation when the tab is hidden (class set by JS) */
.page-hidden *, .page-hidden *::before, .page-hidden *::after {
  animation-play-state: paused !important;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 160;
  background: transparent;
  pointer-events: none;
}
.progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to left, var(--brand-teal), var(--brand-coral));
  transform: scaleX(0);
  transform-origin: right center;
}
[dir="ltr"] .progress > span {
  background: linear-gradient(to right, var(--brand-teal), var(--brand-coral));
  transform-origin: left center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: rgba(248, 247, 248, 0.92); }
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { box-shadow: var(--shadow-lift); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand img.brand-icon { width: 44px; height: 44px; }
.brand img.brand-word { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(8px, 1.8vw, 22px); }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 10px 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--brand-teal); border-bottom-color: var(--brand-coral); }

.lang-switch {
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-teal);
  border: 1.5px solid var(--brand-teal);
  border-radius: 999px;
  padding: 7px 16px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: var(--brand-teal); color: #fff; }

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 20px;
  line-height: 1;
  box-shadow: var(--shadow-lift);
  transition: background 0.2s, transform 0.2s var(--ease-out);
  white-space: nowrap;
}
.call-pill:hover { background: var(--brand-teal-deep); color: #fff; transform: translateY(-1px); }
.call-pill svg { width: 17px; height: 17px; flex: none; }

/* mobile menu (works without JS via <details>) */
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav, .site-header .lang-switch { display: none; }

  .menu-toggle { display: block; position: relative; }
  .menu-toggle > summary {
    list-style: none;
    cursor: pointer;
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--surface);
  }
  .menu-toggle > summary::-webkit-details-marker { display: none; }
  .menu-toggle > summary svg { width: 22px; height: 22px; color: var(--ink); }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[open] .icon-close { display: block; }
  .menu-toggle[open] .icon-open { display: none; }

  .menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    min-width: min(78vw, 320px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    padding: 12px;
    display: grid;
    gap: 2px;
  }
  .menu-panel a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    padding: 13px 16px;
    border-radius: 12px;
  }
  .menu-panel a:hover { background: var(--teal-tint); color: var(--brand-teal-deep); }
  .menu-panel .menu-lang {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    color: var(--brand-teal);
    font-weight: 700;
  }
}
@media (max-width: 520px) {
  .call-pill span { display: none; }        /* icon-only keeps it compact */
  .call-pill { padding: 13px; border-radius: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: var(--brand-teal);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { background: var(--brand-teal-deep); color: #fff; transform: translateY(-2px); }
.btn-coral {
  background: var(--brand-coral-deep);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-coral:hover { background: #9d392b; color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--brand-teal);
  border: 1.7px solid var(--brand-teal);
}
.btn-ghost:hover { background: var(--teal-tint); color: var(--brand-teal-deep); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 24px) 0 56px;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-teal-deep);
  background: var(--teal-tint);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 18%, transparent);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: clamp(18px, 3vh, 30px);
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-coral);
}

/* layered logo — at rest the four layers reproduce the exact logo */
.logo-stage {
  position: relative;
  width: clamp(240px, min(64vw, 40svh), 430px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.logo-stage::before {
  /* soft radial glow */
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(5, 111, 129, 0.10), rgba(245, 105, 89, 0.05) 55%, transparent 75%);
  z-index: 0;
}
.logo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
}
.logo-stage .layer-cross { z-index: 2; }
.logo-stage .layer-wordmark { z-index: 3; }

/* one-time sheen, masked to the icon itself */
.logo-stage .sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-mask-image: url("../assets/logo/icon-with-cross.png");
  mask-image: url("../assets/logo/icon-with-cross.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  animation: sheen 2.6s var(--ease-out) 1.4s 1 both;
}
@keyframes sheen {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

/* slow drifting motes */
.mote {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: mote-drift 9s ease-in-out infinite alternate;
}
.mote-1 { width: 10px; height: 10px; background: rgba(5, 111, 129, 0.25); top: 24%; inset-inline-start: 16%; }
.mote-2 { width: 7px; height: 7px; background: rgba(245, 105, 89, 0.3); top: 34%; inset-inline-end: 18%; animation-duration: 12s; animation-delay: -3s; }
.mote-3 { width: 5px; height: 5px; background: rgba(5, 111, 129, 0.28); bottom: 26%; inset-inline-start: 26%; animation-duration: 10s; animation-delay: -6s; }
.mote-4 { width: 8px; height: 8px; background: rgba(245, 105, 89, 0.2); bottom: 32%; inset-inline-end: 24%; animation-duration: 14s; animation-delay: -8s; }
@keyframes mote-drift {
  from { transform: translateY(-12px); }
  to { transform: translateY(12px); }
}

.hero-support {
  max-width: 34em;
  margin: clamp(16px, 3vh, 28px) auto 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(18px, 3vh, 30px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta .phone-line {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brand-teal-deep);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.badge-24 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-tint);
  color: var(--brand-coral-deep);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.92rem;
}
.badge-24::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-coral);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  inset-inline: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
}
.scroll-cue .cue-track {
  width: 2px;
  height: 42px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-teal) 22%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .cue-track::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 14px;
  border-radius: 2px;
  background: var(--brand-teal);
  animation: cue-slide 2.2s var(--ease-out) infinite;
}
@keyframes cue-slide {
  0% { transform: translateY(-16px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ---------- Sections (shared) ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 11vh, 8rem);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.2rem, 6vh, 4rem);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--brand-coral-deep);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, var(--brand-coral), transparent);
  margin-inline-start: 10px;
}
[dir="ltr"] .eyebrow::after {
  background: linear-gradient(to right, var(--brand-coral), transparent);
}
.section-title {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
}
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* ---------- Intro ---------- */
.intro {
  background:
    radial-gradient(120% 90% at 15% 0%, var(--teal-tint) 0%, transparent 55%),
    linear-gradient(to bottom, var(--paper), var(--teal-tint) 55%, var(--paper));
  overflow: hidden;
}
.intro-inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.intro-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
  line-height: 1.7;
  color: var(--brand-teal-night);
  margin: 0;
}
.intro-place {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 500;
}
.intro-curve {
  position: absolute;
  inset-inline-end: -22vw;
  top: -30vh;
  width: 60vw;
  max-width: 700px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(20px, 4vw, 46px) solid rgba(5, 111, 129, 0.06);
  pointer-events: none;
}

/* ---------- Departments — cinematic chapters ---------- */
.departments { overflow: hidden; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-block: clamp(2.6rem, 7vh, 5rem);
  position: relative;
}
.chapter + .chapter { border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.chapter:nth-of-type(even) .chapter-visual { order: -1; }

.chapter-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.chapter-visual svg {
  width: clamp(200px, 32vw, 330px);
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(6, 56, 66, 0.14));
}

.chapter-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand-teal) 38%, transparent);
  margin-bottom: 6px;
}
@supports not (-webkit-text-stroke: 1px black) {
  .chapter-index { color: color-mix(in srgb, var(--brand-teal) 30%, transparent); }
}
.chapter-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 8px; }
.chapter-en {
  color: var(--brand-coral-deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.chapter-desc { color: var(--muted); font-size: 1.08rem; max-width: 30em; }

@media (max-width: 780px) {
  .chapter { grid-template-columns: 1fr; text-align: center; }
  .chapter:nth-of-type(even) .chapter-visual { order: 0; }
  .chapter-desc { margin-inline: auto; }
}

/* ---------- Education ---------- */
.education {
  background:
    radial-gradient(110% 80% at 85% 8%, var(--coral-tint) 0%, transparent 60%),
    linear-gradient(to bottom, var(--paper), var(--coral-tint) 60%, var(--paper));
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: clamp(16px, 2.6vw, 26px);
}

.edu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.edu-card:hover, .edu-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--brand-teal) 30%, var(--line));
  color: var(--ink);
}

.edu-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 130% at 88% -20%, rgba(245, 105, 89, 0.16), transparent 60%),
    radial-gradient(120% 150% at 8% 110%, rgba(5, 111, 129, 0.16), transparent 55%),
    linear-gradient(160deg, var(--teal-tint), var(--paper));
}
.edu-card:nth-child(even) .edu-thumb {
  background:
    radial-gradient(90% 130% at 88% -20%, rgba(5, 111, 129, 0.14), transparent 60%),
    radial-gradient(120% 150% at 8% 110%, rgba(245, 105, 89, 0.16), transparent 55%),
    linear-gradient(160deg, var(--coral-tint), var(--paper));
}
.edu-thumb::before {
  /* faint brand icon watermark (visible until the video thumbnail loads) */
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  background: url("../assets/logo/icon-with-cross.png") center / contain no-repeat;
  opacity: 0.1;
}

/* click-to-play YouTube facade: real thumbnail, embed only after a tap */
.yt-facade { text-decoration: none; }
.edu-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-facade::after {
  /* soft scrim so the play button and number stay readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 56, 66, 0) 45%, rgba(6, 56, 66, 0.32));
}
.edu-thumb .edu-play, .edu-thumb .edu-num { z-index: 2; }
.edu-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  background: #000;
}
.edu-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-teal) 88%, black);
  color: #fff;
  box-shadow: var(--shadow-lift);
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.edu-card:hover .edu-play { transform: scale(1.08); background: var(--brand-coral-deep); }
.edu-play svg { width: 20px; height: 20px; margin-inline-start: 3px; }
[dir="rtl"] .edu-play svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }

.edu-num {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-teal-deep);
  background: rgba(248, 247, 248, 0.88);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.95rem;
}

.edu-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.edu-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.55; }
.edu-sub { color: var(--muted); font-size: 0.88rem; }
.edu-ext {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  align-self: flex-start;
}
a.edu-ext:hover { color: var(--brand-coral-deep); }

.edu-channel {
  display: flex;
  justify-content: center;
  margin-top: clamp(26px, 5vh, 40px);
}
.edu-ext svg { width: 14px; height: 14px; }
[dir="rtl"] .edu-ext svg { transform: scaleX(-1); }

.edu-note {
  margin-top: clamp(26px, 5vh, 44px);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-coral);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  color: var(--muted);
  font-weight: 500;
}
.edu-note svg { width: 22px; height: 22px; flex: none; color: var(--brand-coral-deep); margin-top: 4px; }
.edu-note p { margin: 0; }

/* ---------- Community (Facebook post) ---------- */
.community {
  background: linear-gradient(to bottom, var(--paper), var(--teal-tint) 55%, var(--paper));
}
.fb-post-card {
  max-width: 552px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
}
/* reserve space only when JS will inject the embed — avoids layout shift */
html.js .fb-post-card { min-height: 480px; }
.fb-post-card iframe {
  display: block;
  border: 0;
  max-width: 100%;
  border-radius: 10px;
  background: var(--surface);
}
.fb-post-card.is-loaded { min-height: 0; }
.fb-post-card.is-loaded .fb-post-fallback {
  min-height: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  border: 0;
  color: var(--muted);
}

/* ---------- Reassembly + Contact ---------- */
.contact { padding-top: clamp(3rem, 8vh, 5rem); }

.reassembly {
  display: grid;
  justify-items: center;
  padding-bottom: clamp(2rem, 6vh, 3.4rem);
}
.reassembly img {
  width: clamp(170px, 24vw, 250px);
  height: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4.5vw, 44px);
}

.contact-rows { display: grid; gap: 4px; margin-top: 8px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  color: var(--brand-teal);
}
.contact-row:nth-child(even) .ico { background: var(--coral-tint); color: var(--brand-coral-deep); }
.contact-row .ico svg { width: 21px; height: 21px; }
.contact-row .lbl { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.contact-row .val { font-weight: 700; font-size: 1.06rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-row a.val { text-decoration: none; color: var(--brand-teal-deep); }
.contact-row a.val:hover { color: var(--brand-coral-deep); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* map panel — official Google Maps embed of the hospital */
.map-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.map-panel iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 340px;
  border: 0;
}
.map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 20px;
}
.map-caption .addr { font-weight: 700; color: var(--ink); }
.map-caption .hours-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-tint);
  color: var(--brand-coral-deep);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.map-caption .hours-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-coral);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-teal-night);
  color: rgba(248, 247, 248, 0.82);
  padding: clamp(3rem, 7vh, 4.5rem) 0 2rem;
  margin-top: clamp(3rem, 8vh, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { width: 120px; margin-bottom: 14px; }
.footer-brand p { color: rgba(248, 247, 248, 0.7); max-width: 30em; margin: 0; }

.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: rgba(248, 247, 248, 0.82); text-decoration: none; }
.footer-nav a:hover { color: var(--brand-coral); }

.footer-contact { display: grid; gap: 10px; font-style: normal; }
.footer-contact a { color: rgba(248, 247, 248, 0.9); text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--brand-coral); }

.footer-bottom {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(248, 247, 248, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: rgba(248, 247, 248, 0.6);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }

.site-footer :focus-visible { outline-color: var(--brand-coral); }

/* ---------- Curve wipes (activated by JS only) ---------- */
.wipe {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  width: 130vmax;
  height: 130vmax;
  border-radius: 50%;
  display: none;
  will-change: transform;
}
html.anim-ready .wipe { display: block; }
.wipe-teal {
  background: radial-gradient(closest-side, rgba(5, 111, 129, 0.12), rgba(5, 111, 129, 0.05) 55%, transparent 72%);
  top: -40vmax;
  inset-inline-start: -120vmax;
}
.wipe-coral {
  background: radial-gradient(closest-side, rgba(245, 105, 89, 0.11), rgba(245, 105, 89, 0.04) 55%, transparent 72%);
  bottom: -50vmax;
  inset-inline-end: -120vmax;
}
.section > .container { position: relative; z-index: 2; }

/* ---------- Forms (careers page) ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 40px);
  max-width: 820px;
  margin-inline: auto;
}
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form-card legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-teal-deep);
  padding: 0;
  margin-bottom: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.field .req { color: var(--brand-coral-deep); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(5, 111, 129, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 0.85rem; }
.field .error { color: var(--brand-coral-deep); font-size: 0.85rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--brand-coral-deep); }
.field.invalid .error { display: block; }
.field input[type="file"] {
  padding: 10px;
  background: var(--teal-tint);
  border: 2px dashed color-mix(in srgb, var(--brand-teal) 35%, var(--line));
  cursor: pointer;
}
.file-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.file-list button {
  background: none;
  border: 0;
  color: var(--brand-coral-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--brand-teal); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-status { border-radius: 12px; padding: 12px 16px; font-weight: 500; display: none; }
.form-status.error { display: block; background: var(--coral-tint); color: var(--brand-coral-deep); }
.form-status.info { display: block; background: var(--teal-tint); color: var(--brand-teal-deep); }
.success-card { text-align: center; padding: clamp(10px, 3vw, 24px); }
.success-card .ref {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-coral-deep);
  direction: ltr;
  letter-spacing: 0.04em;
  margin: 6px 0 14px;
}
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.error-page .logo-stage { width: clamp(180px, 40vw, 260px); margin-bottom: 26px; }
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5rem);
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--brand-teal) 45%, transparent);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Reduced motion: full static experience ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue .cue-track::after, .mote, .logo-stage .sheen { animation: none !important; }
  .mote { display: none; }
  .site-header.is-hidden { transform: none; }
  .wipe { display: none !important; }
}

/* Lenis recommended styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
