/* CSS Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2d5a27;
  --primary-dark: #1e3d1a;
  --primary-light: #4a8a42;
  --secondary-color: #8b7355;
  --accent-color: #d4a574;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fafafa;
  --bg-alt: #f0f4f0;
  --white: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 1.5em; }
h3 { font-size: 1.5rem; margin-top: 1.2em; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.site-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.25em;
}

.tagline {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Navigation */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.main-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary-color);
  text-decoration: none;
}

/* Main Content */
main {
  padding: 2rem 0 4rem;
}

.content-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.intro-section {
  background: linear-gradient(to right, var(--bg-alt), var(--white));
  border-left: 4px solid var(--primary-color);
  font-size: 1.1rem;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-alt);
}

.comparison-table tr:hover {
  background: rgba(45, 90, 39, 0.1);
}

/* Info Box */
.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box h4 {
  color: var(--secondary-color);
  margin-top: 0;
}

.info-box ul {
  margin-bottom: 0;
}

/* Use Cases */
.use-case {
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.use-case h3 {
  color: var(--primary-color);
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

/* Budget Guide */
.budget-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.budget-tier {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);
}

.budget-tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.budget-tier h4 {
  color: var(--primary-color);
  margin-top: 0;
}

/* Product Grid */
.featured-section {
  background: linear-gradient(to bottom, var(--bg-alt), var(--white));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card h3 {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.product-card h4 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.25rem;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.product-specs li {
  padding: 0.25rem 0;
  border-bottom: 1px dotted var(--border-color);
  margin-bottom: 0;
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
  margin-top: 1rem;
}

.product-link:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

/* FAQ */
.faq-item {
  padding: 1.5rem;
  margin: 1rem 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.1rem;
}

.faq-item p {
  margin-bottom: 0;
}

/* Glossary */
.glossary-list {
  columns: 1;
}

@media (min-width: 768px) {
  .glossary-list {
    columns: 2;
    column-gap: 2rem;
  }
}

.glossary-list dt {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
  break-after: avoid;
}

.glossary-list dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.affiliate-disclosure {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 800px;
  margin: 1rem auto 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .content-section {
    padding: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .budget-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .site-header {
    padding: 2rem 0;
  }

  .site-header h1 {
    font-size: 1.75rem;
  }

  .content-section {
    padding: 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .main-nav {
    display: none;
  }

  .site-header {
    background: none;
    color: var(--text-color);
  }

  .site-header h1 {
    color: var(--text-color);
  }

  .content-section {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .product-link {
    color: var(--text-color);
    background: none;
    border: 1px solid var(--text-color);
  }
}
