/* 
========================================================================
  LIVESTOCK PLUS - CORE DESIGN SYSTEM & MASTER STYLESHEET
  Senior-Grade Native CSS3 Architecture (No Frameworks, No Bootstrap)
========================================================================
*/

/* --- Google Fonts Integration --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Root Variables Design System --- */
:root {
  /* Elegant AgriTech Color Palette */
  --color-forest: #143525;
  --color-forest-dark: #0A1E14;
  --color-forest-light: #204C37;
  --color-moss: #2E5A44;
  --color-cream: #FDFBF7;
  --color-sage: #EAEDE6;
  --color-sage-light: #F2F4F0;
  --color-gold: #C08C36;
  --color-gold-pale: #FDF9F0;
  --color-clay: #A86543;
  
  /* Text Neutrals */
  --text-primary: #1A2C22;
  --text-secondary: #5A6D60;
  --text-muted: #8E9F94;
  --text-white: #FFFFFF;
  
  /* Layout Spacing (Fluid Scale) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 80px;
  --space-xxl: 120px;

  /* Typography Scale */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Design Details */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(20, 53, 37, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 53, 37, 0.06);
  --shadow-lg: 0 24px 64px rgba(20, 53, 37, 0.09);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-subtle: 1px solid rgba(46, 90, 68, 0.12);
}

/* --- Base Layout & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Display Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-weight: 700;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

/* --- UI Component Elements & Utilities --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-sage);
  border: var(--border-subtle);
  color: var(--color-forest);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
}

/* --- Button Mechanics --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-forest);
  border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
  background-color: var(--color-sage);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-forest-dark);
}

.btn-gold:hover {
  background-color: #d19f43;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- High-contrast Pill Button matching user image --- */
.btn-pill-light {
  background-color: var(--text-white);
  color: var(--color-forest-dark);
  border-radius: var(--radius-full);
  padding: 10px 10px 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(10, 30, 20, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.btn-pill-light:hover {
  background-color: #f7f5f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 30, 20, 0.25);
}

.btn-pill-arrow {
  width: 32px;
  height: 32px;
  background-color: var(--color-forest-dark);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-pill-light:hover .btn-pill-arrow {
  transform: translateX(4px);
  background-color: var(--color-gold);
}

/* --- Glassmorphic Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-subtle);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-forest);
  text-decoration: none;
}

.logo svg {
  color: var(--color-gold);
}

.logo > div > span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-forest);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-forest);
}

.mobile-only-nav-item {
  display: none !important;
}

/* --- Hero Section Layout --- */
.hero-section {
  padding: calc(var(--space-xl) * 1.3) 0 calc(var(--space-xl) * 1.1);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(10, 30, 20, 0.45) 0%, rgba(10, 30, 20, 0.75) 100%), url('../images/farmland_hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--text-white);
}

.hero-content h1 span {
  color: var(--color-gold);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: var(--space-lg);
  max-width: 580px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-md);
  margin-top: calc(var(--space-md) * 1.5);
}

.hero-badge-item h4 {
  font-size: 28px;
  font-family: var(--font-display);
  color: var(--color-gold);
}

.hero-badge-item p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* --- Interactive Hero Dashboard Card --- */
.hero-display-card {
  background-color: var(--text-white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-header-feed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  border-bottom: var(--border-subtle);
  padding-pb: var(--space-sm);
}

.card-header-feed h3 {
  font-size: 18px;
  color: var(--color-forest);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10B981;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.telemetry-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.telemetry-node {
  background-color: var(--color-cream);
  border: var(--border-subtle);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.telemetry-node span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.telemetry-node h4 {
  font-size: 22px;
  color: var(--color-forest);
  margin-top: 4px;
  font-family: var(--font-display);
}

.wave-graph-svg {
  width: 100%;
  height: auto;
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: #FAFAF9;
}

/* --- Dynamic Value Metrics Section --- */
.metrics-strip-section {
  background-color: var(--color-forest);
  color: var(--text-white);
  padding: var(--space-lg) 0;
}

.metrics-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.metric-strip-item h2 {
  font-size: 44px;
  color: var(--color-gold);
  font-family: var(--font-display);
}

.metric-strip-item p {
  color: var(--color-sage);
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* --- Bento Features Grid Section --- */
.features-section {
  padding: var(--space-xxl) 0;
}

.section-intro-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-xl);
}

.section-intro-center h2 {
  font-size: 40px;
  color: var(--color-forest);
  margin-top: var(--space-sm);
}

.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-bento-card {
  background-color: var(--text-white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.feature-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-moss);
}

.feature-bento-card .icon-box {
  background-color: var(--color-sage);
  color: var(--color-forest);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-bento-card h3 {
  font-size: 20px;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.feature-bento-card p {
  font-size: 14px;
  line-height: 1.6;
}

.feature-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  transition: var(--transition-smooth);
}

.feature-link:hover {
  gap: 10px;
}

/* --- Interactive Environmental Grazing Panel --- */
.grazing-section {
  background-color: var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  color: var(--text-white);
  margin-bottom: var(--space-xxl);
  position: relative;
  overflow: hidden;
}

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

.grazing-tag {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grazing-header h2 {
  color: var(--text-white);
  font-size: 38px;
  margin: var(--space-sm) 0;
}

.grazing-header p {
  color: #a3b8aa;
  font-size: 15px;
  margin-bottom: var(--space-md);
}

.bullet-item {
  display: flex;
  gap: 16px;
  margin-bottom: var(--space-sm);
}

.bullet-item svg {
  color: var(--color-gold);
  shrink: 0;
  margin-top: 2px;
}

.bullet-item h4 {
  color: var(--text-white);
  font-size: 15px;
}

.bullet-item p {
  color: #a3b8aa;
  font-size: 13px;
  margin-top: 2px;
}

/* Interactive Pasture Monitor */
.pasture-monitor {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  space-y: var(--space-md);
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.monitor-header h3 {
  color: var(--text-white);
  font-size: 15px;
}

.monitor-header span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
}

.progress-group {
  margin-bottom: var(--space-sm);
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.progress-bar-container {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.monitor-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a3b8aa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitor-footer svg {
  color: var(--color-gold);
}

/* --- Testimonials Board Section & Slider --- */
.testimonials-slider-container {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-sage-light);
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  text-align: center;
  margin-bottom: var(--space-xxl);
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(15px);
  padding: 0 60px;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-forest);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

.testimonial-author h4 {
  font-size: 16px;
  color: var(--color-forest);
}

.testimonial-author p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Arrow controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-forest);
  color: var(--color-gold);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-moss);
  color: var(--color-gold);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(46, 90, 68, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--color-forest);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
  .testimonial-slide {
    padding: 0 10px;
  }
  .testimonials-slider {
    min-height: 320px; /* give more room on vertical stack */
  }
}

/* --- Standard CTA Section --- */
.cta-banner-section {
  text-align: center;
  padding: var(--space-xl);
  max-width: 720px;
  margin: var(--space-xl) auto;
}

.cta-banner-section h2 {
  font-size: 44px;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.cta-banner-section p {
  font-size: 16px;
  margin-bottom: var(--space-lg);
}

/* --- Corporate Footer System --- */
.site-footer {
  background-color: var(--color-forest-dark);
  color: #a3b8aa;
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-description-col h3 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.footer-description-col p {
  color: #a3b8aa;
  font-size: 14px;
  max-width: 320px;
}

.footer-description-col > .socials{
  margin-top: 24px;
  display: flex;
  gap: 20px;
}

.footer-column h4 {
  color: var(--text-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a3b8aa;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(163, 184, 170, 0.6);
}

.footer-bottom-bar .tag-band {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* --- Pulse Keyframe Animation --- */
@keyframes pulse {
  0 {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ========================================================================
   LIVESTOCK PLUS - COMPREHENSIVE RESPONSIVE DESIGN SYSTEM MEDIA QUERIES
   Adapts fonts, spacings, grids, headers, and menus elegantly for all views
   ======================================================================== */

/* --- Tablet / Large Mobile (max-width: 992px) --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 48px;
    max-width: 640px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .metrics-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .features-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .grazing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* --- Mobile / Touch Interactivity Breakpoint (max-width: 860px) --- */
@media (max-width: 860px) {
  /* Dynamic Header Responsiveness */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: var(--border-subtle);
    background-color: var(--color-sage);
    color: var(--color-forest);
    transition: var(--transition-smooth);
    z-index: 1010;
  }

  .mobile-menu-btn:hover {
    background-color: var(--color-sage-light);
    color: var(--color-gold);
  }

  .mobile-menu-btn.active svg {
    stroke: var(--color-gold);
  }

  /* Compact Navbar Navigation Fallback */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    border-bottom: var(--border-subtle);
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    display: block;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
  }

  .nav-link:hover, .nav-link.active {
    background-color: var(--color-sage-light);
    color: var(--color-forest);
  }

  .nav-link.active::after {
    display: none; /* Rely on background block highlights for cleaner mobile look */
  }

  /* Push action button into header center or simplify, here we shrink its scope */
  .header-action-button {
    display: none;
  }

  .mobile-only-nav-item {
    display: block !important;
  }
}

/* --- Small Mobile / Narrow Viewport (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Harmonious Spacing Contraction */
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
    --space-xxl: 72px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .logo {
    font-size: 20px;
    white-space: nowrap;
  }

  /* Fluid Display Typography Scaling */
  h1, .hero-content h1, .contact-hero h1, .about-hero h1, .services-hero h1, .faq-hero h1 {
    font-size: 36px !important;
  }

  h2, .section-intro-center h2, .grazing-header h2, .story-content h2, .cta-banner-section h2 {
    font-size: 26px !important;
  }

  .hero-badges-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    width: 100%;
  }

  .hero-badge-item h4 {
    font-size: 20px;
  }

  .features-bento-grid {
    grid-template-columns: 1fr;
  }

  .feature-bento-card {
    min-height: auto;
    padding: var(--space-md);
  }
}

/* --- Micro-Mobile / Ultra Narrow Screen (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badges-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    border-top: var(--border-subtle);
    padding-top: var(--space-md);
  }

  .metrics-strip-grid {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

/* ========================================================================
   NAVIGATION DROPDOWNS & SUBMENUS (ADDED FOR LIVESTOCKPLUS DESIGN REQUEST)
   ======================================================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 8px;
  color: var(--color-gold);
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown Submenu Container */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  border: 1px solid rgba(46, 90, 68, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(20, 53, 37, 0.12), 0 8px 10px -6px rgba(20, 53, 37, 0.08);
  padding: 8px 0;
  min-width: 210px;
  z-index: 1050;
  list-style: none;
  margin-top: 8px;
}

/* Virtual Hover Bridge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
  animation: navFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--color-sage-light);
  color: var(--color-forest);
}

/* Underline active rules adjustment for dropdown parent */
.nav-dropdown.is-open .nav-link.active::after,
.nav-dropdown .nav-link.active::after {
  width: 100%;
}

/* Mobile responsive dropdown behavior adaptation */
@media (max-width: 991px) {
  .nav-dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-gold);
    border-radius: 0;
    padding: 0 0 0 12px;
    margin: 4px 0 8px 12px;
    background-color: transparent;
    min-width: unset;
    animation: none;
  }
  
  .nav-dropdown.is-open .dropdown-menu,
  .nav-dropdown.active-mobile .dropdown-menu {
    display: block;
  }
}
