/* =========================================================
   Connelly Contractors LLC — styles
   Palette: deep charcoal/navy, brass/copper accent, off-white
   ========================================================= */
:root {
  --ink: #141a22;          /* deep charcoal-navy */
  --ink-2: #1d2530;
  --ink-3: #2a3442;
  --paper: #f7f4ee;        /* warm off-white */
  --paper-2: #efe9df;
  --white: #ffffff;
  --brass: #c08a4f;        /* warm brass/copper accent */
  --brass-dark: #9a6a35;   /* accessible on light backgrounds */
  --brass-light: #e2b884;
  --text: #2a2f36;
  --muted: #5b636e;
  --muted-light: #b6bdc7;
  --line: rgba(20, 26, 34, .1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(20, 26, 34, .25);
  --shadow-lg: 0 30px 60px -20px rgba(20, 26, 34, .35);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--brass); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(192, 138, 79, .7); }
.btn-accent:hover { background: var(--brass-light); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: .7em 1.2em; font-size: .92rem; }
.btn-lg { padding: 1.1em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-dark); margin-bottom: 1rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--brass-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(20, 26, 34, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px -10px rgba(0,0,0,.5); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brass-light), var(--brass)); color: var(--ink);
  font: 700 1.05rem/1 var(--font-display); letter-spacing: .02em;
}
.brand-text { font: 600 1.2rem/1.05 var(--font-display); display: flex; flex-direction: column; }
.brand-text span { font: 500 .68rem/1.4 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.primary-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  white-space: nowrap;
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .5em .8em; border-radius: 8px; position: relative; transition: color .2s;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav a:not(.btn):hover, .primary-nav a.active { color: var(--white); }
.primary-nav a:not(.btn):hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav .btn { margin-left: .6rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,18,24,.94) 0%, rgba(14,18,24,.78) 42%, rgba(14,18,24,.35) 100%), linear-gradient(0deg, rgba(14,18,24,.6), transparent 40%); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17ch; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(255,255,255,.86); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none; padding: 1.5rem 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,.18); max-width: 620px; }
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font: 600 1.6rem/1.2 var(--font-display); color: var(--white); }
.hero-badges span { font-size: .85rem; color: rgba(255,255,255,.72); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--brass-light); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section-dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 4rem; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }
.section-lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 0; }
.section-dark .section-lead { color: var(--muted-light); }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(192,138,79,.45); }
.benefit-card p { color: var(--muted); margin: 0; }
.icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); margin-bottom: 1.4rem; transition: background-color .3s; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brass-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card:hover .icon { background: var(--brass); }
.benefit-card:hover .icon svg { stroke: var(--ink); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; margin-bottom: 6rem; }
.trust-media { position: relative; }
.trust-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-position: center 70%; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.trust-stamp {
  position: absolute; right: -18px; bottom: 32px; background: var(--brass); color: var(--ink);
  padding: 1.2rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.trust-stamp strong { font: 600 1.3rem/1.1 var(--font-display); }
.trust-stamp span { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.trust-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.trust-list li { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255,255,255,.9); }
.check { flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(192,138,79,.18); border: 1px solid var(--brass); position: relative; margin-top: 2px; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--brass-light); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.process-title { font: 600 1.6rem/1.2 var(--font-display); margin-bottom: 2rem; }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: none; }
.process li { background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); padding: 2rem 1.7rem; position: relative; transition: transform .35s var(--ease), border-color .35s; }
.process li:hover { transform: translateY(-6px); border-color: rgba(192,138,79,.5); }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 3rem; right: -1.5rem; width: 1.5rem; height: 2px; background: linear-gradient(90deg, var(--brass), transparent); }
.step-num { display: block; font: 600 2.4rem/1 var(--font-display); color: var(--brass); margin-bottom: 1rem; }
.process h4 { font-size: 1.2rem; }
.process p { color: var(--muted-light); margin: 0; font-size: .97rem; }

/* ---------- Process photos ---------- */
.process-media { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 3rem; align-items: center; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.08); }
.process-media h4 { font: 600 1.5rem/1.2 var(--font-display); }
.process-media p { color: var(--muted-light); margin: 0; }
.process-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 420px; }

/* ---------- Before & After sliders ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ba { margin: 0; }
.ba-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--ink-3); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.ba-handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; font: 700 1.3rem/1 var(--font-sans); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ba-tag { position: absolute; top: 14px; padding: .35em .8em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(20,26,34,.78); color: var(--white); pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba-frame:focus-within { outline: 3px solid var(--brass); outline-offset: 4px; }
.ba figcaption { margin-top: 1rem; font: 600 1.2rem/1.3 var(--font-display); color: var(--ink); }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 1rem; grid-auto-flow: dense; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; background: var(--ink-3); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g-item::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1rem;
  color: var(--white); font-weight: 500; font-size: .95rem;
  background: linear-gradient(transparent, rgba(14,18,24,.85)); opacity: 0; transform: translateY(10px);
  transition: opacity .4s, transform .4s var(--ease);
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-big { grid-column: span 2; grid-row: span 2; }
.project-title { font: 600 1.35rem/1.2 var(--font-display); margin: 3rem 0 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.section-head + .project-title { margin-top: 0; }
.project-title span { font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); }
.gallery-row { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
.gallery-row-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 380px; }
.g-item img.focus-bottom { object-position: center 85%; }
.g-item img.focus-top { object-position: center 20%; }
.photo-note { margin: 1.2rem 0 0; font-size: .85rem; color: var(--muted); font-style: italic; }
.section-dark .photo-note { color: var(--muted-light); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-card.featured { grid-column: span 2; background: var(--ink); border-color: var(--ink); padding: 2.2rem 2rem; }
.service-card.featured h3 { color: var(--white); font: 600 1.6rem/1.2 var(--font-display); }
.service-card.featured p { color: var(--muted-light); font-size: 1rem; }

.service-cta { grid-column: 1 / -1; text-decoration: none; background: linear-gradient(135deg, var(--brass-light), var(--brass)); border-color: transparent; display: flex; flex-direction: column; justify-content: center; padding-right: 4.5rem; }
.service-cta h3 { color: var(--ink); font: 600 1.35rem/1.2 var(--font-display); }
.service-cta p { color: var(--ink-3); }
.service-cta::before { background: var(--ink); }
.cta-arrow { position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--ink); transition: transform .3s var(--ease); }
.service-cta:hover .cta-arrow { transform: translate(6px, -50%); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: var(--ink-2); border: 1px dashed rgba(226,184,132,.4); border-radius: var(--radius-lg); padding: 2.2rem 2rem; position: relative; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 1rem 0 1.5rem; font: 500 1.12rem/1.55 var(--font-display); color: rgba(255,255,255,.9); flex: 1; }
.testimonial figcaption { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.testimonial figcaption strong { color: var(--white); }
.testimonial figcaption span { font-size: .88rem; color: var(--muted-light); }
.sample-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; background: rgba(226,184,132,.15); color: var(--brass-light); border: 1px solid rgba(226,184,132,.4); margin-right: .5rem; vertical-align: middle; }
.testimonial .sample-tag { align-self: flex-start; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ci-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); padding-top: .2em; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--brass-dark); }
.contact-list em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .85rem; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.estimate-form h3 { font: 600 1.6rem/1.2 var(--font-display); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
label span { color: var(--brass-dark); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid #d9d3c8; border-radius: 10px; padding: .85em 1em; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #8a9099; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); background: var(--white); box-shadow: 0 0 0 4px rgba(192,138,79,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; background: #fff7f6; }
.error { color: #b3261e; font-size: .85rem; margin: .35rem 0 0; min-height: 0; }
.error:empty { display: none; }
.form-fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success:focus { outline: none; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--brass); display: grid; place-items: center; margin: 0 auto 1.4rem; animation: pop .5s var(--ease); }
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font: 600 2rem/1.2 var(--font-display); }
.form-success p { color: var(--muted); max-width: 40ch; margin: 0 auto 1.6rem; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: #0e1218; color: var(--muted-light); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-tag { margin-top: 1.2rem; max-width: 34ch; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.6rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,13,18,.94); display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; opacity: 0; transition: opacity .3s; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lightbox button:hover { background: var(--brass); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-header .brand { position: relative; z-index: 2; }
  .primary-nav {
    position: fixed; inset: 0; background: var(--ink); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .primary-nav.open { opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: .8rem; }
  .primary-nav a:not(.btn) { font-size: 1.5rem; font-family: var(--font-display); }
  .primary-nav .btn { margin: 1rem 0 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 960px) {
  .benefit-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-media { grid-template-columns: 1fr; }
  .process-gallery { grid-auto-rows: 320px; }
  .ba-grid { grid-template-columns: 1fr; }
  .trust-media img { aspect-ratio: 4 / 5; max-height: 560px; }
  .trust-stamp { right: 16px; }
  .section-head.split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery .g-item:last-child:nth-child(odd) { grid-column: span 2; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-row-2 { grid-auto-rows: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .container { width: calc(100% - 36px); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(14,18,24,.82), rgba(14,18,24,.9)); }
  .hero-ctas .btn { width: 100%; }
  .hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-badges strong { font-size: 1.3rem; }
  .benefit-grid, .testimonial-grid, .service-grid, .process { grid-template-columns: 1fr; }
  .service-card.featured, .service-cta { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: .6rem; }
  .gallery-row-2 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .process-gallery { grid-auto-rows: 240px; }
  .g-wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

#testimonials .section-lead a{color:#c08a4f;text-decoration:underline;text-underline-offset:3px}
