/* ============================================================
   Topping Out Paragliding — shared stylesheet
   Palette: navy / brick-red / cream / salmon-red
   Type: Barlow Condensed Italic 800 (display), Inter (body)
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #1E3A5F;
  --navy-deep: #142A48;
  --red: #912E21;
  --red-deep: #731F15;
  --red-light: #D7686E;     /* salmon — reversed-colour lockup accent */
  --cream: #FAF7F0;
  --cream-dark: #F0EBDC;

  /* Ink + grays */
  --ink: #1a2238;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --gray-bg: #f5f3ec;

  /* Semantic */
  --success: #166534;
  --warning: #c9a961;
  --error: #c73a2a;

  /* Spacing + layout */
  --wrap-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10,35,66,0.08);
  --shadow-md: 0 4px 12px rgba(10,35,66,0.1);
  --shadow-lg: 0 20px 40px -12px rgba(10,35,66,0.25);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 450ms ease;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--red); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  line-height: 1.55;
}
.eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-gray { color: var(--gray); }

/* ============================================================
   Layout — container + sections
   ============================================================ */
.wrap, .container {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}
.bg-cream { background: var(--cream); }
.bg-white { background: #ffffff; }
.bg-pale { background: var(--cream-dark); }
.bg-navy  { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .eyebrow { color: var(--red-light); }
.bg-navy .lead { color: rgba(255,255,255,0.86); }

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}
.section-header .eyebrow { margin-bottom: 0.6rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header .lead { color: var(--gray); }

/* ============================================================
   Header + navigation
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.header.scrolled {
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border-bottom-color: var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.header.hero-mode { background: transparent; border-bottom-color: transparent; }
.header.hero-mode.scrolled { background: rgba(250, 247, 240, 0.94); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-logo .lockup { pointer-events: none; }
.nav-menu {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
}
.nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
/* Burger stays navy on the cream header. (We also keep it navy over dark heroes
   because the sticky header sits on the body background, not on the hero.) */
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 320px);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--t-base);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu .nav-link {
    color: #fff;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav-menu .nav-link::after { display: none; }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active { color: var(--red-light); }
}

/* ============================================================
   LOCKUP — reusable logo (icon + wordmark)
   Based on brand-preview locked proportions.
   ============================================================ */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.lockup .lockup-mark {
  flex: 0 0 auto;
  width: clamp(60px, 7vw, 110px);     /* smaller than brand-preview — nav scale */
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.lockup .lockup-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lockup .lockup-text {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.005em;
  flex: 0 0 auto;
  display: inline-block;
  margin-left: clamp(-1.2rem, -1.5vw, -0.4rem);
}
.lockup .wm-main {
  color: var(--navy);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  display: block;
  text-align: left;
}
.lockup .wm-sub {
  color: var(--red);
  font-size: clamp(0.78rem, 1.5vw, 1.15rem);
  letter-spacing: 0.06em;
  display: block;
  text-align: right;
  margin-top: 0.2em;
}

/* Larger lockup for hero / footer usage */
.lockup--xl .lockup-mark { width: clamp(100px, 11vw, 180px); }
.lockup--xl .wm-main { font-size: clamp(2.2rem, 7vw, 4.5rem); }
.lockup--xl .wm-sub { font-size: clamp(1.3rem, 4.4vw, 2.8rem); }
.lockup--xl .lockup-text { margin-left: clamp(-2rem, -2.5vw, -0.75rem); }

/* Reversed colouring on dark backgrounds */
.lockup.reversed .wm-main { color: #FAF7F0; }
.lockup.reversed .wm-sub  { color: var(--red-light); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  letter-spacing: 0.01em;
  line-height: 1;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(145, 46, 33, 0.5);
}
.btn-primary:hover {
  background: var(--red-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(145, 46, 33, 0.6);
}
.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}
.bg-navy .btn-ghost,
.page-hero .btn-ghost { color: #fff; border-color: #fff; }
.bg-navy .btn-ghost:hover,
.page-hero .btn-ghost:hover { background: #fff; color: var(--navy); }

.btn-arrow::after {
  content: '→';
  font-weight: 400;
  transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   Page hero
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  margin-top: -1px;    /* close any gap vs the transparent sticky header */
}
.page-hero.compact { min-height: 48vh; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 42, 72, 0.55) 0%,
    rgba(20, 42, 72, 0.35) 40%,
    rgba(20, 42, 72, 0.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 7rem 1rem 4rem;
}
.hero-content .eyebrow {
  color: var(--red-light);
  font-weight: 700;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-content .lead {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero placeholder (shown until real imagery lands) */
.hero-placeholder {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #2a5080 100%);
  position: relative;
  overflow: hidden;
}
.hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(215, 104, 110, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(201, 169, 97, 0.1), transparent 50%);
}

/* ============================================================
   Grids — cards + offerings
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-bg);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-image img { transform: scale(1.03); }
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.card-body h3 { margin: 0; }
.card-body p { color: var(--gray); margin: 0; flex: 1; font-size: 0.95rem; }
.card-body .card-link {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.card-body .card-link::after {
  content: ' →';
  transition: margin-left var(--t-fast);
  display: inline-block;
}
.card:hover .card-body .card-link::after { margin-left: 0.2rem; }

/* Offering card (hero-image + overlay text) */
.offering-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.offering-card img,
.offering-card .offering-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--t-slow);
}
.offering-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,72,0) 0%, rgba(20,42,72,0.1) 40%, rgba(20,42,72,0.85) 100%);
  z-index: 1;
}
.offering-card:hover img,
.offering-card:hover .offering-bg { transform: scale(1.04); }
.offering-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}
.offering-content h3 { color: #fff; margin-bottom: 0.4rem; }
.offering-content p { color: rgba(255,255,255,0.9); margin: 0 0 0.75rem; font-size: 0.95rem; }
.offering-content .offering-cta {
  color: var(--red-light);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.offering-bg--navy  { background: linear-gradient(135deg, #1E3A5F, #2a5080); }
.offering-bg--red   { background: linear-gradient(135deg, #731F15, #912E21); }
.offering-bg--cream { background: linear-gradient(135deg, #c9a961, #e8c57f); }

/* ============================================================
   Forms
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form .field-row { grid-template-columns: 1fr; }
}
.form label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(145, 46, 33, 0.1);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .field-help {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.1rem;
}
.form label.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}
.form label.check input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 1.75rem;
  margin-top: 4rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .lockup { margin-bottom: 1rem; }
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  max-width: 32ch;
  margin: 0;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col a {
  color: rgba(255,255,255,0.75);
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--red-light); }
.icon-link { display: inline-flex; align-items: center; gap: 0.55rem; }
.icon-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Utility
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.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;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
