:root {
  --blue: #0c74bb;
  --blue-dark: #075a94;
  --green: #159b50;
  --green-dark: #0c7a3b;
  --ink: #102436;
  --muted: #607181;
  --line: #dbe4ea;
  --surface: #f4f8fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 36, 54, .12);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3.2rem, 7vw, 6.3rem); }
h2 { margin-bottom: 22px; font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: 1.25rem; }

.shell { width: var(--shell); margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 92px;
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled {
  height: 76px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 30px rgba(10, 38, 56, .1);
  backdrop-filter: blur(15px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand {
  display: grid;
  place-items: center;
  width: 166px;
  height: 74px;
  padding: 5px 11px;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.brand img { width: 100%; height: 100%; object-fit: contain; }
.is-scrolled .brand { width: 145px; height: 62px; box-shadow: none; }
.main-nav { display: flex; align-items: center; gap: 29px; color: var(--white); font-weight: 650; }
.main-nav > a:not(.button) { position: relative; }
.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--green);
  transition: right .2s ease;
}
.main-nav > a:hover::after, .main-nav > a:focus-visible::after { right: 0; }
.is-scrolled .main-nav { color: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; padding: 9px; }
.menu-button span:not(.sr-only) { display: block; width: 27px; height: 2px; margin: 6px 0; background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 30px rgba(21,155,80,.28); }
.button-primary:hover { box-shadow: 0 16px 38px rgba(21,155,80,.36); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); backdrop-filter: blur(5px); }
.button-ghost:hover { background: rgba(255,255,255,.17); }
.button-small { min-height: 46px; padding: 11px 20px; color: var(--white); background: var(--blue); }
.button-wide { width: 100%; border: 0; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; color: var(--white); overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media {
  background-image: url("assets/hero-original.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}
.hero-shade { background: linear-gradient(90deg, rgba(4,28,45,.91) 0%, rgba(4,38,59,.72) 48%, rgba(4,38,59,.18) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 150px 0 160px; }
.hero-copy { max-width: 790px; }
.hero h1 { max-width: 850px; margin-bottom: 26px; color: var(--white); }
.hero h1 span { color: #7ed5a1; }
.hero-lead { max-width: 680px; margin-bottom: 34px; color: rgba(255,255,255,.88); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { margin-bottom: 17px; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: #a9e2c0; }
.hero-facts { position: absolute; z-index: 3; inset: auto 0 0; background: rgba(255,255,255,.96); color: var(--ink); backdrop-filter: blur(14px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 25px 30px; border-right: 1px solid var(--line); }
.facts-grid > div:first-child { padding-left: 0; }
.facts-grid > div:last-child { border: 0; }
.facts-grid strong, .facts-grid span { display: block; }
.facts-grid strong { margin-bottom: 2px; color: var(--blue-dark); font-size: 1.17rem; }
.facts-grid span { color: var(--muted); font-size: .9rem; }

.section { padding: 112px 0; }
.section-heading { max-width: 750px; margin-bottom: 50px; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.heading-row > p { max-width: 420px; margin-bottom: 25px; }
.section-services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid rgba(12,116,187,.11);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 35px rgba(16,36,54,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(12,116,187,.3); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 32px; border-radius: 17px; color: var(--blue); background: #eaf5fc; }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(45px, 8vw, 100px); }
.about-visual { position: relative; width: 100%; max-width: 350px; justify-self: center; }
.about-visual::before { content: ""; position: absolute; inset: -22px 20% 25% -22px; z-index: -1; border-radius: 28px; background: #eaf5fc; }
.about-visual img { display: block; width: 100%; height: auto; min-height: 0; border-radius: 28px; box-shadow: var(--shadow); }
.experience-card { position: absolute; right: -25px; bottom: 35px; display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-radius: 18px; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: var(--shadow); }
.experience-card strong { font-size: 2.6rem; line-height: 1; }
.experience-card span { max-width: 80px; font-weight: 700; line-height: 1.25; }
.about-copy .lead { color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 30px 0; list-style: none; }
.check-list li { position: relative; padding-left: 33px; font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--white); background: var(--green); font-size: .8rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.process { color: var(--white); background: #0b273a; }
.section-heading-light h2 { color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; counter-reset: process; }
.process-grid li { position: relative; padding: 20px 34px 10px; border-left: 1px solid rgba(255,255,255,.16); }
.process-grid li:first-child { padding-left: 0; border: 0; }
.process-grid li > span { display: block; margin-bottom: 30px; color: #63c88b; font-size: .9rem; font-weight: 850; letter-spacing: .15em; }
.process-grid h3 { color: var(--white); font-size: 1.35rem; }
.process-grid p { color: rgba(255,255,255,.68); font-size: .95rem; }

.references { background: var(--white); }
.reference-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 360px; gap: 18px; }
.reference-card { position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.reference-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3,23,36,.82)); }
.reference-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.reference-card:hover img { transform: scale(1.045); }
.reference-card div { position: absolute; z-index: 2; inset: auto 28px 23px; color: var(--white); }
.reference-card span { color: #92dbaf; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.reference-card h3 { margin: 5px 0 0; color: var(--white); font-size: 1.4rem; }

.review-band { padding: 55px 0; color: var(--white); background: linear-gradient(120deg, var(--blue-dark), var(--blue)); }
.review-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; }
.stars { color: #ffd76b; font-size: 1.4rem; letter-spacing: .1em; }
.review-inner blockquote { margin: 0; font-size: 1.18rem; font-weight: 720; }
.review-inner > span { color: rgba(255,255,255,.74); font-size: .86rem; text-align: right; }

.offer { background: #eef5f8; }
.offer-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(45px, 8vw, 100px); }
.offer-copy { position: sticky; top: 115px; }
.offer-copy > p:last-of-type { color: var(--muted); font-size: 1.08rem; }
.offer-contact { display: grid; gap: 12px; margin-top: 35px; }
.offer-contact a { padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.66); }
.offer-contact span, .offer-contact strong { display: block; }
.offer-contact span { color: var(--muted); font-size: .8rem; }
.offer-contact strong { color: var(--blue-dark); }
.offer-form { padding: clamp(25px, 5vw, 48px); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-form label { display: block; margin-bottom: 18px; font-size: .88rem; font-weight: 720; }
.offer-form input, .offer-form select, .offer-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid #cfdce3;
  border-radius: 11px;
  color: var(--ink);
  background: #fbfdfe;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.offer-form textarea { resize: vertical; min-height: 125px; }
.offer-form input:focus, .offer-form select:focus, .offer-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12,116,187,.1); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

.contact { padding-bottom: 125px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(16,36,54,.09); }
.contact-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 27px; border-radius: 13px; color: var(--white); background: var(--blue); font-size: 1.15rem; }
.contact-card > span:not(.contact-icon), .contact-card strong, .contact-card small { display: block; }
.contact-card > span:not(.contact-icon) { margin-bottom: 7px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.contact-card strong { margin-bottom: 6px; font-size: 1.05rem; }
.contact-card small { color: var(--muted); }

.site-footer { padding: 72px 0 20px; color: rgba(255,255,255,.74); background: #071c2a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr 1fr; gap: 70px; padding-bottom: 55px; }
.footer-brand p { max-width: 420px; }
.footer-logo { display: grid; place-items: center; width: 170px; height: 78px; margin-bottom: 22px; padding: 6px 12px; border-radius: 14px; background: var(--white); }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer h2 { margin-bottom: 18px; color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a, .site-footer span { display: block; margin: 7px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }
.footer-bottom > span, .footer-bottom a { display: inline; }
.footer-bottom div { display: flex; gap: 24px; }
.mobile-call { display: none; }

.legal-page { min-height: 100vh; background: var(--surface); }
.legal-header { position: static; height: auto; padding: 15px 0; background: var(--white); box-shadow: 0 8px 30px rgba(10,38,56,.08); }
.legal-header .main-nav { color: var(--ink); }
.legal-main { padding: 85px 0 110px; }
.legal-card { max-width: 850px; padding: clamp(28px, 6vw, 65px); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); }
.legal-card h2 { margin-top: 38px; font-size: 1.45rem; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card a { color: var(--blue); font-weight: 700; }

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

@media (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .facts-grid > div:nth-child(2) { border-right: 0; }
  .facts-grid > div:first-child { padding-left: 20px; }
  .facts-grid > div:nth-child(3), .facts-grid > div:nth-child(4) { border-bottom: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
  .process-grid li:nth-child(3) { padding-left: 0; border: 0; }
  .review-inner { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .review-inner > span { text-align: center; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 30px, 680px); }
  .site-header, .site-header.is-scrolled { height: 72px; background: rgba(255,255,255,.98); box-shadow: 0 7px 25px rgba(10,38,56,.09); }
  .brand, .is-scrolled .brand { width: 128px; height: 59px; padding: 4px 8px; box-shadow: none; }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 15px;
    right: 15px;
    display: grid;
    gap: 0;
    padding: 18px;
    border-radius: 0 0 18px 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(16,36,54,.14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: .2s ease;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav > a { padding: 12px 10px; }
  .main-nav .button { margin-top: 9px; }
  .hero { min-height: 850px; align-items: start; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,28,45,.92), rgba(4,38,59,.58)); }
  .hero-inner { padding: 135px 0 240px; }
  .hero-facts { background: rgba(255,255,255,.97); }
  .facts-grid span { font-size: .78rem; }
  .section { padding: 82px 0; }
  .about-grid, .offer-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 350px; }

  .experience-card { right: 15px; }
  .offer-copy { position: static; }
  .heading-row { display: block; }
  .reference-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  h2 { font-size: 2.25rem; }
  .hero { min-height: 920px; }
  .hero-inner { padding-top: 125px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .facts-grid strong { font-size: 1rem; }
  .facts-grid > div { padding: 15px 11px; }
  .facts-grid > div:first-child { padding-left: 11px; }
  .services-grid, .contact-grid, .process-grid, .field-row { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .process-grid li, .process-grid li:first-child, .process-grid li:nth-child(3) { padding: 10px 0 25px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .process-grid li:last-child { border-bottom: 0; }
  .process-grid li > span { margin-bottom: 10px; }
  .reference-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: 270px; }

  .experience-card { right: 10px; bottom: 18px; padding: 17px 19px; }
  .offer-form { padding: 24px 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; padding-bottom: 58px; }
  .footer-bottom div { margin-top: 10px; }
  .mobile-call {
    position: fixed;
    z-index: 95;
    left: 16px;
    right: 16px;
    bottom: 12px;
    display: flex;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 12px 35px rgba(12,65,40,.36);
    font-weight: 800;
  }
}

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

/* Work photos retain their original proportions. */
#einblicke .reference-grid { grid-template-columns: repeat(auto-fit, minmax(0, 350px)); grid-template-rows: auto; align-items: start; }
#einblicke .reference-card img { display: block; width: 100%; height: auto; object-fit: contain; }
#einblicke .reference-card:hover img { transform: none; }

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[data-form-status] { margin: 16px 0 0; font-size: 1rem; line-height: 1.5; }
[data-form-status][data-state="success"] { color: #17663d; }
[data-form-status][data-state="error"] { color: #a32121; }
.offer-form button:disabled { opacity: .7; cursor: wait; }
