/* ============================================================
   Tampereen Laatusiivous Oy — Design System
   Fonts: Fraunces (display) + Figtree (body)
   Colors: OKLCH warm teal brand + amber accent
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand — warm teal */
  --brand:       oklch(0.58 0.14 185);
  --brand-light: color-mix(in oklab, var(--brand) 25%, white);
  --brand-mid:   color-mix(in oklab, var(--brand) 50%, white);
  --brand-dark:  color-mix(in oklab, var(--brand) 75%, black);

  /* Tinted neutrals */
  --surface-1:   oklch(0.99 0.004 185);
  --surface-2:   oklch(0.955 0.01 185);
  --surface-3:   oklch(0.21 0.018 185);

  --text-primary:   oklch(0.18 0.012 185);
  --text-secondary: oklch(0.46 0.022 185);
  --text-inverse:   oklch(0.97 0.005 185);
  --text-muted:     oklch(0.62 0.015 185);

  /* Accent — warm amber for CTAs */
  --accent:      oklch(0.75 0.17 65);
  --accent-dark: color-mix(in oklab, var(--accent) 80%, black);
  --accent-text: oklch(0.18 0.012 65);

  /* Stars */
  --star-color:  oklch(0.80 0.16 75);

  /* Shadow */
  --shadow-sm:   0 1px 3px oklch(0.18 0.012 185 / 0.10);
  --shadow-md:   0 4px 16px oklch(0.18 0.012 185 / 0.12);
  --shadow-lg:   0 12px 40px oklch(0.18 0.012 185 / 0.14);
  --shadow-xl:   0 24px 64px oklch(0.18 0.012 185 / 0.18);

  /* Spacing (4-point) */
  --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;

  /* Typography scale (Modular scale ×1.25) */
  --text-xs:   clamp(0.64rem, 1vw, 0.75rem);
  --text-sm:   clamp(0.8rem, 1.2vw, 0.9rem);
  --text-base: clamp(1rem, 1.4vw, 1.125rem);
  --text-md:   clamp(1.1rem, 2vw, 1.25rem);
  --text-lg:   clamp(1.25rem, 2.5vw, 1.563rem);
  --text-xl:   clamp(1.5rem, 3vw, 1.953rem);
  --text-2xl:  clamp(1.8rem, 4vw, 2.441rem);
  --text-3xl:  clamp(2rem, 5vw, 3.052rem);
  --text-hero: clamp(2.4rem, 6.5vw, 3.8rem);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast:   150ms ease-out;
  --transition-base:   200ms ease-out;
  --transition-slow:   350ms ease-out;
  --transition-reveal: 600ms ease-out;
}

/* ---------- RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-lg); }
}

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

@media (max-width: 768px) {
  .section { padding-block: var(--space-3xl); }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.section-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Figtree', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

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

.btn--accent {
  background-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 2px 8px oklch(0.75 0.17 65 / 0.25);
}
.btn--accent:hover {
  background-color: var(--accent-dark);
  transform: scale(1.02);
  box-shadow: 0 6px 20px oklch(0.75 0.17 65 / 0.35);
}

.btn--brand {
  background-color: var(--brand);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn--brand:hover {
  background-color: var(--brand-dark);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid oklch(0.18 0.012 185 / 0.2);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background-color: var(--brand-light);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--text-inverse);
  border: 2px solid oklch(0.97 0.005 185 / 0.5);
}
.btn--outline-white:hover {
  background-color: oklch(0.97 0.005 185 / 0.1);
  border-color: var(--text-inverse);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-md);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 300ms ease-out, box-shadow 300ms ease-out;
  padding-block: var(--space-md);
}

.nav.scrolled {
  background-color: oklch(0.99 0.004 185 / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 oklch(0.58 0.14 185 / 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Fraunces', serif;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-mark {
  color: var(--brand);
  font-size: 1.1em;
}

.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);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background-color: var(--brand);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav__link:hover {
  color: var(--brand);
}
.nav__link:hover::after { width: 100%; }

.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__phone:hover {
  background-color: var(--brand);
  color: var(--text-inverse);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__phone { display: none; }
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background-color: var(--surface-1);
    padding: var(--space-xl);
    gap: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms ease-out, opacity 300ms ease-out;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { font-size: var(--text-md); }
  .nav__logo-text { font-size: var(--text-base); }
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 80px;
  background-color: var(--surface-1);
  overflow: hidden;
}

.hero__content {
  display: flex;
  align-items: center;
  padding: var(--space-5xl) var(--space-4xl) var(--space-4xl) clamp(var(--space-xl), 6vw, 100px);
}

.hero__text {
  max-width: 520px;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 700ms ease-out both;
  animation-delay: 100ms;
}

.hero__heading {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 700ms ease-out both;
  animation-delay: 200ms;
}

.hero__heading em {
  font-style: italic;
  color: var(--brand);
}

.hero__sub {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  animation: fadeSlideUp 700ms ease-out both;
  animation-delay: 350ms;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 700ms ease-out both;
  animation-delay: 450ms;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: fadeSlideUp 700ms ease-out both;
  animation-delay: 600ms;
}

.trust-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  animation: fadeIn 900ms ease-out both;
  animation-delay: 300ms;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8000ms ease-out;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.99 0.004 185 / 0.3) 0%,
    transparent 40%
  );
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__content {
    padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    order: 1;
  }
  .hero__image-wrap {
    order: 0;
    height: 55vw;
    max-height: 380px;
  }
}

/* ---------- PAIN POINTS ---------- */
.pain {
  background-color: var(--surface-2);
}

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

.pain__card {
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.58 0.14 185 / 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pain__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.pain__title {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
}

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

@media (max-width: 900px) {
  .pain__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ---------- SERVICES ---------- */
.services {
  background-color: var(--surface-1);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid oklch(0.58 0.14 185 / 0.1);
}

.service:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.service--alt {
  direction: rtl;
}
.service--alt > * {
  direction: ltr;
}

.service__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service__image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 400ms ease-out;
}

.service__image-wrap:hover .service__image {
  transform: scale(1.03);
}

.service__number {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

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

.service__price {
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
  color: var(--brand-dark);
}

.price-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}

.services__mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.mini-service {
  background-color: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border-left: 3px solid var(--brand);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mini-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mini-service__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.mini-service__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.mini-service__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.mini-service__price {
  font-size: var(--text-base);
  color: var(--brand-dark);
}

@media (max-width: 900px) {
  .service {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-xl);
  }
  .service--alt { direction: ltr; }
  .service__image { height: 260px; }
  .services__mini-grid { grid-template-columns: 1fr; }
}

/* ---------- STATS ---------- */
.stats {
  background-color: var(--brand);
  padding-block: var(--space-4xl);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text-inverse);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: var(--text-base);
  color: color-mix(in oklab, var(--text-inverse) 75%, transparent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
}

/* ---------- ABOUT ---------- */
.about {
  background-color: var(--surface-1);
}

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

.about__image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about__text {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.about__list {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .about__image { height: 300px; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background-color: var(--surface-2);
}

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

.testimonial {
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid oklch(0.58 0.14 185 / 0.07);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial__stars {
  color: var(--star-color);
  font-size: var(--text-md);
  letter-spacing: 2px;
}

.testimonial__quote {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-md);
  border-top: 1px solid oklch(0.58 0.14 185 / 0.1);
}

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

.testimonial__city {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background-color: var(--surface-3);
  text-align: center;
  padding-block: var(--space-5xl);
}

.cta-banner__inner {
  max-width: 720px;
}

.cta-banner__heading {
  font-size: var(--text-2xl);
  color: var(--text-inverse);
  margin-bottom: var(--space-lg);
}

.cta-banner__sub {
  font-size: var(--text-md);
  color: color-mix(in oklab, var(--text-inverse) 72%, transparent);
  margin-bottom: var(--space-2xl);
  line-height: 1.65;
}

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

/* ---------- CONTACT ---------- */
.contact {
  background-color: var(--surface-1);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact__text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

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

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
  color: var(--text-primary);
}

.contact__item a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.contact__item a:hover { color: var(--brand-dark); }

/* FORM */
.contact__form-wrap {
  background-color: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid oklch(0.58 0.14 185 / 0.1);
}

.contact__form-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Figtree', sans-serif;
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--surface-1);
  border: 1.5px solid oklch(0.58 0.14 185 / 0.2);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:hover {
  border-color: oklch(0.58 0.14 185 / 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.58 0.14 185 / 0.15);
}

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

.form-select {
  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='%23718096' stroke-width='2'%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;
}

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

.form-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

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

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

.footer__logo {
  font-family: 'Fraunces', serif;
  font-size: var(--text-md);
  color: var(--text-inverse);
  display: block;
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--text-inverse) 55%, transparent);
}

.footer__nav {
  display: flex;
  gap: var(--space-xl);
}

.footer__link {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--text-inverse) 65%, transparent);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--text-inverse); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: right;
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--text-inverse) 45%, transparent);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .footer__nav { justify-content: center; flex-wrap: wrap; gap: var(--space-md); }
  .footer__legal { text-align: center; }
}

/* ---------- SCROLL-DRIVEN ANIMATIONS ---------- */
@supports (animation-timeline: view()) {
  .reveal-up {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
    animation-delay: var(--delay, 0ms);
  }

  .reveal-clip {
    animation: revealClip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }

  @keyframes revealUp {
    from {
      opacity: 0;
      translate: 0 40px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes revealClip {
    from {
      opacity: 0;
      clip-path: inset(8% 0 8% 0 round 16px);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0 0 0 round 16px);
    }
  }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .reveal-up, .reveal-clip {
    opacity: 1;
    transform: none;
  }
}

/* ---------- DELIGHT: Custom selection + CTA press + staggered cards ---------- */

/* Satisfying CTA press feedback */
.btn--accent:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px oklch(0.75 0.17 65 / 0.2);
}

/* Staggered service card reveals */
.pain__card:nth-child(1) { --delay: 0ms; }
.pain__card:nth-child(2) { --delay: 100ms; }
.pain__card:nth-child(3) { --delay: 200ms; }

/* Stat number glow on hover (brand personality) */
.stat:hover .stat__number {
  text-shadow: 0 0 40px oklch(0.75 0.17 65 / 0.5);
  transition: text-shadow 300ms ease-out;
}

/* Nav phone pulse on first load */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.58 0.14 185 / 0); }
  50%       { box-shadow: 0 0 0 6px oklch(0.58 0.14 185 / 0.15); }
}
.nav__phone {
  animation: subtlePulse 3s ease-in-out 1s 2;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__image { transition: none; }
}
