/* Stronghold Lighting — site styles */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Public+Sans:wght@400;500;600&display=swap");

:root {
  --night: #18203A;        /* blue hour */
  --night-2: #222C4D;      /* raised panels on dark */
  --night-3: #0F1528;      /* deepest */
  --glow: #FFC56B;         /* porch-light gold */
  --glow-deep: #E9A23B;
  --sky: #E9EDF5;          /* pale twilight */
  --ink: #141A2E;
  --muted: #5B6480;
  --muted-on-dark: #B6BDD3;
  --line: #D3D9E6;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.on-dark .lead, .on-dark p { color: var(--muted-on-dark); }
.on-dark { background: var(--night); color: #fff; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header.solid { position: sticky; top: 0; background: var(--night); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { display: block; font-weight: 500; font-size: .82rem; color: var(--glow); letter-spacing: .02em; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--glow); }
.nav .btn { padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night-3); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 15px 26px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn-glow { background: var(--glow); color: var(--night-3); }
.btn-glow:hover { background: #ffd48f; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; background: var(--night-3); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15,21,40,.88) 0%, rgba(15,21,40,.55) 38%, rgba(15,21,40,0) 70%),
  linear-gradient(180deg, rgba(15,21,40,.6) 0%, rgba(15,21,40,0) 30%, rgba(15,21,40,.5) 80%, rgba(15,21,40,.9) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(15,21,40,.65) 0%, rgba(15,21,40,.55) 40%, rgba(15,21,40,.92) 100%); } }
.hero .wrap { position: relative; z-index: 2; padding-block: 140px 64px; }
.hero h1 { max-width: 15ch; }
.hero p { color: #E4E8F3; font-size: 1.2rem; max-width: 46ch; }

.address-bar { margin-top: 26px; display: flex; gap: 8px; background: rgba(255,255,255,.97); border-radius: 999px; padding: 7px; max-width: 640px; box-shadow: 0 0 0 6px rgba(255,197,107,.18), 0 20px 50px rgba(0,0,0,.35); }
.address-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem var(--body); padding: 0 18px; color: var(--ink); }
.address-bar input:focus { outline: none; }
.address-bar:focus-within { box-shadow: 0 0 0 6px rgba(255,197,107,.45), 0 20px 50px rgba(0,0,0,.35); }
.address-note { font-size: .9rem; color: #C9CFE2 !important; margin-top: 12px; }
@media (max-width: 560px) {
  .address-bar { flex-direction: column; border-radius: 18px; }
  .address-bar input { padding: 14px; }
}

/* the one animated moment: roofline lights switching on */
.roofline { display: flex; gap: 14px; margin-bottom: 26px; }
.roofline i { width: 9px; height: 9px; border-radius: 50%; background: #3a4366; animation: bulb .5s ease forwards; }
.roofline i:nth-child(1){animation-delay:.2s}.roofline i:nth-child(2){animation-delay:.3s}.roofline i:nth-child(3){animation-delay:.4s}
.roofline i:nth-child(4){animation-delay:.5s}.roofline i:nth-child(5){animation-delay:.6s}.roofline i:nth-child(6){animation-delay:.7s}
.roofline i:nth-child(7){animation-delay:.8s}.roofline i:nth-child(8){animation-delay:.9s}.roofline i:nth-child(9){animation-delay:1s}
@keyframes bulb { to { background: var(--glow); box-shadow: 0 0 12px 3px rgba(255,197,107,.65); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sky { background: var(--sky); }
.section-head { margin-bottom: 40px; max-width: 760px; }

/* color picker */
.picker { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.picker-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--night-3); }
.picker-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.picker-photo img.on { opacity: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.swatch { display: flex; align-items: center; gap: 10px; border: 1.5px solid rgba(255,255,255,.18); background: var(--night-2); color: #fff; border-radius: 999px; padding: 9px 16px 9px 10px; font: 500 .95rem var(--body); cursor: pointer; }
.swatch .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.swatch[aria-pressed="true"] { border-color: var(--glow); background: #2c3760; }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } }

/* service rows */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 36px; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc img { border-radius: var(--radius-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc ul { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--muted); }
.svc li { margin-bottom: 4px; }
.svc a.more { font-weight: 600; color: var(--ink); text-decoration-color: var(--glow-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc-media { order: 0; } }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.18); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glow); color: var(--night-3); font: 800 1.1rem var(--display); margin-bottom: 16px; }
.steps h3 { color: #fff; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 8px 2px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(10,14,28,.94); display: none; place-items: center; z-index: 50; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 1.15rem var(--display); padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 500; color: var(--glow-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* call-to-action band */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--night-3); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,21,40,.95) 0%, rgba(15,21,40,.75) 45%, rgba(15,21,40,.2) 100%); }
.cta-band .wrap { z-index: 1; }
.cta-band .wrap { position: relative; padding-block: clamp(70px, 10vw, 130px); }
.cta-band p { color: #E4E8F3; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* page header for inner pages */
.page-head { position: relative; color: #fff; background: var(--night-3); overflow: hidden; }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,21,40,.92) 0%, rgba(15,21,40,.6) 50%, rgba(15,21,40,.25) 100%); }
.page-head .wrap { z-index: 1; }
.page-head .wrap { position: relative; padding-block: 150px 64px; }
.page-head p { color: #E4E8F3; font-size: 1.15rem; }

/* footer */
.site-footer { background: var(--night-3); color: var(--muted-on-dark); padding-block: 56px 36px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--glow); }
.site-footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px; background: rgba(15,21,40,.96); }
  .callbar a { text-align: center; padding: 13px; border-radius: 12px; text-decoration: none; font-weight: 600; }
  body { padding-bottom: 72px; }
}

/* fixes */
.nav .btn[aria-current="page"], .nav .btn:hover { color: var(--night-3); }
.site-footer a.brand { color: #fff; display: inline-flex; padding: 0; }
.nav a.btn { color: var(--night-3); }
