/* =========================================================
   Elite Construction & Painting: site styles (v2)
   Colors, fonts and spacing are set once in :root below.
   Change a color there and it updates everywhere.
   ========================================================= */

:root {
  --ink: #16202a;          /* headings, dark text */
  --ink-soft: #3d4954;     /* body text */
  --muted: #5b6670;        /* secondary text */
  --line: #e2e5e8;         /* thin borders */
  --field-line: #848f99;   /* form field borders */
  --bg: #ffffff;
  --bg-soft: #f5f5f2;      /* light gray sections */
  --brand: #1c3242;        /* deep slate blue */
  --brand-dark: #13232f;   /* footer */
  --accent: #e3962f;       /* amber buttons and highlights */
  --accent-hover: #f0a948;
  --accent-text: #985708;  /* amber that is dark enough for text on white */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 32, .14);
  --container: 1180px;
  --header-h: 76px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink-soft); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Highlights text that still needs real business info (fill in before launch) */
.placeholder { background: #fff3c4; color: #5c4300; outline: 1px dashed #c99a1e; border-radius: 3px; padding: 0 .2em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(227, 150, 47, .35); }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
span.btn:hover { transform: none; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.text-link .icon { width: 1.05em; height: 1.05em; color: var(--accent-text); transition: transform .2s; }
.text-link:hover { color: var(--accent-text); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 3.5vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section > .container > h2 { margin-bottom: 1.75rem; }
.section > .container > h2.center { margin-bottom: 2.75rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-note { margin: -1rem 0 1.75rem; color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.22rem); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 24, 32, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 1.2rem; font-weight: 900; letter-spacing: .1em; }
.brand-name span { font-size: .78rem; font-weight: 600; color: var(--muted); }

.nav-list { display: flex; gap: 1.75rem; }
.nav-list a { position: relative; padding: .4rem 0; font-weight: 650; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--accent-text); width: 1.1rem; height: 1.1rem; }
.header-phone:hover { color: var(--accent-text); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1140px) {
  .nav-list { gap: 1.3rem; }
  .header-phone span { display: none; }
}
@media (max-width: 959px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border-radius: 12px; background: var(--accent); color: var(--ink); }
  .header-phone .icon { color: var(--ink); }
  .header-actions { gap: .6rem; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: .25rem 1.25rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 24, 32, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list a { display: block; padding: .95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child a { border-bottom: 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current] { color: var(--accent-text); }
}

/* ---------- Home: top banner ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: min(78vh, 700px); padding-block: 5rem; color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; animation: hero-zoom 16s ease-out both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 21, 29, .88) 0%, rgba(13, 21, 29, .7) 45%, rgba(13, 21, 29, .15) 100%);
}
.hero-content > * { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem); line-height: 1.07; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem); color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-content > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (max-width: 720px) {
  .hero { min-height: 0; padding-block: 3.5rem 4rem; }
  .hero-bg { object-position: 72% center; }
  .hero::before { background: linear-gradient(180deg, rgba(13, 21, 29, .62) 0%, rgba(13, 21, 29, .82) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.5rem; padding-block: 1.5rem; }
.trust-list li { display: flex; align-items: center; gap: .8rem; font-size: .93rem; color: var(--muted); line-height: 1.35; }
.trust-list strong { display: block; color: var(--ink); font-size: 1rem; }
.trust-list .icon { width: 1.7rem; height: 1.7rem; color: var(--accent-text); stroke-width: 1.75; }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .trust-list { gap: 1.25rem 1rem; }
  .trust-list li { flex-direction: column; align-items: flex-start; gap: .4rem; font-size: .88rem; }
  .trust-list .icon { width: 1.5rem; height: 1.5rem; }
}

/* ---------- Service tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
.tile { display: block; color: inherit; text-decoration: none; }
.tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-body { display: block; padding-top: 1.1rem; }
.tile-title { margin: 0 0 .3rem; font-size: 1.2rem; transition: color .2s; }
.tile-text { display: block; color: var(--muted); font-size: .98rem; }
.tile:hover img { transform: scale(1.04); }
.tile:hover .tile-title { color: var(--accent-text); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
/* Phones: compact list with a small photo, so six services don't take six screens */
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; gap: 1.1rem; }
  .tile { display: grid; grid-template-columns: 104px 1fr; gap: 1rem; align-items: center; }
  .tile-media { aspect-ratio: 1; border-radius: 12px; }
  .tile-body { padding-top: 0; }
  .tile-title { font-size: 1.05rem; }
  .tile-text { font-size: .92rem; line-height: 1.45; }
}

/* ---------- Dark band (home) ---------- */
.band { background: var(--brand); color: rgba(255, 255, 255, .8); padding-block: clamp(3rem, 2.5rem + 2vw, 4.25rem); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band-inner > div { max-width: 700px; }
.band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .5rem; }
.band p { margin: 0; }

/* ---------- Before & after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.ba-card { margin: 0; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.ba-images--single { grid-template-columns: 1fr; }
.ba-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.ba-images--single .ba-img { aspect-ratio: 2 / 1; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; left: .75rem; top: .75rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(22, 32, 42, .85); color: #fff;
}
.ba-label--after { background: var(--accent); color: var(--ink); }
.ba-label { z-index: 1; }
a.ba-img { display: block; cursor: zoom-in; }
.ba-img img { transition: transform .6s ease; }
a.ba-img::after { content: ""; position: absolute; inset: 0; background: rgba(13, 21, 29, 0); transition: background-color .3s; }
.ba-card figcaption { padding: 1.2rem 1.5rem 1.4rem; color: var(--muted); font-size: .98rem; }
.ba-card figcaption strong { display: block; margin-bottom: .2rem; color: var(--ink); font-size: 1.1rem; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 900; font-size: 1.15rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .step > h3, .step > p { grid-column: 2; }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.review-card { display: flex; flex-direction: column; margin: 0; padding: 1.9rem; background: var(--bg-soft); border-radius: var(--radius); }
.stars { display: flex; gap: .15rem; margin-bottom: 1rem; color: var(--accent); }
.stars .icon, .icon--star { fill: currentColor; stroke: none; width: 1.15rem; height: 1.15rem; }
.icon--star { color: var(--accent); }
.review-card blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; }
.review-card blockquote p { margin: 0; }
.review-card figcaption { margin-top: auto; }
.review-card figcaption strong { display: block; color: var(--ink); }
.review-card figcaption > span { font-size: .92rem; color: var(--muted); }
.reviews-more { margin: 2.5rem 0 0; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; color: var(--ink); }
.contact-list .icon { width: 2.75rem; height: 2.75rem; padding: .7rem; border-radius: 12px; background: var(--ink); color: var(--accent); }
.contact-list div > span:first-child { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent-text); }

.form-card { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316202a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .9rem center / 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(28, 50, 66, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.is-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); text-align: center; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Inner page top ---------- */
.page-hero { background: var(--bg-soft); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero--simple .container > * { max-width: 760px; }
.page-hero--simple .lead { margin-bottom: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .container > * { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; margin-top: 1.75rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 899px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) { .page-hero .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- Article text on inner pages ---------- */
.prose { max-width: 760px; }
.prose > h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.75rem 0 .8rem; }
.prose > h2:first-child { margin-top: 0; }
.prose a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-text); }

.check-list { display: grid; gap: .5rem; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23985708' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 640px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list a {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s;
}
.pill-list a:hover { border-color: var(--ink); color: var(--ink); }
.areas-line { color: var(--muted); }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.reasons li { padding-top: 1.25rem; border-top: 3px solid var(--accent); }
.reasons p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .reasons { grid-template-columns: 1fr; gap: 1.5rem; } }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.areas li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.areas h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.areas p { margin: 0; color: var(--muted); }
.areas-note { margin: 3rem 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-title { margin: 3.5rem 0 1.5rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(13, 21, 29, 0); transition: background-color .3s; }
.gallery-zoom {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.gallery-zoom .icon { width: 1.1rem; height: 1.1rem; }
.gallery-item { cursor: zoom-in; }
/* Photos that open larger (gallery and before/after): zoom in a little and show the magnifier on hover */
.gallery-item:hover img, .gallery-item:focus-visible img, a.ba-img:hover img, a.ba-img:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after, a.ba-img:hover::after, a.ba-img:focus-visible::after { background: rgba(13, 21, 29, .25); }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom,
a.ba-img:hover .gallery-zoom, a.ba-img:focus-visible .gallery-zoom { opacity: 1; transform: none; }
/* Phones and tablets can't hover, so the magnifier always shows (smaller) to say "tap me" */
@media (hover: none) {
  .gallery-zoom { opacity: .92; transform: none; width: 32px; height: 32px; right: .5rem; bottom: .5rem; }
  .gallery-zoom .icon { width: .95rem; height: .95rem; }
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* ---------- Photo viewer ---------- */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(10, 15, 20, .95); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem 4.5rem 2rem; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox-img { max-width: min(100%, 1400px); max-height: calc(100vh - 10rem); width: auto; height: auto; margin-inline: auto; border-radius: 8px; }
.lightbox-caption { margin-top: 1rem; font-size: 1rem; color: rgba(255, 255, 255, .85); }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox-btn[hidden] { display: none; }
.lightbox-btn .icon { width: 1.5rem; height: 1.5rem; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox-stage { padding: 4.5rem .75rem 5.5rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ---------- Questions (FAQ) ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 1.1rem 3.5rem 1.1rem 1.35rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%; width: 14px; height: 2px; background: var(--accent-text); transition: transform .25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--brand); color: rgba(255, 255, 255, .8); padding-block: clamp(3.25rem, 2.5rem + 2.5vw, 4.75rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta-link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.cta-link:hover { color: #fff; }
@media (max-width: 600px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 4rem; background: var(--brand-dark); color: rgba(255, 255, 255, .72); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--light { color: #fff; margin-bottom: 1.1rem; }
.brand--light .brand-name span { color: rgba(255, 255, 255, .65); }
.footer-brand p { max-width: 320px; }
.footer-title { margin-bottom: 1rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--accent); color: var(--ink); }
.social .icon { width: 1.15rem; height: 1.15rem; }
.social:empty { display: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Phone-only bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 24, 32, .08);
  }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }
}

/* ---------- 3D project planner ---------- */
.planner-section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(4rem, 3rem + 3vw, 6rem); }
.planner { display: grid; grid-template-columns: minmax(340px, 410px) 1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; }
.planner-controls { display: grid; gap: 1.1rem; }
.pq { margin: 0; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.pq[hidden] { display: none; }
.pq legend { float: left; width: 100%; margin-bottom: 1rem; font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.pq legend + * { clear: both; }
.pq-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.pq-row label, .pq-label { margin: 0; font-weight: 700; font-size: .95rem; color: var(--ink); }
.pq-label { margin: 1.1rem 0 .5rem; }
.pq-row .pq-label { margin: 0; }
.pq-hint { font-size: .88rem; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.choice-grid--1 { grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .segmented input, .swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  display: block; height: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.choice small { display: block; margin-top: .15rem; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.choice:hover > span { border-color: #c4cad1; }
.choice input:checked + span { border-color: var(--accent); background: #fdf6ec; box-shadow: 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; padding: .3rem; border-radius: 12px; background: var(--bg-soft); }
.segmented--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.segmented[hidden] { display: none; }
.segmented label { position: relative; cursor: pointer; }
.segmented span { display: block; padding: .55rem .5rem; border-radius: 9px; text-align: center; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 32, .15); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.pq .segmented + .pq-row, .pq .segmented + .segmented { margin-top: 1rem; }
.pq input[type="range"] + .segmented { margin-top: 1rem; }

.range-row { display: grid; grid-template-columns: 1fr 104px; gap: .9rem; align-items: center; }
.range-row input[type="number"] {
  width: 100%; min-height: 46px; padding: .5rem .6rem; border: 1px solid var(--field-line); border-radius: 12px;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-align: center; color: var(--ink);
}
.pq input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }

.stepper-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.stepper--sm { width: 150px; }
.stepper input { width: 100%; min-width: 0; border: 0; background: none; text-align: center; font: inherit; font-weight: 800; font-size: 1.1rem; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.step-btn:hover { background: #e9e9e4; }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.swatches label { position: relative; display: grid; justify-items: center; gap: .3rem; cursor: pointer; }
.swatches span { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .15s, transform .15s; }
.swatches small { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; }
.swatches input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--accent); transform: scale(1.05); }
.swatches input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 4px; }
.check { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.planner-side { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.1rem; }
.planner-view {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 90% at 50% 10%, #2b4459 0%, #182b39 55%, #101d27 100%);
  box-shadow: var(--shadow-lg);
}
.view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.4rem 0; }
.view-head h2, .view-title { margin: 0 0 .2rem; color: #fff; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.view-title { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.view-head p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.view-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.view-btn { padding: .45rem .85rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.view-btn[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.canvas-wrap { position: relative; height: clamp(320px, 52vh, 520px); }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.canvas-wrap canvas:active { cursor: grabbing; }
.price-chip { position: absolute; left: 1rem; bottom: .9rem; margin: 0; padding: .45rem .8rem; border-radius: 999px; background: rgba(16, 29, 39, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .9rem; }
.price-chip span { color: rgba(255, 255, 255, .7); }
.price-chip strong { color: var(--accent); }
.no-3d { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 2rem; text-align: center; color: rgba(255, 255, 255, .8); }
.no-3d[hidden] { display: none; }
.view-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .2rem 1.4rem 1.1rem; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.legend li { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.view-hint { margin: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.estimate { padding: 1.4rem 1.5rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.est-label { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.est-range { margin: .1rem 0 .1rem; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.est-time { margin: 0 0 .9rem; color: var(--muted); font-size: .95rem; }
.est-lines { display: grid; gap: .35rem; margin: 0 0 .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .93rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.est-lines li span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.est-note { margin: 0 0 1.1rem; font-size: .82rem; color: var(--muted); }
.est-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.est-actions .btn { flex: 1 1 auto; }

.send-dialog { width: min(100% - 1.5rem, 600px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.send-dialog::backdrop { background: rgba(13, 21, 29, .6); }
.send-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.send-head { display: flex; justify-content: space-between; gap: 1rem; }
.send-head h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.send-head p { margin: 0; color: var(--muted); }
.send-close { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.send-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-soft); font-size: .92rem; }
.send-summary p { margin: 0; }
.send-summary strong { flex-shrink: 0; font-size: 1.1rem; color: var(--ink); }

@media (max-width: 959px) {
  .planner { grid-template-columns: 1fr; }
  .planner-side { display: contents; }
  .planner-view { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 5; order: -1; }
  .canvas-wrap { height: 34vh; min-height: 230px; }
  .view-head { padding: .8rem .9rem 0; align-items: center; }
  .view-head h2, .view-title { font-size: 1.05rem; white-space: nowrap; }
  .view-head p { display: none; }
  .view-btn { padding: .35rem .65rem; font-size: .78rem; }
  .view-foot { display: none; }
  .estimate { order: 2; }
}
@media (max-width: 520px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .swatches span { width: 34px; height: 34px; }
  .send-summary { flex-direction: column; align-items: flex-start; }
}

/* Home page invite to the planner */
.planner-band { padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem); background: var(--bg-soft); }
.planner-band-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.planner-band .tag { display: inline-block; margin-bottom: .9rem; padding: .3rem .75rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.planner-band h2 { margin-bottom: .6rem; }
.planner-band-inner > div > p { color: var(--muted); font-size: 1.08rem; }
.planner-band-media { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #182b39; }
.planner-band-pic { display: block; }
.planner-band-media img { width: 100%; height: auto; transition: transform .6s ease; }
.planner-band-pic:hover img { transform: scale(1.03); }
/* the live 3D model, laid over the picture once it's ready (js/home3d.js) */
.planner-band-media .planner-view { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; opacity: 0; transition: opacity .6s ease; }
.planner-band-media .planner-view[hidden] { display: none; }
.planner-band-media .canvas-wrap { flex: 1; height: auto; min-height: 0; }
.planner-band-media.is-live .planner-view { opacity: 1; }
.planner-band-media.is-live .planner-band-pic { visibility: hidden; transition: visibility 0s .6s; }
@media (max-width: 860px) { .planner-band-inner { grid-template-columns: 1fr; } }

/* ---------- Gentle fade-in as you scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* People who turn off motion in their device settings get no animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
