/* Voelkel Engineering public site. Shared styles for every public page. */
:root {
  --navy: #0b2235;
  --navy-2: #06263b;
  --ink: #021a2b;
  --blue: #0b4a6e;
  --blue-2: #0b4f74;
  --teal-blue: #0e5a7e;
  --teal-blue-2: #135f78;
  --teal: #127a74;
  --teal-2: #1a7a80;
  --gold-1: #e3c47a;
  --gold-2: #b8902f;
  --gold-3: #a07519;
  --gold: #ad8239;
  --gold-dark: #8a6414;
  --slate: #3d4f5f;
  --panel: #f3f5f7;
  --panel-2: #f2f5f8;
  --warm: #f4f3f0;
  --border: #e3e7eb;
  --border-2: #e5e9ee;
  --input: #d5dbe1;
  --white: #fff;
  --danger: #a3261b;
  --ok: #1d6b45;
  --gold-grad: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --navy-grad: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%);
  --icon-grad: linear-gradient(135deg, var(--navy-2) 0%, var(--teal) 100%);
  --wrap: 1265px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --header-h: 88px;
  --radius: 10px;
  --shadow-card: 0 4px 16px rgba(2, 24, 38, .06);
  --shadow-card-hover: 0 14px 32px rgba(2, 24, 38, .14);
  --font: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-head: "Inter Tight", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-blue); }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 4px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-gold { background: var(--gold-grad); color: var(--navy); box-shadow: 0 6px 14px rgba(160, 117, 25, .35); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-gold:active { transform: translateY(1px); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--panel); }
.btn-navy { background: linear-gradient(135deg, var(--blue), var(--ink)); color: #fff; }
.btn-navy:hover { filter: brightness(1.15); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--teal-blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 12px rgba(2, 24, 38, .08);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 220px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link, .nav-button {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h);
  color: var(--navy); font: 700 15px/1 var(--font); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 2px solid transparent;
}
.nav-button .chev { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link[aria-current="page"], .nav-button.is-current { color: var(--gold-dark); }
.nav-link[aria-current="page"] span, .nav-button.is-current span { box-shadow: 0 2px 0 var(--gold-2); padding-bottom: 4px; }
.nav-divider { width: 1px; height: 28px; background: #d9dee3; flex: none; }
.util-links { display: flex; align-items: center; gap: 20px; }
.util-links a { white-space: nowrap; color: var(--teal-blue); font: 600 15px/1 var(--font); text-decoration: none; }
.util-links a:hover, .nav-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-cta { flex: none; white-space: nowrap; }

/* Services dropdown */
.dropdown {
  position: absolute; top: calc(100% - 10px); left: -24px; z-index: 110;
  display: none; grid-template-columns: repeat(3, minmax(190px, auto)); gap: 28px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(2, 24, 38, .14); padding: 26px 30px 28px;
}
.dropdown.open { display: grid; }
html:not(.js) .has-dropdown:focus-within .dropdown, html:not(.js) .has-dropdown:hover .dropdown { display: grid; }
.dropdown .dd-head {
  font: 700 12px/1 var(--font); letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dark); margin: 0 0 14px;
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li + li { margin-top: 2px; }
.dropdown a {
  display: block; padding: 7px 0; color: var(--navy); font: 500 15px/1.3 var(--font); text-decoration: none; white-space: nowrap;
}
.dropdown a:hover { color: var(--teal-blue); text-decoration: underline; text-underline-offset: 4px; }
.dropdown a[aria-current="page"] { color: var(--gold-dark); font-weight: 700; }

/* Mobile toggle + sheet */
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy); border-radius: 6px;
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }

@media (max-width: 1320px) {
  .header-inner { gap: 18px; }
  .header-cta { padding: 12px 16px; }
  .nav-list { gap: 18px; }
  .util-links { gap: 14px; }
  .brand img { width: 190px; }
}
@media (max-width: 1180px) {
  :root { --header-h: 80px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  html:not(.js) .menu-toggle { display: none; }
  .brand img { width: 180px; }
  .mobile-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 20px var(--gutter) 120px; border-top: 1px solid var(--border);
  }
  .mobile-menu.open { display: block; }
  body.menu-open { overflow: hidden; }
}
.mobile-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mobile-cta-row .btn { min-height: 48px; }
.mobile-group { padding: 14px 0 8px; border-top: 1px solid var(--border); }
.mobile-group .dd-head {
  font: 700 12px/1 var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin: 6px 0 6px;
}
.mobile-group ul { list-style: none; margin: 0; padding: 0; }
.mobile-group a {
  display: flex; align-items: center; min-height: 48px; color: var(--navy); font: 700 17px/1.2 var(--font); text-decoration: none;
}
.mobile-group a[aria-current="page"] { color: var(--gold-dark); }

/* Sticky quick contact bar (mobile) */
.quick-bar { display: none; }
@media (max-width: 1180px) {
  .quick-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; display: grid; grid-template-columns: 2fr 3fr; gap: 10px;
    background: #fff; border-top: 1px solid var(--border); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(2, 24, 38, .06);
  }
  .quick-bar .btn { min-height: 46px; }
  body { padding-bottom: 76px; }
}

/* ---------- Section basics ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; color: var(--gold-dark);
  font: 700 13px/1.3 var(--font); letter-spacing: 3px; text-transform: uppercase;
}
.eyebrow.teal { color: var(--teal-blue); }
.eyebrow.ruled::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold-2); margin-top: 12px; }
.h2 { font-size: clamp(34px, 4.2vw, 48px); font-weight: 800; letter-spacing: -1px; }
.h2.ruled::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold-2); margin-top: 16px; }
.center { text-align: center; }
.center .h2.ruled::after { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(18px, 1.6vw, 20px); }
.grad-text {
  background: linear-gradient(90deg, var(--teal-blue-2), var(--teal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Scroll reveal: content stays visible without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(227, 196, 122, .18), transparent 70%),
    linear-gradient(rgba(11, 74, 110, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(11, 74, 110, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    #f7f9fb;
}
.hero-inner { display: grid; grid-template-columns: 45fr 55fr; align-items: center; min-height: 620px; }
.hero-copy { padding: 72px 40px 72px 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero p.lead { max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-figure { position: relative; align-self: stretch; margin: 0 calc(-1 * var(--gutter)) 0 0; min-height: 420px; }
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
@media (min-width: 1426px) {
  .hero-figure { margin-right: calc((100vw - var(--wrap)) / -2 - 0px); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 0 36px; }
  .hero-figure { margin: 0 calc(-1 * var(--gutter)); min-height: 0; aspect-ratio: 4 / 3; }
  .hero-figure img { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
}

/* Trust band */
.trust { background: linear-gradient(90deg, var(--ink) 0%, var(--blue) 55%, var(--teal) 100%); color: #fff; }
.trust ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 30px 18px; font: 700 17px/1.3 var(--font); text-align: left; }
.trust li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.diamond { position: relative; flex: none; width: 16px; height: 16px; }
.diamond::before, .diamond::after { content: ""; position: absolute; inset: 0; transform: rotate(45deg); }
.diamond::before { background: rgba(138, 100, 20, .45); border: 1px solid rgba(227, 196, 122, .35); }
.diamond::after { inset: 3px; background: var(--gold-grad); }
@media (max-width: 800px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li { justify-content: flex-start; padding: 20px 4px; }
  .trust li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow-card);
  padding: 26px 24px 24px; color: inherit; text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: var(--shadow-card-hover); }
.icon-tile { width: 54px; height: 54px; border-radius: 12px; background: var(--icon-grad); display: grid; place-items: center; flex: none; }
.icon-tile svg { width: 30px; height: 30px; stroke: var(--gold-1); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; margin: 4px 0 0; }
.card p { font-size: 16px; margin: 0; flex: 1; }
.card .card-arrow { color: var(--teal); font-size: 22px; font-weight: 700; line-height: 1; transition: transform .22s ease; }
.card:hover .card-arrow { transform: translateX(4px); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; row-gap: 6px; padding: 20px; }
  .card .icon-tile { grid-row: span 3; }
  .card h3 { margin: 0; }
}

/* Timeline */
.path { background: linear-gradient(90deg, var(--warm) 0%, #f4f4f1 60%, #eef2ee 100%); }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 22px; left: 16.66%; right: 16.66%; height: 1px; background: var(--gold-2); z-index: 0;
}
.timeline li { position: relative; text-align: center; z-index: 1; }
.timeline li + li::before {
  content: "\203A"; position: absolute; top: 8px; left: -20px; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-2); background: var(--warm);
  color: var(--gold-dark); font: 700 18px/26px var(--font); text-align: center;
}
.badge-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  background: var(--gold-grad); color: var(--navy); font: 800 17px/1 var(--font); border-radius: 3px;
  box-shadow: 0 4px 10px rgba(160, 117, 25, .25);
}
.timeline h3 { font-size: clamp(22px, 2vw, 26px); }
.timeline p { max-width: 22em; margin: 0 auto; }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { top: 0; bottom: 0; left: 23px; right: auto; width: 1px; height: auto; }
  .timeline li { text-align: left; padding-left: 72px; }
  .timeline li + li::before { display: none; }
  .badge-num { position: absolute; left: 0; top: 0; }
  .timeline p { margin: 0; }
}

/* CTA band */
.cta-band {
  color: #fff;
  background:
    radial-gradient(ellipse 50% 90% at 90% 50%, rgba(18, 122, 116, .45), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, var(--navy-2), var(--ink));
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -1px; margin: 0 0 8px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 18px; }

/* ---------- Service page template ---------- */
.svc-hero {
  color: #fff;
  background:
    radial-gradient(ellipse 50% 70% at 70% 30%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(120deg, var(--blue) 0%, #05304a 45%, #021826 100%);
}
.svc-hero-inner { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.back-link { display: inline-block; color: #fff; font-size: 15px; margin-bottom: 26px; text-underline-offset: 4px; }
.back-link:hover { color: var(--gold-1); }
.svc-hero .eyebrow { color: var(--gold-1); }
.svc-hero h1 { color: #fff; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 20px; }
.svc-hero p { font-size: clamp(18px, 1.6vw, 20px); color: rgba(255, 255, 255, .9); max-width: 28em; margin-bottom: 30px; }
@media (max-width: 900px) { .svc-hero-inner { grid-template-columns: 1fr; gap: 36px; } }

/* Gallery slideshow */
.gallery { position: relative; margin: 0; }
.gallery-frame {
  position: relative; aspect-ratio: 650 / 430; background: #e9edf1; border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); perspective: 1600px;
}
.gallery-frame.cover .slide img { object-fit: cover; }
.slide { position: absolute; inset: 0; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.js .slide { opacity: 0; visibility: hidden; transform-origin: left center; transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.js .slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.js .slide.is-leaving { transform: rotateY(-14deg) scale(.98); }
html:not(.js) .gallery-frame { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: transparent; box-shadow: none; }
html:not(.js) .slide { position: static; aspect-ratio: 650 / 430; }
html:not(.js) .gallery-controls { display: none; }
.gallery-controls {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 6px; background: rgba(2, 26, 43, .72); border-radius: 999px; padding: 6px 10px;
}
.gallery-dots { display: flex; gap: 2px; }
.gallery-dots button, .gallery-pause {
  width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; padding: 0;
}
.gallery-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.gallery-dots button[aria-current="true"]::before { background: var(--gold-1); }
.gallery-pause svg { width: 14px; height: 14px; fill: #fff; }
.gallery-pause .icon-play { display: none; }
.gallery-pause[aria-pressed="true"] .icon-play { display: block; }
.gallery-pause[aria-pressed="true"] .icon-pause { display: none; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(2, 26, 43, .6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
html:not(.js) .gallery-prev, html:not(.js) .gallery-next { display: none; }
.gallery-prev:hover, .gallery-next:hover, .gallery-dots button:hover::before { background-color: rgba(2, 26, 43, .85); }
.gallery-dots button:hover::before { background: #fff; }

.svc-body { padding: clamp(56px, 7vw, 96px) 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.svc-copy .h2 { margin-bottom: 22px; }
.svc-copy h3 { font-size: 24px; margin: 34px 0 14px; }
.svc-copy > p { font-size: 18px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }

/* Diamond list markers (they render now) */
.diamond-list { list-style: none; margin: 0 0 1em; padding: 0; }
.diamond-list li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.diamond-list li::before {
  content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-grad); box-shadow: 0 0 0 2px rgba(184, 144, 47, .2);
}
.note { border-left: 3px solid var(--gold-2); padding: 4px 0 4px 18px; margin: 32px 0 26px; font-size: 15px; color: var(--slate); }

/* Quick quote card */
.quote-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: clamp(22px, 3vw, 32px);
}
.quote-card h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.5px; }
.quote-card .small { font-size: 14px; }
.quote-links { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.quote-links a { color: var(--navy); font-weight: 700; }
@media (max-width: 960px) { .quote-card { position: static; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { color: var(--navy); font: 600 15px/1.3 var(--font); }
.field .req { color: var(--danger); }
.field .hint { font-size: 13px; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 7px;
  background: #fff; color: var(--navy); font: 400 16px/1.4 var(--font);
}
textarea { min-height: 112px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2235' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 36px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(184, 144, 47, .55); outline-offset: 1px; border-color: var(--gold-2); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-status { border-radius: 8px; padding: 14px 16px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { background: #e7f4ec; color: var(--ok); border: 1px solid #b9dcc6; }
.form-status.err { background: #fbeceb; color: var(--danger); border: 1px solid #efc3be; }
.form-status strong { display: block; margin-bottom: 2px; }
.thanks { text-align: left; }
.thanks h3 { margin-bottom: 6px; }
.cf-turnstile:empty { display: none; }

/* Project type cards (contact) */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.type-grid legend { margin-bottom: 12px; padding: 0; }
@media (max-width: 760px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .type-grid { grid-template-columns: 1fr; } }
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-card .tc-body {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color .2s, box-shadow .2s;
}
.type-card .tc-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; background: #eef2f6; display: grid; place-items: center; font-size: 22px; }
.type-card .tc-title { color: var(--navy); font-weight: 700; }
.type-card .tc-desc { font-size: 14px; line-height: 1.4; }
.type-card:hover .tc-body { border-color: var(--gold-2); }
.type-card input:checked + .tc-body { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; background: #f8fafc; }
.type-card input:focus-visible + .tc-body { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---------- Simple pages (contact, privacy, blog, calculators) ---------- */
.page-head { background: var(--panel); padding: clamp(44px, 6vw, 72px) 0 clamp(30px, 4vw, 44px); }
.page-head h1 { font-size: clamp(38px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1.2px; margin-bottom: 16px; }
.page-head .lead { max-width: 44em; }
.narrow { max-width: 900px; margin: 0 auto; }
.prose-w { max-width: 760px; margin: 0 auto; }
.contact-meta { font-size: 16px; }
.contact-meta p { margin: 0 0 6px; }
.panel-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-card); }
.panel-card h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }

/* Prose (privacy, blog posts) */
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 3px; top: .58em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-grad);
}
.prose ol { padding-left: 1.4em; }
.prose ol > li { margin-bottom: 8px; padding-left: 4px; }
.prose ol > li::marker { color: var(--gold-dark); font-weight: 700; }
.prose a { color: var(--teal-blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--navy); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 10px; width: 100%; }
.prose figcaption { font-size: 14px; margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--gold-2); margin: 1.4em 0; padding: 2px 0 2px 18px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }
.prose tr:first-child td { background: var(--panel); color: var(--navy); font-weight: 600; }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.post-card {
  display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; position: relative;
}
.post-card.has-cover { grid-template-columns: 45fr 55fr; }
.post-card:hover, .post-card:focus-within { transform: translateY(-4px); border-color: var(--gold-2); box-shadow: var(--shadow-card-hover); }
.post-card .pc-cover { margin: 0; min-height: 220px; background: var(--panel); }
.post-card .pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-size: 14px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.post-meta .author { color: var(--navy); font-weight: 600; }
.post-card h2 { font-size: clamp(21px, 2vw, 26px); font-weight: 700; margin: 0; letter-spacing: -.3px; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card p { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .read-more { margin-top: auto; color: var(--teal); font-weight: 700; font-size: 15px; }
@media (max-width: 760px) {
  .post-card.has-cover { grid-template-columns: 1fr; }
  .post-card .pc-cover { min-height: 0; aspect-ratio: 3 / 2; }
}

/* Single post */
.post-head { background: var(--panel); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); }
.post-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 10px 0 14px; }
.post-head .back-link { color: var(--teal-blue); margin-bottom: 12px; }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }

/* Calculator embed */
.embed-frame { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.embed-frame iframe { display: block; width: 100%; height: 2200px; border: 0; }
.embed-placeholder { padding: clamp(28px, 5vw, 56px); text-align: center; background: repeating-linear-gradient(135deg, #fff 0 14px, var(--panel-2) 14px 28px); }
.embed-placeholder h2 { font-size: clamp(24px, 2.6vw, 30px); }
.embed-placeholder p { max-width: 36em; margin: 0 auto 18px; }
.calc-disclaimer { font-size: 14px; margin-top: 14px; }

/* 404 + redirect */
.simple-center { text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.simple-center h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -1.5px; }
.simple-center .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, var(--blue-2) 0%, var(--ink) 100%); color: rgba(255, 255, 255, .75); padding: 56px 0; }
.footer-links { list-style: none; margin: 0; padding: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-links a { color: #fff; font: 700 14px/1.6 var(--font); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a[aria-current="page"] { color: var(--gold-1); }
.footer-text { padding-top: 22px; font-size: 13px; line-height: 1.7; }
.footer-text p { margin: 0 0 6px; }
.footer-text strong { color: #fff; }
.footer-text a { color: #fff; }
