/* ============================================
   THEME VARIABLES — Customize these for each site
   ============================================ */
:root {
  --primary: #2d8a4e;
  --bg: #f7faf8;
  --text: #1a2e22;
  --muted: #5a7a66;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(45, 138, 78, 0.1);
  --radius: 18px;
  --font-heading: "DM Serif Display", serif;
  --font-body: "DM Sans", sans-serif;
}

/* ============================================
   RESET & BASE — Do NOT modify
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top, var(--card) 0%, var(--bg) 60%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }

/* ============================================
   LAYOUT — Do NOT modify
   ============================================ */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
  margin: 0.5rem auto 0;
}

/* ============================================
   HEADER & NAV — Do NOT modify
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(45, 138, 78, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-mark { color: var(--primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--primary); }

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

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 4%;
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 1rem;
    display: none;
    min-width: 180px;
  }

  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
}

/* ============================================
   BUTTONS — Do NOT modify
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(45, 138, 78, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-card-body {
  padding: 1.5rem 1.75rem;
}

.product-card-body h3 { margin-bottom: 0.25rem; }

.product-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.category-card:hover { transform: translateY(-4px); }

.category-card h3 { margin-bottom: 0.5rem; }

.category-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about .about-grid {
  max-width: 720px;
  margin: 0 auto;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-card blockquote {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author strong {
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}

.contact-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-item {
  background: var(--card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
}

.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-item .value {
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   FOOTER — Do NOT modify
   ============================================ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE — Do NOT modify
   ============================================ */
@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn { width: 100%; }

  section { padding: 3.5rem 0; }
}
