/* ============================================
   OurCrunchyHome.com — Global Styles
   Warm · Earthy · Clean
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --sage:        #8BA88E;
  --sage-dark:   #6E8A71;
  --sage-light:  #C4D7C6;
  --cream:       #F5F0E8;
  --warm-white:  #FAF7F2;
  --charcoal:    #2C2C2C;
  --charcoal-soft: #4A4A4A;
  --terracotta:  #C4734E;
  --terracotta-light: #D68F6E;
  --slate:       #3D4A4A;
  --slate-light: #5A6B6B;
  --amber:       #C4944E;
  --border:      #E5DDD0;
  --text:        #2C2C2C;
  --text-light:  #6B6B6B;
  --bg:          #FAF7F2;
  --card-bg:     #FFFFFF;
  --shadow:      0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-sm:   8px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--terracotta);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.5;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--slate);
  color: #fff;
}
.btn-primary:hover {
  background: var(--slate-light);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--sage);
  background: var(--cream);
}

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-logo:hover {
  color: var(--sage-dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--sage-dark);
}
.nav-cta {
  padding: 8px 20px;
  background: var(--slate);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem !important;
}
.nav-cta:hover {
  background: var(--slate-light) !important;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
  padding: 4px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #F5F0E8 0%, #E8EED9 40%, #C4D7C6 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(139,167,142,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(196,115,78,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(139,167,142,0.12);
  border-radius: 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--sage-dark);
}
.hero p {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}
section.alt-bg {
  background: var(--cream);
}

/* ---------- About Section ---------- */
.about-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-visual {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem; /* leaf/flower emoji or icon */
  flex-shrink: 0;
}
.about-text {
  flex: 1;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
}

/* ---------- Protocol Cards ---------- */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.protocol-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.protocol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.protocol-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.protocol-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.protocol-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link::after {
  content: '→';
  transition: transform 0.2s;
}
.protocol-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ---------- Shop Shelf ---------- */
.shop-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.shop-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.shop-item-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.shop-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.shop-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  padding: 8px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.shop-link:hover {
  background: var(--sage-light);
  color: var(--charcoal);
}

/* ---------- Featured Section ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.featured-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.featured-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.featured-item-body {
  padding: 24px;
}
.featured-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.featured-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}
.featured-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Protocol Page Inline Products ---------- */

.inline-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  padding: 6px 12px 6px 6px;
  background: var(--cream);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.inline-product:hover {
  background: #eae3d8;
}
.inline-product img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}
.inline-product span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
}
.inline-product span::before { content: "🛒 "; }

/* ---------- Protocol Page (accordion) ---------- */
.protocol-page {
  padding-top: 100px;
}
.protocol-header {
  text-align: center;
  padding: 40px 0 60px;
}
.protocol-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.protocol-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.protocol-accordion {
  max-width: 760px;
  margin: 0 auto;
}
.accordion-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: var(--cream);
}
.accordion-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}
.accordion-toggle {
  font-size: 1.2rem;
  color: var(--sage-dark);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-toggle {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-item.open .accordion-content {
  max-height: 5000px;
  padding: 0 24px 24px;
}
.accordion-content p {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}
.accordion-content ul, .accordion-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.accordion-content li {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}
.inline-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 10px 4px 4px;
  background: var(--cream);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: opacity 0.15s;
}
.inline-product-link:hover {
  opacity: 0.8;
}
.inline-product-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---------- Shop Page ---------- */
.shop-page {
  padding-top: 100px;
}
.shop-header {
  text-align: center;
  padding: 40px 0 20px;
}
.shop-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.shop-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.shop-category {
  margin-bottom: 48px;
}
.shop-category h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow);
}
.product-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
}

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-light);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.affiliate-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .protocol-header h1 {
    font-size: 1.8rem;
  }
  .shop-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 56px 0;
  }
  .protocol-grid {
    grid-template-columns: 1fr;
  }
  .shop-shelf {
    grid-template-columns: 1fr;
  }
}
