/* =========================================================
   Growdude site layout: header, footer, homepage sections.
   ========================================================= */

/* ---------- Top bar + header ---------- */
.gd-topbar { background: var(--gd-green); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.gd-header { background: var(--gd-ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .gd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gd-header { top: 0; } }
.gd-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.gd-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.gd-logo:hover { color: #fff; }
.gd-logo img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.gd-logo span { font-weight: 800; font-size: 21px; letter-spacing: .03em; }
.gd-search { flex: 1 1 340px; min-width: 0; display: flex; background: #fff; border-radius: var(--gd-pill); overflow: hidden; height: 46px; }
.gd-search input[type=search] { flex: 1; min-width: 0; border: 0; padding: 0 20px; font: inherit; font-size: 15px; color: var(--gd-ink); background: #fff; outline: none; }
.gd-search button { width: 54px; border: 0; background: var(--gd-sage); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.gd-search button:hover { background: #a0bf8e; }
.gd-header__actions { display: flex; align-items: center; gap: 6px; }
.gd-header__link { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: var(--gd-pill); transition: background .15s; }
.gd-header__link:hover { color: #fff; background: rgba(255,255,255,.1); }
.gd-cart { background: var(--gd-green); }
.gd-cart:hover { background: var(--gd-green-dark); }
.gd-cart-count { background: var(--gd-sage); color: var(--gd-ink); font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: var(--gd-pill); display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.gd-nav { background: #fff; border-bottom: 1px solid var(--gd-line); }
.gd-nav__inner { display: flex; gap: 0 4px; overflow-x: auto; font-weight: 700; font-size: 15px; scrollbar-width: none; }
.gd-nav__inner::-webkit-scrollbar { display: none; }
.gd-nav a { padding: 14px 12px; color: var(--gd-ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: border-color .15s, color .15s; }
.gd-nav a:hover { border-bottom-color: var(--gd-line); }
.gd-nav a.is-col { border-bottom-color: var(--c, var(--gd-line)); }
.gd-nav a.is-col:hover { background: var(--gd-tint); }
.gd-nav__spacer { flex: 1; }
.gd-nav a.is-tool { color: var(--gd-green-dark); }

/* ---------- Footer ---------- */
.gd-footer { background: var(--gd-ink); color: #c3ccc0; font-size: 14px; margin-top: 0; }
.gd-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 24px; }
.gd-footer strong { color: #fff; display: block; margin-bottom: 6px; }
.gd-footer a { color: #c3ccc0; display: block; padding: 3px 0; text-decoration: none; }
.gd-footer a:hover { color: #fff; text-decoration: underline; }
.gd-footer__logo { width: 72px; height: 72px; border-radius: 50%; }
.gd-footer__legal { border-top: 1px solid #2c3a26; padding-top: 16px; padding-bottom: 28px; font-size: 13px; }

/* ---------- Section basics ---------- */
.gd-section { padding: 56px 0; }
.gd-section--tint { background: var(--gd-tint); }
.gd-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px; margin-bottom: 20px; }
.gd-section__head h2, .gd-h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3vw, 30px); }
.gd-section__head a { font-weight: 700; }

/* ---------- Hero ---------- */
.gd-hero { position: relative; overflow: hidden; background: var(--gd-ink); color: #fff; }
.gd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,36,15,.93) 0%, rgba(24,36,15,.72) 45%, rgba(24,36,15,.12) 100%); }
.gd-hero__inner { position: relative; padding-top: 112px; padding-bottom: 120px; }
.gd-hero__box { max-width: 620px; }
.gd-chip { display: inline-block; background: var(--gd-sage); color: var(--gd-ink); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: var(--gd-pill); }
.gd-hero h1 { margin: 14px 0 16px; font-weight: 800; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.03em; color: #fff; }
.gd-hero p.gd-hero__lead { margin: 0 0 28px; font-size: 19px; color: #e4ebe0; max-width: 540px; }
.gd-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.gd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 600; }
.gd-checks li { display: flex; align-items: center; gap: 8px; }

/* ---------- Seed type tiles ---------- */
.gd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gd-tile { --fg: #fff; --tint: rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: 20px; border-radius: var(--gd-radius); text-decoration: none; background: var(--c); color: var(--fg); transition: transform .18s ease, box-shadow .18s ease; }
.gd-tile:hover { color: var(--fg); transform: translateY(-4px); box-shadow: var(--gd-shadow); }
.gd-tile.is-light { --fg: var(--gd-ink); --tint: rgba(24,36,15,.10); }
.gd-tile__top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.gd-tile__name { font-weight: 800; font-size: 20px; line-height: 1.15; }
.gd-tile__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tint); }
.gd-tile__blurb { font-size: 14px; opacity: .92; }
.gd-tile__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.gd-tile__track { position: relative; display: block; height: 10px; border-radius: var(--gd-pill); background: var(--tint); }
.gd-tile__bar { position: absolute; top: 0; bottom: 0; border-radius: var(--gd-pill); background: var(--fg); left: var(--l); width: var(--w); }
.gd-tile__scale { display: flex; justify-content: space-between; font-size: 11px; opacity: .8; }
.gd-tile__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gd-tile__stat { border-radius: 10px; padding: 6px 9px; background: var(--tint); }
.gd-tile__stat span { display: block; font-size: 11px; opacity: .85; }
.gd-tile__stat strong { font-size: 14px; }
.gd-tile__more { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.gd-tile:hover .gd-tile__more svg { transform: translateX(4px); }
.gd-tile__more svg { transition: transform .18s ease; }

/* ---------- Product cards (homepage picks + shop loop) ---------- */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gd-card { border: 1px solid var(--gd-line); border-radius: var(--gd-radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.gd-card:hover { transform: translateY(-4px); box-shadow: var(--gd-shadow); }
.gd-card__media { position: relative; display: block; height: 220px; overflow: hidden; background: var(--gd-tint); }
.gd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gd-card:hover .gd-card__media img.gd-card__photo { transform: scale(1.05); }
.gd-card__kind { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--gd-ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--gd-pill); }
.gd-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gd-card__col { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.gd-card__col.is-light { color: #4f6e3f; }
.gd-card__title { margin: 2px 0 0; font-weight: 800; font-size: 19px; }
.gd-card__title a { color: var(--gd-ink); text-decoration: none; }
.gd-card__sub { font-size: 13px; color: var(--gd-ink-soft); }
.gd-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.gd-card__from { font-size: 13px; color: var(--gd-ink-soft); }
.gd-card__from strong { display: block; font-size: 20px; color: var(--gd-ink); }
.gd-card__from .woocommerce-Price-amount { font-weight: 800; }

/* Seed pack mock-up (used until real pack photos exist) */
.gd-pack { --fg: #fff; width: 128px; height: 168px; border-radius: 14px 14px 10px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; box-sizing: border-box; box-shadow: 0 10px 20px rgba(24,36,15,.22); background: var(--c); color: var(--fg); text-align: center; }
.gd-pack.is-light { --fg: var(--gd-ink); }
.gd-pack img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.gd-pack b { font-weight: 800; font-size: 15px; line-height: 1.15; }
.gd-pack small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.gd-pack--mini { position: absolute; right: 12px; bottom: 12px; width: 62px; height: 82px; gap: 4px; padding: 6px; border-radius: 10px 10px 8px 8px; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.gd-pack--mini img { width: 26px; height: 26px; border: 0; }
.gd-pack--mini b { font-size: 9px; }
.gd-pack-stage { display: flex; align-items: center; justify-content: center; height: 100%; background: color-mix(in srgb, var(--c) 14%, #fff); }
.gd-pack-stage--big { min-height: 460px; border-radius: 22px; }
.gd-pack-stage--big .gd-pack { width: 230px; height: 300px; border-radius: 20px 20px 14px 14px; gap: 12px; }
.gd-pack-stage--big .gd-pack img { width: 84px; height: 84px; border-width: 3px; }
.gd-pack-stage--big .gd-pack b { font-size: 26px; }
.gd-pack-stage--big .gd-pack small { font-size: 12px; }

/* Spec boxes + fit bars */
.gd-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.gd-specs div { background: var(--gd-tint); border-radius: 10px; padding: 8px 10px; }
.gd-specs dt { color: var(--gd-ink-soft); }
.gd-specs dd { margin: 0; font-weight: 700; }
.gd-fit { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gd-ink-soft); }
.gd-fit__bars { display: flex; gap: 3px; }
.gd-fit__bars i { width: 16px; height: 8px; border-radius: 2px; background: #dde3d9; }
.gd-fit__bars i.on { background: var(--gd-green); }
.gd-fit strong { color: var(--gd-ink); }

/* ---------- Strain finder ---------- */
.gd-finder { background: var(--gd-navy); color: #fff; }
.gd-finder__inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.gd-finder__q { flex: 1 1 420px; min-width: 0; }
.gd-finder__kicker { margin: 0 0 8px; color: var(--gd-sage); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.gd-finder h2 { margin: 0 0 24px; font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); color: #fff; }
.gd-finder__step { margin-bottom: 20px; }
.gd-finder__step > div:first-child { font-weight: 700; margin-bottom: 8px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-chips button { height: 44px; padding: 0 18px; border-radius: var(--gd-pill); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; transition: background .15s, border-color .15s, color .15s; }
.gd-chips button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.gd-chips button[aria-pressed="true"] { background: var(--gd-sage); border-color: var(--gd-sage); color: var(--gd-ink); }
.gd-finder__results { flex: 1 1 460px; min-width: 0; background: #fff; color: var(--gd-ink); border-radius: 20px; padding: 22px; align-self: flex-start; }
.gd-finder__count { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.gd-finder__count strong { font-size: 20px; }
.gd-finder__count span { font-size: 13px; color: var(--gd-ink-soft); }
.gd-finder__row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--gd-line); text-decoration: none; color: var(--gd-ink); border-radius: 8px; transition: background .15s; }
.gd-finder__row:hover { background: var(--gd-tint); color: var(--gd-ink); }
.gd-finder__row i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.gd-finder__row span { flex: 1; min-width: 0; }
.gd-finder__row small { display: block; font-size: 13px; color: var(--gd-ink-soft); }
.gd-finder__row em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gd-green-dark); }
.gd-finder__more { display: inline-block; margin-top: 12px; font-weight: 700; }

/* ---------- Season chart ---------- */
.gd-season { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.gd-season > div { flex: 1 1 420px; min-width: 0; }
.gd-season p { color: var(--gd-ink-soft); }
.gd-chart { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 6px 4px; font-size: 13px; align-items: center; }
.gd-chart .m { text-align: center; color: var(--gd-ink-soft); }
.gd-chart .n { font-weight: 700; }
.gd-chart .b { height: 22px; border-radius: 6px; }
.gd-season img { width: 100%; max-width: 560px; height: 300px; object-fit: cover; border-radius: 24px; display: block; }

/* ---------- Trust bar ---------- */
.gd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.gd-trust > div { display: flex; gap: 12px; align-items: start; }
.gd-trust small { display: block; font-size: 14px; color: var(--gd-ink-soft); }

/* ---------- FAQ ---------- */
.gd-faq { max-width: 880px; margin: 0 auto; }
.gd-faq h2 { text-align: center; margin-bottom: 16px; }
.gd-faq details { border-top: 1px solid var(--gd-line); padding: 16px 0; }
.gd-faq details:last-of-type { border-bottom: 1px solid var(--gd-line); }
.gd-faq summary { font-weight: 700; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "+"; color: var(--gd-green); font-size: 20px; line-height: 1; transition: transform .2s; }
.gd-faq details[open] summary::after { transform: rotate(45deg); }
.gd-faq p { margin: 10px 0 0; color: var(--gd-ink-soft); }

/* ---------- Front page wrapper ---------- */
.gd-front .page-content > *:first-child { margin-top: 0; }
.gd-front { overflow-x: clip; }

/* ---------- Mobile header: logo + icons on one row, search below ---------- */
@media (max-width: 640px) {
	.gd-topbar { font-size: 12px; padding: 6px 12px; }
	.gd-header__inner { gap: 10px; }
	.gd-logo { order: 1; flex: 1; }
	.gd-logo img { width: 44px; height: 44px; }
	.gd-logo span { font-size: 18px; }
	.gd-header__actions { order: 2; }
	.gd-header__link { padding: 0 10px; height: 42px; }
	.gd-header__link > span:not(.gd-cart-count) { display: none; }
	.gd-search { order: 3; flex-basis: 100%; height: 44px; }
	.gd-hero__inner { padding-top: 64px; padding-bottom: 72px; }
}

/* Legal notice (inc/legal-notice.php) */
.gd-legal-notice { font-size: 13px; line-height: 1.5; color: var(--gd-ink-soft, #5a6a53); margin: 16px 0 0; }
.gd-legal-notice--product { border-top: 1px solid var(--gd-line, #e1e7dc); padding-top: 12px; }
.gd-legal-notice--page { padding: 12px 14px; border: 1px solid var(--gd-line, #e1e7dc); border-radius: 10px; }
