/*
Theme Name: Coffee Superstar
Description: Latin American Origins, Low Acid Coffee & Expert Machine Reviews
Version: 1.0
Text Domain: coffeesuperstar
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --espresso:    #0F0600;
  --espresso-2:  #1A0A00;
  --espresso-3:  #2A1200;
  --gold:        #C8860A;
  --gold-light:  #E8A020;
  --gold-pale:   #F5DFA0;
  --gold-wash:   #FBF3DC;
  --cream:       #FAF3E0;
  --forest:      #2D5016;
  --forest-2:    #3B6B1F;
  --rust:        #A63A2A;
  --warm-gray:   #888070;
  --dark-gray:   #3A3028;
  --border:      rgba(200,134,10,0.18);
  --border-2:    rgba(200,134,10,0.35);
  --text-body:   #4A3F30;
  --text-muted:  #8A7A65;
  --shadow-gold: 0 8px 40px rgba(200,134,10,0.18);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.4);
  --radius:      6px;
  --radius-lg:   12px;
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'DM Sans', sans-serif;
  --ff-mono:     'DM Mono', monospace;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--espresso);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--ff-body); }
input, select { font-family: var(--ff-body); }

/* ═══════════════════════════════════════════
   GRAIN TEXTURE OVERLAY
═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--espresso-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.cream { color: var(--cream); }
.section-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gold); }
.divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0 30px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px;
  border: 1px solid var(--border-2); border-radius: 3px;
  color: var(--gold); background: rgba(200,134,10,0.08);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--espresso);
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; padding: 14px 28px;
  border-radius: var(--radius); transition: all 0.25s;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--cream);
  font-family: var(--ff-body); font-weight: 500; font-size: 14px;
  letter-spacing: 0.04em; padding: 13px 28px;
  border-radius: var(--radius); border: 1px solid rgba(250,243,224,0.25);
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.rating-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.tag-pill {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 9px;
  background: rgba(200,134,10,0.12); color: var(--gold);
  border-radius: 3px; border: 1px solid rgba(200,134,10,0.2);
}

/* ═══════════════════════════════════════════
   ANNOUNCEMENT BAR
═══════════════════════════════════════════ */
.announcement-bar {
  background: var(--gold);
  color: var(--espresso);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}
.announcement-bar span { opacity: 0.7; margin: 0 14px; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav-wrapper {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 5, 0, 0.96);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav {
  display: flex; align-items: center;
  padding: 0 24px; height: 72px;
  max-width: 1240px; margin: 0 auto;
  gap: 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; margin-right: 40px;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 900;
  color: var(--cream); line-height: 1.1;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: rgba(250,243,224,0.72);
  padding: 8px 14px; border-radius: var(--radius);
  transition: all 0.2s; letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
  background: rgba(200,134,10,0.1);
}
.nav-links .has-badge::after {
  content: 'NEW';
  font-family: var(--ff-mono); font-size: 9px;
  background: var(--rust); color: white;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 5px; vertical-align: middle;
}
.nav-right {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
}
.nav-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--warm-gray);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.nav-search-btn:hover { color: var(--gold); border-color: var(--border-2); }
.nav-cta {
  background: var(--gold); color: var(--espresso);
  font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: var(--radius);
  transition: all 0.2s; letter-spacing: 0.03em;
  border: 1px solid var(--gold);
}
.nav-cta:hover { background: var(--gold-light); }

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  width: 100%; max-width: 720px;
  background: var(--espresso-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { color: var(--gold); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; background: transparent;
  border: none; outline: none;
  font-family: var(--ff-display); font-size: 22px;
  color: var(--cream); placeholder-color: var(--warm-gray);
}
.search-input-wrap input::placeholder { color: var(--warm-gray); }
.search-results {
  padding: 16px 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s; cursor: pointer;
}
.search-result-item:hover {
  background: rgba(200,134,10,0.08);
  border-color: var(--border);
}
.search-result-tag { font-family: var(--ff-mono); font-size: 10px; color: var(--gold); flex-shrink: 0; min-width: 80px; }
.search-result-title { font-size: 14px; color: var(--cream); }
.search-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 20px;
  transition: all 0.2s; cursor: pointer;
}
.search-close:hover { background: var(--rust); }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(200,134,10,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 30% 20%, rgba(45,80,22,0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--espresso) 0%, var(--espresso-2) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 24px 0 max(24px, calc((100vw - 1240px)/2 + 24px));
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow-line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-eyebrow span {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic; color: var(--gold);
  display: block;
}
.hero-body {
  font-size: 18px; line-height: 1.7;
  color: rgba(250,243,224,0.68);
  max-width: 480px; margin-bottom: 36px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats {
  display: flex; gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--ff-display);
  font-size: 32px; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 12px; color: var(--warm-gray);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* HERO RIGHT — FEATURED ARTICLE STACK */
.hero-right {
  position: relative; z-index: 2;
  padding: 0 max(24px, calc((100vw - 1240px)/2 + 24px)) 0 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-feature-card {
  background: rgba(30,15,5,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s; cursor: pointer;
}
.hero-feature-card:hover {
  border-color: var(--border-2);
  transform: translateX(-4px);
  box-shadow: var(--shadow-gold);
}
.hero-feature-card.featured {
  border-color: rgba(200,134,10,0.4);
  background: rgba(200,134,10,0.06);
}
.hero-card-inner {
  display: flex; gap: 18px; padding: 20px;
  align-items: flex-start;
}
.hero-card-img {
  width: 80px; height: 80px; border-radius: var(--radius);
  flex-shrink: 0; overflow: hidden; background: var(--espresso-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.hero-card-body { flex: 1; min-width: 0; }
.hero-card-cat {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.hero-card-title {
  font-family: var(--ff-display); font-size: 17px;
  font-weight: 700; line-height: 1.25; color: var(--cream);
  margin-bottom: 8px;
}
.hero-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--warm-gray);
}
.hero-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════
   TICKER / TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  background: var(--espresso-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden; position: relative;
}
.trust-bar-inner {
  display: flex; align-items: center; gap: 60px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--warm-gray);
  letter-spacing: 0.03em; flex-shrink: 0;
}
.trust-item strong { color: var(--cream); font-weight: 600; }
.trust-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════════ */
.section { padding: 90px 0; }
.section-alt { background: rgba(26,10,0,0.5); }
.section-dark { background: var(--espresso-2); }
.section-header { margin-bottom: 52px; }
.section-header-row {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.view-all {
  font-size: 13px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.view-all:hover { gap: 10px; }
.view-all::after { content: '→'; }

/* ═══════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════ */
.articles-grid {
  display: grid; gap: 24px;
}
.articles-grid-3 { grid-template-columns: repeat(3, 1fr); }
.articles-grid-4 { grid-template-columns: repeat(4, 1fr); }
.articles-grid-2-1 { grid-template-columns: 2fr 1fr; }

.article-card {
  background: var(--espresso-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.article-card-thumb {
  width: 100%; padding-top: 58%;
  position: relative; overflow: hidden;
  background: var(--espresso-3);
  flex-shrink: 0;
}
.article-card-thumb-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.article-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,5,0,0.8) 100%);
}
.article-card-thumb-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  background: var(--gold); color: var(--espresso);
  font-weight: 600;
}
.article-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--ff-display); font-size: 20px;
  font-weight: 700; line-height: 1.3; color: var(--cream);
  margin-bottom: 10px; flex: 1;
}
.article-card-excerpt {
  font-size: 13.5px; line-height: 1.65;
  color: var(--warm-gray); margin-bottom: 18px;
}
.article-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-card-author {
  display: flex; align-items: center; gap: 8px;
}
.article-card-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--espresso);
  flex-shrink: 0;
}
.article-card-author-name {
  font-size: 12px; color: var(--warm-gray);
  font-weight: 500;
}
.article-card-readtime {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--warm-gray);
}

/* FEATURED / LARGE CARD */
.article-card-large .article-card-thumb { padding-top: 52%; }
.article-card-large .article-card-title { font-size: 26px; }

/* HORIZONTAL CARD */
.article-card-horiz {
  flex-direction: row;
}
.article-card-horiz .article-card-thumb {
  width: 180px; padding-top: 0; height: 180px;
  flex-shrink: 0;
}
.article-card-horiz .article-card-body {
  display: flex; flex-direction: column; justify-content: center;
}

/* ═══════════════════════════════════════════
   ROTATING FEATURED STRIP
═══════════════════════════════════════════ */
.rotating-strip { position: relative; }
.rotating-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.rotating-tab {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 20px; color: var(--warm-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s; cursor: pointer;
}
.rotating-tab.active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.rotating-tab:hover { color: var(--cream); }
.rotating-panel { display: none; }
.rotating-panel.active { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.rotating-main {
  background: var(--espresso-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.3s;
}
.rotating-main:hover { border-color: var(--border-2); box-shadow: var(--shadow-gold); }
.rotating-main-img {
  width: 100%; height: 280px; background: var(--espresso-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative;
  overflow: hidden;
}
.rotating-main-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,5,0,0.9) 100%);
}
.rotating-main-body { padding: 28px; }
.rotating-main-cat {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.rotating-main-title {
  font-family: var(--ff-display); font-size: 28px;
  font-weight: 700; line-height: 1.2; color: var(--cream);
  margin-bottom: 12px;
}
.rotating-main-excerpt {
  font-size: 15px; line-height: 1.7;
  color: rgba(250,243,224,0.6); margin-bottom: 20px;
}
.rotating-sidebar {
  display: flex; flex-direction: column; gap: 14px;
}
.rotating-side-item {
  background: var(--espresso-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  cursor: pointer; transition: all 0.2s;
}
.rotating-side-item:hover { border-color: var(--border-2); }
.rotating-side-cat {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.rotating-side-title {
  font-family: var(--ff-display); font-size: 16px;
  font-weight: 700; line-height: 1.3; color: var(--cream); margin-bottom: 6px;
}
.rotating-side-meta { font-size: 11px; color: var(--warm-gray); }

/* ═══════════════════════════════════════════
   ACIDITY CALCULATOR TOOL
═══════════════════════════════════════════ */
.tool-section {
  background: linear-gradient(135deg, var(--espresso-3) 0%, var(--espresso-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.tool-section::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,134,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tool-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.tool-intro { padding-top: 8px; }
.tool-intro .section-label { color: var(--gold); }
.tool-features { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.tool-feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.tool-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(200,134,10,0.12); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.tool-feature-title { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 3px; }
.tool-feature-desc { font-size: 13px; color: var(--warm-gray); line-height: 1.5; }

/* THE ACTUAL TOOL */
.tool-card {
  background: var(--espresso);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.tool-header {
  background: var(--gold);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 12px;
}
.tool-header-title {
  font-family: var(--ff-display); font-size: 18px;
  font-weight: 700; color: var(--espresso);
}
.tool-header-sub { font-size: 12px; color: rgba(15,6,0,0.65); margin-top: 2px; }
.tool-body { padding: 28px; }
.tool-field { margin-bottom: 22px; }
.tool-label {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: block;
}
.tool-select, .tool-input {
  width: 100%; background: var(--espresso-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--cream); font-size: 14px;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.tool-select:focus, .tool-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,134,10,0.1);
}
.tool-slider-wrap { position: relative; }
.tool-slider {
  width: 100%; -webkit-appearance: none;
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--border) 0%);
  outline: none; margin-bottom: 8px;
}
.tool-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  border: 3px solid var(--espresso);
  box-shadow: 0 0 0 2px var(--gold);
}
.tool-slider-labels {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--warm-gray); letter-spacing: 0.08em;
}
.tool-checkboxes {
  display: flex; flex-direction: column; gap: 10px;
}
.tool-checkbox {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; color: rgba(250,243,224,0.75);
}
.tool-checkbox input { display: none; }
.tool-checkbox-box {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border-2);
  background: var(--espresso-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.tool-checkbox input:checked + .tool-checkbox-box {
  background: var(--gold); border-color: var(--gold);
}
.tool-checkbox-box svg { width: 12px; height: 12px; stroke: var(--espresso); display: none; }
.tool-checkbox input:checked + .tool-checkbox-box svg { display: block; }
.tool-run-btn {
  width: 100%; padding: 16px;
  background: var(--gold); color: var(--espresso);
  font-family: var(--ff-body); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; border-radius: var(--radius);
  transition: all 0.25s; margin-top: 8px;
  border: none; cursor: pointer;
}
.tool-run-btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,134,10,0.3); }
.tool-results {
  margin-top: 24px; padding: 24px;
  background: rgba(200,134,10,0.06);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: none;
}
.tool-results.visible { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.tool-result-score {
  text-align: center; margin-bottom: 20px;
}
.tool-result-num {
  font-family: var(--ff-display); font-size: 64px;
  font-weight: 900; line-height: 1; color: var(--gold);
  display: block;
}
.tool-result-label { font-size: 13px; color: var(--warm-gray); margin-top: 4px; }
.tool-result-bar { margin-bottom: 20px; }
.tool-result-bar-track {
  height: 8px; border-radius: 8px;
  background: var(--espresso-2); border: 1px solid var(--border);
  overflow: hidden; margin-top: 6px;
}
.tool-result-bar-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 1s ease;
}
.tool-result-bar-label {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--warm-gray); letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.tool-recs { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tool-rec {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(250,243,224,0.04);
  border: 1px solid var(--border);
  font-size: 13px; color: rgba(250,243,224,0.75);
}
.tool-rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 5px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   ORIGIN MAP SECTION
═══════════════════════════════════════════ */
.origin-section { position: relative; }
.origin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.origin-card {
  background: var(--espresso-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: all 0.3s; text-align: center;
  padding: 32px 20px 24px;
  position: relative;
}
.origin-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,134,10,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.origin-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-gold); }
.origin-card:hover::before { opacity: 1; }
.origin-card-flag {
  font-size: 48px; margin-bottom: 14px; display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.origin-card-name {
  font-family: var(--ff-display); font-size: 20px;
  font-weight: 700; color: var(--cream); margin-bottom: 6px;
}
.origin-card-region {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.origin-card-traits { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.origin-trait {
  font-size: 11px; padding: 3px 8px; border-radius: 3px;
  background: rgba(200,134,10,0.1); color: rgba(250,243,224,0.65);
  border: 1px solid var(--border);
}
.origin-acidity-bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--warm-gray); letter-spacing: 0.08em;
  justify-content: center;
}
.origin-bar {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--espresso-3); max-width: 80px;
  overflow: hidden;
}
.origin-bar-fill {
  height: 100%; border-radius: 4px;
}
.origin-bar-fill.low { background: var(--forest-2); }
.origin-bar-fill.medium { background: var(--gold); }
.origin-bar-fill.high { background: var(--rust); }

/* ═══════════════════════════════════════════
   MACHINE REVIEWS TABLE
═══════════════════════════════════════════ */
.comparison-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.comparison-table {
  width: 100%; border-collapse: collapse;
  min-width: 900px;
}
.comparison-table thead tr {
  background: var(--espresso-3);
  border-bottom: 1px solid var(--border-2);
}
.comparison-table th {
  padding: 16px 20px; text-align: left;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.comparison-table th:first-child { width: 220px; }
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s; cursor: pointer;
}
.comparison-table tbody tr:hover { background: rgba(200,134,10,0.04); }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table td {
  padding: 18px 20px; font-size: 14px;
  color: rgba(250,243,224,0.8);
  vertical-align: middle;
}
.comparison-table .machine-cell {
  display: flex; align-items: center; gap: 14px;
}
.machine-thumb {
  width: 54px; height: 54px; border-radius: var(--radius);
  background: var(--espresso-3); display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; border: 1px solid var(--border);
  flex-shrink: 0;
}
.machine-name { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 3px; }
.machine-type { font-family: var(--ff-mono); font-size: 10px; color: var(--warm-gray); letter-spacing: 0.1em; text-transform: uppercase; }
.score-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.score-num {
  font-family: var(--ff-display); font-size: 22px;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.score-bar-wrap { width: 60px; height: 3px; background: var(--espresso-3); border-radius: 3px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.price-cell { font-weight: 700; color: var(--cream); font-size: 16px; }
.verdict-cell {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  display: inline-block;
}
.verdict-best { background: rgba(45,80,22,0.3); color: #7EBA4D; border: 1px solid rgba(45,80,22,0.5); }
.verdict-great { background: rgba(200,134,10,0.15); color: var(--gold); border: 1px solid var(--border-2); }
.verdict-good { background: rgba(250,243,224,0.05); color: var(--warm-gray); border: 1px solid var(--border); }
.acid-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--warm-gray);
}
.acid-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.acid-dot.low { background: var(--forest-2); }
.acid-dot.medium { background: var(--gold); }
.acid-dot.high { background: var(--rust); }

/* ═══════════════════════════════════════════
   GUIDES / EDUCATIONAL STRIP
═══════════════════════════════════════════ */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  background: var(--espresso-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.guide-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.guide-card:hover::after { transform: scaleX(1); }
.guide-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(200,134,10,0.1); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.guide-title {
  font-family: var(--ff-display); font-size: 20px;
  font-weight: 700; color: var(--cream);
  line-height: 1.3; margin-bottom: 10px;
}
.guide-desc {
  font-size: 13.5px; line-height: 1.65;
  color: var(--warm-gray); margin-bottom: 20px;
}
.guide-lessons {
  display: flex; flex-direction: column; gap: 6px;
}
.guide-lesson {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(250,243,224,0.55);
}
.guide-lesson-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS / TRUST PROOF
═══════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--espresso-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 18px; right: 24px;
  font-family: var(--ff-display); font-size: 80px;
  color: rgba(200,134,10,0.12); line-height: 1;
  font-weight: 900;
}
.testimonial-stars { margin-bottom: 14px; color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 15px; line-height: 1.75;
  color: rgba(250,243,224,0.75);
  font-style: italic; margin-bottom: 20px;
  font-family: var(--ff-display);
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--espresso); font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 2px; }
.testimonial-meta { font-size: 11px; color: var(--warm-gray); }

/* ═══════════════════════════════════════════
   EMAIL SIGNUP SECTION
═══════════════════════════════════════════ */
.email-section {
  background: linear-gradient(135deg, rgba(45,80,22,0.25) 0%, rgba(200,134,10,0.12) 100%);
  border-top: 1px solid rgba(45,80,22,0.3);
  border-bottom: 1px solid rgba(200,134,10,0.2);
  position: relative; overflow: hidden;
  text-align: center; padding: 80px 0;
}
.email-section::before {
  content: '';
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(200,134,10,0.1) 0%, transparent 70%);
}
.email-inner { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; padding: 0 24px; }
.email-title {
  font-family: var(--ff-display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; color: var(--cream); line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.email-title em { font-style: italic; color: var(--gold); }
.email-body { font-size: 16px; color: rgba(250,243,224,0.65); margin-bottom: 36px; line-height: 1.7; }
.email-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.email-input {
  flex: 1; background: var(--espresso-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 18px; color: var(--cream);
  font-size: 15px; outline: none;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: var(--gold); }
.email-input::placeholder { color: var(--warm-gray); }
.email-submit {
  background: var(--gold); color: var(--espresso);
  font-weight: 700; font-size: 14px; padding: 14px 26px;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
  font-family: var(--ff-body);
}
.email-submit:hover { background: var(--gold-light); }
.email-note { font-size: 12px; color: var(--warm-gray); margin-top: 14px; }

/* ═══════════════════════════════════════════
   WHAT WE COVER - CATEGORY STRIP
═══════════════════════════════════════════ */
.categories-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.categories-strip::-webkit-scrollbar { height: 3px; }
.category-chip {
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  background: var(--espresso-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  min-width: 130px; cursor: pointer;
  transition: all 0.25s; flex-shrink: 0;
}
.category-chip:hover, .category-chip.active {
  border-color: var(--gold); background: rgba(200,134,10,0.08);
}
.category-chip-icon { font-size: 28px; }
.category-chip-label {
  font-size: 12px; font-weight: 600; color: var(--cream);
  text-align: center; white-space: nowrap;
}
.category-chip-count {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--warm-gray); letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   PH SCALE INFO GRAPHIC
═══════════════════════════════════════════ */
.ph-scale-wrap { padding: 32px; background: var(--espresso-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ph-scale-title {
  font-family: var(--ff-display); font-size: 20px;
  font-weight: 700; color: var(--cream); margin-bottom: 8px;
}
.ph-scale-sub { font-size: 13px; color: var(--warm-gray); margin-bottom: 28px; }
.ph-scale-bar {
  height: 28px; border-radius: 6px; margin-bottom: 8px;
  background: linear-gradient(90deg,
    #E63535 0%,
    #E68C35 20%,
    #E6C835 40%,
    #B5E635 55%,
    #52C41A 70%,
    #1A9BC4 85%,
    #1A4DC4 100%
  );
  position: relative;
}
.ph-marker {
  position: absolute; bottom: -22px;
  transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 9px;
  color: var(--warm-gray); letter-spacing: 0.06em;
  white-space: nowrap;
}
.ph-scale-labels {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--warm-gray); letter-spacing: 0.08em;
  margin-top: 28px; margin-bottom: 20px;
}
.ph-coffees { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ph-coffee-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.ph-coffee-name { color: var(--cream); min-width: 180px; font-weight: 500; }
.ph-coffee-bar-wrap { flex: 1; height: 6px; background: var(--espresso-3); border-radius: 6px; overflow: hidden; }
.ph-coffee-bar { height: 100%; border-radius: 6px; }
.ph-coffee-val {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--gold); min-width: 32px; text-align: right;
}

/* ═══════════════════════════════════════════
   METHODOLOGY TRUST BLOCK
═══════════════════════════════════════════ */
.methodology-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-card {
  text-align: center; padding: 32px 20px;
  background: var(--espresso-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.method-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(200,134,10,0.1); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px;
}
.method-num {
  font-family: var(--ff-display); font-size: 38px;
  font-weight: 900; color: var(--gold); line-height: 1;
  margin-bottom: 6px;
}
.method-label { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.method-desc { font-size: 13px; color: var(--warm-gray); line-height: 1.6; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--espresso);
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand-desc {
  font-size: 14px; line-height: 1.75;
  color: var(--warm-gray); margin: 18px 0 24px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--warm-gray); font-size: 14px; font-weight: 700;
  transition: all 0.2s; cursor: pointer;
}
.footer-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--warm-gray);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--warm-gray); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--warm-gray); transition: color 0.2s; }
.footer-legal a:hover { color: var(--cream); }
.footer-affiliate-notice {
  background: rgba(200,134,10,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 28px;
  font-size: 12px; color: var(--warm-gray);
  line-height: 1.6;
}
.footer-affiliate-notice strong { color: var(--cream); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,134,10,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(200,134,10,0); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.1em; color: #7EBA4D;
  animation: pulse-gold 2s infinite;
}
.live-badge::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: #7EBA4D;
  animation: pulse-gold 2s infinite;
}

/* ═══════════════════════════════════════════
   RESPONSIVE (basic)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 0; }
  .hero-right { display: none; }
  .articles-grid-3 { grid-template-columns: 1fr 1fr; }
  .articles-grid-4 { grid-template-columns: 1fr 1fr; }
  .origin-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 38px; }
  .articles-grid-3, .articles-grid-4 { grid-template-columns: 1fr; }
  .origin-grid { grid-template-columns: 1fr 1fr; }
  .rotating-panel.active { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .nav-links { display: none; }
}
