/* ==========================================================================
   Allegiance Water Management - World-Class Design System & Stylesheet
   Brand Palette: Deep Ocean Navy, Electric Aqua Cyan, Emerald Leaf Green
   Features: Three.js 3D Viewports, Glassmorphism, Animated Meters & Shimmers
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Luxury Palette */
  --primary-navy: #061727;
  --primary-navy-card: #0c243c;
  --primary-blue: #0f4c81;
  --primary-blue-hover: #093760;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #e0f2fe;
  --accent-cyan-glow: #00f2fe;
  
  --eco-green: #16a34a;
  --eco-green-light: #dcfce7;
  --eco-green-dark: #15803d;
  --eco-emerald: #10b981;
  
  --dark-900: #060e17;
  --dark-800: #0f1c2c;
  --dark-700: #1e2f45;
  --dark-600: #475569;
  
  --light-50: #f8fafc;
  --light-100: #f1f5f9;
  --light-200: #e2e8f0;
  --light-300: #cbd5e1;
  --white: #ffffff;
  
  /* Status Colors */
  --status-new: #3b82f6;
  --status-contacted: #f59e0b;
  --status-inprogress: #8b5cf6;
  --status-completed: #10b981;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px -3px rgba(6, 23, 39, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(6, 23, 39, 0.18), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 32px -4px rgba(15, 76, 129, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.35);
  --shadow-glow-green: 0 0 30px rgba(22, 163, 74, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-800);
  background-color: var(--light-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

.section-sm {
  padding-top: 50px;
  padding-bottom: 50px;
}

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

.section-bg-navy {
  background: radial-gradient(circle at 90% 10%, #0d3862 0%, var(--primary-navy) 85%);
  color: var(--white);
}

.section-bg-navy h1, .section-bg-navy h2, .section-bg-navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--eco-green-light);
  color: var(--eco-green-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.section-tag.tag-cyan {
  background-color: var(--accent-cyan-light);
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.section-tag.tag-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dark-600);
  line-height: 1.7;
}

.section-bg-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

/* Flex & Grid Utilities */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Buttons & CTA Aesthetics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
  color: var(--white);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translate(-100%, -100%);
  transition: transform 0.8s ease;
}

.btn-primary:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

.btn-blue {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.3);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.45);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border: 1.5px solid var(--light-300);
  color: var(--dark-800);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: var(--light-50);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.08rem;
  border-radius: var(--radius-lg);
}

/* Cards & Surfaces */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-200);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(6, 182, 212, 0.3);
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px -8px rgba(15, 76, 129, 0.12);
}

.card-navy-glass {
  background: rgba(12, 36, 60, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--accent-cyan);
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

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

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-800);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--eco-green));
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--light-200);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--light-100);
  transform: translateX(4px);
}

.dropdown-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.dropdown-item-desc {
  font-size: 0.78rem;
  color: var(--dark-600);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 23, 39, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* ==========================================================================
   Hero Section with Interactive Three.js (3D.js) Canvas
   ========================================================================== */

.hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #ffffff 0%, var(--light-50) 100%);
  padding: 80px 0 70px;
  overflow: hidden;
}

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

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(90deg, var(--eco-green-light) 0%, var(--accent-cyan-light) 100%);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-full);
  color: var(--eco-green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--primary-navy);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #0f4c81 0%, #06b6d4 50%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--dark-700);
  margin-bottom: 34px;
  line-height: 1.75;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1.5px solid var(--light-200);
}

.hero-stat-item h3 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stat-item p {
  font-size: 0.88rem;
  color: var(--dark-600);
  font-weight: 500;
}

/* Hero Visual Showcase */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.hero-image-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 35px 75px -15px rgba(2, 132, 199, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 39, 0.38) 0%, rgba(6, 23, 39, 0.05) 45%, rgba(6, 23, 39, 0.5) 100%);
  pointer-events: none;
}

.hero-top-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: rgba(6, 23, 39, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hero-live-counter {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  background: rgba(6, 182, 212, 0.22);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.hero-feature-pill {
  position: absolute;
  top: 70px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary-navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-card-3d {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

/* ==========================================================================
   3D Aquifer & Rainwater Percolation Simulation Section
   ========================================================================== */

.aquifer-sim-card {
  background: linear-gradient(135deg, #061727 0%, #0c243c 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.aquifer-3d-canvas-box {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(15, 76, 129, 0.3) 0%, rgba(6, 23, 39, 0.9) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.aquifer-3d-canvas-box:active {
  cursor: grabbing;
}

.aquifer-sim-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 23, 39, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

/* ==========================================================================
   RWH & CGWA Calculator Component
   ========================================================================== */

.calc-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 76, 129, 0.18);
  border: 1px solid var(--light-200);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.calc-form-pane {
  padding: 44px;
  background: var(--white);
}

.calc-results-pane {
  padding: 44px;
  background: radial-gradient(circle at 90% 10%, #0f4c81 0%, #061727 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark-800);
  margin-bottom: 8px;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-200);
  background-color: var(--light-50);
  font-size: 1rem;
  color: var(--dark-900);
  outline: none;
  transition: all var(--transition-fast);
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--primary-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

.range-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.range-slider {
  flex: 1;
  accent-color: var(--eco-green);
  cursor: pointer;
  height: 8px;
  border-radius: var(--radius-full);
}

.calc-metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.calc-metric-title {
  font-size: 0.85rem;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.calc-recommendation-box {
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(22, 163, 74, 0.5);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 76, 129, 0.18);
  border-color: var(--primary-blue);
}

.service-card-img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--eco-green);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-navy);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--dark-600);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--light-100);
}

/* ==========================================================================
   Products Catalog & Specs Table
   ========================================================================== */

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-200);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 76, 129, 0.16);
  border-color: var(--eco-green);
}

.product-card-img-box {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-50);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  padding: 16px;
  transition: background-color var(--transition-fast);
}

.product-card:hover .product-card-img-box {
  background-color: var(--light-100);
}

.product-card-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-box img {
  transform: scale(1.06);
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent-cyan-light);
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-table th, .specs-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--light-200);
}

.specs-table th {
  background: linear-gradient(90deg, var(--primary-navy), #0f4c81);
  color: var(--white);
  font-weight: 600;
}

.specs-table tr:nth-child(even) {
  background-color: var(--light-50);
}

.specs-table tr:hover {
  background-color: #f0fdf4;
}

/* ==========================================================================
   Client Ticker & Grid
   ========================================================================== */

.client-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 30px 0;
  position: relative;
}

.client-ticker-wrap::before, .client-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.client-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--light-100), transparent);
}

.client-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--light-100), transparent);
}

.client-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  margin: 0 10px;
  background: var(--white);
  border: 1.5px solid var(--light-200);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-800);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.client-badge-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-badge-item span.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--eco-green);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-200);
  background-color: var(--white);
  font-size: 0.98rem;
  color: var(--dark-900);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-200);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-header {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--primary-navy);
  user-select: none;
}

.faq-body {
  padding: 0 26px 22px;
  color: var(--dark-600);
  font-size: 0.98rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-body {
  display: block;
}

/* ==========================================================================
   Floating Action Buttons & Social Sticky
   ========================================================================== */

.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.5rem;
}

.fab-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.fab-whatsapp {
  background: #25d366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.fab-call {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
  box-shadow: 0 8px 25px rgba(15, 76, 129, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #061727 0%, #030a12 100%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  padding-top: 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 64px;
}

.footer-title {
  color: var(--white);
  font-size: 1.18rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--eco-green), var(--accent-cyan));
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 6px;
}

.footer-bottom {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Admin Portal Styles
   ========================================================================== */

.admin-layout {
  min-height: 100vh;
  background-color: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--primary-navy);
  color: var(--white);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-200);
  box-shadow: var(--shadow-sm);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.status-new { background-color: #dbeafe; color: #1d4ed8; }
.status-badge.status-contacted { background-color: #fef3c7; color: #b45309; }
.status-badge.status-in_progress { background-color: #ede9fe; color: #6d28d9; }
.status-badge.status-completed { background-color: #d1fae5; color: #047857; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-3d-wrapper { height: 420px; }
  .calc-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .top-bar-social { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .calc-form-pane, .calc-results-pane { padding: 26px; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .hero-3d-wrapper { height: 360px; }
  .aquifer-3d-canvas-box { height: 340px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
