/* ==========================================================================
   Precision Power Wash — precisionpowerwash design system
   Palette: white paper · cobalt blue · burnt copper accent
   Type: Schibsted Grotesk (display) · Instrument Sans (body) · Spline Sans Mono (spec labels)
   ========================================================================== */

:root {
  --paper: #fbf9f4;
  --mist: #f2f5fb;
  --mist-deep: #e6ecf7;
  --ink: #101f45;
  --slate: #4a5878;
  --cobalt: #1740c2;
  --cobalt-deep: #0d2a80;
  --cobalt-night: #091d5c;
  --copper: #c05a1c;
  --copper-deep: #9c4512;
  --copper-soft: #faeadd;
  --copper-glow: #e2a15c;
  --twilight: #0b1330;
  --twilight-soft: #182452;
  --line: #dce3f2;
  --ok: #1a7f4e;

  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-headline: "Fraunces", "Schibsted Grotesk", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 2px 8px rgba(16, 31, 69, 0.06), 0 12px 32px rgba(16, 31, 69, 0.07);
  --shadow-lift: 0 4px 12px rgba(16, 31, 69, 0.10), 0 20px 48px rgba(16, 31, 69, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--cobalt); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.48rem); letter-spacing: -0.008em; }
h4 { font-size: 1.08rem; letter-spacing: -0.008em; }

p { margin: 0 0 1.1em; }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: var(--slate);
  line-height: 1.6;
  max-width: 44em;
}

/* Spec label — the mono annotation device used across the site */
.spec {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 1.1rem;
}
.spec::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--copper);
  flex: none;
}
.spec--plain::before { display: none; }

.spec--serif {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--copper-glow);
}
.spec--serif::before { background: var(--copper-glow); }

.on-dark { color: #fff; }
.on-dark .lede, .on-dark p { color: #c6d2f0; }
.on-dark .spec { color: #9fb4ec; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--night { background: var(--cobalt-night); }

.section-head { max-width: 40em; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .spec { justify-content: center; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.008em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-deep); color: #fff; }

.btn--ghost { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: #fff; color: var(--cobalt-night); border-color: #fff; }

.btn--lg { font-size: 1.08rem; padding: 1em 2.1em; }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.text-link:hover { color: var(--copper); border-color: var(--copper); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--overlay .wordmark,
.site-header--overlay .site-nav a,
.site-header--overlay .header-phone {
  color: #fff;
}
.site-header--overlay .site-nav a:hover,
.site-header--overlay .header-phone:hover { color: var(--copper-glow); }
.site-header--overlay .site-nav a[aria-current="page"] { color: #fff; }
.site-header--overlay.is-scrolled {
  background: rgba(11, 19, 48, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-right: auto;
  flex: none;
}
.wordmark:hover { color: var(--cobalt); }
.wordmark svg { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--cobalt); }
.site-nav a[aria-current="page"] { color: var(--cobalt); border-bottom-color: var(--copper); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }

.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.header-phone:hover { color: var(--copper); }
.header-phone svg { width: 16px; height: 16px; }

.header-cta { padding: 0.62em 1.25em; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.site-header--overlay .nav-toggle { color: #fff; }

@media (max-width: 1020px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--mist-deep); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--mist-deep); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  /* Mobile dropdown is always an opaque white panel, regardless of header state */
  .site-header--overlay .site-nav a { color: var(--ink); }
  .site-header--overlay .site-nav a:hover { color: var(--cobalt); }
}
@media (max-width: 560px) {
  .header-phone span { display: none; }  /* icon-only phone on small screens */
  .header-phone svg { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(860px, 94vh);
  display: flex;
  align-items: center;
  padding: 168px 0 148px;
  background: url("../assets/hero-twilight.jpg");
  background-size: cover;
  background-position: center 42%;
  color: #fff;
}

.hero-copy .spec,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .hero-note {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.75);
}
.site-header--overlay:not(.is-scrolled) .wordmark,
.site-header--overlay:not(.is-scrolled) .site-nav a,
.site-header--overlay:not(.is-scrolled) .header-phone {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-copy { position: relative; max-width: 34em; }
.hero-copy h1 { max-width: 11.5em; color: #fff; }
.hero-copy .lede {
  max-width: 30em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.75);
}

.hero-copy > * {
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy .spec { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.16s; }
.hero-copy .lede { animation-delay: 0.28s; }
.hero-copy .hero-actions { animation-delay: 0.4s; }
.hero-copy .hero-note { animation-delay: 0.5s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none; }
}

@media (max-width: 940px) {
  .hero { padding: 132px 0 120px; min-height: 0; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-actions .text-link { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-actions .text-link:hover { color: var(--copper-glow); border-color: var(--copper-glow); }

.btn--primary {
  position: relative;
}
.hero-copy .btn--primary {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: cta-bounce 2.4s ease-in-out 1.3s infinite;
}
.hero-copy .btn--primary:hover {
  animation-play-state: paused;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.32);
}
.hero-copy .btn--primary::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 0 0 0 rgba(226, 161, 92, 0.55);
  animation: hero-glow 1.8s ease-out 0.9s both;
  pointer-events: none;
}
@keyframes hero-glow {
  0% { box-shadow: 0 0 0 0 rgba(226, 161, 92, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(226, 161, 92, 0); }
}
@keyframes cta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy .btn--primary::after { animation: none; }
  .hero-copy .btn--primary { animation: none; }
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust-bar { position: relative; z-index: 5; margin-top: -58px; }
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 26px 32px;
  background: rgba(11, 19, 48, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.94rem;
  color: #fff;
}
.trust-item svg { width: 18px; height: 18px; color: var(--copper-glow); flex: none; }
@media (max-width: 720px) {
  .trust-bar { margin-top: -36px; }
  .trust-bar .container { padding: 20px 22px; gap: 12px 24px; }
}

/* --------------------------------------------------------------------------
   Before / after slider (signature component)
   -------------------------------------------------------------------------- */

.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 8 / 5.4;
  touch-action: pan-y;
  user-select: none;
  background: var(--mist-deep);
}

.ba-plate { position: absolute; inset: 0; }
.ba-plate svg, .ba-plate img { width: 100%; height: 100%; object-fit: cover; }

.ba-plate--after { clip-path: inset(0 0 0 var(--reveal, 50%)); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--reveal, 50%);
  width: 3px;
  background: var(--copper);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 0 16px rgba(0, 0, 0, 0.3);
  transform: translateX(-1.5px);
  pointer-events: none;
}
.ba.is-demoing .ba-handle { transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.ba.is-demoing .ba-plate--after { transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1); }

.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 161, 92, 0.5);
  animation: handle-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes handle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 161, 92, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(226, 161, 92, 0); }
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--copper);
  box-shadow: 0 6px 18px rgba(16, 31, 69, 0.38), 0 2px 6px rgba(16, 31, 69, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c05a1c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8 4 12l4 4M16 8l4 4-4 4'/%3E%3C/svg%3E");
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba:hover .ba-handle::after {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 22px rgba(16, 31, 69, 0.42), 0 2px 6px rgba(16, 31, 69, 0.3);
}
.ba:active .ba-handle::after { transform: translate(-50%, -50%) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .ba-handle::before { animation: none; }
  .ba.is-demoing .ba-handle,
  .ba.is-demoing .ba-plate--after { transition: none; }
}

.ba-tag {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.ba-tag--before { left: 12px; background: rgba(16, 31, 69, 0.78); color: #e8d9c8; }
.ba-tag--after { right: 12px; background: rgba(255, 255, 255, 0.9); color: var(--cobalt-deep); }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  margin: 0;
}
.ba-range:active { cursor: grabbing; }

.ba-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ba-caption > span:first-child { flex: 1; min-width: 0; }
.ba-open {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover {
  border-color: var(--cobalt);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  color: inherit;
}

.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--slate); font-size: 0.98rem; margin-bottom: 0; }

.card-spec {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--cobalt);
  display: block;
  margin-bottom: 1rem;
}

.card-more {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.stars { color: var(--copper); letter-spacing: 2px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-banner { background: var(--cobalt-night); }
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 72px;
  padding-bottom: 72px;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.35em; }
.cta-banner p { color: #c6d2f0; margin: 0; max-width: 34em; }
.cta-banner-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Tables (pricing)
   -------------------------------------------------------------------------- */

.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; }
.price-table thead th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.price-table tbody tr + tr td { border-top: 1px solid var(--mist-deep); }
.price-table td:nth-child(2) { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.price-table td:last-child { color: var(--slate); font-size: 0.95rem; }
.price-table .row-bundle { background: var(--copper-soft); }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--copper);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cobalt); }
.faq-body { padding: 0 4px 24px; color: var(--slate); max-width: 42em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { padding-left: 1.2em; margin: 0 0 0.4em; }
.faq-body li { margin-bottom: 0.4em; }
.faq-body li:last-child { margin-bottom: 0; }

.price-closet { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.price-closet summary { padding-left: 4px; padding-right: 4px; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.4rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.filter-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.filter-btn[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item.is-hidden { display: none; }

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1080px, 94vw);
  width: 100%;
}
.lightbox::backdrop { background: rgba(9, 17, 40, 0.82); }
.lightbox-inner { position: relative; }
.lightbox .ba { aspect-ratio: 8 / 5.4; box-shadow: var(--shadow-lift); width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.lightbox-close:hover { color: var(--copper-soft); }

/* --------------------------------------------------------------------------
   Forms & quote calculator
   -------------------------------------------------------------------------- */

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}
.field .hint { font-size: 0.85rem; color: var(--slate); margin-top: 0.35rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
}
.field textarea { min-height: 130px; resize: vertical; }

.choice-list { display: grid; gap: 12px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  background: var(--paper);
}
.choice:hover { border-color: var(--cobalt); }
.choice:has(input:checked) { border-color: var(--cobalt); background: var(--mist); }
.choice input { margin-top: 5px; accent-color: var(--cobalt); width: 17px; height: 17px; flex: none; }
.choice > span:not(.choice-price) { flex: 1; }
.choice-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.choice-desc { display: block; font-size: 0.9rem; color: var(--slate); margin-top: 2px; }
.choice-price { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--cobalt); white-space: nowrap; flex: none; }

.subfields {
  margin: 4px 0 14px 31px;
  padding: 14px 18px;
  background: var(--mist);
  border-radius: var(--radius);
  display: none;
}
.subfields.is-visible { display: block; }
.subfields .field { margin-bottom: 0.8rem; }
.subfields .field:last-child { margin-bottom: 0; }

.seg {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.seg label {
  padding: 0.5em 1.1em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--cobalt); color: #fff; }

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }

.quote-summary {
  position: sticky;
  top: 96px;
  background: var(--cobalt-night);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.quote-summary h3 { color: #fff; }
.quote-lines { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}
.quote-lines li span:last-child { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.quote-lines .line-discount { color: #f6c39a; }
.quote-empty { color: #9fb4ec; font-size: 0.95rem; }
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 1.2rem 0 0.4rem;
}
.quote-total .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}
.quote-disclaimer { font-size: 0.82rem; color: #9fb4ec; margin: 0.8rem 0 1.4rem; }
.quote-summary .btn { width: 100%; }
.quote-summary .quote-call {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  color: #c6d2f0;
  font-size: 0.92rem;
}
.quote-summary .quote-call a { color: #fff; font-weight: 600; }
.quote-summary .quote-call a:hover { color: #f6c39a; }

.form-status {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-ok { display: block; background: #e7f5ec; color: var(--ok); }
.form-status.is-error { display: block; background: #fbeaea; color: #a33; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 148px 0 56px;
  background: url("../assets/hero-twilight.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #fff;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 14em; color: #fff; }
.page-hero .lede { margin-bottom: 0; color: rgba(255, 255, 255, 0.9); }
.page-hero .spec { color: var(--copper-glow); }
.page-hero .spec::before { background: var(--copper-glow); }
.page-hero .spec,
.page-hero h1,
.page-hero .lede {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.75);
}
.page-hero .lede a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.page-hero .lede a:hover { color: var(--copper-glow); text-decoration-color: var(--copper-glow); }
@media (max-width: 620px) { .page-hero { padding: 124px 0 40px; min-height: 300px; } }

/* --------------------------------------------------------------------------
   Service detail rows
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: none; }
.service-row--flip .service-media { order: 2; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .service-row--flip .service-media { order: 0; }
}
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.service-row ul { color: var(--slate); padding-left: 1.2em; margin: 0 0 1.2em; }
.service-row li { margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   Info strips / definition rows
   -------------------------------------------------------------------------- */

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.compare-card--lead { border-color: var(--cobalt); }
.compare-card .price-note { font-family: var(--font-display); font-weight: 600; color: var(--cobalt); }

.addon-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--copper-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 40px;
}
.addon-strip h3 { margin: 0 0 0.2em; }
.addon-strip p { margin: 0; color: var(--slate); max-width: 46em; }
.addon-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--copper-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-facts { display: grid; gap: 22px; }
.contact-fact { display: flex; gap: 16px; align-items: flex-start; }
.contact-fact svg { width: 20px; height: 20px; color: var(--cobalt); flex: none; margin-top: 4px; }
.contact-fact .k { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; color: var(--slate); display: block; }
.contact-fact .v { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.contact-fact a { text-decoration: none; color: var(--ink); }
.contact-fact a:hover { color: var(--copper); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4em; }
.legal p, .legal li { color: var(--slate); }

/* --------------------------------------------------------------------------
   Payment page
   -------------------------------------------------------------------------- */

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .payment-layout { grid-template-columns: 1fr; } }

.payment-layout h2 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.payment-layout .step + h2 { margin-top: 2.6rem; }

.terms-box {
  max-height: 230px;
  overflow-y: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 16px 20px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 1rem;
}
.terms-box p { margin: 0 0 0.85em; }
.terms-box .term-h {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 1.3em 0 0.35em;
}
.terms-box .term-h:first-child { margin-top: 0; }
.terms-box .term-intro { color: var(--ink); }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 1.4rem;
  cursor: pointer;
}
.agree-row:has(input:checked) { border-color: var(--ok); background: #f0f8f3; }
.agree-row input { margin-top: 4px; accent-color: var(--cobalt); width: 17px; height: 17px; flex: none; }
.agree-row span { font-size: 0.92rem; color: var(--slate); }
.agree-row a { color: var(--cobalt); }

.seg--pay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.seg--pay label {
  flex: 1;
  text-align: center;
  padding: 0.75em 0.6em;
}
@media (max-width: 620px) {
  .seg--pay { grid-template-columns: repeat(2, 1fr); }
}

.pay-panel { margin-top: 1.6rem; }
.pay-panel .hint { margin-bottom: 1rem; }

.invoice-lookup {
  background: var(--mist);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 2.2rem;
}
.invoice-lookup label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.invoice-lookup-row { display: flex; gap: 10px; }
.invoice-lookup-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.invoice-lookup-row input:focus { outline: none; border-color: var(--cobalt); }
.invoice-lookup .hint { margin: 0.6rem 0 0; }
.invoice-lookup .hint.is-found { color: var(--ok); font-weight: 600; }
.invoice-lookup .hint.is-error { color: var(--copper-deep); font-weight: 600; }

.pay-secure-note {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.pay-secure-note svg { width: 17px; height: 17px; color: var(--ok); flex: none; }

.pay-fee-note {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--mist);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 1.1rem;
}

.stripe-placeholder {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.1em 1em;
  font-size: 0.9rem;
  color: var(--slate);
  background: var(--paper);
  margin-bottom: 1.2rem;
  text-align: center;
}

.pay-ready-note {
  font-size: 0.86rem;
  color: var(--copper-deep);
  margin: 0 0 1rem;
}

.btn:disabled, a.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:disabled:hover { background: var(--copper); }

.pay-trust { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; gap: 14px; }
.pay-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: #c6d2f0; }
.pay-trust svg { width: 18px; height: 18px; color: var(--copper-glow); flex: none; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Staff portal — dimension calculator, add-ons, invoice codes
   -------------------------------------------------------------------------- */

#admin-gate { max-width: 380px; }

.dim-group { margin-top: 0.6rem; }
.dim-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.dim-row-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--slate);
  flex: none;
  width: 5.5em;
}
.dim-row input[type="number"] {
  width: 5.5em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5em 0.6em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dim-row input:focus { outline: none; border-color: var(--cobalt); }
.dim-x { color: var(--slate); flex: none; }
.dim-result {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cobalt);
  margin-left: auto;
  white-space: nowrap;
}
.dim-remove {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--slate);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  margin-left: auto;
}
.dim-remove:hover { border-color: var(--copper); color: var(--copper); }
.dim-total { font-size: 0.92rem; color: var(--slate); margin: 0.4rem 0 0; }
.dim-total strong { color: var(--ink); }

#invoices-table td:nth-child(2), #invoices-table td:last-child { font-family: inherit; font-weight: 400; color: inherit; white-space: normal; }
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.status-badge--paid { background: #dff3e6; color: #1c7a44; }
.status-badge--pending { background: #fdeadb; color: var(--copper); }
.status-badge:hover { filter: brightness(0.95); }

.addon-remove {
  background: none;
  border: none;
  color: #f6c39a;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 4px;
  vertical-align: middle;
}
.addon-remove:hover { color: #fff; }

.admin-invoice-code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 1rem 0 0.8rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--cobalt-night);
  color: #c6d2f0;
  padding: 72px 0 36px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 52px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .wordmark { color: #fff; margin: 0 0 14px; }
.site-footer .wordmark:hover { color: #f6c39a; }
.footer-tag { max-width: 24em; margin-bottom: 1.4rem; }

.footer-h {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #9fb4ec;
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #c6d2f0; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.footer-phone:hover { color: #f6c39a; }

.social-row { display: flex; gap: 14px; margin-top: 1.2rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #c6d2f0;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.social-row a:hover { border-color: #fff; color: #fff; }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.85rem;
  color: #9fb4ec;
}
.footer-bottom a { color: #9fb4ec; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

