/*
Theme Name: Greenfield Horticultural Association
Theme URI: https://greenfield.brng.ai
Description: Child theme of Kadence for the Greenfield Horticultural Association demo site. Holds all GHA branding so updates to the Kadence parent never overwrite custom styling.
Author: brng.ai
Template: kadence
Version: 1.1.0
*/

/* =====================================================================
   1. Brand tokens + Kadence global palette override (deep hunter green)
   ===================================================================== */
:root {
  --gha-green-900: #11271a; /* near-black forest: headings, bands, footer, overlays */
  --gha-green-800: #173524;
  --gha-green-700: #1f4530;
  --gha-green-600: #2b5d3c; /* primary: links, buttons */
  --gha-green-500: #356d49;
  --gha-green-300: #8fb59c;
  --gha-green-200: #c4d6c9;
  --gha-green-100: #e9f0ea; /* muted tint bg */
  --gha-cream:     #f6f4ed;
  --gha-gold:      #b08d57; /* antique brass accent — used sparingly */
  --gha-gold-2:    #caa96c;
  --gha-ink:       #1f2b23;
  --gha-muted:     #56655b;

  --global-palette1: #2b5d3c;
  --global-palette2: #1f4530;
  --global-palette3: #11271a;
  --global-palette4: #1f2b23;
  --global-palette5: #3c4a40;
  --global-palette6: #6b7d72;
  --global-palette7: #e9f0ea;
  --global-palette8: #f6f4ed;
  --global-palette9: #ffffff;
  --global-palette-btn-bg: var(--gha-green-600);
  --global-palette-btn-bg-hover: var(--gha-green-700);
}

/* =====================================================================
   2. Typography — serif headings, clean sans body (system stacks only)
   ===================================================================== */
body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gha-ink);
}
h1, h2, h3, h4, h5, h6, .entry-title, .site-title {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.01em;
  color: var(--gha-green-900);
}
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
a { color: var(--gha-green-700); }
a:hover { color: var(--gha-gold); }

/* =====================================================================
   3. Header + sticky + navigation
   ===================================================================== */
#masthead {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17,39,26,.08);
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
.header-navigation .menu-container > ul > li > a { font-weight: 600; }
.header-navigation a:hover { color: var(--gha-green-700) !important; }
/* logo replaces the text title — hide the wordmark text */
.site-branding .site-title-wrap { display: none !important; }
.custom-logo { width: 300px !important; height: auto !important; max-width: 68vw; }

/* =====================================================================
   4. Buttons
   ===================================================================== */
.wp-block-button__link, .kb-button, .button, button, input[type="submit"] {
  border-radius: 6px; font-weight: 600;
}
.gha-hero .wp-block-button .wp-block-button__link {
  background: #ffffff; color: var(--gha-green-800) !important; border: 2px solid #ffffff;
}
.gha-hero .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: #ffffff !important; border: 2px solid rgba(255,255,255,.85);
}
.gha-btn-cream .wp-block-button__link { background: var(--gha-cream); color: var(--gha-green-900); }

/* =====================================================================
   5. Hero (cover block)
   ===================================================================== */
.gha-hero { color: #fff; }
.gha-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; max-width: 16ch; }
.gha-hero p { color: rgba(255,255,255,.94); font-size: 1.12rem; max-width: 52ch; }
.gha-eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--gha-gold-2);
}

/* =====================================================================
   6. Fact strip (understated, gold dot separators)
   ===================================================================== */
.gha-facts { color: var(--gha-muted); font-size: .98rem; }
.gha-facts strong { color: var(--gha-green-800); font-weight: 700; }
.gha-facts .sep { color: var(--gha-gold); padding: 0 .55rem; }

/* =====================================================================
   7. Section helpers
   ===================================================================== */
.gha-eyebrow-dark { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gha-gold); }
.gha-tint { background: var(--gha-cream); }
.gha-tint-green { background: var(--gha-green-100); }
.gha-band-green { background: var(--gha-green-900); color: #fff; }
.gha-band-green h2, .gha-band-green h3 { color: #fff; }
.gha-band-green p { color: rgba(255,255,255,.9); }

/* Editorial split (text + image), with rounded image */
.gha-split .wp-block-image img { border-radius: 12px; }
.gha-checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.gha-checklist li { position: relative; padding: .35rem 0 .35rem 1.6rem; border-bottom: 1px solid var(--gha-green-200); }
.gha-checklist li::before { content: ""; position: absolute; left: 0; top: .85rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gha-gold); }

/* Journal article cards */
.gha-article { position:relative; background: #fff; border: 1px solid var(--gha-green-200); border-radius: 12px; overflow: hidden; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.gha-article:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(17,39,26,.13); cursor:pointer; }
.gha-article h3 a::after { content:""; position:absolute; inset:0; z-index:1; }
.gha-article .wp-block-image { margin: 0; }
.gha-article .wp-block-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gha-article .gha-article-body { padding: 1rem 1.2rem 1.3rem; }
.gha-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--gha-gold); }
.gha-article h3 { margin: .35rem 0 .5rem; font-size: 1.18rem; line-height: 1.25; }
.gha-article h3 a { color: var(--gha-green-900); }

/* Events list (editorial, not cards) */
.gha-events { border-top: 1px solid var(--gha-green-200); }
.gha-events .gha-event { display: flex; gap: 1.25rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--gha-green-200); }
.gha-events .gha-event-date { color: var(--gha-gold); font-weight: 700; min-width: 9.5rem; font-size: .95rem; }
.gha-events .gha-event-title { font-family: Georgia, serif; color: var(--gha-green-900); font-size: 1.18rem; }
.gha-events .gha-event-meta { color: var(--gha-muted); font-size: .95rem; }

/* =====================================================================
   8. Members-only gate callout
   ===================================================================== */
.gha-gate { text-align:center; background:var(--gha-green-100); border:1px solid var(--gha-green-200); border-radius:14px; padding:2.4rem 1.8rem; margin:2.2rem 0; }
.gha-gate-lock { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:#fff; color:var(--gha-green-700); border:1px solid var(--gha-green-200); margin-bottom:1rem; }
.gha-gate-title { display:block; font-family:Georgia,"Iowan Old Style",serif; font-size:1.38rem; color:var(--gha-green-900); margin-bottom:.45rem; }
.gha-gate-text { display:block; color:var(--gha-muted); max-width:48ch; margin:0 auto 1.5rem; font-size:1.02rem; line-height:1.6; }
.gha-gate-actions { display:flex; gap:1.4rem; align-items:center; justify-content:center; flex-wrap:wrap; }
.gha-gate-btn { display:inline-block; background:var(--gha-green-600); color:#fff !important; padding:.74rem 1.6rem; border-radius:8px; font-weight:600; text-decoration:none; }
.gha-gate-btn:hover { background:var(--gha-green-700); color:#fff !important; }
.gha-gate-login { color:var(--gha-green-700) !important; font-weight:600; }
/* strip PMPro's own card wrapper around the gate so only our card shows */
.parent-pageid-7 .pmpro_card { border:0 !important; box-shadow:none !important; background:transparent !important; padding:0 !important; }
.parent-pageid-7 .pmpro_card_content { padding:0 !important; }
.parent-pageid-7 .pmpro_card_actions { display:none !important; }
/* "Members only" badge above the hero title on protected guides */
.gha-member-page .entry-title::before { content:"Members only"; display:block; width:max-content; max-width:90%; margin:0 auto .9rem; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:.7rem; text-transform:uppercase; letter-spacing:.13em; font-weight:700; color:#fff; background:var(--gha-gold); padding:.3rem .85rem; border-radius:5px; }

/* =====================================================================
   9. Footer
   ===================================================================== */
.site-footer, .site-footer-wrap .site-footer-row { background: var(--gha-green-900) !important; }
.site-footer, .site-footer a { color: rgba(255,255,255,.8) !important; }
.site-footer a:hover { color: var(--gha-gold-2) !important; }
.site-footer h2, .site-footer h3, .site-footer .widget-title { color: #fff !important; }

/* =====================================================================
   10. Front page — hide Kadence page-title hero
   ===================================================================== */
.home .entry-hero, .home .entry-hero-container, .home .entry-hero-container-inner, .home header.entry-header { display: none !important; }
.home .content-container, .home .content-area { padding-top: 0 !important; }

/* =====================================================================
   11b. Guide cards (Growing Guides hub) + tags
   ===================================================================== */
.gha-guide-card { position:relative; background:#fff; border:1px solid var(--gha-green-200); border-radius:12px; padding:1.2rem 1.3rem 1.4rem; height:100%; transition: transform .15s ease, box-shadow .15s ease; }
.gha-guide-card:hover { transform: translateY(-3px); box-shadow:0 12px 28px rgba(17,39,26,.13); cursor:pointer; }
.gha-guide-card h3 { margin:.55rem 0 .4rem; font-size:1.15rem; }
.gha-guide-card h3 a { color:var(--gha-green-900); }
/* stretched-link: make the whole card clickable via the title link */
.gha-guide-card h3 a::after { content:""; position:absolute; inset:0; z-index:1; }
.gha-tag { display:inline-block; font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; font-weight:700; color:#fff; background:var(--gha-gold); padding:.16rem .55rem; border-radius:4px; }
.gha-tag.free { background:var(--gha-green-600); }

/* 11c. Pricing cards (Membership) */
.gha-price-card { background:#fff; border:1px solid var(--gha-green-200); border-radius:14px; padding:1.7rem 1.5rem; height:100%; }
.gha-price-card.featured { border:2px solid var(--gha-green-600); box-shadow:0 14px 32px rgba(17,39,26,.12); }
.gha-price-name { font-family:Georgia,serif; font-size:1.4rem; color:var(--gha-green-900); }
.gha-price-amount { font-family:Georgia,serif; font-size:2.5rem; color:var(--gha-green-700); line-height:1; margin:.3rem 0 .2rem; }
.gha-price-amount .per { font-family:inherit; font-size:1rem; color:var(--gha-muted); }
.gha-price-card ul { list-style:none; padding:0; margin:1rem 0 1.3rem; }
.gha-price-card li { padding:.32rem 0 .32rem 1.4rem; position:relative; border-bottom:1px solid var(--gha-green-100); font-size:.97rem; }
.gha-price-card li::before { content:""; position:absolute; left:0; top:.72rem; width:.5rem; height:.5rem; border-radius:50%; background:var(--gha-gold); }
.gha-pill-featured { display:inline-block; font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; font-weight:700; color:#fff; background:var(--gha-green-700); padding:.16rem .55rem; border-radius:4px; margin-bottom:.4rem; }

/* =====================================================================
   11d. Magazine article styling (guide pages = children of "Growing Guides", id 7)
   ===================================================================== */
.parent-pageid-7 .entry-content, .single-post .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.parent-pageid-7 .entry-content > p, .single-post .entry-content > p { font-size: 1.09rem; line-height: 1.78; }
.parent-pageid-7 .entry-content > ul > li, .parent-pageid-7 .entry-content > ol > li, .single-post .entry-content > ul > li, .single-post .entry-content > ol > li { font-size: 1.06rem; line-height: 1.7; margin-bottom: .4rem; }
.parent-pageid-7 .entry-content h2, .single-post .entry-content h2 { margin-top: 2.4rem; }
.gha-standfirst { font-family: Georgia, "Iowan Old Style", serif; font-size: 1.36rem !important; line-height: 1.55; color: var(--gha-green-800); margin-bottom: 1.6rem; }
.parent-pageid-7 .entry-content figure.wp-block-image, .single-post .entry-content figure.wp-block-image { margin: 2.3rem 0; }
.parent-pageid-7 .entry-content figure.wp-block-image img, .single-post .entry-content figure.wp-block-image img { border-radius: 10px; width: 100%; }
.parent-pageid-7 .entry-content figcaption, .single-post .entry-content figcaption, .wp-element-caption { color: var(--gha-muted); font-size: .92rem; text-align: center; margin-top: .55rem; font-style: italic; }
.wp-block-pullquote.gha-pull { border-top: 0; border-bottom: 0; border-left: 4px solid var(--gha-gold); padding: .3rem 0 .3rem 1.6rem; margin: 2.4rem 0; text-align: left; }
.wp-block-pullquote.gha-pull blockquote, .wp-block-pullquote.gha-pull p { font-family: Georgia, serif; font-size: 1.42rem; font-style: italic; color: var(--gha-green-900); line-height: 1.4; }

/* =====================================================================
   11. Small-screen polish
   ===================================================================== */
@media (max-width: 768px) {
  .gha-hero h1 { font-size: 2rem; max-width: none; }
  .gha-events .gha-event { flex-direction: column; gap: .2rem; }
  .gha-events .gha-event-date { min-width: 0; }
}
