/* ============================================================
   KayakVault Homepage — home.css
   Sunset palette · Full-bleed panels · Camino Journey layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Palette ── */
:root {
  --kv-horizon:  #F4622A;
  --kv-ember:    #F7934C;
  --kv-dusk:     #1B2A4A;
  --kv-deep:     #0D1B2A;
  --kv-sky:      #4A90D9;
  --kv-sand:     #FBF0E0;
  --kv-fog:      rgba(255,255,255,0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #fff;
  background: var(--kv-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--kv-horizon);
  color: #fff;
  padding: 16px 36px;
}
.btn-primary:hover {
  background: var(--kv-ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,98,42,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 15px 35px;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* ============================================================
   1. NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.nav-logo span {
  color: var(--kv-horizon);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-signup {
  background: var(--kv-horizon);
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.875rem;
}

.nav-signup:hover {
  background: var(--kv-ember) !important;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--kv-dusk);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 100px 2rem 2rem;
  gap: 0.5rem;
}

.nav-mobile-drawer.open {
  transform: translateX(0);
}

.nav-mobile-drawer a {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}

.nav-mobile-drawer a:last-child {
  border-bottom: none;
}

.nav-mobile-drawer a:hover {
  color: var(--kv-horizon);
}

.nav-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

/* Overlay behind drawer */
.nav-mobile-drawer::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-mobile-drawer.open::before {
  opacity: 1;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(13,27,42,0.7) 0%, rgba(27,42,74,0.55) 40%, rgba(244,98,42,0.15) 100%),
    url('/images/NickFish1.webp') center / cover no-repeat;
  background-color: var(--kv-deep);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 120px 1.5rem 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kv-horizon);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--kv-sand);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceHint 2s ease-in-out infinite;
  color: rgba(255,255,255,0.4);
}

@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   3. FEATURE PANELS
   ============================================================ */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 80vh;
}

.feature-panel.dark  { background: var(--kv-deep); }
.feature-panel.light { background: var(--kv-sand); color: var(--kv-deep); }
.feature-panel.dusk  { background: var(--kv-dusk); }

.panel-image {
  position: relative;
  min-height: 50vw;
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s linear;
}

.panel-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

.panel-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kv-horizon);
  margin-bottom: 1rem;
}

.feature-panel.light .panel-eyebrow {
  color: var(--kv-horizon);
}

.panel-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.panel-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  opacity: 0.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

.feature-panel.light .panel-body {
  color: var(--kv-dusk);
  opacity: 0.8;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--kv-horizon);
  transition: gap 0.2s ease, color 0.2s ease;
}

.panel-cta:hover {
  gap: 14px;
  color: var(--kv-ember);
}

.feature-panel.light .panel-cta {
  color: var(--kv-horizon);
}

/* ============================================================
   4. BRAND PROMISE STRIP
   ============================================================ */
.brand-strip {
  background: var(--kv-horizon);
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.brand-strip-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

/* ============================================================
   5. HOOKED / TOURNAMENT SECTION
   ============================================================ */
.hooked-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  background: var(--kv-dusk);
  padding: var(--space-3xl) var(--space-xl);
  align-items: center;
}

.hooked-text {
  max-width: 540px;
}

.hooked-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.hooked-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  opacity: 0.75;
  margin-bottom: 2rem;
}

.hooked-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kv-ember);
  background: rgba(247,147,76,0.12);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hooked-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
}

.hooked-visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 16px;
}

/* ============================================================
   6. STATS STRIP
   ============================================================ */
.stats-strip {
  display: flex;
  justify-content: center;
  background: var(--kv-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}

.stat-item {
  flex: 1;
  max-width: 360px;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   7. COMMUNITY GRID
   ============================================================ */
.community-section {
  background: var(--kv-deep);
  padding: var(--space-3xl) var(--space-xl);
}

.community-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.community-tag {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
}

.community-tag a {
  color: var(--kv-sky);
  font-weight: 500;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto var(--space-2xl);
  border-radius: 12px;
  overflow: hidden;
}

.community-tile {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.community-tile-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

img.community-tile-inner {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.community-tile:hover .community-tile-inner {
  transform: scale(1.05);
}

.tile-2 {
  grid-row: span 2;
}

.community-cta {
  text-align: center;
}

/* ============================================================
   8. FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--kv-deep);
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.final-cta-sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--kv-deep);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.store-badge svg {
  width: 24px;
  height: 24px;
}

.web-cta {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
}

.web-cta a {
  color: var(--kv-sky);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.web-cta a:hover {
  color: #fff;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  background: var(--kv-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.footer-logo span {
  color: var(--kv-horizon);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--kv-horizon);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: var(--space-sm);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET+ (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  .community-grid {
    grid-template-rows: repeat(2, 300px);
  }

  .hooked-section {
    padding: var(--space-2xl);
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .nav-hamburger       { display: none; }
  .nav-mobile-drawer   { display: none !important; }
  .nav-links           { display: flex; }

  .feature-panel       { grid-template-columns: 1fr 1fr; }
  .feature-panel.reverse { direction: rtl; }
  .feature-panel.reverse > * { direction: ltr; }

  .panel-image { min-height: unset; }

  .panel-text {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .hooked-section { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (<= 767px)
   ============================================================ */
@media (max-width: 767px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }

  .site-nav {
    padding: 1rem var(--space-sm);
  }

  .hero-headline { font-size: clamp(3rem, 14vw, 5rem); }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .feature-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-panel.reverse { direction: ltr; }

  .panel-image {
    min-height: 56vw;
    order: -1 !important;
  }

  .panel-text {
    padding: var(--space-xl) var(--space-md);
  }

  .panel-body { max-width: 100%; }

  .stats-strip {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .stat-item {
    width: 100%;
    max-width: 100%;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-md);
  }

  .stat-item:first-child { border-top: none; }

  .hooked-section {
    grid-template-columns: 1fr;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }

  .tile-2 { grid-row: span 1; }

  .brand-strip-text { font-size: clamp(2rem, 10vw, 3.5rem); white-space: normal; }
  .brand-strip.marquee .brand-strip-text { white-space: nowrap; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
  }

  .footer-links { gap: var(--space-md); }

  .final-cta { padding: var(--space-xl) var(--space-md); }

  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (<= 390px)
   ============================================================ */
@media (max-width: 390px) {
  .hero-headline { font-size: 2.75rem; }
  .panel-headline { font-size: 2.5rem; }

  .community-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 160px);
  }

  .tile-2 { grid-row: span 1; }
}
