/* AgriKinetics Modern Static Site CSS */
/* Modern color palette - earthy greens with clean whites */

:root {
  /* Navy/Deep Blue tones - harmonious with bright green logo (analogous colors) */
  --primary-color: #1e3a5f;
  --primary-dark: #0d1f33;
  --primary-light: #2d5a8a;
  --primary-green: #1e3a5f;
  --primary-green-dark: #0d1f33;
  --primary-green-light: #2d5a8a;
  --accent-gold: #e67e22;
  --accent-gold-light: #f39c12;
  --header-bg: #0d1f33;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --border-light: #dce3eb;
  --shadow-sm: 0 1px 3px rgba(30,58,95,0.08);
  --shadow-md: 0 4px 12px rgba(30,58,95,0.12);
  --shadow-lg: 0 8px 30px rgba(30,58,95,0.15);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-green-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--primary-green-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
  background: var(--primary-green-dark);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--accent-gold-light);
}

.social-links a {
  margin-left: 1rem;
  font-size: 1.1rem;
}

/* Header / Navigation */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-light);
  color: var(--primary-green);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  display: block;
  flex-direction: column;
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
}

.dropdown-header {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  pointer-events: none;
}

.dropdown-header:not(:first-child) {
  margin-top: 0.25rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.5rem 1rem;
}

.view-all-link {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
  padding-top: 0.75rem !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--primary-green);
  z-index: 1003;
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

body.nav-open {
  overflow: hidden;
}

/* Hero Section - Full Width with Image */
.hero {
  position: relative;
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-fullwidth {
  min-height: 70vh;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center right;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 31, 51, 0.85) 0%, rgba(30, 58, 95, 0.7) 60%, rgba(45, 90, 138, 0.5) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.95;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-small {
  padding: 3rem 0;
  min-height: auto;
}

.hero-small h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

/* Benefits Strip */
.benefits-strip {
  background: var(--primary-green-dark);
  padding: 2rem 0;
}

.benefits-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  color: #fff;
}

.benefit-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1;
}

.benefit-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.benefit-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.2);
}

/* Image Gallery Section */
.image-gallery-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  min-height: 500px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-large {
  grid-row: span 2;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(13, 31, 51, 0.9));
  color: #fff;
}

.gallery-caption h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  min-height: 52px;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary-green);
}

/* Content Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Article Content */
.article-content {
  padding: 1.5rem 0 3rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 2rem;
}

.article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* Featured article image - larger presentation */
.article-content > img:first-of-type {
  margin-top: 0;
}

/* Image with caption wrapper */
.article-image {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.article-image figcaption {
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary-green-dark);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  margin-bottom: 0.75rem;
}

.sidebar-widget a {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget a:not(.btn)::before {
  content: '→';
  color: var(--primary-green);
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 1px;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Honeypot field - hidden */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--primary-green-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-gold-light);
}

.footer-col p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.carbon-trap-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carbon-trap-badge img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  /* Hero Mobile */
  .hero { 
    padding: 3rem 0;
    min-height: 60vh;
  }
  .hero-fullwidth {
    min-height: 70vh;
  }
  .hero h1 { 
    font-size: 2.25rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-bg-image {
    background-position: center center;
  }
  
  /* Benefits Strip Mobile */
  .benefits-strip {
    padding: 1.5rem 0;
  }
  .benefits-row {
    gap: 1rem;
  }
  .benefit-item {
    flex: 1 1 45%;
    min-width: 120px;
  }
  .benefit-number {
    font-size: 1.75rem;
  }
  .benefit-label {
    font-size: 0.75rem;
  }
  .benefit-divider {
    display: none;
  }
  
  /* Gallery Mobile */
  .image-gallery-section {
    padding: 2rem 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    gap: 1rem;
  }
  .gallery-large {
    grid-row: span 1;
  }
  .gallery-item {
    height: 200px;
  }
  .gallery-large {
    height: 250px;
  }
  .gallery-caption {
    padding: 1rem;
  }
  .gallery-caption h3 {
    font-size: 1.1rem;
  }
  .gallery-caption p {
    font-size: 0.85rem;
  }
  
  .section { padding: 3rem 0; }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--header-bg);
    box-shadow: var(--shadow-lg);
    padding: 4.5rem 1rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1002;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav a {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 1rem;
    display: block;
    color: #ffffff;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
  }
  
  .main-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
    background: rgba(0,0,0,0.2);
    margin: 0 -0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  }
  
  .dropdown-menu a {
    padding: 0.75rem;
    font-size: 0.95rem;
    border-bottom: none;
    color: rgba(255,255,255,0.85);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    color: #ffffff;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* Overlay removed — no longer in the DOM. These rules are kept
     as no-ops so nothing breaks if old markup lingers. */
  .nav-overlay,
  .nav-overlay.active {
    display: none !important;
    pointer-events: none !important;
  }
  
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  
  .social-links {
    display: none;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Print styles */
/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card h3 {
  padding: 1.25rem 1.25rem 0.75rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-green-dark);
}

/* Advantages List */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantages-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.advantages-list li::before {
  content: "✓";
  color: var(--primary-green-dark);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

/* Card Link Styles */
.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-link h3 {
  color: var(--primary-green-dark);
}

/* Content Text Styles */
.content-text p {
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.content-text a {
  color: var(--primary-green-dark);
  text-decoration: underline;
}

.content-text a:hover {
  color: var(--primary-green);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
  border-radius: 8px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

/* Allow fullscreen for video iframes */
.video-wrapper iframe:fullscreen,
.video-wrapper iframe:-webkit-full-screen,
.video-wrapper iframe:-moz-full-screen,
.video-wrapper iframe:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.video-card p {
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* WordPress/Divi Content Cleanup */
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module,
.et_pb_text,
.et_pb_text_inner,
.et_pb_blog_grid_wrapper,
.et_pb_blog_grid,
.et_pb_ajax_pagination_container,
.et_pb_salvattore_content {
  display: block;
  width: 100%;
}

.et_pb_row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.et_pb_post {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.et_pb_post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.et_pb_image_container {
  position: relative;
  overflow: hidden;
}

.et_pb_image_container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.et_pb_post:hover .et_pb_image_container img {
  transform: scale(1.05);
}

.et_pb_post .entry-title {
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 0;
}

.et_pb_post .entry-title a {
  color: var(--primary-green-dark);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.et_pb_post .entry-title a:hover {
  color: var(--accent-gold);
}

.et_pb_post .post-meta {
  padding: 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.et_pb_post .post-content {
  padding: 0.75rem 1.25rem 1.25rem;
}

.et_pb_post .post-content-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.et_pb_post .more-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-gold);
  font-weight: 500;
  font-size: 0.9rem;
}

.et_pb_post .more-link:hover {
  color: var(--accent-gold-light);
}

.et_pb_divider,
.et_pb_sidebar {
  display: none;
}

/* News Grid Layout */
.et_pb_blog_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* News Cards - Modern Clean Design */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-category {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.news-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--primary-dark);
  transition: color 0.3s ease;
}

.news-card h3 a:hover {
  color: var(--accent-gold);
}

.news-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.news-card-content > p:not(.news-meta) {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  margin-top: auto;
}

.read-more:hover {
  color: var(--accent-gold-light);
}

/* News Categories Section */
.news-categories {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.news-categories h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.category-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-weight: 500;
  color: var(--primary-dark);
}

.category-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent-gold);
}

.category-icon {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .category-links {
    flex-direction: column;
    align-items: center;
  }
  
  .category-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media print {
  .top-bar, .site-header, .site-footer, .sidebar {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .hero {
    background: #fff;
    color: #000;
    padding: 1rem 0;
  }
  
  .hero h1 {
    color: #000;
  }
}


/* Mobile-First Visual Feature Strip */
.visual-feature-strip {
  background: var(--bg-light);
  padding: 2rem 0;
}

.feature-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  color: var(--primary-green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Image Showcase */
.image-showcase {
  padding: 3rem 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.showcase-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.showcase-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.showcase-caption {
  background: var(--primary-green-dark);
  color: #fff;
  padding: 1rem;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
}

/* Hero buttons - consistent mobile styling */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tablet responsive */
@media (max-width: 992px) {
  .feature-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .feature-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem 0.75rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .feature-card h4 {
    font-size: 1rem;
  }
  
  .feature-card p {
    font-size: 0.85rem;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .showcase-item img {
    height: 180px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }
  
  /* Improve text readability on mobile */
  .content-text p {
    font-size: 1rem;
    line-height: 1.75;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-title h3 {
    font-size: 1.25rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .feature-icon {
    font-size: 1.75rem;
  }
  
  .feature-card h4 {
    font-size: 0.9rem;
  }
  
  .feature-card p {
    font-size: 0.8rem;
  }
}
/* Page Header for Inner Pages */
.page-header {
  position: relative;
  background: linear-gradient(135deg, #0d1f33 0%, #1e3a5f 50%, #2d5a8a 100%);
  padding: 4rem 0 3rem;
  color: #fff;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/miscanthus-growing-canopy.webp') center/cover no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.page-header-breadcrumb a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-header-breadcrumb a:hover {
  opacity: 0.8;
}

.page-header-breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff !important;
}

/* Override Divi column classes for full-width content */
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_column_1_2,
.et_pb_column_1_4,
.et_pb_column_4_4,
.et_pb_module {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.et_pb_row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
}

.et_pb_column_1_4 {
  flex: 0 0 250px !important;
}

.et_pb_column_1_2 {
  flex: 1 !important;
  min-width: 300px !important;
}

.et_pb_image img {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

/* Hide old hero sections in content - we use page-header now */
main .hero,
main .hero-small,
article .hero,
article .hero-small,
.page-content .hero,
.page-content .hero-small,
section.hero.hero-small {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Hide WordPress contact forms */
.et_pb_contact_form_container,
.et_pb_contact_form,
.et_pb_contact {
  display: none !important;
}

.page-header-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 0.75rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Responsive page header */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0 2rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .page-header-subtitle {
    font-size: 1rem;
  }
  
  .page-header-breadcrumb {
    font-size: 0.8rem;
  }
}

/* Articles Grid for Category Pages */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.article-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--primary-light);
}

.article-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-intro {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 0;
}

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

/* Profile layout for Mike Cooper page */
.profile-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.profile-image {
  flex: 0 0 280px;
}

.profile-content {
  flex: 1;
  min-width: 300px;
}

.profile-content h2 {
  margin-top: 0;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
  }
  
  .profile-image {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .profile-image img {
    max-width: 200px !important;
  }
}

/* Fix content-with-sidebar top spacing */
.content-with-sidebar {
  margin-top: 0;
  padding-top: 0;
}

/* Reduce excessive whitespace in article content */
.article-content {
  margin-top: 0;
}

.article-content > *:first-child {
  margin-top: 0;
}

/* Fix section spacing after page header */
.page-header + main .section:first-child,
.page-header + main > section:first-child,
main > .section:first-child {
  padding-top: 2rem;
}



/* Hide WordPress social share buttons */
.et_social_inline,
.et_social_networks,
.et_social_icons_container,
.et_social_bottom_trigger,
[class*="et_social"] {
  display: none !important;
}

/* Back to category link styling */
.back-to-category {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Form Feedback Messages */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  font-weight: bold;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS (v1.6)
   ============================================ */

/* Skip to content link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Global focus-visible outlines for keyboard users */
a:focus-visible,
button:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Navigation links focus styles (desktop) */
.site-header .main-nav a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Dropdown menu link focus */
.dropdown-menu a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -1px;
  background: rgba(230, 126, 34, 0.08);
}

/* Footer link focus */
.site-footer a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Nav toggle focus */
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Address element in footer — reset italic default */
.site-footer address {
  font-style: normal;
}

/* Hydration error suppression */
[data-hydration-error] { display: none !important; }
