/* ============================================
   BUTE ALUMINUM BOATS — Shared Design System
   Palette: Deep Ocean #0B2A3B · Coastal Slate #3A4A52
            Aluminum #A7ADB3 · Stone #EBE6DF · Pacific Mist #2F6F75
   Type: Montserrat (self-hosted)
   Home page styles — the original landing page.
   ============================================ */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --deep-ocean: #0B2A3B;
  --coastal-slate: #3A4A52;
  --aluminum: #A7ADB3;
  --stone: #EBE6DF;
  --pacific-mist: #2F6F75;
  --white: #FFFFFF;
  --ink: #0B2A3B;
  --body-text: #31414B;
  --font: 'Montserrat', -apple-system, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1280px;
}

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

body {
  font-family: var(--font);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--pacific-mist);
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ''; width: 2.2rem; height: 2px; background: var(--pacific-mist); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--coastal-slate); max-width: 56ch; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--stone { background: var(--stone); }
.section--ocean { background: var(--deep-ocean); }
.section--ocean h1, .section--ocean h2, .section--ocean h3 { color: var(--white); }
.section--ocean .lede, .section--ocean p { color: rgba(235, 230, 223, 0.78); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.site-header.scrolled { background: rgba(11, 42, 59, 0.96); box-shadow: 0 2px 24px rgba(0,0,0,0.25); backdrop-filter: blur(8px); }
.brand-logo { height: 34px; width: auto; }
.brand-logo { display: block; color: var(--white); line-height: 0; }
.brand-logo img, .brand-logo svg { height: 100%; width: auto; }

.main-nav { display: flex; gap: 2.2rem; align-items: center; }
.main-nav a {
  color: var(--white); text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; transition: opacity 0.2s;
  position: relative; padding: 0.3rem 0;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--pacific-mist);
}
.main-nav .nav-cta {
  background: var(--pacific-mist); padding: 0.65rem 1.3rem; opacity: 1;
  transition: background 0.2s;
}
.main-nav .nav-cta:hover { background: #25585d; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--deep-ocean);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,42,59,0.92) 0%, rgba(11,42,59,0.35) 45%, rgba(11,42,59,0.15) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3.5rem, 8vw, 6rem); padding-top: 9rem; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .tagline-bar { width: 3.2rem; height: 3px; background: var(--pacific-mist); margin: 1.4rem 0; }
.hero .pillars {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(235,230,223,0.85); margin-top: 1.6rem;
}
.hero .pillars span { margin: 0 0.55rem; color: var(--pacific-mist); }
.hero .hero-sub { color: rgba(235,230,223,0.85); max-width: 46ch; margin-top: 1.2rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; padding: 1rem 2rem;
  transition: all 0.25s ease; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--white); color: var(--deep-ocean); }
.btn--primary:hover { background: var(--pacific-mist); color: var(--white); }
.btn--ocean { background: var(--deep-ocean); color: var(--white); }
.btn--ocean:hover { background: var(--pacific-mist); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--deep-ocean); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split img { width: 100%; height: 100%; object-fit: cover; }
.split .media-frame { position: relative; overflow: hidden; }
.split .media-frame img { aspect-ratio: 4/3; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; }
.stat .stat__num { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat .stat__num em { font-style: normal; font-size: 0.5em; vertical-align: super; }
.stat .stat__label { margin-top: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--aluminum); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.card {
  background: var(--white); padding: 2.2rem; border-top: 3px solid var(--pacific-mist);
  box-shadow: 0 1px 3px rgba(11,42,59,0.08);
}
.card h3 { margin-bottom: 0.8rem; }
.card p { font-size: 0.95rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2.4rem; margin-top: 2rem; }
.feature-list li {
  position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: var(--body-text);
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 0.85rem; height: 2px; background: var(--pacific-mist);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 3rem; }
.gallery a { display: block; overflow: hidden; position: relative; }
.gallery img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Full-bleed quote / banner ---------- */
.banner { position: relative; min-height: 62vh; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.banner .banner__media { position: absolute; inset: 0; }
.banner .banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner .banner__media::after { content: ''; position: absolute; inset: 0; background: rgba(11,42,59,0.62); }
.banner .wrap { position: relative; z-index: 2; }
.banner h2 { color: var(--white); max-width: 20ch; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 2.4rem; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid rgba(11,42,59,0.14); }
.spec-table th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pacific-mist); width: 40%; }
.spec-table td { font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(235,230,223,0.18); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.5rem 0; font-weight: 600; color: var(--white);
  font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--pacific-mist); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 1.5rem; max-width: 68ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-block { margin-top: 2rem; }
.contact-block h3 { color: var(--white); margin-bottom: 0.5rem; }
.contact-block a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--pacific-mist); }
.contact-block p { color: rgba(235,230,223,0.8); }

.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--aluminum); margin-bottom: 0.5rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.9rem 1rem; background: rgba(235,230,223,0.06);
  border: 1px solid rgba(167,173,179,0.35); color: var(--white); font-family: var(--font); font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--pacific-mist); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; min-height: 58vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--deep-ocean); }
.page-hero .hero__media::after { background: linear-gradient(to top, rgba(11,42,59,0.97) 0%, rgba(11,42,59,0.6) 55%, rgba(11,42,59,0.35) 100%); }
.page-hero .hero__content { padding-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.page-hero .hero__content .hero-copy {
  display: inline-block; padding: 1.6rem 2rem;
  background: rgba(11,42,59,0.55); backdrop-filter: blur(4px);
}
.page-hero h1, .page-hero .hero-copy h1, .hero h1 { color: #FFFFFF; }
.page-hero .hero-sub, .hero .hero-sub { color: rgba(235,230,223,0.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-ocean); color: rgba(235,230,223,0.75); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer .brand-logo { height: 40px; margin-bottom: 1.2rem; padding: 0; }
.site-footer .brand-logo, .site-footer .brand-logo:hover { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(235,230,223,0.75); text-decoration: none; display: block; padding: 0.28rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(167,173,179,0.2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; color: var(--aluminum);
}

/* ---------- Colorway toggle ---------- */
.colorways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 3rem; }
.colorway { position: relative; overflow: hidden; }
.colorway img { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; }
.colorway .colorway__tag {
  position: absolute; left: 0; bottom: 0; background: rgba(11,42,59,0.88); color: var(--white);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.7rem 1.2rem;
}
.colorway .colorway__tag em { font-style: normal; color: var(--aluminum); }
@media (max-width: 900px) { .colorways { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-mist { color: var(--pacific-mist); }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.note { font-size: 0.82rem; color: var(--aluminum); margin-top: 1.4rem; }
.section--ocean .note { color: rgba(167,173,179,0.8); }

/* ---------- Reveal animation (JS adds .js to <html>; without JS everything stays visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .split--wide-media, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature-list { grid-template-columns: 1fr; }

  .main-nav {
    display: none; position: fixed; inset: 0; background: var(--deep-ocean);
    flex-direction: column; justify-content: center; gap: 2rem; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer; z-index: 101; position: relative;
    width: 34px; height: 26px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: 0.3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Bute 21 side profile: show the whole boat, no crop */
.split .media-frame img[src*="bute21-launch-side"] { aspect-ratio: 1290 / 848; }
