/* =================================================================
   GOLDENWOOD AGRO — Homepage Sections (v2, matches goldenwood-agro.com)
   ================================================================= */

/* ── Elementor Full-Screen Hero Fix ──────────────────────────────── */
.elementor-section-height-screen {
  min-height: 100vh !important;
}
/* Fix overlay opacity (Elementor defaults to 0.5 when not set) — all homepage lang variants */
.elementor-23 .elementor-background-overlay,
.elementor-78 .elementor-background-overlay,
.elementor-79 .elementor-background-overlay {
  opacity: 1 !important;
}

/* ── Section Padding ─────────────────────────────────────────────── */
.gw-section-pad { padding: 80px 0; }

/* ── Section Titles ──────────────────────────────────────────────── */
.gw-section-title {
  font-family: var(--gw-font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 40px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gw-section-title--center { text-align: center; }
.gw-section-title--green  { color: var(--gw-primary); }

.gw-subsection-title {
  font-family: var(--gw-font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.gw-title-line {
  width: 54px;
  height: 3px;
  background: var(--gw-accent);
  margin: 0 0 22px;
  border-radius: 2px;
}

.gw-label-caps {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gw-primary);
  margin: 22px 0 8px;
}

.gw-list-bullet {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.gw-list-bullet li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}
.gw-list-bullet li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gw-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════ */
.gw-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0d2010;
}

.gw-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gw-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.gw-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(13,32,16,.88) 0%,
    rgba(26,61,32,.78) 40%,
    rgba(26,61,32,.38) 78%,
    transparent 100%
  );
}

.gw-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--gw-container-max);
  margin: 0 auto;
  padding: 80px var(--gw-container-pad);
}

.gw-hero__inner { max-width: 640px; }

.gw-hero__title {
  font-family: var(--gw-font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.gw-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin: 0 0 36px;
  font-style: italic;
}

.gw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .gw-hero { min-height: 85vh; }
  .gw-hero__content { padding: 60px var(--gw-container-pad); }
  .gw-hero__inner { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 1 — ABOUT / SEEDLINGS
   ════════════════════════════════════════════════════════════════ */
.gw-about-section { background: #fff; }

.gw-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.gw-about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,.13);
  display: block;
}

/* Mini Stats */
.gw-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 28px;
}

.gw-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px;
  background: #f8faf8;
}
.gw-mini-stat--mid { background: var(--gw-primary); }
.gw-mini-stat--mid .gw-mini-stat__num,
.gw-mini-stat--mid .gw-mini-stat__label { color: #fff !important; }

.gw-mini-stat__num {
  font-family: var(--gw-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gw-primary);
  line-height: 1.1;
  margin-bottom: 5px;
}
.gw-mini-stat__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #666;
}

@media (max-width: 900px) {
  .gw-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .gw-about-img { order: -1; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 2 — INVESTMENTS IN GROWTH
   ════════════════════════════════════════════════════════════════ */
.gw-invest-section { background: #f7faf7; }

.gw-invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.gw-invest-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,.13);
  display: block;
}

.gw-insight {
  border-left: 4px solid var(--gw-accent);
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0 0;
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

@media (max-width: 900px) {
  .gw-invest-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 3 — BY THE NUMBERS
   ════════════════════════════════════════════════════════════════ */
.gw-numbers-section { background: #fff; }

.gw-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.gw-number-item {
  text-align: center;
  padding: 40px 24px 32px;
  background: #f7faf7;
  border-radius: 10px;
  border-top: 4px solid var(--gw-accent);
  transition: transform .25s, box-shadow .25s;
}
.gw-number-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.10);
}

.gw-number-item__num {
  display: block;
  font-family: var(--gw-font-heading);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--gw-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.gw-number-item__title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gw-accent);
  margin-bottom: 12px;
}
.gw-number-item__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

.gw-numbers-quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  font-style: italic;
}

@media (max-width: 768px) {
  .gw-numbers-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 4 — GLOBAL ECOSYSTEM / CAROUSEL
   ════════════════════════════════════════════════════════════════ */
.gw-ecosystem-section { background: #f7faf7; }

.gw-ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.gw-ecosystem-footer-text {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  font-style: italic;
}

/* Carousel */
.gw-ecosystem-carousel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

.gw-eco-slide { display: none; }
.gw-eco-slide.active { display: block; }

.gw-eco-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 10/9;
  object-fit: cover;
}

.gw-eco-prev,
.gw-eco-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.gw-eco-prev { left: 12px; }
.gw-eco-next { right: 12px; }
.gw-eco-prev:hover,
.gw-eco-next:hover { background: rgba(0,0,0,.72); }

.gw-eco-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  z-index: 10;
}
.gw-eco-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .2s;
}
.gw-eco-dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .gw-ecosystem-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 5 — PRODUCTS (WooCommerce)
   ════════════════════════════════════════════════════════════════ */
.gw-products-section {
  background: #fff;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 6 — WHY CHOOSE GOLDEN WOOD
   ════════════════════════════════════════════════════════════════ */
.gw-why-section { background: #f7faf7; }

.gw-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gw-why-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 24px 28px;
  border-top: 4px solid var(--gw-primary);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.gw-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.gw-why-card__title {
  font-family: var(--gw-font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gw-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}
.gw-why-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.72;
  margin: 0;
}

@media (max-width: 1024px) {
  .gw-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .gw-why-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 7 — FAQ
   ════════════════════════════════════════════════════════════════ */
.gw-faq-section { background: #fff; }

.gw-faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.gw-faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.gw-faq-item:hover { box-shadow: 0 3px 14px rgba(0,0,0,.07); }
.gw-faq-item.active { border-color: var(--gw-green-200); }

.gw-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  user-select: none;
  transition: background .15s;
}
.gw-faq-question:hover { background: #eef5ef; }
.gw-faq-item.active .gw-faq-question {
  color: var(--gw-primary);
  background: #eef5ef;
}

.gw-faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background .2s, border-color .2s;
}
.gw-faq-icon::after {
  content: '+';
  font-size: 16px;
  color: #888;
  line-height: 1;
}
.gw-faq-item.active .gw-faq-icon {
  background: var(--gw-primary);
  border-color: var(--gw-primary);
}
.gw-faq-item.active .gw-faq-icon::after {
  content: '−';
  color: #fff;
}

.gw-faq-answer {
  padding: 0 24px 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.78;
  display: none;
}
.gw-faq-item.active .gw-faq-answer {
  display: block;
  animation: gw-fade-down .28s ease;
}

@keyframes gw-fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 8 — CTA BANNER
   ════════════════════════════════════════════════════════════════ */
.gw-cta-banner-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  background: var(--gw-primary);
}

.gw-cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.gw-cta-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13,32,16,.76);
}

.gw-cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gw-container-pad);
}

.gw-cta-banner-inner h2 {
  font-family: var(--gw-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.gw-cta-banner-inner p {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 32px;
}

@media (max-width: 768px) {
  .gw-cta-banner-section { padding: 70px 0; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 9 — LATEST BLOG POSTS
   ════════════════════════════════════════════════════════════════ */
.gw-blog-section { background: #f7faf7; }

.gw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gw-blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
}
.gw-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.gw-blog-card__image {
  display: block;
  overflow: hidden;
}
.gw-blog-card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.gw-blog-card:hover .gw-blog-card__image img {
  transform: scale(1.04);
}

.gw-blog-card__body { padding: 20px 22px 24px; }

.gw-blog-card__date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.gw-blog-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.gw-blog-card__title a {
  color: #222;
  text-decoration: none;
  transition: color .2s;
}
.gw-blog-card__title a:hover { color: var(--gw-primary); }

@media (max-width: 900px) {
  .gw-blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .gw-blog-grid { grid-template-columns: 1fr; }
}

/* ── Elementor HTML widget CTA button text colour ───────────────────────────
   astra-overrides.css applies  a { color: var(--gw-primary) !important }
   which overrides inline  color:#fff  on EVERY anchor tag, including our
   custom HTML-widget CTA buttons (GET A BUSINESS PLAN, DISCUSS PARTNERSHIP,
   PRODUCT CATALOG, ABOUT US).
   Fix: target anchors that carry an inline background colour declaration —
   that pattern uniquely identifies our button links vs. plain text links.   */

/* Hero section buttons (full-screen overlay) — all links white by default */
.elementor-section-height-screen .elementor-widget-html a {
  color: #ffffff !important;
}
/* Exception: white-background button in hero (ABOUT US) must show dark text */
.elementor-section-height-screen .elementor-widget-html a[style*="background:#ffffff"] {
  color: #1A3D20 !important;
}

/* All other sections — buttons with dark-green or gold backgrounds */
.elementor-widget-html a[style*="background:#1A3D20"],
.elementor-widget-html a[style*="background:#1C2B1E"],
.elementor-widget-html a[style*="background:#1a5d48"],
.elementor-widget-html a[style*="background:#C8962A"] {
  color: #ffffff !important;
  text-decoration: none !important;
}
.elementor-widget-html a[style*="background:#1A3D20"]:hover,
.elementor-widget-html a[style*="background:#1C2B1E"]:hover,
.elementor-widget-html a[style*="background:#1a5d48"]:hover,
.elementor-widget-html a[style*="background:#C8962A"]:hover {
  color: #ffffff !important;
  opacity: 0.88;
}

/* White-background button (ABOUT US secondary) — dark green text */
.elementor-widget-html a[style*="background:#ffffff"] {
  color: #1A3D20 !important;
  text-decoration: none !important;
}
.elementor-widget-html a[style*="background:#ffffff"]:hover {
  color: #1A3D20 !important;
  opacity: 0.88;
}

/* Transparent outline button (DISCUSS PARTNERSHIP on light bg) — dark green text */
.elementor-widget-html a[style*="border:1px solid #1A3D20"] {
  color: #1A3D20 !important;
  text-decoration: none !important;
}
.elementor-widget-html a[style*="border:1px solid #1A3D20"]:hover {
  color: #1A3D20 !important;
  background: rgba(26,61,32,0.06) !important;
}

/* White outline button (DISCUSS PARTNERSHIP on dark image CTA bg) — white text */
.elementor-widget-html a[style*="border:2px solid rgba(255,255,255"] {
  color: #ffffff !important;
  text-decoration: none !important;
}
.elementor-widget-html a[style*="border:2px solid rgba(255,255,255"]:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.12) !important;
}

/* ── Astra scroll-to-top button — round green ────────────────────────────── */
#ast-scroll-top {
  background: #1a5d48 !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#ast-scroll-top:hover {
  background: #1A3D20 !important;
  opacity: 1 !important;
}
#ast-scroll-top svg,
#ast-scroll-top i,
#ast-scroll-top::before,
#ast-scroll-top::after {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* ── Hero: push content to bottom of full-screen section ───────────────────
   Elementor adds .elementor-section-content-bottom which sets
   align-items:flex-end on .elementor-container — but the container only
   stretches if the *section* is a flex column and the container is flex:1. */
.elementor-section-height-screen {
  display: flex !important;
  flex-direction: column !important;
}
.elementor-section-height-screen > .elementor-container {
  flex: 1 !important;
  align-items: flex-end !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO FIX — float header above the full-screen hero section.
   Problem: position:sticky takes up ~123px of document-flow space.
   Astra also adds margin-top:4em (60px) on #primary.  Together they push
   the hero section to page y=215.  With content_position:bottom, the
   sub-heading and CTA buttons end up at page y≈790 — 143 px below the
   647px viewport fold.  The user sees the hero image but no CTA banner.
   Fix: float the header (position:fixed, no flow-space) + zero the margin.
   Scoped to body.home so other pages are unaffected.
   ═══════════════════════════════════════════════════════════════════════════ */
body.home .gw-site-header {
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1000;
}
body.home.admin-bar .gw-site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.home.admin-bar .gw-site-header {
    top: 46px !important;
  }
}
/* Remove Astra's 4em top-margin now that the header is out of document flow */
body.home #primary {
  margin-top: 0 !important;
}
