/* United Flooring America — homepage custom layer */

:root {
  --accent-navy: #0f2847;
  --accent-gold: #b8923c;
  --surface-muted: #f7f8fa;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: hidden;
}

/* —— iPhone / notched layouts: env(safe-area-*) requires viewport-fit=cover —— */
header#site-nav {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Inner pages: offset below fixed navbar + Dynamic Island/notch stack */
main#main-content.main-under-fixed-nav {
  padding-top: calc(6rem + env(safe-area-inset-top, 0px));
}

/* Homepage hero carousel: clears fixed header when safe-area grows */
.hero-carousel-section-pad {
  padding-top: calc(5rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 640px) {
  .hero-carousel-section-pad {
    padding-top: calc(6rem + env(safe-area-inset-top, 0px));
  }
}

/* Floating CTA: home indicator / rounded corners — match index FAB behavior site-wide */
a.float-cta-fixed {
  position: fixed;
  z-index: 110;
  left: auto;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  max-width: min(100%, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
}

@media (min-width: 640px) {
  a.float-cta-fixed {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.75rem + env(safe-area-inset-right, 0px));
    max-width: none;
  }
}

/* iOS Safari: avoids auto-zoom when focusing inputs < 16px */
@media (max-width: 767px) {
  main input[type="text"],
  main input[type="email"],
  main input[type="tel"],
  main input[type="search"],
  main textarea,
  main select {
    font-size: max(16px, 1rem);
  }
}

footer#site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

main#main-content {
  max-width: 100%;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: var(--accent-navy);
  color: #fff;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .fade-slide-up-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fade-in-section.is-visible.fade-slide-up-stagger > * {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-in-section.is-visible.fade-slide-up-stagger > *:nth-child(1) {
    transition-delay: 0.04s;
  }

  .fade-in-section.is-visible.fade-slide-up-stagger > *:nth-child(2) {
    transition-delay: 0.12s;
  }

  .fade-in-section.is-visible.fade-slide-up-stagger > *:nth-child(3) {
    transition-delay: 0.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Sem animações: sempre visível — evita ecrã em branco se o JS falhar neste modo */
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-slide-up-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Home narrow viewports / About mobile: stacked fade-in + observers podem causar dois scrollbars
   e wheel “preso” até reconciliar métricas (Safari/Chrome mobile). Sem animação por defeito. */
@media (max-width: 767px) {
  body.home-page main .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.home-page main .fade-slide-up-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.home-page main .trust-stats-metrics-col .stats-metric-stack .stats-metric-block {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* About: até ~tablet — fades iniciais ligados ao IO podem piorar scrollbar/scroll (home já evita só em telas estreitas). */
@media (max-width: 1023px) {
  body.about-page main .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* Home — What We Install (#services): service card carousel */
.services-cards-swiper .swiper-slide {
  display: flex;
  height: auto;
}

.services-cards-swiper .swiper-wrapper {
  align-items: stretch;
}

.services-cards-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 5px !important;
  background: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.services-cards-swiper .swiper-pagination-bullet-active {
  background: #b8923c;
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .service-carousel-card,
  .service-carousel-card img {
    transition: none !important;
  }

  .services-cards-swiper .swiper-pagination-bullet-active {
    transform: none;
  }
}

.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.47'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Hero banner: altura fixa igual em todos os slides (evita a página saltar ao trocar no telemóvel/desktop). */
.hero-swiper.hero-slide-shell {
  height: min(72vh, 580px);
  min-height: min(72vh, 580px);
  max-height: min(72vh, 580px);
}

@media (min-width: 640px) {
  .hero-swiper.hero-slide-shell {
    height: min(72vh, 640px);
    min-height: min(72vh, 640px);
    max-height: min(72vh, 640px);
  }
}

.hero-swiper .swiper-wrapper {
  height: 100%;
}

.hero-swiper .swiper-slide {
  height: 100%;
  box-sizing: border-box;
}

/* Painel interno de cada slide: ocupa todo o slide; conteúdo que não couber fica com scroll suave só na área frontal */
.hero-swiper .swiper-slide > .hero-slide-shell {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.hero-swiper .swiper-slide > .hero-slide-shell > .hero-unified-front {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* allow wheel scroll to chain to the page when this panel has no scrollbar */
  overscroll-behavior-y: auto;
}

@media (min-width: 640px) {
  /* desktop: frontal area is normally not scrolled; avoid trapping mouse wheel here */
  .hero-swiper .swiper-slide > .hero-slide-shell > .hero-unified-front {
    overflow-y: visible;
    -webkit-overflow-scrolling: auto;
  }
}

/* Extreme short desktop/tall-zoom: restore inner scroll if content ever overflows */
@media (min-width: 640px) and (max-height: 520px) {
  .hero-swiper .swiper-slide > .hero-slide-shell > .hero-unified-front {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    max-height: 100%;
  }
}

.hero-swiper .hero-swiper-pagination.swiper-pagination {
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 640px) {
  .hero-swiper .hero-swiper-pagination.swiper-pagination {
    bottom: 1rem !important;
  }
}

/* Hero: gradiente escuro ~40–58% (todos os slides) */
.hero-gradient {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0.42) 0%,
    rgb(0 0 0 / 0.52) 50%,
    rgb(0 0 0 / 0.58) 100%
  );
}

.hero-cover-img {
  object-fit: cover;
  object-position: center 38%;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-swiper.swiper-initialized .swiper-slide-active .hero-cover-img {
    animation: hero-ken-burns 12s ease-out forwards;
  }
}

@keyframes hero-ken-burns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .hero-cover-img {
    animation: none !important;
  }
}

/* ========== Hero carousel unificado (3 slides) ========== */
.hero-unified-watermark__img {
  width: min(88vw, 22rem);
  height: auto;
  max-height: min(42vh, 11rem);
  object-fit: contain;
  opacity: 0.08;
  filter: blur(2px);
  transform: translateY(-2%);
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 640px) {
  .hero-unified-watermark__img {
    width: min(72vw, 34rem);
    max-height: min(48vh, 14rem);
    filter: blur(2.5px);
  }
}

.hero-unified-title {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 5vw + 0.75rem, 2.875rem);
  text-shadow: 0 3px 24px rgb(0 0 0 / 0.45);
}

.hero-unified-title__white {
  color: #fff;
}

.hero-unified-title__gold {
  color: #c9a24a;
  text-shadow:
    0 2px 20px rgb(0 0 0 / 0.45),
    0 0 20px rgb(201 162 74 / 0.2);
}

.hero-unified-sub {
  margin: 0;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.4);
  font-size: clamp(0.9375rem, 2.6vw + 0.45rem, 1.125rem);
}

.hero-unified-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0;
  margin-top: 1.25rem;
  font-size: clamp(0.65rem, 2vw + 0.35rem, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.82);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.35);
}

@media (min-width: 640px) {
  .hero-unified-trust {
    margin-top: 1.35rem;
    gap: 0.45rem 0.55rem;
  }
}

.hero-unified-trust__sep {
  color: rgb(201 162 74 / 0.7);
  font-weight: 400;
}

.hero-unified-check {
  margin-right: 0.12rem;
  color: #c9a24a;
  font-weight: 700;
}

.hero-unified-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: min(28rem, 100%);
}

@media (min-width: 640px) {
  .hero-unified-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 44rem;
    gap: 0.75rem;
    margin-top: 1.4rem;
  }
}

/* Slide 2 — premium services banner (scoped; slides 1 & 3 unchanged) */

.hero-slide--services .hero-gradient {
  background: linear-gradient(
    180deg,
    rgb(42 14 18 / 0.5) 0%,
    rgb(26 14 17 / 0.58) 48%,
    rgb(14 14 26 / 0.68) 100%
  );
}

.hero-slide--services .hero-unified-inner.hero-services-shell {
  max-width: min(850px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  border-radius: 24px;
  background: rgba(20, 10, 10, 0.85);
  border: 1px solid rgba(230, 57, 70, 0.4);
  box-shadow:
    0 20px 60px rgba(230, 57, 70, 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .hero-slide--services .hero-unified-inner.hero-services-shell {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-slide--services .hero-unified-inner.hero-services-shell {
    padding: 28px;
  }
}

.hero-slide--services .hero-services-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.62);
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.45);
}

.hero-slide--services .hero-services-main-title {
  margin: 0 0 0.9375rem;
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-size: clamp(1.35rem, 3.85vw + 0.38rem, 2.125rem);
  text-shadow: 0 3px 28px rgb(0 0 0 / 0.5);
}

.hero-slide--services .hero-services-main-title__line {
  color: #fff;
}

.hero-slide--services .hero-services-headline-accent {
  color: #e63946;
  text-shadow:
    0 2px 20px rgb(0 0 0 / 0.45),
    0 0 28px rgb(230 57 70 / 0.38);
}

.hero-slide--services .hero-services-grid-premium.hero-unified-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  column-gap: 16px;
  row-gap: 16px;
  margin: 0;
  margin-top: 0.125rem;
  margin-inline: auto;
  width: 100%;
  max-width: 36rem;
  align-items: stretch;
  justify-content: center;
}

.hero-slide--services .hero-services-mini-card {
  margin: 0;
  padding: clamp(11px, 2.75vw, 14px);
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 6px 20px rgb(0 0 0 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 0;
  min-width: 0;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Service stack: circle above label (slide 2 only) */

.hero-slide--services .hero-services-mini-card .service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 100%;
}

.hero-slide--services .hero-services-mini-card .service-item .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e63946;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide--services .hero-services-mini-card .service-item .circle span {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.hero-slide--services .hero-services-mini-card .service-item > span {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 0.765625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgb(255 255 255 / 0.97);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-slide--services .hero-services-mini-card .service-item .circle {
    width: 36px;
    height: 36px;
  }

  .hero-slide--services .hero-services-mini-card .service-item .circle span {
    font-size: 16px;
  }

  .hero-slide--services .hero-services-mini-card .service-item > span {
    letter-spacing: 0.035em;
    font-size: 0.796875rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide--services .service-item:hover .circle {
    transform: scale(1.1);
  }
}

.hero-slide--services .hero-services-mini-card__desc {
  margin: 0;
  max-width: 100%;
  font-size: 0.6925rem;
  font-weight: 500;
  line-height: 1.46;
  color: rgb(255 255 255 / 0.64);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .hero-slide--services .hero-services-mini-card__desc {
    font-size: 0.703125rem;
  }
}

@media (min-width: 1024px) {
  .hero-slide--services .hero-services-grid-premium.hero-unified-pills {
    max-width: 42rem;
  }
}

.hero-slide--services .hero-services-mini-card:hover {
  transform: translateY(-6px);
  border-color: #e63946;
  box-shadow:
    0 15px 40px rgba(230, 57, 70, 0.2),
    0 8px 26px rgb(0 0 0 / 0.32),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.hero-slide--services .hero-services-mini-card:hover .hero-services-mini-card__desc {
  color: rgb(255 255 255 / 0.78);
}

@keyframes hero-services-card-fade-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--services .hero-services-mini-card:nth-child(1) {
    animation: hero-services-card-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--services .hero-services-mini-card:nth-child(2) {
    animation: hero-services-card-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--services .hero-services-mini-card:nth-child(3) {
    animation: hero-services-card-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--services .hero-services-mini-card:nth-child(4) {
    animation: hero-services-card-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--services .hero-services-mini-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.hero-slide--services .hero-unified-inner .hero-services-cta-wrap {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-slide--services .hero-unified-inner .hero-services-cta-wrap {
    margin-top: 1.6875rem;
  }
}

.hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services {
  margin-top: 0.125rem;
  width: 100%;
  max-width: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  color: #fff;
  background: linear-gradient(135deg, #e63946, #c1121f);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow:
    0 8px 26px rgb(0 0 0 / 0.34),
    0 4px 18px rgb(230 57 70 / 0.24),
    0 0 0 1px rgb(0 0 0 / 0.12) inset;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

.hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
  box-shadow:
    0 14px 38px rgba(230, 57, 70, 0.38),
    0 10px 30px rgba(230, 57, 70, 0.24);
}

@media (min-width: 640px) {
  .hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services {
    width: auto;
    min-width: 230px;
  }
}

.hero-unified-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.28);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-unified-highlight__star {
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / 0.35));
}

.hero-unified-highlight__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.93);
}

@media (min-width: 640px) {
  .hero-unified-highlight__text {
    font-size: 0.875rem;
  }
}

.hero-unified-btn-primary {
  background: linear-gradient(180deg, #d4b056 0%, #c9a24a 40%, #b8923c 100%);
  color: #0f2847;
  border: 1px solid rgb(255 255 255 / 0.42);
  box-shadow:
    0 8px 24px rgb(0 0 0 / 0.28),
    0 0 0 1px rgb(0 0 0 / 0.05) inset;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.hero-unified-btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 36px rgb(0 0 0 / 0.32),
    0 0 28px rgb(201 162 74 / 0.35);
}

.hero-unified-btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-unified-btn-phone {
  background: linear-gradient(180deg, #fefce8 0%, #fde68a 35%, #f5d565 100%);
  color: #0f2847;
  border: 1px solid rgb(255 255 255 / 0.55);
  box-shadow:
    0 10px 32px rgb(0 0 0 / 0.3),
    0 0 32px rgb(253 230 138 / 0.25);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.hero-unified-btn-phone:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 40px rgb(0 0 0 / 0.35),
    0 0 40px rgb(253 224 71 / 0.35);
}

.hero-unified-btn-phone:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-swiper a.hero-unified-link-secondary {
  color: rgb(255 255 255);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.45);
}

.hero-swiper a.hero-unified-link-secondary:hover {
  color: #f5e6bc;
  text-decoration-color: rgb(245 230 188 / 0.85);
}

/* ========== Hero slides: distinct identity (impact / services / conversion) ========== */

/* Slide 1 — premium glass panel (minimal copy only) */
.hero-slide--impact .hero-unified-inner {
  padding: clamp(1.5rem, 4.5vw, 2.1rem) clamp(1.1rem, 3.75vw, 1.85rem)
    clamp(1.85rem, 4.75vw, 2.25rem);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(212, 175, 55, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide--impact .hero-unified-inner:hover {
    transform: scale(1.01);
  }
}

.hero-slide--impact .hero-gradient {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0.34) 0%,
    rgb(0 0 0 / 0.42) 50%,
    rgb(0 0 0 / 0.5) 100%
  );
}

.hero-slide--impact .hero-unified-title {
  font-size: clamp(1.9375rem, 5.4vw + 0.65rem, 3.125rem);
  letter-spacing: -0.038em;
  line-height: 1.07;
}

.hero-slide--impact .hero-unified-inner .hero-unified-sub {
  margin-top: 1rem;
  max-width: 26rem;
  font-weight: 500;
  line-height: 1.62;
  color: rgb(248 250 252 / 0.9);
}

@media (min-width: 640px) {
  .hero-slide--impact .hero-unified-inner .hero-unified-sub {
    margin-top: 1.25rem;
  }
}

.hero-slide--impact .hero-unified-inner .hero-unified-ctas {
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .hero-slide--impact .hero-unified-inner .hero-unified-ctas {
    margin-top: 2.25rem;
  }
}

/* Slide 1 — light hero: fundo nítido + vigneta para legibilidade + texto em duas linhas */

.hero-impact-light-bg-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-impact-light-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-impact-light-bg-img {
    filter: none;
    transform: none;
  }
}

.hero-slide--impact.hero-slide--impact-light .hero-gradient {
  background:
    radial-gradient(
      ellipse 78% 64% at 50% 48%,
      rgb(62 62 68 / 0.52) 0%,
      rgb(43 41 46 / 0.36) 38%,
      rgb(38 37 43 / 0.2) 62%,
      rgb(255 255 255 / 0) 78%
    ),
    linear-gradient(180deg, rgb(32 31 38 / 0.32) 0%, rgb(20 18 23 / 0.34) 45%, rgb(14 12 16 / 0.42) 100%);
}

.hero-slide--impact.hero-slide--impact-light .hero-unified-inner {
  padding: clamp(1.25rem, 4vw, 2rem) 1rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide--impact.hero-slide--impact-light .hero-unified-inner:hover {
    transform: none;
  }
}

.hero-slide--impact.hero-slide--impact-light .grain-overlay {
  opacity: 0.022 !important;
}

.hero-impact-light-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, ui-serif, serif;
  font-weight: 600;
  font-size: clamp(1.95rem, 4.8vw + 0.75rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 3px 32px rgb(0 0 0 / 0.32),
    0 1px 4px rgb(0 0 0 / 0.22);
}

.hero-impact-light-title-line {
  display: block;
}

.hero-impact-light-title-line--brand {
  max-width: min(96vw, 22rem);
  font-size: clamp(1.7rem, 4.35vw + 0.62rem, 2.95rem);
  line-height: 1.07;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-impact-light-title-line--brand {
    max-width: none;
    font-size: clamp(2rem, 4.85vw + 0.72rem, 3.35rem);
  }
}

.hero-impact-light-title__dot {
  letter-spacing: 0;
}

.hero-impact-light-rule {
  display: block;
  width: 3.125rem;
  height: 1px;
  margin: clamp(1.25rem, 3.2vw, 1.65rem) auto 0;
  background: rgb(255 255 255 / 0.62);
}

.hero-impact-light-kicker {
  margin: clamp(1.05rem, 2.4vw, 1.35rem) 0 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.625rem, 1.65vw + 0.38rem, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.95);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.28);
}

.hero-slide--impact.hero-slide--impact-light .hero-unified-ctas {
  margin-top: clamp(1.75rem, 3.75vw, 2.35rem);
  gap: 0.875rem;
}

.hero-impact-light-cta {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.875rem;
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #a88c6a;
  box-shadow: 0 6px 28px rgb(0 0 0 / 0.22);
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-impact-light-cta:hover {
  background: #957a60;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgb(0 0 0 / 0.28);
}

.hero-impact-light-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-impact-light-cta-secondary {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.35);
}

.hero-impact-light-cta-secondary:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.9);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Slide 3 — conversion only: blue glass + gold CTA */

.hero-slide--conversion .hero-gradient {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0.52) 0%,
    rgb(15 40 71 / 0.55) 45%,
    rgb(15 40 71 / 0.72) 100%
  );
}

.hero-slide--conversion .hero-unified-inner.hero-unified-inner--conversion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.375rem, 4.5vw, 2rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.375rem, 5vw, 1.875rem) clamp(1.25rem, 4vw, 1.875rem);
  border-radius: 24px;
  background: rgba(20, 40, 70, 0.85);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow:
    0 22px 56px rgb(0 0 0 / 0.38),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .hero-slide--conversion .hero-unified-inner.hero-unified-inner--conversion {
    padding: clamp(1.875rem, 5vw, 2.375rem) clamp(1.75rem, 4vw, 2.75rem);
  }
}

.hero-slide--conversion .hero-unified-inner--conversion .hero-unified-title {
  text-shadow:
    0 3px 28px rgb(0 0 0 / 0.55),
    0 1px 0 rgb(15 40 71 / 0.35);
}

.hero-slide--conversion .hero-unified-highlight.hero-unified-highlight--conversion-badge {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 0;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-slide--conversion .hero-unified-highlight.hero-unified-highlight--conversion-badge .hero-unified-highlight__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.96);
}

@media (min-width: 640px) {
  .hero-slide--conversion .hero-unified-highlight.hero-unified-highlight--conversion-badge .hero-unified-highlight__text {
    font-size: 0.9375rem;
  }
}

.hero-slide--conversion .hero-unified-inner--conversion .hero-unified-ctas {
  margin-top: 0;
  padding-top: 0.125rem;
}

.hero-slide--conversion .hero-unified-btn-phone.hero-unified-btn-phone--conversion-slide {
  width: 100%;
  max-width: none;
  min-height: 3.375rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
  background: linear-gradient(135deg, #d4af37, #f2c94c);
  border: 1px solid rgb(0 0 0 / 0.08);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.4),
    0 2px 0 rgb(255 255 255 / 0.28) inset;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.hero-slide--conversion .hero-unified-btn-phone.hero-unified-btn-phone--conversion-slide:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 38px rgba(212, 175, 55, 0.5),
    0 3px 0 rgb(255 255 255 / 0.32) inset;
}

@media (min-width: 640px) {
  .hero-slide--conversion .hero-unified-btn-phone.hero-unified-btn-phone--conversion-slide {
    min-height: 3.625rem;
    padding: 1.0625rem 1.75rem;
    font-size: 1.125rem;
  }
}
/*
 * Hero carousel — desktop (≥1024px): legibilidade, vidro, CTAs, espaçamento.
 * Mobile/tablet (<1024px) mantém regras anteriores.
 */
@media (min-width: 1024px) {
  .hero-swiper .hero-gradient {
    background: linear-gradient(
      180deg,
      rgb(0 0 0 / 0.55) 0%,
      rgb(0 0 0 / 0.65) 45%,
      rgb(0 0 0 / 0.75) 100%
    );
  }

  .hero-unified-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 2rem 2.25rem 2.25rem;
    border-radius: 20px;
    background: rgb(0 0 0 / 0.25);
    border: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .hero-unified-title {
    line-height: 1.18;
  }

  .hero-swiper .hero-unified-inner .hero-unified-sub {
    line-height: 1.72;
    margin-top: 1.375rem;
  }

  .hero-unified-trust {
    margin-top: 1.625rem;
  }

  .hero-unified-pills {
    margin-top: 1.625rem;
    max-width: none;
  }

  .hero-unified-highlight {
    margin-top: 1.625rem;
  }

  .hero-swiper .hero-unified-inner .hero-unified-ctas {
    margin-top: 2.5rem;
    gap: 1rem;
  }

  .hero-unified-btn-primary {
    background: linear-gradient(135deg, #dfc06f 0%, #c9a24a 42%, #9a7829 100%);
    box-shadow:
      0 10px 28px rgb(0 0 0 / 0.32),
      0 4px 14px rgb(0 0 0 / 0.18),
      0 0 0 1px rgb(255 255 255 / 0.14) inset;
  }

  .hero-unified-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
      0 20px 48px rgb(0 0 0 / 0.38),
      0 10px 24px rgb(201 162 74 / 0.28),
      0 0 0 1px rgb(255 255 255 / 0.18) inset;
  }

  .hero-unified-btn-phone {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 38%, #eab308 100%);
    box-shadow:
      0 12px 34px rgb(0 0 0 / 0.34),
      0 4px 16px rgb(0 0 0 / 0.12),
      0 0 40px rgb(253 224 71 / 0.22);
  }

  .hero-unified-btn-phone:hover {
    transform: translateY(-4px);
    box-shadow:
      0 22px 52px rgb(0 0 0 / 0.4),
      0 12px 28px rgb(253 224 71 / 0.32);
  }

  /* Per-slide hero panels + overlays (distinct from unified default above) */
  .hero-slide--impact .hero-unified-inner {
    max-width: 41rem;
    padding: clamp(2rem, 3vw, 2.75rem) clamp(1.85rem, 3.25vw, 2.85rem)
      clamp(2.35rem, 3.85vw, 3rem);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(212, 175, 55, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .hero-slide--impact .hero-gradient {
    background: linear-gradient(
      180deg,
      rgb(0 0 0 / 0.39) 0%,
      rgb(0 0 0 / 0.49) 50%,
      rgb(0 0 0 / 0.57) 100%
    );
  }

  .hero-slide--impact.hero-slide--impact-light .hero-unified-inner {
    max-width: min(52rem, 100%);
    padding: clamp(1.85rem, 4vw, 2.85rem) 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-slide--impact.hero-slide--impact-light .hero-gradient {
    background:
      radial-gradient(
        ellipse 72% 58% at 50% 46%,
        rgb(58 58 64 / 0.52) 0%,
        rgb(40 39 44 / 0.38) 40%,
        rgb(38 37 43 / 0.2) 62%,
        rgb(255 255 255 / 0) 80%
      ),
      linear-gradient(180deg, rgb(28 26 32 / 0.36) 0%, rgb(17 15 21 / 0.38) 48%, rgb(11 10 14 / 0.45) 100%);
  }

  .hero-slide--impact .hero-unified-inner .hero-unified-sub {
    margin-top: 1rem;
  }

  .hero-slide--services .hero-unified-inner.hero-services-shell {
    max-width: min(850px, 100%);
    padding: 28px;
    border-radius: 24px;
    background: rgba(20, 10, 10, 0.85);
    border: 1px solid rgba(230, 57, 70, 0.4);
    box-shadow:
      0 20px 60px rgba(230, 57, 70, 0.15),
      inset 0 1px 0 rgb(255 255 255 / 0.04);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff;
    border: 1px solid rgb(255 255 255 / 0.18);
    box-shadow:
      0 10px 32px rgb(0 0 0 / 0.36),
      0 6px 22px rgb(230 57 70 / 0.28),
      0 0 0 1px rgb(0 0 0 / 0.1) inset;
  }

  .hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
  }

  .hero-slide--conversion .hero-unified-inner.hero-unified-inner--conversion {
    max-width: 40rem;
    padding: 40px;
    border-radius: 24px;
    background: rgba(20, 40, 70, 0.85);
    border: 1px solid rgb(255 255 255 / 0.14);
    box-shadow:
      0 28px 70px rgb(0 0 0 / 0.42),
      inset 0 1px 0 rgb(255 255 255 / 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    gap: 2rem;
  }

  .hero-slide--conversion .hero-gradient {
    background: linear-gradient(
      180deg,
      rgb(0 0 0 / 0.58) 0%,
      rgb(15 40 71 / 0.72) 50%,
      rgb(15 40 71 / 0.88) 100%
    );
  }
}

@keyframes hero-fade-rise-lg {
  0% {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-title {
    animation: hero-fade-rise-lg 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-sub {
    animation: hero-fade-rise-lg 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--impact-light .hero-impact-light-title {
    animation: hero-fade-rise-lg 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--impact-light .hero-impact-light-rule {
    animation: hero-fade-rise-lg 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-slide--impact-light .hero-impact-light-kicker {
    animation: hero-fade-rise-lg 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-trust,
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-pills,
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-highlight {
    animation: hero-fade-rise-lg 0.64s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-ctas {
    animation: hero-fade-rise-lg 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-unified-btn-primary:hover,
  .hero-unified-btn-phone:hover {
    transform: none;
  }

  .hero-slide--impact .hero-unified-inner:hover {
    transform: none;
  }

  .hero-slide--services .hero-services-mini-card:hover {
    transform: none;
  }

  .hero-slide--services .service-item:hover .circle {
    transform: none;
  }

  .hero-slide--services .hero-unified-btn-primary.hero-unified-btn-primary--slide-services:hover {
    transform: none;
  }

  .hero-impact-light-cta:hover {
    transform: none;
  }

  .hero-slide--conversion .hero-unified-btn-phone.hero-unified-btn-phone--conversion-slide:hover {
    transform: none;
  }
}

/* Home: milestones column + credentials carousel */
.stats-gallery-shell .stats-gallery-swiper {
  width: 100%;
  /* Deixa o scroll vertical ao Swiper não “roubar” o gesto inteiro no Safari/iOS */
  touch-action: pan-x pinch-zoom;
}

.stats-gallery-float {
  border-radius: inherit;
}

#stats-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0;
  padding: 0 0.2rem;
  line-height: 1;
  max-width: min(88vw, 11rem);
}

@media (min-width: 480px) {
  #stats-gallery-pagination {
    max-width: none;
    gap: 0.4rem;
  }
}

#stats-gallery-pagination .swiper-pagination-bullet {
  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  opacity: 0.4;
  background: var(--accent-navy, #0f2847);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

#stats-gallery-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.08);
  background: var(--accent-gold, #b8923c);
}

.stats-gallery-swiper .stats-gallery-photo {
  min-height: 12rem;
}

@keyframes stats-gallery-card-settle {
  0% {
    transform: translate3d(0, 14px, 0) rotate(-1deg) scale(0.985);
  }
  62% {
    transform: translate3d(0, -5px, 0) rotate(0.55deg) scale(1.012);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Quadrado do carrossel (métricas / fotos): leve oscila ao entrar no ecrã */
  .fade-in-section.is-visible.trust-stats-motion .stats-gallery-shell {
    transform-origin: 50% 90%;
    animation: stats-gallery-card-settle 0.76s cubic-bezier(0.22, 1, 0.4, 1) 0.5s both;
  }
}

@media (max-width: 767px) {
  .trust-stats-section .trust-stats-motion {
    gap-y: 1.5rem;
  }

  /* Imagem em largura total — sem max-height que partia o impacto visual */
  .stats-gallery-shell .stats-gallery-swiper .stats-gallery-photo {
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

/* Caixa de métricas em fila: números dentro do cartão (3 colunas) */
.trust-stats-metrics-col .stats-metric-stack .stats-metric-num {
  font-size: clamp(1.1rem, 2.4vw + 0.6rem, 2.15rem);
  line-height: 0.98;
}

.stats-metric-num {
  font-size: clamp(2.35rem, 5vw, 3.05rem);
  line-height: 0.92;
}

.stats-count-num,
.stats-metric-plus,
.stats-percent-symbol {
  color: rgba(255, 0, 0, 1);
}

.stats-metric-plus {
  vertical-align: 0.3em;
  margin-left: 0.035em;
  font-size: 0.62em;
  font-weight: 700;
}

.stats-percent-symbol {
  margin-left: 0.035em;
  font-size: 0.92em;
  font-weight: 700;
}

/* Trust/stats strip: entrances + metric row cascade */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-section:not(.is-visible).trust-stats-motion .trust-stats-metrics-col .stats-metric-stack .stats-metric-block {
    opacity: 0;
    transform: translateY(14px);
  }

  .fade-in-section.is-visible.trust-stats-motion .trust-stats-metrics-col .stats-metric-stack .stats-metric-block {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--trust-metric-delay, 0s);
  }

  .fade-in-section.is-visible.trust-stats-motion .trust-stats-metrics-col .stats-metric-stack .stats-metric-block:nth-child(1) {
    --trust-metric-delay: 0.14s;
  }

  .fade-in-section.is-visible.trust-stats-motion .trust-stats-metrics-col .stats-metric-stack .stats-metric-block:nth-child(2) {
    --trust-metric-delay: 0.26s;
  }

  .fade-in-section.is-visible.trust-stats-motion .trust-stats-metrics-col .stats-metric-stack .stats-metric-block:nth-child(3) {
    --trust-metric-delay: 0.38s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-stats-metrics-col .stats-metric-stack .stats-metric-block {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-gallery-float button {
    transition: none !important;
  }
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  background: rgb(15 40 71 / 0.22);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.75);
  opacity: 1;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #c9a24a;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .swiper-pagination-bullet,
  .hero-swiper .swiper-pagination-bullet-active {
    transition: none;
  }
}

/* Hero slideshow: typography animates whenever a slide becomes active */
@keyframes hero-fade-rise {
  0% {
    opacity: 0;
    transform: translateY(1.125rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-title {
    animation: hero-fade-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-sub {
    animation: hero-fade-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-trust,
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-pills,
  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-highlight {
    animation: hero-fade-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
  }

  .hero-swiper.swiper-initialized .swiper-slide-active.hero-unified-slide .hero-unified-ctas {
    animation: hero-fade-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .hero-unified-slide .hero-unified-title,
  .hero-swiper .hero-unified-slide .hero-unified-sub,
  .hero-swiper .hero-unified-slide .hero-unified-trust,
  .hero-swiper .hero-unified-slide .hero-unified-pills,
  .hero-swiper .hero-unified-slide .hero-unified-highlight,
  .hero-swiper .hero-unified-slide .hero-unified-ctas {
    animation: none !important;
  }
}

.gallery-card-inner {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-card-inner {
  transform: scale(1.06);
}

.gallery-zoom {
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-zoom {
  transform: scale(1.04);
}

.gallery-masonry {
  orphans: 2;
}

/* Floating CTA pulse */
@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 10px 40px rgb(184 146 60 / 0.35);
  }
  50% {
    box-shadow: 0 14px 48px rgb(184 146 60 / 0.5);
  }
}

.float-cta-btn {
  animation: soft-pulse 3s ease-in-out infinite;
}

/*
 * CTA strip: desktop uses .cta-parallax-bg (static1.jpeg) + fixed attachment; mobile uses <img> static2.png (md:hidden).
 */
.cta-parallax-bg {
  z-index: 0;
  background-image: url("../images/unitedflooringamerica/static1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .cta-parallax-bg {
    display: none;
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-parallax-bg {
    background-attachment: scroll;
  }
}

.cta-parallax-scrim {
  z-index: 1;
  /* Camada bem mais transparente para a foto mostrar cores; texto continua legível */
  background: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.38) 0%,
    rgb(247 249 251 / 0.32) 42%,
    rgb(239 246 252 / 0.48) 100%
  );
}

/* Full-bleed #estimate-cta: desktop = .cta-parallax-bg; mobile + JS = overlay fixo com clip.
 * Sem JS / “reduzir movimento” ⇒ .estimate-cta-mobile-photo no fluxo.
 * Camada fixed: fundo navy evita flashes brancos durante o repaint do clip ao scroll (mobile).
 */
.estimate-cta-fixed-clip-root {
  background-color: var(--cta-strip-mobile-shell-bg, #0f2847);
}
html.js #estimate-cta:not(.estimate-cta-show-inline-photo) .estimate-cta-mobile-photo {
  visibility: hidden;
}

/* Home: work carousel — Cover Flow (Swiper aplica perspective 3D no wrapper interno). */
.work-swiper-cover {
  overflow: visible;
  /* Não forçar touch-action / pointer-events nas fotos — o Swiper precisa receber o gesto. */
}

.work-carousel-viewport {
  touch-action: pan-x pinch-zoom;
}

@media (max-width: 767px) {
  .work-swiper-cover .swiper-slide {
    width: min(78vw, 360px);
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .work-swiper-cover .swiper-slide {
    width: 62%;
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-swiper-cover .swiper-slide {
    width: 100% !important;
    max-width: 100%;
  }
}

.work-swiper-cover .work-cover-slide-figure {
  margin: 0;
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
  box-shadow: 0 8px 32px -16px rgb(15 40 71 / 0.25);
}

.work-swiper-cover .swiper-slide:not(.swiper-slide-active) .work-cover-slide-figure {
  opacity: 0.88;
}

.work-swiper-cover .swiper-slide-active .work-cover-slide-figure {
  box-shadow:
    0 24px 56px -18px rgb(15 40 71 / 0.45),
    0 12px 24px -12px rgb(15 23 42 / 0.2);
}

.work-swiper-pagination.swiper-pagination.work-carousel-pagination,
.work-carousel-pagination.work-swiper-pagination {
  bottom: 0 !important;
  padding-top: 0.375rem;
  left: 0;
  right: 0;
  line-height: 1.4;
}

.work-swiper-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 5px !important;
  background: #cbd5e1;
  opacity: 1;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.work-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-navy);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .work-swiper-cover .work-cover-slide-figure {
    transition: none;
  }

  .work-swiper-pagination .swiper-pagination-bullet {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
 * Site-wide hover depth & motion (scoped to body.site-motion; honors reduced motion)
 * --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  body.site-motion header#site-nav {
    box-shadow:
      0 1px 0 rgb(226 232 240 / 0.95),
      0 10px 38px -14px rgb(15 23 42 / 0.08);
    transition: box-shadow 0.35s ease;
  }

  body.site-motion header div.mx-auto.flex.max-w-7xl > a[href*="index"]:first-child {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
  }

  body.site-motion header div.mx-auto.flex.max-w-7xl > a[href*="index"]:first-child:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 14px 26px rgb(15 40 71 / 0.12));
  }

  body.site-motion header nav[aria-label="Primary"] > a {
    display: inline-block;
    transition:
      color 0.2s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.site-motion header nav[aria-label="Primary"] > a:hover {
    transform: translateY(-3px);
  }

  body.site-motion header a.bg-gold[class*="rounded-full"] {
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.3s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  body.site-motion header a.bg-gold[class*="rounded-full"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
      0 16px 42px -12px rgb(184 146 60 / 0.55),
      0 8px 22px -10px rgb(15 23 42 / 0.12);
  }

  body.site-motion header nav[aria-label="Mobile"] a.rounded-lg.px-3.py-2\.5 {
    transition: transform 0.24s ease, background-color 0.2s ease;
  }

  body.site-motion header nav[aria-label="Mobile"] a.rounded-lg.px-3.py-2\.5:hover {
    transform: translateX(6px);
  }

  body.site-motion header #mobile-menu-btn {
    transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
  }

  body.site-motion header #mobile-menu-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px -12px rgb(15 23 42 / 0.18);
  }

  /* Avoid sliding the whole CTA blocks — only subtle shift on the legal row */
  body.site-motion #site-footer .footer-bottom a {
    display: inline-block;
    transition:
      color 0.2s ease,
      transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.site-motion #site-footer .footer-bottom a:hover {
    transform: translateX(3px);
  }

  body.site-motion main a[class*="inline-flex"][class*="rounded-full"][class*="bg-navy"]:not(.float-cta-btn) {
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.32s ease,
      background-color 0.2s ease;
    box-shadow:
      0 6px 22px -10px rgb(15 23 42 / 0.45),
      0 2px 10px -4px rgb(15 40 71 / 0.25);
  }

  body.site-motion main a[class*="inline-flex"][class*="rounded-full"][class*="bg-navy"]:not(.float-cta-btn):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
      0 22px 52px -14px rgb(15 40 71 / 0.52),
      0 10px 26px -12px rgb(15 23 42 / 0.25);
  }

  body.site-motion main a[class*="inline-flex"][class*="rounded-full"][class*="bg-gold"],
  body.site-motion main a.mt-6[class*="inline-flex"][class*="rounded-full"][class*="bg-gold"] {
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.32s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  body.site-motion main a[class*="rounded-full"][class*="bg-gold"]:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow:
      0 22px 48px -14px rgb(184 146 60 / 0.5),
      0 10px 24px -12px rgb(15 23 42 / 0.15);
  }

  body.site-motion main button[type="submit"] {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.28s ease,
      background-color 0.2s ease;
    box-shadow: 0 8px 28px -12px rgb(15 40 71 / 0.45);
  }

  body.site-motion main button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px -12px rgb(15 40 71 / 0.55);
  }

  body.site-motion main input.rounded-xl,
  body.site-motion main textarea.rounded-xl {
    transition:
      border-color 0.2s ease,
      box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.25s ease;
  }

  body.site-motion main input.rounded-xl:hover,
  body.site-motion main textarea.rounded-xl:hover {
    border-color: rgb(148 163 184 / 0.95);
    box-shadow:
      0 4px 22px -8px rgb(15 23 42 / 0.12),
      0 0 0 1px rgb(203 213 225 / 0.6);
  }

  body.site-motion a.gallery-item,
  body.site-motion figure.gallery-item {
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s ease;
    box-shadow: 0 14px 40px -20px rgb(15 40 71 / 0.35), 0 6px 16px -10px rgb(15 23 42 / 0.08);
    border-radius: 1rem;
  }

  body.site-motion a.gallery-item:hover,
  body.site-motion figure.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow:
      0 32px 64px -24px rgb(15 40 71 / 0.45),
      0 14px 32px -16px rgb(15 23 42 / 0.18);
  }

  body.site-motion .gallery-zoom {
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 32px -16px rgb(15 23 42 / 0.15);
  }

  body.site-motion .gallery-zoom:hover {
    box-shadow:
      0 28px 56px -22px rgb(15 40 71 / 0.38),
      0 12px 26px -14px rgb(15 23 42 / 0.16);
  }

  body.site-motion a.gallery-item:hover .gallery-zoom,
  body.site-motion figure.gallery-item:hover .gallery-zoom {
    box-shadow:
      0 28px 56px -22px rgb(15 40 71 / 0.42),
      0 14px 30px -16px rgb(15 23 42 / 0.14);
  }

  body.site-motion .float-cta-btn {
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.35s ease,
      background-color 0.22s ease,
      color 0.2s ease;
  }

  body.site-motion .float-cta-btn:hover {
    animation: none;
    transform: translateY(-5px) scale(1.05);
    box-shadow:
      0 26px 58px -12px rgb(184 146 60 / 0.55),
      0 14px 32px -10px rgb(15 23 42 / 0.22);
  }

  body.site-motion main img.rounded-2xl[class*="shadow-md"] {
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 36px -16px rgb(15 23 42 / 0.22), 0 4px 12px rgb(15 23 42 / 0.06);
  }

  body.site-motion main img.rounded-2xl[class*="shadow-md"]:hover {
    transform: translateY(-6px);
    box-shadow:
      0 28px 56px -20px rgb(15 40 71 / 0.42),
      0 14px 30px -16px rgb(15 23 42 / 0.16);
  }

  body.site-motion main .rounded-2xl.border.border-white\/10[class*="backdrop-blur"] {
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s ease,
      background-color 0.35s ease;
  }

  body.site-motion main .rounded-2xl.border.border-white\/10[class*="backdrop-blur"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.12);
    background-color: rgb(255 255 255 / 0.12);
  }

  body.site-motion .ui-lift {
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.site-motion .ui-lift:hover {
    transform: translateY(-6px);
    box-shadow:
      0 26px 58px -24px rgb(15 40 71 / 0.3),
      0 14px 32px -16px rgb(15 23 42 / 0.14);
  }

  body.site-motion #instagram-feed-iframe {
    transition:
      box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 40px -16px rgb(15 23 42 / 0.18), 0 4px 16px rgb(15 23 42 / 0.06);
  }

  body.site-motion #instagram-feed-iframe:hover {
    transform: translateY(-4px);
    box-shadow:
      0 28px 64px -28px rgb(15 40 71 / 0.42),
      0 14px 32px -12px rgb(15 23 42 / 0.15);
  }

  body.site-motion .work-swiper-nav {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.32s ease,
      border-color 0.22s ease,
      background-color 0.22s ease;
  }

  body.site-motion .work-swiper-nav:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
      0 16px 40px -12px rgb(15 40 71 / 0.28),
      0 8px 20px -10px rgb(15 23 42 / 0.14);
  }
}

/* --- Gallery (gallery.html): lightbox fechado = fora do ecrã, sem overlay a bloquear cliques ---
   Root sem Tailwind `fixed`/flex — controlado aqui (CDN não pode sobrepor `[hidden]` com `flex !important`). */
.gallery-lightbox-shell {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem max(1rem, env(safe-area-inset-right));
  padding-left: max(0.75rem, env(safe-area-inset-left));
}

.gallery-lightbox-shell:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.gallery-lightbox-shell.is-open {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.gallery-thumb-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  background: rgb(226 232 240);
  text-align: left;
  outline: none;
}

.gallery-thumb-btn .gallery-thumb-img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.gallery-thumb-btn:hover .gallery-thumb-img,
.gallery-thumb-btn:focus-visible .gallery-thumb-img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb-btn .gallery-thumb-img {
    transition: none;
  }

  .gallery-thumb-btn:hover .gallery-thumb-img,
  .gallery-thumb-btn:focus-visible .gallery-thumb-img {
    transform: none;
    filter: none;
  }
}

.gallery-thumb-btn:focus-visible {
  outline: 2px solid #b8923c;
  outline-offset: 2px;
}

/* --- Services page: alternating rows, glass cards, CTAs, trust strip, FAQ --- */
body.services-page {
  --service-gold: #c9a24a;
}

/* Hero + stack: sharper hierarchy, cleaner surfaces — layout unchanged */
body.services-page main#main-content > section.services-page-hero {
  border-bottom-color: rgb(226 232 240 / 0.88);
  background: linear-gradient(180deg, #ffffff 0%, #fafcfd 52%, #ffffff 100%);
}

body.services-page .services-page-hero h1.font-display {
  letter-spacing: -0.035em;
  line-height: 1.06;
}

body.services-page .services-page-hero__lead {
  max-width: 36rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  body.services-page .services-page-hero__lead {
    line-height: 1.7;
  }
}

body.services-page .services-stack--professional {
  border-top: 1px solid rgb(226 232 240 / 0.65);
  margin-top: 0;
}

body.services-page .services-page-prose-section #services-local-seo-heading.font-display {
  letter-spacing: -0.032em;
  line-height: 1.22;
}

body.services-page .services-trust {
  border-top: 1px solid rgb(241 245 249 / 0.9);
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  body.services-page .services-trust {
    padding-top: 2rem;
  }
}

body.services-page .fade-in-section {
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-stack .service-row {
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(15, 40, 71, 0.08);
}

@media (max-width: 639px) {
  .services-stack .service-row {
    margin-bottom: clamp(2.85rem, 9vw, 4.25rem);
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  .services-stack {
    padding-left: max(1rem, min(5vw, 1.5rem));
    padding-right: max(1rem, min(5vw, 1.5rem));
  }
}

.services-stack .service-row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-row__card {
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(
    165deg,
    rgb(255 255 255 / 0.97) 0%,
    rgb(250 251 253 / 0.93) 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 1px 0 rgb(15 40 71 / 0.04),
    0 10px 36px rgb(15 23 42 / 0.072);
  border: 1px solid rgb(226 232 240 / 0.95);
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.service-row:hover .service-row__card {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.85) inset,
    0 1px 0 rgb(15 40 71 / 0.05),
    0 16px 48px rgb(15 23 42 / 0.11);
  border-color: rgb(201 162 74 / 0.2);
}

.service-row__body h2.font-display {
  letter-spacing: -0.022em;
  line-height: 1.18;
}

body.services-page .service-row__lede {
  color: rgb(71 85 105);
  line-height: 1.65;
}

@media (min-width: 640px) {
  body.services-page {
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 45%, #fafbfc 100%);
  }
}

.service-row__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2.2vw, 1.35rem);
  align-items: center;
}

@media (min-width: 640px) {
  .service-row__grid {
    gap: clamp(1.75rem, 3.5vw, 3rem);
  }
}

.service-row__media-col,
.service-row__body {
  min-width: 0;
}

.service-row--reverse .service-row__media-col {
  order: 2;
}

.service-row--reverse .service-row__body {
  order: 1;
}

.service-row__media {
  position: relative;
  border-radius: 16px;
  padding: clamp(0.65rem, 2vw, 1rem);
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 18px 40px -14px rgba(15, 23, 42, 0.35),
    0 4px 14px -6px rgba(15, 23, 42, 0.2);
  transform: translateY(-4px);
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row:hover .service-row__media {
  box-shadow:
    0 26px 50px -12px rgba(15, 23, 42, 0.42),
    0 8px 20px -8px rgba(15, 23, 42, 0.25);
}

.service-row:hover .service-row__img {
  transform: scale(1.03);
}

.service-row__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.service-row__body h2 {
  margin: 0;
  line-height: 1.2;
}

.service-row__lede {
  margin: 0.65rem 0 0;
  line-height: 1.7;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  max-width: min(100%, 32rem);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .service-row__lede {
    margin-top: 0.85rem;
  }
}

@media (max-width: 639px) {
  .service-row__body h2.font-display {
    font-size: clamp(1.0625rem, 3.6vw, 1.375rem);
    line-height: 1.22;
  }

  .service-row__lede {
    font-size: clamp(0.8125rem, 2.4vw, 0.9375rem);
    line-height: 1.55;
  }

  .service-row__media {
    transform: translateY(0);
    padding: clamp(0.35rem, 1.5vw, 0.85rem);
  }

  .service-row__cta {
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    margin-top: 1rem;
    align-self: flex-start;
  }

  .services-stack .service-row__media-col {
    align-self: start;
  }
}

.service-row__cta {
  display: inline-flex;
  margin-top: 1.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--service-gold);
  border: 1px solid var(--service-gold);
  background: transparent;
  border-radius: 9999px;
  text-decoration: none;
  width: auto;
  max-width: 100%;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .service-row__cta {
    margin-top: 1.65rem;
  }
}

.service-row__cta:hover {
  background-color: var(--service-gold);
  color: #0f2847;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(201, 162, 74, 0.55);
}

.service-row:hover .service-row__cta {
  border-color: var(--service-gold);
  box-shadow: 0 4px 16px -8px rgba(201, 162, 74, 0.45);
}

.service-row__cta:focus-visible {
  outline: 2px solid var(--service-gold);
  outline-offset: 3px;
}

.services-trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .services-trust__list {
    gap: 1rem;
    justify-content: space-between;
  }
}

.services-trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 40, 71, 0.08);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.2);
  font-size: 0.875rem;
  color: #334155;
}

@media (min-width: 768px) {
  .services-trust__item {
    justify-content: center;
    min-width: 0;
    flex: 1 1 0;
  }
}

.services-trust__icon {
  font-size: 1rem;
  line-height: 1;
}

.services-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.services-faq__item {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 40, 71, 0.09);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.services-faq__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-align: left;
  font: inherit;
  font-size: clamp(0.9375rem, 2.4vw, 1rem);
  font-weight: 600;
  color: #0f2847;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (max-width: 639px) {
  .services-faq__trigger {
    padding: 1rem 1rem;
  }
}

.services-faq__trigger:hover {
  background: rgba(201, 162, 74, 0.07);
}

.services-faq__trigger-text {
  flex: 1;
  line-height: 1.35;
}

.services-faq__expand-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(201, 162, 74, 0.14);
  color: var(--service-gold, #c9a24a);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-faq__expand-icon::before {
  content: "+";
  display: block;
  transform: translateY(-0.05em);
}

.services-faq__item.is-open .services-faq__expand-icon {
  background: rgba(201, 162, 74, 0.28);
}

.services-faq__item.is-open .services-faq__expand-icon::before {
  content: "−";
}

.services-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-faq__item.is-open .services-faq__panel {
  max-height: 16rem;
}

.services-faq__panel-inner {
  padding: 0 1.15rem 1.1rem;
  font-size: clamp(0.875rem, 2.3vw, 0.9375rem);
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 639px) {
  .services-faq__panel-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.services-page .fade-in-section {
    transition: none;
  }

  .service-row__img,
  .service-row__media,
  .service-row__cta,
  .services-faq__panel,
  .services-faq__expand-icon {
    transition: none !important;
  }

  .service-row:hover .service-row__img {
    transform: none;
  }

  .service-row__cta:hover {
    transform: none;
  }
}

/* --- About page: cards, trust bar, mid CTA, timeline, image breaks ---
 * Avoid content-visibility:auto on in-flow sections: wrong document height, dual scrollbars,
 * stuck wheel scrolling until reconciliation (often several seconds).
 */
body.about-page {
  --about-gold: #c9a24a;
  overflow-x: hidden;
  overflow-anchor: none;
}

body.about-page main#main-content {
  overflow-x: visible;
  max-width: 100%;
}

.about-values-compact {
  margin: 0;
}

.about-values-compact__item {
  margin: 0;
  border-radius: 16px;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(15, 40, 71, 0.08);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .about-values-compact__item {
    padding: 1.2rem 1.35rem;
  }
}

.about-intro-card img {
  max-height: min(52vh, 420px);
}

@media (min-width: 1024px) {
  .about-intro-card img {
    max-height: none;
  }
}

.about-process__step > div:last-child {
  min-width: 0;
}

@media (max-width: 639px) {
  .about-process__step {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
  }

  .about-process__num {
    width: 2.875rem;
    height: 2.875rem;
    font-size: 1.25rem;
  }
}

body.about-page main > section:not(.about-page-hero) {
  scroll-margin-top: 5.5rem;
}

.about-page .about-prose p {
  margin: 0 0 1rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.about-page .about-prose p:last-child {
  margin-bottom: 0;
}

.about-card {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 30px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 40, 71, 0.08);
}

.about-card--on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.about-page-hero .about-hero-prose p {
  margin: 0 0 0.85rem;
  line-height: 1.72;
  max-width: 42rem;
}

.about-page-hero .about-hero-prose p:last-child {
  margin-bottom: 0;
}

.about-trust-bar {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-top: 1px solid rgba(15, 40, 71, 0.07);
  border-bottom: 1px solid rgba(15, 40, 71, 0.07);
}

.about-trust-bar__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .about-trust-bar__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .about-trust-bar__list {
    justify-content: space-between;
    gap: 1rem;
  }
}

.about-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 40, 71, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f2847;
  box-shadow: 0 4px 18px -8px rgba(15, 23, 42, 0.12);
}

.about-mid-cta__wrap {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.about-mid-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 48px;
  border-radius: 9999px;
  background: #b8923c;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f2847;
  box-shadow: 0 10px 28px -12px rgba(184, 146, 60, 0.55);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.about-mid-cta__btn:hover {
  background-color: #9a7829;
  color: #fff;
  transform: translateY(-2px);
}

.about-photo-break {
  line-height: 0;
}

.about-photo-break img {
  display: block;
  width: 100%;
  height: min(42vh, 520px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .about-photo-break img {
    height: min(36vh, 380px);
  }
}

.about-values-card {
  height: 100%;
}

.about-values-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(201, 162, 74, 0.15);
  color: #0f2847;
}

.about-values-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.about-why-card {
  height: 100%;
}

.about-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .about-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.about-process__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 40, 71, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.about-process__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: #0f2847;
  font-family:
    "Outfit",
    "Inter",
    system-ui,
    sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.about-process__title {
  margin: 0;
  font-weight: 600;
  color: #0f2847;
}

.about-process__desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
}

@media (min-width: 1024px) {
  .about-process__step {
    flex-direction: column;
    text-align: left;
  }

  .about-process__num {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.65rem;
  }
}

.about-services-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
}

@media (prefers-reduced-motion: reduce) {
  .about-mid-cta__btn:hover {
    transform: none;
  }
}

body.about-page .fade-in-section {
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.about-page .fade-in-section {
    transition: none;
  }
}

/* ——— Contact page ——— */
.contact-page-header .contact-phone-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7829;
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-page-header .contact-phone-link {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f2847;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-page-header .contact-phone-link:hover {
  color: #c9a24a;
}

.contact-main-section {
  background: linear-gradient(180deg, #e8edf3 0%, #f4f6f9 38%, #fafbfc 100%);
}

.contact-form-card {
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 1.875rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(15, 40, 71, 0.09);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.contact-trust-row {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.contact-trust-row__mark {
  margin-right: 0.25rem;
  color: #c9a24a;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f2847;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 40, 71, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-quick-btn:hover {
  color: #c9a24a;
  border-color: rgba(201, 162, 74, 0.45);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

body.contact-page .contact-form__input {
  display: block;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.8125rem 1rem;
  font-size: 1rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

body.contact-page .contact-form__textarea {
  min-height: 8rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

body.contact-page .contact-form__input::placeholder {
  color: #94a3b8;
}

body.contact-page .contact-form__input:hover {
  border-color: rgba(148, 163, 184, 0.65);
}

body.contact-page .contact-form__input:focus {
  border-color: #c9a24a;
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.28);
  outline: none;
  background: #fff;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f2847;
  cursor: pointer;
  background: linear-gradient(135deg, #dcc078 0%, #c9a24a 42%, #a88632 100%);
  box-shadow:
    0 10px 28px rgba(201, 162, 74, 0.35),
    0 2px 6px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

@media (min-width: 1024px) {
  .contact-form-submit {
    width: auto;
    min-width: 17rem;
  }
}

.contact-form-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(201, 162, 74, 0.42),
    0 4px 10px rgba(15, 23, 42, 0.08);
  filter: brightness(1.03);
}

.contact-form-submit:focus-visible {
  outline: 2px solid #0f2847;
  outline-offset: 3px;
}

.contact-form-submit:disabled {
  cursor: wait;
  opacity: 0.88;
  transform: none;
  filter: none;
}

.contact-form-feedback {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-form-feedback--success {
  color: rgb(6 78 59);
  background: rgb(236 253 245);
  border: 1px solid rgb(167 243 208);
}

.contact-form-feedback--error {
  color: rgb(127 29 29);
  background: rgb(254 242 242);
  border: 1px solid rgb(252 165 165);
}

.home-quote-card .contact-form-feedback:not([data-state]) {
  border: 1px solid transparent;
}

.home-quote-card .contact-form-feedback--success {
  color: rgb(209 250 229);
  background: rgba(6 78 59 / 0.35);
  border: 1px solid rgba(52 211 153 / 0.55);
}

.home-quote-card .contact-form-feedback--error {
  color: rgb(254 226 226);
  background: rgba(127 29 29 / 0.45);
  border: 1px solid rgba(252 165 165 / 0.55);
}

.contact-map-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.05);
}

.contact-map-label {
  position: absolute;
  z-index: 1;
  left: 0.875rem;
  top: 0.875rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f2847;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.1);
  pointer-events: none;
}

.contact-map-frame {
  display: block;
  width: 100%;
  height: min(40vh, 380px);
  border: 0;
}

@keyframes contact-mobile-actions-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .contact-map-frame {
    height: min(34vh, 320px);
  }

  .contact-form-col,
  .contact-map-col {
    align-self: start;
  }
}

@media (max-width: 1023px) {
  .contact-page-header .contact-phone-link {
    display: inline-flex;
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.35rem 0.5rem;
    font-size: clamp(1.125rem, 4.5vw, 1.375rem);
    line-height: 1.3;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-page-header .contact-phone-badge {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
  }

  .contact-trust-row {
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem 1rem;
  }

  .contact-form-card {
    padding: 1.25rem 1.125rem;
  }

  body.contact-page #contact-form.contact-form__form > * + * {
    margin-top: 1.25rem !important;
  }

  body.contact-page #contact-form.contact-form__form > button.contact-form-submit {
    margin-top: 1.5rem !important;
  }

  body.contact-page .contact-form__input {
    min-height: 3.25rem;
    padding: 0.9375rem 1rem;
    font-size: 1.0625rem;
    border-radius: 14px;
  }

  body.contact-page .contact-form__textarea {
    min-height: 9rem;
  }

  .contact-form-submit {
    padding: 1.0625rem 1.5rem;
    font-size: 1.0625rem;
    width: 100%;
  }

  .contact-map-shell {
    margin-top: 1.5rem;
    border-radius: 16px;
  }

  .contact-map-frame {
    height: min(280px, 42vh);
    min-height: 250px;
  }

  .contact-map-col {
    margin-top: 0.5rem;
  }

  .contact-mobile-primary-actions {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid rgba(15, 40, 71, 0.06);
  }

  .contact-mobile-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-mobile-btn--call {
    border: 2px solid #0f2847;
    background: #fff;
    color: #0f2847;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .contact-mobile-btn--call:active {
    transform: scale(0.98);
    background: #f8fafc;
  }

  .contact-mobile-btn--estimate {
    border: none;
    color: #0f2847;
    background: linear-gradient(135deg, #dcc078 0%, #c9a24a 42%, #a88632 100%);
    box-shadow:
      0 10px 26px rgba(201, 162, 74, 0.35),
      0 2px 6px rgba(15, 23, 42, 0.06);
  }

  .contact-mobile-btn:focus-visible {
    outline: 2px solid #c9a24a;
    outline-offset: 3px;
  }

  .contact-mobile-btn--estimate:active {
    transform: scale(0.98);
  }

  @media (prefers-reduced-motion: no-preference) {
    body.contact-page .contact-mobile-primary-actions {
      animation: contact-mobile-actions-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
  }
}

body.contact-page .fade-in-section {
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.contact-page .fade-in-section {
    transition: none;
  }

  body.contact-page .contact-mobile-primary-actions {
    animation: none !important;
  }

  .contact-form-submit:hover,
  .contact-quick-btn:hover {
    transform: none;
  }
}

/* —— Before / after image comparison (home) —— */
.ba-compare {
  position: relative;
  display: block;
  width: 100%;
  touch-action: none;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 36rem);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.ba-compare:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #b8923c;
}

.ba-compare:active {
  cursor: grabbing;
}

.ba-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ba-compare__before-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  transition: clip-path 0.18s ease-out;
}

.ba-compare.ba-compare--dragging .ba-compare__before-layer {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .ba-compare__before-layer {
    transition: none;
  }
}

.ba-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  z-index: 3;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  pointer-events: none;
  box-shadow: 0 0 14px rgba(15, 40, 71, 0.12);
  transition: left 0.18s ease-out;
}

.ba-compare.ba-compare--dragging .ba-compare__divider {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .ba-compare__divider {
    transition: none;
  }
}

.ba-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid rgba(15, 40, 71, 0.1);
  color: var(--accent-navy, #0f2847);
  box-shadow:
    0 4px 22px rgba(15, 40, 71, 0.18),
    0 1px 3px rgba(15, 40, 71, 0.08);
  transform: translate(-50%, -50%);
}

.ba-compare__handle-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.ba-compare__label {
  position: absolute;
  z-index: 4;
  padding: 0.375rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(250, 246, 238, 0.94);
  color: var(--accent-navy, #0f2847);
  box-shadow: 0 2px 10px rgba(15, 40, 71, 0.08);
  pointer-events: none;
}

.ba-compare__label--before {
  top: 0.75rem;
  left: 0.75rem;
}

.ba-compare__label--after {
  bottom: 0.75rem;
  right: 0.75rem;
}

@media (min-width: 640px) {
  .ba-compare__label {
    font-size: 0.75rem;
    padding: 0.4375rem 0.85rem;
  }

  .ba-compare__label--before {
    top: 1rem;
    left: 1rem;
  }

  .ba-compare__label--after {
    bottom: 1rem;
    right: 1rem;
  }
}
