/* 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 (Amazon-style pick cards) —— */
.featured {
  padding: 3.25rem 0;
  background: var(--white);
}

.product-grid,
.amz-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.amz-media {
  position: relative;
}

.amz-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: #565959;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.amz-badge-seller {
  background: #0d9488;
}

.amz-badge-cat {
  background: var(--ocean-dark);
}

.amz-img {
  position: relative;
  height: 200px;
  background: #f0f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}

.amz-sil {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
}

.amz-ph-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8895a3;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.amz-title {
  margin: 0.85rem 0.9rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 2.7em;
}

.amz-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin: 0 0.9rem 0.25rem;
  font-size: 0.85rem;
}

.amz-score {
  color: #c45500;
  font-weight: 700;
  font-size: 0.9rem;
}

.amz-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.amz-stars .star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #de7921;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.amz-stars .star.half {
  background: linear-gradient(90deg, #de7921 50%, #d5d9d9 50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.amz-stars .star.empty {
  background: #d5d9d9;
}

.amz-reviews {
  color: #007185;
  text-decoration: none;
  font-size: 0.85rem;
}

.amz-reviews:hover {
  color: #c45500;
  text-decoration: underline;
}

.amz-bought {
  margin: 0 0.9rem 0.45rem;
  font-size: 0.8rem;
  color: #565959;
  line-height: 1.3;
}

.amz-sample {
  color: #8895a3;
  font-style: italic;
  font-size: 0.75rem;
}

.amz-price {
  margin: 0.15rem 0.9rem 0.85rem;
  color: #0f1111;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.amz-price .price-symbol {
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  top: 0.2em;
}

.amz-price .price-whole {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.amz-price .price-fraction {
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  top: 0.15em;
}

.amz-sample-tag {
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8895a3;
  background: var(--bg-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.btn-amz {
  display: block;
  width: calc(100% - 1.8rem);
  margin: auto 0.9rem 0;
  margin-top: auto;
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 650;
  font-size: 0.9rem;
  color: #0f1111;
  background: #ffd814;
  border: 1px solid #fcd200;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
  transition: background 0.15s, border-color 0.15s;
}

.btn-amz:hover {
  background: #f7ca00;
  border-color: #f2c200;
  color: #0f1111;
}

.btn-amz:active {
  background: #f0b800;
}

/* legacy product helpers kept harmless if referenced elsewhere */
.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);
}

/* —— 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,
  .amz-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,
  .amz-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .amz-img {
    height: 210px;
  }
}

@media (min-width: 1100px) {
  .product-grid,
  .amz-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }

  .amz-img {
    height: 190px;
  }
}
