/* SV Marine — polished marine ecommerce storefront
   Ocean blue header, white product cards, seafoam CTAs.
   Distinct from competitor marine shops. System fonts. Mobile-first. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ocean: #1f76a7;
  --ocean-dark: #165a82;
  --ocean-deep: #0e3d5c;
  --navy-text: #0d2137;
  --ink: #1a2b3c;
  --muted: #5c6b7a;
  --white: #ffffff;
  --bg: #f7f9fb;
  --bg-soft: #eef2f6;
  --divider: #e2e8ee;
  --seafoam: #0d9488;
  --seafoam-hover: #0f766e;
  --seafoam-soft: #ccfbf1;
  --coral: #e07a5f;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(13, 33, 55, 0.08);
  --shadow-hover: 0 10px 32px rgba(13, 33, 55, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ocean);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ocean-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--seafoam);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Utility bar —— */
.utility-bar {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
}

.utility-bar a {
  color: #a8d4ea;
  text-decoration: none;
  font-weight: 500;
}

.utility-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* —— Header —— */
.site-header {
  background: var(--ocean);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(14, 61, 92, 0.25);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.logo:hover {
  color: var(--white);
  opacity: 0.92;
}

.logo-mark {
  display: flex;
  color: var(--white);
  line-height: 0;
}

.logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* —— Category bar —— */
.cat-bar {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
}

.cat-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  padding: 0.55rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-bar a {
  color: var(--navy-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.cat-bar a:hover {
  background: var(--bg-soft);
  color: var(--ocean);
}

/* —— Hero —— */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 48%, #2a8ab8 100%);
  color: var(--white);
  padding: 3.75rem 0 4.25rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 120px;
  opacity: 0.15;
  border-radius: 50%;
  background: var(--white);
}

.wave-1 {
  bottom: -60px;
  height: 140px;
}

.wave-2 {
  bottom: -90px;
  height: 160px;
  opacity: 0.08;
  transform: scaleX(1.1);
}

.hero-shape {
  position: absolute;
  top: -40%;
  right: -8%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8dff0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

.pitch {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--seafoam);
  color: var(--white);
  border-color: var(--seafoam);
}

.btn-primary:hover {
  background: var(--seafoam-hover);
  border-color: var(--seafoam-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-shop {
  background: var(--ocean);
  color: var(--white);
  width: 100%;
  text-align: center;
  margin-top: auto;
  border-color: var(--ocean);
}

.btn-shop:hover {
  background: var(--seafoam);
  border-color: var(--seafoam);
  color: var(--white);
}

/* —— Trust strip —— */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  padding: 1.5rem 0;
}

.trust-inner {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--seafoam-soft);
  color: var(--seafoam);
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-text);
  line-height: 1.3;
}

.trust-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

/* —— Section heads —— */
.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2,
.disclosure-block h2,
.promo-banner h2,
.prose h2,
.page-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--navy-text);
  letter-spacing: -0.015em;
  font-weight: 750;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1rem;
}

/* —— Crew / categories —— */
.crew {
  padding: 3.25rem 0;
  background: var(--bg);
}

.crew-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.crew-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.crew-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c5d4e0;
}

.crew-icon {
  color: var(--ocean);
  margin-bottom: 0.85rem;
  line-height: 0;
}

.crew-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy-text);
}

.crew-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  font-weight: 650;
  text-decoration: none;
  color: var(--ocean);
}

.text-link:hover {
  color: var(--seafoam);
  text-decoration: underline;
}

/* —— Products —— */
.featured {
  padding: 3.25rem 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 0 1.35rem;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c5d4e0;
  transform: translateY(-2px);
}

.product-visual {
  position: relative;
  height: 140px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-blob {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.55;
}

.blob-safety { background: radial-gradient(circle, #99d6f0, transparent 70%); }
.blob-comms  { background: radial-gradient(circle, #99e6d8, transparent 70%); }
.blob-nav    { background: radial-gradient(circle, #a8c4f0, transparent 70%); }
.blob-angler { background: radial-gradient(circle, #f0c9b8, transparent 70%); }
.blob-stow   { background: radial-gradient(circle, #b8e0f0, transparent 70%); }
.blob-rig    { background: radial-gradient(circle, #c5d8e8, transparent 70%); }

.product-glyph {
  position: relative;
  z-index: 1;
  color: var(--ocean-deep);
  opacity: 0.85;
}

.product-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 1.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--bg-soft);
  color: var(--ocean-dark);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

.product-card h3 {
  margin: 0 1.25rem 0.4rem;
  font-size: 1.1rem;
  color: var(--navy-text);
  font-weight: 700;
}

.product-card > p {
  margin: 0 1.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.78rem !important;
  color: var(--seafoam) !important;
  font-weight: 600;
  margin: 0 1.25rem 1rem !important;
}

.product-card .btn-shop {
  width: calc(100% - 2.5rem);
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

/* —— Testimonials —— */
.testimonials {
  padding: 3.25rem 0;
  background: var(--bg);
}

.quote-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.quote-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--divider);
  border-top: 3px solid var(--seafoam);
  box-shadow: var(--shadow);
}

.quote-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}

.quote-card footer {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* —— Promo banner —— */
.promo-banner {
  background: linear-gradient(90deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  padding: 2.5rem 0;
}

.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.promo-banner h2 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.promo-banner p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.promo-banner .btn-primary {
  flex-shrink: 0;
}

/* —— Disclosure block —— */
.disclosure-block {
  padding: 2.75rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--divider);
}

.disclosure-block p {
  color: var(--muted);
  max-width: 44rem;
  font-size: 0.95rem;
}

.disclosure-block strong {
  color: var(--navy-text);
}

/* —— Footer —— */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ec5e0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-brand-col p {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  max-width: 22rem;
  line-height: 1.5;
}

.footer-domain {
  margin-top: 0.75rem !important;
}

.footer-domain a {
  color: #8ec5e0;
  font-weight: 600;
  text-decoration: none;
}

.footer-domain a:hover {
  color: var(--white);
  text-decoration: underline;
}

.logo-footer {
  color: var(--white);
}

.logo-footer .logo-text {
  font-size: 1.05rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 0 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Disclosure page —— */
.page-hero {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  padding: 2.75rem 0 2.25rem;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.prose {
  padding: 2.5rem 0 3.5rem;
  background: var(--white);
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  max-width: 40rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose code {
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--navy-text);
}

.note-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--seafoam-soft);
  border-left: 3px solid var(--seafoam);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 40rem;
}

/* —— Breakpoints —— */
@media (min-width: 600px) {
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .crew-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .trust-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .hero {
    padding: 4.75rem 0 5.25rem;
  }

  .product-visual {
    height: 160px;
  }
}
