/* =============================================
   PRESELI PANTRY — Styles
   ============================================= */

:root {
  --green: #2D5016;
  --green-light: #3A6B1E;
  --brown: #6B4226;
  --brown-light: #8B6240;
  --cream: #F5F0E8;
  --cream-dark: #EDE6D8;
  --rust: #C4652A;
  --rust-light: #D4783F;
  --black: #1A1A18;
  --white: #FEFDFB;
  --gray: #7A7A72;
  --gray-light: #B8B5AA;

  --bg: var(--white);
  --bg-alt: var(--cream);
  --text: var(--black);
  --text-muted: var(--gray);
  --border: #DDD8CC;
  --card-bg: var(--white);
  --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --nav-bg: rgba(254,253,251,0.92);

  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #1A1D16;
  --bg-alt: #22261C;
  --text: #E8E5DC;
  --text-muted: #9A977E;
  --border: #3A3D32;
  --card-bg: #24281E;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.3);
  --nav-bg: rgba(26,29,22,0.95);
  --green: #5A9A30;
  --cream: #2A2D22;
  --cream-dark: #22261C;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
table { border-collapse: collapse; }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5em; color: var(--text); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.text-center { text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 0.75rem;
}
.section-desc {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--green); }

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: 50%;
}
.nav__logo-text { font-family: var(--font-display); font-size: 1.25rem; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__parallax-layer {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__parallax-layer--back { z-index: 1; }
.hero__parallax-layer--mid { z-index: 2; opacity: 0.25; mix-blend-mode: overlay; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(26,26,24,0.35) 0%, rgba(26,26,24,0.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 720px;
}
.hero__tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
  animation: fadeUp 1s 0.2s both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 0.25em;
  animation: fadeUp 1s 0.4s both;
}
.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1rem;
  animation: fadeUp 1s 0.6s both;
}
.hero__desc {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
  animation: fadeUp 1s 0.8s both;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s 1s both;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: var(--white);
  animation: scrollLine 2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   STORY
   ============================================= */
.story { padding: 120px 0; background: var(--bg); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story__image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.story__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}
.story__image-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.story__text h2 { margin-bottom: 1rem; }
.story__text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.98rem; }
.story__stats { display: flex; gap: 40px; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.story__stat { text-align: center; }
.story__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--rust);
}
.story__stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* =============================================
   TIMELINE
   ============================================= */
.timeline { padding: 100px 0; background: var(--bg-alt); }
.timeline__track {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}
.timeline__line {
  position: absolute;
  left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  display: flex;
  gap: 32px;
  margin-bottom: 3rem;
  position: relative;
}
.timeline__marker {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  z-index: 1;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.timeline__item.visible .timeline__marker { transform: scale(1.1); background: var(--rust); }
.timeline__card {
  background: var(--card-bg);
  padding: 28px 32px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  flex: 1;
}
.timeline__card h3 { margin-bottom: 0.5rem; }
.timeline__card p { color: var(--text-muted); font-size: 0.95rem; }

/* =============================================
   PRODUCE CAROUSEL
   ============================================= */
.produce { padding: 120px 0; background: var(--bg); }
.produce__carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.produce__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease-out);
  cursor: grab;
}
.produce__track.grabbing { cursor: grabbing; }
.produce__card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.produce__card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.produce__card-img {
  height: 220px;
  overflow: hidden;
}
.produce__card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.produce__card:hover .produce__card-img img { transform: scale(1.05); }
.produce__card h3 { padding: 20px 24px 8px; }
.produce__card p { padding: 0 24px 24px; color: var(--text-muted); font-size: 0.9rem; }

.produce__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: var(--card-bg);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  transition: all 0.2s;
  color: var(--text);
}
.produce__arrow:hover { background: var(--green); color: var(--white); }
.produce__arrow--left { left: 0; }
.produce__arrow--right { right: 0; }
.produce__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.produce__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.produce__dot.active { background: var(--rust); transform: scale(1.2); }

/* =============================================
   HAMPER BUILDER
   ============================================= */
.hampers { padding: 120px 0; background: var(--bg-alt); }
.hamper__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2rem;
}
.hamper__cat-btn {
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.hamper__cat-btn.active,
.hamper__cat-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }

.hamper__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}
.hamper__item {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.hamper__item:hover { border-color: var(--green); }
.hamper__item.selected { border-color: var(--green); background: var(--bg-alt); }
.hamper__item.selected::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.hamper__item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.hamper__item-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.hamper__item-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--rust); }

.hamper__summary {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.hamper__summary-inner { padding: 32px; }
.hamper__summary h3 { margin-bottom: 1rem; }
.hamper__list { margin-bottom: 1.5rem; }
.hamper__list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hamper__list li button {
  color: var(--rust);
  font-size: 0.8rem;
  font-weight: 600;
}
.hamper__empty { color: var(--text-muted); font-style: italic; border: none !important; justify-content: center !important; }
.hamper__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 1rem;
}
.hamper__total span { color: var(--text-muted); font-size: 0.85rem; }
.hamper__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--rust); }
.hamper__order-btn { width: 100%; text-align: center; }
.hamper__order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* =============================================
   CAFE
   ============================================= */
.cafe { padding: 120px 0; background: var(--bg); }
.cafe__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cafe__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
}
.cafe__content h2 { margin-bottom: 0.5rem; }
.cafe__content > p { color: var(--text-muted); margin-bottom: 2rem; }
.cafe__menu-section { margin-bottom: 2rem; }
.cafe__menu-section h4 { margin-bottom: 0.75rem; color: var(--green); }
.cafe__item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.cafe__item span:last-child { font-weight: 600; white-space: nowrap; padding-left: 16px; }

/* =============================================
   SUPPLIERS
   ============================================= */
.suppliers { padding: 120px 0; background: var(--bg-alt); }
.suppliers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.supplier {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.supplier:hover { transform: translateY(-2px); }
.supplier__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}
.supplier__name { font-weight: 600; font-size: 1rem; }
.supplier__type { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.supplier__toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 0.9rem;
  transition: transform 0.3s;
  color: var(--text);
}
.supplier.open .supplier__toggle { transform: rotate(180deg); }
.supplier__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.supplier__body-inner {
  padding: 0 24px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   VISIT
   ============================================= */
.visit { padding: 120px 0; background: var(--bg); }
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.visit__info h2 { margin-bottom: 2rem; }
.visit__details { display: grid; gap: 24px; }
.visit__detail h4 { margin-bottom: 8px; color: var(--green); }
.visit__detail p { color: var(--text-muted); font-size: 0.95rem; }
.visit__hours { width: 100%; }
.visit__hours td { padding: 6px 0; font-size: 0.92rem; color: var(--text-muted); }
.visit__hours td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.visit__map {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.visit__map img { width: 100%; height: 500px; object-fit: cover; }
.visit__map-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-style: italic;
  font-size: 0.95rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black);
  color: #B8B5AA;
  padding: 80px 0 24px;
}
.footer h3, .footer h4 { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand .nav__logo-mark { margin-bottom: 16px; }
.footer__brand h3 { font-family: var(--font-display); margin: 12px 0 8px; }
.footer__brand p { font-size: 0.9rem; }
.footer__links ul { margin-top: 12px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__hours p { margin-top: 12px; font-size: 0.9rem; line-height: 1.8; }
.footer__newsletter p { margin: 12px 0 16px; font-size: 0.9rem; }
.footer__form { display: flex; gap: 8px; }
.footer__form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #3A3A32;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.footer__form input::placeholder { color: #666; }
.footer__form .btn { padding: 12px 20px; }
.footer__bottom {
  border-top: 1px solid #2A2A24;
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s;
  color: var(--text);
  border: 1px solid var(--border);
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .produce__card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.4s var(--ease-out);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  }
  .nav__links.open { right: 0; }
  .nav__toggle { display: flex; z-index: 1001; }
  .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .story__grid,
  .cafe__grid,
  .visit__grid { grid-template-columns: 1fr; gap: 32px; }
  .story__image img, .cafe__image img, .visit__map img { height: 300px; }
  .story__stats { gap: 24px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .produce__card { flex: 0 0 calc(85% - 12px); }

  .timeline__line { left: 24px; }

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

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.5rem; }
  .hamper__grid { grid-template-columns: 1fr; }
  .produce__card { flex: 0 0 100%; }
}
