/* ═══════════════════════════════════════════════════════
   Custom Boat Parts — Precision Marine Fabrication
   Design: Manufacturing-grade precision + luxury marine
   Inspired by Xometry / Protolabs aesthetic
═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #06101e;
  --bg-soft:   #09172c;
  --bg-card:   rgba(255,255,255,.04);
  --bg-card-hi:rgba(255,255,255,.07);

  /* Text */
  --text:  #edf2f9;
  --muted: #8fa3c0;
  --dim:   #516180;

  /* Gold — primary brand (nautical brass) */
  --gold:        #c9a84c;
  --gold-bright: #e2c76e;
  --gold-dim:    rgba(201,168,76,.12);
  --gold-border: rgba(201,168,76,.26);

  /* Ocean — secondary */
  --ocean:        #2a8db5;
  --ocean-light:  #4db3d4;
  --ocean-dim:    rgba(42,141,181,.10);
  --ocean-border: rgba(42,141,181,.26);

  /* Structure */
  --border:    rgba(255,255,255,.09);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.28);
  --shadow-md: 0 8px 28px rgba(0,0,0,.40);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);

  /* Geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Layout */
  --max-w:  1200px;
  --nav-h:  64px;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── AMBIENT GLOW ───────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 1400px 600px at 10% -10%, rgba(42,141,181,.07), transparent 65%),
    radial-gradient(ellipse 1200px 500px at 90%  5%, rgba(201,168,76,.05), transparent 65%),
    radial-gradient(ellipse 1800px 900px at 50% 115%, rgba(6,16,30,.85), transparent 60%);
}

/* ─── SKIP ───────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); padding: 10px 16px; border-radius: var(--r-xs);
  z-index: 9999; text-decoration: none;
}
.skip:focus { left: 16px; }

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative; z-index: 1;
}

/* ─── TOPBAR / NAV ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(6,16,30,.82);
  border-bottom: 1px solid var(--border);
}
.topbarInner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brandMark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  font-size: 17px; flex-shrink: 0;
}
.brandText {
  font-size: 13.5px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em;
  max-width: 34ch;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-xs);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav .navCta {
  margin-left: 10px;
  background: var(--gold);
  color: #100d01; font-weight: 700;
  border-radius: var(--r-xs);
  padding: 9px 20px;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 2px 12px rgba(201,168,76,.28);
}
.nav .navCta:hover {
  background: var(--gold-bright); color: #100d01;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,.40);
}

/* ─── WRAP ───────────────────────────────────────── */
.wrap { position: relative; z-index: 1; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.heroMedia {
  position: absolute; inset: 0; z-index: 0;
}
.heroMedia img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(.80) brightness(.70) contrast(1.12);
}
.heroOverlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,16,30,.95) 0%, rgba(6,16,30,.78) 50%, rgba(6,16,30,.30) 100%),
    linear-gradient(180deg, transparent 60%, rgba(6,16,30,.50) 100%);
}
.heroInner {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto; padding: 88px 28px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px; align-items: center;
  width: 100%;
}

/* Eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 18px;
  padding: 5px 14px;
  background: var(--ocean-dim);
  border: 1px solid var(--ocean-border);
  border-radius: 999px;
}

.heroTitle {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.heroLead {
  font-size: 17px; color: var(--muted);
  line-height: 1.70; max-width: 60ch;
  margin-bottom: 30px;
}
.ctaRow {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: var(--r-xs);
  font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, transform .12s;
}
.btnPrimary {
  background: var(--gold); color: #100d01;
  border-color: rgba(201,168,76,.20);
  box-shadow: 0 4px 18px rgba(201,168,76,.28);
}
.btnPrimary:hover {
  background: var(--gold-bright); transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,168,76,.40);
}
.btnSecondary {
  background: rgba(255,255,255,.07); color: var(--text);
  border-color: var(--border);
}
.btnSecondary:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }

.heroNote  { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.heroTrust { font-size: 11px; letter-spacing: .10em; text-transform: uppercase; color: var(--gold); opacity: .88; }

/* Hero spec card */
.heroCard {
  background: rgba(9,23,44,.70);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.heroCardItem {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.heroCardItem:last-child { border-bottom: none; }
.heroCardLabel {
  font-size: 10px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 6px;
}
.heroCardValue {
  font-size: 30px; font-weight: 800;
  color: var(--gold); line-height: 1;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.heroCardDesc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ─── STATS STRIP ────────────────────────────────── */
.statsStrip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.statsRow {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.statItem {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid var(--border);
}
.statItem:last-child { border-right: none; }
.statItem .num {
  font-size: 26px; font-weight: 800;
  color: var(--gold); line-height: 1; margin-bottom: 5px;
  letter-spacing: -.02em;
}
.statItem .lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION COMMON ─────────────────────────────── */
.sectionBlock {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.sectionBlock--stripe { background: var(--bg-soft); }

.sectionLabel {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 10px;
}
.sectionTitle {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  margin-bottom: 14px;
}
.sectionLead {
  font-size: 16px; color: var(--muted); line-height: 1.70;
  max-width: 66ch; margin-bottom: 44px;
}

/* ─── CAPABILITY CARDS ───────────────────────────── */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.capCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.capCard:hover {
  border-color: var(--gold-border);
  background: var(--bg-card-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.capNum {
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold); opacity: .80;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.capCard h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.capCard p { font-size: 14px; color: var(--muted); line-height: 1.70; }

/* ─── PROCESS STEPS (Horizontal, Protolabs-style) ── */
.processWrap { position: relative; }
.processSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 0;
}
/* Connecting line */
.processSteps::before {
  content: "";
  position: absolute;
  top: 23px; /* center of 48px badge */
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), var(--border), var(--gold-border));
  z-index: 0; pointer-events: none;
}
.processStep {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 28px;
  position: relative; z-index: 1;
}
.stepNum {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold-border);
  color: var(--gold);
  font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; flex-shrink: 0;
  box-shadow: 0 0 0 5px var(--bg);
}
.stepBody h3 {
  font-size: 16px; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 10px;
}
.stepBody p { font-size: 14px; color: var(--muted); line-height: 1.70; }

/* ─── MATERIALS ──────────────────────────────────── */
.twoCol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.matPanel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px 28px;
}
.matPanel h3 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.matList { list-style: none; padding: 0; }
.matList li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px; line-height: 1.55;
}
.matList li:last-child { border-bottom: none; }
.matList li strong { color: var(--text); display: block; margin-bottom: 3px; }
.matList li span { color: var(--muted); font-size: 13px; }

/* ─── PHOTO STRIP ────────────────────────────────── */
.photoGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photoCard {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
}
.photoCard img {
  width: 100%; height: 250px;
  object-fit: cover; display: block;
  filter: saturate(.90) contrast(1.06);
  transition: transform .40s ease;
}
.photoCard:hover img { transform: scale(1.04); }
.photoCap {
  padding: 14px 18px;
  background: var(--bg-soft);
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}

/* ─── LEAD TIME STATS ────────────────────────────── */
.statsGrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.statCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative; overflow: hidden;
}
.statCard::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
}
.statBig {
  font-size: 44px; font-weight: 800;
  color: var(--gold); letter-spacing: -.04em;
  line-height: 1; margin-bottom: 10px;
}
.statLabel {
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.statNote { font-size: 13.5px; color: var(--muted); line-height: 1.60; }

/* ─── FAQ ────────────────────────────────────────── */
.faqList { display: grid; gap: 8px; }
.faqItem {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .15s;
}
.faqItem[open] { border-color: rgba(255,255,255,.14); }
.faqItem summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700; font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background .15s;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary::after {
  content: "+";
  font-size: 22px; font-weight: 300;
  color: var(--gold); flex-shrink: 0;
  transition: transform .20s;
  line-height: 1;
}
.faqItem[open] summary::after { transform: rotate(45deg); }
.faqItem summary:hover { background: rgba(255,255,255,.03); }
.faqItem p {
  padding: 0 24px 22px;
  font-size: 14px; color: var(--muted); line-height: 1.75;
}

/* ─── QUOTE CALLOUT ──────────────────────────────── */
.quoteCallout {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 36px;
}
.calloutTitle { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.calloutText  { font-size: 13px; color: var(--muted); }

/* ─── FORM ───────────────────────────────────────── */
.formGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.formField { display: flex; flex-direction: column; gap: 7px; }
.formField label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--muted);
}
.formField input,
.formField select,
.formField textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px; font-family: inherit;
  outline: none; width: 100%;
  transition: border-color .15s, background .15s;
}
.formField input:focus,
.formField select:focus,
.formField textarea:focus {
  border-color: var(--gold-border);
  background: rgba(255,255,255,.06);
}
.formField input[type="file"] { padding: 10px 14px; cursor: pointer; }
.formField select { cursor: pointer; }
.formField textarea { min-height: 130px; resize: vertical; }
.formField small { font-size: 12px; color: var(--dim); line-height: 1.55; }
.span2 { grid-column: 1 / -1; }
.formActions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 22px;
}
.formFine { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* ─── DISCLAIMER ─────────────────────────────────── */
.disclaimer {
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 12.5px; color: var(--muted); line-height: 1.65;
  margin-top: 24px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 28px 28px;
}
.footerGrid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footerBrandRow {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 14px;
}
.footerTitle { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 12px; }
.footerText  { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.footerText a { color: var(--gold); text-decoration: none; }
.footerText a:hover { text-decoration: underline; }
.footerNav {
  display: flex; flex-direction: column; gap: 8px;
}
.footerNav a {
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.footerNav a:hover { color: var(--gold); }
.footerBottom {
  max-width: var(--max-w); margin: 0 auto;
  font-size: 12px; color: var(--dim); text-align: center;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .topbarInner { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 10px; }
  .nav a { font-size: 12.5px; padding: 7px 10px; }

  .heroInner { grid-template-columns: 1fr; padding: 64px 20px; }
  .heroCard { display: none; }

  .statsRow { grid-template-columns: repeat(2, 1fr); }
  .statItem { border-right: none; border-bottom: 1px solid var(--border); }
  .statItem:nth-child(odd) { border-right: 1px solid var(--border); }
  .statItem:last-child,
  .statItem:nth-last-child(-n+2):nth-child(odd):last-child { border-bottom: none; }

  .cardGrid { grid-template-columns: 1fr 1fr; }

  .processSteps { grid-template-columns: 1fr; }
  .processSteps::before { display: none; }
  .processStep {
    flex-direction: row; align-items: flex-start;
    text-align: left; padding: 0; gap: 18px;
  }
  .processStep + .processStep {
    margin-top: 28px; padding-top: 28px;
    border-top: 1px solid var(--border);
  }
  .stepNum { flex-shrink: 0; margin-bottom: 0; }

  .twoCol    { grid-template-columns: 1fr; }
  .photoGrid { grid-template-columns: 1fr 1fr; }
  .statsGrid { grid-template-columns: 1fr; }

  .quoteCallout { flex-direction: column; align-items: flex-start; }
  .formGrid { grid-template-columns: 1fr; }

  .footerGrid { grid-template-columns: 1fr; gap: 28px; }

  .sectionBlock { padding: 52px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 620px) {
  .nav a:not(.navCta) { display: none; }
  .brandText { max-width: 24ch; }

  .heroTitle { font-size: 30px; }
  .heroInner { padding: 52px 20px; }
  .ctaRow { flex-direction: column; }

  .cardGrid  { grid-template-columns: 1fr; }
  .photoGrid { grid-template-columns: 1fr; }

  .statsRow { grid-template-columns: 1fr 1fr; }
  .statItem { border-right: none; border-bottom: 1px solid var(--border); }
  .statItem:nth-child(odd) { border-right: 1px solid var(--border); }

  .sectionBlock { padding: 44px 0; }
  .sectionLead  { margin-bottom: 32px; }
}
