/* Dutch Bros Menu — Design Tokens */
:root {
  --clr-bg: #ffffff;
  --clr-bg-alt: #f8f9fa;
  --clr-bg-warm: #fff8f0;
  --clr-text: #1a1a2e;
  --clr-text-secondary: #4a4a68;
  --clr-text-muted: #6c757d;
  --clr-primary: #00703c;
  --clr-primary-dark: #005a30;
  --clr-primary-light: #e6f4ed;
  --clr-accent: #e8491d;
  --clr-accent-light: #fdf0ec;
  --clr-border: #e2e8f0;
  --clr-border-dark: #cbd5e1;
  --clr-card-shadow: rgba(0,0,0,0.06);
  --clr-nav-bg: #00703c;
  --clr-nav-text: #ffffff;
  --clr-footer-bg: #1a1a2e;
  --clr-footer-text: #e2e8f0;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.8rem; margin-top: 2.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 0.6rem; margin-top: 1.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }
.text-muted { color: var(--clr-text-muted); }
.text-small { font-size: 0.9rem; }

/* Layout */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-wide { max-width: 1100px; }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--clr-bg-alt); }
.section-warm { background: var(--clr-bg-warm); }

/* Nav */
.nav {
  background: var(--clr-nav-bg);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-nav-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--clr-nav-text);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--clr-nav-text); margin: 5px 0;
  transition: transform 0.2s;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.6rem 0;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
}
.hero h1 { color: #fff; margin-bottom: 0.8rem; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 640px; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.category-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover {
  box-shadow: 0 4px 16px var(--clr-card-shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.category-card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.category-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}
.category-card p {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  margin: 0;
}

/* Price Overview Table */
.price-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table th,
.price-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.price-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-text-muted);
  background: var(--clr-bg-alt);
}
.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
}
.price-table tr:hover td {
  background: var(--clr-bg-alt);
}
.price-table .cat-header td {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  border-bottom: 2px solid var(--clr-primary);
  padding: 0.8rem 1rem;
}
.price-table .cat-header td { text-align: left; }

/* Drink Tables (detail pages) */
.drink-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 2rem;
}
.drink-table th,
.drink-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.drink-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-text-muted);
  background: var(--clr-bg-alt);
  position: sticky;
  top: 48px;
}
.drink-table td:last-child,
.drink-table th:last-child { text-align: right; }
.drink-table tr:hover td { background: var(--clr-bg-alt); }
.drink-table .drink-name { font-weight: 600; color: var(--clr-text); }

/* Cards / Info Boxes */
.info-box {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.info-box h3 { margin-top: 0; }
.info-box-highlight {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary);
}
.info-box-accent {
  background: var(--clr-accent-light);
  border-color: var(--clr-accent);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 0;
}
.faq-item h3 {
  margin: 0;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item h3::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--clr-primary);
  transition: transform 0.2s;
}
.faq-item.open h3::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
}
.faq-item.open .faq-answer { display: block; }

/* Lists */
.content-list {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}
.content-list li {
  list-style: disc;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  text-decoration: none;
  color: #fff;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}
.comparison-table th,
.comparison-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--clr-border);
  text-align: left;
}
.comparison-table th {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.comparison-table tr:nth-child(even) td {
  background: var(--clr-bg-alt);
}

/* Footer */
.footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.footer p,
.footer a {
  font-size: 0.85rem;
  color: var(--clr-footer-text);
  opacity: 0.8;
  line-height: 1.8;
}
.footer a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* TOC Sidebar (on detail pages) */
.toc {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--clr-text);
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 0.3rem; }
.toc a {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
}
.toc a:hover { color: var(--clr-primary); }

/* ===== MENU CARD GRID (Subway-style) ===== */
.menu-section { margin-bottom: 3rem; }
.menu-section-header {
  background: var(--clr-primary);
  color: #fff;
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 6px 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.menu-section-desc {
  padding: 1rem 0;
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  border-bottom: 1px solid var(--clr-border);
}
.menu-section-desc strong { color: var(--clr-text); }
.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.menu-card {
  border: 2px solid var(--clr-primary);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--clr-bg);
}
.menu-card:hover {
  box-shadow: 0 4px 16px rgba(0,112,60,0.12);
  transform: translateY(-2px);
}
.menu-card-img {
  width: 100%;
  height: 140px;
  background: var(--clr-bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 2.5rem;
  color: var(--clr-primary);
  opacity: 0.5;
}
.menu-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--clr-text);
}
.menu-card-sizes {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.size-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--clr-primary);
  border-radius: 4px;
  background: transparent;
  color: var(--clr-primary);
  cursor: default;
  transition: all 0.15s;
}
.size-btn.active {
  background: var(--clr-primary);
  color: #fff;
}
.menu-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-primary);
}
.menu-card-cals {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ===== TOOLS PAGE ===== */
.tool-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--clr-border);
  padding-bottom: 1rem;
}
.tool-nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.tool-nav-link:hover { border-color: var(--clr-primary); color: var(--clr-primary); text-decoration: none; }
.tool-nav-link.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.tool-panel { display: none; }
.tool-panel:target, .tool-panel:first-of-type { display: block; }

/* Quiz */
.quiz-container { margin-top: 1.5rem; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { margin-top: 0; font-size: 1.2rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.quiz-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--clr-border);
  border-radius: 8px;
  background: var(--clr-bg);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.quiz-btn:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.quiz-btn.selected { border-color: var(--clr-primary); background: var(--clr-primary); color: #fff; }
.quiz-results { display: flex; flex-direction: column; gap: 1rem; }
.quiz-result-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1.2rem;
}
.quiz-result-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.quiz-result-meta { font-size: 0.85rem; color: var(--clr-text-muted); margin: 0.3rem 0; }
.quiz-result-tip { font-size: 0.9rem; color: var(--clr-text-secondary); font-style: italic; }

/* Flavor Filter */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  background: var(--clr-bg);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--clr-primary); }
.filter-btn.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* Fan Tips */
.fan-search-wrap { margin-top: 1rem; }
.fan-search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--clr-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.fan-search:focus { border-color: var(--clr-primary); }
.fan-tips-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; max-height: 500px; overflow-y: auto; }
.fan-tip-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}
.fan-tip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.fan-tip-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; }
.fan-tip-price { font-size: 0.82rem; color: var(--clr-primary); font-weight: 600; }
.fan-tip-text { font-size: 0.9rem; color: var(--clr-text-secondary); font-style: italic; margin-bottom: 0.5rem; }
.fan-tip-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.fan-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  text-transform: capitalize;
}

/* Order Builder */
.order-builder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.order-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  color: var(--clr-text-secondary);
}
.order-select, .order-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--clr-border);
  border-radius: 6px;
  background: var(--clr-bg);
  outline: none;
  transition: border-color 0.2s;
}
.order-select:focus, .order-input:focus { border-color: var(--clr-primary); }

/* Order Card (shareable PNG) */
.order-card-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1.5rem;
}
.order-card {
  width: 380px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 2px solid var(--clr-border);
  background: var(--clr-bg);
}
.order-card-header {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.order-card-logo { font-size: 1.5rem; }
.order-card-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.order-card-body { padding: 1.5rem; }
.order-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
  margin-bottom: 0.3rem;
}
.order-card-drink {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--clr-text);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.order-card-details {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  margin-bottom: 0.5rem;
}
.order-card-extras {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-style: italic;
  border-top: 1px dashed var(--clr-border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.order-card-footer {
  border-top: 2px solid var(--clr-border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-primary);
}
.order-card-tag {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  text-align: right;
}

/* Order Actions */
.order-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--clr-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: var(--clr-bg);
  color: var(--clr-primary);
}
.btn-secondary:hover {
  background: var(--clr-primary-light);
  text-decoration: none;
  color: var(--clr-primary);
}
.copy-success {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-success.show { opacity: 1; }

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Responsive — Tablet */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 0.8rem; }
  .menu-card-grid { grid-template-columns: repeat(2, 1fr); }
  .order-card { width: 100%; }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .menu-card-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .menu-card { padding: 0.8rem; }
  .menu-card-img { height: 100px; font-size: 2rem; }
  .menu-card-name { font-size: 0.88rem; }
  .size-btn { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--clr-nav-bg);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 2rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .drink-table { font-size: 0.82rem; }
  .drink-table th,
  .drink-table td { padding: 0.5rem 0.5rem; }
}
