/* =========================================
   MARAVO COFFEE — Warm Artisanal Design
   Palette: bg #2A1C12  surface #34251A
            text #EFE7D8  muted #C3AE96
            accent #C58A4B  line rgba(197,138,75,.26)
   Fonts: DM Serif Display (display) · DM Sans (body)
   ========================================= */

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

:root {
  --bg:       #2A1C12;
  --surface:  #34251A;
  --text:     #EFE7D8;
  --muted:    #C3AE96;
  --accent:   #C58A4B;
  --line:     rgba(197,138,75,.26);
  --line-soft:rgba(197,138,75,.14);
  --white:    #fff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --header-h: 72px;
  --header-h-condensed: 56px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

/* ——— Utility ——— */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section-header .section-subtext {
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
}

h2 em, h1 em { font-style: italic; color: var(--accent); }

.body-lg {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ——— Grain Texture Layer ——— */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.022;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ——— Reveal Animations ——— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .reveal.reveal-delay-1 { transition-delay: 0.12s; }
  .reveal.reveal-delay-2 { transition-delay: 0.22s; }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, transform 0.22s, opacity 0.22s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: #d9a05f; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(239,231,216,.3);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.8125rem; }
.btn-full { width: 100%; justify-content: center; }

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  transition: height 0.35s var(--ease-out), background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.condensed {
  height: var(--header-h-condensed);
  background: rgba(42, 28, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.header-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ——— Mobile Nav ——— */
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; width: min(320px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 800;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.nav-mobile.open {
  transform: translateX(0);
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--accent); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 799;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.visible { opacity: 1; pointer-events: all; }

/* ——— Hero ——— */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(42,28,18,0.82) 0%, rgba(42,28,18,0.35) 55%, rgba(42,28,18,0.18) 100%),
    linear-gradient(to top, rgba(42,28,18,0.75) 0%, rgba(42,28,18,0.0) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
  padding-top: var(--header-h);
  width: min(700px, 100%);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.3125rem);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}

.hero-cta-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ——— Intro Strip ——— */
.intro-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-block: 0.875rem;
}

.intro-strip-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: strip-scroll 24s linear infinite;
  will-change: transform;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.intro-strip-inner span {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.intro-strip-inner .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ——— Story ——— */
.story-section { background: var(--bg); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.story-images { position: relative; }

.story-img-stack {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 600px;
}

.story-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.story-img-float {
  position: absolute;
  bottom: -2rem;
  right: -1.75rem;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--bg);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.story-text h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.story-text p { color: var(--muted); margin-bottom: 1rem; }
.story-text .body-lg { color: var(--text); }

.stat-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat-item { display: flex; flex-direction: column; gap: 0.125rem; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--line);
}

/* ——— Menu ——— */
.menu-section { background: var(--surface); }

.menu-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  width: fit-content;
}

.tab-btn {
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border-right: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--accent); color: var(--bg); font-weight: 500; }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.menu-panels { min-height: 320px; }
.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.menu-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.menu-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line-soft); }
.menu-item:nth-child(even) { padding-left: 2rem; }

.menu-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.menu-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.menu-note {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

.menu-price {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-image-row {
  margin-top: 3.5rem;
  border-radius: 4px;
  overflow: hidden;
  height: clamp(200px, 30vw, 360px);
}

.menu-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.5s var(--ease-out);
}
.menu-image-row:hover .menu-banner-img { transform: scale(1.02); }

/* ——— Beans ——— */
.beans-section { background: var(--bg); }

.beans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bean-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.bean-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.bean-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.bean-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.bean-card:hover .bean-img-wrap img { transform: scale(1.05); }

.bean-origin-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(42,28,18,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.bean-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.bean-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.bean-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.2;
}

.bean-price {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.bean-region {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tasting-notes {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.note {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.125rem 0.5rem;
  background: rgba(197,138,75,0.06);
}

.bean-meta {
  display: flex;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.25rem;
}

.beans-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ——— Roastery ——— */
.roastery-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.roastery-bg-video-wrap {
  position: absolute;
  inset: 0;
}

.roastery-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.roastery-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42,28,18,0.96) 0%, rgba(42,28,18,0.88) 50%, rgba(42,28,18,0.75) 100%);
}

.roastery-content {
  position: relative;
  z-index: 2;
}

.section-header-light h2 { color: var(--text); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
  margin-bottom: 3.5rem;
}

.process-step { display: flex; gap: 1.25rem; }

.step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--line);
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-text { color: var(--muted); font-size: 0.9375rem; }

.roastery-images {
  border-radius: 4px;
  overflow: hidden;
  height: clamp(240px, 35vw, 420px);
}

.roastery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ——— Visit ——— */
.visit-section { background: var(--surface); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.visit-text h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.visit-text > p { color: var(--muted); margin-bottom: 2rem; }

.visit-details { display: flex; flex-direction: column; gap: 1.5rem; }

.visit-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.visit-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(197,138,75,0.06);
}

.visit-detail-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.visit-detail-item strong {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9375rem;
}

.visit-detail-item span {
  font-size: 0.875rem;
  color: var(--muted);
}

.visit-image { position: relative; }

.visit-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}

.visit-img-caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* ——— Wholesale ——— */
.wholesale-section { background: var(--bg); }

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.wholesale-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}

.wholesale-text h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.wholesale-text > p { color: var(--muted); margin-bottom: 1rem; }

.wholesale-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.wholesale-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.wholesale-list li svg { flex-shrink: 0; }

/* ——— Contact ——— */
.contact-section { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.contact-intro p { color: var(--muted); }

.contact-form-wrap { position: relative; }

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.optional { font-weight: 400; opacity: 0.6; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C3AE96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option { background: var(--surface); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197,138,75,0.12);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(195,174,150,0.45); }

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

.form-error {
  font-size: 0.75rem;
  color: #e07a5f;
  min-height: 1rem;
  display: block;
}

.btn-form-submit {
  align-self: flex-start;
  padding: 0.875rem 2rem;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn-form-submit:hover .btn-arrow { transform: translateX(3px); }

.form-success {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.form-success[hidden] { display: none; }

.form-success-inner {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-success-inner h3 {
  font-size: 1.75rem;
  color: var(--text);
}

.form-success-inner p {
  color: var(--muted);
  max-width: 320px;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-tagline {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--muted);
}

.footer-address {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: end;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-heading {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--gutter);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
}

.footer-credit a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  padding-bottom: 1px;
}
.footer-credit a:hover { border-bottom-color: var(--accent); }

/* ——— Built Pill ——— */
.built-pill {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(42,28,18,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.built-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.built-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .beans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .story-grid,
  .visit-grid,
  .wholesale-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-img-float { display: none; }
  .story-img-main { aspect-ratio: 16/9; height: auto; }
  .story-img-stack { aspect-ratio: auto; max-height: none; }

  .menu-grid {
    grid-template-columns: 1fr;
  }
  .menu-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .menu-item:nth-child(even) { padding-left: 0; }

  .beans-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row { gap: 1.25rem; }
  .hero-title { font-size: clamp(3rem, 14vw, 5.5rem); }

  .wholesale-grid { grid-template-columns: 1fr; }
  .wholesale-img { aspect-ratio: 16/9; }

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

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

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .tab-btn { font-size: 0.8rem; padding: 0.5rem 0.875rem; }
}

@media (min-width: 1440px) {
  :root { --gutter: clamp(3rem, 8vw, 6rem); }
}
