:root {
  --cream: #F7F1E4;
  --cream-deep: #EFE7D4;
  --surface: #FDFBF5;
  --ink: #10182B;
  --ink-soft: #52596B;
  --hairline: #DED3B8;
  --terracotta: #E24A29;
  --terracotta-deep: #B93A1F;
  --navy: #29388F;
  --navy-deep: #1B2461;
  --slate: #4B6382;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16,24,43,0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--navy-deep); }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- shared ---------- */
.section-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 10px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 300; max-width: 640px;
  margin: 0 0 8px; color: var(--ink);
}
.section-note { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-family: inherit;
  font-size: 14.5px; font-weight: 500; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--terracotta); color: #FBF1E9; }
.btn--primary:hover { background: var(--terracotta-deep); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: var(--cream); color: var(--navy-deep); }
.btn--light:hover { background: var(--surface); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.stars { color: var(--terracotta); font-size: 13px; letter-spacing: 1px; }

/* ---------- trust bar ---------- */
.trust-bar {
  background: var(--navy-deep); color: #E9E4D6; font-size: 12px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 7px 20px; text-align: center; flex-wrap: wrap;
}
.trust-bar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: #F4C9B4; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(247,241,228,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.wordmark { display: flex; align-items: center; margin-right: auto; }
.wordmark__logo { height: 56px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; }
.nav__burger {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); }

/* ---------- first screen (hero grows, navy block pins to the fold) ---------- */
.hero-screen { display: flex; flex-direction: column; }
.hero-screen > .hero { flex: 1 0 auto; display: flex; flex-direction: column; }
.hero-screen > .hero > .hero__inner { flex: 1 1 auto; }
@media (min-width: 900px) {
  .hero-screen { min-height: calc(100vh - 118px); } /* 100vh minus trust bar + nav */
  /* Let the carousel fill its column top-to-bottom so it doesn't float in cream.
     Prefixed with .hero-screen to win over the base rules later in the file. */
  .hero-screen .hero__inner { align-items: stretch; grid-template-rows: 1fr; }
  .hero-screen .hero-carousel { align-self: stretch; aspect-ratio: auto; min-height: 380px; }
}

/* ---------- hero ---------- */
.hero { padding: 26px 24px 24px; }
.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__copy { align-self: center; min-width: 0; }

/* ---------- hero carousel ---------- */
/* Fixed aspect ratio keeps the before/after photos framed the same at every
   window size: the carousel scales by width and never stretches tall to fill
   the fold, so the images stay fully viewable and nothing shifts on resize. */
.hero-carousel {
  position: relative; width: 100%; aspect-ratio: 16 / 10; align-self: center;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline); box-shadow: 0 18px 40px rgba(16,24,43,0.18);
  background: #0b0f1c;
}
.hc__viewport { position: absolute; inset: 0; }
.hc__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.hc__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc__slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  animation: hcForward .8s cubic-bezier(.2,.7,.2,1);
}
/* incoming slide stays opaque and always covers the frame (scale >= 1),
   so it "comes forward" and settles back with no dark gap between slides */
@keyframes hcForward {
  0%   { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hc__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(16,24,43,0.3); transition: background .15s ease, transform .15s ease;
}
.hc__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hc__nav--prev { left: 12px; }
.hc__nav--next { right: 12px; }
.hc__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.hc__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: width .2s ease, background .2s ease; }
.hc__dot.is-active { background: #fff; width: 22px; border-radius: 4px; }
.hc__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(253,251,245,0.94); border: 1px solid var(--hairline); border-radius: 100px;
  padding: 7px 13px; font-size: 12px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) { .hc__slide.is-active { animation: none; } }

/* each carousel slide holds a draggable before/after that fills the frame */
.hc__slide .ba { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: none; border-radius: 0; box-shadow: none; background: transparent; isolation: auto; }
.hc__nav, .hc__dots { z-index: 6; } /* keep arrows/dots clickable above the slider's range overlay */

/* compact horizontal quote bar */
.quickquote { max-width: var(--max); margin: 14px auto 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 13px 20px; box-shadow: var(--shadow); }
.quickquote__label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.quickquote__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.quickquote__form input, .quickquote__form select { flex: 1 1 150px; min-width: 0; padding: 11px 13px; border-radius: var(--radius-sm); border: 1.5px solid var(--hairline); background: var(--cream); font-family: inherit; font-size: 14px; color: var(--ink); }
.quickquote__form input:focus, .quickquote__form select:focus { outline: none; border-color: var(--navy); }
.quickquote__form .btn { flex: 0 0 auto; }
.quickquote .quote-success { margin-top: 4px; }

/* founded-by-Luis bar */
.founder-bar { background: var(--navy-deep); color: #E9E4D6; text-align: center; font-size: 12px; padding: 5px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.founder-bar strong { color: #F4C9B4; font-weight: 600; }

@media (max-width: 560px) {
  .quickquote__form input, .quickquote__form select, .quickquote__form .btn { flex: 1 1 100%; }
  /* keep the single-column About grid from being blown out by the long CTA
     button (which is white-space: nowrap); let the track shrink and the
     button text wrap so nothing gets clipped off the right edge on phones */
  .about__inner { grid-template-columns: minmax(0, 1fr); }
  .about__inner > * { min-width: 0; }
  .about__copy .btn { white-space: normal; height: auto; text-align: center; }
  .work .portfolio { grid-template-columns: 1fr; gap: 14px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--slate); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 4.9vw, 56px); font-weight: 300; line-height: 1.07; color: var(--ink);
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.hero__sub { font-size: 17.5px; color: var(--ink-soft); max-width: 480px; margin-bottom: 20px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--ink-soft);
}
.hero__trust li { display: flex; align-items: center; gap: 6px; }

.hero__svg { width: 100%; height: auto; }
.hero__svg-bg { fill: var(--navy); }
.hero__svg-mtn { fill: var(--navy-deep); opacity: 0.85; }
.hero__svg-mtn2 { fill: var(--terracotta); opacity: 0.9; }
.hero__svg-stroke { fill: var(--cream); opacity: 0.9; }
.hero__svg-ring { fill: none; stroke: var(--cream); stroke-width: 2; opacity: 0.5; }

.quote-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); align-self: start;
}
.quote-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.quote-card h2 { font-size: 21px; font-weight: 500; margin-bottom: 18px; }
.quote-form__row { margin-bottom: 12px; }
.quote-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form input, .quote-form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--hairline);
  background: var(--cream); font-family: inherit; font-size: 14px; color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus {
  outline: none; border-color: var(--navy);
}
.quote-form__fine { font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; line-height: 1.5; }

.quote-success {
  display: flex; gap: 14px; align-items: flex-start; padding: 8px 4px; color: var(--navy-deep);
}
.quote-success svg { flex-shrink: 0; color: var(--terracotta); margin-top: 2px; }
.quote-success p { font-size: 14px; color: var(--ink-soft); }

/* ---------- stats ---------- */
.stats { background: var(--navy-deep); padding: 6px 24px 8px; }
.stats__inner {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: 19px; font-weight: 600; color: #F4C9B4; }
.stat__label { font-size: 11px; color: #C4CBE0; letter-spacing: 0.4px; }

/* ---------- how it works ---------- */
.how { max-width: var(--max); margin: 0 auto; padding: 84px 24px 64px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.how__num { font-size: 13px; font-weight: 600; color: var(--terracotta); letter-spacing: 1px; }
.how__step h3 { font-size: 18px; margin: 10px 0 8px; }
.how__step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- services ---------- */
.services { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
/* flip cards: photo + service name on the front, description on the back */
.service-card { position: relative; display: block; min-height: 264px; border-radius: var(--radius-md); perspective: 1300px; color: #fff; }
.service-card__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-card__inner,
.service-card:focus-visible .service-card__inner { transform: rotateY(180deg); }
.service-card__face {
  position: absolute; inset: 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--hairline); padding: 22px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column;
}
.service-card__front { justify-content: flex-end; }
.service-card__front picture { position: absolute; inset: 0; z-index: 0; display: block; }
.service-card__bg { width: 100%; height: 100%; object-fit: cover; }
.service-card__front::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,24,43,0) 30%, rgba(16,24,43,0.5) 62%, rgba(16,24,43,0.9) 100%);
}
.service-card__front h3 { position: relative; z-index: 2; font-size: 18px; font-weight: 600; color: #fff; margin: 0; }
.service-card__back {
  transform: rotateY(180deg); background: var(--navy-deep);
  justify-content: center; gap: 9px;
}
.service-card__back h3 { font-size: 16px; font-weight: 600; color: #fff; margin: 0; }
.service-card__back p { font-size: 13.5px; color: rgba(237,240,250,0.86); margin: 0; line-height: 1.5; }
.service-card__cta { font-size: 13px; font-weight: 600; color: #F4C9B4; margin-top: 3px; }

/* touch / no-hover: show the description over the photo instead of flipping */
@media (hover: none) {
  .service-card__inner { transform: none !important; }
  .service-card__front h3 { display: none; }
  .service-card__front::after { display: none; }
  .service-card__back {
    transform: none; -webkit-backface-visibility: visible; backface-visibility: visible;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(16,24,43,0) 28%, rgba(16,24,43,0.55) 60%, rgba(16,24,43,0.92) 100%);
  }
}

/* ---------- work ---------- */
.work { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.work__tile { aspect-ratio: 1; border-radius: var(--radius-md); background-size: cover; }
.work__tile--a { background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 55%, var(--terracotta) 55%, var(--terracotta) 100%); }
.work__tile--b { background: var(--cream-deep); position: relative; overflow: hidden; }
.work__tile--b::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--terracotta); border-radius: 8px; }
.work__tile--c { background: var(--terracotta); position: relative; }
.work__tile--c::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: var(--navy-deep); }
.work__tile--d { background: repeating-linear-gradient(45deg, var(--navy) 0 14px, var(--navy-deep) 14px 28px); }

/* ---------- portfolio gallery ---------- */
.portfolio {
  margin-top: 34px; display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.pf-card {
  position: relative; display: block; padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; font-family: inherit; color: #fff; isolation: isolate;
  box-shadow: 0 12px 30px rgba(16,24,43,0.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pf-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(16,24,43,0.26); }
.pf-card:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.pf-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.pf-card:hover .pf-card__img { transform: scale(1.06); }
.pf-card__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,24,43,0) 38%, rgba(16,24,43,0.32) 66%, rgba(16,24,43,0.86) 100%); }
.pf-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; text-align: left; }
.pf-card__tag { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; background: var(--terracotta); color: #fff; padding: 4px 10px; border-radius: 100px; }
.pf-card__title { font-size: 18px; font-weight: 600; line-height: 1.2; }
.pf-card__count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.9); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 3vw; background: rgba(11,15,28,0.92); opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: min(1100px, 92vw); max-height: 84vh; display: flex; }
.lightbox__img { max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,0.12); border-radius: 100px;
  transition: background .16s ease, transform .16s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--terracotta); }
.lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__bar { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 14px; color: #fff; font-size: 14px; padding: 0 16px; }
.lightbox__title { font-weight: 600; }
.lightbox__counter { color: rgba(255,255,255,0.72); font-variant-numeric: tabular-nums; }

/* ---------- banner ---------- */
.banner { background: var(--terracotta); padding: 54px 24px; margin: 20px 0; }
.banner__inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.banner h2 { color: #FBF1E9; font-size: clamp(20px, 2.6vw, 28px); font-weight: 400; max-width: 560px; }

/* ---------- about / meet luis ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: 84px 24px 64px; }
.about__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.about__photo { position: relative; }
.about__photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--hairline); box-shadow: 0 18px 40px rgba(16,24,43,0.16);
  aspect-ratio: 4 / 3; filter: contrast(1.06) saturate(1.08) brightness(1.02);
}
.about__badge {
  position: absolute; bottom: 16px; left: 16px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 100px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 500; color: var(--ink); display: inline-flex;
  align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.about__copy .section-title { margin-bottom: 18px; }
.about__copy p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; max-width: 540px; }
.about__points { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.about__points svg { color: var(--terracotta); flex-shrink: 0; }

/* ---------- reviews / testimonials ---------- */
.reviews { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.review--wide { grid-column: 1 / -1; }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 24px;
}
.review p { font-size: 14px; color: var(--ink); margin: 12px 0 16px; line-height: 1.65; }
.review cite { font-size: 12.5px; color: var(--ink-soft); font-style: normal; }

/* ---------- areas ---------- */
.areas { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.areas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.area-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 22px; color: var(--terracotta);
}
.area-card h3 { color: var(--ink); font-size: 16px; margin: 12px 0 4px; }
.area-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.faq__list { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 6px 20px;
}
.faq__item summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--terracotta); font-size: 20px; font-weight: 300; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { font-size: 14px; color: var(--ink-soft); padding-bottom: 16px; max-width: 640px; }

/* ---------- testimonial marquee ---------- */
.marquee { background: var(--navy-deep); padding: 6px 0 7px; overflow: hidden; }
.marquee__rating {
  text-align: center; color: #E9E4D6; font-size: 11.5px; font-weight: 500;
  margin: 0 0 5px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.marquee__rating .stars { font-size: 15px; }
.marquee__viewport { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; }
.marquee__card {
  flex: 0 0 auto; width: 130px; margin: 0; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: 5px 10px;
  line-height: 1.2;
}
.marquee__card .stars { font-size: 10px; line-height: 1; display: block; }
.marquee__card p {
  font-size: 10.5px; color: #E9E4D6; line-height: 1.25; margin: 2px 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.marquee__card figcaption { font-size: 10.5px; font-weight: 600; color: #F4C9B4; line-height: 1.2; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- final cta ---------- */
.final-cta { text-align: center; padding: 64px 24px 52px; max-width: 640px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 300; margin-bottom: 10px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #C4CBE0; padding: 48px 24px 6px; }
.footer__inner {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1.8fr 1fr; gap: 30px 48px;
  align-items: start; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .wordmark--footer { margin-bottom: 14px; }
.wordmark__logo--footer { height: 48px; }
.footer__brand p { font-size: 13px; line-height: 1.55; margin-bottom: 7px; max-width: 300px; }
.footer__nap { font-size: 12.5px; }
.footer__nap a { color: #F4C9B4; }
.footer__col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: #F4C9B4; margin: 0 0 12px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer__col a:hover { color: #fff; }
.footer__col .btn { margin-bottom: 0; }
/* When the tall Service Areas block is present, drop to 3 columns and give it its
   own full-width row so Get Started isn't left with a large empty area beneath it. */
.footer__inner:has(.footer__col--areas) { grid-template-columns: 1.6fr 1fr 1fr; }
.footer__col--areas { grid-column: 1 / -1; order: 2; gap: 10px; }
.footer__areas { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer__areas h5 { font-size: 12px; font-weight: 600; color: #E9E4D6; margin: 0 0 8px; letter-spacing: 0.3px; }
.footer__areas ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(84px, max-content)); gap: 6px 20px; }
.footer__areas li { font-size: 12.5px; line-height: 1.25; }

/* ---------- booking / schedule page ---------- */
.book { background: var(--cream); min-height: 60vh; }
.book__hero { max-width: 760px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.book__title { font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 6px 0 12px; }
.book__lead { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.book__points {
  list-style: none; max-width: 820px; margin: 22px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
}
.book__points li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--navy-deep); }
.book__points svg { color: var(--terracotta); flex-shrink: 0; }
.book__prefill {
  max-width: 900px; margin: 24px auto -6px; padding: 11px 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(226,74,41,0.07); border: 1px solid rgba(226,74,41,0.22);
  border-radius: 999px; color: var(--navy-deep);
  font-size: 13.5px; font-weight: 500; text-align: center;
}
.book__card {
  max-width: 900px; margin: 28px auto 0; padding: 14px;
  background: #fff; border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(16,24,43,0.10);
}
.book__card iframe { display: block; width: 100%; border: none; border-radius: calc(var(--radius-lg) - 8px); }
.book__alt { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 26px 24px 64px; }
.book__alt a { color: var(--terracotta); font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
  .book__hero { padding-top: 40px; }
  .book__card { margin-left: 12px; margin-right: 12px; padding: 8px; }
  .book__prefill { margin-left: 12px; margin-right: 12px; border-radius: var(--radius-lg); }
}

/* ---------- post-booking thank-you page ---------- */
.ty { background: var(--cream); min-height: 60vh; }
.ty__hero { max-width: 720px; margin: 0 auto; padding: 56px 24px 4px; text-align: center; }
.ty__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 18px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  box-shadow: 0 10px 28px rgba(226,74,41,0.32);
}
.ty__title { font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 6px 0 12px; }
.ty__lead { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; max-width: 580px; margin: 0 auto; }

.ty__card {
  max-width: 620px; margin: 30px auto 0; padding: 24px 26px;
  background: #fff; border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(16,24,43,0.10);
}
.ty__card-title { font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.ty__details { margin: 0; display: grid; gap: 12px; }
.ty__row { display: grid; grid-template-columns: 116px 1fr; align-items: start; gap: 14px; }
.ty__row dt {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0;
}
.ty__row dt svg { color: var(--terracotta); flex-shrink: 0; }
.ty__row dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--navy-deep); line-height: 1.45; }

.ty__cal { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cream-deep); }
.ty__cal-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin: 0 0 10px; }
.ty__cal-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.ty__next { max-width: 620px; margin: 38px auto 0; padding: 0 24px; }
.ty__next-title { font-size: 19px; color: var(--ink); margin: 0 0 16px; text-align: center; }
.ty__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ty__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ty__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(226,74,41,0.10); color: var(--terracotta);
  font-size: 14px; font-weight: 700;
}
.ty__steps h3 { font-size: 15px; color: var(--navy-deep); margin: 4px 0 4px; }
.ty__steps p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.ty__alt { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 30px 24px 0; }
.ty__alt a { color: var(--terracotta); font-weight: 600; white-space: nowrap; }
.ty__back { text-align: center; padding: 24px 24px 64px; }

@media (max-width: 600px) {
  .ty__hero { padding-top: 40px; }
  .ty__card { margin-left: 12px; margin-right: 12px; padding: 20px 18px; }
  .ty__row { grid-template-columns: 1fr; gap: 3px; }
  .ty__cal-btns .btn { flex: 1 1 100%; }
}

/* Hide the legacy SMS chat widget (source=WEB_USER) but keep it loaded/detectable;
   the visible launcher is the AI live-chat agent widget. */
chat-widget[source="WEB_USER"] { display: none !important; }

/* ---------- legal pages (privacy, terms) ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 72px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); margin-bottom: 4px; }
.legal__updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 18px; color: var(--navy-deep); margin: 28px 0 8px; }
.legal p { color: #33384a; font-size: 15px; line-height: 1.72; margin-bottom: 12px; }
.legal ul { margin: 4px 0 14px 20px; }
.legal li { color: #33384a; font-size: 15px; line-height: 1.6; margin-bottom: 7px; }
.legal a { color: var(--terracotta); }
.legal a:hover { color: var(--terracotta-deep); }

/* footer legal links */
.footer__legal { display: flex; gap: 8px; align-items: center; }
.footer__legal a { color: #8B94B3; }
.footer__legal a:hover { color: #C4CBE0; }
.footer__bottom {
  max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; padding: 13px 0; font-size: 11.5px; color: #8B94B3;
}
.footer__credit strong { color: #C4CBE0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__inner { gap: 18px; }
  .nav__links { gap: 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-carousel { aspect-ratio: 4 / 3; min-height: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid, .areas__grid, .how__grid { grid-template-columns: 1fr; }
  .review--wide { grid-column: auto; }
  .about__inner { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 480px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.nav--open { position: relative; }
  .nav.nav--open::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 100vh;
    background: rgba(16,24,43,0.25); z-index: -1;
  }
  .nav.nav--open .nav__inner { flex-wrap: wrap; }
  .nav.nav--open .nav__links {
    display: flex; flex-direction: column; width: 100%; order: 3;
    background: var(--surface); padding: 20px 24px 4px; gap: 16px;
  }
  .nav.nav--open .nav__cta {
    display: flex; width: 100%; order: 4;
    background: var(--surface); padding: 4px 24px 20px; gap: 10px;
    border-bottom: 1px solid var(--hairline);
  }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services__grid, .work__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ===================================================================
   SUBPAGES — Guides hub & article (Painting Q&A)
   =================================================================== */
.subpage { padding: 0 24px 64px; }
.subpage__inner { max-width: 764px; margin: 0 auto; }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); margin: 26px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* article header */
.article__header { margin: 20px 0 28px; }
.article__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 12px; }
.article__title { font-size: clamp(27px, 4.4vw, 40px); font-weight: 600; line-height: 1.16; margin: 0 0 20px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 13.5px; color: var(--ink-soft); }
.article__byline { display: flex; align-items: center; gap: 10px; }
.article__byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__byline strong { color: var(--ink); font-weight: 600; }
.article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--hairline); }

/* article body typography */
.article__body { font-size: 16.5px; color: #26304a; line-height: 1.72; }
.article__body h2 { font-size: 23px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; line-height: 1.28; }
.article__body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.article__body p { margin: 0 0 17px; }
.article__body ul { margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.article__body ul li { position: relative; padding-left: 24px; }
.article__body ul li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--terracotta); }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--terracotta); }

/* TL;DR / short-answer callout (AEO) */
.tldr { background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--terracotta); border-radius: var(--radius-md); padding: 20px 22px; margin: 4px 0 30px; }
.tldr__label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 8px; }
.tldr p { font-size: 16px; line-height: 1.65; margin: 0; color: var(--ink); }

/* comparison table */
.table-scroll { overflow-x: auto; margin: 10px 0 26px; border: 1px solid var(--hairline); border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 14.5px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.5; }
.compare-table thead th { background: var(--cream-deep); font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare-table tbody th { font-weight: 600; color: var(--ink); background: var(--surface); white-space: nowrap; }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: none; }

/* On phones, stack each table row into its own card so nothing needs
   sideways scrolling. Each cell shows its column label (from data-label). */
@media (max-width: 560px) {
  .table-scroll { overflow-x: visible; border: none; border-radius: 0; }
  .compare-table { min-width: 0; font-size: 14.5px; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .compare-table tbody tr {
    display: block; border: 1px solid var(--hairline); border-radius: var(--radius-md);
    margin-bottom: 14px; overflow: hidden; background: var(--surface);
  }
  .compare-table tbody th {
    display: block; white-space: normal; background: var(--cream-deep);
    padding: 11px 15px; font-size: 15px; border-bottom: 1px solid var(--hairline);
  }
  .compare-table tbody td {
    display: flex; gap: 14px; justify-content: space-between; align-items: baseline;
    padding: 9px 15px; border-bottom: 1px solid var(--hairline); background: transparent;
  }
  .compare-table tbody tr td:last-child { border-bottom: none; }
  .compare-table tbody td::before {
    content: attr(data-label); flex: 0 0 40%; font-weight: 600; color: var(--ink);
    text-align: left;
  }
  .compare-table tbody td { text-align: right; }
}

/* Q&A (AEO / FAQ schema) */
.qa { margin: 6px 0 0; }
.qa__item { border-top: 1px solid var(--hairline); padding: 22px 0; }
.qa__item:last-child { border-bottom: 1px solid var(--hairline); }
.qa__item h3 { font-size: 17.5px; font-weight: 600; color: var(--ink); margin: 0 0 9px; }
.qa__item p { margin: 0; color: #26304a; line-height: 1.68; }

/* author card (E-E-A-T) */
.author-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 20px; margin: 34px 0 0; }
.author-card img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card__role { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 5px; }
.author-card h4 { font-size: 15.5px; margin: 0 0 7px; color: var(--ink); }
.author-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* article CTA band */
.article-cta { background: var(--navy-deep); color: #EDF0FA; border-radius: var(--radius-lg); padding: 32px 28px; margin: 36px 0 0; text-align: center; }
.article-cta h2 { color: #fff; font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.article-cta p { margin: 0 0 20px; color: #C4CBE0; font-size: 15px; }

/* ---------- Guides hub ---------- */
.hub__hero { max-width: 720px; margin: 0 auto; padding: 44px 24px 6px; text-align: center; }
.hub__hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; line-height: 1.12; margin: 12px 0 14px; }
.hub__hero p { font-size: 16.5px; color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.hub__grid { max-width: var(--max); margin: 34px auto 72px; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 24px; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.guide-card__tag { font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 12px; }
.guide-card__title { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.32; margin: 0 0 10px; }
.guide-card__excerpt { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; line-height: 1.6; }
.guide-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin: 0 0 16px; }
.guide-card__cta { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--navy); }
.guide-card:hover .guide-card__cta { color: var(--terracotta); }

@media (max-width: 720px) {
  .article-cta, .author-card { border-radius: var(--radius-md); }
  .author-card { flex-direction: column; }
}

/* ===================================================================
   BEFORE / AFTER SLIDERS
   =================================================================== */
.ba-grid { max-width: var(--max); margin: 34px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ba-item__caption { margin: 13px 2px 0; font-size: 14px; color: var(--ink-soft); }
.ba-item__caption strong { color: var(--ink); font-weight: 600; }

.ba {
  position: relative; width: 100%; aspect-ratio: 3 / 2; --pos: 50%;
  border-radius: var(--radius-md); overflow: hidden; background: #0b0f1c;
  border: 1px solid var(--hairline); box-shadow: 0 12px 34px rgba(16,24,43,0.16);
  touch-action: pan-y; isolation: isolate;
}
.ba picture { position: absolute; inset: 0; display: block; }
.ba__img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }

.ba__tag {
  position: absolute; bottom: 14px; z-index: 4; font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: #fff;
  background: rgba(16,24,43,0.6); padding: 5px 11px; border-radius: 100px; pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }

.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); z-index: 3; box-shadow: 0 0 0 1px rgba(16,24,43,0.12); pointer-events: none; }
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(16,24,43,0.4);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 300px; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 46px; height: 300px; border: 0; background: transparent; cursor: ew-resize; }
.ba__range:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: var(--radius-md); }

@media (max-width: 720px) {
  .ba-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ===================================================================
   SLIDE-IN LEAD FORM + HOPE PAINT-CAN WIDGET
   =================================================================== */
.slidein {
  position: fixed; right: 22px; top: 50%; z-index: 65;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(16,24,43,0.32);
  padding: 22px 22px 20px;
  transform: translate(calc(100% + 40px), -50%);
  transition: transform .5s cubic-bezier(.22,.68,.24,1);
}
.slidein.is-open { transform: translate(0, -50%); }

/* Pull tab on the right edge to reopen the form */
.slidein-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 64;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--terracotta); color: #FBF1E9; border: none; cursor: pointer;
  padding: 15px 7px 14px; border-radius: 12px 0 0 12px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px;
  box-shadow: -4px 4px 16px rgba(16,24,43,0.28);
  transition: transform .3s cubic-bezier(.22,.68,.24,1), background .15s ease;
}
.slidein-tab span { writing-mode: vertical-rl; }
.slidein-tab:hover { background: var(--terracotta-deep); }
.slidein-tab.is-hidden { transform: translate(110%, -50%); pointer-events: none; }

.slidein__close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream-deep); border: none; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slidein__close:hover { color: var(--ink); }
.slidein__kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 6px; }
.slidein__title { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 16px; max-width: 90%; }
.slidein__form { display: flex; flex-direction: column; gap: 10px; }
.slidein__form input, .slidein__form select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1.5px solid var(--hairline);
  background: var(--cream); font-family: inherit; font-size: 14px; color: var(--ink);
}
.slidein__form input:focus, .slidein__form select:focus { outline: none; border-color: var(--navy); }
.slidein__form .btn { margin-top: 2px; }
.slidein__row { display: flex; gap: 10px; }
.slidein__row input { flex: 1 1 0; min-width: 0; }
/* Honeypot. Positioned off-screen rather than display:none, because some bots
   skip fields they can tell are hidden — this one still looks fillable. */
.slidein__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.slidein__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--ink-soft); line-height: 1.45; text-align: left; margin: 2px 0; }
.slidein__consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--terracotta); }
.slidein__consent a { color: var(--terracotta); text-decoration: underline; }
.slidein__fine { font-size: 11px; color: var(--ink-soft); text-align: center; margin: 8px 0 0; line-height: 1.5; }
.slidein__success { display: flex; gap: 12px; align-items: flex-start; }
.slidein__success svg { flex-shrink: 0; color: var(--terracotta); margin-top: 2px; }
.slidein__success p { font-size: 14px; color: var(--ink-soft); }

/* Hope AI chat launcher */
.paintbot { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 10px; }
.paintbot__bubble {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 8px 13px;
  box-shadow: 0 8px 24px rgba(16,24,43,0.2); position: relative; max-width: 208px;
  animation: paintbotBubbleIn .45s ease both;
}
.paintbot__bubble-title { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.paintbot__bubble-sub { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 1px; }
.paintbot__bubble::after {
  content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent; border-left-color: #fff;
}
.paintbot__bubble.is-hidden { display: none; }
@keyframes paintbotBubbleIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.paintbot__btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-deep); border: 2px solid var(--terracotta); color: #FBF1E9;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 6px 18px rgba(16,24,43,0.34);
  transition: transform .16s ease; animation: paintbotPulse 2.8s ease-in-out infinite;
}
.paintbot__btn:hover { transform: scale(1.08); animation-play-state: paused; }
.paintbot__icon { width: 22px; height: 22px; color: #FBF1E9; }
.paintbot__dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34D399; border: 2px solid var(--navy-deep); }
.paintbot__badge {
  position: absolute; bottom: -3px; left: -3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--terracotta); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.paintbot__badge svg { width: 10px; height: 10px; }
@keyframes paintbotPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(16,24,43,.34), 0 0 0 0 rgba(226,74,41,.5); }
  70%      { box-shadow: 0 8px 22px rgba(16,24,43,.34), 0 0 0 13px rgba(226,74,41,0); }
}

@media (prefers-reduced-motion: reduce) { .paintbot__btn { animation: none; } }
@media (max-width: 560px) {
  .slidein { top: auto; bottom: 92px; transform: translate(calc(100% + 40px), 0); }
  .slidein.is-open { transform: translate(0, 0); }
  .paintbot__bubble { display: none; }
}

/* ---------- Hope chat box ---------- */
.chatbox {
  position: fixed; right: 18px; bottom: 84px; z-index: 90;
  width: 348px; max-width: calc(100vw - 28px); height: 500px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(16,24,43,0.30);
  transform-origin: bottom right; animation: chatboxIn .22s ease both;
}
.chatbox[hidden] { display: none; }
@keyframes chatboxIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.chatbox__head { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: var(--navy-deep); color: #fff; }
.chatbox__avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); color: #FBF1E9; flex-shrink: 0; }
.chatbox__id { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.chatbox__name { font-weight: 700; font-size: 15px; }
.chatbox__status { font-size: 11.5px; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 6px; }
.chatbox__online { width: 7px; height: 7px; border-radius: 50%; background: #34D399; display: inline-block; }
.chatbox__close { margin-left: auto; background: transparent; border: 0; color: rgba(255,255,255,0.82); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.chatbox__close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.chatbox__log { flex: 1 1 auto; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); border-bottom-left-radius: 5px; color: var(--ink); }
.msg--user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg a { color: var(--terracotta); font-weight: 600; }
.msg--user a { color: #fff; text-decoration: underline; }
.msg .msg__cta { display: inline-flex; margin-top: 8px; padding: 8px 14px; background: var(--terracotta); color: #fff; border-radius: 100px; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; }
.msg__cta:hover { background: var(--terracotta-deep); }
.msg__cta + .msg__cta { margin-left: 7px; }
.chatbox__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; border-bottom-left-radius: 5px; }
.chatbox__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); opacity: .5; animation: chatDot 1s infinite; }
.chatbox__typing span:nth-child(2) { animation-delay: .15s; }
.chatbox__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: .9; } }
.chatbox__quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px 4px; background: var(--cream); }
.chatbox__chip { background: #fff; border: 1px solid var(--hairline); color: var(--navy); font-family: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 100px; cursor: pointer; transition: background .14s ease, border-color .14s ease; }
.chatbox__chip:hover { background: var(--cream-deep); border-color: var(--navy); }
.chatbox__input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hairline); background: var(--surface); }
.chatbox__input input { flex: 1 1 auto; min-width: 0; border: 1.5px solid var(--hairline); background: var(--cream); border-radius: 100px; padding: 10px 15px; font-family: inherit; font-size: 14px; color: var(--ink); }
.chatbox__input input:focus { outline: none; border-color: var(--navy); }
.chatbox__input button { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--terracotta); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chatbox__input button:hover { background: var(--terracotta-deep); }
@media (max-width: 560px) {
  .chatbox { right: 10px; left: 10px; width: auto; bottom: 80px; height: 68vh; }
}
@media (prefers-reduced-motion: reduce) { .chatbox { animation: none; } .chatbox__typing span { animation: none; } }
