/* ===== PRO PLUMBING & HEATING — DESIGN SYSTEM ===== */

:root {
  /* Colors */
  --color-primary: #0F1B2D;
  --color-secondary: #1A2332;
  --color-accent: #E8820C;
  --color-accent-hover: #CF7009;
  --color-background: #0B1420;
  --color-surface: #162030;
  --color-text: #E8ECF1;
  --color-text-muted: #8899AB;
  --color-border: #253347;

  /* RGB values for rgba() usage */
  --primary-rgb: 15, 27, 45;
  --secondary-rgb: 26, 35, 50;
  --accent-rgb: 232, 130, 12;
  --background-rgb: 11, 20, 32;
  --surface-rgb: 22, 32, 48;
  --border-rgb: 37, 51, 71;

  /* Typography — Fluid Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1rem + 1.2vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.1rem + 2vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.2rem + 3vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.2rem + 4.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 1.5rem + 6vw, 4.5rem);

  /* Spacing */
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Animation tokens */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-micro: 150ms;
  --duration-small: 250ms;
  --duration-medium: 500ms;
  --duration-large: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

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

  /* Font families */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== BASE RESETS & DEFAULTS ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM SELECTION ===== */
::selection {
  background: var(--color-accent);
  color: var(--color-background);
}

/* ===== CUSTOM SCROLLBAR (WebKit) ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 8px;
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background-color var(--duration-small) var(--ease-standard),
              backdrop-filter var(--duration-small) var(--ease-standard),
              -webkit-backdrop-filter var(--duration-small) var(--ease-standard),
              box-shadow var(--duration-small) var(--ease-standard);
}
.navbar-scrolled {
  background: rgba(15, 27, 45, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 51, 71, 0.3);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }
}

/* Logo */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  gap: 0;
}

/* Nav links */
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--duration-small) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-small) var(--ease-out);
}
.nav-link:hover {
  color: var(--color-text);
}
.nav-link:hover::after {
  width: 100%;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: transform var(--duration-micro) var(--ease-out),
              background-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.btn-primary:hover {
  transform: scale(1.02);
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(232, 130, 12, 0.25);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: border-color var(--duration-micro) var(--ease-out),
              color var(--duration-micro) var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.4);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-background);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(15, 27, 45, 1) 0%, rgba(11, 20, 32, 1) 70%);
  z-index: 0;
}

.hero-image-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-container::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 20, 32, 0.6), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding-left: 1.5rem;
  max-width: 680px;
}

.hero-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  opacity: 1; /* Always visible — no animation */
}
.hero-phone:hover {
  color: var(--color-accent-hover);
  transition: color 0.2s ease-out;
}

/* Hero headline text reveal */
.hero-headline-line {
  display: block;
  clip-path: inset(100% 0 0 0);
  animation: text-reveal-up var(--duration-large) var(--ease-out) both;
}
.hero-headline-line:nth-child(1) { animation-delay: 0.3s; }
.hero-headline-line:nth-child(2) { animation-delay: 0.45s; }

@keyframes text-reveal-up {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Hero badge */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up var(--duration-large) var(--ease-out) 0.1s both;
}

/* Hero subheadline */
.hero-subheadline {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up var(--duration-medium) var(--ease-out) 0.4s both;
}

/* Hero CTA group */
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up var(--duration-large) var(--ease-out) 0.65s both;
}

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

/* Emergency badge pulse */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: pulse-ring 2s ease-out 0.55s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }
  .hero-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: none;
    z-index: 0;
  }
  .hero-image-container::after {
    inset: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(11, 20, 32, 0.85) 0%, rgba(11, 20, 32, 0.95) 100%);
  }
  .hero-content {
    width: 100%;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slide-up-trust var(--duration-large) var(--ease-out) 0.8s both;
}

@keyframes slide-up-trust {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.trust-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 32px;
  background: rgba(22, 32, 48, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 51, 71, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 1rem;
}
.trust-item:not(:last-child) {
  border-right: 1px solid rgba(37, 51, 71, 0.5);
}
.trust-item-icon {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.trust-item-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.2;
}
.trust-item-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .trust-bar {
    margin-top: -1.5rem;
    padding: 0 1rem;
  }
  .trust-bar-inner {
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 0;
  }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-item {
    scroll-snap-align: start;
    min-width: 120px;
    flex-shrink: 0;
    padding: 0 0.75rem;
  }
}

/* ===== PRICING SECTION (WOW ELEMENT) ===== */
.pricing-section {
  background: var(--color-accent);
  padding: 5rem 1.5rem;
  text-align: center;
}
.pricing-section h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
}
.pricing-section .eyebrow {
  color: rgba(15, 27, 45, 0.5);
}
.pricing-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.pricing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.price-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-primary);
  line-height: 1;
}
.price-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(15, 27, 45, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}
.pricing-guarantee {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(15, 27, 45, 0.7);
  margin-top: 2rem;
}
.pricing-cta {
  margin-top: 2.5rem;
}
.pricing-cta .btn-primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.pricing-cta .btn-primary:hover {
  background: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 4rem 1.5rem;
  }
  .pricing-items {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}

/* ===== SERVICES BENTO GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(22, 32, 48, 0.6);
  border: 1px solid rgba(37, 51, 71, 0.4);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-out;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(232, 130, 12, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}
.service-card--emergency {
  grid-column: span 2;
  border-left: 4px solid var(--color-accent);
  background: rgba(22, 32, 48, 0.8);
}

.service-card-icon {
  color: var(--color-text-muted);
  transition: color 0.3s ease-out;
}
.service-card:hover .service-card-icon {
  color: var(--color-accent);
}
.service-card--emergency .service-card-icon {
  color: var(--color-accent);
}
.service-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-text);
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 130, 12, 0.1);
  border: 1px solid rgba(232, 130, 12, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 0.75rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--emergency {
    grid-column: span 1;
  }
}

/* ===== ABOUT SECTION ===== */
.about-image-container {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}
.about-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 3/2;
}
@media (min-width: 1024px) {
  .about-image-container {
    margin-right: -8%;
  }
  .about-image-container img {
    box-shadow: 0 0 60px rgba(232, 130, 12, 0.08);
  }
}

.about-counter-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-accent);
  line-height: 1;
}
.about-counter-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}
.about-features li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(22, 32, 48, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 51, 71, 0.5);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-small) var(--ease-out),
              box-shadow var(--duration-small) var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.testimonial-quote-mark {
  font-size: 3rem;
  color: rgba(232, 130, 12, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 51, 71, 0.5);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}
.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== SERVICE AREA ===== */
.map-container {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

/* ===== CONTACT SECTION ===== */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.form-input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.15);
}
.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238899AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select.form-input option {
  background: var(--color-surface);
  color: var(--color-text);
}

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

/* ===== FOOTER ===== */
.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--duration-micro) var(--ease-out);
}
.footer-link:hover {
  color: var(--color-accent);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STAGGER ITEMS ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}
.stagger-item.visible {
  animation: stagger-in var(--duration-medium) var(--ease-out) forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 120ms; }
.stagger-item:nth-child(3) { animation-delay: 240ms; }
.stagger-item:nth-child(4) { animation-delay: 360ms; }
.stagger-item:nth-child(5) { animation-delay: 480ms; }
.stagger-item:nth-child(6) { animation-delay: 600ms; }
.stagger-item:nth-child(7) { animation-delay: 720ms; }
.stagger-item:nth-child(8) { animation-delay: 840ms; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonial stagger (wider delay) */
.testimonial-stagger {
  opacity: 0;
  transform: translateY(30px);
}
.testimonial-stagger.visible {
  animation: stagger-in var(--duration-medium) var(--ease-out) forwards;
}
.testimonial-stagger:nth-child(1) { animation-delay: 0ms; }
.testimonial-stagger:nth-child(2) { animation-delay: 150ms; }
.testimonial-stagger:nth-child(3) { animation-delay: 300ms; }
.testimonial-stagger:nth-child(4) { animation-delay: 450ms; }
.testimonial-stagger:nth-child(5) { animation-delay: 600ms; }

/* About image reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== MOBILE FLOATING CTA ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  padding: 0;
}
.mobile-cta-bar.visible {
  transform: translateY(0);
}
.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 56px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  width: 100%;
}

@media (max-width: 1023px) {
  .mobile-cta-bar {
    display: block;
  }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 20, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu-overlay.open {
  transform: translateX(0);
}
.mobile-menu-overlay a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--duration-small) var(--ease-out);
}
.mobile-menu-overlay a:hover {
  color: var(--color-accent);
}
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: cookie-slide-up 0.3s var(--ease-out);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}
.cookie-accept-btn {
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--duration-micro) var(--ease-out);
}
.cookie-accept-btn:hover {
  background: var(--color-accent-hover);
}
.cookie-decline-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color var(--duration-micro) var(--ease-out);
}
.cookie-decline-btn:hover {
  border-color: var(--color-text);
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.4);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}
.legal-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: 0.5rem;
}
.legal-content h4 {
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content p,
.legal-content li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.legal-content .last-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger-item,
  .testimonial-stagger,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .hero-headline-line {
    clip-path: inset(0 0 0 0);
  }
  .trust-bar {
    opacity: 1;
    transform: translateY(0);
  }
  .hero-badge,
  .hero-subheadline,
  .hero-cta {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-cta-bar {
    transform: translateY(0);
  }
  .pulse-dot::before {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}
