/* ============================================
   EspressoSnob.com -- Coffee & Slate Theme
   #262625 dark charcoal · #55473a warm brown · #525657 steel gray
   #959d99 sage · #434c4b dark teal-gray
   Mobile-First · 2026
   ============================================ */

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

:root {
  --charcoal:         #262625;
  --brown:            #55473a;
  --steel:            #525657;
  --sage:             #959d99;
  --teal-dark:        #434c4b;

  /* Functional mapping */
  --bg:               #f5f4f0;
  --bg-warm:          #eceae4;
  --bg-card:          #ffffff;
  --bg-section:       #eceae4;

  --text:             #262625;
  --text-secondary:   #55473a;
  --text-muted:       #525657;
  --text-light:       #f5f4f0;

  --accent:           #55473a;
  --accent-hover:     #433729;
  --accent-light:     rgba(85, 71, 58, 0.08);

  --highlight:        #959d99;
  --highlight-light:  rgba(149, 157, 153, 0.15);

  --border:           #d4d1ca;
  --border-dark:      #b8b4ad;
  --shadow-sm:        0 1px 3px rgba(38,38,37,.06);
  --shadow:           0 2px 8px rgba(38,38,37,.08);
  --shadow-md:        0 4px 16px rgba(38,38,37,.1);
  --shadow-lg:        0 8px 32px rgba(38,38,37,.12);

  --green:            #16a34a;
  --red:              #dc2626;

  --max-width:        1120px;
  --radius:           10px;
  --radius-sm:        6px;
  --radius-lg:        16px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 14px; color: var(--text-secondary); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a {
  color: var(--brown);
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}

a:hover { color: var(--accent-hover); }

strong { color: var(--text); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER / NAV
   =========================== */
.site-header {
  background: var(--bg);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(38,38,37,.06);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: Georgia, serif;
}

.site-logo span { color: var(--brown); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s;
}

.main-nav a:hover {
  color: var(--brown);
  background: var(--accent-light);
}

.main-nav a.active {
  color: var(--brown);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .main-nav a { width: 100%; padding: 12px 20px; border-radius: 0; }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(135deg, rgba(38,38,37,.82) 0%, rgba(67,76,75,.78) 100%),
              url('/images/hero-espresso.jpg') center/cover no-repeat;
  border-bottom: 3px solid var(--brown);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38,38,37,.18);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-light);
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--sage);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .3s;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(85,71,58,.3);
  color: #fff;
}

/* ===========================
   TRUST BAR
   =========================== */
.trust-bar {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brown);
  padding: 24px 20px;
  margin: 32px 0;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.trust-item { text-align: center; }

.trust-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

.trust-label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===========================
   QUICK PICKS
   =========================== */
.quick-picks { margin: 40px 0; }

.quick-picks-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.quick-pick-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brown);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}

.quick-pick-item:hover {
  border-left-width: 6px;
  box-shadow: var(--shadow-md);
}

.quick-pick-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--brown);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.quick-pick-item h4 { color: var(--text); margin-bottom: 8px; }
.quick-pick-info p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 14px; }

.quick-pick-cta {
  display: inline-block;
  color: var(--brown);
  font-weight: 600;
  font-size: .95rem;
}
.quick-pick-cta:hover { color: var(--accent-hover); }

/* ===========================
   PRODUCT CARD
   =========================== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}

.product-card.top-pick {
  border: 2px solid var(--brown);
  box-shadow: 0 0 20px rgba(85,71,58,.08);
}

.product-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--brown);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.product-card-inner { margin-top: 12px; }
.product-card h3 { color: var(--text); margin-bottom: 10px; }

.rating { color: var(--text-secondary); margin-bottom: 12px; font-size: .95rem; }
.rating-text { color: var(--text-muted); font-size: .85rem; }

.key-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-dark);
}

.key-specs li { list-style: none; font-size: .9rem; color: var(--text-secondary); }
.key-specs strong { color: var(--text); display: block; margin-bottom: 2px; }

.price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brown);
  margin: 16px 0;
  font-family: Georgia, serif;
}

.price-note { font-size: .85rem; color: var(--text-muted); font-weight: normal; }

.product-image { text-align: center; margin: 24px 0; }

.product-image img {
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--bg);
}

/* ===========================
   BUTTONS
   =========================== */
.cta-btns { display: flex; flex-direction: column; gap: 10px; }

.cta-btn {
  display: block;
  background: var(--teal-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  border: 2px solid var(--teal-dark);
}

.cta-btn:hover {
  background: #37403f;
  color: #fff;
  border-color: #37403f;
}

.cta-btn.cta-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}

.cta-btn.cta-outline:hover {
  background: rgba(67,76,75,.06);
  border-color: #37403f;
}

/* ===========================
   ARTICLE SECTIONS
   =========================== */
.article-section {
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-section h2 {
  border-bottom: 2px solid var(--teal-dark);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .9rem;
}

.comparison-table thead {
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.comparison-table th {
  padding: 12px;
  text-align: left;
  color: var(--brown);
  font-weight: 700;
  border: 1px solid var(--border);
}

.comparison-table td {
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.comparison-table tr:hover { background: rgba(85,71,58,.03); }

/* ===========================
   FAQ
   =========================== */
.faq-item {
  margin-bottom: 20px;
  border-left: 3px solid var(--teal-dark);
  padding-left: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.faq-item h4 { color: var(--text); cursor: pointer; user-select: none; }
.faq-item p { margin: 12px 0 0 0; color: var(--text-secondary); }

/* ===========================
   DISCLOSURE
   =========================== */
.disclosure-inline {
  font-size: .75rem;
  color: var(--text-muted);
  opacity: 0.6;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}
.disclosure-inline a { color: inherit; text-decoration: underline; }

.affiliate-disclosure {
  font-size: .78rem;
  opacity: .55;
  color: var(--text-muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--charcoal);
  border-top: 3px solid var(--teal-dark);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 { color: var(--sage); margin-bottom: 14px; }

.footer-section a {
  display: block;
  color: var(--sage);
  opacity: .7;
  font-size: .9rem;
  margin-bottom: 10px;
  transition: opacity .2s;
}

.footer-section a:hover { opacity: 1; color: var(--sage); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(149,157,153,.15);
  text-align: center;
  color: var(--sage);
  opacity: .5;
  font-size: .85rem;
}

.footer-bottom a { color: var(--sage); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 2rem; }
  .quick-picks-grid { grid-template-columns: 1fr; }
  .product-card-inner { grid-template-columns: 1fr !important; }
  .product-image { order: -1; }
  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: 8px; }
  .cta-btns { flex-direction: row; }
  .cta-btn { flex: 1; }
}

.badge-accent {
  background: var(--accent-light);
  color: var(--brown);
}

.badge-steel {
  background: rgba(82,86,87,.08);
  color: var(--steel);
}
