/* ==========================================================================
   Materra Rum — design tokens
   Values match the live production site's compiled CSS custom properties.
   ========================================================================== */
:root {
  --bottle-green: hsl(150 55% 14%);
  --bottle-green-light: hsl(150 55% 20%);
  --cotton: hsl(80 33% 97%);
  --mandarin: hsl(16 97% 53%);
  --lemon: hsl(56 98% 50%);
  --border: hsl(150 30% 25%);

  --font-display: "Anton", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --container-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body, h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

body {
  background: var(--bottle-green);
  color: var(--cotton);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

/* ==========================================================================
   Age gate
   ========================================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bottle-green);
  padding: var(--gutter);
  text-align: center;
}

.age-gate[hidden] { display: none; }

.age-gate__logo {
  width: clamp(200px, 22vw, 320px);
  margin: 0 auto 3rem;
}

.age-gate__heading {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  max-width: 32ch;
  margin-inline: auto;
}

.age-gate__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.age-gate__note {
  margin-top: 2.75rem;
  max-width: 40ch;
  margin-inline: auto;
  font-size: 0.85rem;
  opacity: 0.7;
}

.age-gate__denied {
  max-width: 32ch;
  margin-inline: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--mandarin);
  color: var(--cotton);
}
.btn--primary:hover { background: var(--lemon); color: var(--bottle-green); }

.btn--outline {
  background: transparent;
  border-color: var(--cotton);
  color: var(--cotton);
}
.btn--outline:hover { background: var(--cotton); color: var(--bottle-green); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 1.25rem;
  background: hsl(150 55% 14% / 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cotton);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(150 55% 14% / 0.15) 0%, hsl(150 55% 14% / 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 4rem clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.hero__star {
  width: 53px;
  margin: 0 auto 1.5rem;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 6rem);
  color: var(--cotton);
}

.hero__cta {
  margin-top: 2.5rem;
}

/* ==========================================================================
   Heritage / products
   ========================================================================== */
.heritage {
  background: var(--cotton);
  color: var(--bottle-green);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.heritage .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.heritage__intro {
  max-width: 34ch;
}

.heritage__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--bottle-green);
  margin-bottom: 1.25rem;
}

.heritage__copy {
  font-size: 1rem;
  color: hsl(150 30% 25%);
  line-height: 1.6;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.product-card {
  text-align: left;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-card__name {
  font-size: clamp(1.5rem, 2.75vw, 2rem);
  color: var(--mandarin);
  margin-bottom: 0.35rem;
}

.product-card__meta {
  font-size: 0.85rem;
  color: hsl(150 15% 45%);
}

/* ==========================================================================
   Vibe / gallery
   ========================================================================== */
.vibe {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bottle-green-light);
}

.vibe__intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.vibe__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.vibe__copy {
  font-size: 1.05rem;
  opacity: 0.85;
}

.vibe__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.vibe__gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.vibe__explore {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--mandarin);
}
.vibe__explore:hover { color: var(--lemon); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--mandarin);
  color: var(--cotton);
  padding-block: clamp(3rem, 8vw, 5rem) 2.5rem;
  text-align: center;
}

.site-footer__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cotton);
  margin-bottom: 2rem;
}

.site-footer__logo {
  width: 100px;
  margin: 0 auto 1.5rem;
}

.site-footer__contact {
  font-size: 0.9rem;
  color: hsl(80 33% 97% / 0.85);
}

.site-footer__contact a { text-decoration: underline; }

.site-footer__copyright {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: hsl(80 33% 97% / 0.65);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .site-nav { gap: 1.25rem; }
  .site-nav a { font-size: 0.7rem; }

  .heritage .container {
    grid-template-columns: 1fr;
  }
  .heritage__intro { max-width: none; margin-bottom: 0.5rem; }

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

@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .vibe__gallery {
    grid-template-columns: 1fr;
  }
  .vibe__gallery img {
    height: 280px;
  }

  .age-gate__actions {
    flex-direction: column;
    align-items: center;
  }
}
