/* Meridian Coffee Roasters — custom layer on top of Tailwind + toolbox libs */

/* ---- Reveal animation (driven by GSAP in main.js; graceful fallback) ---- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.reveal-ready [data-reveal] { will-change: opacity, transform; }
/* If JS/GSAP fails to load, never leave content invisible */
.no-js [data-reveal],
html:not(.reveal-ready) [data-reveal] { opacity: 1; transform: none; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #b9743f; color: #f6efe6;
  padding: .75rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: .9rem; line-height: 1;
  box-shadow: 0 10px 25px -10px rgba(185,116,63,.7);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { background: #a5652f; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(185,116,63,.8); }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(246,239,230,.25); color: #f6efe6;
  padding: .75rem 1.5rem; border-radius: 9999px;
  font-weight: 500; font-size: .9rem; line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost-light:hover { background: rgba(246,239,230,.08); border-color: rgba(246,239,230,.5); }

/* ---- Nav ---- */
.nav-link { position: relative; color: #f6efe6; opacity: .85; transition: opacity .2s ease; }
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: #b9743f; transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Scrolled state — nav gets a cream bar + dark text */
#site-nav.is-scrolled {
  background: rgba(246,239,230,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(43,29,20,.08);
}
#site-nav.is-scrolled .nav-link,
#site-nav.is-scrolled a[href="#top"] { color: #2b1d14; }
#site-nav.is-scrolled .nav-link::after { background: #b9743f; }
#site-nav.is-scrolled #menu-open { color: #2b1d14; }

.m-link { transition: color .2s ease; }
.m-link:hover { color: #b9743f; }

/* ---- Feature cards ---- */
.feature-card {
  border: 1px solid rgba(43,29,20,.08);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(43,29,20,.35); border-color: rgba(185,116,63,.4); }
.feature-icon {
  display: inline-grid; place-items: center;
  height: 3rem; width: 3rem; border-radius: .9rem;
  background: rgba(185,116,63,.12); color: #b9743f; margin-bottom: 1.1rem;
}
.feature-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.2rem; }
.feature-text { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: rgba(43,29,20,.65); }

/* ---- Coffee range cards ---- */
.range-swiper { padding-bottom: .5rem; }
.range-swiper .swiper-slide { height: auto; }
.coffee-card {
  height: 100%;
  background: rgba(246,239,230,.04);
  border: 1px solid rgba(246,239,230,.12);
  border-radius: 1.5rem; padding: 1.5rem;
  transition: border-color .25s ease, transform .25s ease;
}
.coffee-card:hover { border-color: rgba(185,116,63,.6); transform: translateY(-4px); }
.coffee-bag {
  height: 14rem; border-radius: 1rem;
  background: linear-gradient(160deg, var(--from), var(--to));
  position: relative; overflow: hidden;
}
.coffee-bag::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.25), transparent 60%);
}
.coffee-tag {
  display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: #e9d4b8; background: rgba(233,212,184,.12); padding: .25rem .6rem; border-radius: 9999px;
}
.coffee-foot {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(246,239,230,.12);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .9rem; font-weight: 600;
}
.coffee-buy { color: #e9d4b8; transition: color .2s ease; cursor: pointer; }
.coffee-buy:hover { color: #fff; }
.nav-arrow {
  display: inline-grid; place-items: center; height: 3rem; width: 3rem;
  border-radius: 9999px; border: 1px solid rgba(246,239,230,.25); color: #f6efe6;
  transition: background .2s ease, border-color .2s ease;
}
.nav-arrow:hover { background: rgba(246,239,230,.1); border-color: rgba(246,239,230,.6); }
.nav-arrow.swiper-button-disabled { opacity: .35; cursor: default; }

/* ---- Story ---- */
.story-check {
  flex-shrink: 0; display: inline-grid; place-items: center;
  height: 1.5rem; width: 1.5rem; border-radius: 9999px;
  background: rgba(185,116,63,.15); color: #b9743f; margin-top: .1rem;
}

/* ---- Pricing ---- */
.price-card {
  position: relative; border-radius: 1.5rem; padding: 2rem;
  background: rgba(246,239,230,.04); border: 1px solid rgba(246,239,230,.12);
}
.price-card--featured {
  background: #f6efe6; color: #2b1d14; border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transform: scale(1.03);
}
.price-list { margin-top: 1.5rem; display: grid; gap: .75rem; font-size: .9rem; }
.price-list li { position: relative; padding-left: 1.5rem; color: rgba(246,239,230,.75); }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; color: #b9743f; font-weight: 700;
}
.price-list--dark li { color: rgba(43,29,20,.75); }

/* ---- Testimonials ---- */
.testimonial-swiper { padding-bottom: .5rem; }
.quote-card {
  max-width: 46rem; margin: 0 auto; text-align: center; padding: 1rem 1.5rem;
}
.quote-stars { color: #b9743f; letter-spacing: .15em; font-size: 1.1rem; }
.quote-by { margin-top: 1.25rem; font-weight: 600; color: rgba(43,29,20,.6); }
.testimonial-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; background: #2b1d14; opacity: .2; transition: opacity .2s, width .2s;
}
.testimonial-pagination .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 4px; background: #b9743f; }

/* ---- Visit ---- */
.visit-icon {
  flex-shrink: 0; display: inline-grid; place-items: center;
  height: 2.75rem; width: 2.75rem; border-radius: .9rem;
  background: rgba(233,212,184,.12); color: #e9d4b8;
}

/* ---- Form ---- */
.form-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; color: rgba(43,29,20,.7); }
.form-input {
  width: 100%; border-radius: .75rem; border: 1px solid rgba(43,29,20,.15);
  background: #fbf7f1; padding: .75rem 1rem; font-size: .95rem; color: #2b1d14;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus { outline: none; border-color: #b9743f; box-shadow: 0 0 0 3px rgba(185,116,63,.2); }

/* ---- Footer ---- */
.footer-head { color: #f6efe6; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-list { display: grid; gap: .6rem; font-size: .9rem; }
.footer-list a:hover { color: #e9d4b8; }
.social-link {
  display: inline-grid; place-items: center; height: 2.25rem; width: 2.25rem;
  border-radius: 9999px; background: rgba(246,239,230,.08); color: #f6efe6;
  transition: background .2s ease, color .2s ease;
}
.social-link:hover { background: #b9743f; }
.cc-settings-link { color: inherit; text-align: left; }
.cc-settings-link:hover { color: #e9d4b8; text-decoration: underline; }
.jarvis-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: rgba(246,239,230,.5);
  transition: color .2s ease;
}
.jarvis-badge:hover { color: rgba(246,239,230,.8); }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
