/* High Quality Renovations — site styles
   Layout: white brand header, photo-led bands, blue/navy color blocks, card grids that collapse to one column on phones.
   Brand is carried over from the existing site (Montserrat, HQR blue) with the navy + gold of the company portfolio. */
:root {
  --blue: #0a6eba;
  --blue-deep: #08579a;
  --navy: #0e2a47;
  --navy-2: #163a5e;
  --gold: #f6b23e;
  --gold-deep: #d9951f;
  --ink: #142231;
  --muted: #566778;
  --line: #dbe3eb;
  --mist: #f1f5f9;
  --paper: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #c9d6e3;

  --display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ui: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--blue); color: var(--on-dark); font-size: 13.5px; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; gap: 24px; padding-block: 7px; text-align: center; }
.topbar a { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.topbar .topbar-phone { display: none; }
@media (min-width: 900px) { .topbar .wrap { justify-content: space-between; text-align: left; } .topbar .topbar-phone { display: inline; } }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 46px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 14px var(--ui); padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

.main-nav { display: none; }
.main-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto;
}
.main-nav ul { list-style: none; }
.main-nav > ul { display: flex; flex-direction: column; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
.main-nav a, .main-nav .sub-toggle {
  display: block; color: var(--ink); text-decoration: none; font: 500 15.5px var(--body); padding: 12px 4px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
}
.main-nav li + li { border-top: 1px solid var(--mist); }
.main-nav .sub { padding-left: 14px; }
.main-nav .sub a { font-size: 14.5px; color: var(--muted); padding-block: 9px; }
.main-nav [aria-current="page"] { color: var(--blue); font-weight: 600; }
.sub-toggle .chev { display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.main-nav .btn { margin-top: 12px; text-align: center; }
.main-nav a.btn { display: inline-flex; width: auto; color: var(--on-dark); background: var(--blue); border-radius: 999px; font: 600 14.5px/1.2 var(--ui); padding: 11px 22px; }
.main-nav a.btn:hover { color: var(--on-dark); background: var(--blue-deep); box-shadow: none; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .main-nav > ul { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .main-nav li + li { border-top: 0; }
  .main-nav > ul > li { position: relative; }
  .main-nav > ul > li > a, .main-nav .sub-toggle { padding: 10px 14px; font-size: 15px; width: auto; }
  .main-nav > ul > li > a[aria-current="page"], .main-nav .has-sub.is-current > .sub-toggle { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
  .main-nav > ul > li > a:hover, .main-nav .sub-toggle:hover { color: var(--blue); }
  .main-nav .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--paper); padding: 8px 0; border: 1px solid var(--line);
    border-top: 3px solid var(--blue); box-shadow: var(--shadow);
  }
  .main-nav .sub a { padding: 9px 18px; font-size: 14.5px; color: var(--ink); }
  .main-nav .sub a:hover { background: var(--mist); color: var(--blue); }
  .main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub, .main-nav .has-sub.is-open > .sub { display: block; }
  .main-nav .btn { margin: 0 0 0 10px; }
}
@media (max-width: 1039px) { .main-nav .has-sub:not(.is-open) > .sub { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15.5px/1.2 var(--ui); text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; background: var(--blue); color: var(--on-dark); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-deep); color: var(--on-dark); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.btn-ghost:hover { background: var(--on-dark); color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn .arrow { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-grid; place-items: center; font-size: 14px; }

/* ---------- Generic sections ---------- */
.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--on-dark); }
.bg-blue { background: var(--blue); color: var(--on-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.bg-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; }
.bg-navy .section-head p { color: var(--on-dark-soft); }

/* ---------- Home hero ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 44, .88) 0%, rgba(10, 26, 44, .62) 48%, rgba(10, 26, 44, .18) 100%); }
.hero > .wrap { position: relative; z-index: 1; padding-block: 96px 88px; }
.hero-copy { max-width: 640px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.01em; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: #e6eef6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-strip { position: relative; z-index: 1; background: rgba(8, 87, 154, .92); }
.hero-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; padding-block: 14px; font: 600 14px var(--ui); letter-spacing: .04em; }
.hero-strip li { display: flex; align-items: center; gap: 10px; }
.hero-strip li::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
@media (min-width: 900px) { .hero > .wrap { padding-block: 150px 140px; } }

/* ---------- Intro band (blue) ---------- */
.intro-band { background: var(--blue); color: var(--on-dark); }
.intro-band .wrap { padding-block: 64px; }
.intro-band p { max-width: 900px; margin-inline: auto; text-align: center; font-size: clamp(18px, 2.2vw, 23px); font-weight: 600; line-height: 1.6; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature { display: grid; gap: 12px; align-content: start; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature img { width: 56px; height: 56px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Quote block ---------- */
.quote-grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1.55fr 1fr; } }
.quote-form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 28px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.quote-form-card h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.quote-form-card > p { color: var(--muted); }
.call-card { background: var(--gold); color: var(--navy); border-radius: var(--radius); padding: 38px 30px; display: grid; gap: 14px; align-content: center; }
.call-card h2 { font-size: 26px; font-weight: 700; }
.call-card .big-phone { font: 700 clamp(28px, 3.4vw, 38px) var(--display); color: var(--navy); text-decoration: none; letter-spacing: .01em; }
.call-card p { font-weight: 500; }
.call-card .btn { justify-self: start; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 13.5px var(--ui); color: var(--ink); }
.field label .req { color: var(--blue); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 15.5px var(--body); color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 3px rgba(10, 110, 186, .18); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form-status { font-size: 14.5px; color: var(--muted); }
.form-status.ok { color: #17663a; }
.form-status.err { color: #a32222; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Service cards (home) ---------- */
.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.svc-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  color: var(--on-dark); text-decoration: none; background: var(--navy);
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 10, 20, .9) 8%, rgba(2, 10, 20, .15) 58%, rgba(2, 10, 20, 0) 75%); }
.svc-card-body { position: relative; z-index: 1; padding: 26px 24px; display: grid; gap: 8px; }
.svc-card h3 { font-size: 22px; font-weight: 700; }
.svc-card p { font-size: 15px; color: #dfe8f1; }
.svc-card .more { font: 700 14px var(--ui); color: var(--gold); margin-top: 4px; }
.svc-card:hover { color: var(--on-dark); }
.svc-card:hover img { transform: scale(1.04); }

/* ---------- Project cards ---------- */
.proj-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.proj-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.proj-card[hidden] { display: none !important; }
.proj-media { aspect-ratio: 16 / 10; width: 100%; max-width: 100%; position: relative; background: var(--navy); overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-media.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  display: grid; align-content: end; padding: 20px 22px; color: var(--on-dark);
}
.proj-media.blueprint .bp-scope { font: 700 11.5px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.proj-media.blueprint .bp-name { font: 700 24px/1.15 var(--display); margin-top: 6px; }
.proj-media.blueprint .bp-mark { position: absolute; right: 18px; top: 16px; width: 64px; height: auto; object-fit: contain; opacity: .85; }
.proj-media .city-tag { position: absolute; left: 14px; top: 14px; background: rgba(14, 42, 71, .86); color: var(--on-dark); font: 600 12px var(--ui); padding: 5px 10px; border-radius: 999px; }
.proj-body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.proj-body h3 { font-size: 19px; font-weight: 700; }
.proj-loc { font: 600 13.5px var(--ui); color: var(--blue); }
.proj-addr { font-size: 13.5px; color: var(--muted); font-style: normal; }
.proj-body p { font-size: 15px; color: #33465a; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 6px; }
.tags li { font: 600 12px var(--ui); color: var(--navy-2); background: var(--mist); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { font: 600 14px var(--ui); color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.chip[aria-pressed="true"] .n { color: var(--gold); }
.filter-count { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero.grid-bg {
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .wrap { position: relative; padding-block: 70px 62px; display: grid; gap: 12px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
.page-hero p { max-width: 640px; color: #dbe6f1; font-size: 17px; }
.crumbs { font: 600 13px var(--ui); color: var(--on-dark-soft); display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- Two-column article ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.article { display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 760px; }
.article h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; }
.article h3 { font-size: 21px; font-weight: 700; margin-top: 14px; }
.article p { color: #2f4255; font-size: 16.5px; }
.article figure { margin: 10px 0; border-radius: var(--radius); overflow: hidden; }
.article figure img { width: 100%; max-height: 520px; object-fit: cover; }
.benefits { list-style: none; display: grid; gap: 14px; }
.benefits li { padding: 16px 18px 16px 20px; background: var(--mist); border-radius: var(--radius); border-left: 4px solid var(--blue); color: #2f4255; }
.benefits strong { color: var(--ink); }

.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 960px) { .sidebar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); } }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; background: var(--paper); }
.side-box h2 { font-size: 18px; font-weight: 700; }
.svc-links { list-style: none; display: grid; gap: 8px; }
.svc-links a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.svc-links a:hover { background: var(--mist); color: var(--blue); }
.svc-links a[aria-current="page"] { background: var(--mist); color: var(--blue); }
.svc-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; }
.svc-icon img, .svc-icon svg { width: 30px; height: 30px; }
.side-call { background: var(--gold); color: var(--navy); border: 0; }
.side-call .big-phone { font: 700 26px var(--display); color: var(--navy); text-decoration: none; }
.related { list-style: none; display: grid; gap: 10px; }
.related li { font-size: 14.5px; line-height: 1.4; }
.related strong { display: block; color: var(--ink); }
.related span { color: var(--muted); font-size: 13.5px; }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.cap h3 { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.cap h4 { font: 700 13.5px var(--ui); color: var(--blue); margin-top: 4px; }
.cap ul { list-style: none; display: grid; gap: 7px; }
.cap li { position: relative; padding-left: 16px; font-size: 15px; color: #33465a; line-height: 1.45; }
.cap li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bg-navy .cap { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.bg-navy .cap h3 { color: var(--on-dark); }
.bg-navy .cap h4 { color: var(--gold); }
.bg-navy .cap li { color: var(--on-dark-soft); }

/* ---------- Service overview cards ---------- */
.svc-tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.svc-tile { display: grid; gap: 12px; align-content: start; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.svc-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.svc-tile h3 { font-size: 19px; font-weight: 700; }
.svc-tile p { font-size: 15px; color: var(--muted); }
.svc-tile .more { font: 700 14px var(--ui); color: var(--blue); }

/* ---------- About ---------- */
.about-intro { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.1fr .9fr; gap: 60px; } }
.about-intro .copy { display: grid; gap: 18px; min-width: 0; }
.about-intro h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.about-intro p { font-size: 17px; color: #2f4255; }
.about-intro .btn { justify-self: start; }
.about-intro figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.about-intro figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 560px; }
.since-badge { position: absolute; left: 18px; bottom: 18px; background: var(--gold); color: var(--navy); border-radius: var(--radius); padding: 12px 16px; font: 700 13px var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.since-badge b { display: block; margin-top: 4px; font: 700 30px/1 var(--display); letter-spacing: 0; }

.leaders { display: grid; gap: 28px; }
.leader { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: grid; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 760px) { .leader { grid-template-columns: 300px minmax(0, 1fr); } }
.leader-photo { aspect-ratio: 4 / 5; max-width: 100%; background: var(--navy); overflow: hidden; }
@media (max-width: 759px) { .leader-photo { aspect-ratio: 1 / 1; } }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo.top img { object-position: 50% 18%; }
.leader-body { padding: 30px 30px 32px; display: grid; gap: 12px; align-content: center; max-width: 760px; }
.leader-name { font-size: 24px; font-weight: 700; }
.leader-role { font: 700 13px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.leader-body p { color: #33465a; font-size: 15.5px; }
.leader-contact { list-style: none; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 14.5px; }
.leader-contact a { text-decoration: none; font-weight: 600; word-break: break-word; }
.leader-contact span { color: var(--muted); }

.commit { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .commit { grid-template-columns: .9fr 1.1fr; gap: 60px; } }
.commit h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--gold); }
.commit p { font-size: 17.5px; color: var(--on-dark-soft); }
.pillars { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 8px; list-style: none; }
.pillars li { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 14px 16px; font: 700 15px var(--display); color: var(--on-dark); }
.pillars li small { display: block; font: 500 13px var(--body); color: var(--on-dark-soft); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; } }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; background: var(--paper); }
.info-block h2, .info-block h3 { font-size: 17px; font-weight: 700; }
.info-block .label { font: 700 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.info-block a { text-decoration: none; font-weight: 600; word-break: break-word; }
.info-block .phone-lg { font: 700 26px var(--display); color: var(--navy); }
.info-block p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: #0b1520; color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,110,186,.35), rgba(10,110,186,0) 60%); }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 52px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.cta-band .big-phone { font: 700 clamp(30px, 4vw, 42px) var(--display); color: var(--gold); text-decoration: none; display: block; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; padding-block: 60px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.15fr .85fr 1fr 1.3fr; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 190px; }
.footer-brand p { max-width: 30ch; }
.site-footer h2 { font-size: 15px; font-weight: 700; color: var(--on-dark); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a[href^="mailto:"] { font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; fill: var(--on-dark); }
.social img { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; font-size: 13.5px; }

/* ---------- Home: featured projects teaser ---------- */
.teaser-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.teaser-head .section-head { margin-bottom: 0; }

.lead-contacts { display: flex; flex-wrap: wrap; gap: 18px; }
.lead-contacts > .lead-card { flex: 1 1 340px; }
.lead-card { border-left: 4px solid var(--gold); background: var(--navy-2); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.lead-card h3 { font-size: 19px; font-weight: 700; color: var(--on-dark); }
.lead-card .leader-role { color: var(--gold); margin-bottom: 8px; }
.lead-card a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.lead-card a:hover { color: var(--gold); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Service groups ---------- */
.group-title { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 8px 0 16px; }
.group-title ~ .group-title { margin-top: 40px; }
.main-nav .sub .sub-label { font: 700 11px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); padding: 12px 4px 4px; border-top: 0; }
@media (min-width: 1040px) { .main-nav .sub { min-width: 270px; } .main-nav .sub .sub-label { padding: 12px 18px 4px; } }

/* Keep long email addresses on one line on small phones */
@media (max-width: 420px) {
  .lead-card a, .leader-contact a, .info-block a[href^="mailto:"] { font-size: 13px; }
}

/* ---------- Project photo galleries ---------- */
.proj-card.has-gallery { cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.proj-card.has-gallery:hover { box-shadow: var(--shadow); border-color: #c5d3e1; }
button.proj-media { display: block; border: 0; padding: 0; margin: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.proj-media img { transition: transform .5s; }
.proj-card.has-gallery:hover .proj-media img { transform: scale(1.03); }
.photo-count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14, 42, 71, .88); color: var(--on-dark); font: 600 12px var(--ui); padding: 5px 10px; border-radius: 999px;
}
.photo-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.sample-tag { position: absolute; right: 12px; top: 12px; background: var(--gold); color: var(--navy); font: 700 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.proj-thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 0; }
.proj-thumbs button {
  display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border: 0; padding: 0; position: relative; overflow: hidden;
  border-radius: 3px; background: var(--navy); cursor: pointer;
}
.proj-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.proj-thumbs button:hover img { opacity: .85; }
.proj-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 42, 71, .74); color: var(--on-dark); font: 700 16px var(--display); }
.gallery-src { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: #08111c; color: var(--on-dark); outline: none;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 8px 10px; min-width: 0; }
.lb-heading { min-width: 0; display: grid; gap: 2px; }
.lb-title { font: 700 clamp(16px, 2vw, 20px)/1.2 var(--display); }
.lb-sub { font: 600 13px var(--ui); color: var(--gold); }
.lb-right { display: flex; align-items: center; gap: 14px; flex: none; }
.lb-count { font: 600 14px var(--ui); color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--on-dark); transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; overflow: hidden; margin: 0 4px; touch-action: pan-y; }
.lb-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 52px; height: 52px; background: rgba(14, 42, 71, .7); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
.lb-caption { text-align: center; font-size: 14.5px; color: var(--on-dark-soft); padding: 12px 12px 0; max-width: 820px; margin-inline: auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lb-strip { overflow-x: auto; padding: 12px 4px 16px; scrollbar-width: thin; }
.lb-strip ul { list-style: none; display: flex; gap: 6px; width: max-content; margin-inline: auto; }
.lb-strip button {
  display: block; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
  background: var(--navy); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s;
}
.lb-strip button:hover { opacity: .9; }
.lb-strip button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
.lightbox.single .lb-strip, .lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  .lb-strip button { width: 62px; height: 46px; }
  .lb-caption { font-size: 13.5px; }
}
html.lb-open { overflow: hidden; }

/* ---------- Gallery preview page ---------- */
.preview-bar { background: var(--navy); color: var(--on-dark); }
.preview-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.preview-bar img { height: 34px; width: auto; }
.preview-bar span { font: 700 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.preview-note { display: grid; gap: 8px; max-width: 760px; }
.preview-note p { color: var(--muted); }
.preview-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
