/*
Theme Name: El Centenario
Theme URI: https://elcentenario.coffee
Author: El Centenario Specialty Coffee
Author URI: https://elcentenario.coffee
Description: Custom WordPress theme for El Centenario Specialty Coffee. Brutalist editorial design with WooCommerce integration. Single-origin specialty coffee from El Salvador.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
License URI: https://elcentenario.coffee
Text Domain: el-centenario
Tags: ecommerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --black: #0A0A0A;
  --pure-black: #000000;
  --white: #FFFFFF;
  --paper: #F5F5F0;
  --cream: #F4EBDA;
  --cream-deep: #EDE0C9;
  --coffee: #6B4423;
  --coffee-light: #8B5E3C;
  --ink: #1A1A1A;
  --line: rgba(10, 10, 10, 0.12);
  --line-light: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}

/* WordPress accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ═══════════════════════════════════════════
   PROMO BAR
   ═══════════════════════════════════════════ */
.promo-bar {
  background: var(--pure-black);
  color: var(--white);
  text-align: center;
  padding: 11px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.promo-bar span {
  margin: 0 18px;
  color: var(--cream-deep);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 0;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

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

.nav a {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coffee);
  transition: width 0.3s ease;
}

.nav a:hover::after { width: 100%; }

.header-logo { width: 110px; display: block; }
.header-logo img { width: 100%; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--black);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.cart-link:hover {
  background: var(--coffee);
  color: var(--cream);
  opacity: 1;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--black);
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 100px);
  background: var(--black);
}

.hero-text {
  background: var(--black);
  color: var(--white);
  padding: 80px 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--cream-deep);
}

.hero-headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-headline .accent,
.accent-light {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--cream-deep);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 800;
  transition: all 0.2s ease;
  border: 1.5px solid currentColor;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--coffee);
  color: var(--cream);
  border-color: var(--coffee);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  opacity: 1;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

.btn-black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-black:hover {
  background: var(--coffee);
  color: var(--cream);
  border-color: var(--coffee);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   HERO META
   ═══════════════════════════════════════════ */
.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta div { display: flex; flex-direction: column; gap: 6px; }
.hero-meta strong {
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-image {
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-image img {
  max-height: 92%;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}

.hero-image-tag {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee {
  background: var(--black);
  color: var(--white);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1.5px solid var(--coffee);
  border-bottom: 1.5px solid var(--coffee);
}

.marquee-track {
  display: inline-flex;
  gap: 80px;
  animation: scroll 35s linear infinite;
  align-items: center;
}

.marquee-item {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.marquee-dot {
  color: var(--coffee);
  font-size: 24px;
}

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

/* ═══════════════════════════════════════════
   ORIGIN
   ═══════════════════════════════════════════ */
.origin {
  padding: 140px 0;
  background: var(--white);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.origin-label,
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.origin-label::before,
.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--black);
}

.origin h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.origin h2 .accent,
.section-head h3 .accent,
.feature-bag-content h3 .accent {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.015em;
  color: var(--coffee);
}

.origin-body { padding-top: 24px; }
.origin-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
}

.origin-specs {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1.5px solid var(--black);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.origin-spec { display: flex; flex-direction: column; gap: 4px; }

.origin-spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

.origin-spec-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

/* ═══════════════════════════════════════════
   PRODUCTS GRID
   ═══════════════════════════════════════════ */
.products {
  padding: 120px 0;
  background: var(--paper);
  border-top: 1.5px solid var(--black);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 80px;
  gap: 40px;
}

.section-head h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--black);
}

.filter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  border-right: 1.5px solid var(--black);
  transition: all 0.2s ease;
  background: transparent;
  color: var(--black);
  text-decoration: none;
}

.filter:last-child { border-right: none; }
.filter.active, .filter:hover {
  background: var(--black);
  color: var(--cream);
  opacity: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--black);
}

.product-card {
  cursor: pointer;
  border-right: 1.5px solid var(--black);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.product-card:last-child { border-right: none; }
.product-card:hover { background: var(--cream-deep); }

.product-card-img-wrap {
  aspect-ratio: 1/1;
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrap img {
  max-height: 88%;
  width: auto;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.product-card:hover .product-card-img-wrap img {
  transform: translateY(-12px);
}

.product-card-meta {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  transition: color 0.3s ease;
}

.product-card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.product-card-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.product-card-price {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.product-card-process {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
}

.product-card-notes {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-top: 6px;
  opacity: 0.75;
}

/* WooCommerce add-to-cart on card */
.product-card .button,
.product-card .added_to_cart {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 18px;
  background: var(--black);
  color: var(--cream);
  border: 1.5px solid var(--black);
  text-align: center;
  transition: all 0.2s;
}

.product-card .button:hover {
  background: var(--coffee);
  border-color: var(--coffee);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   FEATURED BAG
   ═══════════════════════════════════════════ */
.feature-bag {
  padding: 0;
  background: var(--cream-deep);
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
}

.feature-bag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}

.feature-bag-img {
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border-right: 1.5px solid var(--black);
  position: relative;
}

.feature-bag-img img {
  max-height: 720px;
  width: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
}

.feature-bag-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.feature-bag-content h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.feature-bag-content > p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
  color: var(--ink);
}

.spec-table {
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  margin-bottom: 48px;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  font-size: 11px;
  align-self: center;
}

.spec-value {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════════ */
.quote-section {
  padding: 180px 40px;
  background: var(--black);
  color: var(--white);
  text-align: left;
  border-bottom: 1.5px solid var(--coffee);
}

.quote-section blockquote {
  max-width: 1200px;
  margin: 0 auto;
}

.quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 200px;
  line-height: 0.5;
  color: var(--cream-deep);
  margin-bottom: 24px;
  display: block;
}

.quote-section blockquote p {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 1100px;
}

.quote-section blockquote p .accent {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--cream-deep);
}

.quote-section cite {
  display: block;
  margin-top: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
  color: var(--cream-deep);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   VALUES
   ═══════════════════════════════════════════ */
.values {
  padding: 120px 0;
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--black);
}

.value {
  padding: 60px 48px;
  border-right: 1.5px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--white);
  transition: background 0.3s ease;
}

.value:last-child { border-right: none; }
.value:hover { background: var(--paper); }

.value-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.value-num span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.6;
  font-weight: 500;
}

.value h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.value p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

/* ═══════════════════════════════════════════
   SUBSCRIPTION
   ═══════════════════════════════════════════ */
.subscription {
  padding: 140px 0;
  background: var(--black);
  color: var(--white);
}

.subscription-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}

.subscription-head .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-deep);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.subscription-head .label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--cream-deep);
}

.subscription-head h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.subscription-head h3 .accent {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--cream-deep);
}

.subscription-head p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
  margin-bottom: 60px;
}

.step {
  padding: 56px 40px;
  border-right: 1.5px solid rgba(255,255,255,0.2);
}

.step:last-child { border-right: none; }

.step-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--cream-deep);
  margin-bottom: 24px;
}

.step h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.step p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter {
  padding: 140px 0;
  background: var(--coffee);
  color: var(--cream);
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.newsletter h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.newsletter h3 .accent {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--cream-deep);
}

.newsletter-side p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: rgba(244, 235, 218, 0.85);
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--cream);
  background: var(--cream);
}

.newsletter-form input {
  flex: 1;
  padding: 20px 24px;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--black);
}

.newsletter-form input::placeholder { color: rgba(0,0,0,0.4); }

.newsletter-form button {
  background: var(--black);
  color: var(--cream);
  border: none;
  padding: 20px 32px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 800;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--cream);
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--black);
}

.newsletter-tag {
  display: block;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 120px 0 40px;
}

.footer-mark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 80px;
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
  padding-bottom: 80px;
}

.footer-mark .accent {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--cream-deep);
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-social a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--coffee);
  color: var(--cream);
  border-color: var(--coffee);
  opacity: 1;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--cream-deep);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.footer-col a:hover { color: var(--cream-deep); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   GENERIC PAGES (page.php, single.php)
   ═══════════════════════════════════════════ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 40px;
}

.page-content h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.page-content h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.page-content h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 32px 0 16px;
}

.page-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-content a {
  color: var(--coffee);
  text-decoration: underline;
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.page-content li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-content blockquote {
  border-left: 3px solid var(--coffee);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}

.page-content img {
  margin: 32px 0;
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */
.error-404 {
  padding: 200px 40px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-404 h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(120px, 20vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
}

.error-404 p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 48px;
  color: var(--ink);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text > *:nth-child(4) { animation-delay: 0.35s; }
.hero-text > *:nth-child(5) { animation-delay: 0.45s; }

.hero-image {
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.2s forwards;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 60px 32px; }
  .hero-image { aspect-ratio: 4/3; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(2n) { border-right: none; }
  .product-card:nth-child(1), .product-card:nth-child(2) { border-bottom: 1.5px solid var(--black); }
  .feature-bag-grid { grid-template-columns: 1fr; }
  .feature-bag-img { border-right: none; border-bottom: 1.5px solid var(--black); padding: 40px; }
  .feature-bag-content { padding: 80px 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1.5px solid var(--black); }
  .value:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1.5px solid rgba(255,255,255,0.2); }
  .step:last-child { border-bottom: none; }
  .origin-grid, .subscription-head, .newsletter-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .container { padding: 0 24px; }
  .nav-left { display: none; }
  .nav-right > a:not(.cart-link) { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-logo { width: 90px; margin-left: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: none !important; border-bottom: 1.5px solid var(--black); }
  .product-card:last-child { border-bottom: none; }
  .marquee-item { font-size: 22px; }
  .section-head { grid-template-columns: 1fr; }
  .filters { overflow-x: auto; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .origin-specs { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 16px; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .hero-text { padding: 60px 24px; }
}
