/* =====================================================================
   besttopremodeling.com: shared design system
   Built on the local-design base (sharp corners, strong hierarchy,
   high contrast). One stylesheet, four themes set on <body>:
   .theme-hub, .theme-kitchen, .theme-painting, .theme-roofing
   ===================================================================== */

:root {
  --navy: #0E1A33;
  --navy-2: #16233F;
  --brand: #1F4E9E;
  --accent: #C6A15B;
  --accent-ink: #0E1A33;
  --accent-text: #8A6A2F;
  --accent-on-dark: #C6A15B;
  --strip: #16233F;
  --ink: #0E1A33;
  --body: #3D4659;
  --muted: #5B6476;
  --line: #E3E1DA;
  --line-dark: rgba(255, 255, 255, 0.14);
  --bg: #FFFFFF;
  --bg-alt: #F7F3EA;
  --input-bg: #FFFFFF;
  --input-line: #CBD2DE;
  --success: #15803D;
  --error: #B91C1C;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-hero: var(--font-heading);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --h-weight: 900;
  --h3-weight: 800;
  --h-tracking: -0.02em;
  --h2-transform: none;
  --hero-h1-weight: 900;
  --hero-h1-size: clamp(2.25rem, 5vw, 3.75rem);
  --hero-h1-lh: 1.05;
  --btn-weight: 800;
  --btn-tracking: 0.05em;
  --btn-size: 0.9375rem;
  --btn-font: var(--font-heading);
  --overline-tracking: 0.12em;

  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.4rem);

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem;
  --container: 1240px;
  --narrow: 820px;
  --radius: 0;
}

/* ---------- Themes ---------- */
.theme-kitchen, .theme-hub {
  --navy: #0E1A33;
  --navy-2: #16233F;
  --brand: #0E1A33;
  --accent: #C6A15B;
  --accent-ink: #0E1A33;
  --accent-text: #85652A;
  --accent-on-dark: #D2B072;
  --strip: #16233F;
  --ink: #0E1A33;
  --body: #3B4457;
  --bg-alt: #F7F3EA;
  --line: #E6DFCF;
  --input-bg: #FBF8F2;
  --input-line: #DCD3C0;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-hero: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --h-weight: 500;
  --h3-weight: 500;
  --h-tracking: -0.01em;
  --hero-h1-weight: 500;
  --hero-h1-size: clamp(2.75rem, 6.2vw, 4.9rem);
  --hero-h1-lh: 1.02;
  --btn-font: var(--font-body);
  --btn-weight: 600;
  --btn-tracking: 0.16em;
  --btn-size: 0.8125rem;
  --overline-tracking: 0.22em;
}
.theme-painting {
  --navy: #0F1F3D;
  --navy-2: #13284D;
  --brand: #1F4E9E;
  --accent: #F4B631;
  --accent-ink: #0F1F3D;
  --accent-text: #1F4E9E;
  --accent-on-dark: #F4B631;
  --strip: #1F4E9E;
  --ink: #0F1F3D;
  --body: #3D4859;
  --bg-alt: #F6F7FA;
  --line: #DCE1E8;
}
.theme-roofing {
  --navy: #13294B;
  --navy-2: #1A3459;
  --brand: #2E4A72;
  --accent: #B8572A;
  --accent-ink: #FFFFFF;
  --accent-text: #A0461C;
  --accent-on-dark: #E59468;
  --strip: #2E4A72;
  --ink: #13294B;
  --body: #3C4757;
  --bg-alt: #F3F5F8;
  --line: #DCE2EA;
  --h2-transform: uppercase;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--h-weight);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: var(--h-tracking);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: var(--fs-h2); text-transform: var(--h2-transform); }
h3 { font-size: var(--fs-h3); font-weight: var(--h3-weight); line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; }
.theme-kitchen h4, .theme-hub h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}
.theme-kitchen .overline::before, .theme-hub .overline::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.theme-painting .overline::before { content: ""; width: 10px; height: 10px; background: var(--accent); box-shadow: 12px 0 0 var(--brand); margin-right: 12px; }
.theme-roofing .overline::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: skewX(-20deg); }
.on-dark .overline, .section-dark .overline, .hero .overline, .hub-hero .overline, .page-hero .overline, .form-band .overline, .cta-band .overline { color: var(--accent-on-dark); }

.lead { font-size: 1.125rem; color: var(--body); max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 480px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2rem; } }
.narrow { max-width: var(--narrow); }
.section { padding-block: var(--s-6); }
@media (min-width: 768px) { .section { padding-block: var(--s-7); } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: var(--s-5); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .overline { justify-content: center; }
.section-head p { margin-top: var(--s-2); font-size: 1.0625rem; }
.section-head h2 + p { margin-top: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--btn-font); font-weight: var(--btn-weight); font-size: var(--btn-size);
  letter-spacing: var(--btn-tracking); text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 0; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--navy); color: #fff; border-color: var(--accent); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.theme-kitchen .btn-ghost, .theme-hub .btn-ghost { border-color: var(--accent); color: var(--accent-on-dark); border-width: 1px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--navy); color: rgba(255,255,255,0.86); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.announce .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; padding-block: 0.4rem; }
.announce a { color: var(--accent-on-dark); text-decoration: none; font-weight: 700; white-space: nowrap; }
.announce .announce-hours { display: none; }
@media (min-width: 900px) { .announce .announce-hours { display: block; } }
@media (max-width: 599px) { .announce .container { justify-content: center; text-align: center; } .announce .announce-phone { display: none; } }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); line-height: 1; min-width: 0; }
.logo-img { height: 40px; width: auto; flex: none; }
.theme-roofing .logo-img { height: 30px; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 380px) { .logo-img { height: 32px; } .theme-roofing .logo-img { height: 24px; } .logo-tag { display: none; } }
.logo-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; letter-spacing: -0.01em; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; }
.logo-tag { font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }
.theme-kitchen .logo-name, .theme-hub .logo-name { font-weight: 500; font-size: 1.35rem; letter-spacing: 0.08em; }
.theme-painting .logo-mark { width: 10px; height: 22px; background: var(--brand); box-shadow: 4px 0 0 var(--accent); margin-right: 4px; }
.theme-roofing .logo-mark { width: 22px; height: 22px; background: var(--navy); clip-path: polygon(0 100%, 50% 15%, 100% 100%, 78% 100%, 50% 52%, 22% 100%); position: relative; }
.theme-roofing .logo-name .logo-mark { background: var(--accent); }
@media (min-width: 480px) { .logo-name { font-size: 1.35rem; } .theme-kitchen .logo-name, .theme-hub .logo-name { font-size: 1.5rem; } }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; padding: 0; display: flex; gap: 1.75rem; }
.primary-nav a { text-decoration: none; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.theme-kitchen .primary-nav a, .theme-hub .primary-nav a { font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.theme-painting .header-call { background: var(--brand); }
.header-call:hover { background: var(--accent); color: var(--accent-ink); }
.header-call svg { width: 16px; height: 16px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 479px) { .header-call .num { display: none; } .header-call { padding: 0.7rem 0.85rem; } }
@media (min-width: 1024px) { .primary-nav { display: block; } .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.5rem 0 1rem; }
.mobile-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Review strip ---------- */
.review-strip { background: var(--strip); color: #fff; font-size: 0.8125rem; }
.review-strip .container { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 44px; padding-block: 0.5rem; text-align: center; flex-wrap: wrap; }
.review-strip strong { color: var(--accent-on-dark); }
.theme-kitchen .review-strip, .theme-hub .review-strip { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; border-bottom: 1px solid rgba(198,161,91,0.25); }
.stars { display: inline-flex; gap: 2px; color: var(--accent-on-dark); }
.theme-painting .stars, .theme-roofing .stars { color: #F4B631; }
.stars svg { width: 15px; height: 15px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.breadcrumbs ol { list-style: none; padding: 0.7rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; background: var(--navy); color: rgba(255,255,255,0.86); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--navy) 0%, rgba(14,26,51,0.9) 40%, rgba(14,26,51,0.5) 100%); }
.theme-painting .hero::after, .theme-painting .page-hero::after { background: linear-gradient(100deg, #0F1F3D 0%, rgba(15,31,61,0.9) 42%, rgba(31,78,158,0.45) 100%); }
.theme-roofing .hero::after, .theme-roofing .page-hero::after { background: linear-gradient(100deg, #13294B 0%, rgba(19,41,75,0.9) 42%, rgba(19,41,75,0.5) 100%); }
.hero .container, .page-hero .container { display: grid; gap: var(--s-5); padding-block: var(--s-5); align-items: center; }
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; padding-block: var(--s-7); gap: var(--s-6); }
  .page-hero .container { grid-template-columns: 1.15fr 0.85fr; padding-block: var(--s-6); gap: var(--s-6); }
}
.hero h1, .page-hero h1 { color: #fff; font-family: var(--font-hero); font-weight: var(--hero-h1-weight); font-size: var(--hero-h1-size); line-height: var(--hero-h1-lh); margin-bottom: var(--s-3); text-wrap: balance; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.theme-kitchen .page-hero h1, .theme-hub .page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
.hero .subhead, .page-hero .subhead { font-size: 1.125rem; max-width: 56ch; color: rgba(255,255,255,0.84); margin-bottom: var(--s-4); }
.theme-kitchen .hero .subhead, .theme-kitchen .page-hero .subhead { font-weight: 300; }
.check-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin-bottom: var(--s-4); }
@media (min-width: 640px) { .check-list.two { grid-template-columns: 1fr 1fr; gap: 0.85rem 1.5rem; } }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: #fff; font-weight: 500; font-size: 0.9375rem; line-height: 1.45; }
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--accent-on-dark); margin-top: 1px; }
.theme-painting .check-list svg, .theme-roofing .check-list svg { background: var(--accent); color: var(--accent-ink); padding: 3px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-rule { border: 0; border-top: 1px solid rgba(255,255,255,0.15); margin: 0 0 var(--s-3); }

/* ---------- Lead form card ---------- */
.form-card { background: #fff; color: var(--body); padding: var(--s-4) var(--s-3); border-top: 4px solid var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
@media (min-width: 480px) { .form-card { padding: var(--s-4); } }
.theme-painting .form-card { box-shadow: 6px 6px 0 rgba(0,0,0,0.35); }
.form-card .overline { color: var(--accent-text); margin-bottom: 0.5rem; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 0.35rem; text-transform: none; }
.theme-kitchen .form-card h2, .theme-hub .form-card h2 { font-family: var(--font-hero); font-weight: 600; font-size: 2rem; }
.form-card .form-sub { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.field { margin-bottom: var(--s-2); }
.field label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 0; font-size: 1rem; color: var(--ink);
}
.theme-painting .field input, .theme-painting .field select, .theme-roofing .field input, .theme-roofing .field select { border-width: 2px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23334' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin-top: 0.85rem; text-align: center; }
.form-note a { color: var(--ink); font-weight: 700; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 600; margin-bottom: 1rem; }
.form-success h3 { color: var(--success); margin-bottom: 0.5rem; }

/* ---------- Call card (call-only brands) ---------- */
.call-big { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; padding: 1.1rem 1rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-family: var(--font-heading); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.01em; border: 2px solid var(--accent); transition: background-color .15s, color .15s; }
.call-big:hover { background: var(--navy); color: #fff; }
.call-big svg { width: 26px; height: 26px; flex: none; }
.call-points { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 0.6rem; }
.call-points li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; color: var(--ink); }
.call-points svg { flex: none; width: 18px; height: 18px; color: var(--accent-ink); background: var(--accent); padding: 3px; margin-top: 2px; }
.call-inline { max-width: 560px; margin-inline: auto; text-align: center; }
.call-inline .call-big { font-size: clamp(1.6rem, 4vw, 2.2rem); padding-block: 1.25rem; }
.call-inline .form-note { color: rgba(255,255,255,0.8); }
.theme-painting .form-band .call-big:hover { background: #fff; color: var(--navy); }
.mobile-cta.single { grid-template-columns: 1fr; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; border-top: 1px solid var(--line-dark); }
.theme-roofing .trust-bar { border-top: 3px solid var(--accent); }
.trust-bar ul { list-style: none; padding: var(--s-4) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-2); text-align: center; }
@media (min-width: 768px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } .trust-bar li + li { border-left: 1px solid var(--line-dark); } }
.trust-bar li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) { .trust-bar li:last-child:nth-child(odd) { grid-column: auto; } }
.trust-big { display: block; font-family: var(--font-heading); font-weight: var(--h-weight); font-size: clamp(1.25rem, 5.5vw, 1.75rem); line-height: 1.1; color: var(--accent-on-dark); overflow-wrap: anywhere; }
.theme-kitchen .trust-big, .theme-hub .trust-big { font-size: 1.9rem; }
.trust-label { display: block; margin-top: 0.35rem; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.78); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s; }
.service-card:hover { border-color: var(--ink); }
.theme-painting .service-card { border-top: 4px solid var(--brand); }
.theme-painting .service-card:nth-child(even) { border-top-color: var(--accent); }
.service-card .card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .card-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9375rem; color: var(--muted); flex: 1; }
.card-link { margin-top: var(--s-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }

.content-grid { display: grid; gap: var(--s-4) var(--s-5); }
@media (min-width: 900px) { .content-grid { grid-template-columns: 1fr 1fr; } }
.content-item h3 { margin-bottom: 0.6rem; }
.content-item h3 a { text-decoration: none; }
.content-item h3 a:hover { text-decoration: underline; }
.content-item p { margin-bottom: 0.75rem; }
.stat-line { font-size: 0.9375rem; padding: 0.6rem 0 0.6rem 1rem; border-left: 3px solid var(--accent); color: var(--ink); background: linear-gradient(90deg, rgba(0,0,0,0.025), transparent); }
.section-dark .stat-line { color: #fff; }
.content-item .more { font-size: 0.8125rem; font-weight: 700; color: var(--accent-text); }

/* Pillars */
.pillars { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.pillar { padding: var(--s-4) var(--s-3); border: 1px solid var(--line); background: #fff; }
@media (min-width: 900px) { .pillar + .pillar { border-left: 0; } }
.section-dark .pillar { background: transparent; border-color: var(--line-dark); }
.theme-painting .pillar { border-top: 4px solid var(--brand); }
.theme-roofing .pillar { border-top: 4px solid var(--navy); }
.theme-roofing .pillar:nth-child(2) { border-top-color: var(--accent); }
.pillar-stat { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: var(--s-2); }
.pillar-stat .big { font-family: var(--font-heading); font-weight: var(--h-weight); font-size: 2.6rem; line-height: 1; color: var(--brand); }
.theme-kitchen .pillar-stat .big, .theme-hub .pillar-stat .big { color: var(--accent-on-dark); font-size: 2.8rem; }
.theme-kitchen .section:not(.section-dark) .pillar-stat .big { color: var(--accent-text); }
.pillar-stat .label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.section-dark .pillar-stat .label { color: var(--accent-on-dark); }
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.9375rem; }

/* ---------- Mid-page form band ---------- */
.form-band { background: var(--navy); color: rgba(255,255,255,0.85); position: relative; }
.theme-painting .form-band { background: var(--brand); }
.form-band .container { padding-block: var(--s-6); }
.form-band h2 { color: #fff; }
.form-band .section-head { margin-bottom: var(--s-4); }
.inline-form { background: rgba(0,0,0,0.18); border: 1px solid var(--line-dark); padding: var(--s-3); }
.theme-painting .inline-form { background: var(--navy); box-shadow: 6px 6px 0 var(--accent); }
.inline-form .fields { display: grid; gap: var(--s-2); }
@media (min-width: 768px) { .inline-form .fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .inline-form .fields { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.inline-form .field { margin: 0; }
.inline-form label { color: rgba(255,255,255,0.85); }
.inline-form .btn { height: 50px; white-space: nowrap; }
.inline-form .form-note { color: rgba(255,255,255,0.75); }
.inline-form .form-note a { color: #fff; }

/* ---------- Reviews ---------- */
.rating-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--s-4); }
.rating-summary .score { font-family: var(--font-heading); font-size: 3rem; font-weight: var(--h-weight); line-height: 1; color: var(--ink); }
.rating-summary .stars { color: #E7A92B; }
.rating-summary .stars svg { width: 20px; height: 20px; }
.rating-summary p { font-size: 0.9375rem; }
.review-shots { columns: 3 300px; column-gap: var(--s-3); }
.review-shot { background: #fff; border: 1px solid var(--line); padding: 0.75rem; break-inside: avoid; margin-bottom: var(--s-3); }
.review-shot img { width: 100%; height: auto; }

/* ---------- Split (about preview) ---------- */
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media img { width: 100%; height: auto; }
.split-copy p { margin-bottom: var(--s-2); }

/* ---------- Service areas ---------- */
.areas { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas.cols-4 { grid-template-columns: repeat(4, 1fr); } .areas.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.area-group h3 { font-size: 1.1rem; padding-bottom: 0.6rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.section-dark .area-group h3 { color: var(--accent-on-dark); border-color: var(--line-dark); }
.area-group ul { list-style: none; padding: 0; columns: 2; column-gap: 1rem; font-size: 0.9375rem; }
.areas.cols-4 .area-group ul { columns: 1; }
.area-group li { padding: 0.2rem 0; break-inside: avoid; }
.area-group li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 0.6rem; vertical-align: middle; }
.area-group a { text-decoration: none; }
.area-group a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin-inline: auto; }
.faq-list details { background: #fff; border: 1px solid var(--line); margin-bottom: 0.75rem; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.25rem; position: relative; font-family: var(--font-heading); font-weight: var(--h3-weight); font-size: 1.0625rem; color: var(--ink); line-height: 1.4; }
.theme-painting .faq-list summary, .theme-roofing .faq-list summary { font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent-text); font-family: var(--font-body); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 1.25rem 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: rgba(255,255,255,0.85); text-align: center; }
.cta-band .container { padding-block: var(--s-6); }
@media (min-width: 768px) { .cta-band .container { padding-block: var(--s-7); } }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto var(--s-2); }
.cta-band p { max-width: 56ch; margin: 0 auto var(--s-4); font-size: 1.0625rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.theme-roofing .cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy) 70%, var(--navy-2) 70%); }

/* ---------- Article (service pages) ---------- */
.article-layout { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); } }
.prose { max-width: 760px; }
.prose > * + *,
.prose .section-block > * + *,
.prose li > * + * { margin-top: 1.1rem; }
.prose p { line-height: 1.75; }
.prose h2 { margin-top: var(--s-5); margin-bottom: 0.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-3); }
.prose .section-block > h2 + * { margin-top: 0.9rem; }
.prose .section-block > h3 { margin-top: var(--s-4); font-size: 1.25rem; }
.prose .section-block > h3 + * { margin-top: 0.55rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose a { color: var(--accent-text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; }
.prose .section-block { scroll-margin-top: 110px; }
.sidebar { display: grid; gap: var(--s-3); align-content: start; }
@media (min-width: 1024px) { .sidebar-sticky { position: sticky; top: 104px; display: grid; gap: var(--s-3); } }
.side-box { border: 1px solid var(--line); padding: var(--s-3); background: #fff; }
.side-box.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,0.85); }
.side-box.dark h3 { color: #fff; }
.side-box h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.side-box p { font-size: 0.9375rem; margin-bottom: var(--s-2); }
.side-box .btn { width: 100%; }
.side-box .btn + .btn { margin-top: 0.6rem; }
.side-links { list-style: none; padding: 0; }
.side-links li { border-top: 1px solid var(--line); }
.side-links a { display: block; padding: 0.7rem 0; text-decoration: none; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.side-links a:hover { color: var(--accent-text); }
.toc { list-style: none; padding: 0; font-size: 0.875rem; }
.toc a { display: block; padding: 0.35rem 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.sources { margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 0.6875rem; line-height: 1.5; color: var(--muted); opacity: 0.85; }
.sources h2 { font-size: 0.625rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--muted); }
.sources ol { padding-left: 1rem; }
@media (min-width: 900px) { .sources ol { columns: 2; column-gap: var(--s-4); } }
.sources li { break-inside: avoid; margin-bottom: 0.15rem; }
.sources a { color: var(--muted); word-break: break-word; text-decoration-color: rgba(91, 100, 118, 0.35); }
.sources a:hover { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.nap { font-style: normal; display: grid; gap: var(--s-3); }
.nap-row h3 { font-size: 0.75rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.35rem; }
.nap-row a, .nap-row p { font-size: 1.0625rem; color: var(--ink); }
.nap-row .phone { font-family: var(--font-heading); font-size: 1.8rem; font-weight: var(--h-weight); text-decoration: none; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; color: var(--ink); }
.map-embed { border: 1px solid var(--line); aspect-ratio: 4 / 3; width: 100%; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .map-embed.wide { aspect-ratio: 21 / 9; } }
.map-split { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 1024px) { .map-split { grid-template-columns: 5fr 7fr; gap: var(--s-6); } }
.map-split .map-embed { aspect-ratio: 4 / 3; }
.map-facts { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.map-facts li { display: grid; gap: 0.15rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.map-facts strong { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.map-facts a { color: var(--ink); font-weight: 700; text-decoration: none; }
.map-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.section-dark .map-facts li { border-color: var(--line-dark); }
.section-dark .map-facts strong { color: var(--accent-on-dark); }
.section-dark .map-facts a, .section-dark .map-facts span { color: #fff; }
.section-dark .map-note { color: rgba(255,255,255,0.7); }
.section-dark .map-embed { border-color: var(--line-dark); }
.steps { display: grid; gap: var(--s-3); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 3px solid var(--accent); padding-top: var(--s-2); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-text); margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); font-size: 0.9375rem; }
.site-footer .container { padding-block: var(--s-6) var(--s-3); }
.footer-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: var(--s-2); }
.footer-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo img { width: 200px; height: auto; }
.theme-roofing .footer-logo img { width: 150px; }
.footer-tag { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: var(--s-2); }
.site-footer .logo-tag { color: rgba(255,255,255,0.6); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-phone { display: inline-block; margin-top: 0.5rem; font-weight: 700; font-size: 1.125rem; color: #fff !important; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-dark); padding-bottom: 0.45rem; }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.8125rem; color: rgba(255,255,255,0.62); }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom .links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Mobile CTA + FAB ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); transform: translateY(110%); transition: transform .25s ease; }
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; font-weight: 800; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.mobile-cta .call { background: var(--navy); color: #fff; }
.mobile-cta .quote { background: var(--accent); color: var(--accent-ink); }
.mobile-cta svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
.fab-call { display: none; }
@media (min-width: 768px) {
  .fab-call { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .fab-call.visible { opacity: 1; pointer-events: auto; }
  .fab-call svg { width: 24px; height: 24px; }
}
@media (max-width: 767px) { body { padding-bottom: 56px; } }

/* ---------- Hub (three cards only) ---------- */
.theme-hub { background: #0A1326; }
.hub { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; padding-block: clamp(2rem, 6vh, 5rem); overflow: hidden; isolation: isolate; }
.hub::before { content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(38% 45% at 18% 30%, rgba(198,161,91,0.16), transparent 70%),
    radial-gradient(35% 45% at 52% 75%, rgba(31,78,158,0.28), transparent 70%),
    radial-gradient(38% 45% at 85% 28%, rgba(184,87,42,0.18), transparent 70%);
  animation: hubGlow 18s ease-in-out infinite alternate; }
@keyframes hubGlow { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 2%, 0) rotate(4deg); } }
.hub-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.hub-card { --bg: #0E1A33; --acc: #C6A15B; --acc-text: #D2B072;
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: #fff;
  background: var(--bg); border: 1px solid rgba(255,255,255,0.10);
  animation: hubRise 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 150ms + 120ms);
  transition: translate .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, border-color .45s; }
.hub-card:hover, .hub-card:focus-visible { translate: 0 -10px; box-shadow: 0 30px 60px rgba(0,0,0,0.45); border-color: var(--acc); }
@keyframes hubRise { from { opacity: 0; transform: translateY(48px) scale(0.97); } to { opacity: 1; transform: none; } }
.hub-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hub-card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.hub-card:hover .hub-card-media img, .hub-card:focus-visible .hub-card-media img { transform: scale(1.1); }
.hub-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg) 100%); }
.hub-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent); transform: skewX(-18deg); transition: left 0.9s ease; }
.hub-card:hover::before, .hub-card:focus-visible::before { left: 130%; }
.hub-card-body { position: relative; padding: 1.5rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.hub-card-logo { height: 46px; width: auto; align-self: flex-start; margin: -3.4rem 0 0.6rem; position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)); }
.hub-roofing .hub-card-logo { height: 34px; margin-top: -2.8rem; }
.hub-card-trade { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc-text); }
.hub-card h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.hub-card-area { color: rgba(255,255,255,0.75); font-size: 0.9375rem; }
.hub-card-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.8); margin-top: 0.25rem; }
.hub-card-rating .stars { color: #F4B631; }
.hub-card-rating .stars svg { width: 13px; height: 13px; }
.hub-card-cta { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc-text); }
.hub-card-cta svg { width: 18px; height: 18px; transition: transform .35s; }
.hub-card:hover .hub-card-cta svg, .hub-card:focus-visible .hub-card-cta svg { transform: translateX(8px); }
.hub-card-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--acc); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.hub-card:hover .hub-card-bar, .hub-card:focus-visible .hub-card-bar { width: 100%; }
.hub-kitchen h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: 0; }
.hub-painting { --bg: #0F1F3D; --acc: #F4B631; --acc-text: #F4B631; }
.hub-painting h2, .hub-roofing h2 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.hub-roofing { --bg: #13294B; --acc: #B8572A; --acc-text: #E59468; }
.hub-painting .hub-card-media::before, .hub-roofing .hub-card-media::before, .hub-kitchen .hub-card-media::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1; background: var(--acc); }
.hub-bar { background: #0A1326; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hub-bar nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: center; padding-block: 1rem; }
.hub-bar a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hub-bar a:hover { color: #D2B072; }
.hub-footer { background: #0A1326; color: rgba(255,255,255,0.55); font-size: 0.8125rem; border-top: 1px solid rgba(255,255,255,0.08); }
.hub-footer .container { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; padding-block: 1.25rem; }
.hub-footer .links { display: flex; gap: 1.25rem; }
.hub-footer a { color: rgba(255,255,255,0.7); }
.theme-hub .legal { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hub::before, .hub-card { animation: none; } .hub-card::before { display: none; } }
/* 404 page */
.hub-hero { background: var(--navy); color: rgba(255,255,255,0.85); text-align: center; }
.hub-hero .container { padding-block: var(--s-7); }
.hub-hero h1 { color: #fff; font-family: var(--font-hero); font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 auto var(--s-3); }

/* ---------- Legal ---------- */
.legal { padding-block: var(--s-6); }
.legal .prose h2 { font-size: 1.5rem; }

/* ---------- Fine print ---------- */
.fine-print { font-size: 0.75rem; color: var(--muted); padding-block: 1rem; text-align: center; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Project photos (user rule: no captions; only a Before / During / After tag) ---------- */
.photo { position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.photo img { display: block; width: 100%; height: auto; }
.stage-tag { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.4rem 0.65rem; background: rgba(14,26,51,0.88); color: #fff;
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.stage-after { background: var(--accent); color: var(--accent-ink); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-block: var(--s-4); }
.photo-pair .photo, .photo-strip .photo { aspect-ratio: 4 / 3; }
.photo-pair .photo img, .photo-strip .photo img { height: 100%; object-fit: cover; }
.photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .photo-strip { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.split-media .photo { aspect-ratio: 4 / 3; }
.split-media .photo img { height: 100%; object-fit: cover; }
.theme-painting .split-media .photo, .theme-roofing .split-media .photo { aspect-ratio: 4 / 5; }

/* gallery page */
.gallery-jump ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-4); }
.gallery-jump a { display: inline-block; padding: 0.55rem 0.9rem; border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-size: 0.8125rem; font-weight: 600; }
.gallery-jump a:hover { border-color: var(--ink); }
.gallery-head { max-width: 760px; margin-bottom: var(--s-4); }
.gallery-head h2 { font-size: var(--fs-h2); margin-bottom: 0.75rem; }
.gallery-head p { color: var(--body); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-grid .photo { aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-grid .photo img { height: 100%; object-fit: cover; }
.gallery-grid .photo img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-grid .photo:hover img, .gallery-grid .photo:focus-visible img { transform: scale(1.03); }
.gallery-grid .photo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,11,22,0.95); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(92vw, 1440px); max-height: 86vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  width: 52px; height: 52px; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,0.2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }
body.lb-open { overflow: hidden; }

/* header logo on phones: mark + one-line name, no tagline */
@media (max-width: 599px) {
  .logo { gap: 0.5rem; }
  .logo-tag { display: none; }
  .logo-img { height: 32px; }
  .theme-roofing .logo-img { height: 22px; }
  .logo-name, .theme-kitchen .logo-name { font-size: 1rem; white-space: nowrap; }
  .theme-kitchen .logo-name { letter-spacing: 0.04em; }
}
@media (max-width: 359px) { .logo-name, .theme-kitchen .logo-name { font-size: 0.875rem; } }
@media (max-width: 599px) { .theme-painting .logo-name, .theme-roofing .logo-name { font-size: 0.9rem; } }
