/* ═══════════════════════════════════════════════════
   VELDT & BEAN — Custom Stylesheet
   Design System: Warm, Organic, Editorial
════════════════════════════════════════════════════ */

/* ── Root Variables ────────────────────────────── */
:root {
  --cream: #FDFCF8;
  --espresso: #2D241E;
  --sage: #849669;
  --sand: #E9E2D8;
  --text-primary: #2D241E;
  --text-secondary: rgb(29, 19, 14);
  --border: rgba(45, 36, 30, 0.10);
  --radius: 1rem;
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Base Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Grain Texture Overlay ──────────────────────── */
.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow 0.3s ease;
  background-color: #c88a5db8;
}

.site-nav.scrolled {
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;

}

.nav-links-left,
.nav-links-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links-right {
  justify-content: flex-end;
}

.nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--espresso);
}

.nav-logo {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--espresso);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--sage);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--sage);
  color: var(--cream) !important;
  border-radius: 100px;
  font-size: 0.68rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--espresso);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--espresso);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile fullscreen menu ───────────────────────
   MUST be a sibling of <nav>, NOT a child.
   A position:fixed child of a backdrop-filter parent
   gets trapped in that stacking context and can't
   cover the full viewport. As a sibling it is free.
──────────────────────────────────────────────────── */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 150;
  /* above nav:100, below cart-overlay:200 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateY(-100%);
  transition: transform 0.48s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  overflow-y: auto;
}

.nav-mobile-menu.open {
  transform: translateY(0);
}

.nav-mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--espresso);
  transition: color 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--sage);
}

@media (max-width: 900px) {

  .nav-links-left,
  .nav-links-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero-image-bg {
  background:
    linear-gradient(to bottom right, rgba(45, 36, 30, 0.15), rgba(45, 36, 30, 0.05)),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=900&q=80&auto=format&fit=crop') center/cover no-repeat;
  /* transition: transform 8s ease; */
}

.hero-image-bg:hover {
  transform: scale(1.03);
}

.badge-float {
  animation: float 4s ease-in-out infinite;
  font-family: 'Playfair Display', serif;
  left: 10vh;
  top: 20vh;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--espresso), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--sage);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s ease;
  border: 1.5px solid var(--sage);
}

.btn-primary:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 36, 30, 0.15);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #2d241ef6;
  color: #FDFCF8;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--espresso);
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--cream);
  color: var(--espresso);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid var(--cream);
  transition: all 0.3s ease;
}

.btn-cream:hover {
  background: transparent;
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-ghost-cream {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid rgba(253, 252, 248, 0.3);
  transition: all 0.3s ease;
}

.btn-ghost-cream:hover {
  border-color: var(--cream);
  background: rgba(253, 252, 248, 0.1);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   STORY SECTION
════════════════════════════════════════════════════ */
.story-collage {
  position: relative;
  height: 340px;
}

.story-img {
  position: absolute;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.story-img-1 {
  width: 72%;
  height: 260px;
  top: 0;
  left: 0;
  background: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=600&q=80&auto=format&fit=crop') center/cover;
  box-shadow: 0 20px 60px rgba(45, 36, 30, 0.12);
}

.story-img-2 {
  width: 54%;
  height: 200px;
  bottom: 0;
  right: 0;
  background: url('https://images.unsplash.com/photo-1611854779393-1b2da9d400fe?w=500&q=80&auto=format&fit=crop') center/cover;
  border: 5px solid var(--cream);
  box-shadow: 0 12px 40px rgba(45, 36, 30, 0.10);
}

.pull-quote {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--sage);
}

/* ═══════════════════════════════════════════════════
   ROAST SELECTOR
════════════════════════════════════════════════════ */
.roast-tabs {
  display: inline-flex;
  background: rgba(253, 252, 248, 0.8);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.roast-tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.35s ease;
}

.roast-tab.active {
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(45, 36, 30, 0.2);
}

.roast-tab:not(.active):hover {
  color: var(--espresso);
}

/* Bean visual */
.roast-bean-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 252, 248, 0.7);
  border: 1.5px solid var(--border);
  transition: background 0.5s ease;
}

.roast-bean-visual svg {
  transition: all 0.5s ease;
}

/* Intensity bar */
.roast-intensity-track {
  height: 4px;
  background: rgba(45, 36, 30, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.roast-intensity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--espresso));
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Flavor note chips */
.taste-chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(132, 150, 105, 0.12);
  color: var(--sage);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(132, 150, 105, 0.25);
}

/* Roast panel transition */
.roast-info {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.roast-info.transitioning {
  opacity: 0;
  transform: translateY(8px);
}

/* ═══════════════════════════════════════════════════
   COFFEE CARDS
════════════════════════════════════════════════════ */
.coffee-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.4s var(--transition), box-shadow 0.4s ease;
}

.coffee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(45, 36, 30, 0.12);
}

.coffee-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.coffee-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 36, 30, 0.3) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}

.coffee-card:hover .coffee-card-img::after {
  opacity: 0.5;
}

.coffee-card-img .coffee-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  background-size: cover;
  background-position: center;
}

.coffee-card:hover .coffee-card-img {}

/* Card image backgrounds */
.coffee-img-1 {
  background: url('https://images.unsplash.com/photo-1514432324607-a09d9b4aefdd?w=600&q=80&auto=format&fit=crop') center/cover;
  transition: transform 0.7s ease;
}

.coffee-img-2 {
  background: url('https://images.unsplash.com/photo-1559056199-641a0ac8b55e?w=600&q=80&auto=format&fit=crop') center/cover;
  transition: transform 0.7s ease;
}

.coffee-img-3 {
  background: url('https://images.unsplash.com/photo-1587049352846-4a222e784d38?w=600&q=80&auto=format&fit=crop') center/cover;
  transition: transform 0.7s ease;
}

.coffee-card:hover .coffee-img-1,
.coffee-card:hover .coffee-img-2,
.coffee-card:hover .coffee-img-3 {
  transform: scale(1.06);
}

.coffee-card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.coffee-card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(253, 252, 248, 0.9);
  color: var(--espresso);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.coffee-card-body {
  padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   SUBSCRIPTION
════════════════════════════════════════════════════ */
.sub-benefit-card {
  background: rgba(253, 252, 248, 0.05);
  border: 1.5px solid rgba(253, 252, 248, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sub-benefit-card:hover {
  border-color: rgba(132, 150, 105, 0.4);
  background: rgba(132, 150, 105, 0.06);
}

.sub-benefit-icon {
  color: var(--sage);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   SUSTAINABILITY
════════════════════════════════════════════════════ */
.sustain-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sustain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 36, 30, 0.08);
}

.sustain-icon {
  width: 56px;
  height: 56px;
  background: rgba(132, 150, 105, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sustain-story-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.sustain-story-img {
  min-height: 400px;
  background: url('https://images.unsplash.com/photo-1565372195458-9de0b320ef04?w=700&q=80&auto=format&fit=crop') center/cover;
}

.sustain-story-text {
  padding: 3rem 2.5rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .sustain-story-strip {
    grid-template-columns: 1fr;
  }

  .sustain-story-img {
    min-height: 260px;
  }
}

/* ═══════════════════════════════════════════════════
   BREW GUIDE
════════════════════════════════════════════════════ */
.brew-card {
  background: rgba(253, 252, 248, 0.85);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brew-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(45, 36, 30, 0.10);
}

.brew-icon-wrap {
  margin-bottom: 1.5rem;
}

.brew-icon {
  width: 56px;
  height: 56px;
}

.brew-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.brew-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  color: var(--sage);
  letter-spacing: 0.05em;
  min-width: 20px;
  padding-top: 1px;
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════════════ */
.testimonial-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 36, 30, 0.08);
}

.testimonial-stars {
  font-size: 0.8rem;
  color: var(--sage);
  letter-spacing: 0.1em;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover !important;
  background-position: center !important;
  flex-shrink: 0;
}

.testimonial-av-1 {
  background: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=80&q=80&auto=format&fit=crop&facepad=2&crop=faces') center/cover;
}

.testimonial-av-2 {
  background: url('https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=80&q=80&auto=format&fit=crop&facepad=2&crop=faces') center/cover;
}

.testimonial-av-3 {
  background: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=80&q=80&auto=format&fit=crop&facepad=2&crop=faces') center/cover;
}

/* ═══════════════════════════════════════════════════
   INSTAGRAM GRID
════════════════════════════════════════════════════ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.ig-item {
  border-radius: 0.875rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-size: cover !important;
  background-position: center !important;
}

.ig-item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.ig-item-1 {
  background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-item-2 {
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-item-3 {
  background: url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-item-4 {
  background: url('https://images.unsplash.com/photo-1511920170033-f8396924c348?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-item-5 {
  background: url('https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-item-6 {
  background: url('https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?w=400&q=80&auto=format&fit=crop') center/cover;
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════════════════ */
.cta-bg-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 150, 105, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.site-footer {
  background: var(--cream);
  border-top: 1.5px solid var(--border);
  padding: 5rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 240px;
  margin-bottom: 1.5rem;
}

.footer-newsletter {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--espresso);
}

.footer-newsletter input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.footer-newsletter button {
  padding: 0.6rem 1.25rem;
  background: var(--espresso);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 0 100px 100px 0;
  transition: background 0.3s;
}

.footer-newsletter button:hover {
  background: var(--sage);
}

.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--espresso);
}

/* Instagram mini-feed in footer */
.footer-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.footer-ig-item {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background-size: cover !important;
  background-position: center !important;
  cursor: pointer;
  transition: opacity 0.3s;
}

.footer-ig-item:hover {
  opacity: 0.75;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--espresso);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .ig-item-5,
  .ig-item-6 {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS & REVEALS
════════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--delay, 0s);
  /* padding: 3px; */
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth page-load hero reveal */
@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero .reveal-up {
  animation: fadeInHero 1s ease forwards;
  animation-delay: var(--delay, 0.3s);
  opacity: 0;
  margin-top: 8vh;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   NAV ADDITIONS — cart, active state, mobile close
════════════════════════════════════════════════════ */
.nav-link--active {
  color: var(--espresso) !important;
  font-weight: 600;
}

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--espresso);
  padding: 4px;
  transition: color 0.2s;
}

.nav-cart-btn:hover {
  color: var(--sage);
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--sage);
  color: var(--cream);
  border-radius: 50%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--espresso);
  padding: 4px;
}

.mobile-menu-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--espresso);
  transition: color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-active {
  color: var(--sage) !important;
}

.footer-logo-link {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.footer-logo-link span {
  color: var(--sage);
}

/* ═══════════════════════════════════════════════════
   CART SIDEBAR
════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 30, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--cream);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -20px 0 60px rgba(45, 36, 30, 0.12);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  transition: color 0.2s;
}

.cart-close-btn:hover {
  color: var(--espresso);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.qty-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 0.9rem;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: var(--espresso);
}

.cart-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══════════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════════════ */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: var(--cream);
  position: relative;
}

.page-hero-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
  display: block;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.06;
  color: var(--espresso);
  margin-bottom: 1.25rem;
}

.page-hero p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ═══════════════════════════════════════════════════
   FILTER BAR (Coffee page)
════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.filter-count {
  margin-left: auto;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   PRODUCT MODAL
════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 30, 0.55);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal {
  background: var(--cream);
  border-radius: 1.5rem;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .product-modal {
  transform: scale(1) translateY(0);
}

.product-modal-img {
  border-radius: 1.5rem 0 0 1.5rem;
  min-height: 460px;
  background-size: cover !important;
  background-position: center !important;
}

.product-modal-body {
  padding: 2.5rem 2rem;
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 36, 30, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  transition: background 0.2s;
}

.product-modal-close:hover {
  background: rgba(45, 36, 30, 0.16);
}

.grind-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.grind-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.grind-btn.active,
.grind-btn:hover {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.weight-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.weight-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.weight-btn.active,
.weight-btn:hover {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
}

@media (max-width: 640px) {
  .product-modal {
    grid-template-columns: 1fr;
  }

  .product-modal-img {
    min-height: 260px;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

/* ═══════════════════════════════════════════════════
   SUBSCRIPTION PAGE
════════════════════════════════════════════════════ */
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  background: var(--cream);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s;
  cursor: pointer;
}

.plan-card:hover,
.plan-card.featured {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(45, 36, 30, 0.10);
}

.plan-card.featured {
  border-color: var(--sage);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}

.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.25rem 0;
}

.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--espresso);
  line-height: 1;
}

.plan-period {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.plan-check {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   JOURNAL PAGE
════════════════════════════════════════════════════ */
.journal-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--cream);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(45, 36, 30, 0.10);
}

.journal-card-img {
  height: 220px;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.journal-card:hover .journal-card-img {
  transform: scale(1.04);
}

.journal-card-body {
  padding: 1.5rem;
}

.journal-tag {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.journal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--espresso);
  margin-bottom: 0.6rem;
}

.journal-card p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.journal-featured {
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border);
  margin-bottom: 3rem;
}

.journal-featured-img {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.journal-featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .journal-featured {
    grid-template-columns: 1fr;
  }

  .journal-featured-img {
    min-height: 260px;
  }
}

/* ═══════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.875rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--sage);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.25s;
}

.contact-info-card:hover {
  border-color: var(--sage);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(132, 150, 105, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   STORY PAGE
════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--sage);
  transform: translateX(-4px);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--sage);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   SUSTAINABILITY PAGE EXTRAS
════════════════════════════════════════════════════ */
.impact-stat {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  background: var(--cream);
}

.impact-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--espresso);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.progress-bar-track {
  height: 6px;
  background: var(--sand);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0;
}

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATION
════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--espresso);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(45, 36, 30, 0.25);
  z-index: 400;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════
   PAGE TRANSITION FADE
════════════════════════════════════════════════════ */
body {
  animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}