/* ============================================================
   Children at Sea — deep sea × medical, immersive edition
   Animated underwater scene, sonar logo, wave transitions,
   heartbeat lines, scroll reveals.
   ============================================================ */

:root {
  --deep: #061a30;
  --abyss: #04121f;
  --navy: #0e2a47;
  --sea: #155e7d;
  --teal: #1f8a9c;
  --aqua: #5db8c9;
  --foam: #eef7fa;
  --mist: #d9ecf1;
  --red: #c0392b;
  --red-dark: #96281b;
  --ink: #16232e;
  --grey: #5d7484;
  --white: #ffffff;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --max: 1140px;
  --shadow: 0 10px 30px rgba(8, 33, 58, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--sea); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }

.lead { font-size: 1.18rem; color: var(--grey); max-width: 44rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 15px; height: 15px;
  background:
    linear-gradient(var(--red), var(--red)) center/100% 4.5px no-repeat,
    linear-gradient(var(--red), var(--red)) center/4.5px 100% no-repeat;
  flex: none;
  animation: heartbeat 2.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.35);
}
.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.45);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover { background: var(--white); color: var(--navy); }

.btn--sea {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 138, 156, 0.3);
}
.btn--sea:hover { background: var(--sea); color: var(--white); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(8, 33, 58, 0.22);
  transition: transform 0.3s ease;
}
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.15;
}
.brand__name small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: none;
  border: 2px solid var(--mist);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle__bars {
  width: 17px; height: 11px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 3.5px;
  border-top: 2px solid currentColor;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  padding: 0.75rem 1.5rem 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.65rem 1rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--foam); color: var(--sea); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    border: 0; padding: 0;
    margin-left: auto;
    background: transparent;
  }
  .site-nav ul { flex-direction: row; gap: 0.3rem; }
  .site-nav a { padding: 0.5rem 1rem; }
}

/* ============================================================
   HERO — the deep sea scene
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 550px at 82% 12%, rgba(93, 184, 201, 0.30), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(21, 94, 125, 0.5), transparent 55%),
    linear-gradient(165deg, var(--abyss) 0%, var(--navy) 48%, var(--sea) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 5rem;
}

/* god rays sweeping through the water */
.rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rays i {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 140px;
  background: linear-gradient(180deg, rgba(169, 222, 233, 0.16), transparent 75%);
  transform: skewX(-18deg);
  animation: sway 11s ease-in-out infinite alternate;
}
.rays i:nth-child(1) { left: 12%; animation-delay: 0s; }
.rays i:nth-child(2) { left: 38%; width: 90px; animation-delay: -4s; opacity: 0.7; }
.rays i:nth-child(3) { left: 66%; width: 180px; animation-delay: -8s; opacity: 0.5; }
@keyframes sway {
  from { transform: skewX(-14deg) translateX(-30px); opacity: 0.5; }
  to { transform: skewX(-22deg) translateX(40px); opacity: 1; }
}

/* rising bubbles */
.bubble {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%,
    rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08) 60%);
  opacity: 0;
  animation: rise var(--d) linear infinite;
  animation-delay: var(--delay);
  pointer-events: none;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  12% { opacity: 0.55; }
  50% { transform: translateY(-55vh) translateX(18px) scale(1); }
  100% { transform: translateY(-110vh) translateX(-14px) scale(1.1); opacity: 0; }
}

/* the logo — the beacon of the scene */
.hero__medal-wrap {
  position: absolute;
  z-index: 1;
  right: clamp(0rem, 5vw, 7rem);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: min(34vw, 400px);
  aspect-ratio: 1;
}
@media (min-width: 900px) { .hero__medal-wrap { display: block; } }

.hero__medal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(93, 184, 201, 0.28);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-3%); }
  50% { transform: translateY(3%); }
}

/* rotating dashed compass ring */
.hero__orbit {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: spin 40s linear infinite;
}
.hero__orbit::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(192, 57, 43, 0.9);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* sonar pings radiating from the logo */
.sonar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(93, 184, 201, 0.55);
  animation: ping 3.4s ease-out infinite;
}
.sonar--b { animation-delay: 1.7s; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding-block: 4rem 10rem;
}
.hero h1 { color: var(--white); }
.hero__sub {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--aqua);
  font-size: 1.08rem;
  margin-bottom: 1rem;
}
.hero__intro { font-size: 1.12rem; color: var(--mist); max-width: 36rem; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2rem;
}

/* three drifting wave layers at the hero's base */
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  pointer-events: none;
  height: clamp(90px, 13vw, 170px);
}
.hero__waves svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
}
.hero__waves .wave-a {
  fill: rgba(93, 184, 201, 0.30);
  animation: drift 18s linear infinite;
}
.hero__waves .wave-c {
  fill: rgba(31, 138, 156, 0.35);
  animation: drift 13s linear infinite reverse;
  height: 75%;
}
.hero__waves .wave-b {
  fill: var(--white);
  animation: drift 9s linear infinite;
  height: 55%;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- wave dividers ---------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(55px, 8vw, 120px);
  margin-bottom: -1px;
}

/* ---------- bands ---------- */

.band-sea {
  background: linear-gradient(180deg, var(--foam), var(--mist));
  position: relative;
}
.band-deep {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(31, 138, 156, 0.40), transparent 60%),
    radial-gradient(700px 380px at 90% 100%, rgba(21, 94, 125, 0.45), transparent 55%),
    linear-gradient(170deg, var(--navy), var(--abyss));
  color: var(--mist);
}
.band-deep h2, .band-deep h3 { color: var(--white); }
.band-deep .lead { color: var(--aqua); }
.band-deep .eyebrow { color: var(--aqua); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.4rem; }
@media (min-width: 680px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--5 { grid-template-columns: repeat(6, 1fr); }
  .grid--5 > *:nth-child(-n+3) { grid-column: span 2; }
  .grid--5 > *:nth-last-child(-n+2) { grid-column: span 3; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 42, 71, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--aqua) 55%, var(--teal));
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(8, 33, 58, 0.16);
}
.card h3 { margin-top: 0.55rem; }

.card__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--foam), var(--mist));
  color: var(--sea);
  margin-bottom: 0.9rem;
  transition: transform 0.3s ease;
}
.card:hover .card__icon { transform: translateY(-4px) rotate(-4deg); }
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card__icon--medical {
  background: linear-gradient(140deg, #fdeceb, #f6d6d1);
  color: var(--red);
}

/* glass cards inside the deep band */
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  color: var(--mist);
  transition: transform 0.25s ease, background 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
}
.glass-card h3 { color: var(--white); }
.glass-card p { color: var(--mist); }

.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.pill--aqua { background: rgba(93, 184, 201, 0.2); color: var(--aqua); border: 1px solid rgba(93, 184, 201, 0.45); }
.pill--red { background: rgba(192, 57, 43, 0.22); color: #ffb3ab; border: 1px solid rgba(192, 57, 43, 0.55); }

/* ---------- sea-pulse divider ---------- */

.pulse {
  display: block;
  width: min(460px, 85%);
  height: 46px;
  margin: 1.6rem auto 0;
  color: var(--red);
  background-image:
    repeating-linear-gradient(to right, rgba(192,57,43,.10) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, rgba(192,57,43,.10) 0 1px, transparent 1px 12px);
}
.pulse path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: ecg 5.5s ease-in-out infinite;
}
@keyframes ecg {
  0% { stroke-dashoffset: 700; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- split / blob ---------- */

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.blob-wrap { position: relative; display: grid; place-items: center; }
.blob {
  width: min(100%, 440px);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, var(--aqua), var(--sea));
  aspect-ratio: 1.1;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
  33% { border-radius: 54% 46% 45% 55% / 46% 55% 45% 54%; }
  66% { border-radius: 48% 52% 56% 44% / 55% 48% 52% 45%; }
}
.blob img {
  width: 72%;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, 0.55);
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow: 0 14px 40px rgba(8, 33, 58, 0.35);
}
.blob-ring {
  position: absolute;
  width: min(100%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(21, 94, 125, 0.4);
  animation: spin 45s linear infinite reverse;
}

/* ---------- checklist ---------- */

.ticklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticklist li {
  display: flex;
  gap: 0.7rem;
  padding: 0.45rem 0;
  align-items: baseline;
}
.ticklist li::before {
  content: "+";
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  flex: none;
}

/* ---------- giant logo watermark ---------- */

.watermark::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  aspect-ratio: 1;
  background: url("../img/logo.png") center/cover;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- big quote ---------- */

.big-quote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--white);
  max-width: 46rem;
  margin: 3rem auto 0;
  line-height: 1.45;
}
.big-quote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--aqua);
  margin-bottom: 0.8rem;
}

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border-top: 7px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--aqua), var(--teal)) 1;
}

.form__row { margin-bottom: 1.15rem; }
.form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 1rem;
  border: 2px solid var(--mist);
  border-radius: 14px;
  background: var(--foam);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 138, 156, 0.15);
}
.form textarea { min-height: 8.5rem; resize: vertical; }

.info-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
}
.info-line svg {
  width: 1.3rem; height: 1.3rem;
  color: var(--teal);
  flex: none;
}

/* ---------- footer ---------- */

.site-footer {
  background: linear-gradient(180deg, var(--navy), var(--abyss));
  color: var(--mist);
}
.site-footer a { color: var(--aqua); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.site-footer .brand img { width: 56px; height: 56px; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__name small { color: var(--aqua); }
.site-footer small { color: rgba(217, 236, 241, 0.6); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  @page { size: 1060px 1499px; margin: 0; }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static !important; }
  .nav-toggle, .skip-link { display: none !important; }
  .card, .contact-card, .split { break-inside: avoid; }
  .section, .band-sea > .container, .band-deep > .container { break-inside: auto; }
}

/* ---------- subtiele admin-link in footer ---------- */

.footer-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: inherit;
  text-decoration: none;
  opacity: .4;
  margin-left: .5rem;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  transition: opacity .2s, border-color .2s, transform .4s;
}
.footer-admin:hover { opacity: 1; border-color: rgba(255,255,255,.45); transform: rotate(45deg); }
