/* ==========================================================================
   Emerald Home Construction — 2026
   Confident, clean, trustworthy. White + emerald with brand-red actions
   (the logo and fleet colors), bold grotesk headings.
   ========================================================================== */

:root {
  --emerald-950: #08261e;
  --emerald-900: #0b2f25;
  --emerald-800: #0e3b2e;
  --emerald-700: #145a43;
  --emerald-600: #187052;
  --emerald-500: #1f8a63;
  --emerald-100: #e2eee7;
  --emerald-50:  #f0f6f2;

  /* Brand red — from the logo & fleet. #ed1c24 for the logo/decor;
     the deeper shades keep white button text readable (WCAG AA). */
  --red:     #ed1c24;
  --red-600: #d2141b;
  --red-700: #b0101a;
  --red-50:  #fdeeee;

  --paper: #fbfaf7;
  --stone: #f3efe7;
  --stone-2: #e9e3d7;
  --ink: #12201a;
  --ink-soft: #3f4c46;
  --muted: #6b7570;
  --line: #e2ddd2;
  --brass: #c4953a;
  --white: #fff;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 26, .06), 0 2px 8px rgba(18, 32, 26, .05);
  --shadow: 0 2px 6px rgba(18, 32, 26, .06), 0 18px 40px -12px rgba(18, 32, 26, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, .h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.h3 { font-size: 1.5rem; margin-bottom: 24px; }
:focus-visible { outline: 2.5px solid var(--emerald-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--emerald-700); color: #fff; }
[hidden] { display: none !important; }
@view-transition { navigation: auto; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.icon { flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--red); }
.hero .eyebrow::before, .project-card .eyebrow::before, .page-head--center .eyebrow::before { display: none; }
.hero .eyebrow .icon { color: var(--red); }
.eyebrow--light { color: #9fd3b9; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--emerald-700); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn .icon--arrow { transition: transform .3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(210, 20, 27, .55); }
.btn--primary:hover { background: var(--red-700); }
.btn--outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--emerald-700); color: var(--emerald-700); }
.btn--light { background: #fff; color: var(--emerald-800); }
.btn--light:hover { background: var(--emerald-100); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* --- Top bar & navigation ------------------------------------------------ */
.topbar { background: var(--emerald-900); color: #cfe5d9; font-size: .84rem; border-bottom: 3px solid var(--red); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.25); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--emerald-800); }
.brand__text span { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text span { color: #9fbcae; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link[aria-current] { color: var(--emerald-700); background: var(--emerald-50); }
.nav__link .icon { transform: rotate(90deg); transition: transform .25s; }
.nav__dropdown { position: relative; }
.dropdown {
  position: absolute; left: -16px; top: calc(100% + 8px); width: 540px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav__dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav__dropdown:hover .dropdown, .nav__dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown:hover .nav__link .icon { transform: rotate(-90deg); }
.dropdown__item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; transition: background-color .2s; }
.dropdown__item:hover { background: var(--emerald-50); }
.dropdown__item strong { font-weight: 600; color: var(--ink); }
.dropdown__item span { font-size: .84rem; line-height: 1.45; color: var(--muted); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--emerald-800); }
.nav__phone .icon { color: var(--emerald-600); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; place-items: center; color: var(--ink); }

.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(8, 38, 30, .5); opacity: 0; transition: opacity .3s; }
.drawer.is-open { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; background: var(--paper); padding: 20px 22px 24px;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a { padding: 12px 0; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer__links .drawer__sub { padding-left: 14px; font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.drawer__label { margin-top: 10px; padding: 8px 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hl { color: var(--emerald-700); background: linear-gradient(transparent 74%, rgba(237, 28, 36, .2) 74%); padding: 0 2px; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { color: var(--emerald-600); }

.hero__media { position: relative; aspect-ratio: 1 / 1; max-width: 600px; justify-self: end; width: 100%; }
.hero__img { position: absolute; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); background: var(--stone-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { inset: 0 0 18% 14%; }
.hero__img--a { left: 0; bottom: 4%; width: 40%; aspect-ratio: 4 / 3; border: 6px solid var(--paper); animation: float-in 1s .2s var(--ease) both; }
.hero__img--b { right: 6%; bottom: 0; width: 34%; aspect-ratio: 4 / 3; border: 6px solid var(--paper); animation: float-in 1s .35s var(--ease) both; }
.hero__badge {
  position: absolute; left: 4%; top: 10%; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3; color: var(--muted); animation: float-in 1s .5s var(--ease) both;
}
.hero__badge strong { display: block; color: var(--ink); font-size: .95rem; }
.hero__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--emerald-100); color: var(--emerald-700); }
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- Stats --------------------------------------------------------------- */
.stats { background: var(--emerald-800); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat__label { font-size: .92rem; color: #b6d6c6; }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--stone); }
.section--dark { background: var(--emerald-900); color: #e6f1eb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head h2 { max-width: 18ch; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center h2 { max-width: 22ch; margin-inline: auto; }

.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; margin-bottom: 18px; }
.page-head .lead { max-width: 46em; }
.page-head--center { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.page-head--center h1, .page-head--center .lead { margin-inline: auto; }
.page-head--center .hero__actions { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--emerald-700); }
.crumbs a:hover { text-decoration: underline; }

/* --- Services ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; color: var(--ink-soft); font-size: .96rem; }
.service-card__body h3 { color: var(--ink); }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--emerald-700); }
.service-card--cta { background: var(--emerald-800); border-color: var(--emerald-800); justify-content: flex-end; min-height: 280px; }
.service-card--cta .service-card__body { color: #c9e2d5; justify-content: flex-end; }
.service-card--cta h3 { color: #fff; font-size: 1.6rem; }
.service-card--cta .service-card__more { color: #fff; }

.service-list { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.service-row--flip .service-row__media { order: 2; }
.service-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-row__media:hover img { transform: scale(1.04); }
.service-row__body { display: flex; flex-direction: column; gap: 18px; }
.service-row__body p { color: var(--ink-soft); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist .icon { margin-top: 3px; color: var(--emerald-600); background: var(--emerald-100); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.checklist--compact { gap: 8px 20px; margin-top: 0; font-size: .95rem; }
.checklist--compact .icon { width: 20px; height: 20px; padding: 2px; }

.svc-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--paper), var(--stone)); }
.svc-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc-hero h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.svc-hero__media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc-aside {
  position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 14px;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.svc-aside ul { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 10px; }
.svc-aside li { display: flex; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.svc-aside .icon { color: var(--emerald-600); margin-top: 2px; }
.svc-aside p { color: var(--ink-soft); }
.related { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .95rem; color: var(--muted); }
.related a { color: var(--emerald-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* --- Why ---------------------------------------------------------------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.why__media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__copy h2 { margin-bottom: 16px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 36px; }
.why__list li { display: flex; flex-direction: column; gap: 10px; }
.why__list p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--emerald-700); box-shadow: var(--shadow-sm); }

/* --- Photos -------------------------------------------------------------- */
.tile { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--stone-2); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,38,30,.35)); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 230px); gap: 14px; }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: span 2; }
.mosaic__item:nth-child(n+9) { display: none; }

.masonry { columns: 3; column-gap: 14px; margin-top: 8px; }
.masonry__item { break-inside: avoid; margin-bottom: 14px; }
.is-filtered-out { display: none !important; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: all .2s;
}
.filter span { margin-left: 4px; color: var(--muted); font-size: .82rem; }
.filter:hover { border-color: var(--emerald-600); color: var(--emerald-700); }
.filter.is-active { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.filter.is-active span { color: #b6d6c6; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.project-card__body .eyebrow { margin: 0; font-size: .74rem; }
.project-card__body p { color: var(--ink-soft); font-size: .95rem; }
.badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge--light { background: rgba(255,255,255,.94); color: var(--emerald-800); }

.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-soft); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .icon { color: var(--emerald-600); }
.meta a { color: var(--emerald-700); font-weight: 500; }
.project-cover { border-radius: 22px; overflow: hidden; }
.project-cover img { width: 100%; max-height: 80vh; object-fit: cover; }
.project-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin: clamp(40px, 5vw, 64px) 0; }
.prose { color: var(--ink-soft); font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { color: var(--emerald-700); text-decoration: underline; }
.prose strong { color: var(--ink); }

/* Before / after */
.compare { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 10; background: var(--stone-2); user-select: none; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.3); }
.compare__handle { position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--emerald-800); box-shadow: var(--shadow); pointer-events: none; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(8,38,30,.75); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--red-600); color: #fff; font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.step h3 { margin-bottom: 8px; }
.step p { color: #b6d0c3; font-size: .95rem; }

/* --- Reviews ------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.review__stars { display: flex; gap: 2px; color: var(--brass); }
.review blockquote { color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-size: 1rem; }
.review__source { font-size: .8rem; }

/* --- Areas --------------------------------------------------------------- */
.areas { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.areas h2 { margin-bottom: 16px; }
.areas .lead { margin-bottom: 26px; }
.areas__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.areas__list li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: .95rem; }
.areas__list .icon { color: var(--emerald-600); }

/* --- Estimate form ------------------------------------------------------- */
.estimate { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.estimate__intro h2 { margin-bottom: 14px; }
.estimate__intro .lead { margin-bottom: 30px; }
.estimate__card { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.estimate__title { margin-bottom: 20px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7570' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--emerald-600); box-shadow: 0 0 0 4px rgba(31,138,99,.14); }
.field--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--inline legend { width: 100%; margin-bottom: 4px; }
.field .chip, .chip { position: relative; display: inline-flex; align-items: center; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--emerald-50); border-color: var(--emerald-600); color: var(--emerald-700); }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--emerald-500); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.form__status { font-size: .92rem; text-align: center; color: var(--ink-soft); }
.form__status:empty { display: none; }
.form__status.is-error { color: #b42318; }
.form-success { text-align: center; padding: 28px 8px; }
.form-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-700); }
.form-success h3 { margin-bottom: 8px; font-size: 1.5rem; }
.form-success p { color: var(--ink-soft); }
.form-success a { color: var(--emerald-700); font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-700); transition: transform .3s var(--ease), background-color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--emerald-100); }
.faq__item p { padding: 0 48px 22px 0; color: var(--ink-soft); }

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-cards li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-cards__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--emerald-100); color: var(--emerald-700); }
.contact-cards div { display: flex; flex-direction: column; gap: 2px; }
.contact-cards a { color: var(--emerald-700); font-weight: 600; font-size: 1.05rem; }
.contact-cards span { color: var(--ink-soft); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__media { display: grid; gap: 16px; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__media img:nth-child(2) { width: 78%; justify-self: end; margin-top: -18%; border: 6px solid var(--paper); }
.stats--band { margin-top: var(--section); }
.pill-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; transition: all .2s; }
.pill-link:hover { border-color: var(--emerald-600); color: var(--emerald-700); }

.draft-bar { background: var(--brass); color: #fff; text-align: center; padding: 10px; font-size: .9rem; }
.draft-bar a { text-decoration: underline; margin-left: 6px; }

/* --- CTA band & footer --------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--emerald-700), var(--emerald-900)); color: #d8ebe1; padding-block: clamp(56px, 7vw, 88px); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer { background: var(--emerald-950); color: #9fbcae; padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.footer__brand p { margin: 18px 0 20px; max-width: 32ch; }
.footer__label { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a, .footer__list li { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.footer__list a:hover { color: #fff; }
.footer__areas { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; line-height: 1.8; }
.footer__areas strong { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: .85rem; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; transition: background-color .2s; }
.social a:hover { background: var(--emerald-600); }

.mobile-bar { display: none; }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(6, 22, 17, .96); color: #fff; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 150px); }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; border-radius: 8px; transition: opacity .25s; }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__caption { display: flex; gap: 16px; margin-top: 14px; font-size: .9rem; color: #b6d0c3; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* --- Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__phone span { display: none; }
  .services, .projects-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .topbar__trust { display: none; }
  .topbar__inner { justify-content: center; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__phone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--emerald-100); }
  .brand img { width: 46px; }
  .brand__text strong { font-size: 1.2rem; }

  .hero__grid, .svc-hero__grid, .why, .areas, .estimate, .svc-body, .project-body, .about, .service-row { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; max-width: none; aspect-ratio: 5 / 4; }
  .service-row--flip .service-row__media { order: 0; }
  .why__media { aspect-ratio: 16 / 10; }
  .svc-aside { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 18px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:first-child { padding-left: 18px; }
  .areas__list { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 36vw, 260px); }
  .mosaic__item:nth-child(6) { grid-column: span 1; }
  .mosaic__item:nth-child(n+7) { display: none; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 247, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3);
  }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font-weight: 600; }
  .mobile-bar__call { background: #fff; border: 1.5px solid var(--emerald-700); color: var(--emerald-700); }
  .mobile-bar__cta { background: var(--red-600); color: #fff; }
  .footer { padding-bottom: 100px; }

  .lightbox__stage { max-width: 100vw; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__caption { margin-bottom: 70px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__badge { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services, .projects-grid, .reviews, .steps, .why__list, .checklist, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .service-card--cta { min-height: 0; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry__item { margin-bottom: 8px; }
  .mosaic { gap: 8px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .faq__item p { padding-right: 0; }
  .compare { aspect-ratio: 4 / 3; }
  .about__media img:nth-child(2) { width: 85%; }
}
