/* =========================================================
   MAKE A HOME LLC — site styles
   ---------------------------------------------------------
   HOW THIS FILE IS ORGANIZED
   1. Design tokens (brand colors, fonts, spacing) — change
      a color HERE and it updates everywhere on the site.
   2. Base / reset
   3. Layout helpers
   4. Buttons & small pieces
   5. Navigation (top bar + mobile menu)
   6. Hero (big banner at the top of the home page)
   7. Sections (services, stats, gallery, process, etc.)
   8. Estimate form
   9. Footer
   10. Animations & accessibility
   ========================================================= */

/* ---------- FONTS (hosted on our own site, in assets/fonts/) ----------
   Geist and Geist Mono, free under the SIL Open Font License (assets/fonts/OFL.txt).
   Each file holds all the weights the site uses (the same ranges Google Fonts served). "latin" covers English; "latin-ext" covers accented
   letters (e.g. names), and only downloads when a page actually uses one. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand colors (sampled from the MAKE logo) */
  --cyan: #00C9E4;          /* logo cyan — buttons, accents on dark */
  --cyan-hover: #3FDCF0;
  --cyan-deep: #00798A;     /* readable cyan for small text on white */
  --on-cyan: #00161A;       /* text that sits on a cyan button */

  --ink: #0B0D0E;           /* near-black backgrounds */
  --ink-2: #121618;
  --ink-3: #1B2023;
  --line-dark: rgba(255, 255, 255, 0.13);

  --paper: #FFFFFF;
  --paper-2: #F2F4F5;
  --line: #DCE1E3;

  --text: #0B0D0E;
  --text-2: #4A5358;        /* secondary text on white (7:1 contrast) */
  --text-inv: #F4F7F8;      /* text on dark */
  --text-inv-2: #A9B3B7;    /* secondary text on dark (8:1 contrast) */

  --danger: #C62828;
  --success: #1E8E5A;

  /* Type */
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Shape & spacing */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.18);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
ul, ol.process, ol.check-list { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--on-cyan); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cyan); color: var(--on-cyan); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--gray { background: var(--paper-2); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* Mono uppercase "eyebrow" label with a cyan square — SiteAssist style */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-deep);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cyan); flex: none; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--cyan); }

.display {
  font-family: var(--font-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: 1;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
.section--dark .lead { color: var(--text-inv-2); }
.accent { color: var(--cyan); }
.section:not(.section--dark) .accent-text { color: var(--cyan-deep); }

/* BW-style split heading: big title left, paragraph right */
.split-head {
  display: grid; gap: 24px 64px; align-items: end;
  grid-template-columns: 1fr; margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) { .split-head { grid-template-columns: 1.1fr 1fr; } }

/* ---------- 4. BUTTONS & SMALL PIECES ---------- */
.btn {
  --btn-bg: var(--cyan); --btn-fg: var(--on-cyan); --btn-bd: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-mono); font-size: .88rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--cyan-hover); --btn-bd: var(--cyan-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--text-inv); --btn-bd: rgba(255,255,255,.18); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: rgba(255,255,255,.3); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--text-inv); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--text); }
.btn--outline:hover { --btn-bg: var(--text); --btn-fg: var(--paper); --btn-bd: var(--text); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; font-weight: 500; padding-block: 6px;
  border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2);
  white-space: nowrap;
}
.badge--dark { border-color: var(--line-dark); color: var(--text-inv-2); }
.badge--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.badge svg { width: 14px; height: 14px; }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 4px;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300161A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 5. NAVIGATION ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  padding-inline: var(--gutter);
  transition: transform .35s var(--ease);
}
.nav__bar {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 12px 0 20px;
  /* 84% solid (not less): even over a white part of the page, the grey logo text and the cyan
     "you are here" link stay readable (contrast 5:1 or more, an accessibility rule) */
  background: rgba(22, 26, 28, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  color: var(--text-inv);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.45);
}
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo-text {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-inv-2); line-height: 1.25; border-left: 1px solid var(--line-dark); padding-left: 12px;
}
.nav__links { display: none; gap: 4px; }
.nav__links a {
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 10px; border-radius: var(--radius-sm); color: var(--text-inv);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: rgba(255,255,255,.08); }
.nav__links a[aria-current="page"] { color: var(--cyan); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .btn { min-height: 44px; padding: 10px 16px; font-size: .8rem; white-space: nowrap; }
.nav__phone { display: none; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); cursor: pointer; color: var(--text-inv);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav--hidden { transform: translateY(-120%); }

/* The phone button in the top bar shows from 760px wide (narrower than that, it would push the ☰ button off the bar) */
@media (min-width: 760px) { .nav__phone { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__links a { white-space: nowrap; }
  .nav__toggle { display: none; }
}
/* Seven menu links + phone + the "Start Your Project" button get tight on laptops:
   below 1300px wide, hide the phone number and tighten the space around the links;
   below 1420px, also drop the small "Make a Home LLC" text next to the logo */
@media (min-width: 1080px) and (max-width: 1299px) {
  .nav__phone { display: none; }
  .nav__links a { padding: 10px 8px; }
}
@media (min-width: 1080px) and (max-width: 1419px) { .nav__logo-text { display: none; } }
/* Narrower than 560px there's no room for the small "Make a Home LLC" text next to the logo */
@media (max-width: 559px) { .nav__logo-text { display: none; } }
@media (max-width: 480px) {
  .nav { top: 10px; }
  .nav__bar { height: 60px; padding: 0 8px 0 14px; gap: 10px; }
  .nav__logo img { height: 38px; }
  .nav__actions .btn--cta { padding: 10px 12px; font-size: .75rem; letter-spacing: .04em; }
}
/* Very narrow phones (under 360px wide): a slightly smaller logo, spacing and button text, so "Start Your Project" and the ☰ button still fit */
@media (max-width: 359px) {
  .nav__bar { padding: 0 6px 0 10px; gap: 8px; }
  .nav__logo img { height: 32px; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--cta { padding: 10px; font-size: .7rem; letter-spacing: .02em; }
}

/* Mobile menu (full-screen panel) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--text-inv);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu__top img { height: 42px; width: auto; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: clamp(1.3rem, 6vw, 2rem); text-transform: uppercase; letter-spacing: -.02em;
  text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu nav a[aria-current="page"] { color: var(--cyan); }
.mobile-menu nav a svg { width: 24px; height: 24px; flex: none; }
.mobile-menu__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.mobile-menu__foot .btn { width: 100%; }
/* Shorter screens (most phones once the browser bars show): slightly smaller rows so all 8 links and both buttons fit */
@media (max-height: 860px) { .mobile-menu { padding-top: 16px; padding-bottom: 20px; } .mobile-menu__top { margin-bottom: 12px; } .mobile-menu nav a { padding: 8px 0; font-size: clamp(1.2rem, 5.4vw, 1.4rem); } .mobile-menu__foot { padding-top: 16px; } }
/* Very short phone screens: tighter rows and slimmer buttons so both buttons still fit */
@media (max-height: 660px) { .mobile-menu { padding-top: 14px; padding-bottom: 16px; } .mobile-menu__top { margin-bottom: 10px; } .mobile-menu nav a { padding: 6px 0; font-size: 1.15rem; } .mobile-menu__foot { padding-top: 12px; } .mobile-menu__foot .btn { min-height: 48px; padding-block: 10px; } }
body.menu-open { overflow: hidden; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--text-inv); background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Slideshow: every photo and the video are stacked; the active one fades in */
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
img.hero__slide { transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; }
img.hero__slide.is-active { transform: scale(1); }
/* Darkening layer so text always reads */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,13,14,.55) 0%, rgba(11,13,14,.25) 35%, rgba(11,13,14,.72) 72%, rgba(11,13,14,.94) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(11,13,14,.55) 100%);
}
.hero__content { padding-top: 140px; padding-bottom: 36px; }
.hero__title {
  font-family: var(--font-mono); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.5rem, 7.4vw, 6.4rem); letter-spacing: -0.045em; line-height: .98;
  max-width: 14ch;
}
.hero__title .sq, .page-hero h1 .sq {
  display: inline-block; width: .16em; height: .16em; background: var(--cyan);
  vertical-align: .34em; margin-right: .22em;
}
.hero__rule { height: 1px; background: rgba(255,255,255,.55); margin: 28px 0 24px; transform-origin: left; }
.hero__meta { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.hero__meta p { color: rgba(244,247,248,.86); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 52ch; }
.hero__coords {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; color: rgba(244,247,248,.75);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.hero__coords { flex-direction: column; gap: 8px; }
.hero__coords p { display: flex; gap: 18px; flex-wrap: wrap; font-size: inherit; color: inherit; max-width: none; }
@media (min-width: 900px) {
  .hero__meta { grid-template-columns: 1.3fr auto; }
  .hero__coords { align-items: flex-end; text-align: right; }
  .hero__coords p { justify-content: flex-end; }
}
.hero__trust {
  border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px;
}
.hero__trust li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(244,247,248,.9);
}
.hero__trust svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
@media (min-width: 900px) { .hero__trust { grid-template-columns: repeat(4, 1fr); } }

.hero__pause {
  position: absolute; right: var(--gutter); top: 104px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(11,13,14,.5); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer;
}
.hero__pause svg { width: 18px; height: 18px; }

/* Shorter hero for inner pages */
.page-hero {
  position: relative; color: var(--text-inv); background: var(--ink); isolation: isolate; overflow: hidden;
  padding-top: clamp(150px, 18vw, 210px); padding-bottom: clamp(48px, 7vw, 88px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,13,14,.7), rgba(11,13,14,.82) 60%, rgba(11,13,14,.96));
}
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); max-width: 16ch; }
.page-hero .hero__rule { margin-block: 26px 22px; }
.page-hero p { color: rgba(244,247,248,.86); max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* Long reading pages (the privacy policy) */
.legal { max-width: 74ch; }
.legal h2 { font-family: var(--font-mono); text-transform: uppercase; font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: disc; padding-left: 1.25em; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--cyan-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 7. SECTIONS ---------- */

/* Residential / Commercial split panels */
.sectors { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sectors { grid-template-columns: 1fr 1fr; } }
.sector {
  position: relative; border-radius: var(--radius); overflow: hidden; color: var(--text-inv);
  min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  background: var(--ink);
}
.sector > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,13,14,0) 12%, rgba(11,13,14,.62) 42%, rgba(11,13,14,.94) 72%); }
.sector:hover > img { transform: scale(1.04); }
.sector__body { padding: clamp(24px, 3vw, 40px); }
.sector__tag { margin-bottom: 14px; }
.sector h3 { font-family: var(--font-mono); text-transform: uppercase; font-weight: 500; letter-spacing: -.03em; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.sector p { color: rgba(244,247,248,.85); max-width: 46ch; margin-bottom: 20px; }
.sector ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sector ul li {
  font-size: .85rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Service card rail (BW style) */
.rail-wrap { position: relative; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1.5px solid var(--text); color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.rail-btn:hover { background: var(--text); color: var(--paper); }
.rail-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--text); }
.rail-btn svg { width: 20px; height: 20px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82%);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-bottom: 8px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(300px, 46%); } }
@media (min-width: 1080px) { .rail { grid-auto-columns: calc((100% - 40px) / 3); } }
.svc-card { scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc-card__img { aspect-ratio: 4 / 3.2; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; position: relative; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.05); }
.svc-card__num { position: absolute; top: 14px; left: 14px; }
.svc-card h3 { font-size: 1.35rem; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.svc-card h3 svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); color: var(--cyan-deep); }
.svc-card:hover h3 svg { transform: translateX(4px); }
.svc-card p { color: var(--text-2); font-size: .98rem; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 24px 8px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 40px 28px 8px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat__num { font-family: var(--font-mono); font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.05em; line-height: 1; color: var(--text-inv); }
.stat__num .accent { color: var(--cyan); }
.stat__label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); margin-top: 12px; }

/* Why-us feature grid */
.features { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--ink); padding: 32px 28px; }
.feature svg { width: 28px; height: 28px; color: var(--cyan); margin-bottom: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-inv); }
.feature p { color: var(--text-inv-2); font-size: .95rem; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; border: 1.5px solid var(--line); color: var(--text);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--text-inv); }
.filter .count { color: var(--cyan-deep); margin-left: 6px; }
.filter[aria-pressed="true"] .count { color: var(--cyan); }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery__item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2);
  aspect-ratio: 3 / 4; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(11,13,14,.85)); color: #fff;
  font-size: .85rem; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__cap b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }
/* Phones: just the short label on the photo (the full caption shows when the photo is opened) */
@media (hover: none) and (max-width: 899px) { .gallery__cap { padding: 26px 10px 8px; font-size: 0; } .gallery__cap b { font-size: .75rem; } }
.gallery__item[hidden] { display: none; }

/* Lightbox (full-screen photo viewer) */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,8,9,.94);
  display: grid; grid-template-rows: auto 1fr auto; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: var(--text-inv-2); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; }
/* The photo always fits inside the space between the top and bottom bars (never cropped or "zoomed"),
   and small photos are never blown up past their real size (that makes them blurry) */
.lightbox__stage { position: relative; min-height: 0; margin: 12px 0; }
.lightbox__stage img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.lightbox__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text-inv); }
.lightbox__cap { font-size: .95rem; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn svg { width: 20px; height: 20px; }

/* Process steps */
.process { display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 28px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .step { padding: 32px 24px 0 0; } }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--cyan);
}
.step__num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--cyan-deep); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .95rem; }

/* Featured commercial project */
.showcase { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .showcase { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.showcase__media { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.showcase__media img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10.2; }
.showcase__media img:first-child { grid-column: span 2; }
.showcase__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.showcase__facts dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); margin-bottom: 4px; }
.showcase__facts dd { margin: 0; font-weight: 500; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--cyan); margin-right: 8px; box-shadow: 0 0 0 0 rgba(0,201,228,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,201,228,0); } 100% { box-shadow: 0 0 0 0 rgba(0,201,228,0); } }
.fine { font-size: .8rem; color: var(--text-inv-2); margin-top: 10px; }

/* Reviews (placeholders until real reviews come in) */
.reviews { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.review__stars { display: flex; gap: 3px; color: var(--cyan-deep); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-2); }
.review__avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.review--placeholder { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.018) 14px 28px); }
.review--placeholder blockquote { color: var(--text-2); }
.placeholder-flag { align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: #FFF4D6; color: #6B4E00; }

/* Service area */
.area { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .area { grid-template-columns: 1fr 1fr; gap: 72px; } }
.area__map { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.area__map svg { width: 100%; height: 100%; }
.zones { display: grid; gap: 16px; margin-top: 28px; }
.zone { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.zone__key { width: 14px; height: 14px; border-radius: 99px; margin-top: 5px; }
.zone h3 { font-size: 1.05rem; margin-bottom: 4px; }
.zone p { color: var(--text-2); font-size: .95rem; }
/* "Areas we serve": the town list, full width under the text and the map (home + About pages).
   Phones: each group's name sits above its towns. 760px and wider: the name on the left, the towns on the right. */
.areas { grid-column: 1 / -1; }
.areas__title { font-size: 1.25rem; margin-bottom: 18px; }
.areas__group { display: grid; gap: 10px 32px; grid-template-columns: 1fr; padding-block: 16px; border-top: 1px solid var(--line); }
.areas__group:last-of-type { border-bottom: 1px solid var(--line); }
.areas__group h4 { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-deep); }
.areas__group ul { display: flex; flex-wrap: wrap; gap: 6px; }
.areas__group li { font-size: .85rem; line-height: 1.3; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
@media (min-width: 760px) {
  .areas__group { grid-template-columns: 230px 1fr; align-items: baseline; padding-block: 18px; }
  .areas__group ul { gap: 8px; }
  .areas__group li { font-size: .9rem; padding: 6px 12px; }
}
.areas__more { margin-top: 16px; color: var(--text-2); }

/* Call-to-action band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--text-inv); border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: grid; gap: 32px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; z-index: -1; background: radial-gradient(circle, rgba(0,201,228,.28), transparent 65%); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-band p { color: var(--text-inv-2); margin-top: 16px; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-start; }

/* Services page: detailed rows */
.svc-row { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1fr 1fr; gap: 64px; } .svc-row:nth-child(even) .svc-row__media { order: 2; } }
.svc-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; letter-spacing: -.02em; }
.svc-row p { color: var(--text-2); margin-bottom: 20px; }
.svc-row .check-list { margin-bottom: 24px; columns: 1; }
@media (min-width: 600px) { .svc-row .check-list { columns: 2; column-gap: 24px; } .svc-row .check-list li { break-inside: avoid; } }
.section--dark .svc-row { border-top-color: var(--line-dark); }
.section--dark .svc-row p { color: var(--text-inv-2); }
.media-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 16px, #E8ECEE 16px 32px);
  color: var(--text-2); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.section--dark .media-placeholder { background: repeating-linear-gradient(135deg, var(--ink-2) 0 16px, var(--ink-3) 16px 32px); color: var(--text-inv-2); }

/* Sub-nav chips for jumping around a page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: var(--text-inv); transition: background-color .2s var(--ease); min-height: 44px; display: inline-flex; align-items: center; }
.jump a:hover { background: rgba(255,255,255,.1); }

/* About: the MA + KE name story */
.namestory { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .namestory { grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 24px; } }
.namecard { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; background: var(--ink-2); }
.namecard__big { font-family: var(--font-mono); font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; letter-spacing: -.06em; font-weight: 500; }
.namecard__big span { color: var(--text-inv-2); opacity: .35; }
.namecard p { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); margin-top: 12px; }
.namestory__op { font-family: var(--font-mono); font-size: 2.4rem; color: var(--cyan); text-align: center; }
.namecard--result { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.namecard--result p { color: var(--on-cyan); opacity: .8; }
.namecard--result img { height: clamp(70px, 9vw, 110px); width: auto; }

.partners { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .partners { grid-template-columns: 1fr 1fr; } }
.partner { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.partner__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.partner__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 800px) { .partner__photo { aspect-ratio: 1 / 1; } }
.partner__body { padding: 28px; }
.partner__role { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 8px; }
.partner h3 { font-size: 1.8rem; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.partner p { color: var(--text-2); }

.values { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding-top: 24px; border-top: 2px solid var(--ink); }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--text-2); }

/* Veteran-owned badge */
.vet-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); color: var(--text-inv); font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.vet-badge svg { width: 22px; height: 22px; color: var(--cyan); }
.vet-badge--light { border-color: var(--line); color: var(--text); }
.vet-badge--light svg { color: var(--cyan-deep); }

/* Home: "We build. We buy. We sell." teaser cards (shorter than the big sector panels) */
.sector--short { min-height: 420px; }
.sector--soon { background: repeating-linear-gradient(135deg, var(--ink-2) 0 16px, var(--ink-3) 16px 32px); }

/* Light version of the feature grid (We Buy page, About credentials) */
.features--light { background: var(--line); border-color: var(--line); }
.features--light .feature { background: var(--paper); }
.features--light .feature svg { color: var(--cyan-deep); }
.features--light .feature h3 { color: var(--text); }
.features--light .feature p { color: var(--text-2); }

/* Four-across versions of the value columns and the process steps */
@media (min-width: 1000px) { .values--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .process--4 { grid-template-columns: repeat(4, 1fr); } }
/* Yellow "To confirm" tag on draft wording the owners still need to approve */
.value .placeholder-flag { display: inline-block; margin-bottom: 12px; }

/* For Sale page: the facts list on a white background */
.section:not(.section--dark) .showcase__facts { border-top-color: var(--line); }
.section:not(.section--dark) .showcase__facts dt { color: var(--text-2); }
.showcase__media .media-placeholder { aspect-ratio: 16 / 10.2; border-radius: var(--radius-sm); }
.showcase__media .media-placeholder:first-child { grid-column: span 2; }

/* Good to know with 4 items: 2 + 2 on mid-size screens instead of 3 + 1 */
@media (min-width: 800px) and (max-width: 999px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }

/* 3-card version of .features (Work with us page): no empty 4th cell */
@media (min-width: 700px) { .features--3 .feature:last-child { grid-column: span 2; } }
@media (min-width: 1080px) { .features--3 { grid-template-columns: repeat(3, 1fr); } .features--3 .feature:last-child { grid-column: auto; } }

/* For Sale page, top: Before | After (the before photo, then the front design rendering), next to the quick facts.
   Each tile's --ar (its picture's width ÷ height, set in for-sale.html) decides how wide it gets,
   so both pictures are the same height and neither is cropped.
   Phones under 480px wide: Before on top, After under it, each the full width.
   (Only pages that add "showcase--tall" / "showcase__media--pair" get this; the home page showcase is unchanged.) */
@media (min-width: 1000px) { .showcase--tall { grid-template-columns: 1.5fr 1fr; } }
.showcase__media--pair { grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .showcase__media--pair { display: flex; align-items: flex-start; }
  .showcase__media--pair .showcase__tile { flex: var(--ar, 1) 1 0; min-width: 0; }
}
.showcase__tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--paper-2); cursor: zoom-in;
}
.showcase__media--pair .showcase__tile img { height: auto; aspect-ratio: auto; transition: transform .6s var(--ease); }
.showcase__tile:hover img { transform: scale(1.04); }
/* The tags sit in the top-left corner (sky), so they don't cover the stairs and doors */
.showcase__tile .media-tag { top: 8px; left: 8px; right: auto; bottom: auto; max-width: calc(100% - 16px); }
/* Very narrow phones: a slightly tighter tag */
@media (max-width: 359px) { .showcase__tile .media-tag { padding: 3px 6px; letter-spacing: .04em; font-size: .7rem; } }
.showcase__note { margin-top: 16px; }

/* For Sale page: design renderings in two rows (one tap-to-enlarge set around both):
   row 1 = the front view + the side view, row 2 = the house from the street + the porch and entry.
   Each one's --ar (width ÷ height, set in for-sale.html) decides how wide it gets, so a row's pictures line up.
   Phones and small tablets: the front view and the side view each take the full width; the street view and the porch share a row.
   Computers and big tablets (900px and up): each row side by side; the second row is centred and kept to the same
   height as the first (--row1 / --row2 = each row's --ar values added up, set in for-sale.html next to them).
   The files are big (1,500–2,400px), so they are never stretched past their real size. */
.renderings-set { display: grid; gap: 24px; }
.renderings { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; width: 100%; max-width: 680px; margin-inline: auto; }
.rendering { flex: var(--ar, 1) 1 0; min-width: 0; margin: 0; text-align: center; }
.rendering--wide { flex-basis: 100%; }
.rendering__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius-sm); cursor: zoom-in; }
.rendering img { width: 100%; height: auto; border-radius: var(--radius-sm); }
/* The "Design rendering" tag on each picture: top corner (sky or roof), so it doesn't cover the stairs and doors.
   On small pictures (phones) it wraps onto 2 lines instead of covering the whole width. */
.rendering .media-tag { top: 8px; right: 8px; bottom: auto; max-width: 60%; min-width: min-content; }
.rendering figcaption { margin-top: 10px; }
@media (min-width: 900px) {
  .renderings { flex-wrap: nowrap; max-width: none; }
  .rendering--wide { flex-basis: 0; }
  .renderings--pair { max-width: calc((100% - 24px) * var(--row2) / var(--row1) + 24px); }
}

/* ---------- 8. ESTIMATE FORM ---------- */
.contact-layout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.55fr 1fr; gap: 56px; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.form-step { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.form-step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-size: 1.25rem; font-weight: 600; width: 100%; }
.form-step legend .n { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: var(--cyan); flex: none; }
.grid-2 { display: grid; gap: 16px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .opt { color: var(--text-2); font-weight: 400; font-size: .85rem; margin-left: 4px; }
.help { font-size: .85rem; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5358' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9C2C6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,201,228,.28); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-msg { display: none; font-size: .85rem; color: var(--danger); font-weight: 500; }
.field.has-error .error-msg { display: block; }

/* Pill-style radio choices */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); cursor: pointer; font-size: .95rem; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice input:hover + span { border-color: #B9C2C6; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--text-inv); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choices--cards { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .choices--cards { grid-template-columns: repeat(4, 1fr); } }
.choices--cards .choice span { flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; padding: 14px; gap: 10px; }
.choices--cards .choice svg { width: 24px; height: 24px; color: var(--cyan-deep); }
.choices--cards .choice input:checked + span svg { color: var(--cyan); }

/* Photo uploader */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 8px;
  padding: 32px 20px; border: 2px dashed #B9C2C6; border-radius: var(--radius); background: var(--paper-2);
  cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--cyan-deep); background: #E9F9FB; }
.dropzone svg { width: 36px; height: 36px; color: var(--cyan-deep); }
.dropzone strong { font-size: 1.05rem; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Keyboard users: show where they are (the real file button inside is invisible) */
.dropzone:has(input:focus-visible) { border-color: var(--cyan-deep); outline: 3px solid var(--cyan); outline-offset: 3px; }
/* Up to 20 small previews: about 4 across on phones, 6 on bigger screens */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 14px; }
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; } }
.thumbs:empty { display: none; }
.thumbs + .help { margin-top: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(11,13,14,.75); color: #fff; display: grid; place-items: center;
}
.thumb button svg { width: 16px; height: 16px; }
.thumb.is-busy::after { content: "Optimizing…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); font-size: .75rem; font-family: var(--font-mono); }
@media (max-width: 639px) { .thumb.is-busy::after { font-size: .6rem; } } /* so the word fits the smaller squares on phones */
/* A photo this browser can't preview (e.g. HEIC on some computers) shows its file name instead */
.thumb__name { position: absolute; inset: 0; display: grid; place-items: end center; padding: 6px; font-family: var(--font-mono); font-size: .66rem; line-height: 1.3; text-align: center; word-break: break-all; color: var(--text-2); }
/* Heads-up under the photos, e.g. "we kept the first 20" (same yellow as the preview note) */
.photo-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FFF4D6; color: #6B4E00; font-size: .9rem; }
.photo-note:empty { display: none; }
/* The 20 hidden photo boxes (photo_1 … photo_20) that actually get sent. With JavaScript off,
   or on a very old browser, the first 4 show up as plain file pickers instead. */
/* Video uploader (videos are sent in pieces when the form is sent; see assets/js/video-upload.js) */
.video-box { margin-top: 24px; }
.dropzone--video { padding: 22px 20px; }
.video-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.video-list:empty { display: none; }
.video-box [data-video-status]:not(:empty) { margin-top: 8px; }
.video-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper-2); }
.video-item > svg { width: 22px; height: 22px; color: var(--cyan-deep); }
.video-item__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.video-item__size { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--text-2); }
.video-item button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.video-item button:hover { background: #fff; color: var(--text); }
.video-item button svg { width: 16px; height: 16px; }
.video-item__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: #DCE3E6; overflow: hidden; }
.video-item__bar span { display: block; height: 100%; width: 0; background: var(--cyan-deep); transition: width .2s linear; }
.video-item__bar[hidden] { display: none; }
.photo-fallback { display: grid; gap: 10px; }
.js .photo-fallback { display: none; }
.photo-fallback input:nth-child(n+5) { display: none; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }

.form-submit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.form-submit .btn { min-width: 240px; }
.form-submit .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.spam-check:not(:empty) { margin-bottom: 16px; max-width: 400px; } /* Cloudflare's security check (assets/js/spam-check.js) */
.form-alert { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 500; }
.form-alert.is-error { display: block; background: #FDECEC; color: #8E1B1B; border: 1px solid #F4C4C4; }
.form-success { display: none; text-align: center; padding: 40px 12px; }
.form-success svg { width: 56px; height: 56px; color: var(--success); margin: 0 auto 16px; }
.form-success h2 { font-size: 1.8rem; margin-bottom: 10px; }
.form-success p { color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.form-card.is-sent form { display: none; }
/* We Buy form: fields only agents/wholesalers/investors see */
[data-pro-only][hidden] { display: none; }
/* Work with us form: fields only subcontractors see */
[data-sub-only][hidden] { display: none; }
.form-card.is-sent .form-success { display: block; }
.hp { position: absolute !important; left: -9999px !important; }

.contact-side { display: grid; gap: 16px; position: sticky; top: 110px; }
@media (max-height: 1100px) { .contact-side { position: static; } }
.contact-box { border-radius: var(--radius); padding: 28px; background: var(--ink); color: var(--text-inv); }
.contact-box h2, .contact-box h3 { font-size: 1.2rem; margin-bottom: 18px; }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-dark); text-decoration: none; min-height: 44px; }
.contact-line svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.contact-line small { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); }
.contact-line span { word-break: break-word; }
/* Small "See the full list" link under the towns in the Contact page sidebar */
.contact-line__more { display: block; width: fit-content; margin-top: 2px; padding-block: 4px; font-size: .85rem; color: var(--cyan); }
.contact-box--light { background: var(--paper-2); color: var(--text); }
.contact-box--light p { color: var(--text-2); font-size: .95rem; }

/* ---------- 9. FOOTER ---------- */
.footer { background: var(--ink); color: var(--text-inv); padding-top: clamp(64px, 8vw, 104px); }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand img { width: 190px; height: auto; margin-bottom: 20px; }
.footer__tagline { font-size: 1.15rem; color: var(--text-inv); margin-bottom: 18px; max-width: 26ch; }
.footer__tagline b { color: var(--cyan); font-weight: 700; }
.footer .footer__h { font-family: var(--font-mono); font-size: .78rem; line-height: 1.08; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-2); margin: 0 0 18px; }
.footer ul li { margin-bottom: 4px; }
.footer ul a, .footer address a { text-decoration: none; color: var(--text-inv); display: inline-block; padding-block: 6px; transition: color .2s var(--ease); }
.footer ul a:hover, .footer address a:hover { color: var(--cyan); }
.footer address { font-style: normal; color: var(--text-inv-2); }
.footer address a { word-break: break-word; }
/* "Pause animations": a button (it does something, it doesn't go anywhere) dressed like the links beside it */
.footer__motion { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer__motion:hover { color: var(--text-inv); }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: var(--text-inv-2); }
.footer__big { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: -.05em; line-height: .85; font-size: clamp(3.4rem, 15vw, 13rem); color: var(--ink-3); padding-bottom: 12px; user-select: none; white-space: nowrap; overflow: hidden; }
/* The big "MA+KE" is decoration, so its letters are drawn by CSS (data-t) instead of being page text */
.footer__big span::before { content: attr(data-t); }
.footer__big .footer__plus { color: var(--cyan); opacity: .9; }

/* Floating "call" button on phones */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 999px; background: var(--cyan); color: var(--on-cyan);
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transform: translateY(120px); transition: transform .35s var(--ease);
}
.call-fab.is-visible { transform: none; }
.call-fab svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .call-fab { display: none; } }

/* ---------- 10. ANIMATION & ACCESSIBILITY ---------- */
/* Elements with .reveal fade up as you scroll to them (only if JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .hero .hero__rule { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js .hero.is-ready .hero__rule { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none !important; }
}
/* The same, for visitors who pressed "Pause animations" at the bottom of a page (main.js) */
.mah-still *, .mah-still *::before, .mah-still *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.mah-still .reveal { opacity: 1 !important; transform: none !important; }
.mah-still .hero__slide { transform: none !important; }

/* Small "Design rendering" tag on images that are renderings, not photos of finished work */
.media-tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 8px; border-radius: 4px;
  background: rgba(11,13,14,.72); color: #fff; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.svc-row__media, .sector { position: relative; }
.sector .media-tag { top: 16px; bottom: auto; right: 16px; }

/* File inputs (resume, rent roll): a button that matches the site instead of the browser's grey one */
.input[type="file"]::file-selector-button {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--text); background: transparent; color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 14px; margin-right: 12px; cursor: pointer;
}

/* Phones: keep the floating "Call now" button from covering the last footer line */
@media (max-width: 899px) { .footer { padding-bottom: 84px; } }

/* Small label on a gallery photo (e.g. "Before", "Rendering") */
.gallery__item .media-tag { top: 10px; right: 10px; bottom: auto; }
