:root {
  --ink: #202628;
  --muted: #647073;
  --paper: #ffffff;
  --soft: #f1f3f3;
  --teal: #2eab9b;
  --teal-dark: #188577;
  --line: rgba(32, 38, 40, .13);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.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; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  background: rgba(241, 243, 243, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: min-height .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { min-height: 68px; border-color: var(--line); box-shadow: 0 8px 30px rgba(32,38,40,.05); }
.wordmark { justify-self: start; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1; font-weight: 800; text-decoration: none; letter-spacing: -.055em; }
.wordmark span { color: var(--teal-dark); }
.nav { display: flex; gap: clamp(1.2rem, 2.8vw, 2.5rem); align-items: center; }
.nav a { position: relative; padding: 1.9rem 0 1.65rem; color: #555f61; font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 1.25rem; height: 2px; background: var(--teal); transition: right .2s ease; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1rem); }
.language-switch { display: flex; align-items: center; gap: .35rem; color: #7a8587; font-size: .73rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.language-switch a { color: var(--teal-dark); text-decoration: none; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: .3em; }
.language-switch [aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; }
.menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
  background: #e9ecec url("assets/veebikoduke-hero.png") center / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,247,247,.12), rgba(245,247,247,.68) 31%, rgba(245,247,247,.82) 50%, rgba(245,247,247,.4) 70%, rgba(245,247,247,.05)); }
.hero-content { position: relative; z-index: 1; width: min(840px, 100%); text-align: center; }
.eyebrow { margin: 0 0 1.15rem; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3.3rem, 7.5vw, 6.9rem); font-weight: 760; text-wrap: balance; }
h1 em { color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lead { max-width: 690px; margin: 1.6rem auto 0; color: #404a4c; font-size: clamp(1.05rem, 1.65vw, 1.35rem); line-height: 1.55; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 2rem; padding: .88rem 2.2rem; border-radius: 999px; color: white; background: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: #116f65; box-shadow: 0 10px 25px rgba(24,133,119,.22); }
.scroll-cue { position: absolute; z-index: 2; bottom: 1.8rem; display: flex; gap: .65rem; align-items: center; color: #465153; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }

.section { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; padding-block: clamp(5rem, 9vw, 8rem); }
.intro { display: grid; grid-template-columns: .7fr 2fr; gap: 4rem; align-items: start; }
.section-kicker { padding-top: .6rem; color: var(--teal-dark); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.intro h2, .section-heading h2, .process h2, .contact h2 { font-size: clamp(2.25rem, 5vw, 4.65rem); }
.intro p { max-width: 760px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.services { border-top: 1px solid var(--line); }
.section-heading { max-width: 800px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 4rem; }
.service-card { position: relative; min-height: 290px; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3rem); overflow: hidden; border-radius: 28px; background: linear-gradient(145deg, #f5f7f7, #edf2f1); box-shadow: 0 18px 50px rgba(32,38,40,.07); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:nth-child(2), .service-card:nth-child(3) { background: linear-gradient(145deg, #edf7f5, #e4f0ee); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(32,38,40,.11); }
.service-card h3 { position: relative; z-index: 1; max-width: 440px; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.service-card p { position: relative; z-index: 1; max-width: 520px; color: var(--muted); }

.process { background: var(--ink); color: white; }
.process-inner { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.process-copy { max-width: 760px; }
.process-copy > p:last-child { color: #bbc4c5; font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin: 0; padding: 0; list-style: none; }
.steps li { padding: .5rem 0; }
.steps strong { display: block; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.steps p { margin: .75rem 0 0; color: #aebabb; }

.contact { text-align: center; }
.contact p:not(.eyebrow) { max-width: 600px; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.1rem; }
.contact .contact-phone { margin-top: .85rem; font-size: 1.25rem; font-weight: 750; }
.contact-phone a { color: var(--teal-dark); text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact .contact-note { max-width: 560px; margin-top: .6rem; font-size: .95rem; line-height: 1.55; }
.contact-note a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.contact-note a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); background: var(--soft); border-top: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: .85rem; }
.footer-links { justify-self: end; display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }

.subpage { min-height: calc(100svh - 120px); padding-top: 82px; background: linear-gradient(145deg, #f1f3f3, #fff 48%); }
.subpage-shell { width: min(860px, calc(100% - 3rem)); margin-inline: auto; padding: clamp(5rem, 10vw, 8rem) 0; }
.subpage h1 { max-width: 760px; font-size: clamp(2.8rem, 7vw, 5.6rem); }
.subpage .lead { max-width: 690px; margin: 1.5rem 0 3.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.legal { display: grid; gap: 2.5rem; }
.legal section { padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--teal-dark); }
.legal-note { padding: 1rem 1.2rem; border-left: 3px solid var(--teal); background: rgba(46,171,155,.08); }
.thanks { min-height: calc(100svh - 120px); display: grid; place-items: center; text-align: center; }
.thanks .subpage-shell { padding-top: 8rem; }
.thanks h1 em { display: block; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 70px; }
  .header-actions { grid-column: 2; }
  .menu-toggle { display: block; }
  .language-switch { font-size: .7rem; }
  .nav { position: absolute; top: 70px; left: 1rem; right: 1rem; display: grid; gap: 0; padding: .7rem 1.2rem; background: rgba(255,255,255,.98); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(32,38,40,.12); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border: 0; }
  .nav a::after { bottom: .65rem; right: 100%; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 790px; background-position: 59% center; }
  .hero-shade { background: rgba(245,247,247,.76); }
  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .service-card { width: 100%; min-width: 0; min-height: 250px; }
  .service-card h3,
  .service-card p { display: block; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 3rem; }
  .steps li { display: block; width: 100%; min-width: 0; padding: 0; }
  .steps strong { display: block; margin: 0 0 .75rem; }
  .steps p { display: block; width: 100%; max-width: 34rem; margin: 0; }
  .footer { grid-template-columns: 1fr; justify-items: start; gap: .75rem; padding-block: 2rem; }
  .footer-links { justify-self: start; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .section { width: min(var(--max), calc(100% - 2rem)); }
  .hero { padding-inline: 1rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .scroll-cue { display: none; }
  .service-card { min-height: 0; padding: 2.25rem 1.75rem; border-radius: 22px; }
  .service-card h3 { font-size: 1.55rem; }
  .service-card p { margin-top: 1rem; }
  .subpage-shell { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
