/* Casali Building & Renovation
   One accent (forest green), one radius scale (10px surfaces, pill buttons),
   light + dark via prefers-color-scheme. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eceeea;
  --text: #17201b;
  --muted: #4f5a53;
  --line: #d9ddd7;
  --accent: #2d6a4f;
  --accent-ink: #f4f7f3;
  --accent-soft: #d6eadd;
  --deep: #1b4332;
  --deep-ink: #eef5f0;
  --focus: #2d6a4f;
  --danger: #a3332b;
  --shadow: 0 18px 50px rgb(31 61 47 / .10);
  --radius: 10px;
  --wrap: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] {
    --bg: #101512;
    --surface: #161d19;
    --surface-2: #1d2621;
    --text: #e9eee9;
    --muted: #a5b0a8;
    --line: #2a3530;
    --accent: #6cc18f;
    --accent-ink: #0c1a12;
    --accent-soft: #1d3a2a;
    --deep: #163a2a;
    --deep-ink: #e6f2ea;
    --focus: #6cc18f;
    --danger: #f08a80;
    --shadow: 0 18px 50px rgb(0 0 0 / .35);
  }
}

/* Alternative palettes for comparison only: open any page with ?theme=navy or ?theme=charcoal
   (?theme=green returns to the default). Remove once a palette is chosen. */
:root[data-theme="navy"] {
  --bg: #f5f6f8; --surface-2: #e9ecf1; --text: #151b26; --muted: #4c5566; --line: #d6dbe3;
  --accent: #1f4e8c; --accent-soft: #dce6f4; --deep: #14284a; --deep-ink: #edf2fa; --focus: #1f4e8c; --shadow: 0 18px 50px rgb(29 53 87 / .10);
}
:root[data-theme="charcoal"] {
  --bg: #f6f6f5; --surface-2: #ececea; --text: #1c1c1b; --muted: #55554f; --line: #dcdcd8;
  --accent: #b8430f; --accent-soft: #f5e4da; --deep: #262421; --deep-ink: #f3f1ee; --focus: #b8430f; --shadow: 0 18px 50px rgb(28 28 27 / .10);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="navy"][data-mode="auto"] {
    --bg: #0f131a; --surface: #151b25; --surface-2: #1b2330; --text: #e8ecf2; --muted: #a3adbd; --line: #283244;
    --accent: #7fb0f0; --accent-ink: #0e1622; --accent-soft: #1d2a40; --deep: #142645; --deep-ink: #e8eef8; --focus: #7fb0f0;
  }
  :root[data-theme="charcoal"][data-mode="auto"] {
    --bg: #121212; --surface: #1a1a19; --surface-2: #222220; --text: #ecece9; --muted: #aeaea8; --line: #2f2f2c;
    --accent: #f0915c; --accent-ink: #1c120c; --accent-soft: #3a2519; --deep: #2a1d15; --deep-ink: #f6ece4; --focus: #f0915c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }
.h2 { font-size: clamp(30px, 4vw, 44px); max-width: 18ch; }
.lede { color: var(--muted); max-width: 60ch; margin-top: 16px; font-size: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Buttons: pill shape everywhere */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 19px; letter-spacing: -0.01em; }
.logo-text span { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; font-size: 22px; color: var(--text); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 20px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: 18px; font-weight: 500; }
.mobile-nav .btn { margin-top: 10px; justify-content: center; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
}

/* Photo slots: real photo when provided, a tinted panel with an icon until then */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(150deg, var(--accent-soft), var(--surface-2)); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: var(--accent); opacity: .55; }
.photo.has-img .ph { display: none; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; min-height: min(640px, calc(100dvh - 160px)); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); max-width: 15ch; }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 42ch; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* Promise strip under hero */
.promises { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise { padding: 26px 24px 26px 0; display: flex; gap: 14px; align-items: flex-start; }
.promise .ph { font-size: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.promise strong { display: block; font-weight: 600; }
.promise span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .promises-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promises-grid { grid-template-columns: 1fr; } .promise { padding: 18px 0; } }

/* Services bento: 5 items, 5 cells */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; margin-top: 48px; }
.tile { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; text-decoration: none; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--muted); margin-top: 8px; max-width: 40ch; font-size: 16px; }
.tile .tile-icon { font-size: 30px; color: var(--accent); margin-bottom: auto; }
.tile-photo { position: absolute; inset: 0; border-radius: 0; }
.tile-photo + .tile-body { position: relative; margin-top: auto; background: var(--surface); border-radius: 8px; padding: 18px 20px; max-width: 420px; }
.tile-bath { grid-column: span 4; grid-row: span 2; min-height: 460px; }
.tile-kitchen { grid-column: span 2; grid-row: span 2; }
.tile-tiling { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile-tiling p, .tile-tiling .tile-icon { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.tile-reno { grid-column: span 2; background: var(--surface-2); }
.tile-roof { grid-column: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-bath { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .tile-kitchen { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .tile-tiling, .tile-reno { grid-column: span 1; }
  .tile-roof { grid-column: span 2; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile-bath, .tile-kitchen, .tile-tiling, .tile-reno, .tile-roof { grid-column: auto; } }

/* Process: four verbs joined by a line */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.process-line { position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--line); overflow: hidden; }
.process-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step-dot { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); font-size: 22px; }
.step h3 { font-size: 21px; margin-top: 22px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .process-line { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .process-line span { transform-origin: top; transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
  .step h3 { margin-top: 10px; }
  .step p { grid-column: 2; }
}

/* Estimate band */
.band { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 2); padding: 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; }
.band p { margin-top: 14px; opacity: .85; max-width: 52ch; }
.band .btn { background: var(--accent-ink); color: var(--accent); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* Before / after slider */
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; background: var(--surface-2); }
.ba .photo { position: absolute; inset: 0; border-radius: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--surface); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.ba-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; color: var(--text); font-size: 20px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }

.work-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.work-feature h3 { font-size: 26px; }
.work-feature p { color: var(--muted); margin-top: 12px; }
.work-feature .btn { margin-top: 24px; }
@media (max-width: 900px) { .work-feature { grid-template-columns: 1fr; gap: 28px; } }

/* Work page grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; margin-top: 48px; }
.job { grid-column: span 6; }
.job:nth-child(3n+1) { grid-column: span 12; }
.job:nth-child(3n+1) .ba { aspect-ratio: 21 / 10; }
.job h3 { font-size: 22px; margin-top: 18px; }
.job-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.job p { margin-top: 10px; max-width: 65ch; }
@media (max-width: 760px) { .job, .job:nth-child(3n+1) { grid-column: span 12; } .job:nth-child(3n+1) .ba { aspect-ratio: 16 / 10; } }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.quote:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--accent-soft); border-color: transparent; }
.quote:first-child blockquote { font-size: 24px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; }
.quote blockquote { margin: 14px 0 0; font-size: 18px; line-height: 1.5; }
.quote figcaption { margin-top: 20px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--text); display: block; font-weight: 600; }
.sample-note { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--danger); font-weight: 600; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } .quote:first-child { grid-row: auto; } }

.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 48px 32px; text-align: center; margin-top: 48px; }
.empty .ph { font-size: 40px; color: var(--accent); }
.empty h3 { font-size: 22px; margin-top: 12px; }
.empty p { color: var(--muted); margin: 10px auto 0; max-width: 48ch; }
.empty .btn { margin-top: 22px; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { list-style: none; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15.5px; }
.towns { padding: 0; margin: 0; }
@media (max-width: 760px) { .area-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Page heads */
.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .help { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field .error { color: var(--danger); font-size: 14px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; }
.form-status.err { color: var(--danger); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; margin-top: 40px; }
.contact-ways { display: grid; gap: 14px; }
.contact-way { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.contact-way:hover { border-color: var(--accent); }
.contact-way .ph { font-size: 26px; color: var(--accent); }
.contact-way strong { display: block; }
.contact-way span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
@media (max-width: 640px) { .card { padding: 24px 20px; } }

/* Estimate wizard */
.wizard { max-width: 720px; margin: 0 auto; padding: 40px 0 96px; min-height: calc(100dvh - 72px); display: flex; flex-direction: column; }
.wiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.wiz-back { background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); font-size: 20px; cursor: pointer; flex: none; }
.wiz-back[disabled] { visibility: hidden; }
.wiz-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .5s cubic-bezier(.16,1,.3,1); }
.wiz-count { font-size: 14px; color: var(--muted); min-width: 52px; text-align: right; }
.wiz-q h1, .wiz-q h2 { font-size: clamp(28px, 4.2vw, 40px); max-width: 22ch; }
.wiz-q .wiz-help { color: var(--muted); margin-top: 12px; font-size: 17px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.choices.one-col { grid-template-columns: 1fr; }
.choice { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; cursor: pointer; display: flex; gap: 16px; align-items: center; transition: border-color .2s, transform .2s cubic-bezier(.16,1,.3,1), background-color .2s; }
.choice:hover { border-color: var(--accent); }
.choice:active { transform: scale(.985); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice .ph { font-size: 30px; color: var(--accent); flex: none; }
.choice strong { display: block; font-size: 17px; font-weight: 600; }
.choice span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.stepper { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.stepper button { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { border-color: var(--accent); }
.stepper output { font-size: 44px; font-weight: 600; min-width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .unit { color: var(--muted); font-size: 18px; }
.wiz-next { margin-top: 36px; }
.result { margin-top: 28px; }
.result-range { font-size: clamp(40px, 7vw, 64px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; margin-top: 8px; }
.result-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15.5px; }
.result-list li { display: flex; gap: 10px; }
.result-list .ph { color: var(--accent); margin-top: 4px; }
.result-note { margin-top: 22px; padding: 16px 18px; border-radius: 8px; background: var(--accent-soft); font-size: 15.5px; }
.result-form { margin-top: 40px; }
.result-form h2 { font-size: 26px; margin-bottom: 20px; }

/* Prose (privacy) */
.prose { max-width: 70ch; padding-bottom: 96px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; }
/* Pages list in two columns, reading down then across */
.footer-list-2 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 28px; }
.footer-area { color: var(--muted); margin-top: 16px; max-width: 36ch; font-size: 15.5px; }
.footer-h { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { text-decoration: none; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; font-size: 15.5px; }
.footer-list a:hover { color: var(--text); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 13.5px; color: var(--muted); }
.footer-legal p:first-child { max-width: 80ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-legal { flex-direction: column; } .footer-list-2 { column-gap: 16px; } }

/* Reveal: hidden only when JS + motion are available */
.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Brand colour carried through the page, not just the buttons */
.hero { background: linear-gradient(180deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 35%, var(--bg)) 70%, var(--bg) 100%); }
.photo { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 30%, var(--accent-soft)), var(--accent-soft)); }
.photo .ph { opacity: .7; }
.promises { background: var(--deep); color: var(--deep-ink); border: 0; }
.promise .ph { color: var(--deep-ink); opacity: .9; }
.promise span { color: color-mix(in srgb, var(--deep-ink) 75%, transparent); }
.band { background: var(--deep); color: var(--deep-ink); }
.band .btn { background: var(--deep-ink); color: var(--deep); }
.site-footer { background: var(--deep); color: var(--deep-ink); border-top: 0; }
.site-footer .logo-mark { background: var(--deep-ink); color: var(--deep); }
.site-footer .logo-text span, .footer-area, .footer-list a, .footer-legal { color: color-mix(in srgb, var(--deep-ink) 72%, transparent); }
.footer-list a:hover { color: var(--deep-ink); }
.footer-legal { border-top-color: color-mix(in srgb, var(--deep-ink) 18%, transparent); }
.site-footer :focus-visible { outline-color: var(--deep-ink); }

/* Full-bleed parallax images (hero and material sections).
   The image layer is taller than its section; site.js shifts it as the page scrolls. */
.parallax { position: relative; overflow: hidden; isolation: isolate; }
.parallax-media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.parallax-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-full { background: none; min-height: min(88dvh, 820px); display: flex; align-items: center; padding: 96px 0; }
.hero-full .parallax-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(246 247 245 / .94) 0%, rgb(246 247 245 / .82) 38%, rgb(246 247 245 / .15) 72%, transparent 100%); }
.hero-inner { width: 100%; }
.hero-full .btn-ghost { background: rgb(255 255 255 / .7); }
@media (max-width: 760px) {
  .hero-full { min-height: 78dvh; padding: 64px 0; align-items: flex-end; }
  .hero-full .parallax-media::after { background: linear-gradient(0deg, rgb(246 247 245 / .96) 0%, rgb(246 247 245 / .86) 55%, rgb(246 247 245 / .35) 100%); }
}

.material { min-height: clamp(440px, 72vh, 700px); display: flex; align-items: flex-end; padding: 56px 0; }
.material-inner { width: 100%; display: flex; }
.material-right .material-inner { justify-content: flex-end; }
.material-card { background: var(--surface); border-radius: var(--radius); padding: 32px 34px; max-width: 440px; box-shadow: var(--shadow); }
.material-card h2 { font-size: clamp(26px, 3vw, 34px); }
.material-card p { color: var(--muted); margin-top: 12px; }
@media (max-width: 640px) { .material { min-height: 70dvh; padding: 24px 0; } .material-card { padding: 24px; } }

/* Green strip with a slow-moving marble image behind it: subtle, not dominant */
.promises.tinted { padding: 64px 0; }
.promises.tinted .parallax-media::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 80%, transparent); }
@media (max-width: 560px) { .promises.tinted { padding: 32px 0; } }

/* Material sections kept modest so they accent the page rather than take it over */
.material { min-height: clamp(360px, 52vh, 480px); }
@media (max-width: 640px) { .material { min-height: 420px; } }

/* Service pages: included list */
.included { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; max-width: 980px; }
.included li { display: flex; gap: 14px; align-items: flex-start; font-size: 17.5px; }
.included .ph { color: var(--accent); font-size: 24px; flex: none; margin-top: 1px; }
@media (max-width: 760px) { .included { grid-template-columns: 1fr; } }

/* Six nav items: tighten, and switch to the menu button a little earlier */
.nav { gap: 22px; }
@media (max-width: 1180px) { .nav, .header-cta { display: none; } .menu-toggle { display: inline-grid; place-items: center; } }

/* Home hero image: on phones, keep the island in view rather than the empty wall */
@media (max-width: 760px) { .hero-full .parallax-media img { object-position: 72% center; } }

/* The kitchen photo's left side is already a bright wall, so the wash can be lighter */
.hero-full .parallax-media::after { background: linear-gradient(90deg, rgb(246 247 245 / .82) 0%, rgb(246 247 245 / .6) 34%, rgb(246 247 245 / 0) 62%); }
@media (max-width: 760px) {
  .hero-full .parallax-media::after { background: linear-gradient(0deg, rgb(246 247 245 / .95) 0%, rgb(246 247 245 / .8) 50%, rgb(246 247 245 / .15) 100%); }
}

/* FAQs */
.faq-list { margin-top: 32px; max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.post-card { text-decoration: none; display: block; }
.post-card-img { aspect-ratio: 16 / 10; margin-bottom: 18px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.post-card:hover .post-card-img { transform: translateY(-3px); }
.post-card h3 { font-size: 21px; margin-top: 6px; }
.post-card p:last-child { color: var(--muted); margin-top: 8px; font-size: 16px; }
.post-meta { font-size: 14px; color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-head { padding: 56px 24px 28px; max-width: 860px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 10px; }
.post-hero { aspect-ratio: 21 / 9; max-width: 1152px; }
.post-body { max-width: 760px; padding: 48px 24px 64px; }
.post-body h2 { font-size: 28px; margin: 44px 0 14px; color: var(--text); }
.post-body h3 { font-size: 21px; margin: 32px 0 10px; }
.post-body p, .post-body li { font-size: 18px; color: var(--text); line-height: 1.7; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 14px 0; }
.post-body li + li { margin-top: 6px; }
.post-body img { border-radius: var(--radius); margin: 28px 0; }
.post-body blockquote { margin: 28px 0; padding: 18px 22px; background: var(--accent-soft); border-radius: 8px; }
.post-body a { color: var(--accent); }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .post-head, .post-body { padding-left: 16px; padding-right: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phones: bigger tap targets, slightly larger small text, and a quick-contact bar */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .logo { min-height: 44px; }
  .logo-text span { font-size: 13.5px; }
  .footer-list { gap: 0; }
  .footer-list a { padding: 10px 0; min-height: 44px; }
  .crumbs a { display: inline-block; padding: 12px 0; }
  .check input { width: 24px; height: 24px; }
  .check { padding: 6px 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); background: var(--surface); }
  .mobile-bar a .ph { font-size: 20px; color: var(--accent); }
  .mobile-bar .mobile-bar-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .mobile-bar .mobile-bar-main .ph { color: var(--accent-ink); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body[data-page="estimate"] .mobile-bar { display: none; }
  body[data-page="estimate"] { padding-bottom: 0; }
}

/* Services grid: say where each tile goes, and the estimator strip between the rows */
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 15.5px; color: var(--accent); }
.tile-link .ph { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.tile:hover .tile-link .ph { transform: translateX(4px); }
.tile-tiling .tile-link { color: var(--accent-ink); }
.estimator-strip { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px 28px; border-radius: var(--radius); background: var(--accent-soft); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.estimator-strip > .ph { font-size: 38px; color: var(--accent); }
.estimator-strip h3 { font-size: 21px; }
.estimator-strip p { color: var(--muted); margin-top: 4px; font-size: 16px; }
@media (max-width: 760px) {
  .estimator-strip { grid-template-columns: 1fr; text-align: left; gap: 12px; padding: 22px; }
  .estimator-strip .btn { justify-self: start; }
}
/* Let the strip be as short as its content; tiles keep their own minimum height */
.bento { grid-auto-rows: auto; }
.tile { min-height: 220px; }
.tile-bath, .tile-kitchen { min-height: 460px; }
@media (max-width: 900px) { .tile-bath { min-height: 380px; } .tile-kitchen { min-height: 320px; } }

/* Logo mark: the Arch, white on a green tile (same as the app icon) */
.logo-mark svg { width: 62%; height: 62%; display: block; transform: translateY(1px); }
/* Header and footer wordmark set like the brand lockup */
.logo-text strong { text-transform: uppercase; letter-spacing: .12em; font-size: 18px; }
.logo-text span { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; margin-top: 3px; }
@media (max-width: 900px) { .logo-text span { font-size: 11px; } }

/* Header and footer use the brand logo file itself */
.logo-img { height: 46px; width: auto; display: block; }
.site-footer .logo-img { height: 52px; }
@media (max-width: 900px) { .logo-img { height: 40px; } }
.logo-img { height: 54px; }
@media (max-width: 900px) { .logo-img { height: 46px; } }

/* WhatsApp: the solid logo in WhatsApp green, so people spot it instantly */
.wa-icon { color: #25d366; }
.footer-list a .ph, .footer-list a .ph-fill { font-size: 20px; color: var(--deep-ink); }
.footer-list a .wa-icon { font-size: 22px; color: #25d366; }
.mobile-bar a .wa-icon { font-size: 22px; color: #25d366; }
.contact-way .wa-icon { color: #25d366; font-size: 26px; }

/* Footer qualifications line */
.footer-quals { display: flex; gap: 12px; align-items: flex-start; margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 18%, transparent); color: color-mix(in srgb, var(--deep-ink) 85%, transparent); font-size: 15px; }
.footer-quals .ph { font-size: 24px; color: #8fd3a8; flex: none; margin-top: 1px; }
.footer-quals a { color: var(--deep-ink); }
.footer-quals + .footer-legal { margin-top: 22px; }

/* Home services: wide outdoor tile */
.tile-outdoor { grid-column: 1 / -1; min-height: 340px; }
@media (max-width: 900px) { .tile-outdoor { grid-column: span 2; } }
@media (max-width: 560px) { .tile-outdoor { grid-column: auto; min-height: 380px; } }

/* Services drop-down */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; font-weight: 500; font-size: 15.5px; color: var(--muted); background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn, .nav-drop-btn.is-current { color: var(--text); }
.nav-drop-btn .ph { font-size: 13px; transition: transform .2s; }
.nav-drop.open .nav-drop-btn .ph { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; left: -18px; min-width: 250px; padding: 8px; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; z-index: 60; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop.open .nav-menu { display: grid; gap: 2px; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text) !important; font-size: 15.5px; }
.nav-menu a .ph { font-size: 19px; color: var(--accent); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--accent-soft); }
.mobile-nav-label { margin: 10px 0 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mobile-nav a.sub { padding-left: 14px; font-size: 17px; }

/* Home services: outdoor and media walls share the last row */
.tile-outdoor, .tile-media { grid-column: span 3; min-height: 340px; }
@media (max-width: 900px) { .tile-outdoor, .tile-media { grid-column: span 1; } }
@media (max-width: 560px) { .tile-outdoor, .tile-media { grid-column: auto; min-height: 380px; } }

/* Real job photos are portrait phone shots: show them in portrait frames */
.work-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.work-grid .job, .work-grid .job:nth-child(3n+1) { grid-column: auto; }
.work-grid .ba, .work-grid .job:nth-child(3n+1) .ba { aspect-ratio: 4 / 5; }
.job-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.job-extra img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.work-more-title { margin-top: 80px; }
.work-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.work-more figure { margin: 0; }
.work-more img, .work-more video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); display: block; }
.work-more figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.work-more-title:has(+ .work-more:empty) { display: none; }
.work-feature .ba { aspect-ratio: 4 / 5; max-height: 640px; margin: 0 auto; }
@media (max-width: 900px) { .work-more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* Sliders: vertical swipes scroll the page, sideways drags move the slider (handled in site.js).
   The range input stays for keyboard users but no longer sits over the photo. */
.ba { touch-action: pan-y; cursor: ew-resize; }
.ba input[type=range] { inset: auto; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.ba:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.towns li { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; padding: 11px 18px; }
.towns li .ph { color: var(--accent); font-size: 19px; }
