/* =========================
   DESIGN SYSTEM (tokens)
   ========================= */
:root {
  /* Brand & accents — TEAL + CORAL */
  --brand: #0ea5a2; /* teal-500 */
  --brand-700: #0f766e; /* teal-700 */
  --brand-50: #e9fbfa; /* soft teal */
  --accent: #ff6a3d; /* coral */
  --accent-50: #ffe9e3; /* soft coral */

  /* Surfaces & text */
  --bg: #f7fbfd;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --line: #e6edf5;
  --ink: #0f172a;
  --muted: #5b6b86;

  /* Type families */
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --ff-display: "Outfit", var(--ff-sans);

  /* Type scale (14px base) */
  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: clamp(18px, 2.4vw, 22px);
  --fs-2xl: clamp(26px, 4vw, 36px);
  --fs-3xl: clamp(32px, 5.5vw, 52px);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* Radius */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 22px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --sh-2: 0 6px 18px rgba(15, 23, 42, 0.08);
  --sh-3: 0 10px 30px rgba(15, 23, 42, 0.1);

  /* Layout */
  --container-w: 1200px;
  --nav-h: 68px;
  --gutter: clamp(16px, 5vw, 48px);
  --container-max: 1200px;
  --container-pad: clamp(16px, 4vw, 28px);

  /* Gallery */
  --gallery-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  --gallery-card: #ffffff;
  --gallery-border: #e9eef6;
  --gallery-shadow: 0 6px 18px rgba(25, 60, 120, 0.08);
  --gallery-shadow-hover: 0 10px 24px rgba(25, 60, 120, 0.12);
}

/* ===== Global ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 var(--fs-md) / var(--lh-normal) var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  /* padding-inline: var(--container-pad);  */
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  color: var(--ink);
  letter-spacing: 0.2px;
}
h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-3);
  font-weight: 800;
}
h2 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-2);
  font-weight: 800;
}
h3 {
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-2);
  font-weight: 700;
}

.overline {
  font: 700 var(--fs-xxs) / 1 var(--ff-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-2);
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== Utilities ===== */
.mt-0 {
  margin-top: 0 !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.mt-12 {
  margin-top: 12px !important;
}
.mt-16 {
  margin-top: 16px !important;
}
.mt-18 {
  margin-top: 18px !important;
}
.mt-32 {
  margin-top: 32px !important;
}
.mb-12 {
  margin-bottom: 12px !important;
}
.center-text {
  text-align: center !important;
}
.text-slate {
  color: #93a2c1 !important;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(
    90deg,
    rgba(14, 165, 162, 0.92) 0%,
    rgba(15, 118, 110, 0.92) 100%
  );
  backdrop-filter: blur(6px);
  padding: 0; /* important: alignment matches sections */
}
.brand {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  font-weight: 800;
  color: var(--ink);
}
.logo {
  height: 44px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sh-1);
}

.nav span {
  color: #fff;
}
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Flex the inner row */
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Force nav links to white (normal + hover) */
.nav ul a {
  color: #fff !important;
  font-weight: 600;
  opacity: 0.95;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
}
.nav ul a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}
.menu-btn {
  display: none;
  gap: 8px;
  align-items: center;
  background: transparent;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--r-m);
  font-weight: 800;
  cursor: pointer;
  margin-left: 0;
  min-height: 44px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 1000;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(78vw, 340px);
  transform: translateX(100%);
  background: #0b1324; /* dark navy panel */
  color: #fff;
  box-shadow: var(--sh-3);
  transition: transform 0.3s ease;
  z-index: 1001; /* above backdrop & nav */
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain; /* stop background bounce on iOS */
}
.drawer .closeButton {
  padding: 18px 18px 0;
  display: grid;
  justify-items: end;
}
.drawer .close {
  align-self: flex-end;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  border-radius: var(--r-m);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
}
.drawer nav {
  padding: 12px 18px 24px;
}
.drawer nav a {
  display: block;
  color: #fff;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer.open {
  transform: translateX(0);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Header ===== */
header {
  /* header itself spans full viewport, nav sits on top */
  min-height: 100vh;
  padding-top: var(--nav-h); /* keeps hero content below the fixed nav */
  display: block; /* keep as block; hero handles inner min-height */
}

@supports (height: 100svh) {
  header {
    min-height: 100svh;
  }
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
}
.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 165, 162, 0.18) 0%,
    rgba(14, 165, 162, 0.08) 60%,
    rgba(14, 165, 162, 0.02) 100%
  );
}
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 48px 0 56px;
}
@supports (height: 100svh) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
  }
}

.hero p {
  color: #3b4b70;
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-4);
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 16px;
  border-radius: var(--r-m);
  border: 1.5px solid transparent;
  font: 700 var(--fs-sm) / 1 var(--ff-sans);
  cursor: pointer;
}
/* Lighter primary button */
.btn.primary {
  /* fallbacks */
  background: var(--brand); /* very old browsers */
  background: linear-gradient(
    180deg,
    rgba(14, 165, 162, 0.85),
    rgba(15, 118, 110, 0.85)
  ); /* lighter look */

  /* modern (if color-mix is supported) */
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 55%, #fff),
    color-mix(in srgb, var(--brand-700) 55%, #fff)
  );

  color: #fff;
  box-shadow: var(--sh-2);
}

/* Darker on hover for contrast/affordance */
.btn.primary:hover {
  background: linear-gradient(180deg, var(--brand), var(--brand-700));
  filter: none; /* cancel previous brightness filter */
}

/* Nice focus ring + subtle press */
.btn.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, #fff);
}
.btn.primary:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: #fff;
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.35);
}
.hero-video-wrap {
  width: 520px;
  height: 292.5px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: #000;
}
.hero-right-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badges {
  margin-top: 12px;
}
.badge {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 var(--fs-xxs) / 1 var(--ff-sans);
}
.badge-alt {
  background: var(--accent-50);
  color: #7a2a1a; /* readable on soft-coral */
}

/* ===== Sections ===== */
.section {
  min-height: calc(100vh - var(--nav-h));
  /* display: flex; */
  display: grid;
  align-items: center;
}
.section .lead {
  color: var(--muted);
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-6);
}
.section.alt {
  background: var(--surface);
}
.section.alt2 {
  background: var(--surface-2);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 5vw, 56px);
}

.tile {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
}
.list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 900;
}

.link-white {
  color: #fff !important;
  text-decoration: underline !important;
}
.text-slate {
  color: #cbd5e1 !important;
}

/* ===== Icon cards ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
}
.icon-card {
  background: #eef4ff;
  border: 1px solid #dce7ff;
  border-radius: var(--r-l);
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(22, 90, 200, 0.06);
}
.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-50), #f0f6ff);
  border: 1px solid #cfe0ff;
  font-size: 24px;
}
.icon-card h4 {
  margin: 0;
  font-size: 18px;
  color: #0e3d74;
  font-weight: 800;
}
.icon-card p {
  margin: 8px 0 0;
  color: #1f2e4d;
}

/* ===== AIMS bubbles ===== */
#aims .lead {
  text-align: center;
}
.aims-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px auto;
  max-width: 900px;
}
.center-bubble {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--sh-2);
  margin: 20px;
}
.bubble {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: #fff;
  margin: 18px;
  padding: 10px;
  box-shadow: var(--sh-1);
  transition: transform 0.25s;
}
.bubble:hover {
  transform: scale(1.06);
}
.bubble.red {
  background: #e74c3c;
}
.bubble.blue {
  background: #3498db;
}
.bubble.green {
  background: #27ae60;
}
.bubble.yellow {
  background: #f1c40f;
  color: #111;
}
.bubble.purple {
  background: #9b59b6;
}
.bubble.orange {
  background: #e67e22;
}
.bubble.teal {
  background: #1abc9c;
}
.bubble.pink {
  background: #ff6b81;
}

/* === AIMS radial layout with arrows (clean) === */
.aims-wrap.ring {
  position: relative;
  max-width: 900px;
  height: 540px;
  margin: 40px auto;
}
.aims-wrap.ring .center-bubble,
.aims-wrap.ring .bubble {
  position: absolute;
  transform: translate(-50%, -50%);
}
.aims-wrap.ring .center-bubble {
  z-index: 3;
}
.aims-wrap.ring .bubble {
  z-index: 1;
}

.aims-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.aims-arrows line {
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linecap: round;
  marker-end: url(#arrow);
  opacity: 0.95;
}

/* positions (percent-based so it scales) */
.aims-wrap.ring .center-bubble {
  top: 50%;
  left: 50%;
}
.aims-wrap.ring .pos-tl {
  top: 22%;
  left: 22%;
}
.aims-wrap.ring .pos-t {
  top: 10%;
  left: 50%;
}
.aims-wrap.ring .pos-tr {
  top: 22%;
  left: 78%;
}
.aims-wrap.ring .pos-r {
  top: 50%;
  left: 90%;
}
.aims-wrap.ring .pos-br {
  top: 78%;
  left: 78%;
}
.aims-wrap.ring .pos-b {
  top: 90%;
  left: 50%;
}
.aims-wrap.ring .pos-bl {
  top: 78%;
  left: 22%;
}
.aims-wrap.ring .pos-l {
  top: 50%;
  left: 10%;
}

/* Mobile fallback */
@media (max-width: 960px) {
  .aims-wrap.ring {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .aims-wrap.ring .center-bubble,
  .aims-wrap.ring .bubble {
    position: static;
    transform: none;
    margin: 12px;
  }
  .aims-wrap.ring .aims-arrows {
    display: none;
  }
}

/* ===== Gallery ===== */
#gallery.section {
  background: var(--gallery-bg);
  color: var(--ink);
  padding-top: 0 !important;
  display: grid;
}
.gallery-head {
  padding: 56px 0 8px;
}
.gallery-head h2 {
  text-align: center;
  color: var(--ink);
}
.gallery-head p {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; /* tidy, light spacing */
}
.gallery-grid .gitem {
  margin: 0;
}
.gitem {
  border-radius: 14px;
  overflow: hidden;
  background: var(--gallery-card);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gitem:hover {
  transform: translateY(-2px);
  box-shadow: var(--gallery-shadow-hover);
}
.gitem img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: saturate(1.02) contrast(1.01);
}
.gitem:hover img {
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.03);
}
.is-hidden {
  display: none;
}
.gallery-sub {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 0;
}
.gallery-actions {
  display: flex;
  justify-content: center;
  padding: 18px 0 48px;
}
.btn.gallery-toggle {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--gallery-border);
  padding: 12px 16px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: var(--gallery-shadow);
}
.btn.gallery-toggle:hover {
  border-color: var(--brand2);
  box-shadow: var(--gallery-shadow-hover);
}

/* ===== Chess info cards ===== */
.chess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.chess {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-1);
}
.chess .head {
  padding: 14px 16px;
  font-weight: 800;
}
.chess .body {
  padding: 14px 16px;
}
.theme-blue .head {
  background: var(--brand);
  color: #fff;
}
.theme-blue .body {
  background: #eef3ff;
}
.theme-sky .head {
  background: #2ea8ff;
  color: #042a46;
}
.theme-sky .body {
  background: #e8f7ff;
}
.theme-gold .head {
  background: var(--accent);
  color: #111;
}
.theme-gold .body {
  background: var(--accent-50);
}
.chess-grid.auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ===== CTA banner ===== */
.section.cta-bleed {
  padding: 0 !important;
}
.cta-banner {
  width: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(120px, 18vh, 180px);
  padding-block: 16px;
  padding-inline: var(--gutter); /* ← was 16px 24px */
}
.cta-inner strong {
  font-size: clamp(18px, 2.2vw, 26px);
}
.cta-inner .muted {
  color: #e6f0ff;
  font-size: clamp(13px, 1.6vw, 16px);
}
.cta-inner .btn.primary {
  border: none;
  padding: 14px 20px;
  border-radius: var(--r-m);
  font-weight: 800;
}

/* ===== Footer & Booking form ===== */
footer#footer-book {
  background: var(--surface);
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 40px);
  padding: 56px 0;
}
footer .book-form {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  border-radius: var(--r-l);
  padding: 22px;
}
footer label {
  display: block;
  font: 800 var(--fs-xxs) / 1 var(--ff-sans);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 8px;
}
footer input,
footer select,
footer textarea {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid #d7e3f2;
  color: var(--ink);
  transition: border 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
footer input:focus,
footer select:focus,
footer textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 165, 162, 0.18);
}
footer textarea {
  min-height: 110px;
  resize: vertical;
}
footer .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
footer .btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: var(--r-m);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(14, 122, 254, 0.35);
}
footer .aside-card {
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 18px;
}
footer .aside-card a {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .link-white {
  color: var(--brand) !important;
  text-decoration: underline !important;
}
/* ===== Responsive ===== */
@media (max-width: 960px) {
  .menu-btn {
    display: flex;
  }
  .nav ul {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-video-wrap {
    width: 100%;
    height: 280px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .icon-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .chess-grid {
    grid-template-columns: 1fr 1fr;
  }
  #aims .center-bubble {
    width: 180px;
    height: 180px;
  }
  #aims .bubble {
    width: 140px;
    height: 140px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }
  .chess-grid {
    grid-template-columns: 1fr;
  }
  footer .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    column-gap: 3px;
    row-gap: 3px;
  }
  .gitem img {
    aspect-ratio: 16/10;
  }
}

@media (min-width: 1600px) {
  .hero {
    gap: clamp(48px, 5vw, 110px);
  }
}

/* About helpers */
.about-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 16px;
}
.muted-note {
  color: var(--muted);
  font-size: 0.95rem;
}
.about-motto {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--brand);
}
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}
.bleed-x {
  padding-inline: 0 !important;
}
/* Modern mobile-friendly viewport (overrides when supported) */
@supports (height: 100svh) {
  .section {
    min-height: calc(100svh - var(--nav-h));
  }
}
.full-vh {
  min-height: calc(100vh - var(--nav-h));
}
@supports (height: 100svh) {
  .full-vh {
    min-height: calc(100svh - var(--nav-h));
  }
} /* Utility: use on sections that should be compact */
.section.banner {
  min-height: 0;
  display: block;
  align-items: normal;
  padding: 32px 0;
}
/* Mobile: list hidden, but container alignment still holds */
@media (max-width: 960px) {
  .nav ul {
    display: none;
  }
}
/* responsive */
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gitem img {
    aspect-ratio: 16 / 10;
  }
}
/* ===== AIMS split layout (bubbles left, text right) ===== */
/*  */

.aims-diagram {
  display: flex;
  justify-content: center; /* center the ring inside the left column */
}

.aims-copy {
  align-self: center;
  max-width: 520px; /* keeps lines readable on wide screens */
  justify-self: end;
}

/* Optional: style the little label above H2 */
.aims-copy .overline {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--sp-2);
}

/* Responsive: stack neatly on mobile */
@media (max-width: 960px) {
  .aims-split {
    grid-template-columns: 1fr;
  }
  .aims-copy {
    text-align: center;
    margin-top: 8px;
  }
}
/* ===== AIMS split layout (bubbles LEFT, text RIGHT) ===== */
.aims-split {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 1fr; /* left needs room */
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

/* Keep the ring centered in its column and wide enough */
.aims-diagram {
  display: flex;
  justify-content: center;
  min-width: 620px; /* prevents the vertical collapse */
}

/* Give the ring a square canvas so % positions stay circular */
.aims-wrap.ring {
  width: 620px; /* explicit canvas width */
  height: 620px; /* match width (or use aspect-ratio) */
  /* aspect-ratio: 1 / 1;  <-- you can use this instead of height if you prefer */
  max-width: 100%;
  overflow: visible;
}

/* Optional: slightly reduce bubble sizes for this canvas */
.aims-wrap.ring .center-bubble {
  width: 156px;
  height: 156px;
}
.aims-wrap.ring .bubble {
  width: 146px;
  height: 146px;
}

/* Tablet: shrink canvas a bit, still keep the ring intact */
@media (max-width: 1200px) {
  .aims-diagram {
    min-width: 520px;
  }
  .aims-wrap.ring {
    width: 520px;
    height: 520px;
  }
  .aims-wrap.ring .center-bubble {
    width: 148px;
    height: 148px;
  }
  .aims-wrap.ring .bubble {
    width: 138px;
    height: 138px;
  }
}

/* Mobile: fallback to stacked layout (you already had this) */
@media (max-width: 960px) {
  .aims-split {
    grid-template-columns: 1fr;
  }
  .aims-diagram {
    min-width: 0;
  }
  .aims-wrap.ring {
    width: auto;
    height: auto;
  }
  .aims-wrap.ring .center-bubble,
  .aims-wrap.ring .bubble {
    width: 140px;
    height: 140px;
  }
}

.aims-copy h2,
.aims-copy p {
  text-align: center;
}
/* ===== Transparent nav at top, solid when scrolled ===== */

/* Base: transparent */
.nav {
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Brand label + links when transparent */
.nav .brand span {
  color: var(--brand);
}
.nav .nav-inner ul a {
  color: var(--brand) !important;
  font-weight: 600;
  opacity: 1;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
}
.nav .nav-inner ul a:hover {
  background: var(--brand);
  color: #fff !important;
}

/* Mobile menu button when transparent */
.nav:not(.scrolled) .menu-btn {
  border: 1.5px solid var(--brand);
  color: var(--brand);
}
.nav:not(.scrolled) .menu-btn span,
.nav:not(.scrolled) .menu-btn span::before,
.nav:not(.scrolled) .menu-btn span::after {
  background: var(--brand);
}

/* Scrolled: your current solid gradient style */
.nav.scrolled {
  background: linear-gradient(
    90deg,
    rgba(14, 165, 162, 0.92) 0%,
    rgba(15, 118, 110, 0.92) 100%
  );
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}
.nav.scrolled .brand span {
  color: #fff;
}
.nav.scrolled .nav-inner ul a {
  color: #fff !important;
}
.nav.scrolled .nav-inner ul a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.nav.scrolled .menu-btn {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.nav.scrolled .menu-btn span,
.nav.scrolled .menu-btn span::before,
.nav.scrolled .menu-btn span::after {
  background: #fff;
}

/* Give every section comfy side padding that matches nav */
.section {
  padding-inline: var(--gutter);
}

/* Match nav’s visual gutter */
.nav-inner {
  padding-inline: var(--gutter);
}

/* Prevent anchor-jumps hiding under fixed nav */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* You use --brand2 once (not defined). Use teal instead */
.btn.gallery-toggle:hover {
  border-color: var(--brand);
}

/* Footer is light now—ensure links are readable */
footer .aside-card a {
  color: var(--brand);
  text-decoration: underline;
}
.aims-diagram {
  display: flex;
  justify-content: center;
  min-width: 520px;
}
.aims-wrap.ring {
  width: 520px;
  height: 520px;
  max-width: 100%;
  overflow: visible;
}
.aims-wrap.ring .center-bubble {
  width: 148px;
  height: 148px;
}
.aims-wrap.ring .bubble {
  width: 138px;
  height: 138px;
}

/* Tablet tune */
@media (max-width: 1200px) {
  .aims-diagram {
    min-width: 480px;
  }
  .aims-wrap.ring {
    width: 480px;
    height: 480px;
  }
}
/* Mobile stack */
@media (max-width: 960px) {
  .aims-split {
    grid-template-columns: 1fr;
  }
  .aims-diagram {
    min-width: 0;
  }
  .aims-wrap.ring {
    width: auto;
    height: auto;
  }
  .aims-wrap.ring .center-bubble,
  .aims-wrap.ring .bubble {
    width: 140px;
    height: 140px;
  }
}
/* Keep 16:9, cap to column, no fixed height needed */
.hero-video-wrap {
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: #000;
}
/* Make the brand link look like your current brand block */
.nav .brand {
  display: flex; /* keep your layout */
  gap: var(--sp-3);
  align-items: center;
  font-weight: 800;
  text-decoration: none; /* remove underline */
  color: inherit; /* let inner span control the color */
}

/* Smooth anchor offset under fixed nav (already smooth scrolling enabled) */
header#home {
  scroll-margin-top: var(--nav-h);
}
/* 1) Bring back horizontal padding site-wide */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter); /* <- use your global gutter */
}

/* 2) Bleed only on larger screens; keep safe padding on mobile */
.bleed-x {
  padding-inline: 0 !important;
}
@media (max-width: 960px) {
  .bleed-x {
    padding-inline: var(--container-pad) !important;
  }
}

/* 3) Mobile: add vertical space and disable full-height sections */
@media (max-width: 960px) {
  header,
  .hero,
  .section {
    min-height: auto;
  }
  .section {
    padding-block: 28px;
  } /* vertical padding */
  header {
    padding-top: var(--nav-h);
  } /* ensure hero clears fixed nav */
}

/* XS tweak */
@media (max-width: 560px) {
  .section {
    padding-block: 24px;
  }
}

/* 4) Footer: never bleed on mobile; keep side padding */
footer .container {
  padding-inline: var(--container-pad);
}
@media (max-width: 960px) {
  footer .container {
    padding-inline: var(--container-pad);
  }
}

/* 5) Optional subtle separators between stacked sections on mobile */
@media (max-width: 960px) {
  .section + .section {
    border-top: 1px solid var(--line);
  }
}
/* =========================
   Gallery Lightbox / Carousel
   ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.lightbox.open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__panel {
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  display: grid;
  gap: 12px;
  place-items: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain; /* shows full image */
  border-radius: 14px;
  background: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  color: #e5e7eb;
  font-size: 14px;
  text-align: center;
  opacity: 0.9;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Mobile: make buttons easier */
@media (max-width: 560px) {
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__panel { padding: 16px; }
}
