/*
Theme Name: Cucu Agro
Theme URI: https://cucuagro.com
Author: Cucu Agro Farms
Author URI: https://cucuagro.com
Description: Custom redesign theme for Cucu Agro Farms — a global agro-export company. Built to mirror the page structure of cucuagroexports.com (Home, About, Agriculture, Products, Gallery, Contact) with a refreshed, modern visual design.
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cucuagro
Tags: agriculture, agro-export, business, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------
   1. CSS VARIABLES — REFRESHED BRAND PALETTE
-------------------------------------------------- */
:root {
  --cucu-green-dark:   #1f3d2b;   /* deep leaf green - headers/footer */
  --cucu-green:        #2f6b3c;   /* primary green */
  --cucu-green-light:  #6fae6a;   /* accent green */
  --cucu-gold:         #d99a32;   /* warm spice gold - CTAs/accents */
  --cucu-cream:        #faf6ee;   /* warm background */
  --cucu-white:        #ffffff;
  --cucu-charcoal:     #2b2b28;   /* body text */
  --cucu-gray:         #6b6b66;   /* muted text */
  --cucu-border:       #e4ddcd;

  --cucu-font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --cucu-font-body:    'Inter', 'Segoe UI', sans-serif;

  --cucu-radius: 14px;
  --cucu-shadow: 0 10px 30px rgba(31, 61, 43, 0.08);
  --cucu-container: 1200px;
}

/* -------------------------------------------------
   2. RESET & BASE
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--cucu-font-body);
  color: var(--cucu-charcoal);
  background: var(--cucu-white);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cucu-green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cucu-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cucu-font-heading);
  color: var(--cucu-green-dark);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; }

.container {
  max-width: var(--cucu-container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--cucu-cream); }
.section--dark { background: var(--cucu-green-dark); color: #eef3ee; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cucu-white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cucu-gold);
  margin-bottom: .6em;
}

.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 50px; }
.section-head.left { margin: 0 0 50px; }

/* -------------------------------------------------
   3. BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn--primary { background: var(--cucu-green); color: var(--cucu-white); }
.btn--primary:hover { background: var(--cucu-green-dark); color: var(--cucu-white); }
.btn--gold { background: var(--cucu-gold); color: var(--cucu-green-dark); }
.btn--gold:hover { background: #c4861f; color: var(--cucu-white); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: var(--cucu-white); color: var(--cucu-green-dark); }

/* -------------------------------------------------
   4. SITE HEADER
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cucu-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title {
  font-family: var(--cucu-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cucu-green-dark);
  margin: 0;
}
.site-title a { color: inherit; }
.site-description { font-size: .8rem; color: var(--cucu-gray); margin: 0; }

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-navigation a {
  color: var(--cucu-charcoal);
  font-weight: 500;
  font-size: .98rem;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--cucu-green); }


.primary-navigation li { position: relative; }
.primary-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: var(--cucu-white);
  border: 1px solid var(--cucu-border);
  border-radius: 10px;
  padding: 10px;
  min-width: 200px;
  box-shadow: var(--cucu-shadow);
  gap: 4px;
}
.primary-navigation li:hover > ul { display: flex; }
.primary-navigation ul ul a { padding: 6px 10px; display: block; border-radius: 6px; }
.primary-navigation ul ul a:hover { background: var(--cucu-cream); }

.menu-toggle {
  display: none;
  background: var(--cucu-green);
  color: var(--cucu-white);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

.header-cta { display: flex; align-items: center; gap: 16px; }

/* -------------------------------------------------
   5. HERO + CAROUSEL
-------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cucu-green-dark), var(--cucu-green));
  color: var(--cucu-white);
  padding: 120px 0;
  overflow: hidden;
}

/* Carousel slides — sit behind the content */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-color: var(--cucu-green-dark);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
/* Dark gradient overlay so text stays readable over any photo */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,61,43,.82) 0%, rgba(47,107,60,.65) 100%);
}

/* Gold radial glow stays on top of slides */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 80% 30%, rgba(217,154,50,.2), transparent 55%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: var(--cucu-white); }
.hero p.lede { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* Dot navigation */
.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 2px solid rgba(255,255,255,.5);
  padding: 0;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.hero-dot.is-active {
  background: var(--cucu-gold);
  border-color: var(--cucu-gold);
  transform: scale(1.35);
}
.hero-dot:hover { background: rgba(255,255,255,.7); }

/* -------------------------------------------------
   6. CARDS / GRIDS
-------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cucu-white);
  border: 1px solid var(--cucu-border);
  border-radius: var(--cucu-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--cucu-shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { color: var(--cucu-gray); font-size: .96rem; }

.step-card { text-align: center; padding: 32px 20px; }
.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cucu-cream);
  color: var(--cucu-green);
  font-weight: 700;
  font-family: var(--cucu-font-heading);
  margin-bottom: 16px;
}

.value-card {
  background: var(--cucu-cream);
  border-radius: var(--cucu-radius);
  padding: 28px;
}
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--cucu-gray); margin-bottom: 0; font-size: .95rem; }

.stat { text-align: center; }
.stat .stat__number {
  font-family: var(--cucu-font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--cucu-gold);
}
.stat .stat__label { color: var(--cucu-gray); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* -------------------------------------------------
   7. PRODUCTS
-------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card__media { aspect-ratio: 1 / 1; }
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-hero__media img { border-radius: var(--cucu-radius); box-shadow: var(--cucu-shadow); }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; }
.spec-table th, .spec-table td {
  border: 1px solid var(--cucu-border);
  padding: 10px 14px;
  text-align: left;
}
.spec-table th { background: var(--cucu-cream); color: var(--cucu-green-dark); }
.spec-table tr:nth-child(even) td { background: #fbfaf5; }

/* -------------------------------------------------
   8. GALLERY
-------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--cucu-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }

/* -------------------------------------------------
   9. TEAM / TESTIMONIALS
-------------------------------------------------- */
.team-card { text-align: center; }
.team-card__media { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; max-width: 160px; margin: 0 auto 16px; }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--cucu-gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }

.testimonial {
  background: var(--cucu-white);
  border: 1px solid var(--cucu-border);
  border-radius: var(--cucu-radius);
  padding: 28px;
}
.testimonial__quote { font-style: italic; color: var(--cucu-charcoal); }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial__author strong { display: block; }
.testimonial__author span { font-size: .85rem; color: var(--cucu-gray); }

/* -------------------------------------------------
   10. CONTACT
-------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: grid; gap: 20px; }
.contact-info .item {
  background: var(--cucu-cream);
  border-radius: var(--cucu-radius);
  padding: 20px 24px;
}
.contact-info .item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-info .item p { margin-bottom: 0; color: var(--cucu-gray); }

.contact-form-wrap {
  background: var(--cucu-white);
  border: 1px solid var(--cucu-border);
  border-radius: var(--cucu-radius);
  padding: 32px;
  box-shadow: var(--cucu-shadow);
}
.wpcf7-form p, .contact-form-wrap form p { margin-bottom: 16px; }
.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select,
.contact-form-wrap input, .contact-form-wrap textarea, .contact-form-wrap select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cucu-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus,
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus { outline: 2px solid var(--cucu-green-light); }

/* -------------------------------------------------
   11. FOOTER
-------------------------------------------------- */
.site-footer {
  background: var(--cucu-green-dark);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
}
.site-footer h3 { color: var(--cucu-white); font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--cucu-gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
}

/* -------------------------------------------------
   12. UTILITIES / WP DEFAULTS
-------------------------------------------------- */
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.alignwide { max-width: calc(var(--cucu-container) + 120px); margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--cucu-green-dark);
  color: var(--cucu-white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* -------------------------------------------------
   13. TRUST BADGES & CERTIFICATES
-------------------------------------------------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(111,174,106,.15);
  border: 1px solid var(--cucu-green-light);
  color: var(--cucu-green-dark);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.trust-badge:hover { background: rgba(111,174,106,.3); color: var(--cucu-green-dark); }
.trust-badge__icon { color: var(--cucu-green); font-weight: 700; }
.trust-badge--plain { cursor: default; }

/* Trust badges inside dark hero — white pill style */
.hero .trust-badges { margin: 24px 0 0; gap: 10px; }
.hero .trust-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: .82rem;
  padding: 5px 14px;
}
.hero .trust-badge:hover { background: rgba(255,255,255,0.28); color: #fff; }
.hero .trust-badge__icon { color: #a8e6a3; }
.hero .trust-badge--plain { color: rgba(255,255,255,0.85); }

/* Certificates page */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cert-card {
  background: var(--cucu-white);
  border: 2px solid var(--cucu-border);
  border-radius: var(--cucu-radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cucu-green), var(--cucu-gold));
}
.cert-card .cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cucu-green), var(--cucu-green-light));
  color: var(--cucu-white);
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.cert-card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.cert-card .cert-issuer { color: var(--cucu-gray); font-size: .9rem; margin-bottom: 20px; }
.cert-meta { display: grid; gap: 10px; margin: 20px 0; }
.cert-meta .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cucu-cream);
  border-radius: 6px;
  font-size: .9rem;
}
.cert-meta .meta-row span:first-child { color: var(--cucu-gray); min-width: 140px; flex-shrink: 0; }
.cert-meta .meta-row span:last-child { font-weight: 600; color: var(--cucu-green-dark); text-align: right; }
.cert-valid {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cucu-green);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(47, 107, 60, .08);
  border-radius: 6px;
}

/* -------------------------------------------------
   14. QUOTE FORM
-------------------------------------------------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: flex-start;
}
.quote-form-wrap {
  background: var(--cucu-white);
  border: 1px solid var(--cucu-border);
  border-radius: var(--cucu-radius);
  padding: 36px;
  box-shadow: var(--cucu-shadow);
}
.qf-section-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cucu-gold);
  margin: 0 0 12px;
}
.qf-divider { border: none; border-top: 1px solid var(--cucu-border); margin: 20px 0 16px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.qf-field { display: flex; flex-direction: column; gap: 6px; }
.qf-field--full { grid-column: 1 / -1; }
.qf-field label { font-size: .87rem; font-weight: 600; color: var(--cucu-green-dark); }
.qf-field .req { color: var(--cucu-gold); }
.qf-field input,
.qf-field textarea,
.qf-field select {
  padding: 11px 14px;
  border: 1px solid var(--cucu-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--cucu-white);
  transition: border-color .2s;
}
.qf-field input:focus,
.qf-field textarea:focus,
.qf-field select:focus { outline: none; border-color: var(--cucu-green-light); }
.qf-select-wrap { position: relative; }
.qf-select-wrap select { width: 100%; appearance: none; padding-right: 36px; cursor: pointer; }
.qf-select-arrow {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
  color: var(--cucu-gray);
  font-size: .7rem;
}
.qf-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--cucu-border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qf-counter__btn {
  background: var(--cucu-cream);
  border: none;
  width: 40px; height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--cucu-green-dark);
  transition: background .15s;
}
.qf-counter__btn:hover { background: var(--cucu-border); }
.qf-counter input { border: none; border-left: 1px solid var(--cucu-border); border-right: 1px solid var(--cucu-border); border-radius: 0; text-align: center; width: 60px; font-weight: 600; }
.qf-counter__unit { padding: 0 12px; font-size: .85rem; color: var(--cucu-gray); background: var(--cucu-cream); height: 44px; display: flex; align-items: center; }
.qf-hint { font-size: .8rem; color: var(--cucu-gray); margin: 6px 0 0; }
.qf-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.qf-submit__btn { min-width: 180px; }
.quote-success {
  text-align: center;
  padding: 48px 24px;
}
.quote-success__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--cucu-green);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.quote-error {
  background: #fff0f0;
  border: 1px solid #f5c2c2;
  color: #a00;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.quote-sidebar { display: grid; gap: 16px; position: sticky; top: 100px; }
.quote-sidebar__card {
  background: var(--cucu-cream);
  border-radius: var(--cucu-radius);
  padding: 20px 24px;
  border: 1px solid var(--cucu-border);
}
.quote-sidebar__card h3 { font-size: 1rem; margin-bottom: .4em; }


/* -------------------------------------------------
   14b. SINGLE PRODUCT PAGE
-------------------------------------------------- */

/* Hero band */
.product-hero-band {
  background: var(--cucu-green-dark);
  padding: 52px 0 44px;
}
.product-hero-band__inner {
  max-width: var(--cucu-container);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--cucu-gold); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.product-hero-band__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0 0 .3em;
  font-weight: 700;
}
.product-hero-band__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  margin: 0 0 16px;
}
.product-hero-band__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Main two-column layout */
.product-main-section { padding-top: 56px; }
.product-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Gallery */
.pg-gallery { position: relative; }
.pg-main-wrap {
  border-radius: var(--cucu-radius);
  overflow: hidden;
  background: var(--cucu-cream);
  box-shadow: var(--cucu-shadow);
  position: relative;
}
.pg-main {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.pg-main a { display: block; width: 100%; height: 100%; }
.pg-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}
.pg-main:hover img { opacity: .92; }
.pg-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.42);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.5rem;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
  padding: 0;
}
.pg-arrow:hover { background: rgba(0,0,0,.72); }
.pg-arrow--prev { left: 12px; }
.pg-arrow--next { right: 12px; }
.pg-zoom-hint {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: .72rem;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.38);
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: .04em;
}
.pg-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pg-thumb {
  width: 76px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  transition: border-color .2s, transform .15s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-thumb:hover { transform: translateY(-2px); border-color: var(--cucu-green-light); }
.pg-thumb.is-active { border-color: var(--cucu-green); }

/* Info panel */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.product-uses-band {
  background: linear-gradient(135deg, rgba(47,107,60,.08), rgba(217,154,50,.08));
  border-left: 4px solid var(--cucu-gold);
  border-radius: 0 var(--cucu-radius) var(--cucu-radius) 0;
  padding: 16px 20px;
}
.product-uses-band .eyebrow { display: block; margin-bottom: 4px; }
.product-uses-band p { margin: 0; color: var(--cucu-charcoal); font-size: .95rem; }

.product-description { color: var(--cucu-charcoal); line-height: 1.8; }
.product-description p:first-child { margin-top: 0; }

/* ── Bold "heading" paragraphs inside editor content ── */
.product-description p > strong:only-child,
.product-description p > b:only-child {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cucu-green-dark);
  margin-top: 28px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cucu-border);
  letter-spacing: .01em;
}

/* ── Lists inside editor content ── */
.product-description ul,
.product-description ol {
  margin: 10px 0 18px 0;
  padding-left: 1.4em;
}
.product-description ul { list-style: none; padding-left: 0; }
.product-description ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 7px;
  font-size: .95rem;
}
.product-description ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cucu-gold);
}
.product-description ul li strong,
.product-description ul li b {
  color: var(--cucu-green-dark);
}
.product-description ol li { margin-bottom: 7px; font-size: .95rem; }

/* ── Tables inside editor content (grade / size tables) ── */
.product-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(31,61,43,.07);
}
.product-description table thead tr {
  background: var(--cucu-green-dark);
}
.product-description table thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  border: none;
  text-align: left;
  white-space: nowrap;
}
/* Fallback: first row as header when no <thead> */
.product-description table:not(:has(thead)) tr:first-child td {
  background: var(--cucu-green-dark);
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: none;
  padding: 12px 16px;
}
.product-description table tbody tr { transition: background .15s; }
.product-description table tbody tr:nth-child(even) { background: rgba(47,107,60,.04); }
.product-description table tbody tr:hover { background: rgba(217,154,50,.08); }
.product-description table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cucu-border);
  border-right: 1px solid var(--cucu-border);
  vertical-align: middle;
  color: var(--cucu-charcoal);
}
.product-description table td:first-child {
  font-weight: 600;
  color: var(--cucu-green-dark);
}
.product-description table td:last-child { border-right: none; }

/* Wrap table for horizontal scroll on mobile */
.product-description .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Images inside editor content ── */
.product-description img {
  border-radius: 10px;
  box-shadow: var(--cucu-shadow);
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

/* ── Blockquotes ── */
.product-description blockquote {
  border-left: 4px solid var(--cucu-gold);
  margin: 20px 0;
  padding: 14px 20px;
  background: rgba(217,154,50,.07);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--cucu-gray);
}

/* Specs inline (inside info panel) */
.product-specs-inline h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cucu-green-dark);
  margin: 0 0 10px;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 9px 14px; border: 1px solid var(--cucu-border); font-size: .9rem; text-align: left; }
.spec-table th { background: var(--cucu-cream); color: var(--cucu-green-dark); font-weight: 600; width: 42%; }
.spec-table tr:nth-child(even) td { background: #fbfaf5; }

/* CTA group */
.product-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* Trust row */
.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cucu-green);
  padding-top: 4px;
  border-top: 1px solid var(--cucu-border);
}

/* Card sub-title (related products) */
.card__sub { color: var(--cucu-gray); font-size: .88rem; margin: -4px 0 12px; }

/* Archive product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(31,61,43,.12); }


/* -------------------------------------------------
   15. RESPONSIVE — 1024px (tablet landscape)
-------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero__media { order: -1; }
  .hero { padding: 100px 0 60px; }
}

/* -------------------------------------------------
   16. RESPONSIVE — 768px (tablet portrait)
-------------------------------------------------- */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

  /* Header */
  .site-header__inner { position: relative; }
  .primary-navigation { display: none; }
  .primary-navigation.is-toggled { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--cucu-green-dark); z-index: 200; padding: 16px 0; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  .primary-navigation.is-toggled .menu { flex-direction: column; gap: 0; padding: 0; }
  .primary-navigation.is-toggled .menu > li { display: flex; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-navigation.is-toggled .menu > li > a { flex: 1; display: block; padding: 12px 24px; color: rgba(255,255,255,.85); border-bottom: none; }
  .primary-navigation.is-toggled .sub-menu { display: none; width: 100%; position: static; box-shadow: none; background: rgba(0,0,0,.15); padding: 0; }
  .primary-navigation.is-toggled .sub-menu.sub-open { display: block; }
  .primary-navigation.is-toggled .sub-menu li a { padding: 10px 24px 10px 40px; font-size: .88rem; }
  /* Sub-toggle chevron — only visible inside mobile nav */
  .sub-toggle { display: none; }
  .primary-navigation.is-toggled .sub-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; padding: 12px 16px; font-size: .7rem; transition: transform .2s; flex-shrink: 0; }
  .primary-navigation.is-toggled .sub-toggle.is-open { transform: rotate(180deg); }
  .menu-toggle { display: flex; }

  /* Grids */
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Hero */
  .hero { padding: 80px 0 50px; }
  .hero .trust-badges { gap: 8px; }

  /* Sections */
  .section { padding: 60px 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Certificates */
  .cert-grid { grid-template-columns: 1fr; }
  .cert-meta .meta-row { flex-direction: column; gap: 4px; }
  .cert-meta .meta-row span:last-child { text-align: left; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Quote form */
  .qf-row { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Product page */
  .product-two-col { grid-template-columns: 1fr; }
  .pg-thumbs { justify-content: flex-start; }
  .product-trust-row { gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------
   17. RESPONSIVE — 480px (mobile)
-------------------------------------------------- */
@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Typography */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  /* Header */
  .site-header { padding: 12px 0; }
  .header-cta .btn { padding: 9px 16px; font-size: .85rem; }

  /* Grids collapse to 1 col */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 70px 0 40px; }
  .hero__inner .lede { font-size: 1rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Section */
  .section { padding: 48px 0; }

  /* Quote form */
  .qf-row { grid-template-columns: 1fr; }
  .quote-form-wrap { padding: 20px 16px; }
  .qf-counter { width: 100%; justify-content: flex-start; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 16px; }

  /* Buttons */
  .btn { width: 100%; justify-content: center; }
  .hero .btn, .cta-band .btn { width: auto; }

  /* Cert */
  .cert-card { padding: 24px 16px; }
  /* Product page */
  .product-hero-band { padding: 36px 0 28px; }
  .product-hero-band__title { font-size: 1.7rem; }
  .product-cta-group { flex-direction: column; }
  .product-cta-group .btn { width: 100%; justify-content: center; }
  .product-grid { grid-template-columns: 1fr; }
  .pg-thumb { width: 60px; height: 52px; }

  /* Product description tables: scroll on mobile */
  .product-description table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 0;
  }
  .product-description table td,
  .product-description table th { padding: 9px 12px; font-size: .82rem; }
}