/* ═══════════════════════════════════════════════════
   THE SNACK MILL — style.css
   Rooted Taste. Crafted Crunch.
═══════════════════════════════════════════════════ */

:root {
  --ivory:   #faf6f0;
  --cream:   #f3ece0;
  --gold:    #c8943a;
  --gold-lt: #e8b96a;
  --brown:   #5a3218;
  --dark:    #1e1208;
  --border:  #e0d4c0;
  --muted:   #7a6250;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--ivory); color: var(--dark); overflow-x: hidden; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ════════════════ SITE HEADER (fixed) ════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ivory);
  box-shadow: 0 2px 24px rgba(90,50,24,.1);
}

/* ── ANNOUNCEMENT BAR ─────────────────────────────── */
.announcement-bar {
  background: var(--brown);
  color: #f5e8d0;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: .48rem 1rem;
  line-height: 1.4;
}
.announcement-bar strong { color: var(--gold-lt); font-weight: 600; }

/* ── TOP BAR  (Contact | Logo | About) ─────────────── */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(1.2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.top-contact { display: flex; flex-direction: column; gap: .2rem; }
.contact-label {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .18rem;
}
.top-contact a {
  display: flex; align-items: center; gap: .38rem;
  font-size: .78rem; font-weight: 500;
  color: var(--brown); letter-spacing: .02em;
  transition: color .2s; white-space: nowrap;
}
.top-contact a:hover { color: var(--gold); }

/* CENTER — Logo */
.logo-wrap { display: flex; justify-content: center; align-items: center; }
.logo-wrap img {
  height: 108px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.1);
}

/* RIGHT — About */
.top-right { display: flex; justify-content: flex-end; align-items: center; }
.btn-about {
  font-family: var(--ff-body); font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brown); background: transparent;
  border: 1.5px solid var(--brown);
  padding: .55rem 1.6rem; cursor: pointer;
  transition: background .25s, color .25s;
}
.btn-about:hover { background: var(--brown); color: #fff; }

/* ── NAVIGATION BAR ─────────────────────────────────── */
.nav-bar {
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: .4rem;
  padding: .85rem 2.4rem;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: #e8d9c0; white-space: nowrap;
  position: relative;
  transition: color .2s, background .2s;
}
.nav-item:hover > a { color: var(--gold-lt); background: rgba(255,255,255,.05); }
.nav-item > a::after {
  content: ''; position: absolute;
  bottom: 0; left: 2.4rem; right: 2.4rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-item:hover > a::after { transform: scaleX(1); }

/* Dropdown — smooth slide */
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px; background: #fff;
  border: 1px solid var(--border); border-top: 2px solid var(--gold);
  box-shadow: 0 12px 40px rgba(30,18,8,.15);
  z-index: 500;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-item:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block; padding: .62rem 1.4rem;
  font-size: .78rem; color: var(--dark);
  border-bottom: 1px solid var(--cream);
  transition: background .15s, color .15s, padding-left .2s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--cream); color: var(--gold); padding-left: 1.8rem; }

/* ════════════════ HEADER SPACER ══════════════════ */
/* JS measures header height and sets this */
.header-spacer { display: block; }

/* ════════════════ HERO SLIDER ═══════════════════ */
.slider {
  position: relative; width: 100%;
  overflow: hidden; background: var(--dark);
  height: 58vw; max-height: 600px; min-height: 280px;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; z-index: 1;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transform: scale(1.05);
  transition: transform 5.5s ease;
}
.slide.active img { transform: scale(1); }

/* Progress bar */
.slider-progress {
  position: absolute; bottom: 0; left: 0;
  height: 3px; background: var(--gold); width: 0%;
  z-index: 6;
}

/* Arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; background: rgba(20,10,4,.5);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.arrow-prev { left: 1.4rem; }
.arrow-next { right: 1.4rem; }

/* Dots */
.slider-dots {
  position: absolute; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .65rem; z-index: 5;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; padding: 0;
  transition: background .35s, transform .35s, border-color .35s;
}
.dot.active { background: var(--gold-lt); border-color: var(--gold-lt); transform: scale(1.35); }

/* ════════════════ FOOTER ════════════════════════ */
footer { background: var(--dark); color: #b09070; padding: 3.5rem clamp(1.5rem,5vw,4rem) 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img { height: 68px; mix-blend-mode: luminosity; opacity: .75; filter: brightness(1.4); margin-bottom: 1rem; }
.footer-brand p { font-size: .8rem; line-height: 1.8; color: rgba(176,144,112,.7); max-width: 270px; }
.footer-col h4 {
  font-family: var(--ff-display); font-size: 1rem; font-weight: 500;
  color: #e8d9c0; letter-spacing: .06em;
  margin-bottom: 1rem; padding-bottom: .45rem;
  border-bottom: 1px solid rgba(200,148,58,.25);
}
.footer-col li + li { margin-top: .5rem; }
.footer-col a { font-size: .78rem; color: rgba(176,144,112,.8); transition: color .2s, padding-left .2s; display: inline-block; }
.footer-col a:hover { color: var(--gold-lt); padding-left: .4rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem; padding-top: 1.8rem;
  font-size: .72rem; color: rgba(176,144,112,.35);
}
.footer-tagline { font-family: var(--ff-display); font-style: italic; font-size: .95rem; color: var(--gold); letter-spacing: .06em; }

/* ════════════════ ABOUT MODAL ══════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 2000;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ivory); max-width: 560px; width: 100%;
  padding: 2.8rem; position: relative;
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal h2 { font-family: var(--ff-display); font-size: 2.1rem; font-weight: 400; color: var(--dark); margin-bottom: 1.1rem; line-height: 1.2; }
.modal h2 em { color: var(--gold); font-style: italic; }
.modal p { font-size: .87rem; line-height: 1.85; color: var(--muted); margin-bottom: .85rem; }
.modal-tagline { font-family: var(--ff-display); font-style: italic; font-size: 1.05rem; color: var(--gold); margin-top: .6rem; display: block; }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--muted); transition: color .2s; padding: .2rem; }
.modal-close:hover { color: var(--dark); }

/* ════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .logo-wrap img { height: 80px; }
  .top-contact { display: none; }
  .top-bar { grid-template-columns: 1fr auto; }
  .top-right { display: none; }
  .nav-item > a { padding: .78rem 1.2rem; font-size: .68rem; letter-spacing: .1em; }
  .nav-item > a::after { left: 1.2rem; right: 1.2rem; }
  .slider { height: 68vw; max-height: 460px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .logo-wrap img { height: 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-item > a { padding: .7rem .9rem; font-size: .65rem; letter-spacing: .08em; }
  .nav-bar { flex-wrap: wrap; justify-content: center; }
  .slider { height: 78vw; min-height: 220px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
