/* =====================================================================
   SURF N TURF SAIL'N — SITE STYLES
   Dark, editorial theme matching the existing surfnturfsailing.com
   landing page: near-black backgrounds, a warm sunset-gold accent,
   Playfair Display for headlines, Montserrat for nav/labels.
   Single stylesheet, no build step, no framework — easy to hand-edit.
   ===================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #161616;
  --bg-card: #1c1c1c;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --ivory: #f2ede2;
  --muted: #a3a3a3;
  --muted-dim: #6f6f6f;
  --gold: #d9a256;
  --gold-dark: #b17f3c;
  --gold-ink: #14110a;
  --danger: #b5493f;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); text-decoration: none; }

img, iframe { max-width: 100%; }

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

.is-hidden { display: none !important; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--white); color: var(--gold-ink); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-teal:hover { background: var(--gold); color: var(--gold-ink); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Header / Nav ----------------------------------------------------- */
.site-header {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #050505;
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--line-soft);
    width: 100%;
  }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 18% 75%, rgba(217, 162, 86, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(217, 162, 86, 0.08), transparent 65%),
    linear-gradient(180deg, #050505 0%, #0c0c0c 55%, #050505 100%);
  color: var(--white);
  padding: 110px 0 84px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero.hero-sm { padding: 64px 0 52px; }
.hero-photo {
  background:
    radial-gradient(ellipse 60% 55% at 18% 75%, rgba(217, 162, 86, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.72) 55%, rgba(5,5,5,0.92) 100%),
    url('../images/hero-koyukon-sunset.jpg');
  background-size: cover;
  background-position: center 60%;
}
.hero-photo-crew {
  background:
    radial-gradient(ellipse 60% 55% at 18% 75%, rgba(217, 162, 86, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.76) 55%, rgba(5,5,5,0.94) 100%),
    url('../images/about-hero-bg.jpg');
  background-size: cover;
  background-position: center 45%;
}
.hero-photo-lifeaboard {
  background:
    radial-gradient(ellipse 60% 55% at 18% 75%, rgba(217, 162, 86, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.74) 55%, rgba(5,5,5,0.94) 100%),
    url('../images/hero-lifeaboard-bg.jpg');
  background-size: cover;
  background-position: center 55%;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-crumb {
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 18px;
}

/* ---- Section blocks ---------------------------------------------------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { margin-bottom: 0; }

/* ---- Cards / grids ------------------------------------------------------ */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card .card-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.card-spacer { flex: 1; }

.placeholder-media {
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse 70% 60% at 25% 80%, rgba(217, 162, 86, 0.18), transparent 70%),
    linear-gradient(150deg, #171310 0%, #0d0d0d 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  margin-bottom: 18px;
}
.placeholder-media div div { color: var(--muted-dim); margin-top: 8px; font-family: var(--font-sans); letter-spacing: 0.02em; }
.placeholder-media svg { width: 38px; height: 38px; opacity: 0.9; margin-bottom: 8px; }

.media-photo {
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  overflow: hidden;
  display: block;
}
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-photo.media-4x3 { aspect-ratio: 4/3; }

/* ---- Crew spotlight cards (about.html) --------------------------------- */
.crew-card { text-align: center; }
.crew-card .media-photo { aspect-ratio: 1/1; border-radius: 50%; max-width: 220px; margin: 0 auto 20px; }
.crew-card h3 { margin-bottom: 6px; }
.crew-card .card-meta { justify-content: center; }

/* ---- Life Aboard photo gallery ------------------------------------------ */
.photo-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 780px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}
.photo-gallery .media-photo { aspect-ratio: 1/1; margin-bottom: 0; }

/* ---- Video thumbnail grid (videos.html "All Episodes") ------------------ */
.video-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.video-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.video-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.video-thumb .play-badge svg { width: 16px; height: 16px; fill: var(--white); margin-left: 2px; }
.video-card:hover .play-badge { background: var(--gold); border-color: var(--gold); }
.video-card:hover .play-badge svg { fill: var(--gold-ink); }
.video-card-title {
  padding: 12px 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Gear cards ---------------------------------------------------------- */
.gear-card { position: relative; }
.gear-price-tag {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.gear-owned {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

/* ---- Disclosure banner ---------------------------------------------------- */
.disclosure {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 44px;
}
.disclosure strong { color: var(--white); }

/* ---- Spec table -------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-table th {
  width: 40%;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
}
.spec-table td { color: var(--muted); }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* ---- Timeline (refit projects) ------------------------------------------ */
.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 28px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
}
.timeline-status {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---- Terminal / code blocks (nav-station.html build guide) -------------- */
.code-block {
  background: #060606;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0 20px;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ivory);
  white-space: pre;
}
.code-block .cmt { color: var(--muted-dim); }
.step-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  margin-bottom: 10px;
}

/* ---- Video embed wrap ---------------------------------------------------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-dim);
  margin-top: 14px;
}

/* ---- Config warning banner (only shows until config.js is filled in) ---- */
.config-warning {
  background: var(--bg-2);
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 16px;
}
.config-warning a { color: var(--white); text-decoration: underline; }

/* ---- Newsletter / CTA band ------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--gold-ink);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--gold-ink); }
.cta-band p { color: rgba(20, 17, 10, 0.75); }
.inline-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}
.inline-form input[type="email"], .inline-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: rgba(10, 8, 4, 0.12);
  color: var(--gold-ink);
}
.inline-form input::placeholder { color: rgba(20, 17, 10, 0.55); }
.cta-band .btn-primary { background: var(--gold-ink); color: var(--gold); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--gold-ink); }

/* ---- Forms ---------------------------------------------------------------- */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--bg-2);
  color: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted-dim); margin-top: 10px; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); font-family: var(--font-sans); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  padding: 52px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.social-row { display: flex; gap: 12px; margin-top: 12px; }
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.social-row a:hover { border-color: var(--gold); background: var(--bg-2); }
.social-row svg { width: 16px; height: 16px; fill: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--muted-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
