/* Lights & Rescue — production one-pager
   Palette: #8B1A1A · #141414 · #FFFFFF · #F8F6F4 · #DCD2CD · #FFE4A0 (lights only)
*/

:root {
  --red: #8B1A1A;
  --red-hover: #6e1414;
  --near-black: #141414;
  --white: #FFFFFF;
  --soft: #F8F6F4;
  --hairline: #DCD2CD;
  --warm: #FFE4A0;
  --muted: #5c5550;
  --hero-dark: #14141c;
  --radius: 6px;
  --max: 1120px;
  --narrow: 680px;
  --header-h: 64px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lights circle { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.header-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.15rem;
}
.header-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink, #1a1a1a);
}
.header-brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #666);
}
@media (max-width: 520px) {
  .header-brand-tag {
    display: none;
  }
  .header-brand-name {
    font-size: 0.95rem;
  }
}


.header-nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.header-nav a {
  color: var(--near-black);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-nav a:hover {
  color: var(--red);
}

.header-phone {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--red-hover);
}

@media (min-width: 768px) {
  .header-logo img {
    width: 56px;
    height: 56px;
  }

  .header-nav {
    display: flex;
  }

  .header-phone {
    margin-left: 0;
  }
}

/* ——— Shared section chrome ——— */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-inner.narrow {
  max-width: var(--narrow);
}

.section-inner.centered {
  text-align: center;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--near-black);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  background: #0b0b10;
  border-bottom: 1px solid var(--hairline);
  color: #f5f2ea;
}

.hero-copy {
  padding: 2.75rem 1.35rem 2.25rem;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  color: #f5f2ea;
}

.hero-copy .eyebrow,
.hero-copy .section-label,
.hero .eyebrow {
  color: #e8c48a;
}

.hero-copy h1 {
  color: #fff;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 1rem 0 1.25rem;
}

.hero-sub,
.hero-tagline,
.hero-phone,
.hero-areas,
.hero-trust,
.hero-copy p {
  color: rgba(245, 242, 234, 0.86);
}

.hero-phone a {
  font-weight: 600;
  text-decoration: none;
  color: #ffd8a8;
}

.hero-phone a:hover {
  text-decoration: underline;
}

.hero-actions {
  margin-bottom: 1.25rem;
}

.hero-visual {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #0b0b10;
  min-height: 280px;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  object-position: center 40%;
}

@media (min-width: 900px) {
  .hero {
    /* Photo gets the stage */
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.25fr);
    min-height: calc(100vh - var(--header-h));
    max-height: 820px;
  }

  .hero-copy {
    margin: 0;
    max-width: none;
    padding: 4rem 3rem 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--red);
    background: #0b0b10;
  }

  .hero-visual {
    min-height: 100%;
    padding: 0;
  }

  .hero-photo {
    min-height: 100%;
    max-height: none;
    height: 100%;
  }
}

/* Install gallery */
.installs {
  background: #0f0f14;
  color: #f5f2ea;
  padding: 3.25rem 0 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.installs .section-inner {
  text-align: center;
}
.installs .installs-heading {
  margin: 0 0 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.installs .installs-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--red);
  border-radius: 2px;
}
.installs-closer {
  margin: 1.75rem auto 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  color: rgba(245, 242, 234, 0.9);
}
.install-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .install-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}
.install-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.install-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.install-grid a:hover img,
.install-grid figure:hover img {
  transform: scale(1.03);
}

/* ——— Story ——— */
.story {
  background: var(--white);
}

.story-body p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.story-body .lead {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--near-black);
  line-height: 1.5;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* ——— Services ——— */
.services {
  background: var(--soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.service-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}

.service-accent {
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  background: var(--red);
  border-radius: 0 2px 2px 0;
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Second row of three cards centers under the first four */
  .service-grid .service-card:nth-child(5) {
    grid-column: 1 / 2;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ——— Area ——— */
.area {
  background: var(--near-black);
  color: var(--white);
}

.area h2 {
  color: var(--white);
}

.area p {
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36em;
  margin-inline: auto;
}

.area a {
  color: var(--warm);
  font-weight: 600;
  text-decoration: none;
}

.area a:hover {
  text-decoration: underline;
  color: var(--white);
}

.area a:focus-visible {
  outline-color: var(--warm);
}

/* ——— Trust line under services ——— */
.trust-line {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--near-black);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  max-width: 42em;
}

/* ——— Area scarcity ——— */
.area-scarcity {
  margin: 1.25rem auto 0 !important;
  font-size: 0.9375rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 34em;
}

/* ——— Proof note (replaces fake testimonial) ——— */
.proof-note {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.proof-note p {
  margin: 0;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ——— Quote / CTA ——— */
.quote {
  background: var(--soft);
}

.quote-grid {
  display: grid;
  gap: 2.5rem;
}

.quote-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.quote-phone {
  font-size: 1.0625rem !important;
  color: var(--near-black) !important;
}

.phone-link {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--red);
}

.phone-link:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

.quote-sms {
  margin: 1.25rem 0 !important;
}

.form-note {
  font-size: 0.875rem !important;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.form-intro {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--near-black);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--near-black);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--near-black);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: #c4b8b1;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-disclaimer code {
  font-size: 0.7rem;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3.5rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--near-black);
}

.footer-contact {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-contact a {
  font-weight: 600;
  text-decoration: none;
}

.footer-domain {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

.footer-domain a {
  color: var(--muted);
  text-decoration: none;
}

.footer-domain a:hover {
  color: var(--red);
}

.quote-card-lead {
  margin: 0 0 1rem;
  color: inherit;
  opacity: 0.9;
}
.quote-call {
  margin: 0.75rem 0 0;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  text-decoration: none;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  opacity: 0.85;
}

@media (max-width: 899px) {
  .hero--photo {
    display: flex;
    flex-direction: column;
  }
  .hero--photo .hero-visual {
    order: -1;
  }
  .hero--photo .hero-photo {
    max-height: 52vh;
    min-height: 240px;
  }
}

/* Slim header — logo lives in hero */
.site-header--slim .header-inner {
  justify-content: space-between;
  min-height: 52px;
  padding: 0.65rem 1.25rem;
}
.site-header--slim .header-nav {
  display: flex;
  gap: 1rem;
}
.site-header--slim .header-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink, #1a1a1a);
}
.site-header--slim .header-nav a:hover {
  color: var(--red, #8B1A1A);
}

/* Large hero logo lockup */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}
.hero-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.hero-brand-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.78);
}
@media (min-width: 900px) {
  .hero-logo {
    width: 260px;
  }
  .hero-brand {
    margin-bottom: 1.75rem;
  }
}
/* On light hero fallback (if any) */
.hero:not(.hero--photo) .hero-brand-tag {
  color: var(--muted, #666);
}



/* Transparent logo — no square plate */
.hero-logo,
.footer-logo img,
.header-logo img {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.hero-logo {
  /* SVG already includes wordmark; keep size generous */
  width: min(280px, 70vw);
  height: auto;
  max-width: 100%;
}
@media (min-width: 900px) {
  .hero-logo {
    width: 300px;
  }
}


/* Full-bleed dark hero — entire section black, photo as atmosphere */
.hero.hero--photo {
  position: relative;
  background: #0b0b10;
  color: #f5f2ea;
  isolation: isolate;
}
.hero.hero--photo .hero-copy {
  position: relative;
  z-index: 2;
  background: #0b0b10 !important;
  border-left: 3px solid var(--red);
}
.hero.hero--photo .hero-visual {
  background: #0b0b10;
}
@media (min-width: 900px) {
  .hero.hero--photo {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.2fr);
  }
  .hero.hero--photo .hero-copy {
    background: #0b0b10 !important;
    /* kill semi-transparent gradient that made left look different from right */
  }
  .hero.hero--photo .hero-visual {
    order: 0;
  }
}
/* Mobile: photo on top still sits on black */
@media (max-width: 899px) {
  .hero.hero--photo {
    background: #0b0b10;
  }
  .hero.hero--photo .hero-copy {
    background: #0b0b10 !important;
    border-left: none;
    border-top: 3px solid var(--red);
    padding-top: 2rem;
  }
}
