/* Mike's Lights
   -------------
   Direction: dusk. Every photograph Mike has is from the hour the lights
   come on, so the site lives there — deep blue night, warm glow, his own
   work carrying it.

   The Christmas cues are deliberately deep rather than bright: evergreen
   and cranberry instead of pillar-box red and grass green. Bright primaries
   would read as a seasonal flyer; these read as a service you'd trust on
   your roof. The photos supply all the festivity the page needs, so the
   colour around them stays restrained.

   Type is Fraunces for display — warm, high-contrast, a little bit of
   character in the serifs, which reads "established" rather than "guy with
   a ladder" — and DM Sans for everything that has to be read quickly.

   Mobile is the real target. Most visitors arrive on a phone, often
   standing in a driveway looking at a house, so the phone number is pinned
   to the bottom of the screen at all times and every tap target clears
   44px. Single theme by choice: this design commits to the dark. */

:root {
  --night:      #070B16;
  --night-2:    #0C1424;
  --panel:      #121C30;
  --panel-2:    #16233B;
  --line:       #1E2C45;
  --line-hot:   #2B3C5A;

  --warm:       #FFF6E3;   /* the colour of the bulbs themselves */
  --gold:       #FFC46B;
  --gold-rgb:   255, 196, 107;
  --pine:       #14452F;
  --pine-lift:  #1D6244;
  --cranberry:  #A32D2D;
  --cran-lift:  #C64040;

  --text:       #F2F1EC;
  --muted:      #9BA5B8;
  --dim:        #6B7689;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --callbar: 74px;          /* height the sticky phone bar reserves */

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* An element carrying `hidden` must STAY hidden even when a component rule
   further down sets its own display. The browser's own [hidden] rule has
   the same weight as a class, so `.lightbox { display: grid }` quietly beat
   it and left a full-screen overlay at z-index 100 sitting over the page at
   opacity 0 — invisible, but swallowing every click on the site, the
   phone links included. !important is the right tool here: nothing should
   ever out-rank `hidden`. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm pools behind everything. Carries the page on its own if the bokeh
   canvas never starts. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 600px at 78% 4%, rgba(var(--gold-rgb), .10), transparent 62%),
    radial-gradient(800px 700px at 8% 44%, rgba(20, 69, 47, .22), transparent 64%),
    radial-gradient(1000px 800px at 60% 104%, rgba(163, 45, 45, .10), transparent 66%),
    var(--night);
}

#bokeh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; background: var(--gold); color: #10131A; padding: 10px 16px; border-radius: 4px; z-index: 60; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
.star { color: var(--cran-lift); font-size: 11px; }
.lede { color: var(--muted); font-size: clamp(16.5px, 2vw, 19px); max-width: 62ch; }

/* ---- top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--gutter);
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; margin-right: auto; min-height: 44px; }
.brand .bulb { width: 17px; height: 23px; color: var(--gold); flex: none; filter: drop-shadow(0 0 7px rgba(var(--gold-rgb), .65)); }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--text); }
/* Phone links are the whole conversion path on this site, so every one of
   them clears the 44px minimum tap target — including when the label
   collapses to an icon on a narrow screen. */
.topcall {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pine); color: var(--warm);
  border: 1px solid var(--pine-lift);
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  white-space: nowrap;
}
.topcall:hover { background: var(--pine-lift); }
.topcall svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 860px) { .topnav { display: none; } }
@media (max-width: 560px) { .topcall span { display: none; } .topcall { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; } }

/* ---- hero ------------------------------------------------------------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: center 58%; }
/* Deep at the bottom where the copy sits, clear at the top so the roofline
   and the dusk sky still read. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,22,.62) 0%, rgba(7,11,22,.15) 26%, rgba(7,11,22,.72) 62%, var(--night) 100%),
    radial-gradient(70% 60% at 22% 84%, rgba(7,11,22,.7), transparent 70%);
}
.hero-body { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vw, 76px); width: 100%; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(44px, 9vw, 92px); margin-bottom: 18px; text-shadow: 0 2px 30px rgba(7,11,22,.6); }
.hero .lede { color: #DCE2EC; max-width: 50ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--gold); color: #17120A;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .5), 0 10px 30px -12px rgba(var(--gold-rgb), .8);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); background: #FFD08A; box-shadow: 0 14px 34px -12px rgba(var(--gold-rgb), .9); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.big { min-height: 62px; font-size: 20px; padding: 0 34px; margin-top: 26px; }

/* ---- light string divider --------------------------------------------- */
/* Drawn by lights.js into these containers. Purely decorative: if the
   script never runs the sections simply butt together. */
.string { height: 46px; margin-block: clamp(46px, 7vw, 76px) 0; position: relative; }
.string svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---- sections --------------------------------------------------------- */
section { padding-block: clamp(52px, 8vw, 92px); }
section h2 { font-size: clamp(30px, 5.4vw, 52px); margin-block: 14px 20px; }

.promise .big {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--text); max-width: 56ch;
  line-height: 1.55;
}
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.ticks li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pine); color: var(--warm);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1px solid var(--pine-lift);
}

/* ---- gallery ---------------------------------------------------------- */
.work .wrap { margin-bottom: 34px; }
.gallery {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shot { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.shot.tall img { aspect-ratio: 4 / 3; }
.shot:hover img { transform: scale(1.035); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  padding: 26px 14px 11px;
  font-size: 13px; color: #E6E9F0;
  background: linear-gradient(180deg, transparent, rgba(7,11,22,.85));
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .shot.tall { grid-row: span 2; }
  .shot.tall img { aspect-ratio: 4 / 6.2; }
}

/* ---- what's included -------------------------------------------------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); margin-top: 34px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px 24px;
}
/* A lit edge along the top of each card — the same warm line as a roofline. */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8;
}
.card .num {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  color: var(--cran-lift); letter-spacing: .12em; display: block; margin-bottom: 14px;
}
.card h3 { font-size: 21px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15.5px; }
.fineprint { margin-top: 26px; font-size: 14.5px; color: var(--dim); max-width: 60ch; }

/* ---- steps + area ----------------------------------------------------- */
.steplist { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.steplist li { display: flex; gap: 18px; align-items: flex-start; }
.sn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  background: var(--cranberry); color: var(--warm);
  border: 1px solid var(--cran-lift);
  box-shadow: 0 0 22px -6px rgba(198, 64, 64, .8);
}
.steplist h3 { font-size: 20px; margin-bottom: 5px; }
.steplist p { color: var(--muted); font-size: 15.5px; max-width: 54ch; }

.area {
  margin-top: 44px; padding: 26px;
  border: 1px solid var(--pine-lift); border-radius: 12px;
  background: linear-gradient(160deg, rgba(29,98,68,.22), rgba(20,69,47,.10));
}
.area h3 { font-size: 21px; margin-bottom: 10px; }
.area p { color: var(--muted); max-width: 62ch; }
.area-note { margin-top: 12px; color: var(--warm); font-size: 15px; }

/* ---- close ------------------------------------------------------------ */
.close { text-align: left; }
.close .lede { max-width: 54ch; }

/* ---- footer ----------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 32px; padding-bottom: calc(32px + var(--callbar)); }
.footrow { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.fbrand { font-family: var(--display); font-weight: 700; font-size: 20px; }
.fsmall { font-size: 14px; color: var(--dim); }
.fphone {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
}
.copy { max-width: var(--maxw); margin: 22px auto 0; padding-inline: var(--gutter); }
@media (min-width: 861px) { footer { padding-bottom: 32px; } }

/* ---- sticky call bar (phones) ----------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; gap: 13px;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--cranberry);
  border-top: 1px solid var(--cran-lift);
  color: var(--warm); text-decoration: none;
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,.9);
}
.callbar svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.callbar span { display: flex; flex-direction: column; line-height: 1.25; }
.callbar strong { font-size: 16px; }
.callbar small { font-size: 13.5px; opacity: .85; }
@media (max-width: 860px) { .callbar { display: flex; } }

/* ---- reveals ---------------------------------------------------------- */
/* Opt-in via a class JS adds, so with JS off or reduced motion on every
   section is simply visible rather than parked at opacity 0. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .shot:hover img { transform: none; }
}


/* ---- gallery buttons -------------------------------------------------- */
/* Each photo is a real <button>, so it's reachable by keyboard and
   announces itself, rather than a div with a click handler bolted on. */
.shot-btn {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in;
  position: relative;
}
.shot-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,246,227,.12), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
}
.shot-btn:hover::after { opacity: 1; }

/* ---- lightbox --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease;
  padding: clamp(14px, 3vw, 40px);
  padding-bottom: calc(clamp(14px, 3vw, 40px) + env(safe-area-inset-bottom, 0px));
}
.lightbox.is-open { opacity: 1; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 5, 10, .93);
  backdrop-filter: blur(6px);
}
.lb-stage {
  position: relative; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: min(1100px, 100%); max-height: 100%;
}
.lb-img {
  max-width: 100%;
  /* Leave room for the caption and the controls above and below. */
  max-height: calc(100vh - 190px);
  width: auto; height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-hot);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.95);
  opacity: 0; transition: opacity .25s ease;
}
.lb-img.is-ready { opacity: 1; }
.lb-cap {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  justify-content: center; text-align: center;
  font-size: 15px; color: var(--warm);
}
.lb-count { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }

.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(18, 28, 48, .9);
  border: 1px solid var(--line-hot);
  color: var(--warm);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--pine); border-color: var(--pine-lift); }
.lb-btn:active { transform: scale(.94); }
.lb-close { top: clamp(12px, 2.4vw, 26px); right: clamp(12px, 2.4vw, 26px); }
.lb-prev { left: clamp(10px, 2.4vw, 26px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 2.4vw, 26px); top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.94); }

@media (max-width: 640px) {
  /* On a phone the arrows sit under the photo rather than over it: at the
     edges they land under the thumb that's trying to swipe. */
  .lb-img { max-height: calc(100vh - 230px); }
  .lb-prev, .lb-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: 28%; }
  .lb-next { right: 28%; }
  .lb-prev:active, .lb-next:active { transform: scale(.94); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-img, .lb-btn, .shot-btn::after { transition: none; }
}


/* ---- gallery: see all ------------------------------------------------- */
.gallery-more { display: flex; justify-content: center; margin-top: 22px; }
.gallery-toggle { cursor: pointer; font-family: var(--body); }
.gallery-toggle svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.gallery-toggle.is-open svg { transform: rotate(180deg); }

.shot.is-revealing { animation: shotIn .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes shotIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .shot.is-revealing { animation: none; }
  .gallery-toggle svg { transition: none; }
}
