/* ============================================================
   IE Ingeniería Eléctrica — Design System "Iberian Precision"
   Based on Stitch MCP generated system by Google
   Palette: #EA580C (Amber), #374151 (Charcoal), #F9FAFB (Surface)
   Typography: Poppins (headings & labels), Open Sans (body)
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Color tokens */
  --color-amber: #D87A42;
  --color-amber-hover: #B86532;
  --color-amber-light: #FDF2EB;
  --color-amber-border: #EAB99D;
  --color-charcoal: #1F2A44;
  --color-charcoal-mid: #2A3859;
  --color-charcoal-soft: #8C8C8C;
  --color-charcoal-muted: #A3A3A3;
  --color-surface: #F9FAFB;
  --color-surface-alt: #F3F4F6;
  --color-white: #FFFFFF;
  --color-border: rgba(55, 65, 81, 0.10);
  --color-border-focus: #EA580C;
  --color-error: #DC2626;
  --color-success: #16A34A;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* Layout */
  --container-max: 1248px;
  --navbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-amber);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 8px;
  left: 8px;
}

/* ─── Layout Utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section-alt {
  background-color: var(--color-surface);
}

/* ─── Typography Utilities ─────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
  max-width: 680px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-amber-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--color-charcoal-soft);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--color-amber);
}

.faq-answer {
  height: 0;
  opacity: 0;
  overflow: hidden;
  /* GSAP will control height and opacity */
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-amber);
  color: #FFFFFF;
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background-color: var(--color-amber);
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

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

.btn-primary:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-charcoal-mid);
  background-color: var(--color-surface);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 14px 28px;
}

.btn-whatsapp {
  background-color: var(--color-amber);
  gap: var(--space-3);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  font-size: var(--text-lg);
  padding: 16px 32px;
}

.btn-loading {
  display: none;
  position: absolute;
  right: 20px;
}

.btn-submit.loading .btn-loading {
  display: flex;
}

.btn-submit.loading>svg:first-child {
  opacity: 0;
}

.btn-submit.loading>span.btn-label {
  opacity: 0.7;
}

/* ─── NAVBAR (Modern Floating Pill) ───────────────────────── */
.navbar {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-8));
  max-width: 1100px;
  z-index: 100;
  height: 70px;
  background: rgba(31, 42, 68, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: var(--space-2);
  background: rgba(31, 42, 68, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 1000px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-3) 0 var(--space-6);
  gap: var(--space-6);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-emblem {
  flex-shrink: 0;
}

.brand-accent {
  color: var(--color-amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.footer-bottom p {
  color: var(--color-charcoal-soft);
  font-size: var(--text-sm);
}

/* ─── FLOATING WHATSAPP BUTTON ───────────────────────── */
.wa-floating-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s infinite;
  z-index: -1;
}

.wa-floating-btn:hover {
  transform: scale(1.1) rotate(-5deg);
}

.wa-tooltip {
  position: absolute;
  right: 75px;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-charcoal);
}

.wa-floating-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

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

@media (max-width: 600px) {
  .wa-floating-btn {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 50px;
    height: 50px;
  }
  .wa-floating-btn svg {
    width: 26px;
    height: 26px;
  }
  .wa-tooltip { display: none; }
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.nav-cta {
  margin-left: var(--space-2);
  flex-shrink: 0;
  font-size: var(--text-sm);
  padding: 10px 24px;
  border-radius: 100px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  flex-direction: column;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.1);
  gap: var(--space-1);
}

.mobile-menu.open {
  display: flex;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-charcoal);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-link:hover {
  background: rgba(31, 41, 55, 0.04);
  padding-left: calc(var(--space-4) + 4px);
}

.mobile-cta {
  margin-top: var(--space-4);
  justify-content: center;
  border-radius: 100px;
}

/* ─── HERO ─────────────────────────────────────────────── */
.section-hero {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--navbar-h) + var(--space-8));
  padding-bottom: var(--space-12);
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 60%, #FDF2EB 100%);
  position: relative;
}

/* ─── HERO GLOW POINTER ────────────────────────────────── */
.hero-glow-pointer {
  position: absolute;
  top: 0; left: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* ─── HERO BLOB ────────────────────────────────────────── */
.hero-blob {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3) 0%, rgba(234, 88, 12, 0) 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: blob-morph 10s infinite alternate ease-in-out;
}

@keyframes blob-morph {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.2); }
}



.hero-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-12);
  position: relative;
  margin-block: auto;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234,88,12,0.15) 0%, rgba(234,88,12,0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-amber);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.text-rotator-wrap {
  display: inline-flex;
  flex-direction: column;
  height: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--color-amber);
}

.text-rotator-inner {
  display: flex;
  flex-direction: column;
  animation: rotate-words 6s infinite cubic-bezier(0.6, 0.05, 0.28, 0.91);
}

.rotator-item {
  height: 1.1em;
  line-height: 1.1em;
}

@keyframes rotate-words {
  0%, 40% { transform: translateY(0); }
  50%, 90% { transform: translateY(-1.1em); }
  100% { transform: translateY(-2.2em); }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-charcoal-soft);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  font-weight: 500;
}

/* Portrait */
.hero-portrait {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  position: relative;
  perspective: 1200px;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  transform-style: preserve-3d;
  will-change: transform;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-2xl);
  display: block;
  box-shadow: var(--shadow-xl);
}

/* ─── HERO PARTICLES ───────────────────────────────────── */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Below content but above background */
  pointer-events: none; /* Let clicks pass through to the buttons */
}

/* Glassmorphism badge */
.hero-glass-badge {
  position: absolute;
  bottom: 10%;
  left: -10%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.glass-badge-icon {
  font-size: 1.5rem;
}

.glass-badge-content {
  display: flex;
  flex-direction: column;
}

.glass-badge-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-charcoal);
  line-height: 1;
}

.glass-badge-sub {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

@keyframes float {
  0% { transform: translateZ(60px) translateY(0px); }
  50% { transform: translateZ(60px) translateY(-10px); }
  100% { transform: translateZ(60px) translateY(0px); }
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(145deg, #E5E7EB 0%, #D1D5DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.portrait-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #374151 0%, #1F2937 100%);
}

.portrait-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 1;
}

.portrait-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.portrait-tag {
  position: absolute;
  bottom: -16px;
  left: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal);
  box-shadow: var(--shadow-md);
}

.portrait-badge {
  position: absolute;
  top: var(--space-5);
  right: -20px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-amber);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.badge-divider {
  opacity: 0.6;
}

/* ─── STATS SECTION ────────────────────────────────────── */
.section-stats {
  background-color: var(--color-charcoal);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-amber);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-white);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10) var(--space-6);
  }
}

/* ─── TRUST MARQUEE ──────────────────────────────────── */
.marquee-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.marquee-section::before,
.marquee-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite reverse;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding-right: var(--space-16);
}

.marquee-item {
  height: 50px;
  width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  cursor: default;
}

.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: var(--color-amber);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── PAIN BLOCK ─────────────────────────────────────── */
.section-pain {
  background: var(--color-charcoal);
  padding-block: var(--space-24);
}

.pain-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-20);
}

.pain-content .section-label {
  color: var(--color-amber-border);
}

.pain-heading {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.pain-body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.pain-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-amber);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), gap var(--transition-fast);
}

.pain-trigger:hover {
  border-bottom-color: var(--color-amber);
  gap: var(--space-3);
}

.pain-trigger:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.pain-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.pain-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  flex: 1;
}

.pain-card-solution {
  background: var(--color-amber);
  border-color: var(--color-amber);
}

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.pain-card-solution .pain-icon {
  background: rgba(255, 255, 255, 0.25);
}

.pain-card-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.pain-card-sublabel {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.pain-arrow {
  font-size: var(--text-2xl);
  color: var(--color-amber);
  font-weight: 700;
}

/* ─── BENTO GRID ─────────────────────────────────────── */
.section-situations {
  background: var(--color-white);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.bento-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  cursor: default;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-amber-border);
}

.bento-card .bento-icon svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-icon svg {
  transform: scale(1.1) rotate(2deg);
}

.bento-card--wide {
  grid-column: span 1;
  background: var(--color-surface);
}

.bento-card--accent {
  background: var(--color-amber);
  border-color: var(--color-amber);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: var(--color-amber-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-amber);
  flex-shrink: 0;
}

.bento-icon--white {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.bento-title--white {
  color: var(--color-white);
}

.bento-body {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.bento-body--white {
  color: rgba(255, 255, 255, 0.85);
}

.bento-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-amber);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.bento-link:hover {
  text-decoration: underline;
}

.bento-link:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.bento-link--white {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── SERVICES ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (min-width: 769px) {
  .services-bento .bento-wide {
    grid-column: span 2;
  }
  .services-bento .bento-tall {
    grid-row: span 2;
  }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-amber-border);
}

.service-card .service-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(2deg);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--color-amber-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

/* ─── BEFORE & AFTER SLIDER ──────────────────────────── */
.section-before-after {
  background: var(--color-surface);
}

.ba-slider-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-charcoal);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.ba-img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0); /* JS will update the 50% right inset */
  z-index: 1;
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(31, 41, 55, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 4px;
  background: var(--color-amber);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.5);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--color-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* ─── DARK SECTION THEME ─────────────────────────────── */
.section-dark {
  background-color: var(--color-charcoal);
  color: var(--color-charcoal-muted);
}
.section-dark .section-title,
.section-dark h2,
.section-dark h3,
.section-dark .bento-title,
.section-dark .service-title,
.section-dark .comparison-col--left .comparison-header {
  color: var(--color-white);
}
.section-dark .section-subtitle,
.section-dark p,
.section-dark .diff-body,
.section-dark .service-desc,
.section-dark .comparison-list--neg li {
  color: var(--color-charcoal-muted);
}
.section-dark .comparison-col--right {
  color: var(--color-charcoal);
}
.section-dark .comparison-col--right .comparison-header {
  color: var(--color-charcoal);
}
.section-dark .bento-card,
.section-dark .service-card,
.section-dark .comparison-col--left {
  background-color: var(--color-charcoal-mid);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .bento-card:hover,
.section-dark .service-card:hover {
  background-color: var(--color-charcoal-mid);
  border-color: var(--color-amber-border);
}

/* ─── DIFFERENTIATION ────────────────────────────────── */
.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: start;
}

.diff-body {
  font-size: var(--text-lg);
  color: var(--color-charcoal-soft);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

.comparison-col {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.comparison-col--left {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.comparison-col--right {
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber-border);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-5);
  letter-spacing: 0.01em;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.comparison-list li {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.comparison-list--neg li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #DC2626;
  font-size: var(--text-xs);
  font-weight: 700;
  top: 2px;
}

.comparison-list--pos li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-amber);
  font-weight: 700;
  top: 2px;
}

/* ─── PROCESS TIMELINE ───────────────────────────────── */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 2px 1fr;
  align-items: start;
  gap: 0 var(--space-6);
  padding-bottom: var(--space-10);
  animation-delay: var(--delay, 0ms);
}

.step-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-amber);
  line-height: 1.4;
  text-align: right;
  padding-right: var(--space-2);
  letter-spacing: -0.02em;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--color-amber) 0%, var(--color-amber-border) 100%);
  align-self: stretch;
  margin-top: var(--space-2);
  margin-bottom: 0;
  min-height: 80px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-connector.drawn {
  transform: scaleY(1);
}

.step-content {
  padding-top: var(--space-1);
  padding-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

/* ─── SEGMENTS TABS ─────────────────────────────────── */
.segments-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-1);
}

.seg-tab {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal-soft);
  background: none;
  border: none;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

.seg-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.seg-tab:hover {
  color: var(--color-charcoal);
}

.seg-tab:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.seg-tab--active {
  color: var(--color-amber);
}

.seg-tab--active::after {
  background: var(--color-amber);
}

.seg-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.seg-panel--active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seg-panel-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-10);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  align-items: start;
}

.seg-icon {
  width: 64px;
  height: 64px;
  background: var(--color-amber-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seg-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

.seg-text p {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.seg-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
}

.seg-list li {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  padding-left: var(--space-4);
  position: relative;
}

.seg-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-amber);
  font-weight: 700;
}

/* ─── PROCESS TIMELINE ───────────────────────────────── */
.section-timeline {
  /* Default background inherited */
}

.section-timeline.section-dark {
  background: var(--color-charcoal);
}

.section-dark .timeline-line {
  background: rgba(255, 255, 255, 0.1);
}

.section-dark .timeline-node {
  background: var(--color-charcoal);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
}

.section-dark .timeline-node.active {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-white);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-12);
}

.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* GSAP will animate this */
  background: var(--color-amber);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-16);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: calc(-1 * var(--space-12));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-charcoal-soft);
  z-index: 2;
  transition: border-color 0.4s, color 0.4s, background 0.4s, box-shadow 0.4s;
}

.timeline-node.active {
  border-color: var(--color-amber);
  background: var(--color-amber);
  color: var(--color-white);
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.4);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
}

.timeline-desc {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .timeline-container { padding-left: var(--space-10); }
  .timeline-line { left: 15px; }
  .timeline-node { 
    left: calc(-1 * var(--space-10)); 
    width: 32px; 
    height: 32px; 
    font-size: var(--text-sm);
  }
}

/* ─── CASE STUDIES ─────────────────────────────────────── */
.section-cases {
  background-color: var(--color-surface);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.case-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.case-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
}

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

.case-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-amber);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.case-content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.case-detail-item {
  display: flex;
  flex-direction: column;
}

.case-detail-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.case-detail-text {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── TESTIMONIAL CAROUSEL ───────────────────────────── */
.section-testimonials {
  background: var(--color-charcoal);
  color: var(--color-white);
  overflow: hidden;
}

.section-testimonials .section-title,
.section-testimonials .section-label {
  color: var(--color-white);
}

.test-marquee-wrapper {
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-4);
  overflow: hidden;
  display: flex;
  gap: var(--space-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.test-marquee-track {
  display: flex;
  gap: var(--space-6);
  flex-shrink: 0;
  animation: test-marquee 30s linear infinite;
  padding-bottom: var(--space-8);
  will-change: transform;
}

@media (hover: hover) {
  .test-marquee-wrapper:hover .test-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes test-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--space-6))); }
}

.test-card {
  flex: 0 0 350px;
  max-width: 85vw;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  /* Prevent Safari from hiding off-screen elements during animation */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.test-stars {
  color: var(--color-amber);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.test-quote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.test-author {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-weight: 600;
}

@media (max-width: 600px) {
  .test-card { flex: 0 0 85vw; }
}

/* ─── ABOUT ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-20);
  align-items: center;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(145deg, #374151 0%, #1F2937 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.about-credentials {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  font-weight: 500;
}

.about-body {
  font-size: var(--text-lg);
  color: var(--color-charcoal-soft);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

/* ─── FAQ ACCORDION ─────────────────────────────────── */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: var(--shadow-md);
  border-color: var(--color-amber-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-charcoal);
  touch-action: manipulation;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-amber);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: -2px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.faq-answer-inner p {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.75;
}

.faq-answer-inner strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.faq-answer-inner ul {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-answer-inner li {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
}

/* ─── INTERACTIVE MAP ──────────────────────────────────── */
.contact-map-wrapper {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-16);
  position: relative;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.premium-map {
  width: 100%;
  height: 100%;
  background: var(--color-charcoal);
  z-index: 1; /* keep below overlay */
}

.map-overlay-info {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 2; /* above map tiles */
  max-width: calc(100% - var(--space-12));
}

.map-overlay-info h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.map-overlay-info p {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  margin: 0;
  line-height: 1.4;
}

.custom-map-marker {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.8));
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--color-charcoal) !important;
  color: var(--color-white) !important;
  font-family: var(--font-body) !important;
}

@media (max-width: 768px) {
  .contact-map-wrapper { height: 250px; }
  .map-overlay-info {
    top: auto;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ─── CONTACT FORM ───────────────────────────────────── */
.section-contact {
  background: var(--color-charcoal);
  padding-block: var(--space-24);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-20);
  align-items: start;
}

.contact-info {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.contact-info .section-label {
  color: var(--color-amber-border);
}

.contact-title {
  color: var(--color-white);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  margin-bottom: var(--space-6);
}

.contact-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.channel-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-white);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

a.channel-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

.channel-item--static {
  cursor: default;
}

.channel-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

.channel-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

/* Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal);
}

.required {
  color: var(--color-error);
  font-weight: 700;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-fast);
  min-height: 48px;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 4px rgba(31, 41, 55, 0.02);
}

.form-input:focus {
  background: var(--color-white);
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.form-input::placeholder {
  color: var(--color-charcoal-muted);
}

.form-input:hover {
  border-color: rgba(55, 65, 81, 0.40);
}

.form-input:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  min-height: 16px;
}

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

.select-wrap {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 40px;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-charcoal-soft);
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(55, 65, 81, 0.20);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  background: var(--color-surface);
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--color-amber);
  background: var(--color-amber-light);
}

.dropzone:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.dropzone-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal-soft);
}

.dropzone-sublabel {
  font-size: var(--text-sm);
  color: var(--color-charcoal-muted);
}

.dropzone-browse {
  background: none;
  border: none;
  color: var(--color-amber);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  pointer-events: all;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dropzone-formats {
  font-size: var(--text-xs);
  color: var(--color-charcoal-muted);
  margin-top: var(--space-1);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.form-submit-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-microcopy {
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  line-height: 1.6;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--color-charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-20);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-link:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-6);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

/* ─── MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.70);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: overlayIn 0.2s ease-out;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--color-amber-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

.modal-desc {
  font-size: var(--text-base);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.modal-close {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-charcoal-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-charcoal);
  background: var(--color-surface);
}

.modal-close:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

/* ─── ANIMATIONS (NOW CONTROLLED BY GSAP IN MAIN.JS) ──────────────── */

/* Loading spinner */
.spin {
  animation: spinAnim 0.8s linear infinite;
}

@keyframes spinAnim {
  to {
    transform: rotate(360deg);
  }
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

/* Large tablets (1024px) */
@media (max-width: 1024px) {
  .section-hero {
    min-height: auto;
    display: block;
    padding-top: calc(var(--navbar-h) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .hero-grid {
    flex-direction: column;
    gap: var(--space-12);
  }

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

  .portrait-frame {
    max-width: 360px;
  }

  .portrait-badge {
    right: -8px;
  }

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

  .bento-card--wide {
    grid-column: span 2;
  }

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

  .diff-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  :root {
    --navbar-h: 64px;
  }

  .navbar {
    width: calc(100% - var(--space-4));
  }

  .navbar-inner {
    padding: 0 var(--space-4);
  }

  .container {
    padding-inline: var(--space-5);
  }

  .section {
    padding-block: var(--space-16);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid {
    text-align: center;
  }

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

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

  .hero-subtitle {
    margin-inline: auto;
  }

  .section-header {
    text-align: left;
  }

  .section-header .section-subtitle {
    margin-inline: 0;
  }

  .pain-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .pain-visual {
    order: -1;
    flex-direction: column;
    width: 100%;
  }

  .pain-arrow {
    transform: rotate(90deg);
  }

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

  .bento-card--wide {
    grid-column: span 1;
  }

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

  .comparison-table {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 48px 2px 1fr;
    gap: 0 var(--space-4);
  }

  .seg-panel-inner {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .seg-list {
    grid-template-columns: 1fr;
  }

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

  .about-photo {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: var(--space-6);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: var(--text-base);
  }

  .sections-tabs {
    gap: var(--space-1);
  }

  .seg-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .modal {
    padding: var(--space-8) var(--space-6);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}