/* B&H Scaffolding — site styles (static rebuild, Oct 2026) */
@import url("../fonts/fonts.css");

:root {
  --navy: #1b2060;
  --navy-900: #0f1238;
  --navy-800: #151a4d;
  --blue: #3047a8;
  --blue-300: #8fb0e0;
  --blue-100: #e7eefa;
  --yellow: #ffc72c;
  --yellow-600: #e8ad00;
  --ink: #12152b;
  --body: #3a3f58;
  --muted: #6b7088;
  --paper: #f5f6fa;
  --white: #fff;
  --line: #e2e5ef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 18, 56, .06), 0 8px 24px rgba(15, 18, 56, .08);
  --shadow-lg: 0 20px 50px rgba(15, 18, 56, .18);
  --wrap: 1200px;
  --display: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--body); background: var(--white); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 999; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* eyebrow / kicker with a scaffold "tube" line */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .85rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.on-dark .kicker { color: var(--blue-300); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--body); max-width: 62ch; }
.on-dark { color: #cfd6ee; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.hl { color: var(--yellow); }

/* Buttons */
.btn { --bg: var(--yellow); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { color: var(--fg); background: var(--yellow-600); border-color: var(--yellow-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 173, 0, .35); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); box-shadow: none; }
.btn--navy { --bg: var(--navy); --fg: var(--white); }
.btn--navy:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); box-shadow: 0 8px 20px rgba(15,18,56,.3); }
.btn--line { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar { background: var(--navy-900); color: #b9c2e6; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--yellow); }
.topbar .stars { color: var(--yellow); letter-spacing: 1px; }
.topbar__right { display: flex; gap: 22px; }
@media (max-width: 760px) { .topbar__right { display: none; } .topbar .wrap { justify-content: center; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 86px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .nav button.nav__drop { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 700 .98rem/1 var(--sans); letter-spacing: .02em; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav__drop:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--blue-100); }
.nav li { position: relative; }
.nav .sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: flex; width: 100%; padding: 11px 12px; font-size: 1rem; }
.nav__drop svg { width: 14px; height: 14px; }
.header__cta { display: flex; gap: 10px; align-items: center; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font: 700 1.25rem/1 var(--sans); letter-spacing: .02em; }
.header__phone svg { width: 20px; height: 20px; color: var(--blue); }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1080px) { .header__phone { display: none; } }
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .header .wrap { min-height: 70px; }
  .brand img { height: 58px; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 110px 0 0 0; background: var(--white); padding: 18px 16px 120px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; margin: 0; }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button.nav__drop { width: 100%; justify-content: space-between; padding: 16px 12px; font-size: 1.2rem; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; }
  .nav li.open > .sub { display: block; }
  .nav .nav__mobile-cta { display: grid; gap: 10px; margin-top: 18px; }
}
.nav__mobile-cta { display: none; }
.menu-open { overflow: hidden; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #d7ddf3; background: var(--navy-900); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15,18,56,.96) 0%, rgba(15,18,56,.86) 38%, rgba(15,18,56,.35) 72%, rgba(15,18,56,.15) 100%), linear-gradient(0deg, rgba(15,18,56,.6), transparent 40%); }
.hero .wrap { padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 110px); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 22px; }
.hero p.lead { color: #d7ddf3; max-width: 52ch; font-size: 1.25rem; margin-bottom: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.gbadge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--white); text-decoration: none; }
.gbadge:hover { background: rgba(255,255,255,.14); color: var(--white); }
.gbadge svg { width: 26px; height: 26px; flex: none; }
.gbadge strong { font: 700 1.3rem/1 var(--display); }
.gbadge .stars { color: var(--yellow); letter-spacing: 2px; }
.gbadge small { display: block; font-size: .85rem; color: #b9c2e6; line-height: 1.2; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.ticks svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }
.hero--page .wrap { padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 7vw, 84px); }
.hero--page h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }

/* Band in the logo's three blues */
.stripe { height: 8px; background: linear-gradient(90deg, var(--navy) 0 33.33%, #3a4fb4 33.33% 66.66%, #8fb0e0 66.66% 100%); }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 14px; }
.trust .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100); color: var(--navy); display: grid; place-items: center; flex: none; }
.trust .ico svg { width: 24px; height: 24px; }
.trust strong { display: block; font: 700 1.1rem/1.2 var(--sans); color: var(--ink); }
.trust span { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head > div { max-width: 720px; }
.section__head p { margin: 0; }
.center { text-align: center; }
.center .section__head, .section__head.center { justify-content: center; text-align: center; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media .tag { position: absolute; left: -14px; bottom: 28px; background: var(--yellow); color: var(--ink); padding: 14px 18px; border-radius: 10px; font: 700 1.15rem/1.1 var(--sans); text-transform: uppercase; box-shadow: var(--shadow); max-width: 220px; }
.split__media .tag small { display: block; font: 600 .85rem/1.3 var(--sans); text-transform: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } .split__media img { aspect-ratio: 4/3; } .split__media .tag { left: 12px; } }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--body); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--body); }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--navy); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { margin-bottom: 18px; font-size: .98rem; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.card__more svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card__more svg { transform: translateX(4px); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--4 { grid-template-columns: 1fr; } }

/* Numbered "lifts" (why us) */
.lifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: lift; border-top: 3px solid rgba(255,255,255,.14); }
.lift { padding: 30px 26px 10px 0; position: relative; }
.lift::before { counter-increment: lift; content: "0" counter(lift); display: block; font: 700 3rem/1 var(--display); color: var(--yellow); margin-bottom: 10px; }
.lift::after { content: ""; position: absolute; top: -3px; left: 0; width: 46px; height: 3px; background: var(--yellow); }
.lift h3 { color: var(--white); margin-bottom: 10px; }
.lift p { color: #c3cbea; font-size: .98rem; }
@media (max-width: 980px) { .lifts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lifts { grid-template-columns: 1fr; } }

/* Project grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; }
.pgrid a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--navy); }
.pgrid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.pgrid a:hover img { transform: scale(1.06); }
.pgrid figcaption, .pgrid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(15,18,56,.85), transparent); color: var(--white); font-size: .92rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .25s; }
.pgrid a:hover .cap, .pgrid a:focus-visible .cap { opacity: 1; transform: none; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .pgrid .cap { opacity: 1; transform: none; } }

/* Gallery page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 2px solid var(--line); background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 999px; font: 700 1rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed="true"], .filters button:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery a { display: block; position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--navy); }
.gallery a[hidden] { display: none; }
.gallery img { width: 100%; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; background: linear-gradient(0deg, rgba(15,18,56,.85), transparent); color: var(--white); font-size: .92rem; font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9, 11, 33, .94); display: none; align-items: center; justify-content: center; padding: 40px 16px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 22px; left: 16px; right: 16px; text-align: center; color: #d7ddf3; margin: 0; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--yellow); }
.review .stars { color: #f5b301; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 20px; font-size: 1.04rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.review .av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 1.1rem/1 var(--sans); }
.review footer small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.review footer svg { width: 20px; height: 20px; margin-left: auto; }
.reviews__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gscore { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border-radius: 999px; padding: 10px 20px 10px 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.gscore svg { width: 30px; height: 30px; }
.gscore strong { font: 700 1.5rem/1 var(--display); }
.gscore .stars { color: #f5b301; letter-spacing: 2px; }
.gscore small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.areas li svg { width: 16px; height: 16px; color: var(--blue); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative; font: 700 1.2rem/1.3 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 6px; }

/* Quote band + form */
.quote { background: var(--navy); position: relative; overflow: hidden; isolation: isolate; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.quote__contact { display: grid; gap: 14px; margin-top: 28px; }
.quote__contact a { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; font: 700 1.5rem/1.1 var(--sans); letter-spacing: .02em; }
.quote__contact a small { display: block; font: 500 .85rem/1.2 var(--sans); color: #aab3d8; letter-spacing: 0; }
.quote__contact .ico { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--yellow); flex: none; }
.quote__contact .ico svg { width: 24px; height: 24px; }
.quote__contact a:hover { color: var(--yellow); }
/* the email is one long unbreakable word: let it shrink and wrap (at the <wbr> before @) instead of widening the grid */
.quote__contact a > span + span { min-width: 0; overflow-wrap: anywhere; }
.quote__contact .email { font-size: 1.1rem; }
@media (max-width: 900px) { .quote__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .quote__contact .email { font-size: min(1.1rem, 4vw); } }

.form { background: var(--white); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); color: var(--body); }
.form h3, .on-dark .form h3 { margin-bottom: 6px; color: var(--ink); }
.form .sub { color: var(--muted); margin-bottom: 22px; font-size: .98rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #cfd4e3; border-radius: 10px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(48, 71, 168, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c62828; }
.field .err { display: none; color: #c62828; font-size: .88rem; margin-top: 5px; }
.field.invalid .err { display: block; }
.drop { position: relative; border: 2px dashed #b8c1dd; border-radius: 12px; padding: 18px; text-align: center; background: var(--paper); color: var(--muted); cursor: pointer; transition: .15s; }
.drop:hover, .drop.drag { border-color: var(--blue); background: var(--blue-100); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { color: var(--navy); }
.drop svg { width: 28px; height: 28px; color: var(--blue); margin: 0 auto 6px; display: block; }
.files { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; color: var(--ink); display: grid; gap: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.form .btn { width: 100%; margin-top: 6px; }
.form .note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #8e1b1b; margin-bottom: 18px; font-weight: 600; }
.form.sending .btn { opacity: .7; pointer-events: none; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.info { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
.info dl { margin: 0; display: grid; gap: 18px; }
.info dt { font: 700 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.08rem; }
.info dd a { color: var(--navy); text-decoration: none; }
.info dd a:hover { color: var(--blue); }
.mapcard { margin-top: 22px; border-radius: 14px; overflow: hidden; position: relative; display: block; text-decoration: none; }
.mapcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mapcard span { display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 999px; font: 700 .95rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .info { padding: 24px 20px; } }
/* the email address is one long word: never let it push a layout wider than the screen */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Prose (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

/* CTA strip */
.cta { background: var(--yellow); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p { margin: 4px 0 0; color: var(--ink); }

/* Footer */
.footer { background: var(--navy-900); color: #aab3d8; font-size: .97rem; }
.footer .wrap { padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d7ddf3; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__logo { width: 120px; border-radius: 12px; margin-bottom: 16px; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer__base a { color: #aab3d8; }
.footer__base nav { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile sticky action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,18,56,.12); }
  .mbar .btn { min-height: 50px; padding: 0 12px; font-size: 1rem; }
  body { padding-bottom: 74px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* Thank-you / 404 */
.big-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; margin-bottom: 26px; }
.big-icon svg { width: 42px; height: 42px; }

.mapcard span svg { width: 16px; height: 16px; flex: none; }
.field label.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--body); font-size: .92rem; line-height: 1.45; margin: 0; }
.field input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; border-radius: 4px; accent-color: var(--navy); }

/* Home hero with lead form */
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__grid .form { max-width: 470px; justify-self: end; width: 100%; }
.form--compact h3 { font-size: 1.6rem; }
.form--compact .fgrid { gap: 12px 14px; }
.form--compact .field input, .form--compact .field select { min-height: 48px; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } .hero__grid .form { justify-self: stretch; max-width: none; } }

/* Services: clickable link + small dropdown toggle */
.nav li.has-sub { display: flex; align-items: center; }
.nav li.has-sub > a { padding-right: 4px; }
.nav li.has-sub > .nav__drop { padding: 10px 8px 10px 2px; }
@media (max-width: 920px) {
  .nav li.has-sub { flex-wrap: wrap; }
  .nav li.has-sub > a { flex: 1; width: auto; }
  .nav li.has-sub > .nav__drop { width: 56px; justify-content: center; padding: 16px 0; }
  .nav li.has-sub > .sub { flex-basis: 100%; }
  .nav li.open > .nav__drop svg { transform: rotate(180deg); }
}

/* Mobile: backdrop-filter on the header traps the fixed menu inside it, so drop it on small screens */
@media (max-width: 920px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav { top: var(--nav-top, 110px); inset: auto 0 0 0; height: calc(100dvh - var(--nav-top, 110px)); z-index: 70; }
}

/* Services: one pill for link + arrow */
.nav li.has-sub { border-radius: 8px; transition: background .15s; }
.nav li.has-sub > a, .nav li.has-sub > .nav__drop { background: none !important; }
.nav li.has-sub:hover, .nav li.has-sub.is-active, .nav li.has-sub.open { background: var(--blue-100); }
.nav li.has-sub:hover > a, .nav li.has-sub.is-active > a, .nav li.has-sub:hover > .nav__drop, .nav li.has-sub.is-active > .nav__drop { color: var(--blue); }
.nav li.has-sub > .nav__drop { padding: 10px 12px 10px 0; }
@media (max-width: 920px) { .nav li.has-sub:hover, .nav li.has-sub.open { background: none; } .nav li.has-sub.is-active { background: var(--blue-100); } }
