/**
 * Dragonfly Aerial Solutions - Main Stylesheet
 * Version: 2.0.0
 * 
 * Squarespace Compliant: YES
 * - No server-side dependencies
 * - All assets use relative paths (Squarespace will rewrite)
 * - CSS custom properties for easy theming
 * - Responsive design with mobile-first approach
 * 
 * Color Palette:
 * - Navy (canvas): #0b2545
 * - Royal Blue: #1e40af
 * - Electric Accent: #2fa4ff
 * - Gold: #ffd700
 * - Mint: #14b8a6
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================================================== */
:root {
  /* Brand Colors (unchanged across themes) */
  --brand-ink: #0b2545;
  --brand-primary: #1e40af;
  --brand-tech: #2fa4ff;
  --brand-gold: #ffd700;
  --brand-mint: #14b8a6;

  /* Dark Theme (Default) */
  --bg: #0a1424;
  --bg-2: #0f1b33;
  --card: #101a30;
  --surface: #0c162a;
  --text: #e6ecff;
  --text-muted: #a8b3cf;
  --text-dark: #0b2545;
  --lines: #1f2a44;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.35);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 25px rgba(47, 164, 255, 0.35);
  --ring-focus: 0 0 0 3px rgba(47, 164, 255, 0.25);
  --header-bg: linear-gradient(135deg, var(--brand-ink), var(--brand-primary));
  --hero-overlay: linear-gradient(135deg, rgba(10, 20, 36, 0.85) 0%, rgba(30, 64, 175, 0.65) 100%);

  /* Spacing */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --card: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --lines: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 25px rgba(30, 64, 175, 0.15);
  --ring-focus: 0 0 0 3px rgba(30, 64, 175, 0.2);
  --header-bg: linear-gradient(135deg, #1e40af, #3b82f6);
  --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.85) 100%);
}

/* Light theme specific overrides */
[data-theme="light"] .hero__title {
  background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero__content--centered .hero__subtitle {
  color: var(--brand-primary);
}

[data-theme="light"] .btn--secondary {
  color: var(--brand-primary);
}

[data-theme="light"] .testimonial::before {
  color: var(--brand-primary);
}

[data-theme="light"] .stat__number {
  color: var(--brand-primary);
}

[data-theme="light"] .chat-status-banner--available {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #059669;
}

[data-theme="light"] .badge {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #ffffff;
  border-color: #d1d5db;
}

[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility: Respect reduced motion preferences */
@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;
  }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

a:hover {
  color: #7cc9ff;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: 4rem 0;
}

.section--lg {
  padding: 6rem 0;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Grid Utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--brand-gold); }
.text-tech { color: var(--brand-tech); }
.text-mint { color: var(--brand-mint); }

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   BUTTONS (Subtle 3D Professional Style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* Primary Button - Subtle 3D */
.btn--primary {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.15) 100%
  ), linear-gradient(135deg, var(--brand-primary), #0f3a8a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 8px 20px rgba(47, 164, 255, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Secondary Button - Subtle 3D */
.btn--secondary {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.1) 100%
  ), rgba(47, 164, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--brand-tech);
  border-bottom-color: rgba(47, 164, 255, 0.5);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn--secondary:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.1) 100%
  ), rgba(47, 164, 255, 0.15);
  color: var(--brand-tech);
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px rgba(47, 164, 255, 0.2);
}

.btn--secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
}

/* Gold Button (CTA) - Subtle 3D */
.btn--gold {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    transparent 40%, 
    rgba(0, 0, 0, 0.1) 100%
  ), linear-gradient(135deg, var(--brand-gold), #d4a800);
  color: var(--brand-ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(0, 0, 0, 0.15);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset,
    0 4px 12px rgba(255, 215, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset,
    0 8px 24px rgba(255, 215, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--brand-ink);
}

.btn--gold:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.15) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ghost Button - Subtle 3D */
.btn--ghost {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    transparent 100%
  );
  color: var(--text-muted);
  border: 1px solid var(--lines);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn--ghost:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.06) 0%, 
    rgba(255, 255, 255, 0.02) 100%
  );
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn--ghost:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

/* Button Sizes */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   CARDS (with micro-interactions)
   ========================================================================== */
.card {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Subtle shine effect on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-tech);
}

.card:hover::before {
  left: 100%;
}

/* Card press effect */
.card:active {
  transform: translateY(-2px);
  transition-duration: 0.1s;
}

.card__header {
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card__body {
  color: var(--text-muted);
}

.card__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lines);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Service Card Variant */
.card--service {
  text-align: center;
  padding: 2rem;
}

.card--service .card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  padding: 1rem;
  background: rgba(47, 164, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--service .card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-tech);
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--lines);
  background: rgba(255, 255, 255, 0.04);
}

.badge--gold {
  border-color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.08);
  color: #ffe077;
}

.badge--tech {
  border-color: var(--brand-tech);
  background: rgba(47, 164, 255, 0.1);
  color: #a8dcff;
}

.badge--mint {
  border-color: var(--brand-mint);
  background: rgba(20, 184, 166, 0.1);
  color: #5eead4;
}

.badge--success {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Dark mode: show sun icon */
.theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show moon icon */
[data-theme="light"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle {
  background: rgba(30, 64, 175, 0.15);
  border-color: rgba(30, 64, 175, 0.25);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(30, 64, 175, 0.25);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--header-bg);
  border-bottom: 2px solid var(--brand-tech);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glassmorphism effect on scroll */
.header--scrolled {
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .header--scrolled {
  background: rgba(255, 255, 255, 0.9);
}

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

.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.header__logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.header__portal-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header phone bar — professional click-to-call link under the logo */
.header__phone-link {
  position: relative;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-tech);
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  margin-top: 0.15rem;
  padding-left: 0;
}

.header__phone-link::before {
  content: '📞';
  font-size: 0.75rem;
  position: absolute;
  right: calc(100% + 0.3rem);
  top: 50%;
  transform: translateY(-50%);
}

.header__phone-link:hover {
  color: var(--brand-gold);
  opacity: 0.9;
}

@media (max-width: 640px) {
  .header__phone-link {
    font-size: 0.7rem;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-tech);
}

.nav__link--active {
  background: rgba(47, 164, 255, 0.15);
  color: var(--brand-tech);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--brand-ink);
    border-bottom: 2px solid var(--brand-tech);
    padding: 1rem;
    display: none;
  }

  .nav--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 164, 255, 0.28), transparent 50%),
    radial-gradient(1000px 500px at 90% 0, rgba(255, 215, 0, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow: hidden;
}

/* Background Logo Watermark */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 700px;
  aspect-ratio: 1;
  background-image: url('../img/dragonfly-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__content--centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__content--centered .hero__cta {
  justify-content: center;
}

.hero__content--centered .hero__badges {
  justify-content: center;
}

.hero__content--centered .hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-tech);
  font-weight: 500;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand-tech) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--brand-ink);
  border-top: 1px solid var(--lines);
  padding: 3rem 0 1.5rem;
}

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

.footer__brand {
  max-width: 300px;
}

.footer__brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--brand-tech);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--lines);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--brand-tech);
}

/* Social Icons - Styled to match site */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lines);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Brand-specific hover colors */
.social-icon--facebook:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-icon--linkedin:hover {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

.social-icon--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.social-icon--youtube:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--lines);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-tech);
  box-shadow: var(--ring-focus);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a8b3cf' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  color: #ef4444;
}

.form-status {
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 14px;
}

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

.form-status--error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.form-status--warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--lines);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--lines);
}

.table th {
  background: var(--card);
  font-weight: 600;
  color: var(--text);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(47, 164, 255, 0.05);
}

/* ==========================================================================
   ROI CALCULATOR SPECIFIC STYLES
   ========================================================================== */
.roi-calculator {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.roi-calculator__header {
  text-align: center;
  margin-bottom: 2rem;
}

.roi-calculator__inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.roi-calculator__results {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.roi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lines);
}

.roi-metric:last-child {
  border-bottom: none;
}

.roi-metric__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.roi-metric__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.roi-metric__value--highlight {
  color: var(--brand-gold);
}

.roi-metric__value--success {
  color: var(--brand-mint);
}

.roi-breakdown {
  margin-top: 1.5rem;
}

.roi-breakdown__title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--brand-tech);
}

.roi-breakdown__item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roi-breakdown__item span:last-child {
  color: var(--text);
}

/* ==========================================================================
   IMAGE REVEAL / PARALLAX SECTIONS
   ========================================================================== */
.image-reveal {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  margin: 0;
}

.image-reveal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Fallback for mobile (fixed attachment doesn't work well) */
@media (max-width: 768px) {
  .image-reveal__bg {
    background-attachment: scroll;
  }
}

.image-reveal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 20, 36, 0.85) 0%, rgba(30, 64, 175, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-reveal__content {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.image-reveal__content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.image-reveal__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.image-reveal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Background image variants */
.image-reveal--agriculture .image-reveal__bg {
  background-image: url('../img/agriculture-hero.jpg');
}

.image-reveal--construction .image-reveal__bg {
  background-image: url('../img/construction-hero.jpg');
}

.image-reveal--solar .image-reveal__bg {
  background-image: url('../img/solar-hero.jpg');
}

.image-reveal--infrastructure .image-reveal__bg {
  background-image: url('../img/infrastructure-hero.jpg');
}

.image-reveal--mapping .image-reveal__bg {
  background-image: url('../img/mapping-hero.jpg');
}

/* ==========================================================================
   SERVICE CAROUSEL
   ========================================================================== */
.service-carousel {
  position: relative;
  height: 80vh;
  min-height: 550px;
  overflow: hidden;
}

.service-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.service-carousel__slide--active {
  opacity: 1;
  visibility: visible;
}

.service-carousel__slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .service-carousel__slide-bg {
    background-attachment: scroll;
  }
}

.service-carousel__slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 20, 36, 0.88) 0%, rgba(30, 64, 175, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-carousel__content {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
}

.service-carousel__content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.service-carousel__content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Carousel Navigation */
.service-carousel__nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.service-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.service-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.service-carousel__dot--active {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: scale(1.2);
}

/* Carousel Arrows */
.service-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
}

.service-carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--brand-tech);
}

.service-carousel__arrow--prev {
  left: 1.5rem;
}

.service-carousel__arrow--next {
  right: 1.5rem;
}

.service-carousel__arrow svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   3-WAY DIAGONAL SPLIT IMAGE
   ========================================================================== */
.split-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
}

.split-image__panel {
  position: absolute;
  top: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.split-image__panel--1 {
  left: 0;
  width: 40%;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.split-image__panel--2 {
  left: 28%;
  width: 44%;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

.split-image__panel--3 {
  right: 0;
  width: 40%;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.split-image:hover .split-image__panel--1 {
  transform: translateX(-5px);
}

.split-image:hover .split-image__panel--3 {
  transform: translateX(5px);
}

.split-image__label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 5;
}

/* ==========================================================================
   TAWK.TO CUSTOMIZATION (Blended Style)
   ========================================================================== */
/* 
 * Style the Tawk.to widget to match color palette
 * Note: Primary styling must be set in Tawk.to dashboard:
 *   - Widget Color: #1e40af (brand-primary)
 *   - Header Color: #0b2545 (brand-ink)
 *   - Text Color: #e6ecff (text)
 */

/* Suppress all Tawk.to iframes until the API has fully loaded and hidden the
   default launcher. This prevents the yellow notification bar flash that
   occurs between script injection and the onLoad hideWidget() call. */
iframe[title="chat widget"],
iframe[src*="tawk.to"],
#tawk-bubble-container {
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, visibility 0s 0.3s !important;
}
/* Once the API marks itself ready via the tawk-loaded class, show normally */
body.tawk-loaded iframe[title="chat widget"],
body.tawk-loaded iframe[src*="tawk.to"],
body.tawk-loaded #tawk-bubble-container {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
}

/* Position and blend the widget */
#tawkchat-container,
.tawk-min-container {
  z-index: var(--z-modal) !important;
}

/* Make the widget button more subtle */
.tawk-button-circle,
.tawk-min-chat-icon {
  opacity: 0.85 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.tawk-button-circle:hover,
.tawk-min-chat-icon:hover {
  opacity: 1 !important;
  transform: scale(1.05) !important;
}

/* Custom chat trigger button (vibrant gradient) */
.chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #2fa4ff 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(16, 185, 129, 0.4),
    0 0 30px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
  z-index: var(--z-modal);
  display: flex;
  animation: chat-pulse 3s ease-in-out infinite;
  align-items: center;
  justify-content: center;
}

.chat-trigger:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 
    0 10px 40px rgba(16, 185, 129, 0.5),
    0 0 50px rgba(6, 182, 212, 0.4);
  animation: none;
}

/* Pulsing glow animation for chat button */
@keyframes chat-pulse {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(16, 185, 129, 0.4),
      0 0 30px rgba(6, 182, 212, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 
      0 6px 30px rgba(16, 185, 129, 0.55),
      0 0 40px rgba(6, 182, 212, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

.chat-trigger svg {
  width: 24px;
  height: 24px;
}

/* Hide default Tawk button when using custom trigger */
.tawk-custom-trigger-active .tawk-button {
  display: none !important;
}

/* Custom emergency chat button (less glaring) */
.emergency-chat-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: linear-gradient(135deg, var(--brand-ink), #1a365d);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand-tech);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.emergency-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 164, 255, 0.3);
  opacity: 1;
  border-color: var(--brand-gold);
}

.emergency-chat-btn--urgent {
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  border-color: #ef4444;
}

.emergency-chat-btn--urgent:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   FALLBACK BANNER (for when integrations fail)
   ========================================================================== */
.fallback-banner {
  display: none;
  background: linear-gradient(135deg, var(--brand-gold), #e6c200);
  color: var(--brand-ink);
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.fallback-banner a {
  color: var(--brand-ink);
  text-decoration: underline;
}

.fallback-banner--visible {
  display: block;
}

/* ==========================================================================
   CHAT STATUS BANNER (Admin-controllable)
   ========================================================================== */
.chat-status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.chat-status-banner--available {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
  color: var(--brand-mint);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.chat-status-banner--away {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.1));
  color: #fbbf24;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.chat-status-banner--unavailable {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: #f87171;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.chat-status-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.chat-status-banner--available .chat-status-banner__dot {
  background: var(--brand-mint);
}

.chat-status-banner--away .chat-status-banner__dot {
  background: #fbbf24;
  animation: none;
}

.chat-status-banner--unavailable .chat-status-banner__dot {
  background: #ef4444;
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.chat-status-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-status-banner__alt-contact {
  opacity: 0.8;
  font-weight: 400;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  background: var(--bg-2);
  padding: 4rem 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--brand-gold);
  opacity: 0.3;
  line-height: 1;
}

.testimonial__content {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
}

.testimonial__info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.testimonial__info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonial__result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lines);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial__result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.testimonial__result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PARTNER/WORKED WITH LOGOS
   ========================================================================== */
.partners {
  padding: 3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--lines);
  border-bottom: 1px solid var(--lines);
}

.partners__title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.partners__logo {
  max-height: 50px;
  max-width: 150px;
  opacity: 0.7;
  filter: grayscale(100%) brightness(1.5);
  transition: all var(--transition-base);
}

.partners__logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* ==========================================================================
   SERVICE AREA MAP
   ========================================================================== */
.service-area {
  padding: 4rem 0;
  background: var(--bg);
}

.service-area__map {
  position: relative;
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

.service-area__map-container {
  width: 100%;
  height: 100%;
}

.service-area__map-container iframe,
.service-area__map-container #map {
  width: 100%;
  height: 100%;
  border: none;
}

.service-area__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-area__state {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.service-area__state h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--brand-tech);
}

.service-area__state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   EQUIPMENT & CERTIFICATIONS
   ========================================================================== */
.certifications {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-primary));
}

.certifications__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  min-width: 120px;
}

.cert-badge__icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cert-badge__icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-gold);
}

.cert-badge__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cert-badge__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cert-badge__subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WEATHER WIDGET
   ========================================================================== */
.weather-widget {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.weather-widget__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weather-widget__header svg {
  width: 24px;
  height: 24px;
  color: var(--brand-tech);
}

.weather-widget__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.weather-widget__indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.weather-widget__indicator--good {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.weather-widget__indicator--marginal {
  background: var(--brand-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.weather-widget__indicator--poor {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.weather-widget__label {
  font-weight: 600;
  font-size: 1.1rem;
}

.weather-widget__label--good { color: #22c55e; }
.weather-widget__label--marginal { color: var(--brand-gold); }
.weather-widget__label--poor { color: #ef4444; }

.weather-widget__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.weather-widget__detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.weather-widget__detail-value {
  font-weight: 600;
  color: var(--text);
}

.weather-widget__cta {
  font-size: 0.85rem;
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-card--featured {
  border-color: var(--brand-gold);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-gold);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: var(--radius-sm);
}

.pricing-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-card__price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card__features li svg {
  width: 18px;
  height: 18px;
  color: var(--brand-mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card__discount {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #86efac;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SEO BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand-tech);
}

.breadcrumbs__separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ==========================================================================
   SKIP TO CONTENT (Accessibility + SEO)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--brand-gold);
  color: var(--brand-ink);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* Layout utilities */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Section padding reduction */
  .section {
    padding: 2.5rem 0;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
    padding: 2rem 0;
  }

  .hero__content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    text-align: center;
  }

  /* Header */
  .header__inner {
    gap: 0.5rem;
  }

  .header__logo-text {
    font-size: 0.9rem;
  }

  .header__portal-btn {
    display: none;
  }

  .header__logo img {
    height: 40px;
  }

  /* Cards & grid sections */
  .card {
    padding: 1.25rem;
  }

  /* Pricing cards — stack on mobile */
  .pricing-grid,
  .pricing-tiers,
  [class*="pricing"] > .grid,
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .pricing-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ROI calculator */
  .roi-calculator {
    padding: 1.25rem;
  }

  .roi-calculator__inputs {
    grid-template-columns: 1fr;
  }

  /* Contact form two-column → single */
  .form-row,
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Government page sidebar + main */
  .government-layout,
  [style*="grid-template-columns: 1fr 360px"],
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
  }

  /* Featured blog post */
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__image {
    min-height: 220px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Service area map height */
  .service-area__map {
    height: 260px;
  }

  /* Image reveal height */
  .image-reveal {
    height: 55vh;
    min-height: 320px;
  }

  /* Carousel height */
  .service-carousel {
    min-height: 420px;
  }

  /* Carousel arrows — hide on mobile (dots sufficient) */
  .service-carousel__arrow {
    display: none;
  }

  /* Stat numbers — slightly smaller */
  .stat__number {
    font-size: 2rem;
  }

  /* ROI metric layout */
  .roi-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* Weather widget details */
  .weather-widget__details {
    grid-template-columns: repeat(3, 1fr);
    font-size: 0.8rem;
  }

  /* Table — horizontal scroll */
  .table-wrapper {
    overflow-x: auto;
  }

  /* Tawk chat button — move up slightly so it clears mobile nav bars */
  .chat-trigger {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .emergency-chat-btn {
    bottom: 78px;
    right: 16px;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  /* Inline flex → wrap */
  .flex {
    flex-wrap: wrap;
  }

  /* Blog grid already uses auto-fill minmax — fine. But ensure cards don't clip */
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small (≤480px) */
@media (max-width: 480px) {

  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  .container {
    padding: 0 1rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .header__phone-link {
    display: none;
  }

  .btn--lg {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .pricing-card__price {
    font-size: 2rem;
  }

  /* Category pills — shrink text */
  .category-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
}

/* ==========================================================================
   BLOG FURTHER READING
   ========================================================================== */
.further-reading {
  background: var(--card);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.further-reading__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-tech);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.further-reading__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.further-reading__list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--lines);
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.further-reading__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.further-reading__list a {
  color: var(--brand-tech);
  font-weight: 600;
  text-decoration: none;
}

.further-reading__list a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .header,
  .footer,
  .nav,
  .emergency-chat-btn,
  #tawkchat-container {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
