/* Final cross-page UI repair layer. Keep this stylesheet last. */
@view-transition { navigation: none; }

::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(active-navigation-item),
::view-transition-group(site-brand) {
  animation: none !important;
}

.top-nav a.active,
.brand-lockup { view-transition-name: none !important; }

html,
body { background: #fff; }

html.booting body .page-canvas,
body.is-ready .page-canvas {
  opacity: 1 !important;
  transition: none !important;
}
html.is-navigating body {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.is-ready .hero-photo,
.page-canvas .hero-photo {
  animation: none !important;
  filter: none !important;
  transform: translateZ(0) !important;
  will-change: auto !important;
}

body.is-ready .top-nav,
body.is-ready .brand-lockup,
body.is-ready .hero-title,
body.is-ready .hero-actions,
body.is-ready .facts,
body.is-ready .phone-cta,
body.is-ready .service-band h2,
body.is-ready .service-band > p,
body.is-ready .service-grid,
body.is-ready .text-block,
body.is-ready .service-catalog,
body.is-ready .services-cta,
body.is-ready .gallery-strip,
body.is-ready .contacts-block,
body.is-ready .services-list,
body.is-ready .services-booking-form,
body.is-ready .faq-list,
body.is-ready .adv-section,
body.is-ready .about-cta {
  animation: none !important;
}

/* Cookie consent: independent controls with no inherited decorative layers. */
.analytics-consent {
  box-sizing: border-box;
  right: 24px;
  bottom: 84px;
  width: min(650px, calc(100vw - 48px));
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(14, 14, 14, .97);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}

.analytics-consent p {
  max-width: 590px;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.45;
}

.analytics-consent-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

.analytics-consent button,
.analytics-consent button.secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  appearance: none;
  background: #ffcc00 !important;
  background-image: none !important;
  box-shadow: none;
  color: #080808;
  font: 700 16px/1.1 Arial, sans-serif;
  text-align: center;
  text-transform: none;
  transform: none !important;
}

.analytics-consent button.secondary { background: #fff !important; }
.analytics-consent button::before,
.analytics-consent button::after {
  display: none !important;
  content: none !important;
}
.analytics-consent button:hover { background: #ffda3b !important; transform: none !important; }
.analytics-consent button.secondary:hover { background: #f0f0f0 !important; }

.has-cookie-consent .support-chat {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px);
}

/* Footer documents are a separate column, not a suffix glued to the e-mail. */
.footer {
  grid-template-columns: 300px minmax(360px, 520px) minmax(210px, 1fr) auto;
  gap: 48px;
  height: auto;
}
.footer > div { min-width: 0; }
.footer .footer-contact > a { display: block; width: max-content; max-width: 100%; }
.footer .footer-links { padding-top: 23px; }
.footer .footer-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.down-dot { cursor: pointer; touch-action: manipulation; }
body.is-ready .down-dot { animation: none !important; }

/* Photo sections overlap the following white surface so fractional pixels cannot create seams. */
.about-page .about-cta {
  background: #fff !important;
  isolation: isolate;
}
.about-page .about-cta .service-photo {
  top: -2px !important;
  bottom: -4px !important;
  height: calc(100% + 6px) !important;
}
.about-page .about-cta::after {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: -1px !important;
  z-index: 6 !important;
  display: block !important;
  width: 100% !important;
  height: 5px !important;
  content: "" !important;
  background: #fff !important;
}
.about-page .about-map { background: #fff; }

/* The old 110px black spacer was the visible services seam. */
.services-page .services-cta::after {
  display: none !important;
  content: none !important;
}
.services-page .services-cta::before {
  left: 0 !important;
  top: auto !important;
  right: 0 !important;
  bottom: -3px !important;
  z-index: 5 !important;
  display: block !important;
  width: 100% !important;
  height: 74px !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 5px 0 #fff;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .services-page .service-art-card.tilt-panel {
    contain: none !important;
    transform-style: preserve-3d !important;
  }
  .services-page .service-art-card.tilt-panel.is-selected:not(.is-tilting) {
    box-shadow: 0 0 0 5px #080808, 0 26px 58px rgba(0, 0, 0, .2);
  }
  .services-page .service-art-card.tilt-panel.is-selected.is-tilting {
    box-shadow: 0 0 0 4px #ffcc00, 0 42px 82px rgba(0, 0, 0, .32) !important;
  }
}

.booking-drag-handle { display: none; }
@media (min-width: 901px) {
  .page-canvas .hero > .white-curve,
  .home-page .service-band > .white-curve {
    left: 0 !important;
    bottom: -4px !important;
    width: 100% !important;
    height: 66px !important;
    border-radius: 0 !important;
    background: #fff !important;
    clip-path: polygon(0 0, 50% calc(100% - 8px), 100% 0, 100% 100%, 0 100%) !important;
    box-shadow: 0 8px 0 #fff !important;
  }
}

@media (max-width: 900px) {
  .page-canvas .hero > .white-curve,
  .home-page .service-band > .white-curve {
    left: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background: #fff !important;
    clip-path: polygon(0 0, 50% calc(100% - 4px), 100% 0, 100% 100%, 0 100%) !important;
    box-shadow: 0 5px 0 #fff !important;
  }
}

/* Booking form parity with Figma node 1:271. */
.booking-details > .booking-field > .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.booking-details > .booking-field input::placeholder {
  color: #a1a1a1;
  opacity: 1;
}
.booking-policy {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 26px !important;
  margin: 18px 0 0 !important;
  color: #000 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}
.booking-policy > input {
  position: static !important;
  display: block !important;
  flex: none !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--accent);
}
.booking-policy > span {
  position: static !important;
  display: block !important;
  min-width: 0 !important;
  padding: 4px 0 0 !important;
  overflow: visible !important;
  color: #000 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

@media (max-width: 900px) {
  .analytics-consent {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 100px);
    padding: 18px;
    border-radius: 18px;
  }
  .analytics-consent p { margin-bottom: 15px; font-size: 15px; line-height: 1.4; }
  .analytics-consent-actions { grid-template-columns: 1fr; gap: 9px !important; }
  .analytics-consent button,
  .analytics-consent button.secondary { min-height: 50px; font-size: 15px; }

  .home-page .hero-title {
    left: var(--mobile-gutter) !important;
    right: var(--mobile-gutter) !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .home-page .hero-title > .hero-display-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(42px, 13vw, 64px) !important;
    line-height: .92 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }
  .home-page .hero-title > h1 {
    width: min(100%, 410px) !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .footer {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  .footer .footer-links { padding-top: 0; }
  .footer .footer-contact > a { width: auto; overflow-wrap: anywhere; }
  .footer .footer-privacy { min-height: 44px; font-size: 15px; }

  .home-page .service-pill.design-export::before,
  .home-page .service-pill.design-export::after {
    display: none !important;
    content: none !important;
  }
  .home-page .service-pill.design-export {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffcc00 !important;
  }
  .home-page .service-pill.design-export > img {
    position: static !important;
    inset: auto !important;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    transform: none !important;
  }
  .home-page .service-pill.design-export > .tilt-glare { display: none !important; }

  .services-page .services-cta {
    overflow: hidden !important;
    background: #fff !important;
  }
  .services-page .services-cta::before {
    bottom: -2px !important;
    height: 42px !important;
    box-shadow: 0 5px 0 #fff;
  }

  .booking-dialog::before { display: none !important; content: none !important; }
  .booking-drag-handle {
    position: absolute;
    left: calc(50% - 42px);
    top: 0;
    z-index: 8;
    display: block;
    width: 84px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }
  .booking-drag-handle::before {
    position: absolute;
    left: 18px;
    top: 11px;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    content: "";
    background: #cfcfcf;
    transition: width .2s ease, left .2s ease, background-color .2s ease;
  }
  .booking-drag-handle:active { cursor: grabbing; }
  .booking-drag-handle:active::before {
    left: 12px;
    width: 60px;
    background: #a9a9a9;
  }
  .booking-modal.is-open .booking-dialog {
    transform: translate3d(0, var(--booking-drag-offset, 0px), 0) !important;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .2s ease !important;
    will-change: transform;
  }
  .booking-modal.is-open .booking-dialog.is-dragging {
    transition: none !important;
    user-select: none;
  }
  .about-page .about-cta::after { height: 6px !important; }
}

@media (max-width: 370px) {
  .home-page .hero-title > .hero-display-title { font-size: 40px !important; }
}
