/* ============================================
   Skyways 2 Highways — "Coastal Classic" design system
   ============================================ */

:root {
  --navy: #203560;
  --sky: #5DBDF9;
  --light-blue: #EBF6FE;
  --white: #FFFFFF;
  --cream: #FDF7EB;
  --cream-alt: #F5F0E8;
  --muted-blue-grey: #A9C7E8;
  --silver-grey: #A7A9B4;
  /* Accessible text variant of Silver Grey: the brand hex (#A7A9B4) only
     contrasts ~2.3:1 on white/light-blue, below the WCAG AA 4.5:1 floor.
     Same hue, darkened, used only where Silver Grey is set as TEXT color
     (fine print/captions). The exact brand hex is kept for non-text uses
     (borders, dividers, icons). */
  --silver-grey-text: #6B6E7B;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --max-width: 1120px;
}

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

/* Hidden from view but still read by screen readers / search engines */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.2em; }

a { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sky);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
}

.nav-brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--sky);
  color: var(--sky);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 4px;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--sky);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    background: var(--navy);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 4px; }
  .nav { flex-wrap: wrap; }
  .nav-brand img { width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .nav-brand img { width: 44px; height: 44px; }
}

/* ---------- Horizon line (signature element) ---------- */
.horizon-line {
  height: 4px;
  width: 100%;
  background: var(--sky);
  border: none;
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 88px 0 72px;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 { color: var(--white); }

.hero .subhead {
  color: var(--muted-blue-grey);
  font-size: 1.2rem;
  max-width: 620px;
}

.hero-tagline {
  color: var(--muted-blue-grey);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 620px;
}

.hero--compact { padding: 64px 0 56px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.btn:hover { filter: brightness(0.95); }

.link-underline {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
  padding-bottom: 2px;
}

.link-underline:hover { border-bottom-width: 3px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--light { background: var(--light-blue); }

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-grid img { border-radius: var(--radius); }

@media (max-width: 720px) {
  .section-grid { grid-template-columns: 1fr; }
}

/* ---------- Video grid (Come ride along) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 53, 96, 0.25);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid var(--navy);
  margin-left: 6px;
  position: relative;
  z-index: 1;
}

.play-btn .play-circle {
  position: absolute;
  z-index: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky);
}

.play-btn:hover .play-circle { filter: brightness(0.95); }

/* ---------- Cards (Free Resources) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid--cols-1 {
  grid-template-columns: 1fr;
  max-width: 380px;
  margin: 0 auto;
}

.card-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 788px;
  margin: 0 auto;
}

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

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--muted-blue-grey);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--soon {
  opacity: 0.75;
}

.card .tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--light-blue);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.card--soon .tag {
  background: var(--white);
  border: 1px solid var(--silver-grey);
  color: var(--silver-grey-text);
}

/* ---------- Offer cards (The Flight Deck) ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.offer-card {
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.offer-card--free { background: var(--light-blue); }
.offer-card--paid { background: var(--cream); }

.offer-card .price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.offer-card .tag--popular {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.offer-card .btn { align-self: flex-start; }

/* ---------- Stats block (Work With Us) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat .label {
  color: var(--navy);
  font-size: 0.95rem;
}

/* ---------- Story page hero (full photo, not cropped) ---------- */
/* The Our Story banner photo is square, so we "contain" it to show the
   whole scene (sign, Jeep, crew) instead of cropping to faces on mobile.
   Layer sizes: gradient overlay = cover (fills), photo = contain (whole). */
.hero--story-banner {
  background-size: cover, contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--navy);
}
@media (min-width: 721px) {
  .hero--story-banner { min-height: 520px; position: relative; }
  /* Let the heading + caption be placed independently around the photo */
  .hero--story-banner .hero-inner {
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  /* Heading sits in the left navy margin, off the photo */
  .hero--story-banner h1 {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  /* Caption drops to the bottom of the photo, over the open pavement */
  .hero--story-banner .subhead {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: 500px;
    max-width: 46vw;
    text-align: center;
    margin: 0;
  }
}

/* ---------- Story page sections ---------- */
.story-block { padding: 56px 0; }

.goldie-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.story-photo {
  border-radius: var(--radius);
  margin: 24px auto;
  width: 100%;
  max-width: 340px;
  height: auto;
}

@media (max-width: 720px) {
  .goldie-feature { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.site-footer a.contact {
  color: var(--sky);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.site-footer a.contact:hover { text-decoration: underline; }

.footer-fine-print {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--muted-blue-grey);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
