:root {
  --ocean-900: #071a2d;
  --ocean-800: #0b2742;
  --ocean-500: #2f6fa3;
  --ocean-200: #cfe3f2;

  --bg-dark: var(--ocean-900);
  --bg-light: #ffffff;

  --text-primary: #ffffff;
  --text-secondary: #b7cbe0;
  --text-dark: #0b1f33;
}

/* =========================
   GLOBAL RESET / SAFETY
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden; /* CRITICAL for iOS */
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

/* =========================
   LAYOUT
   ========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow {
  max-width: 720px;
}

/* =========================
   NAV
   ========================= */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(7, 26, 45, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  font-family: "Tenor Sans", serif;
  letter-spacing: 0.2em;
}

.nav-links a {
  margin-left: 28px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    url("assets/hero-bg.png") center center / cover no-repeat,
    linear-gradient(
      180deg,
      var(--ocean-900) 0%,
      var(--ocean-800) 100%
    );
}

.hero-content {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 0 24px;
}

.hero-scrim {
  display: inline-block;
  padding: 48px 64px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 760px;
}

.hero h1 {
  font-family: "Tenor Sans", serif;
  font-size: 56px;
  letter-spacing: 0.25em;
}

.tagline {
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.subhead {
  margin-top: 32px;
  font-size: 18px;
  color: var(--text-secondary);
}

/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 140px 0;
}

.section.light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section.dark {
  background: linear-gradient(
    180deg,
    var(--ocean-900),
    var(--ocean-800)
  );
}

.section h2 {
  font-family: "Tenor Sans", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-500);
  margin-bottom: 24px;
}

.lead {
  font-size: 18px;
  margin-bottom: 48px;
}

/* =========================
   CARDS
   ========================= */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 40px;
  border-radius: 6px;
  border-top: 4px solid var(--ocean-500);
}

.section.dark .card {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.card h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.card p {
  color: var(--text-secondary);
}

.card ul {
  list-style: none;
}

.card li {
  margin-bottom: 10px;
}

/* =========================
   CONTACT
   ========================= */

.section#contact p {
  margin-bottom: 12px;
}

.section#contact .contact-email {
  margin-top: 8px;
}

.contact-email a {
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background: #041423;
  padding: 28px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 16px;
  color: var(--text-secondary);
  text-decoration: none;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */

@media (max-width: 768px) {

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  /* NAV */
  .nav-inner {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  /* HERO */
  .hero {
    height: 90vh;
    background-position: center center !important;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: 0.18em;
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .subhead {
    font-size: 16px;
    margin-top: 20px;
  }

  .hero-scrim {
    padding: 32px 24px;
    border-radius: 16px;
    max-width: 100%;
  }

  /* FORCE ALL CARD ROWS TO STACK */
  .card-row {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }

  /* CONTACT */
  .section#contact {
    text-align: center;
  }

  .contact-email a {
    font-size: 17px;
    word-break: break-word;
  }

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
}
