/* ============================================================
   Hervannan Putkipalvelu Oy — index.css
   Design: Fraunces + Figtree | Copper on Navy | Dynamic reveals
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,800&family=Figtree:wght@400;500;600&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand — copper orange */
  --brand:        oklch(0.60 0.16 48);
  --brand-light:  color-mix(in oklab, oklch(0.60 0.16 48) 35%, white);
  --brand-dark:   color-mix(in oklab, oklch(0.60 0.16 48) 70%, black);

  /* Surfaces */
  --surface-1:    oklch(0.98 0.007 65);
  --surface-2:    oklch(0.94 0.010 65);
  --surface-3:    oklch(0.15 0.015 240);
  --surface-4:    oklch(0.10 0.012 240);

  /* Text */
  --text-primary:   oklch(0.14 0.015 240);
  --text-secondary: oklch(0.45 0.020 240);
  --text-inverse:   oklch(0.97 0.006 65);
  --text-muted:     oklch(0.65 0.012 240);

  /* Accent */
  --accent: var(--brand);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', system-ui, -apple-system, sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --text-md:   clamp(1.125rem, 1.1rem + 0.4vw, 1.333rem);
  --text-lg:   clamp(1.333rem, 1.2rem + 0.8vw, 1.777rem);
  --text-xl:   clamp(1.777rem, 1.5rem + 1.5vw, 2.369rem);
  --text-2xl:  clamp(2.369rem, 2rem + 2vw, 3.157rem);
  --text-3xl:  clamp(3.157rem, 2.5rem + 3vw, 4.209rem);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(64px, 8vw, 112px);
  --radius:    8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

::selection {
  background: color-mix(in oklab, var(--brand) 25%, white);
  color: var(--text-primary);
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

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

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

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out);
  cursor: pointer;
}

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

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

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--brand) 30%, transparent);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--brand) 40%, transparent);
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in oklab, var(--brand) 50%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 1.5px solid oklch(1 0 0 / 0.3);
}
.btn-ghost:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.6);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--brand-dark);
}
.btn-white:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

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

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--surface-1) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.90 0.008 65);
  transition: box-shadow 200ms var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px oklch(0.14 0.015 240 / 0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.2;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms var(--ease-out);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 2px; }

.nav-cta { margin-left: var(--space-md); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: var(--radius);
}
.nav-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  border-top: 1px solid oklch(0.90 0.008 65);
  background: var(--surface-1);
}

.nav-mobile.is-open { display: block; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--gutter);
  gap: var(--space-md);
}

.nav-mobile-link {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid oklch(0.90 0.008 65);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--surface-3);
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -5%;
  width: min(70vw, 700px);
  height: min(120%, 900px);
  background: var(--brand);
  opacity: 0.08;
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeSlideUp 600ms 100ms var(--ease-out) forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-inverse);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeSlideUp 700ms 200ms var(--ease-out) forwards;
}

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

.hero-sub {
  font-size: var(--text-md);
  line-height: 1.7;
  color: oklch(0.78 0.008 240);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeSlideUp 700ms 350ms var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: fadeSlideUp 600ms 450ms var(--ease-out) forwards;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  opacity: 0;
  animation: fadeSlideUp 600ms 550ms var(--ease-out) forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: oklch(0.65 0.012 240);
}
.trust-item svg { color: var(--brand); flex-shrink: 0; }

@keyframes fadeSlideUp {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ============================================================
   7. PAIN POINTS
   ============================================================ */
.pain-points {
  background: var(--surface-1);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.pain-card {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface-1);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 16px oklch(0.14 0.015 240 / 0.06);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px oklch(0.14 0.015 240 / 0.12);
}

.pain-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.pain-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.pain-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

.pain-cta-text {
  text-align: center;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

/* ============================================================
   8. SERVICES
   ============================================================ */
.services {
  background: var(--surface-2);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.service-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl);
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px oklch(0.14 0.015 240 / 0.06);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.service-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px oklch(0.14 0.015 240 / 0.10);
}

.service-row--alt {
  grid-template-columns: 1fr 120px;
}
.service-row--alt .service-content { order: -1; }

.service-icon-wrap {
  width: 96px;
  height: 96px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.service-row:hover .service-icon-wrap {
  background: color-mix(in oklab, var(--brand) 12%, var(--surface-2));
  color: var(--brand);
}

.service-icon-wrap--accent {
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-2));
  color: var(--brand);
}

.service-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.service-price {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in oklab, var(--brand) 12%, var(--surface-1));
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============================================================
   9. STATS
   ============================================================ */
.stats {
  background: var(--surface-3);
  padding-block: var(--section-pad);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-2xl) var(--space-xl);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: var(--space-md);
  tab-size: 4;
}

.stat-label {
  font-size: var(--text-base);
  color: oklch(0.70 0.010 240);
  line-height: 1.5;
}

/* ============================================================
   10. ABOUT
   ============================================================ */
.about {
  background: var(--surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
}

.about-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.about-cta {
  margin-top: var(--space-xl);
  display: inline-flex;
}

.about-visual {
  background: var(--surface-3);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
}

.about-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--brand);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  width: fit-content;
  margin-inline: auto;
}

.about-badge-year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.about-badge-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-inverse);
  font-size: var(--text-base);
}

.about-feature svg {
  color: var(--brand);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--surface-1);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 2px 12px oklch(0.14 0.015 240 / 0.06);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px oklch(0.14 0.015 240 / 0.12);
}

.testimonial-stars {
  color: var(--brand);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   12. CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--brand);
  padding-block: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.03) 30px,
    rgba(255,255,255,0.03) 60px
  );
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.cta-sub {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================================
   13. CONTACT
   ============================================================ */
.contact {
  background: var(--surface-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact .section-eyebrow { color: var(--brand); }
.contact .section-title { color: var(--text-inverse); }

.contact-intro {
  font-size: var(--text-base);
  color: oklch(0.70 0.010 240);
  line-height: 1.65;
  margin-bottom: var(--space-2xl);
}

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

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: oklch(0.80 0.010 240);
  font-size: var(--text-base);
  line-height: 1.5;
}

.contact-detail svg { color: var(--brand); margin-top: 2px; flex-shrink: 0; }

.contact-detail--link {
  transition: color 150ms var(--ease-out);
  cursor: pointer;
}
.contact-detail--link:hover { color: var(--brand); }
.contact-detail--link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
}

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

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

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

.form-label span {
  color: var(--brand);
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid oklch(0.87 0.012 65);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface-1);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  min-height: 44px;
  width: 100%;
}

.form-input:hover { border-color: oklch(0.70 0.020 65); }

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
}

.form-input.is-error { border-color: oklch(0.55 0.22 27); }

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

.form-error {
  font-size: var(--text-xs);
  color: oklch(0.55 0.22 27);
  min-height: 1.2em;
}

.btn-submit {
  position: relative;
}

.btn-loading { display: none; }

.btn-submit.is-loading .btn-text  { display: none; }
.btn-submit.is-loading .btn-loading { display: block; }

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: color-mix(in oklab, oklch(0.50 0.17 150) 10%, var(--surface-1));
  border: 1.5px solid oklch(0.50 0.17 150);
  border-radius: var(--radius);
  color: oklch(0.38 0.17 150);
  font-weight: 500;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: var(--surface-4);
  padding-block: var(--space-3xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.footer-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
}

.footer-nav {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}

.footer-link {
  font-size: var(--text-sm);
  color: oklch(0.55 0.010 240);
  transition: color 150ms var(--ease-out);
}
.footer-link:hover { color: var(--brand); }
.footer-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.footer-copy {
  width: 100%;
  font-size: var(--text-xs);
  color: oklch(0.40 0.008 240);
  border-top: 1px solid oklch(0.18 0.010 240);
  padding-top: var(--space-xl);
  margin-top: var(--space-md);
}

/* ============================================================
   15. SCROLL-DRIVEN ANIMATIONS (CSS only, 2026)
   ============================================================ */
@supports (animation-timeline: view()) {
  .reveal-card {
    animation: revealCard linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 75%;
  }

  .reveal-row {
    animation: revealRow linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }

  .pain-card:nth-child(2) {
    animation-delay: 100ms;
  }
  .pain-card:nth-child(3) {
    animation-delay: 200ms;
  }

  .testimonial-card:nth-child(2) {
    animation-delay: 100ms;
  }
  .testimonial-card:nth-child(3) {
    animation-delay: 200ms;
  }
}

@keyframes revealCard {
  from {
    opacity: 0;
    translate: 0 32px;
    clip-path: inset(0 0 20% 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(0 0 0% 0);
  }
}

@keyframes revealRow {
  from {
    opacity: 0;
    translate: -24px 0;
    clip-path: inset(0 20% 0 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(0 0% 0 0);
  }
}

/* Stat counter animation trigger */
.stat-number {
  animation: statEntry linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@keyframes statEntry {
  from { opacity: 0; scale: 0.7; }
  to   { opacity: 1; scale: 1; }
}

/* ============================================================
   16. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-eyebrow,
  .hero-heading,
  .hero-sub,
  .hero-actions,
  .hero-trust {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

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

  .service-row,
  .service-row--alt {
    grid-template-columns: 80px 1fr;
    gap: var(--space-xl);
  }
  .service-row--alt .service-content { order: 0; }
  .service-row--alt .service-icon-wrap { order: -1; }
  .service-icon-wrap { width: 72px; height: 72px; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-heading { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .service-row,
  .service-row--alt {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .service-icon-wrap {
    margin-inline: auto;
  }

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

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .footer-nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

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

/* Touch targets */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-link { padding: var(--space-md); }
  .form-input { min-height: 52px; }
}

/* Safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(var(--space-3xl) + env(safe-area-inset-bottom));
  }
}
