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

:root {
  --primary: #F19D76;
  --primary-dark: #d97f55;
  --accent: #7DB249;
  --accent-dark: #5e8a35;
  --secondary: #046000;
  --bg: #FFFFFF;
  --surface: #FFF8F0;
  --text: #2A2A2A;
  --text-soft: #5C5C5C;
  --line: #F8D7AE;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(241, 157, 118, .12);
  --shadow-hover: 0 14px 40px rgba(241, 157, 118, .22);
  --container: 1180px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--secondary); }

h1, h2, h3, h4 {
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .6em 0;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------- HEADER ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.brand img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { color: var(--primary-dark); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.main-nav a {
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--surface); color: var(--primary-dark); }
.main-nav a.is-current { color: var(--primary-dark); background: var(--surface); }

/* ----------- BUTTONS / CTA - rounded_to_square_hover ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  transition: border-radius .35s ease, transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 6px 18px rgba(241, 157, 118, .35);
  min-height: 44px;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241, 157, 118, .45); }

/* CTA effect: rounded pill -> rounded square on hover */
.btn--cta {
  background: linear-gradient(135deg, var(--primary) 0%, #ec8f63 100%);
  border-radius: 999px;
}
.btn--cta:hover {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* CTR effect: sticky table of contents accent (underline reveal + arrow) */
.btn--ctr {
  background: transparent;
  color: var(--secondary);
  box-shadow: none;
  border: 2px solid var(--accent);
  padding: 10px 22px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}
.btn--ctr::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width .35s ease;
}
.btn--ctr:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(125, 178, 73, .35);
}
.btn--ctr:hover::after { width: 100%; }

/* CTO effect: bonus stack block (button reveals a stacked pile of shadows) */
.btn--cto {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 6px 0 rgba(94, 138, 53, 1),
    0 8px 18px rgba(94, 138, 53, .35);
  border-radius: 16px;
}
.btn--cto:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 0 var(--accent-dark),
    0 10px 0 rgba(94, 138, 53, .85),
    0 16px 0 rgba(94, 138, 53, .6),
    0 22px 30px rgba(94, 138, 53, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); color: var(--primary-dark); }

/* ----------- MOBILE NAV ----------- */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 2px solid var(--line);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------- HERO ----------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,55,30,.55) 0%, rgba(217,127,85,.45) 100%);
  z-index: -1;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-inner {
  max-width: 760px;
  padding: 80px 24px;
}
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero p.lead {
  font-size: 1.25rem;
  margin-bottom: 1.8em;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero .eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* small hero used on inner pages */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--surface), #fff);
  border-bottom: 2px solid var(--line);
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.page-hero .lead { font-size: 1.15rem; color: var(--text-soft); max-width: 720px; margin: 0 auto; }

.cat-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%);
  z-index: -1;
}
.cat-hero img.cat-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.cat-hero .container { padding-top: 80px; padding-bottom: 36px; }
.cat-hero h1 { color: #fff; }
.cat-hero p { color: #fff; font-size: 1.15rem; max-width: 700px; }

/* ----------- BREADCRUMB ----------- */
.breadcrumb {
  font-size: .9rem;
  color: var(--text-soft);
  padding: 18px 0;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span.sep { margin: 0 8px; color: var(--line); }

/* ----------- SECTIONS ----------- */
section { padding: 70px 0; }
section.tight { padding: 50px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

.alt-bg { background: var(--surface); }

/* ----------- CARDS / GRID ----------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card a { color: inherit; display: block; height: 100%; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; color: var(--text); }
.card p { color: var(--text-soft); margin-bottom: 16px; flex: 1; }
.card-cats { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-dark); font-weight: 700; margin: 0 0 6px; }
.card-cta { color: var(--accent-dark); font-weight: 700; font-family: "Quicksand", sans-serif; }
.card-cta::after { content: " →"; transition: margin-left .2s; }
.card:hover .card-cta::after { margin-left: 4px; }

/* article grid for /blog fetch */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-grid .card img { aspect-ratio: 16/9; }
.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  padding: 30px;
}

/* ----------- TWO-COLUMN ----------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ----------- PROSE ----------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.5em; color: var(--primary-dark); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 6px 18px;
  margin: 1.5em 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: italic;
}

/* persona block */
.persona-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
}
.persona-card img { width: 200px; height: 240px; object-fit: cover; border-radius: var(--radius); }
.persona-card h3 { margin-bottom: 6px; }
.persona-card .role { color: var(--primary-dark); font-weight: 700; margin-bottom: 12px; }

/* ----------- FOOTER ----------- */
.site-footer {
  background: linear-gradient(180deg, var(--surface) 0%, #f6e2d1 100%);
  padding: 60px 0 30px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); font-weight: 600; }
.site-footer a:hover { color: var(--primary-dark); }
.footer-brand { font-family: "Quicksand", sans-serif; font-size: 1.3rem; font-weight: 700; }
.footer-brand img { height: 48px; margin-bottom: 10px; }
.footer-brand p { color: var(--text-soft); font-size: .95rem; max-width: 280px; }
.social-list { display: flex; gap: 12px; }
.social-list a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  border: 2px solid var(--line);
  transition: background .2s, color .2s, transform .2s;
}
.social-list a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 2px solid rgba(241,157,118,.4);
  color: var(--text-soft);
  font-size: .9rem;
}

/* ----------- CTO POPUP (bonus_stack_block animation) ----------- */
.cto-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.cto-popup.is-open { display: flex; }
.cto-popup-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: stackIn .55s cubic-bezier(.22, 1.4, .38, 1);
  box-shadow:
    0 8px 0 var(--primary),
    0 16px 0 rgba(241, 157, 118, .55),
    0 24px 0 rgba(241, 157, 118, .25),
    0 30px 60px rgba(0, 0, 0, .3);
}
@keyframes stackIn {
  0%   { transform: translateY(60px) scale(.85); opacity: 0; }
  60%  { transform: translateY(-10px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cto-popup-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-soft);
  width: 38px; height: 38px;
  border-radius: 12px;
}
.cto-popup-close:hover { background: var(--surface); color: var(--text); }
.cto-popup-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cto-popup-card p { color: var(--text-soft); margin-bottom: 22px; }
.cto-form { display: flex; gap: 8px; flex-direction: column; }
.cto-form input[type="email"] {
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font: inherit;
  outline: none;
}
.cto-form input[type="email"]:focus { border-color: var(--primary); }
.cto-form button { width: 100%; justify-content: center; }

/* ----------- FORMS / CONTACT ----------- */
.jotform-wrapper {
  max-width: 760px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jotform-wrapper iframe { width: 100% !important; }
.contact-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; color: var(--text-soft); }

/* ----------- TOOLS ----------- */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}
.tool-card label { display: block; font-weight: 700; margin-top: 14px; margin-bottom: 6px; color: var(--secondary); }
.tool-card input, .tool-card select, .tool-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.tool-card input:focus, .tool-card select:focus { outline: none; border-color: var(--primary); }
.tool-result {
  margin-top: 24px;
  padding: 22px 24px;
  background: #fff;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem;
}
.tool-result.is-hidden { display: none; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tool-calendar {
  display: grid;
  grid-template-columns: 120px repeat(12, 1fr);
  gap: 2px;
  font-size: .8rem;
  margin-top: 18px;
}
.tool-calendar .cal-head { background: var(--secondary); color: #fff; padding: 8px 4px; text-align: center; font-weight: 700; }
.tool-calendar .cal-row-label { background: var(--surface); padding: 8px 10px; font-weight: 700; }
.tool-calendar .cal-cell { background: #fff; padding: 8px 2px; text-align: center; border: 1px solid var(--line); border-radius: 6px; }
.tool-calendar .cal-cell.sow { background: #ffe6b3; }
.tool-calendar .cal-cell.plant { background: #b3e6b3; }
.tool-calendar .cal-cell.harvest { background: var(--primary); color: #fff; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .9rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.cal-legend i.sow { background: #ffe6b3; }
.cal-legend i.plant { background: #b3e6b3; }
.cal-legend i.harvest { background: var(--primary); }

/* ----------- MOUSE EFFECT cursor follow ----------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transition: transform .12s ease;
  mix-blend-mode: multiply;
}
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .18s ease, width .2s, height .2s, border-color .2s;
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--primary); }
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .persona-card { grid-template-columns: 1fr; text-align: center; }
  .persona-card img { margin: 0 auto; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 50px 0; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 60px 20px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    transform: translateY(-120%);
    transition: transform .35s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 14px 18px; min-height: 48px; display: flex; align-items: center; }
  .main-nav .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .grid-3, .grid-4, .article-grid, .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-calendar { grid-template-columns: 90px repeat(12, 1fr); font-size: .65rem; }
  .tool-calendar .cal-row-label { padding: 6px; }
  .cursor-dot, .cursor-ring { display: none; }
}
