/* =========================================
   CSS Reset & Variables
========================================= */
:root {
  --primary-bg: #FAFAF7;
  /* Soft beige background */
  --secondary-bg: #FFFFFF;
  /* White for cards */
  --text-main: #3C3633;
  /* Dark brown/gray text */
  --text-light: #7E746F;
  /* Lighter text for paragraphs */
  --accent: #B07054;
  /* Warm muted clay/orange */
  --accent-hover: #985E44;
  --accent-light: #F1E5DF;
  /* Very pale version of accent */
  --border-color: #EBE6E0;

  --font-family: 'Outfit', sans-serif;
  --transition: none;
  --shadow-sm: 0 4px 12px rgba(60, 54, 51, 0.05);
  --shadow-md: 0 12px 24px rgba(60, 54, 51, 0.08);
  --shadow-glow: 0 8px 20px rgba(176, 112, 84, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Typography & Utilities
========================================= */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--accent);
}

.badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--secondary-bg);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-main);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-glow:hover {
  box-shadow: 0 12px 28px rgba(176, 112, 84, 0.4);
  transform: translateY(-2px);
}

.card-shadow {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--secondary-bg);
}

.mt-3 {
  margin-top: 1.5rem;
}

/* =========================================
   Animations
========================================= */
.fade-in-section {
  opacity: 1;
  transform: none;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   Header
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: var(--transition);
  border-radius: 3px;
}

/* =========================================
   Hero Section
========================================= */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

/* =========================================
   Features
========================================= */
.features {
  padding: 4rem 0;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-title {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.feature-desc {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* =========================================
   About Section
========================================= */
.about-section {
  padding: 8rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================================
   Benefits Section
========================================= */
.benefits {
  padding: 8rem 0;
  background-color: var(--secondary-bg);
}

.benefits-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  padding: 3rem 2rem;
  background-color: var(--primary-bg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* =========================================
   CTA Section
========================================= */
.cta {
  padding: 8rem 0;
}

.cta-container {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.cta-container h2 {
  max-width: 600px;
  margin: 0 auto 1rem;
}

.btn-large {
  font-size: 1.125rem;
  padding: 1.2rem 3rem;
  margin-top: 1rem;
}

/* =========================================
   SEO Article / FAQ Section
========================================= */
.seo-article {
  padding: 4rem 0 8rem;
}

.seo-article .container {
  max-width: 800px;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

/* =========================================
   Footer
========================================= */
.footer {
  background-color: var(--text-main);
  color: var(--primary-bg);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: #A39B97;
  max-width: 400px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #A39B97;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-bg);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #A39B97;
}

/* =========================================
   SEO Content Components (Tables, Pros/Cons, Reviews)
========================================= */
.seo-section {
  padding: 100px 0;
  background-color: var(--primary-bg);
}

.seo-section.alt-bg {
  background-color: var(--secondary-bg);
}

.seo-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

/* Comparison Table */
.comparison-container {
  overflow-x: auto;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  background: var(--primary-bg);
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  /* Reduced from 800px to allow more graceful scaling */
  text-align: center;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--secondary-bg);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.comparison-table .highlight-col {
  background-color: rgba(22, 101, 52, 0.05);
  /* very soft green tint for the David Bar col */
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.comparison-table th.highlight-col {
  background-color: var(--accent);
  color: var(--primary-bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Pros and Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.pros-box,
.cons-box {
  background: var(--secondary-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pros-box h3,
.cons-box h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-box h3 {
  color: #166534;
}

.cons-box h3 {
  color: #991b1b;
}

.pros-list,
.cons-list {
  list-style-type: none;
}

.pros-list li,
.cons-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.pros-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #166534;
  font-weight: bold;
}

.cons-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #991b1b;
  font-weight: bold;
}

/* Flavor Reviews */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Reduced from 300px to fix tiny screen overflow */
  gap: 2rem;
  margin-top: 3rem;
}

.flavor-card {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flavor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.flavor-card h4 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Responsive Media Queries
========================================= */
@media (max-width: 992px) {

  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    padding-top: 140px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-container {
    direction: ltr;
  }

  .about-container .about-image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
  }

  .nav-menu.active {
    top: 70px;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}