/* ============================================
   WHEATRON AGRO — GLOBAL CSS DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:wght@300;400;500;600&family=Cinzel:wght@400;600&display=swap');

/* ── ROOT VARIABLES ── */
:root {
  /* Primary Palette */
  --green-light:    #6db33f;
  --green-mid:      #4a9c22;
  --green-dark:     #1e5c0e;
  --green-deep:     #0f3205;
  --green-pale:     #eaf4e0;
  --green-muted:    #c8e6b0;

  /* Accent */
  --blue-bright:    #2a7de1;
  --blue-mid:       #1a5fbb;
  --blue-pale:      #ddeeff;

  /* Neutrals */
  --cream:          #fdf9f2;
  --wheat-warm:     #f5ead4;
  --wheat-dark:     #c8a96e;
  --text-dark:      #1a2614;
  --text-mid:       #3d5a2c;
  --text-muted:     #7a9066;
  --white:          #ffffff;
  --border:         #d8e8c8;
  --shadow-color:   rgba(30, 92, 14, 0.12);

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-accent:    'Cinzel', serif;
  --font-body:      'DM Sans', sans-serif;

  /* Spacing */
  --section-pad:    100px;
  --section-pad-sm: 60px;
  --container:      1240px;
  --radius:         12px;
  --radius-lg:      24px;

  /* Transitions */
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       200ms;
  --dur-mid:        400ms;
  --dur-slow:       700ms;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); }

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  height: 1px;
  width: 32px;
  background: var(--green-light);
  display: block;
}
.section-label::before { display: none; }

/* ── SECTION TITLE ── */
.section-title {
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--green-mid);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107, 179, 63, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107, 179, 63, 0.45);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--green-light);
  color: var(--green-dark);
}
.btn-secondary:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
}
.btn-white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow-color);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

/* ── HERO BANNER (inner pages) ── */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,50,5,0.72) 0%, rgba(30,92,14,0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-hero-content h1 { color: var(--white); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--green-muted); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── SCROLL ANIMATIONS ── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] {
  transform: translateX(-40px);
}
[data-aos="fade-left"].aos-visible {
  transform: translateX(0);
}
[data-aos="fade-right"] {
  transform: translateX(40px);
}
[data-aos="fade-right"].aos-visible {
  transform: translateX(0);
}
[data-aos="zoom-in"] {
  transform: scale(0.88);
}
[data-aos="zoom-in"].aos-visible {
  transform: scale(1);
}

/* ── DELAY VARIANTS ── */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--blue-bright));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── TAG ── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid var(--green-muted);
}

/* ── FOOTER ── */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.92rem; line-height: 1.8; margin: 16px 0 24px; color: rgba(255,255,255,0.6); }
.footer-logo-img { height: 50px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover { color: var(--green-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(107,179,63,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.footer-contact-item p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color var(--dur-fast); }
.footer-bottom-links a:hover { color: var(--green-light); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--dur-mid) var(--ease);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;
  transition: all var(--dur-mid) var(--ease);
}
.navbar.scrolled .navbar-inner {
  background: rgba(253,249,242,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(30,92,14,0.1);
  height: 68px;
}

/* Logo */
.navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: height var(--dur-mid) var(--ease);
}
.navbar.scrolled .navbar-logo img { height: 38px; }

/* Desktop nav menu — always visible on desktop */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 6px;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.navbar.scrolled .nav-link { color: var(--text-dark); }
.nav-link:hover { background: rgba(255,255,255,0.12); }
.navbar.scrolled .nav-link:hover { background: var(--green-pale); color: var(--green-dark); }
.nav-link.active { color: var(--green-light); }
.navbar.scrolled .nav-link.active { color: var(--green-mid); }
.nav-link svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform var(--dur-fast); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;           /* flush with bottom of nav-item — no gap */
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  /* top padding acts as invisible bridge over the gap */
  padding: 14px 8px 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  border: 1px solid var(--border);
}
/* Bridge: extend hover area upward so cursor moving from nav-link to dropdown
   doesn't leave .nav-item and trigger close */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.dropdown a:hover { background: var(--green-pale); color: var(--green-dark); }
.dropdown a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
}

/* CTA button in navbar */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all var(--dur-mid) var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--text-dark); }

/* Mobile menu — hidden on desktop, always */
.mobile-menu {
  display: none;
}

/* ── MOBILE BREAKPOINT ── */
@media (max-width: 900px) {
  /* Hide desktop nav elements */
  .navbar-menu { display: none !important; }
  .navbar-cta  { display: none !important; }

  /* Show hamburger */
  .hamburger { display: flex; }

  .navbar-inner { padding: 0 20px; height: 68px; }
  .navbar.scrolled .navbar-inner { height: 60px; }
  .navbar-logo img { height: 40px; }
  .navbar.scrolled .navbar-logo img { height: 34px; }

  /* Mobile slide-in menu */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 1100;
    padding: 24px 24px 40px;
    transform: translateX(100%);
    transition: transform var(--dur-mid) var(--ease);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  }
  .mobile-menu.open { transform: translateX(0); }

  /* Mobile menu close button */
  .mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--wheat-warm);
    color: var(--text-dark);
    margin-bottom: 32px;
    margin-left: auto;
  }

  /* Mobile nav links */
  .mobile-nav-link {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    transition: color var(--dur-fast);
  }
  .mobile-nav-link:hover,
  .mobile-nav-link.active { color: var(--green-mid); }

  /* Backdrop overlay when menu open */
  .mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1099;
  }
  .mobile-backdrop.show { display: block; }
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--ease-bounce) var(--dur-mid), box-shadow var(--dur-mid);
  animation: pulse-wa 2.5s ease infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.2); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ── RESPONSIVE — GLOBAL ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { height: 280px; }
}

/* ── SECTION UTILITIES ── */
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.py-section {
  padding: var(--section-pad) 0;
}
.inner-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  padding: 80px 0;
}
.inner-cta-content {
  text-align: center;
  color: #fff;
}
.inner-cta-content h2 { color: #fff; margin-bottom: 16px; }
.inner-cta-content p  { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 36px; }
.inner-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur-mid);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green-light);
  color: var(--green-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur-mid);
}
.btn-outline:hover { background: var(--green-pale); }

/* Sidebar (inner pages) */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border);
}
.sidebar-card h4 {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.sidebar-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li span { color: var(--text-muted); }
.sidebar-list li strong { color: var(--text-dark); font-weight: 600; }
.sidebar-cta {
  background: var(--wheat-warm);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.sidebar-cta-icon { font-size: 2rem; margin-bottom: 12px; }
.sidebar-cta h4 { font-size: 1.05rem; color: var(--green-deep); margin-bottom: 8px; font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
.sidebar-cta p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

/* Footer shared styles */
.footer { background: var(--green-deep); color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin: 12px 0 20px; }
.footer-col h5 {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--dur-fast); }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-col ul li:not(:has(a)) { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--green-light); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
