/* ==========================================================================
   Stormrage Digital Marketing - Master Stylesheet
   Premium agency design. Clean, confident, conversion-focused.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Purple scale */
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-300: #c4b5fd;
  --primary-400: #a78bfa;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;

  /* Neutral scale */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic */
  --bg-body: #ffffff;
  --bg-alt: #f8f7fc;
  --bg-card: #ffffff;
  --bg-dark: var(--neutral-900);
  --text-heading: var(--neutral-900);
  --text-body: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --text-on-dark: var(--neutral-100);
  --border: var(--neutral-200);
  --border-hover: var(--primary-300);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.12);

  /* Radius */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 100px 24px;
  --section-pad-mobile: 64px 20px;

  /* Transition */
  --transition: 150ms ease;
  --transition-slow: 300ms ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Heading font */
h1, h2, h3, h4,
.hero-title,
.section-title,
.service-title,
.process-title,
.case-study-title,
.differentiator-title,
.contact-info h3,
.nav-brand a {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-600);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Content links */
.section-description a,
.hero-subtitle a,
.service-description a,
.process-description a,
.contact-info > p a {
  color: var(--primary-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.section-description a:hover,
.hero-subtitle a:hover,
.service-description a:hover,
.process-description a:hover,
.contact-info > p a:hover {
  color: var(--primary-700);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.services-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.services-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.services-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.services-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.services-grid .reveal:nth-child(6) { transition-delay: 400ms; }

.process-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.process-grid .reveal:nth-child(3) { transition-delay: 200ms; }

.case-studies-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.case-studies-grid .reveal:nth-child(3) { transition-delay: 200ms; }

.differentiators-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.differentiators-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.differentiators-grid .reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Navigation ---------- */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 48px;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.25));
}

.nav-brand a {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  color: #22c55e;
  animation: pulseGlow 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-600);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--primary-500);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.nav-cta::after {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-800);
  transition: all 0.3s ease;
}

.mobile-phone-icon {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08), transparent 50%),
              var(--neutral-900);
  color: var(--text-on-dark);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.seo-h1 {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
  color: white;
}

#rotate-part-1,
#rotate-part-2 {
  transition: opacity 0.2s ease-in-out;
  display: inline-block;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .ai-highlight {
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  padding: 14px 32px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--neutral-300);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.btn-secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* GeoGrid in hero */
.map-grid-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.map-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.85) saturate(0.9);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 24px;
  width: 85%;
}

.grid-point {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.grid-point:hover {
  transform: scale(1.15);
}

.grid-point.rank-top { background: linear-gradient(135deg, #22c55e, #16a34a); }
.grid-point.rank-mid { background: linear-gradient(135deg, #eab308, #ca8a04); }
.grid-point.rank-low { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-stat-value {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Sections (shared) ---------- */
.main {
  flex: 1;
}

.section {
  padding: var(--section-pad);
}

.section--alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-heading);
  line-height: 1.15;
}

.section-description {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-color: var(--primary-200);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.service-description {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Why Choose Us / Differentiators ---------- */
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.differentiator {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.differentiator:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.differentiator-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
}

.differentiator-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.differentiator-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.process-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.process-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.process-description {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.process-timeline {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
}

/* ---------- Case Studies ---------- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-4px);
}

.case-study-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--primary-100);
}

.case-study-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.case-study-subtitle {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-study-metric {
  text-align: center;
}

.case-study-metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.case-study-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.case-study-description {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.case-study-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.case-study-details {
  display: flex;
  gap: 10px;
}

.case-study-detail {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--neutral-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding: 0 60px;
}

.testimonial-slides {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #eab308;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-heading);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  color: var(--primary-200);
  font-style: normal;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--primary-100);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-heading);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.slider-nav-btn:hover {
  background: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.slider-nav-btn.prev { left: 0; }
.slider-nav-btn.next { right: 0; }

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--primary-500);
  width: 28px;
  border-radius: 4px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-500);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--primary-600);
}

.faq-answer {
  padding: 0 28px 22px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
}

.contact-detail strong {
  font-size: 14px;
  color: var(--text-heading);
  display: block;
  margin-bottom: 2px;
}

.contact-detail a {
  color: var(--primary-500);
  font-size: 14px;
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--primary-700);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-heading);
  background: var(--bg-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-success-message {
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #166534;
  font-size: 14px;
  font-weight: 500;
}

.form-submit {
  padding: 14px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.form-submit:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--neutral-900);
  color: var(--text-on-dark);
  padding: 80px 24px 40px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon img {
  height: 36px;
  width: auto;
}

.footer-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.footer-description {
  font-size: 14px;
  color: var(--neutral-400);
  line-height: 1.7;
}

.footer-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--neutral-400);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-800);
  font-size: 13px;
  color: var(--neutral-500);
}

.footer-bottom a {
  color: var(--neutral-500);
}

.footer-bottom a:hover {
  color: white;
}

/* ---------- Animations ---------- */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Inner Page Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 800px;
}

.section.modular {
  padding: 72px 24px;
}

.section.modular + .section.modular {
  padding-top: 0;
}

.section.modular .section-title {
  margin-bottom: 32px;
}

.section.modular.hero {
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08), transparent 50%),
              var(--neutral-900);
  color: var(--text-on-dark);
  padding: 80px 24px;
}

.section.modular.hero .hero-title {
  color: white;
}

.section.modular.hero .hero-subtitle {
  color: #94a3b8;
}

.section-body {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
}

.section-body p {
  margin-bottom: 16px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Cards System ---------- */
.cards {
  display: grid;
  gap: 24px;
}

.cards.cards-6 {
  grid-template-columns: repeat(3, 1fr);
}

.cards.cards-people {
  grid-template-columns: repeat(4, 1fr);
}

.cards.cards-services {
  grid-template-columns: repeat(2, 1fr);
}

.cards.cards-why {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card.small {
  padding: 24px 20px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-600);
}

.card-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
}

.card-body a {
  color: var(--primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-body a:hover {
  color: var(--primary-700);
}

/* ---------- Steps / Process (inner pages) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 80px;
}

.step::after {
  content: counter(step-counter);
  position: absolute;
  top: 32px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25);
}

.step-label {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.step-label a {
  color: inherit;
  text-decoration: none;
}

.step-label a:hover {
  color: var(--primary-600);
}

/* ---------- Problems List ---------- */
.problems-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problems-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.problems-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ---------- CTA Final Section ---------- */
.section.modular.cta-final {
  background: linear-gradient(135deg, var(--neutral-900), var(--primary-900));
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.cta-final-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary.large {
  padding: 16px 36px;
  font-size: 17px;
}

/* ---------- Quick Summary (city pages) ---------- */
.section.modular.quick-summary {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.quick-summary-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- LSI Variations (city pages) ---------- */
.lsi-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.lsi-variations span,
.lsi-variations a {
  font-size: 13px;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
  font-weight: 500;
}

/* ---------- FAQ (inner pages - div-based) ---------- */
.faq-section .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-section .faq-question {
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-section .faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-500);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-section .faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-section .faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 28px 22px;
}

.faq-section .faq-answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Inner Page Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .cards.cards-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards.cards-people {
    grid-template-columns: repeat(2, 1fr);
  }
  .step {
    padding-left: 72px;
  }
}

/* ---------- Inner Page Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .cards.cards-6,
  .cards.cards-people,
  .cards.cards-services,
  .cards.cards-why {
    grid-template-columns: 1fr;
  }

  .section.modular {
    padding: 48px 16px;
  }

  .section.modular.hero {
    padding: 56px 16px;
  }

  .step {
    padding-left: 0;
    padding-top: 56px;
  }

  .step::after {
    top: 24px;
    left: 24px;
  }

  .section.modular.cta-final {
    padding: 56px 16px;
  }
}

/* ---------- Audit Page Styles ---------- */
.stormrage-audit {
  max-width: 100%;
  overflow-x: hidden;
}

.audit-header {
  background: linear-gradient(135deg, var(--neutral-900), var(--primary-900));
  color: white;
  padding: 48px 24px;
}

.audit-header h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 24px; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-container {
    min-height: 300px;
    max-width: 600px;
    margin: 0 auto;
  }

  .services-grid,
  .process-grid,
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differentiators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section {
    padding: 72px 24px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    gap: 16px;
    z-index: 99;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-phone-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    color: #22c55e;
  }

  .nav-phone-icon {
    display: none;
  }

  .hero {
    padding: 56px 20px;
  }

  .hero-container {
    gap: 32px;
  }

  .services-grid,
  .process-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .differentiators-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-stat-value {
    font-size: 28px;
  }

  .section {
    padding: var(--section-pad-mobile);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .testimonial-slider {
    padding: 0 16px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .testimonial-quote::before {
    display: none;
  }

  .slider-nav-btn { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .case-study-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-study-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-grid {
    gap: 40px;
  }

  .differentiator {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 20px 18px;
  }
}
