/* Sam's Electrical showcase preview (built by tools/build-showcase.py).
   Ink and emerald, in day and night versions: every text pair checked for contrast (WCAG AA).
   Four layouts (html[data-layout]): bold, split, bento, editorial. */

/* ---------- Colours ---------- */
:root {
  --accent: #047857;          /* button background: white text 5.02 */
  --accent-hover: #065F46;
  --accent-soft: #6EE7B7;     /* accent text on dark backgrounds */
  --ink: #14202B;             /* photo overlay */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --alt: #F0F7F4;
  --text: #14202B;
  --muted: #4A5563;
  --rule: #DCE9E3;
  --accent-text: #047857;     /* accent text, checked for contrast */
  --deep: #14202B;            /* dark sections */
  --deep-2: #1D2B38;
  --on-deep-muted: #C9D2DB;
  --input-bg: #F8FBF9;
  --pick-on: #E6F4EE;
  --field-border: #7D899B;   /* 3.35 on the warm field */
  --shadow: 0 1px 2px rgba(20, 32, 43, 0.06), 0 8px 24px rgba(20, 32, 43, 0.08);
  --shadow-lift: 0 2px 4px rgba(20, 32, 43, 0.06), 0 16px 36px rgba(20, 32, 43, 0.12);
  --head: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1720;
  --surface: #17222D;
  --alt: #131D27;
  --text: #ECF1F5;            /* 15.87 on bg */
  --muted: #A9B5C1;           /* 8.65 on bg, 7.72 on surface */
  --rule: #26323E;
  --accent-text: #6EE7B7;     /* 10.19 on bg */
  --deep: #0A1118;
  --deep-2: #142030;
  --on-deep-muted: #A9B5C1;
  --input-bg: #0F1720;
  --pick-on: #0F2419;
  --field-border: #6B7A90;   /* 3.69 on the card, 4.13 on the field */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 36px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
:root[data-layout="bento"] { --radius: 24px; }
:root[data-layout="editorial"] { --radius: 6px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); transition: background-color 0.3s ease, color 0.3s ease; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
/* Typing cursor in the main text colour: near-black by day, near-white at night */
input, textarea { caret-color: var(--text); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
section[id] { scroll-margin-top: 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.eyebrow-light { color: var(--accent-soft); }
.lead { font-size: 18px; color: var(--muted); max-width: 36em; margin-top: 14px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--body); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-big { font-size: 17px; padding: 17px 28px; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--alt); }
.btn-outline-light { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.text-link { font-weight: 600; color: var(--accent-text); text-underline-offset: 4px; display: inline-block; margin-top: 12px; }

/* ---------- Preview bar (sales tool, not part of the client's site) ---------- */
.preview-bar { background: var(--alt); color: var(--text); font-size: 13px; padding: 8px 16px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; text-align: center; }
.preview-bar a { color: var(--accent-text); }
.layout-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.layout-pick span { font-weight: 600; }
.layout-pick button { border: 1px solid var(--rule); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.layout-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; }
.logo-text small { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.menu { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--accent-text); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn-head { padding: 11px 18px; font-size: 15px; white-space: nowrap; }
.btn-head .short { display: none; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--accent-text); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .moon { fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--text); place-items: center; cursor: pointer; flex-shrink: 0; }
.menu-toggle:hover { border-color: var(--accent-text); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .cross, .menu-open .menu-toggle .bars { display: none; }
.menu-open .menu-toggle .cross { display: inline; }

/* ---------- Hero: shared parts ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 800; max-width: 11em; }
.hero h1 span { color: var(--accent-text); display: block; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 32em; margin-top: 22px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.g-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--surface); color: var(--text); border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); line-height: 1.2; width: max-content; }
.g-text b { font-size: 18px; }
.g-text small { display: block; color: var(--muted); font-size: 13px; }
.g-logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--body); color: #4285F4; background: #FFFFFF; border: 2px solid #E8EAED; flex-shrink: 0; }
.stars { color: #E8A317; letter-spacing: 2px; }
.tile-call { display: none; }

/* Bold: full-width photo behind white text */
[data-layout="bold"] .hero { min-height: min(86vh, 720px); display: flex; align-items: center; color: #FFFFFF; background: var(--ink); }
[data-layout="bold"] .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 32, 43, 0.96) 0%, rgba(20, 32, 43, 0.86) 42%, rgba(20, 32, 43, 0.35) 100%); }
[data-layout="bold"] .hero-media { position: absolute; inset: 0; z-index: -2; }
[data-layout="bold"] .hero-media img { object-position: 70% 40%; }
[data-layout="bold"] .hero-grid { padding-block: 72px; }
[data-layout="bold"] .hero-eyebrow, [data-layout="bold"] .hero h1 span { color: var(--accent-soft); }
[data-layout="bold"] .hero-sub { color: #E8EDF2; }
[data-layout="bold"] .hero .btn-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
[data-layout="bold"] .g-badge { margin-top: 36px; background: #FFFFFF; color: #14202B; }
[data-layout="bold"] .g-badge small { color: #4A5563; }

/* Split: words on the left, framed photo on the right, floating rating card */
[data-layout="split"] .hero { background: var(--bg); }
[data-layout="split"] .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); position: relative; }
[data-layout="split"] .hero h1 { font-size: clamp(40px, 5.2vw, 72px); }
[data-layout="split"] .hero-media { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; max-height: 600px; }
[data-layout="split"] .hero-media img { border-radius: 28px 28px 28px 120px; box-shadow: var(--shadow); }
[data-layout="split"] .hero-media::after { content: ""; position: absolute; z-index: -1; inset: 28px -18px -18px 28px; background: var(--accent); border-radius: 28px 28px 28px 120px; opacity: 0.9; }
[data-layout="split"] .hero-copy { grid-column: 1; grid-row: 1; }
[data-layout="split"] .g-badge { position: absolute; left: calc(52% - 40px); bottom: clamp(48px, 7vw, 96px); grid-column: 2; grid-row: 1; border-radius: 16px; padding: 14px 18px 14px 14px; }

/* Bento: the hero split into tiles */
[data-layout="bento"] .hero { background: var(--alt); }
[data-layout="bento"] .hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; grid-template-areas: "copy copy media media" "copy copy rate call"; gap: 16px; padding-block: clamp(24px, 4vw, 48px); }
[data-layout="bento"] .hero-copy { grid-area: copy; background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); }
[data-layout="bento"] .hero h1 { font-size: clamp(38px, 4.6vw, 64px); }
[data-layout="bento"] .hero-media { grid-area: media; border-radius: var(--radius); overflow: hidden; min-height: 280px; }
[data-layout="bento"] .g-badge { grid-area: rate; width: auto; border-radius: var(--radius); flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 22px; gap: 18px; }
[data-layout="bento"] .g-text b { font: 800 56px/1 var(--head); letter-spacing: -0.03em; display: block; }
[data-layout="bento"] .tile-call { grid-area: call; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--accent); color: #FFFFFF; border-radius: var(--radius); padding: 22px; text-decoration: none; box-shadow: var(--shadow); transition: background-color 0.15s ease; }
[data-layout="bento"] .tile-call:hover { background: var(--accent-hover); }
[data-layout="bento"] .tile-call small { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
[data-layout="bento"] .tile-call b { font: 800 clamp(24px, 2.4vw, 32px)/1.05 var(--head); }
[data-layout="bento"] .tile-call span { font-size: 14px; }

/* Editorial: big centred type, wide photo underneath */
[data-layout="editorial"] .hero { background: var(--bg); }
[data-layout="editorial"] .hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); }
[data-layout="editorial"] .hero-copy { display: flex; flex-direction: column; align-items: center; }
[data-layout="editorial"] .hero h1 { font-size: clamp(46px, 8vw, 112px); max-width: 12em; line-height: 0.98; }
[data-layout="editorial"] .hero h1 span { display: inline; }
[data-layout="editorial"] .hero-actions { justify-content: center; }
[data-layout="editorial"] .g-badge { order: 2; margin-top: 28px; box-shadow: none; border: 1px solid var(--rule); }
[data-layout="editorial"] .hero-media { order: 3; width: 100%; margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg); border-bottom: 1px solid var(--rule); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.trust-grid > div { display: flex; align-items: center; gap: 14px; }
.trust svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--alt); fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.trust p { font-size: 14px; color: var(--muted); line-height: 1.35; }
.trust b { display: block; color: var(--text); font-size: 16px; }
[data-layout="bento"] .trust { background: var(--alt); border-bottom: 0; }
[data-layout="bento"] .trust-grid { padding-top: 0; }
[data-layout="bento"] .trust-grid > div { background: var(--surface); border-radius: var(--radius); padding: 16px; }

/* ---------- Services ---------- */
.services { padding-block: clamp(64px, 9vw, 110px); background: var(--alt); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.svc p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.svc-photo { padding: 0; overflow: hidden; grid-row: span 2; display: flex; flex-direction: column; }
/* Photos are a fixed height so both cards match; the text area takes up any spare space */
.svc-photo img { height: 290px; width: 100%; object-fit: cover; flex: none; transition: transform 0.5s ease; }
.svc-photo:hover img { transform: scale(1.04); }
.svc-photo > div { padding: 24px 26px 28px; flex: 1; }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--alt); display: grid; place-items: center; margin-bottom: 18px; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-urgent { background: var(--deep); color: #FFFFFF; grid-column: span 2; }
.svc-urgent p { color: var(--on-deep-muted); }
.svc-urgent .svc-ico { background: var(--accent); }
.svc-urgent .svc-ico svg { stroke: #FFFFFF; }
.svc-urgent .text-link { color: var(--accent-soft); }

/* Split: services as tidy rows with a small picture */
[data-layout="split"] .services { background: var(--bg); }
[data-layout="split"] .svc-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
[data-layout="split"] .svc { display: grid; grid-template-columns: 88px 1fr; gap: 0 20px; align-items: start; padding: 20px; box-shadow: none; border: 1px solid var(--rule); }
[data-layout="split"] .svc > :not(.svc-ico):not(img) { grid-column: 2; }
[data-layout="split"] .svc-ico { grid-row: span 3; width: 88px; height: 88px; margin: 0; border-radius: 18px; }
[data-layout="split"] .svc-photo { grid-row: auto; flex-direction: row; display: grid; }
[data-layout="split"] .svc-photo img { width: 88px; height: 88px; border-radius: 18px; grid-row: span 2; }
[data-layout="split"] .svc-photo > div { padding: 0; }
[data-layout="split"] .svc-urgent { grid-column: span 2; border-color: var(--deep); }

/* Bento: services as tiles of different sizes */
[data-layout="bento"] .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
[data-layout="bento"] .svc-photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
[data-layout="bento"] .svc-photo:nth-child(1) img { height: 360px; }
[data-layout="bento"] .svc-photo:nth-child(2) { grid-column: span 2; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
[data-layout="bento"] .svc-photo:nth-child(2) img { height: 100%; min-height: 200px; }
[data-layout="bento"] .svc:nth-child(5) { grid-column: span 2; }
[data-layout="bento"] .svc-urgent { grid-column: span 2; }

/* Editorial: a numbered list with lines between, no boxes */
[data-layout="editorial"] .services { background: var(--bg); }
[data-layout="editorial"] .svc-grid { grid-template-columns: 1fr; gap: 0; counter-reset: svc; border-top: 2px solid var(--text); }
[data-layout="editorial"] .svc { counter-increment: svc; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; align-items: baseline; background: none; box-shadow: none; border-radius: 0; padding: 28px 0; border-bottom: 1px solid var(--rule); color: var(--text); }
[data-layout="editorial"] .svc:hover { transform: none; box-shadow: none; }
[data-layout="editorial"] .svc::before { content: counter(svc, decimal-leading-zero); font: 800 28px/1 var(--head); color: var(--accent-text); }
[data-layout="editorial"] .svc-ico, [data-layout="editorial"] .svc-photo img { display: none; }
[data-layout="editorial"] .svc-photo { grid-row: auto; }
[data-layout="editorial"] .svc-urgent { grid-column: auto; }
[data-layout="editorial"] .svc-photo > div { display: contents; }
[data-layout="editorial"] .svc h3 { font-size: clamp(22px, 2.4vw, 30px); }
[data-layout="editorial"] .svc p { margin: 0; }
[data-layout="editorial"] .svc p { color: var(--muted); }
[data-layout="editorial"] .svc-urgent .text-link { grid-column: 3; color: var(--accent-text); margin-top: 0; }

/* ---------- Why us ---------- */
.why { padding-block: clamp(64px, 9vw, 110px); background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-photo { position: relative; }
.why-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.why-photo:hover img { transform: scale(1.04); }
.why-photo::after { content: ""; position: absolute; z-index: -1; inset: 24px -18px -18px 24px; border: 3px solid var(--accent); border-radius: var(--radius); }
.why-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 26px; }
.why-copy h2 { max-width: 13em; }
.ticks { margin: 28px 0 32px; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 40px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
[data-layout="split"] .why-grid > :first-child { order: 2; }
[data-layout="editorial"] .why-photo::after { display: none; }

/* ---------- Steps ---------- */
.steps { padding-block: clamp(56px, 8vw, 96px); background: var(--alt); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-list li { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step-list span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: #FFFFFF; font: 800 22px/1 var(--head); margin-bottom: 18px; }
.step-list p { color: var(--muted); margin-top: 8px; }
[data-layout="editorial"] .steps { background: var(--bg); border-top: 1px solid var(--rule); }
[data-layout="editorial"] .step-list li { background: none; box-shadow: none; padding: 0; border-top: 2px solid var(--text); padding-top: 22px; }
[data-layout="editorial"] .step-list span { background: none; color: var(--accent-text); width: auto; height: auto; display: block; font-size: 44px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--deep); color: #FFFFFF; padding-block: clamp(64px, 9vw, 110px); position: relative; overflow: hidden; }
.reviews::before { content: "“"; position: absolute; right: -20px; top: -120px; font: 800 520px/1 var(--head); color: rgba(255, 255, 255, 0.04); }
.reviews-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.score { background: var(--deep-2); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 34px; text-align: center; }
.big-score { font: 800 96px/1 var(--head); letter-spacing: -0.04em; }
.stars-big { font-size: 28px; margin: 6px 0 10px; }
.score p:last-child { color: var(--on-deep-muted); }
.score-copy h2 { max-width: 14em; }
.score-copy p { color: var(--on-deep-muted); margin: 18px 0 28px; max-width: 34em; }

/* ---------- Gallery ---------- */
.work { padding-block: clamp(64px, 9vw, 110px); background: var(--bg); }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(420px, 48vw, 560px); }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery .g1 { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(20, 32, 43, 0.88); color: #FFFFFF; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px; display: flex; justify-content: space-between; gap: 10px; }
.gallery figcaption i { font-style: normal; color: var(--accent-soft); font-size: 12px; white-space: nowrap; }
[data-layout="editorial"] .gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; height: auto; }
[data-layout="editorial"] .gallery .g1 { grid-row: auto; }
[data-layout="editorial"] .gallery figure { aspect-ratio: 3 / 4; }
/* Same gentle zoom on every content photo; none for visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) { .svc-photo:hover img, .why-photo:hover img, .gallery figure:hover img { transform: none; } }

/* ---------- Areas ---------- */
.areas { padding-block: clamp(64px, 9vw, 110px); background: var(--alt); }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li { background: var(--surface); border: 1px solid var(--rule); padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.chips li:first-child { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-layout="editorial"] .areas { background: var(--bg); border-top: 1px solid var(--rule); }

/* ---------- Quote ---------- */
.quote { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); color: #FFFFFF; padding-block: clamp(64px, 9vw, 110px); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-copy p { color: var(--on-deep-muted); margin-top: 16px; max-width: 26em; }
.quote-phone { display: inline-block; margin-top: 26px; font: 800 clamp(30px, 3.6vw, 42px)/1 var(--head); color: var(--accent-soft); text-decoration: none; }
.quote-form { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.quote-form fieldset { border: 0; padding: 0; margin: 0; }
.quote-form legend, .quote-form label { font-size: 14px; font-weight: 600; }
.quote-form legend { margin-bottom: 10px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-weight: 500; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pick label:hover { border-color: var(--accent-soft); }
.pick label:has(input:checked) { border-color: var(--accent); background: var(--pick-on); }
.pick label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick input { accent-color: var(--accent); margin: 0; }
.pick-3 { grid-template-columns: repeat(3, 1fr); }
/* Long job names (e.g. 'Air conditioning') wrap instead of pushing the form wider than a small phone */
.quote-grid > *, .pick label { min-width: 0; }
.pick label { overflow-wrap: anywhere; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form input:not([type=radio]), .quote-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 17px var(--body); border: 1px solid var(--field-border); border-radius: 10px; background: var(--input-bg); color: var(--text); }
/* The field being typed in gets a bright edge and a soft glow, so it is obvious day or night */
.quote-form input:not([type=radio]):focus, .quote-form textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 35%, transparent); background: var(--surface); }
.quote-form textarea { resize: vertical; }
.form-done { background: var(--pick-on); border: 1px solid var(--accent-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: #0A1118; color: #C9D2DB; padding-block: 44px 96px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 28px; }
.foot-name { font: 800 22px/1.1 var(--head); color: #FFFFFF; margin-bottom: 6px; }
.foot a { color: #FFFFFF; }
.credit { font-size: 13px; }
.credit p + p { margin-top: 6px; }

/* ---------- Floating call button (phones) ---------- */
.sticky-call { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; display: none; text-align: center; background: var(--accent); color: #FFFFFF; font-weight: 600; text-decoration: none; padding: 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* ---------- Scroll-in motion, only when the script turns it on ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .menu-toggle { display: grid; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding: 4px 0; border-top: 1px solid var(--rule); font-size: 17px; }
  .menu-open .menu { display: flex; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  .menu a:last-child { border-bottom: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-photo { grid-row: auto; }
  .svc-photo img { height: 230px; }
  .svc-urgent { grid-column: auto; }
  .why-grid, .areas-grid, .quote-grid, .reviews-grid { grid-template-columns: 1fr; }
  .why-photo { max-width: 520px; }
  .step-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  [data-layout="split"] .hero-grid { grid-template-columns: 1fr; }
  [data-layout="split"] .hero-media { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; max-height: none; }
  [data-layout="split"] .g-badge { position: static; grid-column: 1; grid-row: 3; }
  [data-layout="split"] .svc-grid { grid-template-columns: 1fr; }
  [data-layout="split"] .svc-urgent { grid-column: auto; }
  [data-layout="split"] .why-grid > :first-child { order: 0; }
  [data-layout="bento"] .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "media media" "rate call"; }
  [data-layout="bento"] .svc-grid { grid-template-columns: 1fr 1fr; }
  [data-layout="bento"] .svc-photo:nth-child(1), [data-layout="bento"] .svc-photo:nth-child(2) { grid-column: span 2; grid-row: auto; }
  [data-layout="bento"] .svc-photo:nth-child(1) img { height: 260px; }
  [data-layout="bento"] .svc:nth-child(5), [data-layout="bento"] .svc-urgent { grid-column: auto; }
  [data-layout="editorial"] .svc { grid-template-columns: 56px 1fr; }
  [data-layout="editorial"] .svc p, [data-layout="editorial"] .svc-urgent .text-link { grid-column: 2; }
  [data-layout="editorial"] .gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .preview-bar { font-size: 12px; }
  [data-layout="bold"] .hero { min-height: 0; }
  [data-layout="bold"] .hero-grid { padding-block: 56px 48px; }
  .hero-actions .btn { width: 100%; }
  .svc-grid, [data-layout="bento"] .svc-grid { grid-template-columns: 1fr; }
  [data-layout="bento"] .svc-photo:nth-child(1), [data-layout="bento"] .svc-photo:nth-child(2) { grid-column: auto; }
  [data-layout="bento"] .svc-photo:nth-child(2) { display: flex; flex-direction: column; }
  [data-layout="bento"] .svc-photo:nth-child(2) img { height: 230px; }
  [data-layout="bento"] .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "rate" "call"; }
  [data-layout="split"] .svc { grid-template-columns: 64px 1fr; gap: 0 14px; }
  [data-layout="split"] .svc-ico, [data-layout="split"] .svc-photo img { width: 64px; height: 64px; }
  [data-layout="editorial"] .gallery { grid-template-columns: 1fr; }
  [data-layout="editorial"] .hero-media { aspect-ratio: 4 / 3; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust svg { width: 38px; height: 38px; padding: 8px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery .g1 { grid-row: auto; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .pick { grid-template-columns: 1fr 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .btn-head .long { display: none; }
  .btn-head .short { display: inline; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }
  .nav { gap: 10px; }
  .head-actions { gap: 6px; }
  .logo-text b { font-size: 18px; }
  .logo-mark { width: 36px; height: 36px; }
  .sticky-call { display: block; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .sticky-call.show { opacity: 1; transform: none; pointer-events: auto; }
  .why-photo::after { inset: 16px -10px -10px 16px; }
}

/* Phones: the header keeps just the name and two round buttons on one line.
   The call button gives way because the hero and the floating bar both have one. */
@media (max-width: 480px) {
  .btn-head, .logo-text small { display: none; }
}
@media (max-width: 400px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .logo-text b { font-size: 16px; }
}
