:root {
  --evergreen: #143D32;
  --evergreen-light: #1D5645;
  --evergreen-pale: #E4EEE9;
  --ivory: #FAF6EF;
  --ivory-dim: #F1EAD9;
  --coral: #F48091;
  --lagoon: #267B6F;
  --ink: #1B2420;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(20, 61, 50, 0.12);
  --max-width: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --section-space: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { scroll-padding-top: 84px; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, .display {
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  color: var(--evergreen);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1em; }

a { color: var(--evergreen); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 61, 50, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup img { height: 34px; width: auto; }

.brand-lockup span {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--evergreen);
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--evergreen);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.15s;
  padding: 8px 0;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] { opacity: 1; }

.nav-toggle { display: none; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  nav.main-nav { gap: 16px; }
  nav.main-nav a { font-size: 0.88rem; }
}

@media (max-width: 1050px) {
  nav.main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(20,61,50,0.2);
    color: var(--evergreen);
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 1rem;
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid rgba(20,61,50,0.08);
    box-shadow: var(--shadow);
  }
}

/* ---------- Nav dropdown (Policies) ---------- */

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: none;
  color: var(--evergreen);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.15s;
  padding: 8px 0;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { opacity: 1; }

.nav-caret { font-size: 0.7em; transition: transform 0.15s; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  min-width: 180px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu a {
  text-decoration: none;
  color: var(--evergreen);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] { opacity: 1; }

@media (min-width: 1051px) {
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ivory);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    gap: 8px;
    z-index: 10;
  }
}

@media (max-width: 1050px) {
  .nav-dropdown-menu { padding-left: 12px; gap: 10px; margin-top: 8px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  min-height: 48px;
}

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

.btn-primary {
  background: var(--evergreen);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--evergreen-light); }

.btn-outline {
  background: transparent;
  border-color: var(--evergreen);
  color: var(--evergreen);
}
.btn-outline:hover { background: var(--evergreen-pale); }

.btn-ghost-light {
  background: rgba(250, 246, 239, 0.14);
  border-color: rgba(250, 246, 239, 0.65);
  color: var(--ivory);
}
.btn-ghost-light:hover { background: rgba(250, 246, 239, 0.24); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(120deg, #12392f 0%, var(--evergreen) 58%, #1e5a4a 100%);
  color: var(--ivory);
  padding: clamp(36px, 4vw, 60px) 0;
  position: relative;
  overflow: hidden;
}

.hero h1, .hero p { color: var(--ivory); }

.hero-center .wrap { text-align: center; }
.hero-center .actions { justify-content: center; }
.hero-center .tagline { max-width: 620px; margin: 0 auto 32px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  text-align: left;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
  margin: 10px 0 10px;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 480px;
  margin: 0 0 24px;
  opacity: 0.92;
}

.hero .actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero .actions .btn-primary {
  background: var(--ivory);
  color: var(--evergreen);
}
.hero .actions .btn-primary:hover { background: var(--ivory-dim); }

/* ---------- Hero product gallery ---------- */

.hero-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 300px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hero-card-1 { grid-column: 1; grid-row: 1 / span 2; }
.hero-card-2 { grid-column: 2; grid-row: 1; }
.hero-card-3 { grid-column: 2; grid-row: 2; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .tagline { max-width: none; }
  .hero-gallery { min-height: 300px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .hero-gallery { min-height: 224px; gap: 10px; }
  .hero .actions { gap: 10px; }
  .hero .actions .btn { flex: 1 1 100%; }
}

.page-hero {
  background: var(--evergreen);
  color: var(--ivory);
  padding: clamp(22px, 2.8vw, 32px) 0 clamp(26px, 3.2vw, 36px);
  text-align: center;
}
.page-hero h1, .page-hero p { color: var(--ivory); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 8px;
  opacity: 0.75;
}
.page-hero p { max-width: 640px; margin: 0 auto; opacity: 0.9; }
.page-hero p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */

section { padding: var(--section-space) 0; }
section.tight { padding: 48px 0; }
section.product-list { padding: 0; }
section.alt { background: var(--ivory-dim); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(30px, 5vw, 52px);
}
.section-head p { color: rgba(27, 36, 32, 0.75); }

/* ---------- Category tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(20,61,50,0.14);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  background: var(--evergreen);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tile:hover img { transform: scale(1.04); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,61,50,0.92) 0%, rgba(20,61,50,0.35) 55%, rgba(20,61,50,0) 100%);
}

.tile-label {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: var(--ivory);
}

.tile-label h3 { color: var(--ivory); margin-bottom: 4px; }
.tile-label span { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Product cards ---------- */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-bottom: 1px solid rgba(20,61,50,0.1);
}

.product:last-child { border-bottom: none; }

.product.reverse .product-media { order: 2; }
.product.reverse .product-copy { order: 1; }

@media (max-width: 960px) {
  .product, .product.reverse .product-media, .product.reverse .product-copy {
    order: initial;
  }
  .product { grid-template-columns: 1fr; gap: 24px; }
}

.product-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  background: var(--ivory-dim);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--evergreen);
  background: var(--evergreen-pale);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge.lab {
  background: #FCEFD9;
  color: #8A5A1E;
}

.product-copy .kicker {
  font-weight: 700;
  color: var(--lagoon);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  font-size: 0.96rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.swatch {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  display: block;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  width: 64px;
  height: 64px;
  box-shadow: 0 3px 10px rgba(20,61,50,0.18);
  border: 2px solid var(--ivory);
  background: var(--ivory);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.swatch img { width: 100%; height: 100%; object-fit: cover; }

.swatch:hover { transform: translateY(-2px); }
.swatch:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.swatch.is-selected {
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(20,61,50,0.16), 0 5px 14px rgba(20,61,50,0.2);
}

.gallery-label {
  margin: 18px 0 8px;
  color: rgba(27,36,32,0.72);
  font-size: 0.9rem;
}

.gallery-label strong { color: var(--evergreen); }

.swatch-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; }
.swatch-row .name { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.swatch-row .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.1); }

.price-note {
  font-size: 0.9rem;
  color: rgba(27,36,32,0.65);
  margin-top: 6px;
}

.notice {
  background: #FCEFD9;
  border: 1px solid rgba(138,90,30,0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #6B4315;
}
.notice strong { color: #8A5A1E; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* ---------- Roster grid (Wild + Tide / Pocket Pals) ---------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 16px;
  margin: 24px 0;
}

.roster div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  padding: 6px 0;
}

.roster .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); flex-shrink: 0;
}

.roster-heading {
  font-weight: 700;
  color: var(--evergreen);
  margin: 22px 0 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Cards (lab / simple grid) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

@media (max-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .product { padding: 40px 0; }
  .product-media img { aspect-ratio: 1 / 1; }
  .product-copy h2 { font-size: 1.7rem; }
  .product-copy .btn { width: 100%; }
  .tile-label { padding: 20px; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(20,61,50,0.18);
}

.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.card-body { padding: 24px; }

.card-body h3 { margin-bottom: 8px; }

.card-body p { font-size: 0.94rem; color: rgba(27,36,32,0.78); margin-bottom: 0; }

.card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--lagoon);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.82rem;
  margin: 0 0 10px;
  opacity: 0.85;
}

.breadcrumb a { color: var(--ivory); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* ---------- About / story ---------- */

.story {
  max-width: 720px;
  margin: 0 auto;
}

.story h2 { margin-top: 1.4em; }

.story table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.story th, .story td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(20,61,50,0.08);
}

.story th {
  background: var(--evergreen-pale);
  color: var(--evergreen);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.story tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .story table, .story thead, .story tbody, .story th, .story td, .story tr { display: block; }
  .story thead { display: none; }
  .story tr { margin-bottom: 16px; border-bottom: 1px solid rgba(20,61,50,0.08); }
  .story td { border-bottom: none; padding: 6px 16px; }
  .story td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--evergreen); font-size: 0.8rem; margin-bottom: 2px; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow);
}

.pillar h4 { margin-bottom: 8px; }
.pillar p { font-size: 0.92rem; color: rgba(27,36,32,0.75); margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--evergreen);
  color: var(--ivory);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2, .cta-band p { color: var(--ivory); }
.cta-band p { opacity: 0.88; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--evergreen);
  color: rgba(250,246,239,0.75);
  padding: 48px 0 32px;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a { color: rgba(250,246,239,0.85); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-cols h5 {
  color: var(--ivory);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.footer-brand img { height: 28px; margin-bottom: 10px; }

.footer-fine {
  max-width: 780px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(250,246,239,0.15);
  font-size: 0.78rem;
  opacity: 0.65;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--evergreen);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Cookie consent banner ---------- */

#cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--evergreen);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

#cookie-banner p { margin: 0; font-size: 0.92rem; flex: 1 1 280px; }
#cookie-banner a { color: var(--ivory); text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

#cookie-banner .btn { min-height: 40px; padding: 10px 18px; font-size: 0.9rem; }
#cookie-banner .btn-outline { border-color: rgba(250,246,239,0.65); color: var(--ivory); }
#cookie-banner .btn-outline:hover { background: rgba(250,246,239,0.14); }

@media (max-width: 480px) {
  #cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 0; }
}

/* Travel Essentials */
.travel-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.travel-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.travel-detail-grid figure, .product-media { margin: 0; }
.travel-detail-grid img { width: 100%; height: auto; border-radius: var(--radius); }
.travel-detail-grid figcaption, .product-media figcaption { padding: 12px 4px; font-size: .9rem; }
.travel-use-note { max-width: 780px; margin: 32px auto 0; }
@media (min-width: 901px) { .travel-categories { grid-template-columns: repeat(2, 1fr); } .travel-categories .tile { aspect-ratio: 4 / 3; } }
@media (max-width: 600px) { .travel-detail-grid { grid-template-columns: 1fr; } }
