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

html,
body {
  margin: 0;
  padding: 0;
}

/* =========================
   VARIABLES
========================= */
:root {
  --max-width: 1200px;

  --color-navy: #002444;
  --color-navy-deep: #00182e;
  --color-teal: #18a0b0;
  --color-teal-light: #5cc7d0;

  --color-text: var(--color-navy);
  --color-bg-alt: #f3f7f8;
  --color-border: rgba(0, 36, 68, 0.1);

  --header-height: 5.5rem;
}

/* =========================
   GLOBAL
========================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: #ffffff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.75rem;
}

a {
  color: inherit;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 100;

  display: flex;
  align-items: center;

  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-height: 4rem;
  height: auto;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-teal);
}

.main-nav a.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 0.35rem;
  background: var(--color-navy);
  color: #fff;
  font-weight: 600;
}

.main-nav a.nav-cta:hover {
  background: var(--color-teal);
}

/* =========================
   MOBILE NAV TOGGLE
========================= */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  border-radius: 0.3rem;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-input:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   HERO (dark, full-bleed)
========================= */
.hero-dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(24, 160, 176, 0.35), transparent 65%),
    var(--color-navy-deep);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal-light);
  margin: 0 0 1rem;
}

.hero-dark h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-dark p {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 22rem;
  height: auto;
}

/* =========================
   BUTTONS
========================= */
.cta-button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.9rem 1.85rem;
  background: var(--color-teal);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: var(--color-teal-light);
}

.cta-button.on-light {
  background: var(--color-navy);
}

.cta-button.on-light:hover {
  background: var(--color-teal);
}

/* =========================
   STATS BAR
========================= */
.stats-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 1.75rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(0, 36, 68, 0.7);
  letter-spacing: 0.02em;
}

/* =========================
   SECTION HEADINGS
========================= */
.section-heading {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.section-heading p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0, 36, 68, 0.75);
  margin: 0;
}

/* =========================
   CARD GRID (services)
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 1.75rem;
}

.card .icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 36, 68, 0.75);
}

/* =========================
   WHY US (teal band)
========================= */
.section-alt {
  background: var(--color-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-grid h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.why-grid p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(0, 36, 68, 0.8);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-teal);
}

/* =========================
   CTA BAND
========================= */
.cta-band {
  background: var(--color-navy);
  color: #ffffff;
  text-align: center;
}

.cta-band .container {
  padding: 4rem 1.75rem;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
}

/* =========================
   PAGE HERO (subpages)
========================= */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(24, 160, 176, 0.35), transparent 65%),
    var(--color-navy-deep);
  color: #ffffff;
}

.page-hero .container {
  padding: 3.5rem 1.75rem 3rem;
  max-width: 44rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* =========================
   SERVICE LIST (services page)
========================= */
.service-list {
  display: grid;
  gap: 2rem;
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.service-item .icon {
  width: 3rem;
  height: 3rem;
}

.service-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-item p {
  margin: 0;
  line-height: 1.6;
  max-width: 46rem;
  color: rgba(0, 36, 68, 0.78);
}

/* =========================
   TEAM (about page)
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 1.5rem;
}

.team-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.team-card .role {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.team-card p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 36, 68, 0.75);
}

/* =========================
   TRACK RECORD (about page)
========================= */
.person-track {
  margin-bottom: 3rem;
}

.person-track:last-child {
  margin-bottom: 0;
}

.person-track-heading {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1.1rem;
}

.person-track-heading span {
  font-weight: 500;
  color: var(--color-teal);
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.highlight-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 36, 68, 0.78);
  max-width: 46rem;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.track-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 1.75rem;
}

.track-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.track-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 36, 68, 0.78);
}

.track-note {
  margin: -1.5rem 0 2.5rem;
  font-size: 0.9rem;
  color: rgba(0, 36, 68, 0.6);
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.credential-tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  background: var(--color-bg-alt);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

/* =========================
   CONTACT
========================= */
.contact-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 2rem;
}

.contact-card .email-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.1rem;
  text-decoration: none;
}

.contact-card .email-link:hover {
  color: var(--color-teal);
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(0, 36, 68, 0.8);
}

/* =========================
   FAQ
========================= */
.faq-list {
  display: grid;
  gap: 1.5rem;
  max-width: 46rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
  color: rgba(0, 36, 68, 0.78);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.75rem;
  background: #ffffff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(0, 36, 68, 0.75);
}

.footer-inner a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-navy);
}

.footer-inner a:hover {
  color: var(--color-teal);
}

/* =========================
   SCROLL FADE-IN
========================= */
.fade-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-target.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .contact-block {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .card-grid,
  .track-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 4.5rem;
  }

  .logo {
    max-height: 3rem;
  }

  .nav-toggle-label {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;

    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .nav-toggle-input:checked ~ .main-nav {
    display: flex;
  }

  .main-nav a.nav-cta {
    margin-top: 0.25rem;
  }

  .container {
    padding: 3rem 1.25rem;
  }

  .card-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }
}
