/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --color-soil:       #2A1A10;
  --color-soil-mid:   #3D2B1F;
  --color-tomato:     #C0392B;
  --color-tomato-dark:#A03020;
  --color-cream:      #FAF7F2;
  --color-cream-dark: #F0EBE3;
  --color-leaf:       #4A7C59;
  --color-leaf-dark:  #2F5A3B;
  --color-gold:       #D4911A;
  --color-rust:       #8B3A1C;
  --color-brown:      #8B5E52;
  --color-orange:     #E8A87C;
  --color-ink:        #1A0F08;
  --color-parchment:  #E8DDD0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-soil-mid);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ===== ANIMATIONS ===== */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out-quart), transform .5s var(--ease-out-quart);
}
.anim-up.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav--solid {
  background: var(--color-cream);
  box-shadow: 0 1px 12px rgba(42,26,16,.1);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: color .3s;
}
.nav--solid .nav__logo { color: var(--color-soil-mid); }
.nav__logo span { color: var(--color-tomato); }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav--solid .nav__links a { color: var(--color-soil-mid); }
.nav__links a:hover { color: var(--color-tomato); }
.nav__cta {
  color: var(--color-tomato) !important;
  font-weight: 700 !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav--solid .nav__burger span { background: var(--color-soil-mid); }
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #1a0f08 0%, #2A1A10 30%, #3D2B1F 60%, #4a3525 100%);
  animation: kenBurns 12s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenBurns {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(192,57,43,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(74,124,89,.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 40%, rgba(0,0,0,.3) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(250,247,242,.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero__browse {
  color: rgba(250,247,242,.6);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s;
}
.hero__browse:hover { color: var(--color-cream); }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(250,247,242,.5);
  cursor: pointer;
  animation: pulse-down 2s ease-in-out infinite;
}
@keyframes pulse-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity:.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity:1; }
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.btn--primary {
  background: var(--color-tomato);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-tomato-dark);
  transform: scale(1.03);
  box-shadow: 0 4px 24px rgba(192,57,43,.35);
}
.btn--pulse {
  position: relative;
}
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--color-tomato);
  animation: btn-ripple 2s ease-out infinite;
  opacity: 0;
}
@keyframes btn-ripple {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.15); opacity: 0; }
}
.btn--sm { padding: 10px 20px; font-size: .875rem; }

/* ===== PICKS ===== */
.picks {
  padding: 96px 0 80px;
}
.picks__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  display: block;
  margin-bottom: .5rem;
}
.picks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 2rem;
}
.picks__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(42,26,16,.06);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.picks__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,26,16,.12);
}
.picks__img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.picks__body { padding: 24px; }
.picks__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--color-soil-mid);
}
.picks__note {
  font-size: .9rem;
  color: var(--color-brown);
  line-height: 1.6;
  margin: .75rem 0;
}
.picks__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--color-brown);
  opacity: .7;
}

/* ===== FLAVOR BADGES ===== */
.flavor-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
  background: var(--color-cream-dark);
  color: var(--color-soil-mid);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.flavor-badge--sweet  { background: #FFF3E0; color: #E65100; }
.flavor-badge--fruity { background: #FFF8E1; color: #F57F17; }
.flavor-badge--complex{ background: #F3E5F5; color: #6A1B9A; }
.flavor-badge--smoky  { background: #EFEBE9; color: #4E342E; }
.flavor-badge--meaty  { background: #FBE9E7; color: #BF360C; }
.flavor-badge--rich   { background: #E8F5E9; color: #2E7D32; }

/* ===== FINDER ===== */
.finder {
  padding: 96px 0;
  background: var(--color-cream-dark);
}
.finder__intro {
  font-size: 1.125rem;
  color: var(--color-brown);
  margin-bottom: 2.5rem;
}
.finder__controls {
  max-width: 640px;
  margin: 0 auto 2rem;
}
.finder__slider-group {
  margin-bottom: 2rem;
}
.finder__label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .25rem;
  color: var(--color-soil-mid);
}
.finder__range-val {
  font-family: var(--font-mono);
  color: var(--color-tomato);
}
.finder__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--color-brown);
  opacity: .6;
  margin-bottom: .5rem;
}

/* Range slider custom styling */
.finder__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-parchment);
  border-radius: 3px;
  outline: none;
}
.finder__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--color-tomato);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(192,57,43,.3);
  transition: transform .15s var(--ease-spring);
}
.finder__range::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(192,57,43,.15), 0 2px 8px rgba(192,57,43,.3);
}
.finder__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--color-tomato);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(192,57,43,.3);
}

/* Toggle switches */
.finder__toggles {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.finder__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--color-soil-mid);
  cursor: pointer;
}
.finder__toggle input { display: none; }
.finder__toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--color-parchment);
  border-radius: 12px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.finder__toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform .2s var(--ease-spring);
}
.finder__toggle input:checked + .finder__toggle-slider {
  background: var(--color-leaf);
}
.finder__toggle input:checked + .finder__toggle-slider::after {
  transform: translateX(20px);
}

.finder__status {
  text-align: center;
  margin-bottom: 2rem;
}
.finder__count {
  font-family: var(--font-mono);
  font-size: .875rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-leaf);
  color: #fff;
  display: inline-block;
}
.finder__count--few { background: var(--color-gold); }
.finder__count--rare { background: var(--color-tomato); }

.finder__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== RESULT CARDS ===== */
.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(42,26,16,.06);
  animation: fadeUp .4s var(--ease-out-quart) forwards;
  opacity: 0;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,26,16,.12);
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.result-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.result-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-soil-mid);
}
.result-card__score {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-leaf);
  background: rgba(74,124,89,.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.result-card__badges {
  margin-bottom: .75rem;
}
.result-card__note {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: .8rem;
  color: var(--color-brown);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.result-card__stats {
  display: flex;
  gap: 12px;
  font-size: .75rem;
  color: var(--color-brown);
  opacity: .7;
  margin-bottom: .75rem;
}
.result-card__stats span {
  padding: 2px 8px;
  background: var(--color-cream);
  border-radius: 4px;
}
.result-card__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-tomato);
}
.result-card__link:hover { text-decoration: underline; }

/* ===== NUMBERS ===== */
.numbers {
  background: var(--color-soil);
  padding: 80px 0;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.numbers__value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-cream);
  display: block;
  line-height: 1;
  margin-bottom: .5rem;
}
.numbers__desc {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(250,247,242,.5);
}

/* ===== FLAVORS ===== */
.flavors {
  padding: 96px 0;
}
.flavors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}
.flavors__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform .3s var(--ease-spring);
}
.flavors__card:hover { transform: translateY(-4px); }
.flavors__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,15,8,.85) 0%, rgba(26,15,8,.2) 60%, transparent 100%);
}
.flavors__card-inner {
  position: relative;
  padding: 28px;
  color: var(--color-cream);
}
.flavors__adjectives {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange);
  display: block;
  margin-bottom: .5rem;
}
.flavors__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .25rem;
}
.flavors__card p {
  font-size: .85rem;
  opacity: .7;
  margin-bottom: .75rem;
}
.flavors__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-orange);
}

/* ===== TASTING NOTES ===== */
.tasting {
  padding: 80px 0;
  background: var(--color-cream-dark);
  overflow: hidden;
}
.tasting__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
}
.tasting__track::-webkit-scrollbar { display: none; }
.tasting__card {
  min-width: 360px;
  max-width: 420px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(42,26,16,.06);
}
.tasting__card p {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--color-soil-mid);
  margin-bottom: 1rem;
}
.tasting__card cite {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--color-brown);
  font-style: normal;
}
.tasting__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}
.tasting__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-parchment);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-soil-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.tasting__btn:hover {
  border-color: var(--color-tomato);
  background: var(--color-tomato);
  color: #fff;
}

/* ===== GUIDES ===== */
.guides {
  padding: 96px 0;
}
.guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 2rem;
}
.guides__card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(42,26,16,.06);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  display: block;
}
.guides__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,26,16,.12);
}
.guides__tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-leaf);
  display: block;
  margin-bottom: .75rem;
}
.guides__card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-soil-mid);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.guides__card p {
  font-size: .875rem;
  color: var(--color-brown);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-soil);
  color: var(--color-cream);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.footer__logo span { color: var(--color-tomato); }
.footer__bio {
  font-size: .85rem;
  line-height: 1.7;
  opacity: .6;
}
.footer__links h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange);
  margin-bottom: 1rem;
}
.footer__links li { margin-bottom: .5rem; }
.footer__links a {
  font-size: .85rem;
  opacity: .6;
  transition: opacity .2s;
}
.footer__links a:hover { opacity: 1; }
.footer__newsletter h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange);
  margin-bottom: 1rem;
}
.footer__newsletter p {
  font-size: .85rem;
  opacity: .6;
  margin-bottom: 1rem;
}
.footer__form {
  display: flex;
  gap: 8px;
}
.footer__input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(250,247,242,.15);
  background: rgba(250,247,242,.08);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: .85rem;
  outline: none;
}
.footer__input::placeholder { color: rgba(250,247,242,.3); }
.footer__input:focus { border-color: var(--color-tomato); }
.footer__bottom {
  border-top: 1px solid rgba(250,247,242,.08);
  padding: 20px 0;
}
.footer__bottom p {
  font-size: .75rem;
  opacity: .4;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(42,26,16,.1);
  }
  .nav__links--open { display: flex; }
  .nav__links a { color: var(--color-soil-mid) !important; }
  .nav__burger { display: flex; }

  .hero__title { font-size: 2.25rem; }

  .section-title { font-size: 2rem; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tasting__card { min-width: 280px; }

  .picks__grid,
  .flavors__grid,
  .guides__grid {
    grid-template-columns: 1fr;
  }
}
