/* ============================================
   MicroPropPlants.com - Main Stylesheet
   ============================================ */

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

:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-primary-light: #52b788;
  --color-accent: #95d5b2;
  --color-accent-light: #d8f3dc;
  --color-text: #1a1a2e;
  --color-text-light: #4a5568;
  --color-white: #ffffff;
  --color-bg: #f8fffe;
  --color-bg-alt: #f0faf4;
  --color-border: #b7e4c7;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.13);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--color-text-light);
  max-width: 65ch;
}

em {
  font-style: italic;
  color: var(--color-primary-light);
}

/* --- Layout Utilities --- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-alt {
  background: var(--color-bg-alt);
  padding: 5rem 0;
}

section:not(.hero):not(.section-alt) {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-head p {
  margin: 0 auto;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  max-width: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75em 1.75em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5em 1.25em;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Ghost button used outside the hero (e.g. contact section) needs dark-friendly default */
.contact .btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact .btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--color-primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
  white-space: nowrap;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--color-accent);
}

.hero-copy h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero-copy .lede {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* "Flask Record" specimen tag card, used in hero and about section */
.tag {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(4px);
}

.tag h2 {
  color: var(--color-accent);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.tag dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
}

.tag dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag dd {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   CARDS (What We Do)
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

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

.card .k {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

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

/* ============================================
   STEPS (How It Works)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step .n {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.95rem;
}

.note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ============================================
   SPOTLIGHT (What's Growing / TikTok)
   ============================================ */
.spotlight {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.spotlight .eyebrow {
  display: block;
}

.spotlight p {
  margin: 0 auto 1.75rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about p {
  margin-bottom: 1.25rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary-dark);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  color: var(--color-primary);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: '−';
}

.faq details p {
  margin-top: 0.75rem;
  max-width: none;
}

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

.contact .section-head {
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.foot-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.foot-brand span {
  color: var(--color-accent);
}

.tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 32ch;
  margin-bottom: 0.5rem;
}

.legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.cols {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.cols a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.cols a:hover {
  color: var(--color-white);
}

/* Fade-in animation (applied by IntersectionObserver in script.js) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy .lede {
    max-width: none;
  }

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

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

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

  .foot-inner {
    flex-direction: column;
  }

  .cols {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  section:not(.hero):not(.section-alt) {
    padding: 3.5rem 0;
  }

  .section-alt {
    padding: 3.5rem 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}
