/* ════════════════════════════════════════════
   goFlySURF — Shared Stylesheet
   Used by: index.html, about.html, lessons.html,
            rentals.html, shop.html, legal.html
   ════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --navy:      #10212B;
  --dark:      #244665;
  --mid:       #005E73;
  --sky:       #0096A6;
  --cyan:      #1BD5FE;
  --lime:      #88E534;
  --gold:      #F5A623;
  --light:     #BDE0E8;
  --foam:      #EAF6FF;
  --white:     #FFFFFF;
  --green:     #2ecc71;
  /* Light surface system */
  --surface:     #ffffff;
  --surface-alt: #f4f8fb;
  --ink:         #1e293b;
  --ink-muted:   #6a727e;
  --border:      #e5e7eb;
  --gold-dark:   #9A6200;
  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 50px;
  /* Shadow & glow scale */
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);
  --glow-cyan: 0 6px 20px rgba(27,213,254,.35);
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, opacity .2s;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(27,213,254,.35); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .15s ease-out, width .3s, height .3s;
}
body:hover .cursor { opacity: 1; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 104px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
nav.scrolled {
  background: #ffffff;
  border-bottom-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.8; }
.nav-links {
  display: flex; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); opacity: .75;
  text-decoration: none;
  transition: color .2s, opacity .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  position: relative; overflow: hidden;
  background: var(--lime);
  color: #111111;
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 24px; border-radius: 8px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  box-shadow: 0 4px 20px rgba(136,229,52,.25);
  -webkit-tap-highlight-color: transparent;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(136,229,52,.40);
}
.nav-cta:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}
.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
  opacity: .75; white-space: nowrap;
  transition: color .2s, opacity .2s;
}
.nav-phone:hover { color: var(--dark); opacity: 1; }
.nav-phone-icon { font-size: 14px; }
.nav-hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; min-width: 44px; min-height: 44px; padding: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  background: var(--lime);
  color: #111111;
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 6px 28px rgba(136,229,52,.30);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(136,229,52,.45);
}
.btn-primary:active {
  transform: translateY(-1px) scale(.97);
  box-shadow: 0 6px 20px rgba(136,229,52,.30);
  transition-duration: .08s;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  background: transparent;
  border: 1.5px solid #244665;
  color: #244665;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 10px; text-decoration: none;
  transition: background .25s cubic-bezier(.4,0,.2,1), border-color .25s, transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover {
  background: rgba(36,70,101,.06);
  border-color: #244665;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36,70,101,.15);
}
.btn-ghost:active {
  transform: translateY(-1px) scale(.97);
  transition-duration: .08s;
}
.btn-arrow { font-size: 18px; display: inline-block; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }

/* ── SECTION COMMON ── */
.section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600; letter-spacing: .12em; font-size: 10px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 20px;
}
.sec-tag::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--cyan);
}
.sec-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: .95;
  color: var(--ink);
  margin-bottom: 20px;
}
.sec-title .accent {
  color: var(--dark);
}
.sec-sub {
  font-weight: 400; font-size: 17px; line-height: 1.7;
  color: var(--ink-muted); max-width: 560px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--surface-alt);
  padding: 26px 48px;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.trust-icon { font-size: 16px; }

/* ── SCROLL REVEAL ── */
/* Default is visible — JS adds .pending immediately, then .visible on scroll.
   Content renders without JS (SEO, slow tabs, headless renderers). */
.reveal { transition: opacity .45s ease, transform .45s ease; }
.reveal.pending { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Forms already show border-color change on focus — suppress the ring there */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Restore system cursor — custom cursor uses mousemove JS */
  body { cursor: auto !important; }
  #cursor, #cursor-ring { display: none !important; }
  /* Ensure pending reveals are immediately visible */
  .reveal.pending { opacity: 1 !important; transform: none !important; }
}

/* ── FOOTER ── */
footer {
  background: #080f14;
  border-top: 1px solid rgba(0,150,166,.12);
  padding: 60px 48px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,150,166,.1);
  margin-bottom: 32px;
}
.footer-logo-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 14px; line-height: 1.7;
  color: var(--light); opacity: .6; max-width: 280px;
}
.footer-col-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--light); opacity: .65;
  text-decoration: none; transition: color .2s, opacity .2s;
}
.footer-links a:hover { color: var(--white); opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--light); opacity: .65;
}
.footer-contact-icon { display: inline-flex; align-items: center; color: var(--cyan); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-size: 12px; color: var(--light); opacity: .55;
  font-family: 'Rubik', sans-serif; font-weight: 600; letter-spacing: .04em;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,150,166,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
  color: var(--light);
}
.social-link:hover {
  background: rgba(27,213,254,.1);
  border-color: rgba(27,213,254,.35);
  transform: translateY(-2px);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px; color: var(--light); opacity: .65;
  text-decoration: none; font-family: 'Rubik', sans-serif;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: opacity .2s;
}
.footer-legal a:hover { opacity: 1; }

/* ── STICKY MOBILE CALL BUTTON ── */
.sticky-call {
  display: none;
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1100;
  background: var(--lime);
  color: #111111;
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(136,229,52,.40);
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-call:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 14px 40px rgba(136,229,52,.55);
}
.sticky-call:active {
  transform: translateX(-50%) scale(.96);
  transition-duration: .08s;
}

/* ── KEYFRAMES ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.3); }
}

/* ── ALIASES (other pages use these alternate class names) ── */
.inner { max-width: 1200px; margin: 0 auto; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600; letter-spacing: .12em; font-size: 10px;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 16px;
}
.sec-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--cyan); }
.sec-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: .95; color: var(--ink); margin-bottom: 16px;
}
.sec-title .accent {
  color: var(--dark);
}
.sec-sub {
  font-weight: 400; font-size: 16px; line-height: 1.7;
  color: var(--ink-muted); max-width: 580px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  background: transparent;
  border: 1.5px solid #244665;
  color: #244665;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 10px; text-decoration: none;
  transition: background .25s cubic-bezier(.4,0,.2,1), border-color .25s, transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover {
  background: rgba(36,70,101,.06);
  border-color: #244665;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36,70,101,.15);
}
.btn-ghost:active {
  transform: translateY(-1px) scale(.97);
  transition-duration: .08s;
}
/* Ghost/secondary buttons on dark surfaces (heroes + CTA bands) — the slate default vanishes on navy */
.hero .btn-ghost, .bottom-cta .btn-ghost, .cta-section .btn-ghost,
.hero .btn-ghost, .bottom-cta .btn-ghost, .cta-section .btn-ghost {
  border-color: rgba(27,213,254,.45);
  color: var(--cyan);
}
.hero .btn-ghost:hover, .bottom-cta .btn-ghost:hover, .cta-section .btn-ghost:hover,
.hero .btn-ghost:hover, .bottom-cta .btn-ghost:hover, .cta-section .btn-ghost:hover {
  background: rgba(27,213,254,.08);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(27,213,254,.15);
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,150,166,.25), transparent);
  margin: 0 48px;
}

/* ══════════════════════════════
   HERO PHOTO PANEL
   ══════════════════════════════ */
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%;
  z-index: 1;
  opacity: 0; animation: reveal-up .9s ease forwards 1s;
}
.hero-carousel {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-carousel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(16,33,43,1) 0%, rgba(16,33,43,.55) 28%, rgba(16,33,43,.1) 55%, transparent 75%);
  z-index: 2;
  pointer-events: none;
}
.hero-carousel::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset -4px 0 60px rgba(27,213,254,.08);
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 1024px) { .hero-visual { width: 40%; } }
@media (max-width: 768px)  { .hero-visual { display: none; } }

/* ══════════════════════════════
   RESPONSIVE — SHARED
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    align-items: center;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-phone { display: none; }

  /* ── Mobile nav open state ── */
  nav.nav-open {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  }
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    max-height: 70vh;
    overflow-y: auto;
  }
  nav.nav-open .nav-links li { width: 100%; }
  nav.nav-open .nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  nav.nav-open .nav-links a::after { display: none; }
  nav.nav-open .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin: 12px 0 4px;
  }

  .section { padding: 72px 24px; }
  footer { padding: 48px 24px 96px; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-bar { padding: 20px 24px; }
  .trust-inner { gap: 24px; }
  .sticky-call { display: flex; align-items: center; gap: 10px; }
}

@media (min-width: 769px) {
  .nav-phone { display: flex; }
}

/* Accessibility utility */
.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; }

/* ── SHARED UTILITY CLASSES ── */
/* Shimmer line vertical positions (hero sections across all pages) */
.sl-1 { bottom: 40px; }
.sl-2 { bottom: 80px; animation-delay: -3s; opacity: .5; }

/* Breadcrumb current-page indicator */
.breadcrumb-active { color: var(--cyan); opacity: 1; }

/* Anchor reset — inherits surrounding text color; used for phone/email in footer */
.link-inherit { color: inherit; text-decoration: none; }

/* Staff/admin login link in footer */
.staff-login-link { color: rgba(184,212,232,.2); font-size: 11px; }

/* Full-cover image within a positioned container */
.board-img-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CTA section inner wrapper — relative z-index with centered text */
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner .sec-tag,
.cta-inner .sec-tag { justify-content: center; }
.cta-inner .sec-title,
.cta-inner .sec-title { text-align: center; color: #fff; }
.cta-inner .sec-title .accent,
.cta-inner .sec-title .accent { color: var(--cyan); }
.cta-inner .sec-sub { margin: 0 auto 40px; color: var(--light); }
.cta-inner .sec-sub { text-align: center; margin: 0 auto; }

/* Shared bottom-CTA band (inner pages: lessons, rentals, shop, about, legal) */
.bottom-cta {
  background: linear-gradient(135deg, var(--mid), var(--dark), var(--navy));
  border-top: 1px solid rgba(27,213,254,.15);
  text-align: center; padding: 100px 48px;
  position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: ''; position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(27,213,254,.07) 0%, transparent 70%);
}

/* Shared FAQ accordion (lessons, rentals).
   Scoped under .faq-list so it never touches the homepage's static .faq-grid FAQ,
   which shares the .faq-item/.faq-q/.faq-a class names but has no accordion collapse. */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; max-width: 800px; }
.faq-list .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: border-color .3s; }
.faq-list .faq-item:hover { border-color: rgba(27,213,254,.25); }
.faq-list .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .03em; color: var(--ink); transition: color .2s; }
.faq-list .faq-item:hover .faq-q { color: var(--cyan); }
.faq-list .faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: rgba(27,213,254,.08); border: 1px solid rgba(27,213,254,.25); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--cyan); flex-shrink: 0; transition: transform .3s, background .2s, border-color .2s; }
.faq-list .faq-item:hover .faq-toggle { background: rgba(27,213,254,.2); border-color: rgba(27,213,254,.55); }
.faq-list .faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.faq-list .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-list .faq-item.open .faq-a { max-height: 600px; }
.faq-list .faq-ai { padding: 0 28px 22px; font-size: 14px; line-height: 1.75; color: var(--ink-muted); opacity: .9; }

/* FAQ section background — lessons/rentals only (homepage overrides to white in its own block) */
.faq-section { background: var(--surface-alt); }
