/* Wildland Imports — shared visual system */

:root {
  --bark: #0F0E0C;
  --ember: #C4622D;
  --gold: #B8956A;
  --spruce: #4A6B52;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bark);
}

.font-display {
  font-family: Fraunces, Georgia, serif;
}

/* ── Motifs (floating decor) ── */
.motif-float {
  position: absolute;
  pointer-events: none;
  color: var(--spruce);
  opacity: 0.12;
}
.motif-float--ember { color: var(--ember); opacity: 0.18; }
.motif-float--gold { color: var(--gold); opacity: 0.15; }

.motif-icon { width: 100%; height: 100%; }

/* ── Section backgrounds ── */
.section-glow {
  position: relative;
  overflow: hidden;
}
.section-glow::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(196, 98, 45, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bg-mesh {
  background-image:
    radial-gradient(at 20% 30%, rgba(74, 107, 82, 0.15) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(196, 98, 45, 0.06) 0%, transparent 45%),
    radial-gradient(at 50% 50%, rgba(184, 149, 106, 0.04) 0%, transparent 60%);
}

.pattern-topo {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 10 30 30 T60 30' fill='none' stroke='%234A6B52' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
}

/* ── Typography — story & editorial ── */
.prose-wild {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #C8C2B8;
}
@media (min-width: 768px) {
  .prose-wild { font-size: 1.5rem; line-height: 1.8; }
}
@media (min-width: 1024px) {
  .prose-wild { font-size: 1.625rem; }
}

.prose-wild p + p { margin-top: 1.25em; }

.story-h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #F2EDE4;
  letter-spacing: -0.02em;
}

.story-h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--gold);
}

.story-lead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.65;
  color: #C8C2B8;
}

.story-quote {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: #F2EDE4;
  border-left: 4px solid var(--ember);
  padding-left: 1.5rem;
}

/* Smaller story photos — text leads */
.story-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  ring: 1px solid rgba(74, 107, 82, 0.4);
}
@media (min-width: 768px) {
  .story-photo { max-width: 320px; }
}

.story-photo-wide {
  max-width: 100%;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 1rem;
}

/* Trio / grid photos — larger than inline portraits, full column width */
.story-photo-gallery {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(74, 107, 82, 0.4);
}
@media (min-width: 768px) {
  .story-photo-gallery {
    aspect-ratio: 3 / 4;
    min-height: 280px;
    max-height: 360px;
  }
}

.story-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* ── Flashy UI components ── */
.text-gradient {
  background: linear-gradient(135deg, #F2EDE4 0%, #B8956A 50%, #C4622D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(196, 98, 45, 0.35);
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-glow:hover::after { transform: translateX(100%); }

.card-premium {
  position: relative;
  border: 1px solid rgba(74, 107, 82, 0.35);
  background: linear-gradient(145deg, rgba(26, 35, 24, 0.95) 0%, rgba(15, 14, 12, 0.98) 100%);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card-premium:hover {
  border-color: rgba(196, 98, 45, 0.4);
  box-shadow: 0 8px 40px rgba(196, 98, 45, 0.12);
  transform: translateY(-4px);
}

.divider-motif {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--gold);
  opacity: 0.5;
}
.divider-motif svg { width: 120px; height: 24px; }

.trust-card {
  background: rgba(26, 35, 24, 0.6);
  border: 1px solid rgba(74, 107, 82, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
}
.trust-card:hover {
  border-color: rgba(196, 98, 45, 0.35);
  background: rgba(45, 59, 40, 0.4);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(15,14,12,0.75) 0%, rgba(15,14,12,0.55) 45%, rgba(15,14,12,0.88) 100%);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* Logo sizes */
.logo-nav {
  height: 3rem;
  width: auto;
}
@media (min-width: 768px) {
  .logo-nav { height: 3.75rem; }
}

.logo-hero {
  width: auto;
  height: clamp(7rem, 22vw, 14rem);
  filter: drop-shadow(0 0 40px rgba(196, 98, 45, 0.25));
}

.logo-banner {
  width: auto;
  height: clamp(5rem, 14vw, 9rem);
  opacity: 0.95;
}

.logo-footer {
  width: auto;
  height: clamp(4.5rem, 10vw, 7rem);
}

.logo-cta {
  width: auto;
  height: clamp(5rem, 12vw, 8rem);
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.logo-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.logo-mark-wrap--ring {
  position: relative;
}
.logo-mark-wrap--ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 98, 45, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.brand-strip {
  border-top: 1px solid rgba(74, 107, 82, 0.35);
  border-bottom: 1px solid rgba(74, 107, 82, 0.35);
  background: linear-gradient(180deg, rgba(26, 35, 24, 0.9) 0%, rgba(15, 14, 12, 0.95) 100%);
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#site-nav.nav-scrolled {
  background: rgba(26, 35, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 98, 45, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8C2B8;
  transition: color 0.2s;
}
.nav-link:hover { color: #F2EDE4; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label::before,
.section-label::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-label::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 6s ease-in-out 2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, #F2EDE4 0%, #B8956A 25%, #F2EDE4 50%, #B8956A 75%, #F2EDE4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

.chip-pill {
  border: 1px solid rgba(74, 107, 82, 0.5);
  background: rgba(26, 35, 24, 0.6);
  transition: all 0.25s;
}
.chip-pill:hover {
  border-color: rgba(196, 98, 45, 0.6);
  background: rgba(196, 98, 45, 0.12);
  color: #F2EDE4;
  box-shadow: 0 0 20px rgba(196, 98, 45, 0.2);
}

@keyframes ember-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.ember-glow {
  animation: ember-pulse 4s ease-in-out infinite;
}

/* Roast guide — illustrative caffeine meters (CSS only) */
.text-ink-muted {
  color: rgba(200, 194, 184, 0.75);
}

.roast-meter {
  height: 0.35rem;
  width: 100%;
  max-width: 12rem;
  border-radius: 9999px;
  background: rgba(38, 35, 33, 0.08);
  overflow: hidden;
}

.roast-meter--full {
  max-width: none;
}

.roast-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: #262321;
  transition: width 1s ease 0.2s;
}

.reveal.is-visible .roast-meter-fill {
  width: var(--fill, 0%);
}

/* Light track tint so meters read on dark comparison cards */
.comparison-table .roast-meter {
  background: rgba(242, 237, 228, 0.14);
}
.comparison-table .roast-meter-fill {
  background: #F2EDE4;
}
