/* MrEnes Construction — static site stylesheet (no JavaScript required) */

:root {
  --navy: #21409a;
  --navy-800: #1a3380;
  --navy-900: #0b1b45;
  --blue: #1c75bc;
  --blue-700: #155f9a;
  --sky: #eaf3fb;
  --amber: #f5a524;
  --amber-600: #df9112;
  --ink: #0f1a33;
  --text: #3a4557;
  --muted: #5f6b7e;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(11, 27, 69, .45);
  --shadow-sm: 0 6px 18px -10px rgba(11, 27, 69, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(.lightbox:target) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
picture.fill { width: 100%; height: 100%; }
.fill img { width: 100%; height: 100%; object-fit: cover; }
.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: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(223, 145, 18, .9); }
.btn-primary:hover { background: #ffb53d; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--blue);
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--amber); }
.on-dark .eyebrow, .eyebrow.light { color: #9fd0f6; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head.left .eyebrow { justify-content: flex-start; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -22px rgba(11, 27, 69, .6);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; width: 128px; }
.brand img { width: 128px; height: auto; }
.main-nav ul { display: flex; justify-content: center; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--ink); text-decoration: none; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--sky); color: var(--navy); }
.main-nav a[aria-current="page"], .main-nav a.is-active { background: var(--navy); color: #fff; }
.header-call {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--sky); color: var(--ink); text-decoration: none;
  transition: background-color .2s;
}
.header-call:hover { background: #dcebf8; color: var(--ink); }
.header-call .call-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
}
.header-call .call-text { display: grid; line-height: 1.2; }
.header-call small { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.header-call strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); white-space: nowrap; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-block: clamp(80px, 12vw, 140px);
  color: #fff;
  background: var(--navy-900);
}
.hero-bg, .page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 27, 69, .95) 0%, rgba(21, 44, 110, .86) 45%, rgba(33, 64, 154, .45) 100%),
    linear-gradient(0deg, rgba(11, 27, 69, .55), rgba(11, 27, 69, 0) 40%);
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: #9fd0f6; font-size: .95rem; }
.hero h1 {
  color: #fff; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.2vw, 5.6rem); line-height: .98; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero h1 span { display: block; color: #9fd0f6; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .9); max-width: 640px; margin-bottom: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 42px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .98rem; color: rgba(255, 255, 255, .85);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .icon { color: var(--amber); }
.hero-meta a { color: #fff; text-decoration: none; font-weight: 700; }
.hero-meta a:hover { text-decoration: underline; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px);
  color: #fff; background: var(--navy-900);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .lead { color: rgba(255, 255, 255, .88); margin: 0; max-width: 720px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; font-size: .92rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: #9fd0f6; }

/* ---------- Expertise + stats ---------- */
.expertise { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.panel-navy {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-900) 100%); color: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.panel-navy::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 44px solid rgba(255, 255, 255, .05);
}
.panel-navy h2 { color: #fff; }
.panel-navy p { color: rgba(255, 255, 255, .88); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 20px); }
.stat {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(22px, 3vw, 34px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat .stat-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 12px; background: var(--sky); color: var(--blue);
}
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 800; line-height: 1;
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: .98rem; line-height: 1.45; }

/* Stats band (about) */
.stats-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 100px); color: #fff; background: var(--navy-900); }
.stats-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(11, 27, 69, .94), rgba(33, 64, 154, .82)); }
.stats-band .band-bg { position: absolute; inset: 0; z-index: -2; }
.stats-band .band-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-band .stats { grid-template-columns: repeat(3, 1fr); }
.stats-band .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); box-shadow: none; text-align: center; align-items: center; backdrop-filter: blur(2px); }
.stats-band .stat .stat-icon { background: var(--amber); color: var(--ink); width: 60px; height: 60px; border-radius: 50%; }
.stats-band .stat strong { color: #fff; }
.stats-band .stat span { color: rgba(255, 255, 255, .85); }

/* ---------- Cards (services) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.6vw, 30px); }
.service-card h3 { margin-bottom: .6em; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { font-size: .98rem; color: var(--muted); }
.service-card .link-arrow { margin-top: auto; }

/* ---------- Project / tile cards ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  color: #fff; text-decoration: none; background: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.tile.wide { aspect-ratio: 4 / 3; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 27, 69, 0) 30%, rgba(11, 27, 69, .92) 100%);
  transition: background .3s;
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(180deg, rgba(33, 64, 154, .25) 0%, rgba(11, 27, 69, .95) 100%); }
.tile .tile-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; padding: 22px; }
.tile h3 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.tile p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 6px; }
.tile p .icon { width: 1em; height: 1em; color: var(--amber); }
.tile .tile-arrow {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; transition: background .25s, color .25s, transform .25s;
}
.tile:hover .tile-arrow { background: var(--amber); color: var(--ink); transform: rotate(-45deg); }
.tile:hover, .tile:hover h3 { color: #fff; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Feature panels (sustainability / best practices) ---------- */
.feature-panels { display: grid; grid-template-columns: 1fr 1fr; }
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 90px);
  color: rgba(255, 255, 255, .9);
}
.feature .feature-bg { position: absolute; inset: 0; z-index: -2; }
.feature .feature-bg img { width: 100%; height: 100%; object-fit: cover; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 27, 69, .9); }
.feature.alt::before { background: linear-gradient(140deg, rgba(28, 117, 188, .94), rgba(33, 64, 154, .92)); }
.feature h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.feature p { color: rgba(255, 255, 255, .88); }
.feature-inner { max-width: 520px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 26px; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: #fff;
}
.check-list .icon-wrap {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .14); color: #fff;
}

/* ---------- Quote + FAQ ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote-card {
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 70%, var(--navy-900) 100%);
  color: #fff; box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.quote-card h2 { color: #fff; margin-bottom: 6px; }
.quote-card > p { color: rgba(255, 255, 255, .88); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: #fff; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .3); }
.form-note { margin: 16px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.form-note a { color: #fff; font-weight: 700; }
.quote-card .btn { width: 100%; margin-top: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.faq { display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 60px 20px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky); color: var(--navy); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary { color: var(--navy); }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-mosaic figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); background: var(--sky); }
.photo-mosaic figure:nth-child(2) { transform: translateY(28px); }
.photo-mosaic figure:nth-child(4) { transform: translateY(28px); }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.company-facts { display: grid; gap: 12px; margin-top: 26px; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; }
.company-facts .icon { color: var(--blue); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 3vw, 36px); align-items: stretch; }
.office-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.office-card h3 { font-size: 1.35rem; margin-bottom: 22px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-wrap { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--sky); color: var(--blue); }
.contact-list h4 { font-size: 1rem; margin: 0 0 2px; }
.contact-list p { margin: 0; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.map-frame { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--sky); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Galleries ---------- */
.gallery-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.gallery-intro p { margin: 0; }
.gallery-intro .btn-row { justify-content: flex-end; }
.gallery-block + .gallery-block { margin-top: clamp(48px, 7vw, 84px); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gallery-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.gallery-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.gallery-meta span { display: inline-flex; align-items: center; gap: 8px; }
.gallery-meta .icon { color: var(--blue); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid li { scroll-margin-top: calc(var(--header-h) + 24px); }
.gallery-grid a {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--sky);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .3s; }
.gallery-grid a::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 27, 69, .0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat;
  opacity: 0; transition: opacity .25s, background-color .25s;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; background-color: rgba(11, 27, 69, .45); }
.gallery-grid video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: #000; }

/* CSS-only lightbox (:target) */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center;
  padding: 64px 72px;
  background: rgba(5, 12, 32, .94);
}
.lightbox:target { display: grid; }
.lb-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox figure { position: relative; margin: 0; max-width: min(1100px, 100%); pointer-events: none; }
.lightbox img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px);
  margin-inline: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  background: #111;
}
.lightbox figcaption { margin-top: 14px; text-align: center; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lb-btn {
  position: absolute; z-index: 2;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--amber); color: var(--ink); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, var(--blue) 100%);
  color: #fff; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 24px 40px;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; border: 48px solid rgba(255, 255, 255, .06);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-band .btn-row { position: relative; z-index: 1; justify-content: flex-end; }

/* ---------- Related links ---------- */
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-links a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Sitemap page / 404 / thank-you ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.sitemap-grid section { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.sitemap-grid h2 { font-size: 1.25rem; margin-bottom: 14px; }
.sitemap-grid li + li { margin-top: 8px; }
.sitemap-grid a { font-weight: 700; text-decoration: none; }
.sitemap-grid a:hover { text-decoration: underline; }
.message-card { max-width: 760px; margin-inline: auto; text-align: center; }
.message-card .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--sky); -webkit-text-stroke: 2px var(--navy); margin-bottom: 10px; }
.message-card .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); color: rgba(255, 255, 255, .8); }
.footer-skyline { line-height: 0; }
.footer-skyline img { width: 100%; height: auto; max-height: 160px; object-fit: cover; object-position: bottom; }
.footer-main { background: var(--navy-900); padding-block: clamp(40px, 6vw, 64px) clamp(32px, 4vw, 48px); margin-top: -2px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.footer-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: #fff; margin: 0 0 18px; letter-spacing: .01em; }
.footer-title::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--amber); }
.footer-col p { margin: 0 0 12px; }
.footer-col ul li + li { margin-top: 10px; }
.footer-col a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li + li { margin-top: 14px; }
.footer-contact .icon { color: var(--amber); margin-top: 4px; }
.footer-hours { display: flex; gap: 12px; align-items: flex-start; }
.footer-hours .icon { color: var(--amber); margin-top: 4px; }
.footer-bottom { background: #07122f; padding-block: 18px; font-size: .92rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .85); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 12px; font-size: .94rem; }
  .header-call small { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tile .tile-body { padding: 16px; }
  .tile .tile-arrow { display: none; }
  .tile h3 { font-size: 1.05rem; }
  .tile p { white-space: nowrap; }
}
@media (max-width: 900px) {
  .tile-grid, .tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { aspect-ratio: 4 / 3; }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .site-header { position: relative; }
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand call" "nav nav"; gap: 0 16px; min-height: 0; padding-top: 10px; }
  .brand { grid-area: brand; width: 104px; }
  .brand img { width: 104px; }
  .header-call { grid-area: call; justify-self: end; padding: 6px 14px 6px 6px; }
  .header-call .call-icon { width: 38px; height: 38px; }
  .header-call strong { font-size: .95rem; }
  .main-nav { grid-area: nav; margin-inline: calc(var(--gutter) * -1); border-top: 1px solid var(--line); margin-top: 10px; }
  .main-nav ul {
    justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none;
    padding: 8px var(--gutter); scroll-snap-type: x proximity;
  }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav li { flex: none; scroll-snap-align: start; }
  .expertise, .quote-grid, .split, .contact-grid, .gallery-intro { grid-template-columns: 1fr; }
  .gallery-intro .btn-row { justify-content: flex-start; }
  .feature-panels { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .photo-mosaic { max-width: 560px; }
  .lightbox { padding: 64px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 74px; }
  .tile-grid, .tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { aspect-ratio: 3 / 4; }
  .tile .tile-body { padding: 14px; }
  .tile h3 { font-size: .98rem; }
  .tile .tile-arrow { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats-band .stats { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-meta { flex-direction: column; }
  .header-call .call-text small { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    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 -10px 30px -20px rgba(11, 27, 69, .6);
  }
  .mobile-bar .btn { min-height: 50px; padding: 10px 12px; font-size: .92rem; }
  html:has(.lightbox:target) .mobile-bar { display: none; }
}
@media (max-width: 560px) {
  /* four items fit without scrolling; the logo links to Home */
  .main-nav li:first-child { display: none; }
  .main-nav ul { justify-content: space-between; overflow: visible; padding: 8px 12px; }
  .main-nav a { font-size: clamp(13px, 3.7vw, 15px); padding: 8px clamp(8px, 2.6vw, 14px); }
}
@media (max-width: 400px) {
  .header-call strong { font-size: .86rem; }
  .brand, .brand img { width: 92px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .stat strong { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mobile-bar, .footer-skyline, .lightbox, .hero-bg, .page-hero-bg { display: none !important; }
  .hero, .page-hero { color: #000; background: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
