/* Meehan Web Co — one-page site. Forest + gold, mobile first. */

:root {
  --forest: rgb(16, 30, 24);
  --forest-mid: rgb(24, 42, 34);
  --forest-card: rgb(30, 52, 42);
  --forest-line: rgb(52, 78, 62);
  --gold: rgb(201, 160, 74);
  --gold-soft: rgb(222, 190, 110);
  --cream: rgb(244, 238, 224);
  --white: #ffffff;
  --muted: rgb(168, 178, 162);
  --muted-dim: rgb(118, 130, 116);
  --header-h: 4.25rem;
  --space: 1.25rem;
  --max: 70rem;
  --radius: 1.15rem;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --focus: 0 0 0 3px var(--forest), 0 0 0 6px var(--gold-soft);
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2"),
       url("../fonts/Barlow-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Medium.woff2") format("woff2"),
       url("../fonts/Barlow-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"),
       url("../fonts/Barlow-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Bold.woff2") format("woff2"),
       url("../fonts/Barlow-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-ExtraBold.woff2") format("woff2"),
       url("../fonts/Barlow-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Black.woff2") format("woff2"),
       url("../fonts/Barlow-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Barlow, "Segoe UI", Calibri, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--cream);
  background-color: var(--forest);
  background-image:
    radial-gradient(ellipse 80% 55% at 85% -8%, rgba(201, 160, 74, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(30, 52, 42, 0.8), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(244, 238, 224, 0.055) 1px, transparent 0);
  background-size: auto, auto, 22px 22px;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold-soft);
}

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

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--forest);
  border-bottom: 1px solid var(--forest-line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  min-height: 44px;
  flex: 0 1 auto;
}

.logo:hover {
  color: var(--cream);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--cream);
  background: var(--forest-card);
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--forest-line);
  border-radius: 0.65rem;
  background: var(--forest-card);
  color: var(--cream);
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--forest);
  border-bottom: 1px solid var(--forest-line);
  padding: 0.5rem 0.75rem 0.85rem;
  z-index: 120;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.4);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 0.55rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--forest-card);
  color: var(--gold-soft);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

main {
  display: block;
}

section {
  padding: 3.25rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--cream);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8.4vw, 3.05rem);
}

h1 .accent {
  color: var(--gold);
}

@media (min-width: 360px) {
  h1 .accent {
    white-space: nowrap;
  }
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 6.4vw, 2.45rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.gold-rule {
  display: block;
  width: 5.5rem;
  height: 4px;
  margin: 1.05rem 0 1.2rem;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
}

.lede,
.subline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 500;
}

.subline {
  font-size: 1.15rem;
}

.support {
  margin: 0 0 1.15rem;
  color: var(--cream);
  font-size: 1.05rem;
  max-width: 38rem;
}

.aim {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(201, 160, 74, 0.22);
}

.btn:hover {
  background: var(--gold-soft);
  color: var(--forest);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--forest-line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--forest-card);
  color: var(--cream);
  border-color: var(--gold);
}

/* Hero */

#hero {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
}

.promo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 16.5rem);
  max-height: min(52vh, 26.25rem);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: var(--forest-mid);
  border: 1px solid var(--forest-line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.promo figcaption {
  margin-top: 0.7rem;
  color: var(--muted-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* About */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 16rem;
  padding: 1.5rem 1rem;
  background: var(--forest-card);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  text-align: center;
}

.photo-monogram {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--cream);
  background: var(--forest-mid);
}

.photo-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-placeholder strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

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

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.about-tags li {
  padding: 0.4rem 0.8rem;
  background: var(--forest-card);
  border: 1px solid var(--forest-line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Cards / services */

.card-list,
.problem-grid,
.offer-grid,
.quote-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card,
.service,
.problem,
.offer,
.quote {
  background: var(--forest-card);
  border: 1px solid var(--forest-line);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 0.9rem;
  align-items: start;
}

.service h3 {
  grid-column: 2;
  margin: 0.1rem 0 0;
}

.service p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.check {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(201, 160, 74, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

/* Before / after — problem types, not case studies */

.notice {
  margin: 0 0 1.35rem;
  padding: 0.95rem 1.05rem;
  background: rgba(201, 160, 74, 0.1);
  border: 1px solid rgba(201, 160, 74, 0.35);
  border-radius: 0.9rem;
  color: var(--cream);
  font-weight: 600;
}

.notice span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
}

.section-note {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.problem {
  text-align: left;
}

.problem-icon {
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 160, 74, 0.55);
  background: var(--forest-mid);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.problem-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.problem h3 {
  margin-bottom: 0.35rem;
}

.problem .gold-rule {
  margin: 0.55rem 0 0.7rem;
  width: 3.6rem;
}

.problem p {
  margin: 0;
  color: var(--muted);
}

/* Offer */

.offer h3 {
  color: var(--cream);
}

.offer p {
  margin: 0;
  color: var(--muted);
}

/* Testimonials placeholders */

.quote {
  min-height: 10.25rem;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.quote-body {
  flex: 1;
  color: var(--muted-dim);
  font-style: italic;
  margin: 0 0 1rem;
}

.quote-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--forest-line);
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-meta span {
  display: block;
}

/* Contact */

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-facts {
  margin: 0;
}

.contact-facts dt {
  margin: 1rem 0 0.2rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-facts dt:first-child {
  margin-top: 0;
}

.contact-facts dd {
  margin: 0;
  color: var(--cream);
  font-size: 1.12rem;
  font-weight: 600;
}

.placeholder-value {
  color: var(--gold-soft);
  font-weight: 600;
}

.form-panel {
  background: var(--forest-card);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.05rem 1.25rem;
}

.form-panel h3 {
  margin-bottom: 0.35rem;
}

.form-banner {
  margin: 0 0 1.05rem;
  padding: 0.75rem 0.85rem;
  background: rgba(201, 160, 74, 0.1);
  border: 1px solid rgba(201, 160, 74, 0.35);
  border-radius: 0.7rem;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-weight: 600;
  color: var(--cream);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--forest-line);
  border-radius: 0.7rem;
  background: var(--forest-mid);
  color: var(--cream);
  caret-color: var(--gold);
}

.field input::placeholder {
  color: var(--muted-dim);
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.28);
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.4rem 0 1.05rem;
  min-height: 48px;
}

.switch-row input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.35rem 0 0;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.switch-row label {
  font-weight: 600;
  color: var(--cream);
}

.form-status {
  display: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: var(--forest-mid);
  border: 1px solid var(--gold);
  color: var(--cream);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

/* Footer */

.site-footer {
  padding: 1.6rem 0 2.1rem;
  border-top: 1px solid var(--forest-line);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0.15rem 0;
}

.site-footer strong {
  color: var(--cream);
  font-weight: 800;
}

/* Desktop */

@media (min-width: 720px) {
  .site-header {
    padding: 0.6rem 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0.4rem 0.7rem;
    font-size: 0.98rem;
  }

  .btn {
    width: auto;
    padding-inline: 1.45rem;
  }

  .problem-grid,
  .offer-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
  }

  .photo-placeholder {
    min-height: 18rem;
  }

  .form-panel .btn {
    min-width: 16rem;
  }
}

@media (min-width: 900px) {
  .card-list {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 4.25rem 0;
  }

  #hero {
    padding-top: 3.25rem;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.75fr;
    align-items: center;
    gap: 3.25rem;
  }

  .promo {
    justify-self: end;
  }

  .promo video {
    max-width: min(100%, 22.5rem);
    max-height: min(70vh, 40rem);
  }

  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .offer-grid,
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 3.5rem;
  }

  .wrap {
    width: min(100% - 3rem, 74rem);
  }
}


/* Keep the differing before/after details on opposite sides so the divider
   does not slice two different sentences into one line. */
.listing-after .listing-status,
.listing-after .listing-btns,
.listing-after .gbp-side {
  align-self: flex-end;
  text-align: right;
  justify-content: flex-end;
}

.gbp-side,
.listing .listing-btns {
  max-width: 44%;
}

.listing-after .gbp-side,
.listing-after .listing-btns {
  margin-left: auto;
}

.switch-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.2rem;
  margin-top: 0.9rem;
}

.switch-notes p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(170, 174, 166);
}

.switch-notes p:last-child {
  text-align: right;
  color: var(--gold-soft);
}

.switch-notes span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

@media (max-width: 719px) {
  .lbtn {
    padding: 0.28rem 0.65rem;
    font-size: 0.8rem;
    min-height: 2.1rem;
  }
}

@media (max-width: 560px) {
  .switch-notes {
    grid-template-columns: 1fr;
  }
  .switch-notes p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   Night storefront layer (local draft, not live)
   A shop at night with the lights on: big type, one gold line,
   quiet motion. Everything below only adds to the base styles.
   ========================================================== */

body.night {
  background-color: rgb(11, 21, 17);
  background-image:
    radial-gradient(ellipse 70% 48% at 78% 6%, rgba(222, 190, 110, 0.14), transparent 62%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(30, 52, 42, 0.9), transparent 65%),
    linear-gradient(180deg, rgb(16, 30, 24) 0%, rgb(11, 21, 17) 55%, rgb(9, 17, 14) 100%);
  background-size: auto;
}


/* Keep the header out of the scroll so it cannot cover the Before and after title. */
body.night {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.night .site-header {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 100;
}

body.night .page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body.night section {
  scroll-margin-top: 0.75rem;
}

.night .site-header {
  /* Solid so scrolled content, including the Before and after title, cannot show through. */
  background: rgb(11, 21, 17);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(52, 78, 62, 0.6);
}

/* Hero: big type, the one gold line is the underline under "customers away" */

.night #hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.night #hero::after {
  /* light spilling from the shop window onto the sidewalk */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  height: 7rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 45% 100% at 62% 100%, rgba(222, 190, 110, 0.12), transparent 70%);
  pointer-events: none;
}

.night .hero-title {
  font-size: clamp(2.45rem, 10vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  animation: ns-fade-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both;
}

.night .hero-title .accent {
  color: var(--cream);
}

.underline-draw {
  position: relative;
  display: inline-block;
}

.underline-draw::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.09em;
  min-height: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(222, 190, 110, 0.45);
  transform-origin: left center;
  /* default state is fully drawn, so reduced motion still shows it */
  transform: scaleX(1);
  animation: ns-draw 1100ms cubic-bezier(0.65, 0, 0.35, 1) 900ms both;
}

@keyframes ns-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes ns-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.night .subline {
  color: var(--gold-soft);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.night .support {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.night .btn-ghost {
  border-color: rgba(244, 238, 224, 0.28);
}

/* The promo sits in a lit "shop window" */

.shop-window {
  position: relative;
}

.shop-window::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(222, 190, 110, 0.2), transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.night .promo video {
  border-color: rgba(201, 160, 74, 0.45);
  box-shadow: 0 0 0 6px rgba(16, 30, 24, 0.9), 0 0 0 7px rgba(201, 160, 74, 0.25), 0 28px 60px rgba(0, 0, 0, 0.55);
}

/* Sections: quieter rules so the hero underline stays the one gold line */

.night .gold-rule {
  height: 2px;
  width: 3rem;
  opacity: 0.7;
}

.night h2 {
  font-size: clamp(1.9rem, 7vw, 3rem);
  letter-spacing: -0.03em;
}

.night .service,
.night .problem,
.night .offer,
.night .quote,
.night .form-panel {
  background: linear-gradient(180deg, rgba(30, 52, 42, 0.92), rgba(24, 42, 34, 0.92));
  border-color: rgba(52, 78, 62, 0.75);
}

/* Service cards: hover lift (CSS only) + optional scroll reveal (JS adds classes) */

.night .service {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    opacity 600ms ease, translate 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.night .service:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 74, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), 0 0 24px rgba(222, 190, 110, 0.08);
}

.reveal-ready .service.reveal {
  opacity: 0;
  translate: 0 18px;
}

.reveal-ready .service.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Before and after: the gold light-switch divider ---------- */

.switch-demo {
  max-width: 50rem;
  margin: 0 auto 1.8rem;
}

.switch-stage {
  --pos: 50%;
  position: relative;
  display: grid;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(52, 78, 62, 0.9);
  background: rgb(9, 17, 14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  touch-action: pan-y;
}

.listing {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  padding: 3.1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.listing > * {
  flex-shrink: 0;
}

.listing p {
  margin: 0;
}

.listing-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  width: min(100%, 22rem);
}

.listing-g {
  font-weight: 900;
  font-size: 1rem;
}

.listing-name {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.listing-cat {
  font-size: 0.95rem;
}

.listing-status {
  margin-top: 0.55rem !important;
  font-size: 1.05rem;
  font-weight: 600;
}

.listing-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0.35rem;
  align-content: flex-start;
}

.lbtn {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.listing-line {
  margin-top: auto !important;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 26rem;
}

/* Before: lights off */
.listing-before {
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(60, 70, 66, 0.25), transparent 70%),
    rgb(14, 20, 18);
  color: rgb(128, 136, 130);
}

.listing-before .listing-search {
  background: rgb(24, 31, 28);
  border: 1px solid rgb(38, 46, 42);
}

.listing-before .listing-name {
  color: rgb(150, 156, 150);
}

.status-closed {
  color: rgb(214, 104, 92);
  font-weight: 800;
}

.lbtn-dead {
  border: 1px dashed rgb(64, 72, 68);
  color: rgb(98, 106, 100);
  text-decoration: line-through;
}

.listing-before .listing-line {
  color: rgb(170, 174, 166);
}

/* After: lights on. Clipped so only the part right of the divider shows. */
.listing-after {
  clip-path: inset(0 0 0 var(--pos));
  background:
    radial-gradient(ellipse 70% 80% at 80% 10%, rgba(222, 190, 110, 0.22), transparent 70%),
    linear-gradient(160deg, rgb(30, 52, 42), rgb(20, 36, 29));
  color: var(--cream);
}

.listing-after .listing-search {
  background: rgba(244, 238, 224, 0.08);
  border: 1px solid rgba(222, 190, 110, 0.35);
}

.listing-after .listing-g {
  color: var(--gold-soft);
}

.listing-after .listing-cat {
  color: var(--muted);
}

.status-open {
  color: rgb(130, 214, 150);
  font-weight: 800;
}

.lbtn-live {
  border: 1px solid rgba(244, 238, 224, 0.4);
  color: var(--cream);
}

.lbtn-call {
  background: var(--gold);
  color: var(--forest);
  box-shadow: 0 6px 18px rgba(201, 160, 74, 0.3);
}

.listing-after .listing-line {
  color: var(--gold-soft);
}

/* Google Business Profile example inside the divider */

.gbp-kicker {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  min-height: 2.15rem;
  text-align: center;
}

.listing-name,
.listing-cat {
  text-align: center;
}

.listing .listing-search {
  width: 100%;
  justify-content: center;
}

.gbp-cover {
  position: relative;
  height: 6.1rem;
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.listing-before .gbp-cover {
  border: 1px dashed rgba(140, 148, 142, 0.55);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(244, 238, 224, 0.015) 0 7px,
      rgba(244, 238, 224, 0.045) 7px 14px
    );
}

.listing-after .gbp-cover {
  border: 1px solid rgba(222, 190, 110, 0.4);
  background:
    linear-gradient(180deg, rgb(20, 42, 34) 0 30%, rgb(201, 160, 74) 30% 40%, rgb(10, 22, 18) 40% 100%);
}

.listing-after .gbp-cover::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 48%;
  height: 34%;
  background: linear-gradient(
    90deg,
    rgba(244, 238, 224, 0.92) 0 18%,
    transparent 18% 27%,
    rgba(222, 190, 110, 0.95) 27% 48%,
    transparent 48% 57%,
    rgba(244, 238, 224, 0.86) 57% 78%,
    transparent 78% 100%
  );
  filter: drop-shadow(0 0 8px rgba(222, 190, 110, 0.28));
}

.gbp-cover-label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(9, 17, 14, 0.72);
  color: rgb(176, 182, 174);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing-after .gbp-cover-label {
  left: auto;
  right: 0.6rem;
  color: var(--forest);
  background: var(--gold);
}

.gbp-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7rem 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.gbp-photos .gbp-photo:nth-child(3) {
  grid-column: 4;
}

.gbp-photos .gbp-photo:nth-child(4) {
  grid-column: 5;
}

.gbp-photo {
  position: relative;
  height: 3.35rem;
  border-radius: 0.45rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.28rem 0.35rem;
}

.gbp-photo span {
  position: relative;
  z-index: 1;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  background: rgba(9, 17, 14, 0.78);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.gbp-photo-empty {
  border: 1px dashed rgba(140, 148, 142, 0.5);
  color: rgb(128, 136, 130);
  background: rgba(244, 238, 224, 0.03);
}

.gbp-photo-empty span {
  background: transparent;
  color: rgb(168, 176, 168);
  padding: 0;
}

.gbp-photo-empty::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  width: 1.15rem;
  height: 0.85rem;
  border: 1.5px solid currentColor;
  border-radius: 0.15rem;
}

.gbp-photo-front {
  color: var(--forest);
  background:
    linear-gradient(180deg, transparent 55%, rgba(11, 21, 17, 0.45) 100%),
    linear-gradient(180deg, rgb(28, 52, 42) 0 40%, rgb(201, 160, 74) 40% 52%, rgb(14, 28, 22) 52%);
}

.gbp-photo-inside {
  color: var(--forest);
  background:
    radial-gradient(circle at 50% 30%, rgba(244, 238, 224, 0.85), transparent 55%),
    linear-gradient(160deg, rgb(48, 62, 48), rgb(20, 32, 26));
}

.gbp-photo-desk {
  color: var(--cream);
  background:
    linear-gradient(180deg, rgb(18, 34, 28) 0 46%, rgb(201, 160, 74) 46% 58%, rgb(36, 28, 18) 58%);
}

.gbp-photo-street {
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 28%, rgba(222, 190, 110, 0.95) 0 0.35rem, transparent 0.55rem),
    linear-gradient(180deg, rgb(16, 32, 36) 0 62%, rgb(30, 42, 32) 62%);
}

.gbp-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.listing-after .gbp-label {
  color: var(--gold);
}

.gbp-hours,
.gbp-reviews {
  margin-top: 0.75rem;
}

.gbp-hours .listing-status {
  margin-top: 0.15rem !important;
}

.gbp-flag,
.gbp-score,
.gbp-review-line,
.gbp-stars {
  margin: 0.12rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.gbp-stars {
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: rgb(98, 106, 100);
}

.gbp-stars-on {
  color: var(--gold);
}

.listing-before .gbp-score,
.listing-before .gbp-review-line,
.listing-before .gbp-flag {
  color: rgb(150, 156, 150);
}

.listing-after .gbp-score,
.listing-after .gbp-flag {
  color: var(--cream);
}

.listing-after .gbp-review-line {
  color: var(--gold-soft);
}

.gbp-hours,
.gbp-reviews,
.listing-btns {
  min-height: 4.5rem;
}

.switch-tag {
  position: absolute;
  top: 0.85rem;
  z-index: 2;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.switch-tag-before {
  left: 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  color: rgb(150, 156, 150);
}

.switch-tag-after {
  right: 0.85rem;
  background: var(--gold);
  color: var(--forest);
}

/* The divider itself: a gold line with a wall-switch plate */
.switch-stage.is-start .switch-divider,
.switch-stage.is-end .switch-divider,
.switch-stage.is-start .switch-tag-before,
.switch-stage.is-end .switch-tag-after {
  opacity: 0;
}

.switch-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 3;
  pointer-events: none;
}

.switch-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(222, 190, 110, 0.65);
}

.switch-plate {
  position: absolute;
  top: 84%;
  left: 0;
  width: 2.6rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border-radius: 0.6rem;
  background: linear-gradient(180deg, var(--cream), rgb(222, 214, 196));
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}

.switch-lever {
  width: 0.9rem;
  height: 1.9rem;
  border-radius: 0.35rem;
  background: var(--forest);
  position: relative;
}

.switch-lever::after {
  /* the lever's lit end flips up once the "after" side is the bigger half */
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  height: 0.75rem;
  bottom: 0.15rem;
  border-radius: 0.25rem;
  background: var(--forest-line);
}

.switch-stage.is-lit .switch-lever::after {
  top: 0.15rem;
  bottom: auto;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(222, 190, 110, 0.8);
}

/* Native range input over the whole stage: mouse, touch, keyboard */
.switch-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.switch-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3rem;
  height: 100%;
  min-height: 100%;
  cursor: ew-resize;
}

.switch-range::-moz-range-thumb {
  width: 3rem;
  height: 100%;
  min-height: 100%;
  border: 0;
  cursor: ew-resize;
}

.switch-range:focus-visible ~ .switch-divider .switch-plate {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.switch-caption {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 720px) {
  .listing {
    padding: 3.3rem 2rem 1.6rem;
  }

  .gbp-cover {
    height: 7.25rem;
  }

  .gbp-photo {
    height: 4.15rem;
  }

  .gbp-hours,
  .gbp-reviews,
  .listing-btns {
    min-height: 4.6rem;
  }
}

@media (max-width: 719px) {
  .gbp-hours {
    height: 9rem;
  }

  .listing-btns {
    height: 8.5rem;
  }

  .gbp-reviews {
    height: 7.6rem;
  }

  .gbp-photo span {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 900px) {
  .night .hero-inner {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .night .hero-title,
  .underline-draw::after {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .night .service:hover {
    transform: none;
  }

  .reveal-ready .service.reveal {
    opacity: 1;
    translate: none;
  }
}
