/*
Theme Name: EcoGuard Solutions
Theme URI: https://ecoguardsolutions.com
Author: EcoGuard Team
Author URI: https://ecoguardsolutions.com
Description: A modern, professional WordPress theme for eco-friendly water treatment solutions. Features smooth scroll animations, responsive design, and sections for agriculture, aquaculture, poultry, pools, municipal water, and wastewater applications.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecoguard
Domain Path: /languages
Tags: business, corporate, environmental, water-treatment, responsive, one-page, scroll-animation
*/

/* ============================================
   ECOGUARD SOLUTIONS - WORDPRESS THEME
   ============================================ */

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

/* CSS Variables */
:root {
  --eco-navy: #0B1E2C;
  --eco-mint: #27C878;
  --eco-sky: #A9D6FF;
  --eco-lavender: #C9B8FF;
  --eco-slate: #5A6D7A;
  --eco-offwhite: #F6F8FA;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--eco-navy);
  background-color: var(--eco-offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--eco-navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--eco-slate);
}

a {
  color: var(--eco-mint);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--eco-navy);
}

/* WordPress Required Styles */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.alignnone {
  margin-bottom: 1rem;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--eco-slate);
  text-align: center;
  margin-top: 0.5rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sticky {
  position: relative;
}

.gallery-caption {
  font-size: 0.875rem;
  color: var(--eco-slate);
}

.bypostauthor {
  font-weight: 600;
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.main-navigation.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--eco-navy);
}

.site-logo a {
  color: inherit;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--eco-slate);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--eco-navy);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--eco-mint);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--eco-mint);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 200, 120, 0.35);
  color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 999;
  }
  
  .mobile-menu-open .nav-menu a {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--eco-offwhite);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  left: 18vw;
  top: 10vh;
  width: 64vw;
  height: 64vw;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(39, 200, 120, 0.22), transparent 60%);
  filter: blur(100px);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eco-slate);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: var(--eco-mint);
}

.hero-description {
  font-size: 1.125rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--eco-mint);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 200, 120, 0.35);
  color: white;
}

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

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

.hero-image {
  position: relative;
  z-index: 2;
}

.circle-image {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(11, 30, 44, 0.14);
  overflow: hidden;
  margin-left: auto;
}

.circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .circle-image {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .hero-blob {
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
  }
}

/* Application Sections */
.application-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--eco-offwhite);
  overflow: hidden;
}

.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.section-blob.mint {
  background: radial-gradient(circle at 30% 30%, rgba(39, 200, 120, 0.22), transparent 60%);
}

.section-blob.sky {
  background: radial-gradient(circle at 30% 30%, rgba(169, 214, 255, 0.26), transparent 60%);
}

.section-blob.lavender {
  background: radial-gradient(circle at 30% 30%, rgba(201, 184, 255, 0.24), transparent 60%);
}

.application-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.application-section.image-right .application-container {
  direction: rtl;
}

.application-section.image-right .application-content {
  direction: ltr;
}

.application-section.image-right .application-image {
  direction: ltr;
}

.application-content {
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eco-slate);
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title .accent {
  color: var(--eco-mint);
}

.section-description {
  font-size: 1.0625rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.application-image {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .application-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .application-section.image-right .application-container {
    direction: ltr;
  }
  
  .section-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .circle-image {
    margin: 0 auto;
    max-width: 350px;
  }
}

/* Contact Section */
.contact-section {
  position: relative;
  background: var(--eco-navy);
  color: white;
  padding: 6rem 0;
}

.contact-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-header-image {
  width: 100%;
  max-width: 980px;
  height: 280px;
  border-radius: 999px;
  border: 8px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 0 auto 4rem;
}

.contact-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-title {
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-description {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(39, 200, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--eco-mint);
}

.contact-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: white;
  font-size: 1rem;
}

.contact-value a {
  color: white;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--eco-mint);
}

.contact-trust {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-trust-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--eco-mint);
  box-shadow: 0 0 0 3px rgba(39, 200, 120, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group select option {
  background: var(--eco-navy);
  color: white;
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--eco-mint);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #22b368;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-header-image {
    height: 200px;
  }
}

/* Footer */
.site-footer {
  background: var(--eco-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--eco-offwhite);
}

::-webkit-scrollbar-thumb {
  background: var(--eco-slate);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--eco-navy);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
