/* =====================================================
   Kirvesmies A. Kämäräinen Oy — index.css
   Design: Nordic Craftsmanship — Deep Pine + Warm Amber
   ===================================================== */

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

/* ── Custom Properties ── */
:root {
  /* Colors (OKLCH — perceptually uniform) */
  --surface-1:   oklch(0.98 0.008 75);
  --surface-2:   oklch(0.94 0.012 75);
  --surface-3:   oklch(0.88 0.015 75);

  --brand:       oklch(0.28 0.03 160);
  --brand-light: color-mix(in oklab, var(--brand) 25%, white);
  --brand-dark:  color-mix(in oklab, var(--brand) 80%, black);
  --brand-mid:   color-mix(in oklab, var(--brand) 50%, black);

  --accent:      oklch(0.72 0.16 65);
  --accent-dark: color-mix(in oklab, var(--accent) 70%, black);
  --accent-light: color-mix(in oklab, var(--accent) 30%, white);

  --text-primary:   oklch(0.18 0.02 75);
  --text-secondary: oklch(0.45 0.02 75);
  --text-on-dark:   oklch(0.96 0.008 75);
  --text-muted-dark: oklch(0.72 0.015 75);

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

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.375vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.625vw, 1.333rem);
  --text-xl:   clamp(1.333rem, 1.2rem  + 0.665vw, 1.777rem);
  --text-2xl:  clamp(1.777rem, 1.5rem  + 1.385vw, 2.369rem);
  --text-3xl:  clamp(2.369rem, 1.9rem  + 2.345vw, 3.157rem);
  --text-4xl:  clamp(3.157rem, 2.4rem  + 3.785vw, 4.209rem);

  /* Spacing (4-point system) */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 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);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Animated gradient for hero ── */
@property --grad-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: color-mix(in oklab, var(--accent) 35%, white); }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-md); }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), padding 300ms var(--ease-out);
}
.nav.scrolled {
  background: var(--brand-dark);
  box-shadow: 0 2px 24px oklch(0 0 0 / 0.3);
  padding: var(--space-sm) 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  color: oklch(0.96 0.008 75 / 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 150ms var(--ease-out), opacity 150ms;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 200ms var(--ease-out);
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
}

.nav-cta {
  background: var(--accent);
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px oklch(0.72 0.16 65 / 0.4);
}
.nav-cta:focus-visible {
  outline-color: var(--text-on-dark) !important;
}
.nav-cta:active { transform: scale(0.97); box-shadow: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand);
  animation: grad-shift 12s linear infinite;
  background: linear-gradient(var(--grad-angle),
    color-mix(in oklab, var(--brand) 100%, black) 0%,
    color-mix(in oklab, var(--brand) 60%, black) 50%,
    var(--brand-mid) 100%
  );
}

@keyframes grad-shift {
  0%   { --grad-angle: 135deg; }
  100% { --grad-angle: 225deg; }
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
  animation: hero-parallax linear both;
  animation-timeline: scroll(block root);
}
@keyframes hero-parallax {
  to { transform: translateY(25%); }
}

/* Diagonal clip at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: var(--surface-1);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-4xl), 12vh, var(--space-5xl)) 0 clamp(var(--space-3xl), 10vh, var(--space-5xl));
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 200ms both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: hero-fade-up 800ms var(--ease-out) 400ms both;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted-dark);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: hero-fade-up 800ms var(--ease-out) 600ms both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 800ms var(--ease-out) 800ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 150ms var(--ease-out),
    color 150ms var(--ease-out),
    transform 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.97) !important; box-shadow: none !important; }

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 20px oklch(0.72 0.16 65 / 0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px oklch(0.72 0.16 65 / 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: oklch(0.96 0.008 75 / 0.35);
}
.btn-outline:hover {
  background: oklch(1 0 0 / 0.08);
  border-color: oklch(0.96 0.008 75 / 0.6);
  transform: translateY(-1px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid oklch(1 0 0 / 0.1);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 1000ms both;
}
.trust-item {
  text-align: center;
}
.trust-item .number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.trust-item .label {
  font-size: var(--text-xs);
  color: var(--text-muted-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: oklch(1 0 0 / 0.15);
}

@keyframes hero-fade-up {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ══════════════════════════════════════
   PROBLEM SECTION
══════════════════════════════════════ */
.problem {
  padding-block: var(--space-5xl);
  background: var(--surface-2);
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-md);
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  clip-path: inset(0 100% 0 0);
  animation: clip-reveal linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 60%;
}
@keyframes clip-reveal {
  to { clip-path: inset(0 0% 0 0); }
}

.problem-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 15% entry 65%;
}
@keyframes scroll-reveal {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}
/* Make first card taller (asymmetric) */
.problem-card:first-child {
  grid-row: span 1;
  padding-bottom: var(--space-3xl);
}

.problem-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--surface-3);
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 60%;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.problem-card:nth-child(1) { animation-delay: 0ms; }
.problem-card:nth-child(2) { animation-delay: 120ms; }
.problem-card:nth-child(3) { animation-delay: 240ms; }
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0.18 0.02 75 / 0.1);
}

.problem-icon {
  width: 52px; height: 52px;
  background: color-mix(in oklab, var(--accent) 15%, white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--accent-dark);
  font-size: 24px;
}
.problem-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.problem-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════ */
.services {
  padding-block: var(--space-5xl);
  background: var(--brand);
}
.services .section-label { color: var(--accent); }
.services .section-title { color: var(--text-on-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: oklch(1 0 0 / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-3xl);
}

.service-card {
  background: color-mix(in oklab, var(--brand) 85%, black);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 5% entry 55%;
  transition: background 200ms var(--ease-out);
}
.service-card:nth-child(1) { animation-delay: 0ms; }
.service-card:nth-child(2) { animation-delay: 100ms; }
.service-card:nth-child(3) { animation-delay: 200ms; }
.service-card:nth-child(4) { animation-delay: 300ms; }

.service-card:hover {
  background: color-mix(in oklab, var(--brand) 70%, black);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 300ms var(--ease-out);
}
.service-card:hover::before { height: 100%; }

.service-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  font-weight: 700;
  color: oklch(1 0 0 / 0.07);
  line-height: 1;
  margin-bottom: var(--space-md);
  user-select: none;
}
.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted-dark);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.service-price {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid oklch(0.72 0.16 65 / 0.35);
  border-radius: 100px;
}

/* ══════════════════════════════════════
   STATS SECTION
══════════════════════════════════════ */
.stats {
  padding-block: var(--space-4xl);
  background: var(--accent);
  overflow: hidden;
}
.stats .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5xl);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% entry 70%;
}
.stat-item:nth-child(1) { animation-delay: 0ms; }
.stat-item:nth-child(2) { animation-delay: 150ms; }
.stat-item:nth-child(3) { animation-delay: 300ms; }

.stat-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  display: block;
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: oklch(0.72 0.16 65 / 0.3);
}

/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */
.about {
  padding-block: var(--space-5xl);
  background: var(--surface-1);
}
.about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-4xl);
  align-items: center;
}
.about-text .section-label { margin-bottom: var(--space-md); }
.about-text .section-title { margin-bottom: var(--space-xl); }

.about-text p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 15% entry 65%;
}
.about-text p:nth-child(1) { animation-delay: 0ms; }
.about-text p:nth-child(2) { animation-delay: 150ms; }

.about-text .btn { margin-top: var(--space-md); }

.about-visual {
  position: relative;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 60%;
}
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface-3);
}
.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.about-visual:hover .about-img-frame img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  bottom: var(--space-lg);
  left: calc(var(--space-xl) * -1);
  background: var(--brand);
  color: var(--text-on-dark);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.25);
}
.about-badge .badge-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.about-badge .badge-text {
  font-size: var(--text-xs);
  color: var(--text-muted-dark);
  margin-top: 2px;
  display: block;
}

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testimonials {
  padding-block: var(--space-5xl);
  background: var(--surface-2);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}
.testimonial-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--surface-3);
  position: relative;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 60%;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.testimonial-card:nth-child(1) { animation-delay: 0ms; }
.testimonial-card:nth-child(2) { animation-delay: 120ms; }
.testimonial-card:nth-child(3) { animation-delay: 240ms; }
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px oklch(0.18 0.02 75 / 0.08);
}

.quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.4;
  display: block;
  margin-bottom: var(--space-md);
  user-select: none;
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
  display: block;
}
.author-city {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: block;
}
.star-rating {
  margin-bottom: var(--space-md);
  color: var(--accent);
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
  padding-block: var(--space-5xl);
  background: var(--brand-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, oklch(0.72 0.16 65 / 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-label { color: var(--accent); }
.cta-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 15% entry 65%;
}
.cta-sub {
  font-size: var(--text-lg);
  color: var(--text-muted-dark);
  margin-bottom: var(--space-3xl);
  max-width: 480px;
  margin-inline: auto;
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% entry 70%;
}

.cta-phone {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-md);
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 25% entry 75%;
}
.cta-phone:hover { color: var(--accent-light); transform: scale(1.03); }
.cta-phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; border-radius: var(--radius-sm); }

.cta-email {
  font-size: var(--text-base);
  color: var(--text-muted-dark);
  display: block;
  margin-bottom: var(--space-3xl);
  transition: color 150ms var(--ease-out);
  opacity: 0;
  animation: scroll-reveal linear both;
  animation-timeline: view();
  animation-range: entry 30% entry 80%;
}
.cta-email:hover { color: var(--text-on-dark); }
.cta-email:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }

.cta-detail {
  font-size: var(--text-xs);
  color: oklch(0.72 0.015 75 / 0.6);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--brand-dark);
  border-top: 1px solid oklch(1 0 0 / 0.06);
  padding: var(--space-2xl) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-on-dark);
}
.footer-logo span { color: var(--accent); }

.footer-meta {
  font-size: var(--text-xs);
  color: oklch(0.72 0.015 75 / 0.5);
  text-align: right;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--brand-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: var(--text-xl);
    color: var(--text-on-dark);
  }
  .nav-cta {
    font-size: var(--text-lg) !important;
    padding: 14px 28px !important;
  }

  /* Sections */
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 400px; margin-inline: auto; }
  .about-badge { left: var(--space-md); bottom: var(--space-md); }

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

  .stats .container { gap: var(--space-2xl); }
  .stat-divider { display: none; }

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

  .problem-card:first-child { padding-bottom: var(--space-2xl); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ── Delight: CTA button pulse ring ── */
.btn-primary {
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-md) + 6px);
  border: 2px solid oklch(0.72 0.16 65 / 0);
  pointer-events: none;
  transition: border-color 200ms var(--ease-out), inset 200ms var(--ease-out);
}
.btn-primary:hover::after {
  border-color: oklch(0.72 0.16 65 / 0.35);
  inset: -4px;
}

/* ── Delight: service card number animates on hover ── */
.service-card:hover .service-number {
  color: oklch(0.72 0.16 65 / 0.18);
  transition: color 300ms var(--ease-out);
}

/* ── Delight: about image subtle ken-burns on hover ── */
.about-img-frame {
  transition: box-shadow 300ms var(--ease-out);
}
.about-visual:hover .about-img-frame {
  box-shadow: 0 24px 60px oklch(0.18 0.02 75 / 0.2);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg-img { animation: none; }
}
