/* =============================================================
   THE ROOTED GARDEN — Stylesheet
   ---------------------------------------------------------------
   Everything about the LOOK of the site is controlled from the
   tokens in :root below. Change a color or font there and it
   updates everywhere on the site automatically.
   ============================================================= */

:root {
  /* ---- Color -------------------------------------------------- */
  --paper: #ffffff;         /* page background */
  --paper-warm: #faf7f2;    /* alternate section / card background */
  --red: #c1392b;           /* primary brand red */
  --red-deep: #7a2119;      /* dark red — footer, hover states */
  --red-tint: rgba(193, 57, 43, 0.08);
  --ink: #1a1815;           /* near-black text */
  --ink-soft: #56524c;      /* secondary text */
  --line: #e6dfd3;          /* hairline borders / dividers */
  --ghost-bg: #fbf5ef;      /* placeholder box background */
  --ghost-border: #d9714f; /* placeholder dashed border (red-orange, reads as "todo") */

  /* ---- Type ----------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Layout ----------------------------------------------------- */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

section[id] {
  scroll-margin-top: 96px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   TYPOGRAPHY HELPERS
   ============================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head .eyebrow {
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
  margin-bottom: 0.85rem;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 54ch;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-alt {
  background: var(--paper-warm);
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-solid {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.btn-solid:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.65em 1.15em;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(26, 24, 21, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logomark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.25rem;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem var(--gutter) 1.75rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: radial-gradient(circle at 78% 15%, var(--paper-warm), var(--paper) 60%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-copy .eyebrow {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.25rem);
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  margin-top: 1.35rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* =============================================================
   STAT STRIP
   ============================================================= */
.stat-strip {
  border-block: 1px solid var(--line);
}

.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  text-align: center;
}

.stat-item {
  padding-block: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.15rem;
}

@media (min-width: 700px) {
  .stat-strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

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

/* =============================================================
   VARIETY GRID
   ============================================================= */
.variety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.variety-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.variety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(26, 24, 21, 0.35);
}

.variety-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.variety-name {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.variety-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: block;
}

.variety-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .variety-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .variety-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* =============================================================
   GROW-CYCLE TIMELINE
   ============================================================= */
.timeline-track {
  display: none;
  width: 100%;
  height: 90px;
  margin-bottom: 0.5rem;
}

.timeline-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
}

.timeline-path-progress {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.timeline-track.is-drawn .timeline-path-progress {
  stroke-dashoffset: 0;
}

.timeline-node {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 3;
}

.timeline-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.timeline-stage {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.timeline-stage:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stage-icon-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-icon {
  width: 26px;
  height: 26px;
}

.timeline-day {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.2rem;
}

.timeline-label {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .timeline-track {
    display: block;
  }

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

  .timeline-stage {
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
  }
}

/* =============================================================
   CHANNEL SECTION (Wholesale / B2B)
   ============================================================= */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

.channel-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-icon {
  width: 28px;
  height: 28px;
}

.channel-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 46ch;
}

.channel-list {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.channel-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.channel-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.channel-action {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .channel-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

/* =============================================================
   GHOST PLACEHOLDER SYSTEM
   Consistent dashed styling used everywhere real content still
   needs to be dropped in (Kavi's photo, bios, the B2B form, phone
   and social links).
   ============================================================= */
.ghost-block {
  background: var(--ghost-bg);
  border: 2px dashed var(--ghost-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.ghost-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.75rem;
  color: var(--ghost-border);
}

.ghost-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ghost-spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-inline: auto;
}

.ghost-spec code {
  background: rgba(26, 24, 21, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.ghost-text {
  border-left: 3px dashed var(--ghost-border);
  padding-left: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.ghost-inline {
  border-bottom: 2px dashed var(--ghost-border);
  padding-bottom: 0.05em;
  font-style: italic;
  white-space: normal;
}

/* ---- Founder photo (uses ghost-block while empty) --------------- */
.founder-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
  margin: 0 0 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
}

.founder-photo.ghost-block img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.9;
}

/* ---- Form embed --------------------------------------------------- */
.form-embed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-frame-wrap {
  width: 100%;
}

.form-frame-wrap iframe {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.form-embed.form-ready {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.form-embed.form-ready .ghost-form-inner {
  display: none;
}

/* =============================================================
   OUR STORY / FOUNDERS
   ============================================================= */
.story-intro {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 1.05rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.founder-name {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
  display: block;
}

.founder-bio {
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.founder-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

@media (min-width: 700px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 46ch;
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 1.05rem;
  text-decoration: none;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px dashed var(--ghost-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--red-deep);
  color: var(--paper);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand .logo-text {
  color: var(--paper);
}

.footer-tagline {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social .social-link {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* =============================================================
   SCROLL REVEAL + STAGGER
   Clean fade/rise-in as sections scroll into view. Grid items
   (variety cards, timeline stages, founder cards) stagger by a
   few beats via nth-child so they don't all pop in at once.
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.variety-grid > .reveal:nth-child(1) { transition-delay: 0.02s; }
.variety-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.variety-grid > .reveal:nth-child(3) { transition-delay: 0.14s; }
.variety-grid > .reveal:nth-child(4) { transition-delay: 0.2s; }

.timeline-stages > .reveal:nth-child(1) { transition-delay: 0.02s; }
.timeline-stages > .reveal:nth-child(2) { transition-delay: 0.12s; }
.timeline-stages > .reveal:nth-child(3) { transition-delay: 0.22s; }

.founders-grid > .reveal:nth-child(1) { transition-delay: 0.02s; }
.founders-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
