:root {
  --crema: #fff6e5;
  --crema-strong: #f8dfb7;
  --cacao: #30160f;
  --navy: #062f58;
  --tile: #0c4d8d;
  --marigold: #e83a91;
  --flame: #d21f68;
  --hibiscus: #c21d59;
  --agave: #5e8f55;
  --paper: #fffaf0;
  --line: rgba(48, 22, 15, 0.18);
  --shadow: 0 18px 50px rgba(48, 22, 15, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 246, 229, 0.93);
  border-bottom: 3px dotted rgba(210, 31, 104, 0.55);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 0.82;
}

.brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-transform: lowercase;
}

.brand-mark {
  width: 22px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 12%, var(--flame) 0 17%, transparent 18%),
    radial-gradient(circle at 23% 43%, var(--hibiscus) 0 15%, transparent 16%),
    radial-gradient(circle at 77% 43%, var(--marigold) 0 15%, transparent 16%),
    linear-gradient(var(--agave), var(--agave));
  background-size: 100% 100%, 100% 100%, 100% 100%, 4px 24px;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(-18deg);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  color: #0e2237;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--flame);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button,
.locator button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--flame);
  color: #fffdf7;
  box-shadow: 0 10px 22px rgba(210, 31, 104, 0.25);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.header-cta svg,
.locator svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 128px);
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(48, 22, 15, 0.15);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 246, 229, 0.94) 0%, rgba(255, 246, 229, 0.78) 31%, rgba(255, 246, 229, 0.08) 58%, rgba(48, 22, 15, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 246, 229, 0.02) 78%, var(--crema) 100%);
  content: "";
}

.hero-content {
  width: min(640px, calc(100% - 36px));
  margin-left: clamp(22px, 7vw, 112px);
  padding: 70px 0 110px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 9.5vw, 8.5rem);
  line-height: 0.88;
}

.hero-brand,
.product-word {
  display: block;
}

.hero-brand {
  color: var(--navy);
  line-height: 0.78;
  text-transform: lowercase;
}

.product-word {
  color: var(--flame);
  margin-top: 0.08em;
  text-transform: lowercase;
}

.hero-content p {
  width: min(470px, 100%);
  margin-bottom: 34px;
  color: #23150f;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button.secondary,
.button.outline {
  background: rgba(255, 250, 240, 0.82);
  color: var(--cacao);
  border: 2px solid rgba(48, 22, 15, 0.7);
  box-shadow: none;
}

.button.outline {
  color: var(--navy);
  border-color: var(--navy);
}

.button.compact {
  min-height: 42px;
  padding-inline: 24px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(6, 47, 88, 0.15);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(48, 22, 15, 0.18);
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2,
.story h2,
.stockists h2 {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.section-heading p {
  margin: 0;
  color: #4b372c;
  font-size: 1.12rem;
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.flavor-card {
  display: grid;
  min-height: 430px;
  grid-template-rows: 180px auto auto auto auto;
  padding: 18px;
  border: 1px solid rgba(48, 22, 15, 0.13);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(48, 22, 15, 0.09);
  text-align: center;
}

.flavor-classic {
  --flavor: #d21f68;
  --flavor-soft: #ffd3e4;
}

.flavor-fresa {
  --flavor: #c21d59;
  --flavor-soft: #f5c5cf;
}

.flavor-matcha {
  --flavor: #557a3c;
  --flavor-soft: #cfdda6;
}

.flavor-chocolate {
  --flavor: #764223;
  --flavor-soft: #d9b38d;
}

.flavor-coco {
  --flavor: #6f4aa3;
  --flavor-soft: #d8c8ed;
}

.flavor-card h3 {
  margin-bottom: 6px;
  color: var(--flavor);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.product-photo {
  align-self: start;
  width: 100%;
  height: 170px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6dfeb;
  box-shadow: inset 0 0 0 1px rgba(48, 22, 15, 0.08);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.package-sizes {
  margin-bottom: 8px;
  color: var(--hibiscus);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flavor-card p {
  margin-bottom: 18px;
  color: #4c382c;
  font-size: 0.96rem;
  line-height: 1.35;
}

.flavor-card a {
  align-self: end;
  color: var(--flavor);
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.tile-divider {
  height: 42px;
  border-top: 1px solid rgba(6, 47, 88, 0.18);
  border-bottom: 1px solid rgba(6, 47, 88, 0.18);
  background:
    radial-gradient(circle at 12px 50%, var(--tile) 0 4px, transparent 5px),
    radial-gradient(circle at 28px 50%, var(--tile) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 19px, rgba(6, 47, 88, 0.22) 20px 21px, transparent 22px 40px),
    var(--paper);
  background-size: 40px 100%;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-height: 540px;
  background: var(--paper);
}

.story-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 88px) clamp(24px, 6vw, 92px);
}

.story-copy p {
  max-width: 390px;
  color: #3f2d24;
  font-weight: 600;
}

.story-image {
  height: 100%;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

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

.ingredients {
  background: var(--crema);
}

.ingredient-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1150px;
  margin: 0 auto;
  border-top: 2px dotted rgba(210, 31, 104, 0.35);
  border-bottom: 2px dotted rgba(210, 31, 104, 0.35);
}

.ingredient-row article {
  padding: 24px 22px 28px;
  text-align: center;
}

.ingredient-row article + article {
  border-left: 2px dotted rgba(210, 31, 104, 0.35);
}

.ingredient-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto 18px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.ingredient-row h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.ingredient-row p {
  margin: 0;
  color: #4a3529;
  font-size: 0.96rem;
}

.stockists {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(420px, 1.35fr) minmax(230px, 0.55fr);
  min-height: 380px;
  border-top: 1px solid rgba(48, 22, 15, 0.15);
  background: linear-gradient(90deg, var(--paper), #f8dce9);
}

.stockist-panel {
  align-self: center;
  padding: clamp(38px, 5vw, 76px) clamp(22px, 5vw, 72px);
}

.stockist-panel h2 {
  max-width: 430px;
}

.stockist-panel p {
  color: #3d2a21;
  font-size: 1.08rem;
  font-weight: 600;
}

.locator {
  display: flex;
  width: min(420px, 100%);
  margin-top: 22px;
  border: 2px solid rgba(6, 47, 88, 0.22);
  border-radius: 8px;
  background: #fffdf6;
  overflow: hidden;
}

.locator label {
  flex: 1;
}

.locator input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--cacao);
  outline: 0;
}

.locator button {
  width: 54px;
  min-height: 48px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.locator-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--flame);
  font-weight: 800;
}

.map-card {
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(circle at 32% 36%, rgba(6, 47, 88, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 51% 52%, rgba(6, 47, 88, 0.15) 0 2px, transparent 3px),
    linear-gradient(25deg, transparent 48%, rgba(6, 47, 88, 0.12) 49% 51%, transparent 52%),
    linear-gradient(-18deg, transparent 43%, rgba(6, 47, 88, 0.12) 44% 46%, transparent 47%),
    #c9e3df;
  overflow: hidden;
}

.map-card::before {
  position: absolute;
  inset: 14% 8% 9% 10%;
  background: #f3dfba;
  clip-path: polygon(0 24%, 18% 12%, 43% 13%, 57% 22%, 82% 20%, 100% 38%, 86% 68%, 55% 74%, 42% 88%, 17% 72%, 6% 54%);
  content: "";
}

.map-card::after {
  position: absolute;
  left: 11%;
  right: 9%;
  bottom: 6%;
  height: 37%;
  background: rgba(116, 188, 194, 0.65);
  clip-path: polygon(0 38%, 14% 30%, 31% 45%, 48% 33%, 64% 48%, 83% 35%, 100% 48%, 100% 100%, 0 100%);
  content: "";
}

.pin {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 3px solid var(--navy);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}

.p1 { left: 24%; top: 32%; }
.p2 { left: 38%; top: 28%; }
.p3 { left: 55%; top: 34%; }
.p4 { left: 72%; top: 32%; }
.p5 { left: 31%; top: 48%; }
.p6 { left: 46%; top: 51%; }
.p7 { left: 62%; top: 56%; }
.p8 { left: 22%; top: 62%; }
.p9 { left: 39%; top: 68%; }
.p10 { left: 81%; top: 55%; }

.amor-card {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 34px;
  border-left: 12px solid var(--tile);
  background:
    radial-gradient(circle at 50% 84%, var(--marigold) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 14px, rgba(6, 47, 88, 0.9) 15px 17px, transparent 18px),
    #f6c4dc;
}

.amor-card p {
  margin: 0;
  max-width: 230px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.2fr;
  gap: 34px;
  padding: 48px clamp(20px, 5vw, 68px);
  background:
    radial-gradient(circle at 5% 100%, rgba(210, 31, 104, 0.28) 0 80px, transparent 82px),
    radial-gradient(circle at 96% 0%, rgba(194, 29, 89, 0.25) 0 82px, transparent 84px),
    #052f58;
  color: #fff8e7;
}

.footer .brand {
  color: #fff8e7;
}

.footer p {
  max-width: 285px;
  color: rgba(255, 248, 231, 0.78);
}

.footer h2 {
  margin: 0 0 12px;
  color: #fff8e7;
  font-size: 1rem;
}

.footer nav,
.footer-brand,
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer a {
  color: rgba(255, 248, 231, 0.78);
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 248, 231, 0.55);
  border-radius: 999px;
  color: #fff8e7;
  font-size: 0.78rem;
}

.newsletter div {
  display: flex;
  gap: 10px;
}

.newsletter input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #fff8e7;
  color: var(--cacao);
  outline: 0;
}

.newsletter label {
  flex: 1;
}

.newsletter button {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 7px;
}

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

@media (max-width: 1050px) {
  .flavor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story,
  .stockists {
    grid-template-columns: 1fr;
  }

  .stockist-panel,
  .amor-card {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .brand {
    font-size: 2.25rem;
  }

  .menu-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid rgba(6, 47, 88, 0.18);
    border-radius: 8px;
    background: #fffaf0;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
  }

  .nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-header.is-open .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-header.is-open .nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(48, 22, 15, 0.12);
  }

  .hero {
    min-height: 690px;
  }

  .hero-media img {
    object-position: 59% 42%;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 246, 229, 0.94) 0%, rgba(255, 246, 229, 0.72) 44%, rgba(255, 246, 229, 0.18) 82%, var(--crema) 100%);
  }

  .hero-content {
    align-self: start;
    margin: 0;
    padding: 58px 18px 210px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .hero-content p {
    max-width: 360px;
  }

  .flavor-grid {
    grid-template-columns: 1fr;
  }

  .flavor-card {
    min-height: auto;
  }

  .story-copy {
    padding: 44px 20px;
  }

  .story-image {
    min-height: 300px;
  }

  .ingredient-row {
    grid-template-columns: 1fr;
  }

  .ingredient-row article + article {
    border-top: 2px dotted rgba(210, 31, 104, 0.35);
    border-left: 0;
  }

  .map-card {
    min-height: 320px;
  }

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

  .newsletter div,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
