/* ===================================================================
   PROSHIELD – Premium Leak Detection & Flood Protection Website
   Design System & Styles
   =================================================================== */

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

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --brand-primary: #0a6fc2;
  --brand-primary-light: #3d9df5;
  --brand-primary-dark: #064a85;
  --brand-accent: #00d4ff;
  --brand-accent-glow: rgba(0, 212, 255, 0.35);
  --brand-emergency: #ff3b30;
  --brand-emergency-glow: rgba(255, 59, 48, 0.4);
  --brand-success: #34c759;
  --brand-warning: #ff9f0a;

  /* Surfaces */
  --surface-dark: #0a0e17;
  --surface-darker: #060a12;
  --surface-card: rgba(15, 23, 42, 0.65);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-light: #f8fafc;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --text-dark-secondary: #475569;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1280px;
  --container-padding: 0 24px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px var(--brand-accent-glow);
  --shadow-emergency: 0 0 40px var(--brand-emergency-glow);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 200ms var(--ease-smooth);
  --transition-normal: 350ms var(--ease-smooth);
  --transition-slow: 600ms var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--surface-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Animated Canvas Background --- */
#particleBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(10, 111, 194, 0.12), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* --- Logo Image --- */
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--brand-primary-dark);
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 100;
}

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

.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

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

.top-bar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-bar-right a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.top-bar-right a:hover {
  background: var(--brand-accent);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--surface-glass-border);
  padding: 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}

.nav-logo span:last-child {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-glass);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--brand-accent);
}

.nav-cta {
  margin-left: 12px;
}

.nav-emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--brand-emergency);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  animation: emergency-pulse 2s ease-in-out infinite;
  box-shadow: var(--shadow-emergency);
  transition: all var(--transition-fast);
}

.nav-emergency-btn:hover {
  background: #e5342a;
  transform: scale(1.05);
  box-shadow: 0 0 60px var(--brand-emergency-glow);
}

@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--brand-emergency-glow); }
  50% { box-shadow: 0 0 45px var(--brand-emergency-glow), 0 0 80px rgba(255, 59, 48, 0.15); }
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 10, 18, 0.92) 0%,
    rgba(10, 111, 194, 0.35) 50%,
    rgba(6, 10, 18, 0.88) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeSlideUp 0.8s var(--ease-smooth) both;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--brand-accent);
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--brand-success);
  animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Agentic Assistant Widget */
.agentic-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  font-size: 0.88rem;
  max-width: 100%;
  box-sizing: border-box;
}

.agentic-bar-prompts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agentic-badge {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agentic-prompt-btn {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--surface-glass-border);
  color: var(--brand-accent);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.agentic-prompt-btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

/* ===================================================================
   FLOATING AGENTIC AI CHAT WIDGET (from andookg/agentic-chat-widget)
   =================================================================== */
.chat-widget-toggle {
  position: fixed;
  bottom: 92px; /* Stacked cleanly above .floating-emergency at bottom: 24px */
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--brand-primary), #00b4d8);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.4);
  transition: all var(--transition-fast);
}

.chat-widget-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 180, 216, 0.5);
}

.chat-widget-window {
  display: none;
  position: fixed;
  bottom: 158px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 180px);
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  z-index: 9999;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeSlideUp 0.3s ease;
}

.chat-widget-window.active {
  display: flex;
}

.chat-widget-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-widget-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-widget-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}

.chat-widget-close:hover {
  opacity: 1;
}

.chat-widget-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--brand-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-chips {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid var(--surface-glass-border);
}

.chat-chip {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--surface-glass-border);
  color: var(--brand-accent);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chat-chip:hover {
  background: var(--brand-accent);
  color: #fff;
}

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--surface-glass-border);
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: 99px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.chat-input-bar button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-glass-border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.2s both;
}

.hero-visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 500px;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-glass-border);
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 111, 194, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10, 111, 194, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--surface-glass);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-3px);
}

.btn-emergency {
  background: var(--brand-emergency);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 36px;
  box-shadow: var(--shadow-emergency);
  animation: emergency-pulse 2s ease-in-out infinite;
}

.btn-emergency:hover {
  background: #e5342a;
  transform: scale(1.05);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* --- Section Common --- */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Emergency Banner --- */
.emergency-banner {
  background: linear-gradient(135deg, #1a0000, #2d0a0a, #1a0000);
  border-top: 2px solid var(--brand-emergency);
  border-bottom: 2px solid var(--brand-emergency);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.emergency-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 59, 48, 0.1), transparent);
  animation: emergency-bg-pulse 3s ease-in-out infinite;
}

@keyframes emergency-bg-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.emergency-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.emergency-icon {
  font-size: 2.5rem;
  animation: emergency-shake 1s ease-in-out infinite;
}

@keyframes emergency-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.emergency-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-emergency);
}

.emergency-text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.emergency-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--brand-emergency);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-emergency);
  animation: emergency-pulse 2s ease-in-out infinite;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.emergency-call-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 80px var(--brand-emergency-glow);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.15), rgba(0, 212, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-accent);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
  gap: 12px;
}

/* --- About / Why Choose Us --- */
.about-section {
  background: linear-gradient(180deg, var(--surface-dark) 0%, rgba(10, 111, 194, 0.04) 50%, var(--surface-dark) 100%);
}

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

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-accent);
  line-height: 1;
}

.about-badge .badge-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.feature-item:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
}

.feature-item .check {
  color: var(--brand-success);
  font-size: 1.1rem;
}

/* --- Products/Tech Section --- */
.products-section {
  background: var(--surface-darker);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 212, 255, 0.2);
}

.product-card-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

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

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

.product-card-image .product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-body {
  padding: 28px;
}

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-feature-tag {
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--brand-accent);
  font-weight: 500;
}

/* --- Process / How It Works --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-accent), var(--brand-primary), transparent);
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--surface-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  transition: all var(--transition-normal);
}

.process-step:hover .step-number {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials-section {
  background: linear-gradient(180deg, var(--surface-dark), rgba(10, 111, 194, 0.04), var(--surface-dark));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.testimonial-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-info .location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Contact / CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
  font-size: 1.1rem;
}

.cta-phone a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-accent);
}

/* --- Contact Form Section --- */
.contact-section {
  background: var(--surface-darker);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.15), rgba(0, 212, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-info-card a {
  color: var(--brand-accent);
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

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

/* --- Footer --- */
.footer {
  background: var(--surface-darker);
  border-top: 1px solid var(--surface-glass-border);
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .footer-logo span:last-child {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--brand-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--surface-glass-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Floating Emergency Button --- */
.floating-emergency {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-emergency-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--brand-emergency);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 59, 48, 0.45);
  animation: floating-pulse 2.5s ease-in-out infinite;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.floating-emergency-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(255, 59, 48, 0.6);
}

@keyframes floating-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 48px rgba(255, 59, 48, 0.6), 0 0 80px rgba(255, 59, 48, 0.2);
  }
}

.floating-emergency-btn .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand-emergency);
  animation: pulse-ring-anim 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Light Section Variant --- */
.section-light {
  background: var(--surface-light);
  color: var(--text-dark);
}

.section-light .section-title {
  color: var(--text-dark);
}

.section-light .section-subtitle {
  color: var(--text-dark-secondary);
}

/* --- Emergency Modal --- */
.emergency-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.emergency-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.emergency-modal {
  background: var(--surface-card);
  border: 2px solid var(--brand-emergency);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.emergency-modal-overlay.active .emergency-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--brand-emergency);
  color: #fff;
  border-color: var(--brand-emergency);
}

.emergency-modal .modal-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: emergency-shake 1s ease-in-out infinite;
}

.emergency-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-emergency);
  margin-bottom: 12px;
}

.emergency-modal p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.emergency-modal .emergency-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emergency-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.emergency-option:hover {
  background: var(--brand-emergency);
  border-color: var(--brand-emergency);
  transform: translateX(4px);
}

.emergency-option .option-icon {
  font-size: 1.4rem;
}

/* ===================================================================
   INTERACTIVE CALCULATOR SECTION
   =================================================================== */
.calc-section {
  background: var(--surface-darker);
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.calc-field label span.val {
  color: var(--brand-accent);
  font-family: var(--font-heading);
}

.calc-slider-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  accent-color: var(--brand-accent);
}

.calc-results-box {
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-results-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.calc-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ff3b30;
  margin-bottom: 16px;
  line-height: 1;
}

.calc-savings-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-success);
  margin-bottom: 24px;
  line-height: 1;
}

.calc-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   INTERACTIVE SIMULATOR SECTION
   =================================================================== */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.sim-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-glass-border);
  background: var(--surface-darker);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-preview img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.sim-status-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-status-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.sim-status-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-ok {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.status-leak {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
  animation: pulse-ring-anim 1.5s infinite;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.sim-btn:hover, .sim-btn.active {
  border-color: var(--brand-accent);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(4px);
}

/* ===================================================================
   FAQ ACCORDION SECTION
   =================================================================== */
.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
  color: var(--brand-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #ff3b30;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* ===================================================================
   CITY / ALBERTA COVERAGE SECTION
   =================================================================== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.city-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.city-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  background: rgba(0, 212, 255, 0.06);
}

.city-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.city-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================================
   SENIOR / SNOWBIRD ALBERTA PROTECTION SECTION
   =================================================================== */
.senior-card {
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.12), rgba(0, 212, 255, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}

.senior-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 12px;
}

.senior-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: #34c759;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===================================================================
   SENIOR ACCESSIBILITY / LARGE TEXT MODE (1.25x scaling)
   =================================================================== */
body.senior-mode {
  font-size: 1.2rem;
  line-height: 1.9;
}

body.senior-mode h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem) !important; }
body.senior-mode h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important; }
body.senior-mode h3 { font-size: 1.5rem !important; }
body.senior-mode p { font-size: 1.2rem !important; }
body.senior-mode .btn { padding: 18px 36px !important; font-size: 1.15rem !important; }
body.senior-mode .nav-links a { font-size: 1.05rem !important; padding: 10px 20px !important; }

/* Font Size Toggle Button */
.font-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--surface-glass-border);
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.font-toggle-btn:hover {
  transform: scale(1.12);
  border-color: var(--brand-accent);
}

/* ===================================================================
   MOBILE STICKY ACTION DOCK (For phones & tablets)
   =================================================================== */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--surface-glass-border);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-dock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  color: #fff;
  text-align: center;
  gap: 2px;
}

.mobile-dock-btn.call {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
}

.mobile-dock-btn.text {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--brand-accent);
}

.mobile-dock-btn.emergency {
  background: var(--brand-emergency);
  animation: emergency-pulse 2s infinite;
}

@media (max-width: 768px) {
  .mobile-dock {
    display: block;
  }
  
  .floating-emergency {
    display: none; /* Mobile dock already has red EMERGENCY button */
  }

  .chat-widget-toggle {
    bottom: 80px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .chat-widget-window {
    bottom: 135px;
    right: 16px;
    width: calc(100vw - 32px);
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  body {
    padding-bottom: 70px; /* space for mobile dock */
  }
}

/* --- Responsive Additions --- */
@media (max-width: 900px) {
  .calc-container, .sim-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* --- Light theme overrides for new components --- */
body.light-theme .calc-container,
body.light-theme .sim-grid,
body.light-theme .faq-item,
body.light-theme .city-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .calc-results-box {
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.08), rgba(8, 145, 178, 0.04));
  border-color: rgba(10, 111, 194, 0.15);
}

body.light-theme .calc-field label {
  color: #0f172a;
}

body.light-theme .sim-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-theme .faq-question {
  color: #0f172a;
}

body.light-theme .sim-status-overlay {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 0; }

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .top-bar { display: none; }

  .nav-links { 
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--surface-glass-border);
  }

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

  .nav-toggle { display: flex; }

  .nav-cta { margin-left: 0; }

  .hero { min-height: auto; padding-top: 40px; padding-bottom: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .floating-emergency-btn {
    padding: 14px 22px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .emergency-modal { padding: 32px 24px; }
}

/* ===================================================================
   LIGHT / WHITE THEME
   =================================================================== */

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--surface-glass-border);
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  border-color: var(--brand-accent);
}

.theme-toggle-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-toggle:hover .theme-toggle-label {
  opacity: 1;
}

/* --- Light Theme Variable Overrides --- */
body.light-theme {
  --surface-dark: #f8fafc;
  --surface-darker: #f1f5f9;
  --surface-card: rgba(255, 255, 255, 0.85);
  --surface-glass: rgba(0, 0, 0, 0.03);
  --surface-glass-border: rgba(0, 0, 0, 0.08);
  --surface-light: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --brand-primary: #0a6fc2;
  --brand-primary-light: #2d8cf0;
  --brand-accent: #0891b2;
  --brand-accent-glow: rgba(8, 145, 178, 0.2);
  --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.15);

  background: #f8fafc;
  color: #0f172a;
}

/* Body background gradient for light */
body.light-theme::before {
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(10, 111, 194, 0.06), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(0, 212, 255, 0.03), transparent);
}

/* Navbar light */
body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .nav-logo span {
  background: linear-gradient(135deg, var(--brand-primary), #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .nav-links a {
  color: #475569;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

/* Top bar light */
body.light-theme .top-bar {
  background: #0a6fc2;
}

/* Hero light */
body.light-theme .hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(10, 111, 194, 0.15) 50%,
    rgba(248, 250, 252, 0.92) 100%
  );
}

body.light-theme .hero-badge {
  background: rgba(10, 111, 194, 0.06);
  border-color: rgba(10, 111, 194, 0.12);
  color: var(--brand-primary);
}

body.light-theme .hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand-primary), #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .hero-stat .number {
  color: var(--brand-primary);
}

body.light-theme .hero-stats {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-outline {
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.light-theme .btn-outline:hover {
  background: rgba(10, 111, 194, 0.05);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Emergency banner stays dark/red in light mode for contrast */
body.light-theme .emergency-banner {
  background: linear-gradient(135deg, #fff1f0, #ffe4e4, #fff1f0);
  border-top-color: #ff3b30;
  border-bottom-color: #ff3b30;
}

body.light-theme .emergency-banner::before {
  background: radial-gradient(ellipse at center, rgba(255, 59, 48, 0.04), transparent);
}

/* Service cards light */
body.light-theme .service-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .service-card:hover {
  border-color: rgba(10, 111, 194, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(10, 111, 194, 0.04);
}

body.light-theme .service-card h3 {
  color: #0f172a;
}

body.light-theme .service-icon {
  background: linear-gradient(135deg, rgba(10, 111, 194, 0.08), rgba(8, 145, 178, 0.04));
  border-color: rgba(10, 111, 194, 0.1);
}

body.light-theme .service-card .service-link {
  color: var(--brand-primary);
}

/* Products light */
body.light-theme .products-section {
  background: #f1f5f9;
}

body.light-theme .product-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(10, 111, 194, 0.15);
}

body.light-theme .product-card-image .product-tag {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-primary);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .product-feature-tag {
  background: rgba(10, 111, 194, 0.05);
  border-color: rgba(10, 111, 194, 0.12);
  color: var(--brand-primary);
}

/* About section light */
body.light-theme .about-section {
  background: linear-gradient(180deg, #f8fafc 0%, rgba(10, 111, 194, 0.02) 50%, #f8fafc 100%);
}

body.light-theme .about-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .about-badge .badge-number {
  color: var(--brand-primary);
}

body.light-theme .feature-item {
  background: rgba(10, 111, 194, 0.03);
  border-color: rgba(10, 111, 194, 0.08);
  color: #0f172a;
}

body.light-theme .feature-item:hover {
  background: rgba(10, 111, 194, 0.06);
  border-color: rgba(10, 111, 194, 0.15);
}

body.light-theme .feature-item .check {
  color: #059669;
}

/* Process steps light */
body.light-theme .step-number {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 111, 194, 0.12);
  color: var(--brand-primary);
}

body.light-theme .process-step:hover .step-number {
  border-color: var(--brand-primary);
  box-shadow: 0 0 30px rgba(10, 111, 194, 0.12);
}

body.light-theme .process-steps::before {
  background: linear-gradient(90deg, transparent, rgba(10, 111, 194, 0.2), rgba(8, 145, 178, 0.2), rgba(10, 111, 194, 0.2), transparent);
}

/* Testimonials light */
body.light-theme .testimonials-section {
  background: linear-gradient(180deg, #f8fafc, rgba(10, 111, 194, 0.02), #f8fafc);
}

body.light-theme .testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .testimonial-card:hover {
  border-color: rgba(10, 111, 194, 0.12);
}

body.light-theme .testimonial-avatar {
  background: linear-gradient(135deg, var(--brand-primary), #0891b2);
}

/* CTA section keeps its blue */
body.light-theme .cta-section {
  color: #fff;
}

body.light-theme .cta-section .section-title,
body.light-theme .cta-section h2 {
  color: #fff;
}

/* Contact light */
body.light-theme .contact-section {
  background: #f1f5f9;
}

body.light-theme .contact-info-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .contact-info-card:hover {
  border-color: rgba(10, 111, 194, 0.15);
}

body.light-theme .contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
  color: #94a3b8;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(10, 111, 194, 0.1);
}

/* Footer light */
body.light-theme .footer {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .footer-logo span:last-child {
  background: linear-gradient(135deg, var(--brand-primary), #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .footer-socials a {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  color: #475569;
}

body.light-theme .footer-socials a:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

body.light-theme .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Floating emergency – slightly adjusted shadow for light bg */
body.light-theme .floating-emergency-btn {
  box-shadow: 0 8px 32px rgba(255, 59, 48, 0.35), 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Emergency modal light */
body.light-theme .emergency-modal {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ff3b30;
}

body.light-theme .modal-close {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-theme .emergency-option {
  background: rgba(255, 59, 48, 0.04);
  border-color: rgba(255, 59, 48, 0.15);
  color: #0f172a;
}

body.light-theme .emergency-option:hover {
  background: #ff3b30;
  color: #fff;
}

/* Theme toggle in light mode */
body.light-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Section tags in light */
body.light-theme .section-tag {
  background: rgba(10, 111, 194, 0.06);
  border-color: rgba(10, 111, 194, 0.12);
  color: var(--brand-primary);
}

/* Mobile nav light */
@media (max-width: 768px) {
  body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  body.light-theme .theme-toggle {
    left: 12px;
  }

  .theme-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Smooth transition for theme change */
body,
body *,
body *::before,
body *::after {
  transition-property: background-color, border-color, color, box-shadow, background;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}
