:root {
  --ink: #fff9ed;
  --muted: #d8c3ab;
  --paper: #fff7e8;
  --brown-950: #150b08;
  --brown-900: #21100b;
  --brown-800: #35180e;
  --red: #9f302c;
  --red-dark: #6f1d1a;
  --gold: #d7a642;
  --honey: #f1cf83;
  --cream-card: #fff1d4;
  --ink-card: #24120c;
  --line: rgba(255, 249, 237, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(159, 48, 44, 0.28), transparent 30rem),
    linear-gradient(140deg, var(--brown-950), var(--brown-900) 50%, #090504);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 11, 8, 0.82);
  backdrop-filter: blur(16px);
}

.brand-logo {
  width: clamp(10rem, 18vw, 13rem);
  height: auto;
}

.header-certification {
  width: clamp(3.1rem, 6vw, 4.2rem);
  height: clamp(3.1rem, 6vw, 4.2rem);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.site-header.is-nav-open .nav {
  padding-top: 0;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 0.13rem;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span + span {
  margin-top: 0.28rem;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.41rem) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.41rem) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 35rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(88svh - 5.2rem);
  padding: clamp(2.5rem, 5vw, 4.8rem) clamp(1rem, 5vw, 5rem);
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.45rem, 5.15vw, 4.8rem);
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.hero-text {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-weight: 800;
}

.button-primary {
  color: #180b08;
  background: var(--gold);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero-product-shell {
  position: relative;
  min-width: 0;
}

.hero-product {
  position: relative;
  display: flex;
  min-height: 31rem;
  align-items: end;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
}

.hero-product::before {
  position: absolute;
  right: 5%;
  bottom: 0;
  left: 5%;
  height: 8rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(12px);
  content: "";
}

.hero-image {
  position: relative;
  z-index: 1;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.38));
}

.hero-product-choice {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  justify-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-product-choice::after {
  position: absolute;
  right: 18%;
  bottom: -0.5rem;
  left: 18%;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
  content: "";
}

.hero-product-choice:hover,
.hero-product-choice:focus-visible {
  transform: translateY(-0.35rem);
}

.hero-product-choice:focus-visible {
  outline: 3px solid rgba(215, 166, 66, 0.65);
  outline-offset: 0.5rem;
}

.hero-product-choice.is-selected {
  filter: brightness(1.08);
  transform: translateY(-0.5rem);
}

.hero-product-choice.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-carousel-control,
.hero-carousel-dots {
  display: none;
}

.hero-image-large {
  max-height: clamp(25rem, 50vw, 31rem);
}

.hero-image-medium {
  max-height: clamp(18rem, 38vw, 23rem);
  margin-bottom: 1rem;
}

.hero-image-small {
  max-height: clamp(14rem, 30vw, 18rem);
  margin-bottom: 2rem;
}

.bottle {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: var(--bottle-width);
  height: var(--bottle-height);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3rem 3rem 1.8rem 1.8rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 20% 70%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #21100b, #050303);
  box-shadow: var(--shadow);
}

.bottle-large {
  --bottle-width: clamp(9rem, 20vw, 14rem);
  --bottle-height: clamp(24rem, 50vw, 31rem);
}

.bottle-medium {
  --bottle-width: clamp(6.8rem, 15vw, 9rem);
  --bottle-height: clamp(18rem, 38vw, 23rem);
  margin-bottom: 1rem;
}

.bottle-small {
  --bottle-width: clamp(5.8rem, 12vw, 7.5rem);
  --bottle-height: clamp(14rem, 30vw, 18rem);
  margin-bottom: 2rem;
}

.cap {
  position: absolute;
  top: -2.2rem;
  width: 48%;
  height: 3rem;
  border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
  background: repeating-linear-gradient(90deg, #f8f3eb, #f8f3eb 4px, #d5d0c8 5px);
}

.label {
  position: absolute;
  top: 38%;
  display: grid;
  justify-items: center;
  width: 84%;
  padding: 0.8rem 0.5rem;
  border: 1px solid rgba(255, 249, 237, 0.4);
  color: #fff7e8;
  background: linear-gradient(180deg, #b63d35, var(--red-dark));
  text-align: center;
  text-transform: uppercase;
}

.label strong {
  font-family: Pacifico, cursive;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 400;
  text-transform: none;
}

.label small,
.label em {
  font-size: clamp(0.55rem, 1.5vw, 0.8rem);
  font-style: normal;
  font-weight: 800;
}

.benefits,
.section,
.prep,
.contact-band,
.footer {
  padding-inline: clamp(1rem, 5vw, 5rem);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.benefits article {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.04);
}

.benefits span {
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
}

.benefits p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.product-card {
  display: grid;
  grid-template-rows: 19rem 1fr;
  gap: 1.2rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(241, 207, 131, 0.38);
  border-radius: 0.5rem;
  color: var(--ink-card);
  background:
    linear-gradient(180deg, rgba(255, 241, 212, 0.96), rgba(239, 207, 151, 0.9)),
    var(--cream-card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.product-art {
  position: relative;
  display: grid;
  min-height: 19rem;
  place-items: center;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, rgba(53, 24, 14, 0.08), rgba(53, 24, 14, 0.18)),
    #f7e2b8;
  overflow: hidden;
}

.product-frame {
  --product-frame-size: clamp(11.5rem, 17vw, 15.5rem);

  position: relative;
  display: grid;
  width: var(--product-frame-size);
  height: var(--product-frame-size);
  place-items: center;
  border: 1px solid rgba(255, 249, 237, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(145deg, rgba(215, 166, 66, 0.34), rgba(98, 48, 24, 0.18));
  overflow: hidden;
}

.product-art img {
  position: absolute;
  inset: 9%;
  z-index: 1;
  display: block;
  width: 82%;
  height: 82%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
}

.product-art .bottle {
  transform: scale(0.58);
  transform-origin: bottom center;
}

.product-body {
  display: grid;
  grid-template-rows: auto minmax(5.3rem, 1fr) auto auto auto;
  gap: 0.8rem;
  min-height: 100%;
}

.product-body h3 {
  margin: 0;
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  line-height: 1.12;
}

.product-body p {
  margin: 0;
  color: #6e4328;
  line-height: 1.5;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  gap: 0.5rem;
}

.pill {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(111, 29, 26, 0.3);
  border-radius: 999px;
  color: #3a1a0f;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-price {
  align-self: end;
  color: var(--red-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.product-card .card-actions {
  align-self: end;
  margin-top: 0.2rem;
}

.product-card .button {
  width: min(100%, 15.5rem);
}

.prep {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper);
  color: #22110b;
}

.prep .eyebrow {
  color: var(--red);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(53, 24, 14, 0.14);
  border-radius: 0.5rem;
}

.steps strong {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--red);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 58rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.055);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--ink);
  font-weight: 800;
}

.faq-list summary::marker {
  color: var(--gold);
}

.faq-list p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.locations-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 0.65fr);
  gap: 1rem;
}

.locations-section {
  background: var(--paper);
  color: #22110b;
}

.locations-section .eyebrow {
  color: var(--red);
}

.locations-section h2 {
  color: #22110b;
}

.locations-map {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: stretch;
  min-height: 30rem;
  border: 1px solid rgba(53, 24, 14, 0.16);
  border-radius: 0.5rem;
  background: #f7e2b8;
  overflow: hidden;
}

.locations-map .leaflet-pane,
.locations-map .leaflet-top,
.locations-map .leaflet-bottom {
  z-index: 1;
}

.map-fallback {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  min-height: 30rem;
  padding: 1rem;
  color: #6e4328;
  text-align: center;
}

.map-fallback strong {
  color: #22110b;
  font-size: 1.2rem;
}

.locations-list {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.location-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(53, 24, 14, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.58);
}

.location-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.location-card p {
  margin: 0;
  color: #6e4328;
  line-height: 1.45;
}

.location-card a {
  color: var(--red-dark);
  font-weight: 800;
}

.leaflet-container {
  color: #22110b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(20rem, 1fr);
  align-items: start;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.contact-band p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.055);
}

.contact-form .button {
  width: min(100%, 14rem);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.form-status.is-success {
  color: #a9d883;
}

.form-status.is-error {
  color: #ffb2a9;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-logo {
  width: 7.5rem;
  height: auto;
}

.footer-certification {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.9;
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

.admin-main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-block: 3rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.admin-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.055);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.8rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
}

select {
  appearance: none;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.json-output {
  min-height: 26rem;
  white-space: pre;
}

@media (max-width: 900px) {
  .hero,
  .prep,
  .locations-layout,
  .contact-band,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    min-height: 28rem;
  }

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

  .section-heading,
  .footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.is-nav-open .nav {
    display: flex;
    padding-top: 0.85rem;
  }

  .nav a {
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
  }

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

  .hero-product {
    justify-content: start;
    min-height: 22rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-product::-webkit-scrollbar {
    display: none;
  }

  .hero-product-choice {
    flex: 0 0 100%;
    min-height: 22rem;
    scroll-snap-align: center;
  }

  .hero-product-choice::after {
    right: 36%;
    left: 36%;
    bottom: 0.8rem;
  }

  .hero-image-large,
  .hero-image-medium,
  .hero-image-small {
    max-height: 20rem;
    margin-bottom: 1.4rem;
  }

  .hero-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(21, 11, 8, 0.72);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
  }

  .hero-carousel-prev {
    left: 0.2rem;
  }

  .hero-carousel-next {
    right: 0.2rem;
  }

  .hero-carousel-dots {
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
  }

  .hero-carousel-dot {
    width: 0.65rem;
    height: 0.65rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 249, 237, 0.36);
  }

  .hero-carousel-dot.is-selected {
    width: 1.8rem;
    border-radius: 999px;
    background: var(--gold);
  }

  .button {
    width: 100%;
  }
}
