/* ==========================================================================
   CIS of America — Custom Installation Service
   Brand tokens live here. Colors are taken from the CIS logo.
   ========================================================================== */
:root {
  --brand: #f47a1f;            /* logo orange: buttons, accents */
  --brand-hover: #ff8d36;
  --brand-ink: #b8560c;        /* orange for small text on light backgrounds (AA contrast) */
  --on-brand: #0b0b0b;

  --black: #0b0b0b;
  --char: #151515;
  --char-2: #1f1f1f;
  --line-dark: rgb(255 255 255 / .14);
  --on-dark: #f5f2ed;
  --on-dark-muted: #b3ada5;

  --ivory: #f7f5f1;
  --stone: #ece8e1;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5b5751;
  --line: #dcd6cc;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --track: .22em;              /* signature wide letter-spacing */
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 20px; text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); font-weight: 300; letter-spacing: .12em; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-weight: 300; }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: .14em; }
p { margin: 0 0 18px; }
strong { font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 80px, var(--container)); } }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--dark { background: var(--black); color: var(--on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.muted { color: var(--text-muted); }

/* Kicker: small tracked label above headings */
.kicker {
  display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase; color: var(--brand-ink); margin-bottom: 18px;
}
.section--dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--brand); }
.rule { width: 56px; height: 1px; background: var(--brand); border: 0; margin: 28px 0; }
.center { text-align: center; }
.center .rule, .center .lead { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.section-head--split > div { max-width: 640px; }

/* ----- Icons ----- */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: var(--track);
  text-transform: uppercase; text-decoration: none; cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--light { border-color: rgb(255 255 255 / .7); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn--dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn--dark:hover { background: var(--black); color: #fff; }
.btn--solid-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--solid-dark:hover { background: var(--char-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--brand-ink); }
.section--dark .text-link:hover { color: var(--brand); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(0 0 0 / .55), transparent); transition: opacity .35s var(--ease);
}
.site-header.is-scrolled { background: var(--black); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand__mark { height: 46px; width: auto; }   
.brand__text { border-left: 1px solid var(--line-dark); padding-left: 14px; font-family: var(--font-display); font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 500; letter-spacing: var(--track);
  text-transform: uppercase; text-decoration: none; color: rgb(255 255 255 / .82); transition: color .2s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-size: .9rem; letter-spacing: .06em; text-decoration: none; color: #fff; white-space: nowrap; }
.nav__phone:hover { color: var(--brand); }
.nav .btn { margin-left: 16px; min-height: 46px; padding: 12px 22px; }

.nav-toggle {
  display: none; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-dark);
  background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1340px) { .nav__phone { display: none; } .nav__link { padding: 0 11px; } }
@media (max-width: 1180px) and (min-width: 1100px) { .brand__text { font-size: .66rem; letter-spacing: .14em; } .nav__link { padding: 0 9px; } .nav .btn { margin-left: 8px; padding: 12px 16px; } }
@media (max-width: 1099px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 24px 16px 48px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; }
  .nav__link { display: flex; min-height: 60px; padding: 0 4px; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--brand); }
  .nav__phone { display: flex; margin: 28px 0 0; font-size: 1.1rem; }
  .nav .btn { margin: 20px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--black); }
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand__mark { height: 38px; }
  .brand__text { padding-left: 10px; font-size: .6rem; letter-spacing: .12em; white-space: normal; max-width: 12em; }
}

/* ----- Home hero (crossfading slideshow) ----- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; color: #fff; background: var(--black); overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero__slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slides li.is-active { opacity: 1; }
.hero__slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.hero__slides li.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(0 0 0 / .55), rgb(0 0 0 / .35) 75%), linear-gradient(180deg, rgb(0 0 0 / .5), rgb(0 0 0 / .2) 40%, rgb(0 0 0 / .8)); }
.hero__inner { text-align: center; padding: calc(var(--header-h) + 40px) 0 120px; }
.hero__logo { width: clamp(120px, 16vw, 180px); margin: 0 auto 28px; }
.hero h1 { margin-bottom: 8px; }
.hero__tagline { font-family: var(--font-display); font-size: clamp(.72rem, 1.4vw, .9rem); letter-spacing: .32em; text-transform: uppercase; color: rgb(255 255 255 / .85); margin: 0; }
.hero .rule { margin: 32px auto; }
.hero__sub { max-width: 560px; margin: 0 auto 36px; color: rgb(255 255 255 / .85); font-size: 1.08rem; }
.hero .btn-row { justify-content: center; }
.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 32px; display: flex; justify-content: center; align-items: center; gap: 18px;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgb(255 255 255 / .35); transition: background-color .3s; }
.hero__dot[aria-current="true"]::before { background: var(--brand); }
.hero__pause { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .4); background: transparent; color: #fff; cursor: pointer; border-radius: 50%; }
.hero__pause .icon { width: 14px; height: 14px; }
@media (max-width: 760px) { .hero__controls { bottom: 20px; } .hero__inner { padding-bottom: 96px; } }

/* ----- Inner page hero ----- */
.page-hero { position: relative; color: #fff; background: var(--black); isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 170px) 0 clamp(64px, 8vw, 100px); text-align: center; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .6); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.page-hero p { max-width: 620px; margin: 0 auto; color: rgb(255 255 255 / .85); }
.page-hero .rule { margin: 28px auto; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--font-display); font-size: .7rem; letter-spacing: var(--track); text-transform: uppercase; color: rgb(255 255 255 / .7); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* ----- Intro (Get to know us) ----- */
.intro { max-width: 820px; margin-inline: auto; text-align: center; }
.intro p { color: var(--text-muted); font-size: 1.12rem; }
.link-tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--line); }
.link-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px 12px;
  text-decoration: none; font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.link-tile + .link-tile { border-left: 1px solid var(--line); }
.link-tile .icon { width: 22px; height: 22px; color: var(--brand-ink); transition: color .3s; }
.link-tile:hover { background: var(--black); color: #fff; }
.link-tile:hover .icon { color: var(--brand); }
@media (max-width: 760px) {
  .link-tiles { grid-template-columns: 1fr 1fr; }
  .link-tile:nth-child(3) { border-left: 0; }
  .link-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ----- Service tiles (image-led) ----- */
.service-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .service-tiles { grid-template-columns: 1fr; } }
.service-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; background: var(--char); }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 20%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .9)); }
.service-tile:hover img { transform: scale(1.05); }
.service-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3.5vw, 40px); }
.service-tile__num { display: block; font-family: var(--font-display); font-size: .75rem; letter-spacing: var(--track); color: var(--brand); margin-bottom: 10px; }
.service-tile h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; margin-bottom: 10px; }
.service-tile p { max-width: 44ch; margin: 0 0 18px; color: rgb(255 255 255 / .85); font-size: .98rem; }
.service-tile .text-link { color: #fff; }
@media (max-width: 520px) { .service-tile { aspect-ratio: 4 / 5; } }

/* ----- Before / After slider ----- */
.ba { position: relative; overflow: hidden; background: var(--char); aspect-ratio: 4 / 5; user-select: none; -webkit-user-select: none; --pos: 50%; }
.ba--wide { aspect-ratio: 16 / 9; }
.ba--landscape { aspect-ratio: 4 / 3; }
.ba--mailbox { aspect-ratio: 560 / 860; max-width: 480px; margin-inline: auto; }   /* matches the mailbox photos so nothing is cropped */
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label {
  position: absolute; top: 18px; z-index: 2; padding: 8px 14px; background: rgb(0 0 0 / .6); color: #fff;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; pointer-events: none;
}
.ba__label--before { left: 18px; }
.ba__label--after { right: 18px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; }
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6'/%3E%3Cpath d='m15 6 6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35);
}
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba:has(.ba__range:focus-visible) .ba__handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba-caption { margin-top: 16px; font-size: .92rem; color: var(--text-muted); }
.section--dark .ba-caption { color: var(--on-dark-muted); }

/* ----- Split layout ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.frame { position: relative; isolation: isolate; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame--landscape img { aspect-ratio: 4 / 3; }
.frame::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--brand); z-index: -1; }
@media (max-width: 600px) { .frame::before { inset: 14px -10px -14px 10px; } }

.feature-list { list-style: none; margin: 32px 0 40px; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list b { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .15em; color: var(--brand-ink); padding-top: 4px; }
.section--dark .feature-list, .section--dark .feature-list li { border-color: var(--line-dark); }
.section--dark .feature-list b { color: var(--brand); }

/* ----- Project showcase carousel ----- */
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .carousel__track { grid-auto-columns: 84%; } }
.carousel__controls { display: flex; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.icon-btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.carousel__progress { height: 1px; background: var(--line-dark); margin-top: 32px; position: relative; }
.carousel__progress span { position: absolute; left: 0; top: 0; height: 1px; background: var(--brand); width: 0; transition: width .2s linear; }
.section:not(.section--dark) .carousel__progress { background: var(--line); }

.project { position: relative; margin: 0; overflow: hidden; background: var(--char); color: #fff; }
.project img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 24px 24px; background: linear-gradient(transparent, rgb(0 0 0 / .85)); }
.project__tag { display: block; font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.project h3 { margin: 0; font-size: 1rem; font-weight: 500; }

/* ----- Statement band (full-bleed photo) ----- */
.statement { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(110px, 16vw, 200px) 0; background: var(--black); }
.statement img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .66); }
.statement .kicker, .page-hero .kicker { color: var(--brand-hover); }
.statement h2 { font-size: clamp(1.8rem, 4.4vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.statement p { max-width: 560px; margin: 0 auto 36px; color: rgb(255 255 255 / .85); }

/* ----- Pillars (3 columns, thin dividers) ----- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.pillar { padding: 40px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.pillar b { display: block; font-family: var(--font-display); font-size: .75rem; letter-spacing: var(--track); color: var(--brand); margin-bottom: 16px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--on-dark-muted); margin: 0; }
.section:not(.section--dark) .pillars, .section:not(.section--dark) .pillar + .pillar { border-color: var(--line); }
.section:not(.section--dark) .pillar p { color: var(--text-muted); }
.section:not(.section--dark) .pillar b { color: var(--brand-ink); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-dark); }
  .section:not(.section--dark) .pillar + .pillar { border-top-color: var(--line); }
}

/* ----- Services page detail ----- */
.service-detail { scroll-margin-top: calc(var(--header-h) + 16px); }
.jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.jump-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgb(255 255 255 / .4); text-decoration: none;
  font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s;
}
.jump-nav a:hover { background: #fff; color: var(--black); border-color: #fff; }
.check-grid { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.check-grid li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.check-grid li:nth-child(odd) { padding-right: 16px; }
.check-grid .icon { color: var(--brand-ink); }
.section--dark .check-grid, .section--dark .check-grid li { border-color: var(--line-dark); }
.section--dark .check-grid .icon { color: var(--brand); }
@media (max-width: 520px) { .check-grid { grid-template-columns: 1fr; } }

/* ----- FAQ ----- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 16px 0; font-family: var(--font-display); font-size: .92rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--brand-ink); border-bottom: 1.5px solid var(--brand-ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 48px 24px 0; color: var(--text-muted); }
.faq details > div p:last-child { margin: 0; }

/* ----- Gallery page ----- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 48px; }
.chip {
  min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; color: var(--text-muted);
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--brand); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.gallery-grid li[hidden] { display: none; }
.gallery-grid .project img { aspect-ratio: 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid h3 { margin: 22px 0 6px; }

/* ----- Quote page ----- */
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.panel--dark { background: var(--black); color: var(--on-dark); border-color: var(--black); }
.panel--dark .muted { color: var(--on-dark-muted); }
.panel h2 { font-size: 1.5rem; }
.scheduler .calendly-inline-widget { min-width: 280px; height: 720px; }
.scheduler-placeholder { text-align: center; padding: clamp(32px, 6vw, 64px) 16px; border: 1px dashed var(--line); background: var(--ivory); }
.scheduler-placeholder h3 { font-size: 1.1rem; }
.scheduler-placeholder p { color: var(--text-muted); max-width: 44ch; margin: 0 auto 28px; }
.scheduler-placeholder .btn-row { justify-content: center; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps-list b { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--brand); }
.steps-list strong { display: block; font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.steps-list span { color: var(--on-dark-muted); font-size: .98rem; }

/* ----- Contact ----- */
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 22px 0; text-decoration: none; }
.contact-list .ci { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); color: var(--brand-ink); transition: background-color .25s, color .25s, border-color .25s; }
.contact-list .ci .icon { width: 20px; height: 20px; }
.contact-list small { display: block; font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--text-muted); }
.contact-list strong { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover .ci { background: var(--black); color: var(--brand); border-color: var(--black); }
.contact-list .go { color: var(--text-muted); }
.map-frame { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ----- CTA band ----- */
.cta { background: var(--black); color: #fff; text-align: center; }
.cta .container { padding-block: clamp(72px, 10vw, 120px); }
.cta__logo { width: 96px; margin: 0 auto 28px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--on-dark-muted); max-width: 560px; margin: 0 auto 36px; }
.cta .btn-row { justify-content: center; }

/* ----- Footer ----- */
.site-footer { background: var(--black); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 72px 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: var(--track); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand { margin-bottom: 20px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; letter-spacing: .04em; }

/* ----- Mobile action bar ----- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--black); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar .btn { min-height: 58px; padding: 10px; }
  .mobile-bar .btn--light { border: 0; border-right: 1px solid var(--line-dark); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

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

/* ==========================================================================
   PLACEHOLDER MARKERS — pink dashed outline on anything still needing real info.
   Remove class="show-placeholders" from <html> to hide them.
   ========================================================================== */
.show-placeholders .ph { outline: 2px dashed #ff3d7f; outline-offset: 4px; }

/* Tighter tracking on small phones so long words never overflow */
@media (max-width: 480px) {
  h1 { letter-spacing: .06em; }
  .hero h1 { font-size: 2rem; }
  .hero__tagline { letter-spacing: .18em; }
  h2 { letter-spacing: .05em; }
}

a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* ----- Quote page: layout + request form ----- */
.quote-main { display: grid; gap: 32px; }
@media (min-width: 961px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 28px; }
.quote-form .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .quote-form { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ivory);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); background: #fff; box-shadow: 0 0 0 1px var(--black); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { margin: 6px 0 0; color: #b3261e; font-size: .9rem; }
.form-note { margin: 14px 0 0; font-size: .9rem; color: var(--text-muted); }
.form-status { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--ivory); font-size: .95rem; }

/* ----- Service tabs (Residential / Commercial) ----- */
.tabs { display: flex; justify-content: center; margin: 0 auto 48px; width: fit-content; border: 1px solid var(--black); }
.tab {
  min-height: 56px; min-width: 190px; padding: 0 28px; border: 0; background: transparent; cursor: pointer; color: var(--text);
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tab + .tab { border-left: 1px solid var(--black); }
.tab:hover { background: var(--stone); }
.tab[aria-selected="true"] { background: var(--black); color: #fff; }
@media (max-width: 480px) { .tabs { width: 100%; } .tab { flex: 1; min-width: 0; padding: 0 12px; } }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-intro { text-align: center; margin: 0 auto 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; gap: 36px; } }
.svc-group b { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: var(--track); color: var(--brand-ink); margin-bottom: 10px; }
.svc-group h3 { font-size: 1rem; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--black); }
.svc-group ul { list-style: none; margin: 0; padding: 0; }
.svc-group li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.svc-group li .icon { color: var(--brand-ink); margin-top: 4px; width: 1em; height: 1em; }

/* ----- Service area town list ----- */
.town-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
.town-list li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.town-list .icon { color: var(--brand-ink); width: 1em; height: 1em; }
.town-list__more { color: var(--text-muted); font-style: italic; text-transform: none !important; letter-spacing: .02em !important; font-family: var(--font-body) !important; font-size: .95rem !important; }
@media (max-width: 420px) { .town-list { grid-template-columns: 1fr; } }

/* Portrait before/after (roof, bathroom) */
.ba--portrait { aspect-ratio: 3 / 4; }

/* Side-by-side before/after pair (when photos are from different angles) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair figure { position: relative; margin: 0; overflow: hidden; background: var(--char); }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair figcaption {
  position: absolute; top: 14px; left: 14px; padding: 7px 12px; background: rgb(0 0 0 / .6); color: #fff;
  font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}

/* Hero: Tri-State headline lines */
.hero__lead { margin: 18px auto 0; max-width: 34ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(.95rem, 1.9vw, 1.25rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; color: #fff; }
.hero__lead--accent { margin-top: 6px; color: var(--brand-hover); font-weight: 500; }
.hero__lead + .hero__lead + .hero__tagline, .hero__lead + .hero__tagline { margin-top: 14px; }
@media (max-width: 480px) { .hero__lead { letter-spacing: .08em; } }

/* Service area as three states */
.town-list--states { grid-template-columns: 1fr; }
.town-list--states li { padding: 20px 0; align-items: flex-start; }
.town-list--states li .icon { margin-top: 4px; }
.town-list--states b { display: block; font-size: 1rem; font-weight: 500; letter-spacing: .18em; }
.town-list--states small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

/* ----- Lead capture ----- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }   /* spam trap */
.form-status.is-error, .lead-pop__status.is-error { border-left-color: #b3261e; color: #b3261e; }

/* Centered pop-up with dimmed page behind it */
.lead-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .62); opacity: 0; transition: opacity .25s var(--ease); cursor: pointer; }
.lead-modal.is-open .lead-modal__backdrop { opacity: 1; }
.lead-pop {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--white); color: var(--text); padding: 36px 32px 24px; border-top: 4px solid var(--brand);
  box-shadow: 0 30px 80px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lead-modal.is-open .lead-pop { opacity: 1; transform: none; }
.lead-pop:focus { outline: none; }
body.modal-open { overflow: hidden; }
@media (max-width: 480px) { .lead-pop { padding: 32px 20px 20px; } }
.lead-pop h2 { font-size: 1.45rem; font-weight: 400; margin-bottom: 8px; }
.lead-pop > p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.lead-pop .kicker { margin-bottom: 10px; }
.lead-pop__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.lead-pop__close:hover { color: var(--text); }
.lead-pop__form { display: grid; gap: 10px; }
.lead-pop__form input, .lead-pop__form select, .lead-pop__form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--ivory); font: inherit; font-size: 1rem; color: var(--text);
}
.lead-pop__form input:focus, .lead-pop__form select:focus, .lead-pop__form textarea:focus { outline: none; border-color: var(--black); background: #fff; box-shadow: 0 0 0 1px var(--black); }
.lead-pop__form [aria-invalid="true"] { border-color: #b3261e; }
.lead-pop__form .btn { width: 100%; }
.lead-pop__status { margin: 0; font-size: .92rem; }
.lead-pop__status:empty { display: none; }
.lead-pop.is-done .lead-pop__form > :not(.lead-pop__status) { display: none; }
.lead-pop.is-done .lead-pop__status { padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--ivory); }
.lead-pop__alt { margin: 14px 0 0; font-size: .88rem; color: var(--text-muted); }
.lead-pop__alt a { color: var(--brand-ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .lead-pop { transform: none; } }

/* ----- Privacy page text ----- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; font-weight: 500; margin: 40px 0 12px; }
.prose p { color: var(--text-muted); }
.prose a { color: var(--brand-ink); }
.footer-bottom a { color: inherit; text-decoration: underline; min-height: 0; display: inline; }

.lead-pop__form textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
@media (max-height: 700px) { .lead-pop { padding-top: 28px; } .lead-pop > p { margin-bottom: 10px; } .lead-pop__form textarea { min-height: 64px; } }

/* Pop-up: two fields side by side (name/phone, state/city) */
.lead-pop__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-pop__form select:disabled, .field select:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 340px) { .lead-pop__row { grid-template-columns: 1fr; } }

/* Google Calendar booking embed */
.booking-embed { margin-top: 24px; border: 1px solid var(--line); background: #fff; }
.booking-embed iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 600px) { .booking-embed iframe { height: 900px; } }
.status-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand-ink); }

/* Pop-up tabs: Send details / Book a call */
.lead-pop__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 16px; border: 1px solid var(--black); }
.lead-pop__tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: #fff; color: var(--text); cursor: pointer;
  font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.lead-pop__tabs button + button { border-left: 1px solid var(--black); }
.lead-pop__tabs button[aria-selected="true"] { background: var(--black); color: #fff; }
.lead-pop__tabs button:not([aria-selected="true"]):hover { background: var(--stone); }
.lead-pop { transition: opacity .3s var(--ease), transform .3s var(--ease), width .25s var(--ease); }
.lead-pop.is-booking { width: min(720px, 100%); }
.booking-embed--pop { margin-top: 12px; }
.booking-embed--pop iframe { height: min(640px, calc(100dvh - 290px)); min-height: 420px; }

/* Photo picker */
.photo-field__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-field__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 12px; cursor: pointer;
  border: 1px dashed #b9b2a6; background: var(--ivory); color: var(--text); font-size: .95rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 500;
}
.photo-field__btn .icon { color: var(--brand-ink); }
.photo-field__btn:hover { border-color: var(--black); background: #fff; }
.photo-field__input:focus-visible + .photo-field__btn { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-field__hint { color: var(--text-muted); font-weight: 400; }
.photo-field__list { list-style: none; margin: 0; padding: 0; }
.photo-field__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.photo-field__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-field__list button { flex: none; min-height: 32px; border: 0; background: none; color: var(--brand-ink); cursor: pointer; font-size: .85rem; text-decoration: underline; }
.field__label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.field .photo-field__btn { justify-content: flex-start; }
