/* ==========================================================================
   A&C Building Solutions — theme styles
   Brand: deep navy and sand, taken from the A|C house logo.
   Type: Newsreader (headlines), Figtree (text), Barlow Condensed (labels,
   spaced like the "BUILDING SOLUTIONS" lettering in the logo).
   ========================================================================== */

:root {
  --navy: #1e3345;
  --navy-2: #162737;
  --navy-3: #2a445a;
  --sand: #c8ad80;
  --sand-2: #b3956a;
  --sand-ink: #7a5f37;
  --paper: #f5f2ec;
  --stone: #ebe5da;
  --line: #d8cfc0;
  --white: #ffffff;
  --ink: #18222c;
  --ink-2: #2f3a45;
  --muted: #5b6570;

  --f-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--sand); color: var(--navy-2); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Type ------------------------------------------------------------------- */

.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.18;
  margin-bottom: 14px;
}
.h4 { font-family: var(--f-body); font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.eyebrow {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-ink);
  margin: 0 0 16px;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--white); }
.eyebrow-light { color: var(--sand); }
.muted { color: var(--muted); }

.prose { color: var(--ink-2); }
.prose p { max-width: 64ch; }
.prose > *:last-child { margin-bottom: 0; }
.prose-lg { font-size: 19px; }
.prose-light { color: rgba(255, 255, 255, .78); }
.prose h2 { font-family: var(--f-display); font-size: 28px; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose-page { max-width: 760px; }

/* Buttons and links ------------------------------------------------------ */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--f-label); font-weight: 500; font-size: 16px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn-sand { background: var(--sand); color: var(--navy-2); }
.btn-sand:hover { background: #d8c197; }
.btn-line { border-color: rgba(200, 173, 128, .55); color: var(--white); }
.btn-line:hover { border-color: var(--sand); background: rgba(200, 173, 128, .1); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label); font-weight: 500; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); padding-bottom: 4px; border-bottom: 1px solid var(--sand);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(5px); }
.link-light { color: var(--white); }

.icon { width: 20px; height: 20px; flex: none; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  transition: background-color .35s, box-shadow .35s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { background: rgba(22, 39, 55, .96); box-shadow: 0 1px 0 rgba(200, 173, 128, .18); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(22, 39, 55, .88); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .35s; }
.is-scrolled .header-inner { height: 70px; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand .logo-mark { width: 34px; height: 41px; color: var(--sand); }
.brand-text {
  display: flex; flex-direction: column;
  font-family: var(--f-label); font-weight: 400; font-size: 12.5px; line-height: 1.35;
  letter-spacing: .34em; text-transform: uppercase;
}
.brand-custom img { max-height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--f-label); font-weight: 500; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, .88);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after, .nav-list .current_page_item > a::after { transform: scaleX(1); }
.nav-contact { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: none; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--f-label); font-size: 16px; letter-spacing: .08em; color: rgba(255, 255, 255, .88);
}
.header-phone .icon { color: var(--sand); width: 18px; height: 18px; }
.nav-toggle { display: none; }

@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0; border: 1px solid rgba(200, 173, 128, .45);
    background: transparent; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)) var(--gut) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--navy-2); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  /* A blurred header would trap the fixed menu inside its own box */
  .nav-open .site-header, .nav-open .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-2); }
  .main-nav { height: 100vh; height: 100dvh; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list a {
    font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 7vw, 42px);
    letter-spacing: 0; text-transform: none; padding: 4px 0;
  }
  .nav-list a::after { display: none; }
  .nav-contact { display: grid; gap: 14px; border-top: 1px solid rgba(200, 173, 128, .25); padding-top: 24px; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: rgba(255, 255, 255, .85); }
  .nav-contact .icon { color: var(--sand); }
  .header-actions { margin-left: auto; }
  .header-actions .btn { position: relative; z-index: 2; }
}
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  .brand-text { font-size: 11px; }
}

/* Load animations --------------------------------------------------------- */

@keyframes acb-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes acb-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes acb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes acb-settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes acb-panel { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

.anim-fade { animation: acb-fade .9s var(--ease) var(--d, 0s) both; }
.anim-rise { animation: acb-fade 1s var(--ease) var(--d, 0s) both; }

/* Scroll reveal (only once JS has confirmed it can reveal) */
.reveal-ready [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.reveal-ready .project-grid > [data-reveal]:nth-child(2n),
.reveal-ready .sector-grid > [data-reveal]:nth-child(2),
.reveal-ready .facts-grid > [data-reveal]:nth-child(2),
.reveal-ready .service-cols > [data-reveal]:nth-child(2),
.reveal-ready .why-list > [data-reveal]:nth-child(2),
.reveal-ready .review-grid > [data-reveal]:nth-child(2) { transition-delay: .12s; }
.reveal-ready .facts-grid > [data-reveal]:nth-child(3),
.reveal-ready .service-cols > [data-reveal]:nth-child(3),
.reveal-ready .why-list > [data-reveal]:nth-child(3),
.reveal-ready .review-grid > [data-reveal]:nth-child(3) { transition-delay: .24s; }
.reveal-ready .facts-grid > [data-reveal]:nth-child(4),
.reveal-ready .service-cols > [data-reveal]:nth-child(4) { transition-delay: .36s; }

/* Placeholders (until real photos are added) ------------------------------ */

.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 160px;
  background-color: var(--navy-3);
  background-image:
    linear-gradient(rgba(200, 173, 128, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 173, 128, .09) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--sand);
}
.ph-mark { width: 64px; height: 77px; opacity: .55; }
.ph-label {
  position: absolute; left: 18px; bottom: 14px; right: 18px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200, 173, 128, .85);
}

/* Home hero ---------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(200, 173, 128, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 173, 128, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 7vw, 104px);
}
.hero-house {
  position: absolute; left: -4%; bottom: -12%; height: 118%; width: auto;
  fill: none; stroke: var(--sand); stroke-width: .7; opacity: .18; pointer-events: none;
}
.hero-house path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: acb-draw 2.8s var(--ease) .15s both; }
.hero-house .hero-house-divider { animation-delay: 1.4s; animation-duration: 1.4s; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(42px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -.015em;
  margin: 0 0 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: acb-rise 1.1s var(--ease) var(--d, 0s) both; }
.hero-title .line:last-child > span { color: var(--sand); }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 32px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.hero-contact a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-label); font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero-contact a span { letter-spacing: .06em; color: var(--white); }
.hero-contact .icon { color: var(--sand); }
.hero-contact a:hover { color: var(--white); }

.hero-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-panel {
  position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden;
  color: var(--white); text-decoration: none;
  animation: acb-panel 1.3s var(--ease) .35s both;
}
.hero-panel-commercial { margin-top: 56px; margin-bottom: -56px; animation-delay: .55s; }
.hero-panel-media { position: absolute; inset: 0; display: block; }
.hero-panel-media > img, .hero-panel-media > .ph {
  width: 100%; height: 100%; object-fit: cover;
  animation: acb-settle 2.4s var(--ease) .35s both; transition: transform 1.2s var(--ease);
}
.hero-panel:hover .hero-panel-media > img, .hero-panel:hover .hero-panel-media > .ph { transform: scale(1.05); }
.hero-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 39, 55, 0) 40%, rgba(22, 39, 55, .88) 100%);
}
.hero-panel .ph-label { display: none; }
.hero-panel-text { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: grid; gap: 4px; }
.hero-panel-kicker { font-family: var(--f-label); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); }
.hero-panel-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.hero-panel-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.hero-panel-more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hero-panel:hover .hero-panel-more .icon { transform: translateX(5px); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel-commercial { margin: 0; }
  .hero-panel { aspect-ratio: 3 / 3.6; }
}
@media (max-width: 480px) {
  .hero-panels { gap: 10px; }
  .hero-panel-text { left: 14px; right: 14px; bottom: 14px; }
  .hero-panel-more { display: none; }
}

/* Facts band ---------------------------------------------------------------- */

.facts { background: var(--stone); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: grid; gap: 6px; align-content: start; padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums lining-nums;
}
.fact-words { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; padding-top: .2em; }
.fact-label { font-family: var(--f-label); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Sections ------------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section-stone { background: var(--stone); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { max-width: 20ch; margin-bottom: 0; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .h2 { max-width: 16ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-grid .h2 { max-width: 16ch; }
.intro .prose { font-size: 19px; }
.intro .link-arrow { margin-top: 12px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.tick-list { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.tick-list li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.tick-list .icon { width: 18px; height: 18px; color: var(--sand-2); transform: translateY(3px); }
.tick-list-cols { display: block; columns: 2; column-gap: 40px; }
.tick-list-cols li { break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 600px) { .tick-list-cols { columns: 1; } }

/* Residential / Commercial --------------------------------------------------- */

.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.sector-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.sector-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.sector-media img, .sector-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector-card:hover .sector-media img, .sector-card:hover .sector-media .ph { transform: scale(1.04); }
.sector-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 40px); }
.sector-body .h3 { font-size: clamp(24px, 2.4vw, 32px); }
.sector-body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .sector-grid { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border: 1px solid var(--line); }
.feature-media { display: block; min-height: 100%; overflow: hidden; }
.feature-media img, .feature-media .ph { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: clamp(28px, 4vw, 56px); }
.feature-summary { font-size: 18px; color: var(--ink-2); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-media img, .feature-media .ph { aspect-ratio: 16 / 10; min-height: 0; } }

.crosslink { padding-bottom: var(--section); }
.crosslink-link {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px;
  padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); text-decoration: none;
}
.crosslink-link .eyebrow { grid-column: 1 / -1; margin: 0; }
.crosslink-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.1; }
.crosslink-link .icon { width: 36px; height: 36px; color: var(--sand-2); transition: transform .35s var(--ease); }
.crosslink-link:hover .icon { transform: translateX(8px); }

/* Projects ------------------------------------------------------------------ */

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }
.project-card-link { display: block; text-decoration: none; }
.project-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-3); }
.project-card-media img, .project-card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card-link:hover .project-card-media img, .project-card-link:hover .project-card-media .ph { transform: scale(1.04); }
.project-card-body { padding-top: 22px; }
.project-card-body .eyebrow { margin-bottom: 10px; }
.project-card-body .dot { margin: 0 4px; }
.project-card-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; margin-bottom: 8px; }
.project-card-scope { color: var(--muted); margin-bottom: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter {
  padding: 10px 18px; border: 1px solid var(--line); text-decoration: none;
  font-family: var(--f-label); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Services -------------------------------------------------------------------- */

.service-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.service-col { border-top: 1px solid rgba(200, 173, 128, .45); padding-top: 24px; }
.service-col-title {
  font-family: var(--f-label); font-weight: 500; font-size: 15px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px;
}
.service-col ul { list-style: none; }
.service-col li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: 16px; }
.section-navy .h2 { color: var(--white); }
@media (max-width: 1080px) { .service-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-cols { grid-template-columns: 1fr; } }

.service-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.service-group { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.service-group-head .link-arrow { margin-top: 6px; }
.service-group .tick-list { margin-bottom: 0; }
.service-group-residential, .service-group-commercial { border-top: 3px solid var(--sand); }
@media (max-width: 860px) { .service-groups { grid-template-columns: 1fr; } }

/* Why us --------------------------------------------------------------------- */

.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.why-item { border-top: 1px solid var(--line); padding-top: 22px; }
.why-item p { color: var(--ink-2); margin: 0; }
.why-num { font-family: var(--f-display); font-weight: 500; font-size: 56px; line-height: 1; color: var(--sand-ink); margin-bottom: 12px !important; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } }

/* Areas route ------------------------------------------------------------------ */

.areas { background: var(--white); border-top: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.areas-copy p { color: var(--ink-2); max-width: 42ch; margin: 0; }
.route { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 6px; }
.route::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 13px; height: 1px;
  background: var(--sand-2); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.reveal-ready .route:not(.is-in)::before { transform: scaleX(0); }
.route-stop { position: relative; display: grid; gap: 10px; justify-items: start; }
.route-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--sand-2); position: relative; z-index: 1; }
.is-base .route-dot { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 5px rgba(200, 173, 128, .35); }
.route-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; }
.route-note { font-family: var(--f-label); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-ink); margin-top: -6px; }
@media (max-width: 960px) {
  .areas-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .route { grid-template-columns: 1fr; gap: 18px; }
  .route::before { left: 7px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; transform-origin: top; }
  .reveal-ready .route:not(.is-in)::before { transform: scaleY(0); }
  .route-stop { grid-template-columns: 15px auto; align-items: center; column-gap: 16px; row-gap: 0; }
  .route-note { grid-column: 2; margin: 0; }
}

/* Reviews --------------------------------------------------------------------------- */

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.review-card { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.review-card blockquote { margin: 0; font-family: var(--f-display); font-size: 20px; line-height: 1.45; color: var(--ink); }
.review-card blockquote p:last-child { margin: 0; }
.review-card figcaption { margin-top: auto; display: grid; gap: 2px; }
.review-card figcaption span { color: var(--muted); font-size: 15px; }
.stars { display: flex; gap: 3px; color: var(--sand-2); margin: 0; }
.stars .icon { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } }
.admin-note { border: 1px dashed var(--sand-2); padding: 18px 22px; color: var(--ink-2); background: var(--white); margin: 0; }

/* Page hero -------------------------------------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(200, 173, 128, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 173, 128, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(56px, 7vw, 100px);
}
.page-hero-tall { min-height: 70vh; display: flex; align-items: center; }
.page-hero-lines {
  position: absolute; right: 4%; top: 14%; height: 120%; width: auto;
  fill: none; stroke: var(--sand); stroke-width: .7; opacity: .18; pointer-events: none;
}
.page-hero-lines path { stroke-dasharray: 1; animation: acb-draw 2.6s var(--ease) .1s both; }
.page-hero-inner { position: relative; }
.page-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.015em;
  max-width: 17ch; margin-bottom: 24px;
}
.page-lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .78); max-width: 40em; }
.page-intro { max-width: 64ch; font-size: 18px; }
.page-hero .btn-row { margin-top: 12px; }

/* About ------------------------------------------------------------------------------ */

.about-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.timeline { position: sticky; top: 110px; }
.timeline ol { list-style: none; border-left: 1px solid var(--sand-2); padding-left: 28px; display: grid; gap: 28px; }
.timeline li { position: relative; display: grid; gap: 4px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--sand-2); }
.timeline-year { font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--navy); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .timeline { position: static; } }

.credential-cards { display: grid; gap: 20px; }
.credential-card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
.credential-card .tick-list { margin: 0; }

/* Contact ------------------------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease);
}
a.contact-card:hover { border-color: var(--sand-2); transform: translateX(4px); }
.contact-card .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--sand-ink); }
.contact-card-label { font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-card-value { font-size: 18px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact-areas { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 18px; }
.qf-field { display: grid; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); min-width: 0; }
.qf-full { grid-column: 1 / -1; }
.qf-field .req { color: var(--sand-ink); }
.qf-hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.wpcf7-form-control-wrap { display: block; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"],
.form-card input[type="date"], .form-card select, .form-card textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--f-body);
  transition: border-color .2s, background-color .2s;
}
.form-card textarea { resize: vertical; min-height: 140px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(200, 173, 128, .35); }
.form-card input[type="file"] { width: 100%; font-weight: 400; font-size: 14.5px; padding: 10px; border: 1px dashed var(--line); background: var(--paper); }
.form-card input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; background: var(--navy); color: var(--white);
  font-family: var(--f-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.qf-note { font-size: 14px; color: var(--muted); }
.qf-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.qf-submit .btn { min-width: 220px; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-weight: 600; font-size: 13.5px; color: var(--navy-2); }
.wpcf7-not-valid { border-color: var(--navy-2) !important; border-width: 2px !important; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--navy); background: var(--stone); color: var(--ink); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sand-2); }
.form-fallback { padding: 18px; background: var(--stone); }
@media (max-width: 600px) { .qf-grid { grid-template-columns: 1fr; } .qf-submit .btn { width: 100%; } }

/* Single project ------------------------------------------------------------------------ */

.project-hero { padding-bottom: clamp(110px, 12vw, 180px); }
.project-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.project-hero .eyebrow span { margin: 0 8px; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0; border-top: 1px solid rgba(200, 173, 128, .35); padding-top: 24px; }
.facts-list dt { font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); margin-bottom: 4px; }
.facts-list dd { margin: 0; color: rgba(255, 255, 255, .9); line-height: 1.45; }
@media (max-width: 900px) { .project-hero-grid { grid-template-columns: 1fr; } }

.project-cover { margin-top: calc(-1 * clamp(80px, 9vw, 140px)); position: relative; }
.project-cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-cover .ph { min-height: 0; }

.project-body { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.highlights { position: sticky; top: 110px; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
.highlights .tick-list { margin: 0; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } .highlights { position: static; } }

.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-3); --pos: 50%; user-select: none; }
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); pointer-events: none;
}
.ba-handle .icon { position: absolute; top: 50%; width: 18px; height: 18px; color: var(--navy); margin-top: -9px; }
.ba-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--white); box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.ba-handle .icon-arrow-left { left: -21px; z-index: 1; }
.ba-handle .icon-arrow { left: 4px; z-index: 1; }
.ba-tag {
  position: absolute; top: 16px; padding: 6px 12px; background: rgba(22, 39, 55, .78); color: var(--white);
  font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; pointer-events: none;
}
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--sand); outline-offset: 3px; }

.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-family: var(--f-label); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-count { font-size: 12px; opacity: .7; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); }
.lightbox::backdrop { background: rgba(12, 20, 28, .94); }
.lightbox-figure { height: 100%; margin: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 56px 72px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-label); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.lb-btn {
  position: fixed; width: 52px; height: 52px; border: 1px solid rgba(200, 173, 128, .5); background: rgba(22, 39, 55, .6);
  color: var(--white); font-size: 30px; line-height: 1; cursor: pointer;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 600px) { .lightbox-figure { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; } }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-item video, .video-item iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--navy-2); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

.project-nav { display: flex; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.project-nav-link { display: grid; gap: 6px; text-decoration: none; }
.project-nav-link.is-next { margin-left: auto; text-align: right; justify-items: end; }
.project-nav-link .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.project-nav-link .eyebrow .icon { width: 16px; height: 16px; }
.project-nav-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); }
.project-nav-link:hover .project-nav-title { color: var(--sand-ink); }

/* CTA band and footer --------------------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: clamp(72px, 9vw, 120px); }
.cta-mark { position: absolute; right: -2%; top: 50%; height: 150%; width: auto; transform: translateY(-50%); color: var(--sand); opacity: .07; pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-copy .h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; margin-bottom: 12px; }
.cta-copy p:last-child { color: rgba(255, 255, 255, .75); margin: 0; }

.site-footer { background: var(--navy-2); color: rgba(255, 255, 255, .7); font-size: 15.5px; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-brand p { max-width: 30ch; margin: 20px 0 0; }
.footer-h { font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--sand); }
.footer-areas { line-height: 1.9; }
.social-list { list-style: none; display: flex; gap: 10px; margin-top: 22px; }
.social-list a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(200, 173, 128, .35); }
.social-list a:hover { border-color: var(--sand); color: var(--white); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .55);
}
.footer-legal p { margin: 0; max-width: 90ch; }
.footer-legal a { color: rgba(255, 255, 255, .75); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white); box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .25s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.nav-open .wa-float { display: none; }

/* Gutenberg alignment basics */
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { height: auto; }

/* Reduced motion -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
