/* ============================================================
   Moonshade Mushrooms — Global Stylesheet
   Palette: bg=#0F1A12, text=#F0EDE6, primary=#3D6B4F,
            secondary=#8B5E3C, accent=#C8A96E
   Fonts: Fraunces (heading), DM Sans (body)
   ============================================================ */

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

:root {
  --k-bg: #0F1A12;
  --k-text: #F0EDE6;
  --k-primary: #3D6B4F;
  --k-secondary: #8B5E3C;
  --k-accent: #C8A96E;
  --k-surface: #162018;
  --k-surface-2: #1E2E21;
  --k-border: rgba(200, 169, 110, 0.2);
  --k-warm-band: #1A1108;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--k-bg);
  color: var(--k-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--k-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--k-text); opacity: 0.88; }

a { color: var(--k-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #E8C990; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.text-accent { color: var(--k-accent); }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--k-primary);
  color: #fff;
  border-color: var(--k-primary);
}
.btn-primary:hover { background: #4e8464; border-color: #4e8464; color: #fff; }

.btn-accent {
  background: var(--k-accent);
  color: #0F1A12;
  border-color: var(--k-accent);
}
.btn-accent:hover { background: #E8C990; border-color: #E8C990; color: #0F1A12; }

.btn-outline {
  background: transparent;
  color: var(--k-accent);
  border-color: var(--k-accent);
}
.btn-outline:hover { background: var(--k-accent); color: #0F1A12; }

.btn-outline-light {
  background: transparent;
  color: var(--k-text);
  border-color: var(--k-text);
}
.btn-outline-light:hover { background: var(--k-text); color: var(--k-bg); }

/* --- Section Label --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--k-accent);
  margin-bottom: 0.75rem;
}

/* --- Divider --- */
.spore-divider {
  width: 60px;
  height: 3px;
  background: var(--k-accent);
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}
.spore-divider.left { margin-left: 0; }

/* ============================================================
   PAGE HEADER / SUBPAGE HERO BANNERS
   ============================================================ */
.page-hero {
  background: var(--k-surface);
  padding: 7rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--k-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(61,107,79,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
  position: relative;
}

/* ============================================================
   HOME — ICON STRIP
   ============================================================ */
.icon-strip {
  background: var(--k-surface);
  border-top: 1px solid var(--k-border);
  border-bottom: 1px solid var(--k-border);
}

.icon-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.icon-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--k-border);
}

.icon-strip-item:last-child { border-right: none; }

.icon-strip-icon {
  width: 64px;
  height: 64px;
  background: rgba(61,107,79,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  color: var(--k-accent);
}

.icon-strip-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.icon-strip-item p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============================================================
   ASYMMETRIC IMAGE-TEXT ROWS
   ============================================================ */
.asym-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  overflow: hidden;
}

.asym-section.reversed { direction: rtl; }
.asym-section.reversed > * { direction: ltr; }

.asym-img {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.asym-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asym-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem;
  background: var(--k-surface);
}

.asym-content h2 { margin-bottom: 1rem; }
.asym-content p { margin-bottom: 1.5rem; opacity: 0.85; }
.asym-content .btn { align-self: flex-start; }

/* ============================================================
   PRODUCT / VARIETY CARDS GRID
   ============================================================ */
.products-section {
  background: var(--k-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--k-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--k-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.product-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.07);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.product-card-body .flavor-note {
  font-size: 0.88rem;
  color: var(--k-accent);
  opacity: 0.9;
  margin-bottom: 0.75rem;
  flex: 1;
}

.product-card-body .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.badge-yearround { background: rgba(61,107,79,0.3); color: #7EC49A; }
.badge-seasonal { background: rgba(139,94,60,0.3); color: #D4946A; }

.product-card-body .learn-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--k-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}
.product-card-body .learn-link:hover { color: #E8C990; }

/* ============================================================
   TESTIMONIAL BAND
   ============================================================ */
.testimonial-band {
  background: var(--k-warm-band);
  border-top: 1px solid rgba(200,169,110,0.15);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial-item {
  text-align: center;
}

.testimonial-item .quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--k-accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-item blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--k-text);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.testimonial-item cite {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--k-accent);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section { background: var(--k-surface); }

.map-container {
  width: 100%;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--k-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--k-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.cta-band .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   MEMBERSHIP TIERS
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tier-card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.tier-card.featured {
  border-color: var(--k-accent);
  background: var(--k-surface-2);
  position: relative;
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--k-accent);
  color: var(--k-bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
}

.tier-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.tier-price {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--k-accent);
  margin-bottom: 0.25rem;
}
.tier-price span { font-size: 1rem; opacity: 0.7; }
.tier-card .tier-desc { font-size: 0.88rem; opacity: 0.7; margin-bottom: 1.5rem; }

.tier-benefits {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.tier-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--k-border);
}

.tier-benefits li:last-child { border-bottom: none; }

.tier-benefits li i {
  color: var(--k-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.tier-card .btn { text-align: center; width: 100%; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { background: var(--k-surface); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--k-border);
}

.faq-item:first-child { border-top: 1px solid var(--k-border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--k-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--k-accent); }

.faq-question i {
  color: var(--k-accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-note {
  background: rgba(200,169,110,0.08);
  border: 1px solid var(--k-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.shop-note p { font-size: 0.92rem; opacity: 0.8; }
.shop-note i { color: var(--k-accent); margin-right: 0.5rem; }

.shop-card-img { height: 200px; overflow: hidden; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .shop-card-img img { transform: scale(1.07); }

.shop-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--k-accent);
  margin-bottom: 0.5rem;
}

.shop-card-body h3 { margin-bottom: 0.25rem; }
.shop-card-body p { font-size: 0.88rem; opacity: 0.75; flex: 1; margin-bottom: 1rem; }

/* ============================================================
   SEASONAL BAND
   ============================================================ */
.seasonal-band {
  background: var(--k-surface);
  border-top: 1px solid var(--k-border);
  border-bottom: 1px solid var(--k-border);
  text-align: center;
}

.seasonal-band p { opacity: 0.8; max-width: 700px; margin: 0 auto; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-detail i {
  color: var(--k-accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-detail div strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-accent);
  margin-bottom: 0.2rem;
}

.contact-detail div p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--k-surface-2);
  border: 1px solid var(--k-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--k-accent);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.social-icons a:hover { background: var(--k-accent); color: var(--k-bg); }

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hours-item {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.hours-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--k-accent);
  margin-bottom: 0.25rem;
}

.hours-item span { font-size: 0.92rem; opacity: 0.8; }

/* ============================================================
   STANDALONE FULL-WIDTH PHOTO
   ============================================================ */
.standalone-photo {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--k-border);
}

.standalone-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   CO-OP MODEL BAND
   ============================================================ */
.coop-band {
  background: var(--k-warm-band);
  border-top: 1px solid rgba(200,169,110,0.15);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.coop-item {
  text-align: center;
  padding: 1.5rem;
}

.coop-item i {
  font-size: 2rem;
  color: var(--k-accent);
  margin-bottom: 1rem;
  display: block;
}

.coop-item h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.coop-item p { font-size: 0.92rem; opacity: 0.8; }

/* ============================================================
   STEP SECTIONS (How It Works)
   ============================================================ */
.step-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--k-border);
}

.step-section:first-of-type { border-top: none; }

.step-img {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 4rem;
  background: var(--k-surface);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--k-primary);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.step-content h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.step-content p { opacity: 0.85; }

/* ============================================================
   WHOLESALE SECTION
   ============================================================ */
.wholesale-section { background: var(--k-surface); }

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wholesale-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--k-accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.wholesale-contact a:hover { color: #E8C990; }

/* ============================================================
   MARKET / EVENTS SECTION
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.events-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--k-border);
}

.events-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid,
  .tier-grid { grid-template-columns: repeat(2, 1fr); }

  .asym-section,
  .step-section,
  .wholesale-grid,
  .events-grid { grid-template-columns: 1fr; }

  .asym-section.reversed { direction: ltr; }
  .asym-content { padding: 3rem 2.5rem; }

  .step-content { padding: 2.5rem 2.5rem; }

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

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

@media (max-width: 768px) {
  .icon-strip-grid {
    grid-template-columns: 1fr;
  }
  .icon-strip-item { border-right: none; border-bottom: 1px solid var(--k-border); }
  .icon-strip-item:last-child { border-bottom: none; }

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

  .testimonial-grid { grid-template-columns: 1fr; gap: 2rem; }

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

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

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

  .asym-img { min-height: 280px; }
  .asym-content { padding: 2.5rem 1.5rem; }

  .container { padding: 0 1.25rem; }

  .standalone-photo img { height: 280px; }
}
