/* ============================================================
   CLEAR VIEW | Exterior Cleaning | Charleston, SC
   Design system: dark, editorial, architectural
   ============================================================ */

:root {
  --ink: #05080f;
  --ink-2: #0a1220;
  --panel: #0d1524;
  --panel-2: #111b2e;
  --line: rgba(148, 178, 215, 0.14);
  --line-strong: rgba(148, 178, 215, 0.28);
  --text: #eaf0f8;
  --muted: #9aa9be;
  --faint: #64748b;
  --accent: #5cc9ff;
  --accent-deep: #2f7ff0;
  --grad: linear-gradient(96deg, #5cc9ff 0%, #2f7ff0 100%);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(92, 201, 255, 0.35); }

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1220px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.9rem, 7vw, 5.6rem); }
.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--grad);
}

.accent-italic {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #041018;
  box-shadow: 0 8px 32px rgba(47, 127, 240, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(47, 127, 240, 0.5); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(92, 201, 255, 0.07); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #041018;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta a { color: #fff; }
.nav-links .nav-cta a:hover { color: #fff; }
.nav-links .nav-cta a::after { display: none; }
.nav .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Image frames (graded, with graceful fallback) ---------- */

.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(92, 201, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #12203a, #080d18);
  isolation: isolate;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.92);
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.05) 40%, rgba(5, 8, 15, 0.55) 100%),
              linear-gradient(120deg, rgba(47, 127, 240, 0.12), transparent 60%);
  pointer-events: none;
}
.card:hover .img-frame img, .img-frame:hover img { transform: scale(1.045); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(110% 110% at 15% 0%, rgba(92, 201, 255, 0.14), transparent 55%),
    linear-gradient(160deg, #101d33, #05080f);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08) brightness(0.62);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, rgba(5, 8, 15, 0.15) 35%, rgba(5, 8, 15, 0.88) 92%),
    linear-gradient(100deg, rgba(5, 8, 15, 0.75) 0%, transparent 65%);
}
.hero-content { max-width: 820px; }
.hero .lede { margin-top: 1.6rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-meta strong { color: var(--muted); font-weight: 700; }

/* Interior page hero */
.page-hero {
  position: relative;
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(3.5rem, 7vh, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}
.page-hero .hero-media { z-index: -2; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.72), rgba(5, 8, 15, 0.94));
}
.breadcrumb {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.2rem;
}
.breadcrumb a:hover { color: var(--accent); }

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

.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.section-panel { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .lede { justify-self: end; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .lede { justify-self: start; }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: clamp(1.8rem, 3.5vw, 3rem) 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.card .img-frame { border-radius: 0; aspect-ratio: 16 / 10; }
.card-body { padding: 1.9rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-link {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card-link svg { transition: transform 0.25s ease; }
.card:hover .card-link svg { transform: translateX(5px); }

.card-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 8, 15, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: var(--accent);
}

/* ---------- Feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.info-item { overflow-wrap: anywhere; }
.split .img-frame { aspect-ratio: 4 / 4.6; }
.split.reverse > .img-frame { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .img-frame { order: 0; }
  .split .img-frame { aspect-ratio: 16 / 11; }
}

.checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--muted);
  font-size: 0.99rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305080f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--grad);
}
.checklist strong { color: var(--text); }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 980px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.3rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after { content: "✦"; font-style: normal; color: var(--accent); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quote / testimonial ---------- */

.quote-block {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}
.quote-block cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.quote-block cite strong { color: var(--accent); display: block; margin-bottom: 0.3rem; }

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

.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.8rem, 5vw, 5rem);
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(90% 140% at 50% -20%, rgba(92, 201, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #14243f, #080e1a);
  border: 1px solid var(--line-strong);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: 1.4rem auto 2.4rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Detail rows (services page) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-detail:first-of-type { border-top: none; }
.service-detail .img-frame { aspect-ratio: 4 / 3; position: sticky; top: 110px; }
.service-detail.reverse .img-frame { order: 2; }
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail .img-frame { position: static; order: 0 !important; }
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.8rem;
}
.spec-grid div { background: var(--panel); padding: 1.1rem 1.3rem; }
.spec-grid dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.spec-grid dd { font-size: 0.95rem; color: var(--text); }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Industry tiles ---------- */

.industry-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  display: flex;
  align-items: flex-end;
}
.industry-tile .img-frame { position: absolute; inset: 0; border-radius: 0; }
.industry-tile .tile-body {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, 0.9) 70%);
}
.industry-tile h3 { font-size: 1.4rem; }
.industry-tile p { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: 1fr; } }

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

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .field { min-width: 0; }
.field select { max-width: 100%; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 201, 255, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--faint); margin-top: 1.1rem; }
.form-success {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  border: 1px solid rgba(92, 201, 255, 0.4);
  background: rgba(92, 201, 255, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */

.info-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.info-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease;
}
.info-item:hover { border-color: var(--line-strong); }
.info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(92, 201, 255, 0.1);
  border: 1px solid rgba(92, 201, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.info-item h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.25rem; }
.info-item p, .info-item a { font-size: 1.02rem; color: var(--text); }
.info-item a:hover { color: var(--accent); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.9) invert(0.92) hue-rotate(185deg) saturate(2.2) brightness(0.9);
  aspect-ratio: 16 / 7;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Values / about ---------- */

.value-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--faint);
}
.value-row h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.value-row p { color: var(--muted); max-width: 62ch; }
@media (max-width: 640px) { .value-row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- Badge strip ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

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

footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.2rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-grid ul a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; margin-top: 1.2rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 8, 15, 0.96); }
  .nav-inner { position: relative; z-index: 100; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: #060a12;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 1.4rem; font-family: var(--serif); }
  .nav-cta { margin: 0; }
}

/* ---------- Before / After slider ---------- */

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  aspect-ratio: 16 / 8;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  --pos: 50%;
  background: var(--panel);
}
.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-pane { position: absolute; inset: 0; overflow: hidden; }
.ba-pane.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-pane.ba-before img { filter: brightness(0.8) saturate(0.72) contrast(1.02); }
/* Grime overlay: organic blotches, heavier toward the base of the building */
.ba-pane.ba-before::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(62, 74, 41, 0.28) 72%, rgba(52, 60, 34, 0.52) 92%, rgba(40, 45, 26, 0.62) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011 0.03' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.16 0 0 0 0 0.09 0.55 0.55 0.55 0 -0.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 340px 340px;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 45%, #000 100%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 45%, #000 100%);
}
/* Drip streaks under sills and ledges */
.ba-pane.ba-before::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(50, 56, 36, 0.16) 0 7px, transparent 7px 26px,
    rgba(44, 50, 30, 0.12) 26px 31px, transparent 31px 58px);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.5) 55%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.5) 55%, #000 100%);
}
.ba-tag {
  position: absolute;
  top: 1rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 8, 15, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba-tag-b { left: 1rem; color: #ffa584; }
.ba-tag-a { right: 1rem; color: var(--accent); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #041018;
  font-size: 1.15rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.ba-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
  margin-top: 1.1rem;
}
.service-detail .ba-slider { aspect-ratio: 4 / 3; position: sticky; top: 110px; }
.service-detail.reverse .ba-slider { order: 2; }
@media (max-width: 900px) {
  .service-detail .ba-slider { position: relative; top: auto; order: 0 !important; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 1rem; max-width: 880px; margin-inline: auto; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.5rem;
  transition: border-color 0.25s ease;
}
.faq details[open], .faq details:hover { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.35rem; font-size: 0.98rem; }

/* ---------- Sticky call button (mobile) ---------- */

.call-fab {
  display: none;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 95;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  color: #041018;
  place-items: center;
  box-shadow: 0 10px 30px rgba(47, 127, 240, 0.5);
}
@media (max-width: 820px) {
  .call-fab { display: grid; }
}

/* ---------- Parallax ---------- */

.hero-media img { will-change: transform; }

/* ---------- Brand logo ---------- */

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  /* invert flips the dark lettering to white; hue-rotate keeps the blues blue;
     screen blend dissolves the (now dark) background into the site */
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}
footer .brand-logo { height: 76px; }
.brand img + .brand-fallback { display: none; }
.brand-fallback { font-family: var(--serif); font-size: 1.35rem; }
@media (max-width: 480px) {
  .brand-logo { height: 44px; }
}

/* ---------- Real before/after photos (no simulated grime) ---------- */

.ba-slider.ba-real .ba-pane.ba-before img { filter: none; }
.ba-slider.ba-real .ba-pane.ba-before::before,
.ba-slider.ba-real .ba-pane.ba-before::after { display: none; }

/* ---------- Mobile slider sizing and smoothness ---------- */

.ba-pane.ba-before { will-change: clip-path; }
@media (max-width: 700px) {
  .ba-slider { aspect-ratio: 4 / 3; }
  .ba-slider.ba-real { aspect-ratio: 3 / 4; }
}
