/* ═══════════════════════════════════════════
   Autokorjaamo Pihkamäki — Main Stylesheet
   Design: Industrial reliability, steel + amber
   ═══════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Brand: Deep steel charcoal with blue undertone */
  --brand:           oklch(0.25 0.04 245);
  --brand-light:     color-mix(in oklab, var(--brand) 25%, white);
  --brand-dark:      color-mix(in oklab, var(--brand) 80%, black);

  /* Accent: Warm amber — workshop lamp, reliability */
  --accent:          oklch(0.72 0.16 65);
  --accent-light:    color-mix(in oklab, var(--accent) 30%, white);
  --accent-dark:     color-mix(in oklab, var(--accent) 60%, black);
  --accent-hover:    color-mix(in oklab, var(--accent) 85%, black);

  /* Tinted neutrals (steel-blue undertone — not pure gray) */
  --surface-1:       oklch(0.99 0.003 245);
  --surface-2:       oklch(0.94 0.008 245);
  --surface-3:       oklch(0.88 0.012 245);
  --surface-dark:    oklch(0.18 0.025 245);

  /* Text */
  --text-primary:    oklch(0.15 0.02 245);
  --text-secondary:  oklch(0.42 0.025 245);
  --text-muted:      oklch(0.62 0.015 245);
  --text-on-dark:    oklch(0.97 0.005 245);
  --text-on-accent:  oklch(0.12 0.02 45);

  /* 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;

  /* Typography scale (perfect fourth — 1.333) */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.33rem);
  --text-xl:   clamp(1.33rem, 1.2rem + 0.7vw, 1.77rem);
  --text-2xl:  clamp(1.77rem, 1.5rem + 1.5vw, 2.36rem);
  --text-3xl:  clamp(2.36rem, 1.9rem + 2.5vw, 3.15rem);
  --text-4xl:  clamp(3.15rem, 2.4rem + 4vw, 4.2rem);

  /* Effects */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px oklch(0.15 0.02 245 / 0.12), 0 1px 2px oklch(0.15 0.02 245 / 0.08);
  --shadow-md:  0 4px 16px oklch(0.15 0.02 245 / 0.12), 0 2px 6px oklch(0.15 0.02 245 / 0.06);
  --shadow-lg:  0 8px 32px oklch(0.15 0.02 245 / 0.16), 0 4px 12px oklch(0.15 0.02 245 / 0.08);

  /* Transitions */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-quart:  cubic-bezier(0.5, 0, 0.75, 0);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Custom Selection ─── */
::selection {
  background: color-mix(in oklab, var(--accent) 35%, white);
  color: var(--text-primary);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul[role="list"] {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

em {
  font-style: italic;
  color: var(--accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Instrument Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color 150ms var(--ease-out-quart),
    transform 100ms var(--ease-out-quart),
    box-shadow 150ms var(--ease-out-quart),
    color 150ms var(--ease-out-quart);
  min-height: 44px;
  touch-action: manipulation;
}

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

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

.btn-primary {
  background: var(--brand);
  color: var(--text-on-dark);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-3);
}

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

.btn-light {
  background: white;
  color: var(--brand);
  border-color: white;
}

.btn-light:hover {
  background: var(--surface-1);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px oklch(0.72 0.16 65 / 0.35);
  transform: translateY(-2px);
}

.btn-accent:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px oklch(0.72 0.16 65 / 0.25);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

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

/* ─── Section Common Styles ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
}

.section-eyebrow.light {
  color: var(--accent);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-sm);
}

.section-title.light {
  color: var(--text-on-dark);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Navigation ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background 250ms var(--ease-out-quart), box-shadow 250ms var(--ease-out-quart), padding 200ms var(--ease-out-quart);
}

.site-header.scrolled {
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.logo-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: transform 200ms var(--ease-out-quart);
}

.nav-logo:hover .logo-icon {
  transform: rotate(15deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: 'Fraunces', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header.hero-transparent .logo-name,
.site-header.hero-transparent .logo-sub {
  color: var(--text-on-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 150ms var(--ease-out-quart), background 150ms var(--ease-out-quart);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--brand);
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms var(--ease-out-quart), transform 100ms var(--ease-out-quart);
  min-height: 44px;
}

.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: background 150ms;
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 250ms var(--ease-out-quart), opacity 200ms;
  display: block;
}

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

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
}

.hero-image-panel {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.18 0.025 245 / 0.75) 0%,
    oklch(0.18 0.025 245 / 0.5) 60%,
    oklch(0.18 0.025 245 / 0.2) 100%
  );
}

.hero-content-panel {
  display: flex;
  align-items: center;
  padding: var(--space-4xl) var(--space-3xl) var(--space-4xl) var(--space-2xl);
  background: var(--surface-1);
  position: relative;
}

.hero-content {
  max-width: 500px;
  padding-top: 80px; /* header height */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: color-mix(in oklab, var(--accent) 15%, var(--surface-2));
  color: var(--accent-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-lg);

  /* @starting-style entry */
  animation: badge-enter 500ms var(--ease-out-quart) both;
}

.hero-headline {
  font-size: var(--text-4xl);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  animation: hero-text-enter 600ms var(--ease-out-quart) 80ms both;
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  animation: hero-text-enter 600ms var(--ease-out-quart) 200ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  animation: hero-text-enter 600ms var(--ease-out-quart) 320ms both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: hero-text-enter 600ms var(--ease-out-quart) 420ms both;
}

.trust-item {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero diagonal separator */
.hero-diagonal {
  position: absolute;
  left: calc(55% - 30px);
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(
    to right,
    transparent,
    var(--surface-1)
  );
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0% 100%);
  z-index: 1;
}

/* Hero entry animations */
@keyframes badge-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-text-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--brand);
  padding: var(--space-2xl) 0;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
  animation: stat-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@keyframes stat-reveal {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: oklch(0.75 0.02 245);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: oklch(0.4 0.03 245);
  flex-shrink: 0;
}

/* ─── Services ─── */
.services {
  padding: var(--space-4xl) 0;
  background: var(--surface-2);
}

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

.service-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-3);
  display: flex;
  flex-direction: column;
  transition: box-shadow 250ms var(--ease-out-quart), transform 250ms var(--ease-out-quart), border-color 200ms;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--surface-3));
}

.reveal-card {
  animation: card-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 75%;
}

.reveal-card:nth-child(2) { animation-delay: 80ms; }
.reveal-card:nth-child(3) { animation-delay: 160ms; }
.reveal-card:nth-child(4) { animation-delay: 240ms; }

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
}

.service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
  transition: transform 200ms var(--ease-out-quart);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-md);
}

.service-price {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-dark);
  background: color-mix(in oklab, var(--accent) 12%, var(--surface-2));
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color 150ms, gap 150ms;
  min-height: 44px;
  align-self: flex-start;
}

.service-link:hover {
  color: var(--accent-dark);
  gap: var(--space-sm);
}

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

/* ─── Trust Section ─── */
.trust-section {
  padding: var(--space-4xl) 0;
  background: var(--surface-1);
}

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

.reveal-left {
  animation: reveal-from-left linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

.reveal-right {
  animation: reveal-from-right linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

@keyframes reveal-from-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-from-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

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

.pain-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: oklch(0.62 0.13 25 / 0.12);
  color: oklch(0.45 0.13 25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.pain-point strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pain-point p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testimonial {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-left: 3px solid var(--accent);
  transition: box-shadow 250ms var(--ease-out-quart), transform 250ms var(--ease-out-quart);
}

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

/* Delight: pulsing accent on testimonial border on hover */
.testimonial:hover {
  border-left-color: var(--accent-dark);
}

.testimonial-stars {
  color: var(--accent);
  font-size: var(--text-sm);
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

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

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

.author-city::before {
  content: "·";
  margin-right: var(--space-xs);
}

/* ─── About Section ─── */
.about {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.about-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.18 0.025 245 / 0.82);
}

.about > .container {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 650px;
}

.reveal-up {
  animation: reveal-up-anim linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

@keyframes reveal-up-anim {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-text {
  font-size: var(--text-base);
  color: oklch(0.82 0.01 245);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ─── CTA Section ─── */
.cta-section {
  background: var(--brand);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay for CTA */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, oklch(0.35 0.04 245 / 0.4) 0%, transparent 60%),
                    radial-gradient(circle at 80% 50%, oklch(0.72 0.16 65 / 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-3xl);
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: oklch(0.72 0.02 245);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: oklch(0.72 0.02 245);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 150ms;
  min-height: 44px;
}

.cta-phone:hover {
  color: var(--text-on-dark);
}

.cta-phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Contact Section ─── */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--surface-2);
}

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

.contact-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-3);
}

.contact-card-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent);
}

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

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

.contact-row dt {
  flex-shrink: 0;
  width: 24px;
  font-size: 1.1rem;
}

.contact-row dd {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms;
  display: inline-block;
  min-height: 24px;
}

.contact-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-email {
  word-break: break-word;
}

/* Contact Form */
.contact-form {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-3);
}

.contact-form-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

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

.required {
  color: oklch(0.55 0.13 25);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-1);
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 44px;
}

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

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.25 0.04 245 / 0.12);
}

.form-input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.25 0.04 245 / 0.18);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: oklch(0.55 0.13 25);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-success,
.form-error {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-success {
  background: oklch(0.92 0.08 145);
  color: oklch(0.32 0.1 145);
}

.form-error {
  background: oklch(0.93 0.08 25);
  color: oklch(0.4 0.13 25);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--surface-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid oklch(0.3 0.02 245);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo .logo-name {
  color: var(--text-on-dark);
}

.footer-logo .logo-sub {
  color: oklch(0.6 0.02 245);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: oklch(0.55 0.02 245);
  line-height: 1.6;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: oklch(0.55 0.02 245);
  text-decoration: none;
  transition: color 150ms;
  display: inline-block;
  min-height: 24px;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-phone {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: var(--text-xl);
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms;
}

.footer-phone:hover {
  color: var(--accent-light);
}

.footer-phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-address {
  font-style: normal;
  font-size: var(--text-sm);
  color: oklch(0.55 0.02 245);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.footer-hours {
  font-size: var(--text-xs);
  color: oklch(0.45 0.02 245);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: oklch(0.42 0.015 245);
}

/* ─── 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;
  }
  .hero-badge,
  .hero-headline,
  .hero-subheadline,
  .hero-actions,
  .hero-trust {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal-card,
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .stat-number {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 50% 50%;
  }

  .hero-content-panel {
    padding: var(--space-3xl) var(--space-xl);
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    background: var(--surface-1);
    box-shadow: -4px 0 32px oklch(0.15 0.02 245 / 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out-quart);
    z-index: 99;
  }

  .nav-menu[aria-hidden="false"],
  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  /* Hero mobile */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image-panel {
    height: 50vw;
    min-height: 200px;
    max-height: 350px;
  }

  .hero-diagonal {
    display: none;
  }

  .hero-content-panel {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-content {
    padding-top: 0;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  /* Stats */
  .stats-grid {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  /* Trust layout */
  .trust-layout {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: var(--text-2xl);
  }

  .cta-title {
    font-size: var(--text-2xl);
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .nav-cta,
  .contact-link,
  .service-link,
  .form-input,
  .form-select {
    min-height: 48px;
  }
}
