/* =========================================================
   WormTRAP – Garden pages (Wanna Garden, Fruit Trees,
   seasonal vegetable lists, fact sheets)
   ========================================================= */

:root {
  --worm-accent: #B08D57;
  --g-green: #116530;
  --g-green-soft: #e8f3eb;
  --g-cream: #fbf7ee;
  --g-ink: #2d465e;
  --g-muted: rgba(0, 0, 0, .62);
  --g-line: rgba(0, 0, 0, .09);
}

.tm {
  font-size: .45em;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
  opacity: .95;
}

.g-section { padding: 64px 0; }
.g-section.alt { background: var(--g-cream); }

.g-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--worm-accent);
  margin-bottom: 8px;
}

.g-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}

.g-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--g-muted);
  max-width: 760px;
}

.g-center { text-align: center; }
.g-center .g-lead { margin-left: auto; margin-right: auto; }

.g-callout {
  border-left: 4px solid var(--worm-accent);
  background: rgba(176, 141, 87, .10);
  padding: 14px 16px;
  border-radius: 10px;
}

.g-callout.warn {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, .08);
}

/* ---------- Intro ---------- */
.g-intro-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.g-intro-cta.center { justify-content: center; }

.g-intro-art {
  width: min(300px, 70vw);
  height: auto;
  border-radius: 50%;
  border-radius: 50%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .18));
}

.g-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.g-pills span {
  background: var(--g-green-soft);
  color: var(--g-green);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
}

.g-intro-row .g-pills { justify-content: center; }

@media (min-width: 992px) {
  .g-intro-row .g-pills { justify-content: flex-start; }
}

/* ---------- Garden type cards ---------- */
.gt-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.gt-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.gt-card .gt-body { padding: 16px 18px 18px; }

.gt-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.gt-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--g-muted);
  margin: 0;
}

.gt-card .gt-note {
  margin-top: 10px;
  font-size: 13px;
  color: #8a5a2b;
}

/* ---------- Survey ---------- */
.wfg-survey {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
  padding: clamp(20px, 4vw, 40px);
}

.wfg-progress {
  height: 8px;
  background: #eef1ee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.wfg-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2FB344, var(--g-green));
  border-radius: 999px;
  transition: width .35s ease;
}

.wfg-step-count {
  font-size: 13px;
  color: var(--g-muted);
  margin-bottom: 18px;
}

.wfg-step { display: none; }
.wfg-step.active { display: block; animation: wfgIn .3s ease both; }

@keyframes wfgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.wfg-q {
  font-family: var(--heading-font);
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--heading-color);
  margin: 0 0 6px;
}

.wfg-hint {
  color: var(--g-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.wfg-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.opt { position: relative; margin: 0; cursor: pointer; }

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--g-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.opt:hover span { border-color: #9fd3ab; }

.opt input:checked + span {
  border-color: var(--g-green);
  background: var(--g-green-soft);
  color: var(--g-green);
}

.opt input:focus-visible + span {
  outline: 3px solid #2FB344;
  outline-offset: 2px;
}

/* Garden picture picker */
.wfg-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.pick { position: relative; margin: 0; cursor: pointer; }

.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick .pick-card {
  display: block;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transition: border-color .15s ease, transform .15s ease;
}

.pick img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.pick .pick-name {
  display: block;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.pick .pick-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(0, 0, 0, .2);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 16px;
}

.pick:hover .pick-card { transform: translateY(-2px); }

.pick input:checked + .pick-card {
  border-color: var(--g-green);
  box-shadow: 0 0 0 4px rgba(46, 179, 68, .2);
}

.pick input:checked + .pick-card .pick-name {
  background: var(--g-green);
  color: #fff;
}

.pick input:checked + .pick-card .pick-check {
  background: var(--g-green);
  border-color: var(--g-green);
  color: #fff;
}

.pick input:focus-visible + .pick-card {
  outline: 3px solid #2FB344;
  outline-offset: 2px;
}

.wfg-field label {
  font-weight: 700;
  margin-bottom: 6px;
}

.wfg-field .form-control {
  border-radius: 10px;
  padding: 12px 14px;
}

.wfg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.wfg-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  background: var(--g-green);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}

.wfg-btn:hover { background: #0c4e25; color: #fff; }
.wfg-btn:disabled { opacity: .5; }

.wfg-btn.ghost {
  background: transparent;
  color: var(--g-ink);
  border: 2px solid var(--g-line);
}

.wfg-btn.ghost:hover { background: #f4f4f4; }

.wfg-btn.big {
  font-size: 18px;
  padding: 14px 26px;
  background: #FF7A00;
}

.wfg-btn.big:hover { background: #e46c00; }

.wfg-error {
  color: #c0392b;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  min-height: 1em;
}

/* Result */
.wfg-result { display: none; text-align: center; }
.wfg-result.show { display: block; animation: wfgIn .4s ease both; }

.wfg-result-emoji { font-size: 64px; line-height: 1; }

.wfg-result h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 10px 0 8px;
}

.wfg-result .wfg-result-text {
  color: var(--g-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 22px;
}

.wfg-result .wfg-also {
  background: var(--g-green-soft);
  color: var(--g-green);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 22px;
}

.wfg-result-gardens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.wfg-result-gardens figure {
  width: min(220px, calc(50% - 6px));
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--g-line);
}

.wfg-result-gardens img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.wfg-result-gardens figcaption {
  padding: 8px;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.g-faq { max-width: 860px; margin: 0 auto; }

.g-faq .accordion-item {
  border: 1px solid var(--g-line);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 10px;
}

.g-faq .accordion-button {
  font-weight: 700;
  font-size: 17px;
  color: var(--g-ink);
  padding: 18px 20px;
}

.g-faq .accordion-button:not(.collapsed) {
  background: var(--g-green-soft);
  color: var(--g-green);
  box-shadow: none;
}

.g-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(46, 179, 68, .25); }

.g-faq .accordion-body {
  line-height: 1.75;
  color: var(--g-muted);
}

/* ---------- Vegetable / plant cards ---------- */
.veg-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.veg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.veg-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.veg-body { padding: 16px 18px 18px; }

.veg-card h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

.veg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.veg-meta span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #444;
}

.veg-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--g-muted);
  margin: 0;
}

.season-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.season-strip div {
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  padding: 16px 18px;
}

.season-strip strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.season-strip p { margin: 0; color: var(--g-muted); font-size: 15px; line-height: 1.6; }

/* Fruit list */
.fruit-group {
  height: 100%;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  padding: 20px;
}

.fruit-group h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fruit-group h3 span { font-size: 28px; }

.fruit-group ul { padding-left: 18px; margin: 0; }

.fruit-group li {
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--g-muted);
}

.fruit-group li strong { color: var(--default-color); }

/* ---------- Related guides strip ---------- */
.g-guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.g-guide {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  color: var(--default-color);
  transition: border-color .15s ease, transform .15s ease;
}

.g-guide:hover {
  border-color: var(--g-green);
  transform: translateY(-2px);
  color: var(--default-color);
}

.g-guide .g-guide-icon { font-size: 30px; line-height: 1; }
.g-guide strong { display: block; color: var(--heading-color); }
.g-guide small { color: var(--g-muted); }

/* ---------- Fact sheet article ---------- */
.fact .content p,
.fact .content li { line-height: 1.85; }

.fact .content h3 {
  font-weight: 800;
  margin-top: 30px;
}

.fact .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.fact .steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 52px;
}

.fact .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--g-green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.fact-figure {
  background: var(--g-cream);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  font-size: 60px;
  line-height: 1.1;
}

.widgets-container .widget-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 18px;
}

.widgets-container .widget-item .widget-title {
  margin: 0 0 10px;
  font-weight: 800;
}

.widgets-container .widget-item p {
  color: rgba(0, 0, 0, .65);
  line-height: 1.6;
}

.widgets-container ul li a.active {
  font-weight: 800;
  color: var(--worm-accent);
}

.hotline {
  font-size: 22px;
  font-weight: 800;
  color: #c0392b;
}

/* Garden pages: green primary buttons */
.main .btn-secondary {
  background: var(--g-green);
  border-color: var(--g-green);
  color: #fff;
}

.main .btn-secondary:hover,
.main .btn-secondary:focus {
  background: #0c4e25;
  border-color: #0c4e25;
  color: #fff;
}

/* Keep survey buttons on one line on phones */
.wfg-btn { white-space: nowrap; }

@media (max-width: 575px) {
  .wfg-nav .wfg-btn { padding: 12px 16px; }
  .wfg-nav .wfg-btn.big { font-size: 16px; padding: 13px 18px; }
}

/* ---------- Fruit tree pop-ups ---------- */
.fruit-hint {
  margin: 14px auto 0;
  color: var(--g-green);
  font-weight: 600;
  font-size: 15px;
}

.fruit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--g-green);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fruit-link i { font-size: 13px; }
.fruit-link:hover, .fruit-link:focus-visible { color: #0c4e25; text-decoration-style: solid; }

.tree-modal { border: 0; border-radius: 18px; overflow: hidden; }
.tree-modal .modal-header { border-bottom: 1px solid var(--g-line); align-items: flex-start; }
.tree-modal .modal-header .g-kicker { margin-bottom: 4px; }
.tree-modal .modal-title { font-size: 26px; margin: 0; }

.tree-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.tree-caption { font-size: 13px; color: var(--g-muted); text-align: center; margin: 6px 0 12px; }

.tree-size { display: grid; gap: 8px; }

.tree-size div {
  background: var(--g-green-soft);
  border-radius: 12px;
  padding: 10px 14px;
}

.tree-size small { display: block; font-size: 12px; font-weight: 700; color: var(--g-green); text-transform: uppercase; letter-spacing: .04em; }
.tree-size strong { font-size: 15px; color: var(--default-color); }

.tree-modal h4 { font-size: 18px; margin: 0 0 10px; }

.tree-varieties { padding-left: 18px; margin-bottom: 20px; }
.tree-varieties li { color: var(--g-muted); line-height: 1.55; margin-bottom: 6px; font-size: 15px; }
.tree-varieties strong { color: var(--default-color); }

.tree-guide {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 15px;
}

.tree-guide dt { font-weight: 700; color: var(--default-color); }
.tree-guide dd { margin: 0; color: var(--g-muted); line-height: 1.55; }

.tree-modal .modal-footer { justify-content: space-between; border-top: 1px solid var(--g-line); }
.tree-modal .modal-footer small { color: var(--g-muted); }

@media (max-width: 575px) {
  .tree-guide { grid-template-columns: 1fr; gap: 2px; }
  .tree-guide dd { margin-bottom: 8px; }
  .tree-modal .modal-footer { justify-content: center; text-align: center; }
}

/* ---------- Medicinal herbs ---------- */
.herb-latin { font-style: italic; font-size: 14px; color: var(--g-muted); margin: -4px 0 8px !important; }
.veg-card p.herb-tip { margin-top: 8px; }
.veg-card p.herb-tip strong { color: var(--g-green); }
