:root {
  --navy: #0e1f45;
  --navy-deep: #071a3c;
  --gold: #c68a2e;
  --gold-light: #e0a94a;
  --bg: #f3f8fd;
  --bg-card: #ffffff;
  --text: #16213e;
  --text-muted: #5b6785;
  --border: #e1e9f5;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(14, 31, 69, 0.25);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Subtle scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 450ms; }

.banner-hero {
  animation: bannerReveal 1s ease both;
}
@keyframes bannerReveal {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .banner-hero { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(198, 138, 46, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(14, 31, 69, 0.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
}

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

/* Safety net: every inline icon SVG also carries width/height="24" HTML
   attributes (see templates/index.html), but this guarantees any icon
   without explicit sizing context still renders at a sane fixed size
   instead of a browser's oversized SVG default. */
svg { max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  padding: 26px 0 10px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 40px;
  width: auto;
}
.nav-badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(198, 138, 46, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 34px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--navy-deep);
}

/* Hamburger toggle button — desktop layout is untouched; this stays
   hidden above the 900px breakpoint below. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--navy-deep);
  cursor: pointer;
}
.nav-toggle-icon {
  display: none;
  line-height: 0;
}
.nav-toggle .icon-menu {
  display: inline-flex;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-flex;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    row-gap: 14px;
    position: relative;
  }
  .nav-logo {
    order: 1;
  }
  .nav-badge {
    order: 2;
    margin-left: auto;
  }
  .nav-toggle {
    order: 3;
    display: inline-flex;
    margin-left: 12px;
  }
  .nav-links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 18px 0 6px;
    border-top: 1px solid var(--border);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    font-size: 15px;
  }
}

/* ---------- Banner hero ---------- */
/* Full-bleed, edge-to-edge, square corners — spans the entire viewport
   width with no container padding, rounding, or card shadow. */
.banner-hero {
  width: 100%;
  margin: 0;
}
.banner-hero picture {
  display: block;
}
.banner-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Feature cards ---------- */
.features {
  padding: 48px 0 8px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 14px 30px -22px rgba(14, 31, 69, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(14, 31, 69, 0.32);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(198, 138, 46, 0.12);
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy-deep);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.feature-index {
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
  opacity: 0.85;
}

/* ---------- Our Collection (product grid) ---------- */
.collection {
  padding: 56px 0 8px;
}
.collection-head {
  margin: 0 0 40px;
}
.collection-eyebrow {
  justify-content: flex-start;
}
.collection-eyebrow::after {
  display: none;
}
.collection-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.collection-head-row h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 42px);
  color: var(--navy-deep);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.collection-head-row h2 .muted {
  font-weight: 500;
  color: var(--text-muted);
}
.collection-desc {
  max-width: 380px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(14, 31, 69, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -20px rgba(14, 31, 69, 0.32);
}
.product-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-name {
  padding: 16px 20px 20px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-deep);
}

/* ---------- About band ---------- */
.about {
  margin: 56px 0 0;
  padding: 90px 0;
  background:
    radial-gradient(900px 480px at 88% 15%, rgba(224, 169, 74, 0.16), transparent 62%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.about-inner {
  max-width: 980px;
}
.about-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
}
.about-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}
.about-eyebrow-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.about-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
  color: #eef1f8;
  margin: 0;
  letter-spacing: -0.005em;
}
.about-heading .lead {
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* ---------- Nutrition comparison ---------- */
.nutrition {
  padding: 56px 0 8px;
}
.collection + .nutrition {
  padding-top: 8px;
}
.nutrition-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--border);
}
.nutrition-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 34px);
  color: var(--navy-deep);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.nutrition-head h2 .muted {
  font-weight: 500;
  color: var(--text-muted);
}
.nutrition-head .subhead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.nutrition-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.nutrition-table {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
}
.nutrition-table thead th {
  background: var(--navy-deep);
  color: #cdd6ea;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px 18px;
}
.nutrition-table thead th.metric-col {
  text-align: left;
}
.nutrition-table thead th:first-child {
  border-top-left-radius: 20px;
}
.nutrition-table thead th:last-child {
  border-top-right-radius: 20px;
}
.nutrition-table thead th.hero-col {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
}
.nutrition-table tbody tr {
  background: var(--bg-card);
}
.nutrition-table tbody tr:nth-child(even) {
  background: rgba(14, 31, 69, 0.035);
}
.nutrition-table td {
  padding: 26px 18px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.nutrition-table td.metric-col {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 15.5px;
}
.nutrition-table td.metric-col .metric-unit {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.nutrition-table td.hero-col {
  background: rgba(198, 138, 46, 0.14);
  position: relative;
}
.nutrition-table td.hero-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}
.nutrition-table td .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
}
.nutrition-table td.hero-col .value {
  font-weight: 800;
  font-size: 24px;
  color: var(--navy-deep);
}
.nutrition-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 22px 6px 0;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy-deep);
  text-align: left;
  background: rgba(198, 138, 46, 0.12);
  border: 1px solid rgba(198, 138, 46, 0.35);
  border-radius: 12px;
}
.nutrition-note-icon {
  flex: none;
  display: inline-flex;
  color: var(--gold);
  margin-top: 1px;
}
.nutrition-note-icon svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 520px) {
  .nutrition-note {
    font-size: 12.5px;
    padding: 12px 16px;
  }
}

/* ---------- Notify section ---------- */
.notify {
  padding: 48px 0 20px;
  text-align: center;
}
.notify-inner {
  max-width: 560px;
  margin: 0 auto;
}
.notify h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 12px;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
.notify .subhead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 10px;
}
.notify-form input {
  flex: 1;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.notify-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 138, 46, 0.14);
}
.notify-form button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: none;
  padding: 0 26px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 24px -10px rgba(14, 31, 69, 0.55);
}
.notify-form button:hover { transform: translateY(-1px); }
.notify-form button:active { transform: translateY(0); }
.notify-form button:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 440px;
}
.form-note.is-success { color: #1a7f4b; font-weight: 600; }
.form-note.is-error { color: #b5482a; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 70px;
  padding: 46px 0 36px;
  background: var(--navy-deep);
  color: #cdd6ea;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: start;
  gap: 40px;
}
.footer-brand {
  padding-top: 4px;
}
.footer-logo {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}
.footer-brand p {
  margin: 0;
  font-size: 13px;
  color: #8ea0c9;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 16px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14.5px;
}
.footer-contact a, .footer-contact span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cdd6ea;
  text-decoration: none;
}
.footer-contact a:hover { color: #fff; }
.footer-contact a:hover .footer-icon-badge {
  background: var(--gold);
  color: var(--navy-deep);
}

.footer-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(224, 169, 74, 0.14);
  color: var(--gold-light);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-icon-badge svg { width: 16px; height: 16px; }

.footer-address {
  align-items: flex-start !important;
}
.footer-address strong {
  color: #fff;
  font-weight: 600;
}
.footer-address span {
  display: block;
  line-height: 1.6;
  padding-top: 6px;
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-self: end;
  padding-top: 4px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdd6ea;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-social svg { width: 18px; height: 18px; }

.footer-copy {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  color: #6f7fa6;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact { align-items: center; }
  .footer-social { justify-self: center; }
  .nutrition-table thead th,
  .nutrition-table td {
    padding: 14px;
  }
  .nutrition-table td .value {
    font-size: 14.5px;
  }
  .nutrition-table td.hero-col .value {
    font-size: 17px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .collection-head-row {
    align-items: flex-start;
  }
  .collection-desc {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .notify-form { flex-direction: column; }
  .notify-form button { padding: 15px; }
  .nav-badge { font-size: 11px; padding: 7px 12px; }
  .collection-grid {
    grid-template-columns: 1fr;
  }
}
