/* BAAB Contracting, LLC — site styles
   Mobile-first, no build step. Fonts are self-hosted (see /fonts). */

@font-face {
  font-family: "Tektur";
  src: url("/fonts/tektur-variable.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: 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.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: 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.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --charcoal: #1a1a1a;
  --steel: #3a3a3a;
  --muted: #5e5852;
  --line: #d8d0c4;
  --cream: #f3efe6;
  --paper: #faf8f3;
  --white: #fffdf8;
  --orange: #e65c00;
  --orange-hot: #ff6a0d;
  --orange-dark: #b44500;
  --orange-ink: #7a2e00;
  --sand: #e8e0d2;
  --gold: #f0b429;
  --header-h: 4.25rem;
  --callbar-h: 4.25rem;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  --font-display: "Tektur", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--orange);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

@media (max-width: 767px) {
  body {
    padding-bottom: var(--callbar-h);
  }
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--ink);
}

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

.container-narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
  position: relative;
  padding: 0.35rem 0;
}

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

.logo-img {
  display: block;
  height: 3.15rem;
  width: auto;
  max-width: min(13.75rem, 52vw);
}

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

.footer-logo-img {
  display: block;
  height: 3.4rem;
  width: auto;
  max-width: 14rem;
}

.logo-mark {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  border-radius: 3px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-llc {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9c2b6;
  font-weight: 600;
}

.logo-ph {
  font-size: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a847a;
  font-weight: 600;
}

.nav-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  color: var(--cream);
  border: 2px solid #4a4a4a;
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--white);
}

.header-call,
.btn.header-call {
  display: none;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-bottom: 3px solid var(--orange);
  display: none;
  padding: 0.5rem 0 1rem;
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange-hot);
}

.nav-sub {
  display: none;
  padding: 0 0 0.5rem 0.85rem;
  border-left: 2px solid var(--orange);
  margin: 0 0 0.4rem 0.4rem;
}

.nav-item-sub.is-open .nav-sub {
  display: block;
}

.nav-sub a {
  padding: 0.4rem 0.25rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: #d7d0c6;
}

.sub-toggle {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 0.25rem;
  width: 100%;
  text-align: left;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-toggle::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 1.2rem;
}

.nav-item-sub.is-open .sub-toggle::after {
  content: "–";
}

@media (min-width: 900px) {
  .nav-toggle,
  .sub-toggle {
    display: none;
  }

  .header-call,
  .btn.header-call {
    display: inline-flex;
    margin-left: 0.5rem;
    flex: 0 0 auto;
  }

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

  .site-nav > ul {
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav > ul > li > a {
    padding: 0.85rem 0.7rem;
  }

  .nav-item-sub {
    position: relative;
  }

  .nav-item-sub:hover .nav-sub,
  .nav-item-sub:focus-within .nav-sub {
    display: grid;
  }

  .nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16.5rem;
    background: var(--charcoal);
    border: 1px solid #333;
    border-top: 3px solid var(--orange);
    padding: 0.55rem 0;
    margin: 0;
    box-shadow: var(--shadow);
    grid-template-columns: 1fr;
  }

  .nav-sub a {
    padding: 0.45rem 1rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.15;
  text-align: center;
}

.btn-call,
.btn-primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

.btn-call:hover,
.btn-primary:hover {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: #8a8378;
}

.btn-ghost:hover {
  border-color: var(--cream);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 1.35rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.2), rgba(20, 20, 20, 0.55)),
    repeating-linear-gradient(
      -45deg,
      #161616 0 10px,
      #1c1c1c 10px 20px
    );
  color: var(--cream);
  padding: 2.25rem 0 2.5rem;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 8px,
    var(--orange) 8px 16px
  );
}

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

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--ink);
  padding: 0.28rem 0.5rem;
  border-radius: 2px;
}

.badge-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid #6a655c;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.85rem, 6.4vw, 3.35rem);
  margin: 0 0 0.85rem;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.lede,
.hero-lede {
  font-size: 1.12rem;
  max-width: 42rem;
  margin: 0 0 1.25rem;
}

.hero .lede,
.hero-lede,
.page-hero .lede {
  color: #d9d3c9;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.hero-meta {
  margin: 0;
  color: #c3bdb3;
  font-weight: 500;
}

.hero-photo {
  min-height: 14rem;
}

@media (min-width: 720px) {
  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 14rem;
  }

  .hero-photo {
    min-height: 20rem;
  }
}


/* Showcase hero: full-bleed WV sunset with baked-in logo.
   Desktop/tablet show the photo at its natural 3:2 ratio so the entire
   West Virginia outline (panhandle to the south) stays in frame. The
   headline band may start below the fold. Mobile keeps a tighter cover
   crop so the logo stays centered and readable on a first-screen hero. */
.hero-showcase {
  background: #070707;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-media {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #070707;
}

.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  max-width: none;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0), #070707);
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  text-align: center;
  padding: 0.15rem 0 2.35rem;
  background: #070707;
}

.hero-showcase .eyebrow {
  justify-content: center;
  margin-bottom: 0.7rem;
}

.hero-showcase h1 {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-showcase .hero-lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
}

.hero-showcase .hero-actions {
  justify-content: center;
  align-items: stretch;
}

.hero-showcase .hero-actions .btn {
  width: 100%;
}

/* Keep the brand stripe above the dark copy band */
.hero-showcase::after {
  z-index: 3;
}

.hero-showcase .badge-ghost {
  border-color: rgba(243, 239, 230, 0.45);
  color: var(--cream);
  background: rgba(7, 7, 7, 0.28);
}

@media (min-width: 720px) {
  .hero-showcase .hero-actions .btn {
    width: auto;
    min-width: 15rem;
  }
}

@media (max-width: 719px) {
  .hero-copy {
    padding: 0 0 1.65rem;
  }

  .hero-showcase h1 {
    font-size: clamp(1.5rem, 7.6vw, 2.05rem);
    max-width: 16ch;
    margin-bottom: 0.55rem;
  }

  .hero-showcase .hero-lede {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .hero-showcase .hero-actions {
    margin-bottom: 0.7rem;
  }

  .hero-showcase .eyebrow {
    margin-bottom: 0.55rem;
  }
}

/* Mobile: keep the first-screen cover crop (logo centered, sides trimmed). */
@media (max-width: 767px) {
  .hero-showcase {
    height: calc(100vh - var(--header-h) - var(--callbar-h) - 3px);
    height: calc(100svh - var(--header-h) - var(--callbar-h) - 3px);
    min-height: 28rem;
  }

  .hero-media {
    flex: 1 1 0;
    min-height: 14rem;
    aspect-ratio: auto;
  }

  .hero-media img {
    object-fit: cover;
    object-position: center 46%;
  }

  /* Leave a clear slot for the chat bubble beside the estimate button.
     The Call button sits above the bubble and can stay full width. */
  .hero-showcase .hero-actions .btn:last-child {
    width: calc(100% - 4.5rem);
    white-space: nowrap;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.95rem;
  }

  /* The serving-area line does not fit above the call bar on the first screen. */
  .hero-showcase .hero-meta {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2,
.page-intro h2,
h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 700;
}

.section-dark .section-kicker {
  color: var(--orange-hot);
}

.section-lead,
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section-dark .section-lead,
.section-dark .prose p {
  color: #c9c3b9;
}

.prose p,
.prose li {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

a.card:hover {
  border-color: var(--orange);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--orange-dark);
  margin-bottom: 0.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.card-link {
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: var(--font-display);
}

/* ---------- Promises ---------- */

.promise-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.promise {
  border-top: 3px solid var(--orange);
  padding-top: 0.9rem;
}

.promise h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.promise p {
  margin: 0;
  color: #c9c3b9;
}

/* ---------- Placeholders ---------- */

.photo-ph {
  margin: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      #d7d0c4 0 8px,
      #cfc7ba 8px 16px
    );
  border: 2px dashed #8a7f70;
  border-radius: var(--radius);
  min-height: 12rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.photo-ph-inner {
  background: rgba(250, 248, 243, 0.92);
  padding: 1rem 1.1rem;
  border-radius: 4px;
  max-width: 18rem;
}

.photo-ph strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.photo-ph p,
.photo-ph figcaption {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.photo-ph-wide {
  min-height: 16rem;
}

.photo-ph-tall {
  min-height: 20rem;
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid:has(> :nth-child(4):last-child),
  .gallery-grid:has(> :nth-child(7)) {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .service-gallery .gallery-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 40rem;
  }

  .gallery-grid .photo-ph {
    min-height: 11rem;
  }
}

/* Real job photos (home + service galleries). Easy to add more: another .gallery-item. */
.gallery-item {
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--pos, center 30%);
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item--natural {
  background: var(--ink);
}

.gallery-item--natural img {
  aspect-ratio: auto;
  object-fit: contain;
  width: 100%;
  height: auto;
  transform: none;
}

.gallery-item--natural:hover img,
.gallery-item--natural:focus-visible img {
  transform: none;
}

.job-photo {
  margin: 0;
}

.job-photo-main .gallery-item {
  box-shadow: var(--shadow);
}

.job-photo-main .gallery-item:hover,
.job-photo-main .gallery-item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.job-photo figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.service-gallery {
  /* sits under the service split so more photos can be added later */
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4.25rem 3.5rem 3.5rem;
  background: rgba(10, 10, 10, 0.94);
}

.lightbox.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 0.7rem 0 0;
  color: #e8e0d2;
  font-size: 0.95rem;
  text-align: center;
  max-width: 48rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(250, 248, 243, 0.12);
  color: var(--cream);
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  line-height: 1;
}

.lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.85rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 0.65rem;
}

.lightbox-next {
  right: 0.65rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--orange);
  color: var(--paper);
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
  display: none;
}

@media (max-width: 599px) {
  .lightbox {
    padding: 4rem 0.75rem 1.25rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 9.5rem);
  }
}

.reviews-empty {
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.reviews-empty p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.reviews-empty p:last-child {
  margin-bottom: 0;
}

/* ---------- Page chrome (interior) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 0 2.15rem;
  border-bottom: 8px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    #141414 0 8px,
    #e65c00 8px 16px
  ) 8;
}

.page-hero h1 {
  color: var(--white);
  max-width: 22ch;
}

.page-hero .lede {
  margin-bottom: 0;
}

.crumbs {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #b5aea4;
}

.crumbs a {
  color: #d7d0c6;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--orange-hot);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #7a746c;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 3rem;
  }
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.related-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.related-list a:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* ---------- Forms ---------- */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 3rem;
  }
}

.contact-detail {
  margin: 0 0 1.25rem;
}

.contact-detail dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.contact-detail dd {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-detail a {
  color: var(--ink);
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--orange-dark);
}

.form-note {
  background: #fff6e8;
  border: 1px solid #e8c888;
  border-left: 4px solid var(--orange);
  padding: 0.85rem 1rem;
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-note code {
  font-size: 0.85em;
  background: #f3ead4;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}

.estimate-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.req {
  color: var(--orange-dark);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9c2b6;
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
}

.estimate-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--orange) 50%, white);
  border-color: var(--orange);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
}

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

.form-status.is-ok {
  background: #e7f4e8;
  border: 1px solid #9dca9f;
}

.form-status.is-warn {
  background: #fff6e8;
  border: 1px solid #e8c888;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 2.75rem 0;
  background: var(--orange);
  color: var(--ink);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.cta-band p {
  margin: 0 auto 1.15rem;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}

@media (min-width: 600px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #c9c3b9;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer h2 {
  color: var(--cream);
  font-size: 1rem;
  margin: 0 0 0.7rem;
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange-hot);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.88rem;
  color: #8a847a;
}

/* ---------- Mobile call bar ---------- */

.mobile-callbar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--ink);
    padding: 0.55rem 0.85rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
    border-top: 3px solid var(--orange);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-callbar .btn {
    width: 100%;
  }
}

/* ---------- 404 ---------- */

.not-found {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--orange);
  margin: 0;
  line-height: 1;
}

.not-found h1 {
  margin-top: 0.4rem;
}

.not-found .hero-actions {
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

/* ---------- Misc ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-phone {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Desktop uses the Services text link; mobile uses the sub-toggle button. */
.nav-top-link {
  display: none;
}

@media (min-width: 900px) {
  .nav-top-link {
    display: block;
  }
}

/* Ghost button on the orange CTA band needs dark text (inline style backs this up). */
.cta-band .btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.cta-band .btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.hero .photo-ph,
.hero .photo-ph-tall {
  min-height: 12.5rem;
}

@media (min-width: 720px) {
  .hero .photo-ph,
  .hero .photo-ph-tall,
  .hero-photo {
    min-height: 20rem;
  }
}

@media (max-width: 399px) {
  .logo-name {
    font-size: 0.95rem;
  }
  .logo-llc {
    letter-spacing: 0.08em;
  }
  .logo-img {
    height: 2.65rem;
    max-width: min(11.5rem, 58vw);
  }
}
