/* =============================================
   BLUE DEEP OPEN — Main Stylesheet
   =============================================
   Font imports, CSS variables, shared nav,
   shared banner, footer, and utility classes.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

/* ── CSS VARIABLES ── */
:root {
  --sand:        #F5EDD8;
  --sand2:       #EDE0C4;
  --ocean:       #1A5C7A;
  --ocean-light: #2A7FA8;
  --ocean-pale:  #D6EAF3;
  --gold:        #B8882A;
  --gold-light:  #D4A843;
  --gold-pale:   #FAF0D7;
  --navy:        #0D3347;
  --text:        #1C2B35;
  --muted:       #5A7080;
  --white:       #FFFFFF;
  --card-bg:     #FFFDF8;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Lora', Georgia, serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
}

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

a { text-decoration: none; }

/* ── NAVIGATION ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--sand2);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--ocean);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 0 18px;
  height: 68px;
  line-height: 68px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--ocean);
  border-bottom-color: var(--gold);
}

.nav-register {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.25s;
  text-decoration: none;
  display: inline-block;
  line-height: normal;
}

.nav-register:hover {
  background: var(--ocean-light);
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ── PAGE BANNER (shared hero for inner pages) ── */
.page-banner {
  background: var(--navy);
  padding: 70px 60px 60px;
  position: relative;
  overflow: hidden;
}

.page-banner-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 12px;
}

.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 84px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 0.95;
}

.page-banner-title span {
  color: var(--gold-light);
}

.page-banner-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: 16px;
  max-width: 520px;
  line-height: 1.7;
}

.banner-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
}

/* ── PAGE BODY WRAPPER ── */
.page-body {
  padding: 64px 60px;
  background: var(--sand);
}

/* ── SECTION LABELS ── */
.sec-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 10px;
}

.gold-bar {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 10px 0 36px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 40px;
  line-height: 1;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 4px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 15px 38px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ocean {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  padding: 13px 30px;
  cursor: pointer;
  transition: background 0.25s;
  display: inline-block;
  text-decoration: none;
}

.btn-ocean:hover {
  background: var(--ocean-light);
}

.btn-ghost {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 1px solid rgba(184, 136, 42, 0.35);
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--sand2);
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 64px 60px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  border-top: 2px solid var(--gold);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 14px;
  display: block;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.footer-social a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--sand2); z-index: 300; }
  .nav-links li a { height: auto; line-height: 1; padding: 16px 24px; border-bottom: 1px solid var(--sand2); }
  .nav-hamburger { display: flex; }
  .page-banner { padding: 50px 24px 48px; }
  .page-body { padding: 48px 24px; }
  footer { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 32px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}


/* =============================================
   ANIMATION SYSTEM — appended to style.css
   ============================================= */

/* ── CARD FADE-IN / STAGGER ── */
.anim-card {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.anim-card--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover lift — cards that also have .card get perspective tilt from JS */
.anim-card:hover {
  box-shadow: 0 12px 36px rgba(13, 51, 71, 0.12);
  transition-delay: 0s !important;
}

/* Event rows slide in from the left instead */
.event-row.anim-card {
  transform: translateX(-24px);
  opacity: 0;
}
.event-row.anim-card--in {
  transform: translateX(0);
  opacity: 1;
}

/* Val cards (about page values) fan in from bottom with slight rotation */
.val-card.anim-card {
  transform: translateY(40px) rotate(-1deg);
}
.val-card.anim-card--in {
  transform: translateY(0) rotate(0deg);
}

/* Sidebar cards slide in from the right */
.sidebar-card.anim-card {
  transform: translateX(28px);
  opacity: 0;
}
.sidebar-card.anim-card--in {
  transform: translateX(0);
  opacity: 1;
}

/* ── PAGE BANNER ENTRANCE ── */
.banner-enter .page-banner-eyebrow,
.banner-enter .page-banner-title,
.banner-enter .page-banner-sub {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity  0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-enter--in .page-banner-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.banner-enter--in .page-banner-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.banner-enter--in .page-banner-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* ── COUNTDOWN FLIP ── */
.cd-flip {
  animation: cdFlip 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cdFlip {
  0%   { transform: translateY(-12px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* ── GOLD BAR GROW-IN ── */
.gold-bar {
  transform-origin: left center;
  animation: goldGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes goldGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── NAV LINK UNDERLINE SLIDE ── */
.nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  margin-top: -2px;
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}
/* Hide the hard border-bottom now that we use ::after */
.nav-links li a {
  border-bottom: none !important;
}

/* ── BUTTON PRESS FEEL ── */
.btn-primary:active,
.btn-ocean:active,
.nav-register:active {
  transform: scale(0.96);
}

/* ── HERO STATS BAR number pulse on load ── */
.hs-num {
  animation: statPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hs-item:nth-child(1) .hs-num { animation-delay: 1.3s; }
.hs-item:nth-child(2) .hs-num { animation-delay: 1.45s; }
.hs-item:nth-child(3) .hs-num { animation-delay: 1.6s; }
.hs-item:nth-child(4) .hs-num { animation-delay: 1.75s; }

@keyframes statPop {
  0%   { opacity: 0; transform: scale(0.7); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── PARTNER TILE hover lift ── */
.partner-tile {
  transition: background 0.3s, transform 0.25s;
}
.partner-tile:hover {
  transform: translateY(-3px);
}

/* ── MERCH ADD BUTTON ripple ── */
.merch-add {
  position: relative;
  overflow: hidden;
}
.merch-add::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.merch-add:active::after { opacity: 1; }

/* ── FILTER BUTTON ACTIVE transition ── */
.ef-btn, .mcat {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.ef-btn:active, .mcat:active {
  transform: scale(0.95);
}

/* ── ANGLER CARD stats slide-up when card enters ── */
.angler-card .angler-stats {
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.anim-card:not(.anim-card--in) .angler-stats {
  opacity: 0;
  transform: translateY(10px);
}
.anim-card--in .angler-stats {
  opacity: 1;
  transform: translateY(0);
}

/* ── CAPTAIN BADGE pop-in ── */
.cap-badges .cbadge {
  display: inline-block;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.anim-card--in .cap-badges .cbadge:nth-child(1) { opacity:1; transform:scale(1); transition-delay:0.35s; }
.anim-card--in .cap-badges .cbadge:nth-child(2) { opacity:1; transform:scale(1); transition-delay:0.47s; }
.anim-card--in .cap-badges .cbadge:nth-child(3) { opacity:1; transform:scale(1); transition-delay:0.59s; }

/* ── SECTION EYEBROW fade-in on .reveal/.visible ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FLOW FADE-UP ── */
.flow-fade-up {
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-fade-up.in-view { opacity: 1; transform: translateY(0); }

.flow-fade-up .news-card:nth-child(1) { transition-delay: 0s; }
.flow-fade-up .news-card:nth-child(2) { transition-delay: 0.12s; }
.flow-fade-up .news-card:nth-child(3) { transition-delay: 0.24s; }
.flow-fade-up .about-stat-card:nth-child(1) { transition-delay: 0.05s; }
.flow-fade-up .about-stat-card:nth-child(2) { transition-delay: 0.15s; }
.flow-fade-up .about-stat-card:nth-child(3) { transition-delay: 0.25s; }
.flow-fade-up .about-stat-card:nth-child(4) { transition-delay: 0.35s; }

/* ── PERSPECTIVE on card grids for tilt effect ── */
.news-grid, .charter-grid, .merch-grid, .anglers-grid {
  perspective: 1200px;
}
.news-card, .charter-card, .merch-item, .angler-card {
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
