/* ============================================================
   DROP DIVE MALDIVES — Design System
   Fonts: Raleway (headings) + Open Sans (body)
   Brand: deep ocean navy (#052e4a) + cyan accent (#00a8c6)
   ============================================================ */

:root {
  /* Colours */
  --navy:        #052e4a;
  --navy-mid:    #0a4a70;
  --navy-light:  #155a85;
  --cyan:        #00a8c6;
  --cyan-light:  #4dc9de;
  --cyan-pale:   #e0f6fa;
  --sand:        #f5f1eb;
  --white:       #ffffff;
  --off-white:   #f8fbfe;
  --text:        #052e4a;
  --text-body:   #2c4a5e;
  --text-muted:  #5a7d94;
  --border:      #cce3ed;
  --surface:     #ffffff;
  --surface-alt: #f4f9fc;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(5, 46, 74, 0.07);
  --shadow-md:   0 6px 20px rgba(5, 46, 74, 0.10);
  --shadow-lg:   0 16px 48px rgba(5, 46, 74, 0.14);
  --shadow-card: 0 1px 3px rgba(5,46,74,0.06), 0 4px 16px rgba(5,46,74,0.08);

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Spacing */
  --space-xs:  0.4rem;
  --space-sm:  0.8rem;
  --space-md:  1.2rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  /* Layout */
  --container: min(1180px, calc(100vw - 2.5rem));
  --container-narrow: min(860px, calc(100vw - 2.5rem));

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p, li { color: var(--text-body); }
p { margin: 0 0 0.5em; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  color: var(--text);
  font-family: "Raleway", sans-serif;
  line-height: 1.12;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem);  letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

/* ── Utilities ─────────────────────────────────────────────── */
.container        { width: var(--container); margin: 0 auto; }
.container-narrow { width: var(--container-narrow); margin: 0 auto; }

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

.skip-link {
  position: absolute;
  left: -999px; top: 1rem; z-index: 3000;
}
.skip-link:focus {
  left: 1rem;
  background: var(--white); color: var(--text);
  padding: 0.6rem 1rem; border-radius: var(--r-full);
  border: 2px solid var(--cyan); outline: none;
  font-weight: 700;
}

/* ── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Label / kicker / eyebrow ──────────────────────────────── */
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-family: "Open Sans", sans-serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(0, 168, 198, 0.12);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  background: var(--cyan-pale);
  color: var(--navy-mid);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-dark {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #008faa;
  border-color: #008faa;
  box-shadow: 0 4px 16px rgba(0,168,198,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-mid);
  border-color: var(--border);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--cyan-pale);
  border-color: var(--cyan);
  color: var(--navy);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.55rem; }
.link-arrow::after { content: "→"; }

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  padding: 0.5rem 0;
}
.topbar a {
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}
.topbar a:hover { color: var(--cyan-light); }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

/* ── Site header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(5,46,74,0.10);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.1rem;
  padding: 0.6rem 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.55rem;
  flex-shrink: 0;
}
.brand:hover { opacity: 0.88; }

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo-img { height: 5.6rem; width: auto; display: block; }

.brand-text strong {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.1rem;
}
.site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.05rem;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item-dropdown-head { display: flex; align-items: center; }
.nav-link {
  padding: 0.4rem 0.55rem;
  border-radius: var(--r-full);
  font-size:0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--navy);
  background: var(--surface-alt);
}
.nav-link.is-active {
  color: var(--navy-mid);
  background: var(--cyan-pale);
}
.nav-link-parent {
  position: relative;
  padding-right: 1.3rem;
}
.nav-link-parent::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  opacity: 0.7;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 12.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 25;
}
.nav-item-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-item-dropdown.is-open .nav-link-parent::after {
  transform: translateY(-36%) rotate(225deg);
}
.nav-dropdown-link {
  border-radius: var(--r-sm);
  padding: 0.5rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--navy);
  background: var(--surface-alt);
}
.nav-dropdown-link.is-active {
  color: var(--navy-mid);
  background: var(--cyan-pale);
}
.nav-dropdown-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex-shrink: 0;
}
.nav-dropdown-toggle-icon {
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-12%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.nav-cta {
  margin-left: 0.75rem;
  flex-shrink: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--home-hero-bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 46, 74, 0.82) 0%,
    rgba(5, 46, 74, 0.55) 55%,
    rgba(5, 46, 74, 0.25) 100%
  );
}
.hero-full:hover .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 6rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
}

.hero-copy h1 { color: var(--white); }
.hero-copy .lede { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.hero-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.hero-stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.hero-stat-card .stat-number {
  font-family: "Raleway", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-card .stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounceY 2s infinite;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.35);
}
@keyframes bounceY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,46,74,0.55) 0%, rgba(5,46,74,0.82) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 3rem 0 3rem;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero-content p  { color: rgba(255,255,255,0.78); max-width: 54ch; font-size: 1.05rem; }

/* ── Section layout ────────────────────────────────────────── */
.section-block    { padding: var(--space-2xl) 0; }
.section-block-sm { padding: var(--space-xl) 0; }
.section-block-lg { padding: var(--space-3xl) 0; }

.section-light { background: var(--white); }
.section-soft  { background: var(--surface-alt); }
.section-navy  { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p, .section-navy li { color: rgba(255,255,255,0.75); }

/* metric highlight (dark section stat boxes) */
.metric-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
}
.metric-highlight-value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--cyan-light);
  line-height: 1;
}
.metric-highlight-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

.section-header { margin-bottom: var(--space-lg); }
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

/* ── Grids ─────────────────────────────────────────────────── */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }

.split-60-40 { display: grid; grid-template-columns: 1.4fr 1fr;  gap: var(--space-lg); align-items: center; }
.split-40-60 { display: grid; grid-template-columns: 1fr 1.4fr;  gap: var(--space-lg); align-items: center; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--r-md);
  background: var(--cyan-pale);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 1.4rem; height: 1.4rem; stroke: var(--cyan); fill: none; stroke-width: 2; }
.card h3 { margin-bottom: 0.4rem; }

/* Freediving course cards */
body[data-page="freediving"] .card-img-wrap {
  margin-bottom: 0.85rem;
  border-radius: var(--r-md);
  overflow: hidden;
}
body[data-page="freediving"] .card-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
body[data-page="freediving"] .card-body .badge {
  margin-bottom: 0.45rem;
}
body[data-page="freediving"] .freediving-intro-copy p + p {
  margin-top: 0.25rem;
}
body[data-page="freediving"] .freediving-intro-list {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.5rem;
}
body[data-page="freediving"] .freediving-intro-list li {
  font-size: 0.9rem;
  line-height: 1.4;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.48rem 0.55rem;
  align-items: center;
  gap: 0.45rem;
}
body[data-page="freediving"] .freediving-intro-list li::before {
  min-width: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0;
}
body[data-page="freediving"] .freediving-intro-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
body[data-page="freediving"] .freediving-intro-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* Feature card */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card-image { height: 14rem; overflow: hidden; position: relative; background: var(--navy-mid); }
.feature-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.feature-card:hover .feature-card-image img { transform: scale(1.06); }
.feature-card-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex; flex-direction: column; gap: 0.5rem; flex: 1;
}
.feature-card .link-arrow { margin-top: auto; }

/* Package card */
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.package-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,168,198,0.14), var(--shadow-lg);
}
.package-card .price {
  font-family: "Raleway", sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.package-card .price sub { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* Team card */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-light);
  position: relative;
}
.team-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.team-card-body { padding: var(--space-md); }
.team-card-body h3 { font-size: 1rem; margin-bottom: 0.15rem; }

.grid-3.team-grid { grid-template-columns: 1fr; }
.team-grid .team-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: stretch;
}
.team-grid .team-card-photo {
  aspect-ratio: auto;
  min-height: 100%;
  background: transparent;
}
.team-grid .team-card-photo img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
}
.team-grid .team-card.team-card-guille .team-card-photo,
.team-grid .team-card.team-card-susana .team-card-photo {
  height: clamp(320px, 33vw, 380px);
  min-height: 0;
  align-self: start;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card-photo { background: var(--navy-light); }
.project-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  display: block;
}
.project-card-body { padding: var(--space-md); }
.project-card-body h3 { margin-bottom: 0.35rem; }
.project-card-body p + p { margin-top: 0.7rem; }

@media (max-width: 860px) {
  .team-grid .team-card { grid-template-columns: 1fr; }
  .team-grid .team-card-photo { aspect-ratio: 4 / 3; min-height: auto; }
  .team-grid .team-card-photo img.team-photo-susana,
  .team-grid .team-card-photo img.team-photo-guille {
    transform: none;
    object-fit: cover;
    object-position: center top;
  }
  .team-grid .team-card.team-card-guille .team-card-photo,
  .team-grid .team-card.team-card-susana .team-card-photo {
    aspect-ratio: auto;
    height: unset;
    min-height: 420px;
    align-self: stretch;
  }
  .project-card { grid-template-columns: 1fr; }
  .project-card-photo img { min-height: 13rem; }
}

/* Site card */
.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem 1rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.site-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.site-card-num {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-sm);
  background: var(--cyan-pale);
  display: grid; place-items: center;
  color: var(--navy-mid); font-weight: 800; font-size: 0.85rem;
  font-family: "Raleway", sans-serif;
}
.site-card-main { padding-right: 4.8rem; }
.site-card h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.site-card-main p { margin: 0.35rem 0; }
.site-summary {
  color: var(--text-body);
  font-size: 0.93rem;
}
.site-highlights {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}
.badge-nav {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}
.site-time-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
}
.site-map-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy-mid);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.site-map-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-map-btn:hover,
.site-map-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--cyan-pale);
  box-shadow: var(--shadow-sm);
}

body.modal-open { overflow: hidden; }

.site-map-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.site-map-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-map-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 24, 37, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.site-map-dialog {
  position: relative;
  width: min(92vw, 980px);
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(18px) scale(0.965);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  z-index: 1;
}
.site-map-modal.is-open .site-map-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.site-map-dialog h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.site-map-image-wrap {
  background: #edf4f8;
  max-height: calc(90vh - 3.3rem);
  overflow: auto;
}
.site-map-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.site-map-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy-mid);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* Contact info card */
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.contact-info-icon {
  width: 2.8rem; height: 2.8rem;
  border-radius: var(--r-md);
  background: var(--cyan-pale);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--navy-mid);
}
.contact-info-icon svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-info-card h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.2rem;
}
.contact-info-card p, .contact-info-card a {
  font-size: 0.95rem; font-weight: 600; color: var(--navy); margin: 0;
}

/* FAQ */
.faq-stack     { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.1rem var(--space-md);
  background: none; border: none;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--text); text-align: left; cursor: pointer;
}
.faq-icon {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--cyan-pale); color: var(--cyan);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
  font-size: 1.1rem; font-weight: 300;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--cyan); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 var(--space-md) 1.1rem; color: var(--text-body); }

/* Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.gallery-masonry > figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-light);
  height: clamp(210px, 20vw, 300px);
}
.gallery-masonry > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-masonry > figure:hover img { transform: scale(1.04); }

/* Latest albums (force large, uniform desktop cards) */
.latest-albums-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.latest-albums-grid > figure {
  height: clamp(240px, 23vw, 330px);
  min-height: 240px;
  background: var(--navy-light);
}
.latest-albums-grid > figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Journal card */
.journal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.journal-card-img { height: 12rem; overflow: hidden; background: var(--navy-mid); }
.journal-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.journal-card:hover .journal-card-img img { transform: scale(1.06); }
.journal-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.journal-card time { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.journal-card .link-arrow { margin-top: auto; }

/* ── Metrics bar ──────────────────────────────────────────── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.metric-item {
  background: var(--surface);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.metric-item .metric-num {
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  display: block;
}
.metric-item .metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  display: block;
}

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 60%, #0964a0 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -30%; right: -5%;
  width: 45%; padding-bottom: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,198,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p  { color: rgba(255,255,255,0.75); max-width: 52ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ── Testimonials ────────────────────────────────────────── */
.partner-strip {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.partner-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  align-items: center;
}
.partner-logo {
  min-height: 6.4rem;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-width: min(100%, 18rem);
  max-height: 3.9rem;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s var(--ease);
}
.partner-logo img.partner-logo-scubahub {
  max-width: min(100%, 22rem);
  max-height: 4.8rem;
}
.partner-logo:hover img,
.partner-logo:focus-visible img {
  transform: scale(1.4);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.8rem;
}
.testimonial-stars {
  color: #f5a623;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}
.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.testimonial-text  { font-size: 0.95rem; line-height: 1.7; font-style: italic; margin: 0; }
.testimonial-author { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.testimonial-author-row {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-end;
}
.testimonial-avatar {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── List styles ─────────────────────────────────────────── */
.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.6rem;
}
.check-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  color: var(--text-body); font-size: 0.95rem; line-height: 1.55;
}
.check-list li::before {
  content: "";
  display: inline-block;
  min-width: 1.1rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background-color: var(--cyan-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300a8c6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%; background-repeat: no-repeat; background-position: center;
  margin-top: 0.22rem; flex-shrink: 0;
}

.detail-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.5rem;
}
.detail-list li {
  display: flex; gap: 0.6rem; align-items: baseline;
  color: var(--text-body); font-size: 0.95rem;
}
.detail-list li::before { content: "—"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ── Media split ──────────────────────────────────────────── */
.media-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.media-split-image {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.media-split-image img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }
.media-split-text { display: grid; gap: var(--space-sm); }

/* ── Surface boxes ────────────────────────────────────────── */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.surface-soft {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}
.advanced-course-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}
.advanced-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) auto;
  align-items: stretch;
  gap: 1rem;
}
.advanced-course-copy {
  display: grid;
  align-content: center;
}
.advanced-course-media {
  border-radius: var(--r-md);
  overflow: hidden;
  width: clamp(190px, 28vw, 320px);
  aspect-ratio: 16 / 10;
  min-height: 0;
  justify-self: end;
  align-self: center;
  box-shadow: var(--shadow-card);
}
.advanced-course-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Privacy policy */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.8fr);
  gap: var(--space-md);
  align-items: start;
}
.legal-summary {
  position: sticky;
  top: 6.2rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.legal-summary h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}
.legal-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.legal-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.86rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border);
}
.legal-meta li span {
  color: var(--text-muted);
}
.legal-meta li strong {
  color: var(--text);
  font-size: 0.85rem;
  text-align: right;
}
.legal-summary p {
  margin: 0;
  font-size: 0.92rem;
}
.legal-content {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}
.legal-toc {
  padding: var(--space-md) var(--space-lg);
}
.legal-toc h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.3rem;
}
.legal-toc a {
  color: var(--navy-mid);
  font-weight: 700;
  font-size: 0.9rem;
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--cyan);
}
.legal-section {
  scroll-margin-top: 7rem;
  min-width: 0;
}
.legal-section h2 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  margin-bottom: 0.45rem;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.legal-list li {
  line-height: 1.55;
}
.legal-note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  font-weight: 600;
}
.legal-summary a,
.legal-section a {
  overflow-wrap: anywhere;
}

.section-price-note {
  margin: -0.35rem 0 var(--space-lg);
  color: var(--text-muted);
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pricing-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}
.price-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.price-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.price-panel-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(140deg, #052e4a 0%, #0b3d5f 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.price-panel-head::before {
  content: none;
}
.price-panel-head h3 {
  margin: 0;
  color: var(--white);
  letter-spacing: 0.01em;
  font-size: 1.2rem;
}
.price-panel-head span {
  color: rgba(255,255,255,0.72);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.price-panel-body table {
  min-width: 0;
  box-shadow: none;
  border-radius: 0;
  table-layout: fixed;
}
.price-panel-body thead {
  background: var(--navy);
}
.price-panel-body th {
  color: rgba(255,255,255,0.9);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.72rem 1rem;
}
.price-panel-body th.price-col {
  text-align: center;
}
.price-panel-body td {
  padding: 0.7rem 1rem;
}
.price-panel-body td:first-child {
  font-weight: 600;
}
.price-panel-body tbody tr:nth-child(even) {
  background: #f8fbfd;
}
.price-value {
  font-family: "Raleway", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--cyan);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 36rem; }
thead { background: var(--navy); }
thead th {
  color: var(--white); font-family: "Raleway", sans-serif;
  font-weight: 600; padding: 1rem 1.2rem; text-align: left;
  font-size: 0.88rem; letter-spacing: 0.04em;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-alt); }
td { padding: 0.9rem 1.2rem; color: var(--text-body); font-size: 0.95rem; }
td:first-child { font-weight: 700; color: var(--text); }
.td-price { font-family: "Raleway", sans-serif; font-weight: 700; color: var(--cyan); font-size: 1.05rem; }

/* ── Forms ────────────────────────────────────────────────── */
.form-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; gap: 1rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: grid; gap: 0.35rem;
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%; padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--off-white);
  color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,168,198,0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { min-height: 9rem; resize: vertical; }
.form-feedback {
  margin: 0.2rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-feedback.is-success {
  border-color: rgba(0, 168, 198, 0.35);
  background: rgba(0, 168, 198, 0.08);
}
.form-feedback.is-info {
  border-color: rgba(10, 74, 112, 0.28);
  background: rgba(10, 74, 112, 0.08);
}
.form-feedback.is-error {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
}
.form-feedback a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-feedback a:hover,
.form-feedback a:focus-visible {
  color: var(--navy);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-2xl);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-area .brand-text strong { color: var(--white); }
.footer-brand-area .brand-text small  { color: rgba(255,255,255,0.5); }
.footer-brand-area p {
  color: rgba(255,255,255,0.6); font-size: 0.9rem;
  margin-top: var(--space-sm); max-width: 32ch; line-height: 1.65;
}
.footer-col h3 {
  font-family: "Raleway", sans-serif; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); margin-bottom: var(--space-sm);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--cyan-light); }
.footer-contact-item {
  color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 0.55rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-contact-item a:hover { color: var(--cyan-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  padding: var(--space-md) 0;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--cyan-light); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-content    { grid-template-columns: 1fr; }
  .hero-stats      { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-card  { padding: 1.2rem; }
  .split-60-40, .split-40-60 { grid-template-columns: 1fr; }
  .advanced-course-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .advanced-course-media {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .gallery-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-masonry > figure { height: clamp(190px, 28vw, 260px); }
  .latest-albums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-albums-grid > figure { height: clamp(210px, 31vw, 270px); min-height: 210px; }
  .partner-logos   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo:last-child { grid-column: 1 / -1; }
  .legal-layout    { grid-template-columns: 1fr; }
  .legal-summary   { position: static; }
  .media-split     { grid-template-columns: 1fr; }
  .pricing-board   { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .testimonials-track { grid-template-columns: 1fr 1fr; }
  .cta-band-inner  { grid-template-columns: 1fr; }
  .cta-band-actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 4.8rem; left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch;
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-item { width: 100%; display: block; }
  .nav-item-dropdown-head {
    position: relative;
    display: flex;
    align-items: center;
  }
  .nav-item-dropdown-head .nav-link {
    flex: 1;
    text-align: center;
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
  .nav-link {
    padding: 0.7rem 0.95rem;
    text-align: center;
  }
  .nav-link-parent { padding-right: 2.75rem; }
  .nav-link-parent::after { display: none; }
  .nav-dropdown-toggle {
    display: inline-grid;
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    border: 1px solid var(--border);
    background: var(--white);
  }
  .nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-toggle-icon {
    transform: translateY(12%) rotate(-135deg);
  }
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible {
    background: var(--surface-alt);
    color: var(--navy-mid);
  }
  .nav-dropdown {
    position: static;
    min-width: 0;
    margin-top: 0.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-item-dropdown.is-open .nav-dropdown {
    max-height: 10rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 0.2rem;
  }
  .nav-dropdown-link {
    display: block;
    padding: 0.52rem 0.95rem;
    border-radius: var(--r-md);
    text-align: center;
  }
  .nav-cta        { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-bar     { grid-template-columns: repeat(2, 1fr); }
  .site-map-dialog { width: min(94vw, 900px); }
}

@media (max-width: 600px) {
  .advanced-course-extra { display: none; }
  .topbar  { display: none; }
  .hero-full   { min-height: 85vh; }
  .hero-content { padding: 4rem 0 3.5rem; }
  body[data-page="home"] .madivaru-mobile-left {
    object-position: 68% center !important;
    min-height: 18rem !important;
  }
  body[data-page="freediving"] .freediving-intro .split-60-40 {
    gap: 0.85rem;
    align-items: start;
  }
  body[data-page="freediving"] .freediving-intro-media { order: -1; }
  body[data-page="freediving"] .freediving-intro-copy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 0.9rem 0.9rem;
    box-shadow: var(--shadow-card);
  }
  body[data-page="freediving"] .freediving-intro-copy h2 {
    font-size: clamp(1.28rem, 5.7vw, 1.65rem);
    margin-bottom: 0.45rem;
  }
  body[data-page="freediving"] .freediving-intro-copy p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  body[data-page="freediving"] .freediving-intro-list {
    margin-top: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.55rem;
    row-gap: 0.42rem;
  }
  body[data-page="freediving"] .freediving-intro-list li {
    font-size: 0.86rem;
    line-height: 1.35;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.42rem 0.45rem;
    align-items: center;
    gap: 0.4rem;
  }
  body[data-page="freediving"] .freediving-intro-list li::before {
    min-width: 0.86rem;
    width: 0.86rem;
    height: 0.86rem;
    margin-top: 0;
  }
  body[data-page="freediving"] .freediving-intro-media {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
  }
  body[data-page="freediving"] .freediving-intro figure img {
    aspect-ratio: 16 / 10 !important;
  }
  .partner-logos { grid-template-columns: 1fr; }
  .partner-logo:last-child { grid-column: auto; }
  .partner-logo { min-height: 5.2rem; }
  .partner-logo img { max-height: 2.8rem; }
  .partner-logo img.partner-logo-scubahub { max-height: 2.5rem; }
  body[data-page="privacy"] .page-hero { min-height: 34vh; }
  body[data-page="privacy"] .page-hero-content { padding: 2.4rem 0 2rem; }
  body[data-page="privacy"] .page-hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics-bar  { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { grid-template-columns: 1fr; }
  .gallery-masonry > figure { height: 220px; }
  .latest-albums-grid { grid-template-columns: 1fr; }
  .latest-albums-grid > figure { height: 220px; min-height: 220px; }
  .testimonials-track { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .site-footer {
    margin-top: var(--space-xl);
    padding: var(--space-xl) 0 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    border-bottom: 0;
  }
  .footer-brand-area,
  .footer-col {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-lg);
    padding: 0.9rem;
  }
  .footer-brand-area .brand {
    gap: 0.75rem;
    align-items: center;
  }
  .site-footer .brand-logo-img { height: 3.3rem; }
  .footer-brand-area .brand-text strong { font-size: 0.88rem; }
  .footer-brand-area .brand-text small  { font-size: 0.66rem; }
  .footer-brand-area p {
    margin-top: 0.6rem;
    max-width: none;
    line-height: 1.55;
    font-size: 0.87rem;
  }
  .footer-col h3 {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.58);
  }
  .footer-links { gap: 0.42rem; }
  .footer-links a { font-size: 0.92rem; }
  .footer-contact-item {
    margin-bottom: 0.42rem;
    font-size: 0.9rem;
  }
  .footer-col .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.65rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.9rem 0 1rem;
    gap: 0.35rem;
  }
  .footer-bottom > div {
    width: 100%;
    justify-content: center;
    gap: 0.8rem !important;
  }
  .section-block { padding: var(--space-xl) 0; }
  .section-block-lg { padding: var(--space-2xl) 0; }
  .legal-layout { gap: 0.75rem; }
  .legal-summary { order: 2; gap: 0.7rem; padding: 1rem; }
  .legal-content { order: 1; gap: 0.75rem; }
  .legal-toc { padding: 1rem; }
  .legal-toc h3 { font-size: 1rem; margin-bottom: 0.4rem; }
  .legal-toc ol { padding-left: 1rem; gap: 0.4rem; }
  .legal-toc a { font-size: 0.86rem; line-height: 1.45; }
  .legal-section { padding: 1rem; }
  .legal-section h2 { font-size: 1.1rem; }
  .legal-list { padding-left: 1rem; gap: 0.3rem; }
  .legal-meta li {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.12rem;
    font-size: 0.8rem;
    padding-bottom: 0.48rem;
  }
  .legal-meta li strong {
    font-size: 0.8rem;
    text-align: left;
    word-break: break-word;
  }
  .legal-summary .btn { width: 100%; }
  .cta-band     { padding: var(--space-xl) var(--space-md); border-radius: var(--r-lg); }
  .hero-stats   { grid-template-columns: 1fr 1fr; }
  .site-card-main { padding-right: 0; padding-top: 1.75rem; }
  .site-map-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
  }
  .site-map-dialog { width: calc(100vw - 1rem); border-radius: var(--r-md); }
  .site-map-dialog h3 { padding-right: 2.8rem; }
  .price-panel-head { padding: 0.85rem 0.9rem; }
  .price-panel-head h3 { font-size: 1.08rem; }
  .price-panel-body th, .price-panel-body td { padding: 0.62rem 0.7rem; }
  .price-panel-body th { font-size: 0.72rem; }
  .price-panel-body td { font-size: 0.9rem; }
  table         { min-width: 0; }
}

