/* =========================================================
   Garden in a Box — page-specific styles (uses tokens from styles.css)
   ========================================================= */

.gb-hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(138,154,91,.22), transparent 60%),
    linear-gradient(160deg, #1f3324 0%, #2f4a36 55%, #3f5d3a 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.gb-hero .eyebrow { color: var(--sage-soft); }
.gb-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 6px 0 16px; }
.gb-hero p { color: rgba(255,253,248,.9); max-width: 680px; margin: 0 auto; font-size: 1.12rem; }

.gb-how { background: var(--cream-2); padding: 44px 0; }
.gb-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gb-how-step { text-align: center; }
.gb-how-step .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--terra); color: var(--white); font-family: var(--serif); font-weight: 700; margin-bottom: 10px; }
.gb-how-step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.gb-how-step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---- Gallery ---- */
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; margin-top: 10px; }
.gb-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(74,58,44,.06); display: flex; flex-direction: column; }
.gb-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.gb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; color: var(--white);
  background: linear-gradient(135deg, var(--forest-2), var(--sage)); gap: 4px; }
.gb-placeholder span { font-family: var(--serif); font-size: 1.1rem; }
.gb-placeholder small { opacity: .8; font-size: .8rem; }
.gb-price { position: absolute; top: 14px; right: 14px; background: var(--white); color: var(--forest); font-family: var(--serif); font-weight: 700; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }

.gb-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.gb-card-body h3 { font-size: 1.45rem; margin: 0 0 6px; }
.gb-tagline { color: var(--terra-dk); font-weight: 600; margin: 0 0 12px; }
.gb-desc { color: var(--muted); margin: 0 0 16px; }
.gb-conditions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gb-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid rgba(138,154,91,.3); color: var(--forest); font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.gb-includes-title { font-family: var(--serif); color: var(--forest); font-weight: 600; margin: 0 0 8px; }
.gb-includes { list-style: none; padding: 0; margin: 0 0 22px; }
.gb-includes li { position: relative; padding: 5px 0 5px 26px; color: var(--muted); font-size: .96rem; }
.gb-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 800; }
.gb-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.gb-actions .btn { width: 100%; }
/* Secondary buttons sit on light backgrounds here, so override the hero's
   white "ghost" style with a readable forest outline. */
.gb-try.btn-ghost, #gb-print.btn-ghost {
  background: transparent; color: var(--forest); border-color: rgba(47,74,54,.3);
}
.gb-try.btn-ghost:hover, #gb-print.btn-ghost:hover { background: var(--cream); color: var(--forest); }
.gb-buy-note { margin: 2px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---- Unlock page states ---- */
.gb-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.gb-state p { font-size: 1.05rem; }
.gb-state .btn { margin-top: 10px; }
.gb-spinner { width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid var(--cream-2); border-top-color: var(--terra); animation: gb-spin .8s linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gb-spinner { animation: none; } }

/* ---- Calculator panel ---- */
.gb-calc { background: var(--cream-2); border-top: 1px solid rgba(74,58,44,.08); }
.gb-calc-inner { max-width: 820px; margin: 0 auto; }
.gb-calc .eyebrow { color: var(--terra); text-align: center; }
#gb-calc-title { text-align: center; margin: 4px 0 8px; }
.gb-preview-note { text-align: center; color: var(--muted); font-size: .92rem; background: #fff6e9; border: 1px solid #f0d9b8; border-radius: 10px; padding: 10px 14px; margin: 0 auto 26px; max-width: 640px; }
.gb-size { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 18px; margin-bottom: 8px; }
.gb-size .field { margin: 0; }
.gb-size label { display: block; font-weight: 700; color: var(--forest); margin-bottom: 6px; font-size: .9rem; }
.gb-size input { width: 120px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(74,58,44,.18); font-size: 1rem; background: var(--white); }
.gb-size input:focus { outline: none; border-color: var(--sage); box-shadow: var(--ring); }
.gb-times { font-size: 1.3rem; color: var(--muted); padding-bottom: 10px; }
.gb-arealine { text-align: center; color: var(--muted); margin: 0 0 22px; }
.gb-arealine strong { color: var(--forest); font-size: 1.15rem; }

.gb-empty { text-align: center; color: var(--muted); padding: 20px; }
.gb-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gb-table { width: 100%; border-collapse: collapse; }
.gb-table th, .gb-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(74,58,44,.08); font-size: .96rem; }
.gb-table th { background: var(--forest); color: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.gb-center { text-align: center !important; }
.gb-qty { text-align: center; font-weight: 800; color: var(--terra-dk); font-size: 1.05rem; }
.gb-var { display: block; color: var(--muted); font-size: .84rem; font-style: italic; }
.gb-table tfoot td { font-weight: 800; color: var(--forest); background: var(--cream); }
.gb-calc-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.gb-calc-foot .note { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 760px) {
  .gb-how-grid { grid-template-columns: 1fr; }
  .gb-grid { grid-template-columns: 1fr; }
}

/* ---- Print: clean plant-list handout ---- */
@media print {
  .site-header, .site-footer, .gb-hero, .gb-how, #gb-grid, .gb-preview-note,
  .gb-calc-foot, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .gb-calc { background: #fff; }
  .gb-table th { background: #2f4a36 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
