/* =========================================================================
   ProEdge Painting — Project CSS
   Brand-specific styles that complement Tailwind utility classes:
   buttons, mesh hero/CTA background, navbar scroll state, mobile footer bar,
   and CSS-only scroll-reveal animations. Mobile-first.
   ========================================================================= */

:root {
  --primary:      #2b2d3c;
  --primary-dark: #1f212c;
  --secondary:    #ed2c47;
  --secondary-dk: #c81f38;
  --accent:       #ffffff;
}

/* ---- Global base -------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 17px; overflow-x: hidden; }
body { min-height: 100vh; line-height: 1.65; overflow-x: hidden; width: 100%; max-width: 100%; }
/* Tablet (768–1023px): scale everything up for big, readable tablet screens.
   Scoped to .tablet-scale so individual pages (e.g. thank-you) can opt out. */
@media (min-width: 768px) and (max-width: 1023.98px) { html.tablet-scale { font-size: 24px; } }
@media (min-width: 1024px) { html { font-size: 18px; } }   /* larger, more readable text on desktop */
@media (min-width: 1536px) { html { font-size: 19px; } }

/* Account for fixed navbar when jumping to anchors */
section[id] { scroll-margin-top: 6rem; }

/* Font helpers (paired with Tailwind font-head / font-body) */
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

/* =========================================================================
   BUTTONS — shared shape, three variants
   ========================================================================= */
.btn-secondary,
.btn-light,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.7rem;
  min-height: 48px;                /* min tap target */
  font-size: 1rem;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 6px 18px -6px rgba(237,44,71,.6); }
.btn-secondary:hover { background: var(--secondary-dk); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--primary); box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); }
.btn-light:hover { background: #f1f1f4; transform: translateY(-2px); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

/* =========================================================================
   LOGO CHIP — white backing so a dark/colour logo stays visible on the
   dark navbar and footer (keeps the brand's dark theme intact).
   ========================================================================= */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: .45rem .4rem;         /* taller box around the logo */
  border-radius: 10px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.logo-chip img { display: block; }

/* Mobile/tablet menu button as a card — same height as the logo white box.
   Logo box = logo img (h-9 = 2.25rem) + .logo-chip padding (.45rem top+bottom). */
.nav-toggle-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 3rem;
  border-radius: 10px;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-toggle-card:hover { background: var(--primary-dark); border-color: rgba(237,44,71,.45); }

/* =========================================================================
   NAVBAR — transparent at top, frosted on scroll
   ========================================================================= */
#site-nav { background: transparent; }
#site-nav.scrolled {
  background: rgba(31,33,44,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.5);
}
/* When the mobile menu is open, the navbar must be solid (no transparency) */
#site-nav.menu-open {
  background: var(--primary-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* =========================================================================
   HERO / FINAL CTA — subtle mesh gradient over dark primary base
   (the ONLY two places this treatment is used)
   ========================================================================= */
.hero-mesh {
  background-color: var(--primary-dark);
  background-image:
    radial-gradient(at 18% 22%, rgba(237,44,71,.28) 0px, transparent 50%),
    radial-gradient(at 82% 12%, rgba(74,78,104,.45) 0px, transparent 48%),
    radial-gradient(at 75% 88%, rgba(237,44,71,.18) 0px, transparent 45%),
    radial-gradient(at 28% 92%, rgba(58,61,82,.55) 0px, transparent 50%);
  background-repeat: no-repeat;
}
/* faint grid texture stays subtle + professional */
.hero-mesh::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  pointer-events: none;
}

/* =========================================================================
   SECTION SHADES — tints/shades of primary (NO gradients elsewhere)
   ========================================================================= */
.sec-primary       { background: var(--primary); }
.sec-primary-dark  { background: var(--primary-dark); }
.sec-primary-light { background: #3a3d52; }
.sec-tint          { background: #f4f4f7; color: var(--primary); }  /* light section */
.sec-tint h2, .sec-tint h3 { color: var(--primary); }

/* Cards on dark sections */
.card-dark {
  background: #34374a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-dark:hover {
  transform: translateY(-8px);
  border-color: rgba(237,44,71,.6);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.75);
}
/* Cards on light section */
.card-light {
  background: #fff;
  border: 1px solid #e6e6ec;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -20px rgba(43,45,60,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-light:hover {
  transform: translateY(-8px);
  border-color: rgba(237,44,71,.5);
  box-shadow: 0 24px 50px -18px rgba(43,45,60,.4);
}

/* Service card headings — reserve two rows so every card aligns */
.service-title {
  line-height: 1.2;
  min-height: 2.4em;   /* 2 lines at the 1.2 line-height above */
  display: flex;
  align-items: flex-end;
}
/* Force service-card titles to break onto two rows (constrains line length) */
.svc-title { max-width: 13ch; }

/* Service icon chip */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 18px;
  background: rgba(237,44,71,.14); color: var(--secondary);
  font-size: 1.7rem;
}
@media (min-width: 1024px) {
  .icon-chip { width: 76px; height: 76px; font-size: 1.9rem; }
}
/* Smaller icon for the contact tiles so long values (email) fit on one line */
.icon-chip.icon-chip-sm { width: 50px; height: 50px; font-size: 1.25rem; border-radius: 14px; }
@media (min-width: 640px) { .icon-chip.icon-chip-sm { width: 60px; height: 60px; font-size: 1.5rem; } }

/* Inline CTA banner card */
.cta-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.7);
  /* hero-style mesh gradient on a dark primary base */
  background-color: var(--primary-dark);
  background-image:
    radial-gradient(at 12% 20%, rgba(237,44,71,.30) 0px, transparent 50%),
    radial-gradient(at 85% 16%, rgba(74,78,104,.45) 0px, transparent 48%),
    radial-gradient(at 80% 90%, rgba(237,44,71,.20) 0px, transparent 45%),
    radial-gradient(at 20% 92%, rgba(58,61,82,.55) 0px, transparent 50%);
  background-repeat: no-repeat;
}
/* faint grid texture (matches the hero banner) */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  pointer-events: none;
}
/* keep content above the texture layer */
.cta-banner-text, .cta-banner-actions { position: relative; z-index: 1; }
.cta-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;          /* let the bullet row wrap based on card width */
}
/* Bullet row: show on one line; a 3rd bullet that wraps is clipped (hidden) */
.cta-features {
  line-height: 1.55;
  max-height: 1.55em;
  overflow: hidden;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  max-width: 15rem;   /* narrower stacked buttons on mobile/tablet */
  margin-inline: auto;
}
/* Horizontal layout only kicks in on DESKTOP — mobile + tablet stay stacked/centered */
@media (min-width: 1024px) {
  .cta-banner-actions { flex-direction: row; width: auto; max-width: none; flex-shrink: 0; }
  .cta-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
    padding: 2rem 2.5rem;
  }
  .cta-banner-text {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;          /* let the headline use the available width */
    width: auto;
  }
  .cta-features { max-height: none; overflow: visible; }
}

/* Footer "Pick your vibe" colour chips */
.vibe-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: .7rem;
  background: #34374a;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.vibe-chip:hover { border-color: rgba(237,44,71,.55); background: #3a3d52; transform: translateY(-2px); }
.vibe-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
  transition: transform .2s ease;
}
.vibe-chip:hover .vibe-swatch { transform: scale(1.12); }

/* Footer column headings + links */
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 1.15rem;
  padding-bottom: .6rem;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--secondary);
  border-radius: 9999px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.7);
  transition: color .2s ease, transform .2s ease;
}
.footer-link:hover { color: var(--secondary); transform: translateX(3px); }
.footer-link i { font-size: .65rem; color: var(--secondary); }

/* Quick Links: JS switches this to a column when the row would overflow */
.footer-quicklinks.is-column { flex-direction: column; row-gap: .625rem; }

/* Footer hook line + "spots left" booking meter */
.footer-quote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #fff;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary);
}
.booking-meter {
  height: 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.booking-meter-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--secondary);
  width: 0;
  animation: fillbar 1.3s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes fillbar { to { width: var(--pct, 75%); } }
@media (prefers-reduced-motion: reduce) {
  .booking-meter-fill { animation: none; width: var(--pct, 75%); }
}

/* Areas We Serve — location pills */
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #34374a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9999px;          /* pill shape */
  padding: .6rem 1.15rem;
  font-size: .92rem;
  font-weight: 500;
  color: #fff;
  cursor: default;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.area-chip:hover {
  border-color: rgba(237,44,71,.6);
  background: #3a3d52;
  transform: translateY(-3px);
}
.area-chip i {
  color: var(--secondary);
  font-size: .8rem;
  transition: transform .2s ease;
}
.area-chip:hover i { transform: scale(1.18); }
/* light-section variant */
.sec-tint .area-chip {
  background: #fff;
  border-color: #e6e6ec;
  color: var(--primary);
  box-shadow: 0 6px 16px -10px rgba(43,45,60,.35);
}
.sec-tint .area-chip:hover { background: #fff; border-color: rgba(237,44,71,.55); }

/* Social icons in footer */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 9999px;
  background: rgba(255,255,255,.06); color: var(--secondary);
  transition: background-color .2s ease, transform .2s ease;
}
.social-icon:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }

/* =========================================================================
   FIXED MOBILE FOOTER BAR
   ========================================================================= */
.mobile-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -6px 20px -8px rgba(0,0,0,.5);
}
.mobile-bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; border-radius: 9999px;   /* pill — matches site buttons */
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  border: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform .18s ease, background-color .18s ease;
}
.mobile-bar-btn.bg-secondary { box-shadow: 0 6px 16px -6px rgba(237,44,71,.6); }
.mobile-bar-btn:active { transform: translateY(1px); }
/* Home page only: hide the bar at the top, slide it up after scrolling */
.mobile-bar--scroll {
  transform: translateY(130%);
  transition: transform .35s ease;
}
.mobile-bar--scroll.show { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mobile-bar--scroll { transition: none; }
}

/* =========================================================================
   SCROLL-REVEAL ANIMATIONS (CSS only, toggled by IntersectionObserver)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-secondary:hover, .btn-light:hover, .card-dark:hover, .card-light:hover { transform: none; }
}

/* =========================================================================
   FORMS
   ========================================================================= */
.form-field {
  width: 100%; min-height: 48px;
  background: #fff; color: var(--primary);
  border: 1px solid #d3d3dc; border-radius: 12px;
  padding: .7rem 1rem; font-size: 16px;     /* >=16px stops iOS zoom */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field:focus {
  outline: none; border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(237,44,71,.18);
}
.form-field.invalid { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(237,44,71,.18); }
.field-error { color: var(--secondary); font-size: .8rem; margin-top: .25rem; display: none; }
.field-error.show { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Accordion (FAQ) — card style */
.faq-item {
  background: #34374a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: rgba(237,44,71,.35); }
.faq-item.open {
  background: #383c52;
  border-color: rgba(237,44,71,.55);
  box-shadow: 0 14px 34px -20px rgba(0,0,0,.7);
}
.faq-q {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
}
.faq-icon-chip {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(237,44,71,.14);
  color: var(--secondary);
  transition: transform .3s ease, background-color .25s ease, color .25s ease;
}
.faq-item.open .faq-icon-chip { transform: rotate(135deg); background: var(--secondary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 1.25rem 1.25rem; }

/* Light-section variant */
.sec-tint .faq-item { background: #fff; border-color: #e6e6ec; }
.sec-tint .faq-q { color: var(--primary); }
.sec-tint .faq-item.open { background: #fff; }

/* =========================================================================
   SLIDE-OVER QUOTE FORM
   Mobile + tablet (< 1280px): slides UP from the bottom (bottom sheet).
   Desktop (>= 1280px):        slides DOWN from the top (top sheet).
   ========================================================================= */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.quote-modal.open { visibility: visible; pointer-events: auto; }

.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,16,22,.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.quote-modal.open .quote-overlay { opacity: 1; }

/* ----- Default = mobile/tablet: bottom sheet (slides up) ----- */
.quote-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  color: var(--primary);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -18px 50px -12px rgba(0,0,0,.55);
  transform: translateY(100%);            /* hidden below the screen */
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.quote-modal.open .quote-panel { transform: translateY(0); }

.quote-panel-inner { padding: 2rem 1.25rem 1.75rem; }

/* grab handle hint for the bottom sheet */
.quote-panel::before {
  content: "";
  position: absolute;
  top: .6rem; left: 50%;
  width: 44px; height: 5px;
  transform: translateX(-50%);
  background: rgba(43,45,60,.18);
  border-radius: 9999px;
}

.quote-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--primary);        /* solid, fully opaque */
  border: 0;
  box-shadow: 0 4px 14px -3px rgba(0,0,0,.4);
  color: #fff;
  font-size: 1.1rem;
  transition: background-color .2s ease, color .2s ease;
  z-index: 6;
}
.quote-close:hover { background: var(--secondary); color: #fff; }

/* ----- Desktop (>= 1280px): top sheet (slides down), centered ----- */
@media (min-width: 1280px) {
  .quote-panel {
    top: 0;
    bottom: auto;
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 560px;
    border-radius: 0 0 1.75rem 1.75rem;
    box-shadow: 0 18px 50px -12px rgba(0,0,0,.55);
    transform: translateX(-50%) translateY(-100%);   /* hidden above the screen */
  }
  .quote-modal.open .quote-panel { transform: translateX(-50%) translateY(0); }
  .quote-panel-inner { padding: 2.75rem 2.5rem 2.25rem; }
  /* handle hint sits at the bottom edge on the top sheet */
  .quote-panel::before { top: auto; bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-panel, .quote-overlay { transition: none; }
}

/* Lock background scroll while the sheet is open */
body.quote-open { overflow: hidden; }

/* =========================================================================
   SERVICE SLIDE-OVER (opened by clicking a service card)
   Mobile/tablet (< 1280px): bottom sheet, single column (explanation, then form).
   Desktop (>= 1280px):       top sheet, two columns (explanation | form).
   ========================================================================= */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.service-modal.open { visibility: visible; pointer-events: auto; }

.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,16,22,.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-modal.open .service-overlay { opacity: 1; }

/* ----- Default = mobile/tablet: bottom sheet (slides up) ----- */
.service-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 94vh;
  overflow: hidden;                 /* panel frame stays put; inner wrapper scrolls */
  background: #fff;
  color: var(--primary);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -18px 50px -12px rgba(0,0,0,.55);
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.service-modal.open .service-panel { transform: translateY(0); }

/* Inner scroll area — keeps the close button + grab handle fixed to the panel */
.service-scroll {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* grab handle for the bottom sheet */
.service-panel::before {
  content: "";
  position: absolute;
  top: .6rem; left: 50%;
  width: 44px; height: 5px;
  transform: translateX(-50%);
  background: rgba(43,45,60,.18);
  border-radius: 9999px;
  z-index: 3;
}

.service-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--primary);        /* solid, fully opaque */
  border: 0;
  box-shadow: 0 4px 14px -3px rgba(0,0,0,.4);
  color: #fff;
  font-size: 1.1rem;
  z-index: 6;                       /* always above the scrolling content */
  transition: background-color .2s ease, color .2s ease;
}
.service-close:hover { background: var(--secondary); color: #fff; }

.service-grid { display: grid; grid-template-columns: 1fr; }
.service-explain-col { padding: 2.25rem 1.5rem 1.5rem; background: #f4f4f7; }
.service-form-col    { padding: 2rem 1.5rem; }

/* ----- Desktop (>= 1280px): top sheet, two columns ----- */
@media (min-width: 1280px) {
  .service-panel {
    top: 0;
    bottom: auto;
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 940px;
    border-radius: 0 0 1.75rem 1.75rem;
    box-shadow: 0 18px 50px -12px rgba(0,0,0,.55);
    transform: translateX(-50%) translateY(-100%);
  }
  .service-modal.open .service-panel { transform: translateX(-50%) translateY(0); }
  .service-panel::before { top: auto; bottom: .6rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-explain-col { padding: 3rem 2.5rem; }
  .service-form-col    { padding: 3rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel, .service-overlay { transition: none; }
}

/* Clickable service cards */
.card-clickable { cursor: pointer; }
.card-clickable:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.card-cue {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem;
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .85rem;
}
.card-clickable:hover .card-cue i { transform: translateX(4px); }
.card-cue i { transition: transform .2s ease; }

/* =========================================================================
   BEFORE / AFTER SLIDER (Home gallery)
   Both images sit full-size; the "before" image is clipped with clip-path
   driven by the --pos custom property (updated on drag / arrow keys).
   ========================================================================= */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 34px -18px rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.08);
  user-select: none;
  touch-action: pan-y;        /* allow vertical page scroll, capture horizontal drag */
  background: #1f212c;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-after  { z-index: 1; }
.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}

/* Labels */
.ba-label {
  position: absolute;
  top: .75rem;
  z-index: 3;
  padding: .25rem .7rem;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(31,33,44,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ba-label-before { left: .75rem; }
.ba-label-after  { right: .75rem; background: rgba(237,44,71,.85); }

/* Drag handle + divider line */
.ba-handle {
  position: absolute;
  top: 0;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  z-index: 4;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: ew-resize;
  color: var(--primary);
}
/* vertical divider line */
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
/* round knob */
.ba-handle i {
  position: relative;
  z-index: 1;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 9999px;
  font-size: .9rem;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,.5);
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible i { outline: 3px solid var(--secondary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ba-before { will-change: auto; }
}
