body {
  font-family: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
  background-color: var(--color-bg, #f8f5ef);
  color: var(--color-text, #1c1b19);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.font-poppins,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display, 'Poppins', 'Inter', sans-serif);
}

.type-h1,
.type-h2,
.type-h3 {
  color: var(--color-text, #1c1b19);
}

.brand-gradient {
  background-image: linear-gradient(
    135deg,
    var(--color-accent, #e7a858),
    color-mix(in srgb, var(--color-accent, #e7a858) 85%, black)
  );
}

.text-brand {
  color: var(--color-accent, #e7a858);
}

.shadow-brand {
  box-shadow: var(--shadow-brand, 0 24px 60px -30px rgba(37 37 37 / 0.55));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  outline: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: var(--shadow-soft, 0 10px 24px rgba(0 0 0 / 0.18));
}

.btn:focus {
  outline: none;
}

.btn:focus-visible,
.focus-ring:focus-visible {
  outline: 2px solid var(--color-focus-ring, rgba(231 168 88 / 0.85));
  outline-offset: 3px;
}

.btn-brand,
.bg-brand-600 {
  color: var(--color-accent-contrast, #1d1207) !important;
  background-color: var(--color-accent, #e7a858) !important;
  background-image: linear-gradient(
    135deg,
    var(--color-accent, #e7a858),
    color-mix(in srgb, var(--color-accent, #e7a858) 80%, black)
  );
  border-color: transparent;
}

.btn-brand:hover,
.bg-brand-600:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-muted {
  background-color: var(--color-surface, #ffffff);
  color: var(--color-text-muted, #5e5a54);
  border: 1px solid var(--color-border, rgba(28 27 26 / 0.12));
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-muted:hover {
  background-color: color-mix(in srgb, var(--color-surface, #ffffff) 80%, var(--color-bg, #f8f5ef));
  border-color: rgba(var(--color-border-rgb, 28 27 26) / 0.35);
}

.hero-bg {
  background:
    radial-gradient(
      1200px 420px at 50% -120px,
      rgba(var(--color-accent-rgb, 231 168 88) / 0.18),
      transparent 65%
    ),
    radial-gradient(720px 360px at 90% 20%, rgba(37 37 37 / 0.12), transparent 70%),
    var(--color-surface, #ffffff);
}

.card-surface {
  background: color-mix(
    in srgb,
    var(--color-surface, #ffffff) 80%,
    var(--color-surface-muted, #f2ede1)
  );
  border: 1px solid var(--color-border, rgba(28 27 26 / 0.12));
  box-shadow: var(--shadow-soft, 0 10px 24px rgba(0 0 0 / 0.18));
  color: var(--color-text, #1c1b19);
}

.process-step,
.service-card {
  background-color: color-mix(in srgb, var(--color-surface, #ffffff) 94%, var(--color-bg, #f8f5ef));
  border-color: var(--color-border, rgba(28 27 26 / 0.12));
  color: var(--color-text, #1c1b19);
}

[data-theme='dark'] .process-step,
[data-theme='dark'] .service-card {
  background-color: color-mix(in srgb, var(--color-surface, #3a3d41) 92%, var(--color-bg, #252525));
  color: var(--color-text, #f4f5f7);
}

.service-section {
  background-color: color-mix(in srgb, var(--color-surface, #ffffff) 92%, var(--color-bg, #f8f5ef));
  border-color: var(--color-border, rgba(28 27 26 / 0.12)) !important;
  color: var(--color-text, #1c1b19);
}

.service-section-title,
.service-card-title {
  color: var(--color-text, #1c1b19);
}

.service-section-subtitle,
.service-card-subtitle,
.service-card-description,
.service-card-highlights,
.service-card-highlights li,
.service-card-meta,
.service-card-secondary {
  color: var(--color-text-muted, #5e5a54);
}

.process-step-body {
  color: var(--color-text-muted, #5e5a54);
}

[data-theme='dark'] .service-section {
  background-color: color-mix(in srgb, var(--color-surface, #3a3d41) 92%, var(--color-bg, #252525));
  color: var(--color-text, #f4f5f7);
}

[data-theme='dark'] .service-section-subtitle,
[data-theme='dark'] .service-card-subtitle,
[data-theme='dark'] .service-card-description,
[data-theme='dark'] .service-card-highlights,
[data-theme='dark'] .service-card-highlights li,
[data-theme='dark'] .service-card-meta,
[data-theme='dark'] .service-card-secondary {
  color: var(--color-text-muted, #b9c3d4);
}

[data-theme='dark'] .process-step-body {
  color: var(--color-text-muted, #b9c3d4);
}

[data-theme='dark'] .process-step,
[data-theme='dark'] .service-card {
  background-color: color-mix(in srgb, var(--color-surface, #3a3d41) 92%, var(--color-bg, #252525));
  color: var(--color-text, #f4f5f7);
}

.slider-container {
  position: relative;
}

.slider-image-after {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.slider-handle {
  position: absolute;
  inset-block-start: 0;
  inset-block-end: 0;
  inset-inline-start: calc(50% - 12px);
  width: 24px;
  cursor: ew-resize;
  display: grid;
  place-items: center;
  outline: none;
}

.slider-handle::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 2px solid var(--color-accent, #e7a858);
  background: var(--color-surface, #ffffff);
  box-shadow: 0 4px 12px rgba(37 37 37 / 0.18);
}

.slider-handle::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-accent, #e7a858);
}

.badge-pill,
.location-chip,
.service-filter-chip,
.service-filter-pill,
[data-chip='surface'] {
  background-color: var(--color-chip-bg, rgba(255 255 255 / 0.8));
  color: var(--color-text, #1c1b19);
  border-color: var(--color-chip-border, rgba(28 27 26 / 0.18));
}

.text-muted {
  color: var(--color-text-muted, #5e5a54) !important;
}

[data-surface='base'] {
  background-color: var(--color-bg, #f8f5ef);
}

.theme-toggle {
  border: 1px solid var(--color-border, rgba(28 27 26 / 0.12));
  background-color: var(--color-surface-muted, #f2ede1);
  color: var(--color-text, #1c1b19);
  gap: 0.25rem;
}

.theme-toggle__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  opacity: 0.6;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.theme-toggle--icons {
  gap: 0.25rem;
}

.theme-toggle--icons .theme-toggle__btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle__btn:focus-visible {
  outline: 2px solid var(--color-focus-ring, rgba(231 168 88 / 0.85));
  outline-offset: 1px;
}

.theme-toggle__btn--active {
  background-color: var(--color-accent, #e7a858);
  color: var(--color-accent-contrast, #1d1207);
  opacity: 1;
}

:where(
  .card-surface,
  .process-step,
  .service-card,
  .service-section,
  .service-modal-frame,
  .service-finder-sticky,
  .service-section-empty,
  .faq-item
) {
  position: relative;
  isolation: isolate;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

:where(
  .card-surface,
  .process-step,
  .service-card,
  .service-section,
  .service-modal-frame,
  .service-finder-sticky,
  .service-section-empty,
  .faq-item
)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--glow-ring-width, 2px);
  background: linear-gradient(140deg, var(--glow-border), transparent 55%, var(--glow-border));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--glow-opacity-rest, 0.18);
  transition: opacity 0.25s ease;
}

:where(
  .card-surface,
  .process-step,
  .service-card,
  .service-section,
  .service-modal-frame,
  .service-finder-sticky,
  .service-section-empty,
  .faq-item
)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--glow-shadow-rest, 0 24px 45px -32px var(--glow-highlight));
  opacity: var(--glow-opacity-rest, 0.15);
  transition:
    opacity 0.25s ease,
    box-shadow 0.25s ease;
  pointer-events: none;
}

:where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  ):hover::before,
:where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  ):focus-within::before,
:where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  ):hover::after,
:where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  ):focus-within::after {
  opacity: var(--glow-opacity-hover, 0.35);
  box-shadow: var(--glow-shadow-hover, 0 32px 60px -30px var(--glow-highlight));
}

[data-glow='off']::before,
[data-glow='off']::after {
  display: none;
}

[data-glow='minimal']::after {
  opacity: 0.1;
  box-shadow: 0 20px 35px -32px var(--glow-highlight);
}

[data-glow='hover']::before,
[data-glow='hover']::after {
  opacity: 0;
}

[data-glow='hover']:hover::before,
[data-glow='hover']:focus-within::before,
[data-glow='hover']:hover::after,
[data-glow='hover']:focus-within::after {
  opacity: var(--glow-opacity-hover, 0.35);
}

[data-glow='cta']::before,
[data-glow='cta']::after {
  opacity: var(--glow-opacity-hover, 0.4);
}

[data-glow='cta']::before {
  filter: var(--card-glow-filter, none);
}

[data-glow='cool'] {
  --card-glow-filter: url('#card-glow-cool');
  --glow-border: #68a8ff;
  --glow-highlight: rgba(104 168 255 / 0.3);
}

.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border, rgba(28 27 26 / 0.12));
  border-radius: var(--radius-xl, 1.5rem);
  background-color: var(--color-surface, #ffffff);
  color: var(--color-text, #1c1b19);
  padding: 0;
  position: relative;
  isolation: isolate;
  --faq-circle-x: 1.6rem;
  --faq-circle-y: 1rem;
  --faq-circle-open: 180%;
  --faq-circle-closed: 0%;
}

.faq-item::before,
.faq-item::after {
  content:;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  clip-path: circle(var(--faq-circle-closed) at var(--faq-circle-x) var(--faq-circle-y));
  transition:
    clip-path 600ms cubic-bezier(0.86, 0, 0.07, 1),
    opacity 300ms ease;
  z-index: 1;
}

.faq-item::before {
  background: var(--faq-circle-color, rgba(255 255 255 / 0.85));
}

.faq-item::after {
  background: var(--faq-circle-overlay, rgba(231 168 88 / 0.35));
  clip-path: circle(var(--faq-circle-closed) at calc(100% - 1.5rem) calc(100% - 1.5rem));
  transition-delay: 80ms;
}

.faq-item[open]::before {
  opacity: 0.85;
  clip-path: circle(var(--faq-circle-open) at var(--faq-circle-x) var(--faq-circle-y));
}

.faq-item[open]::after {
  opacity: 0.45;
  clip-path: circle(calc(var(--faq-circle-open) * 0.75) at calc(100% - 1.5rem) calc(100% - 1.5rem));
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--color-focus-ring, rgba(231 168 88 / 0.85));
  outline-offset: 3px;
  border-radius: inherit;
}

.faq-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--faq-transition, 320ms)
    var(--slide-ease, cubic-bezier(0.86, 0, 0.07, 1));
}

.faq-item[open] .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted, #5e5a54);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

  .faq-item::before,
  .faq-item::after {
    opacity: 0;
    transition: none;
    clip-path: circle(0);
    mix-blend-mode: normal;
  }
}

@media (prefers-reduced-motion: reduce), (prefers-contrast: more) {
  :where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  )::before,
  :where(
    .card-surface,
    .process-step,
    .service-card,
    .service-section,
    .service-modal-frame,
    .service-finder-sticky,
    .service-section-empty,
    .faq-item
  )::after {
    opacity: 0.12;
    box-shadow: none;
  }
}

.section-intro,
.section-intro strong {
  color: var(--color-text, #1c1b19);
}

.modal-enter-active,
.fade-enter-active {
  transition: all 300ms ease-out;
}

.modal-leave-active,
.fade-leave-active {
  transition: all 300ms ease-in;
}

.modal-enter,
.modal-leave-to {
  transform: translateY(100%);
  opacity: 0;
}

.modal-enter-to,
.modal-leave {
  transform: translateY(0);
  opacity: 1;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave {
  opacity: 1;
}

.booking-step-enter {
  opacity: 0;
  transform: translateY(8px);
}

.booking-step-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .modal-enter-active,
  .modal-leave-active,
  .fade-enter-active,
  .fade-leave-active,
  .booking-step-enter-active,
  .transition-shadow {
    transition: none !important;
  }
}

[data-theme='dark'] .card-surface {
  background: color-mix(in srgb, var(--color-surface, #3a3d41) 85%, var(--color-bg, #252525));
  color: var(--color-text, #f4f5f7);
  border-color: var(--color-border, rgba(148 163 184 / 0.35));
}

[data-theme='dark'] .bg-white,
[data-theme='dark'] .bg-white\/95,
[data-theme='dark'] .bg-white\/90,
[data-theme='dark'] .bg-white\/85,
[data-theme='dark'] .bg-white\/80,
[data-theme='dark'] .bg-white\/70 {
  background-color: var(--color-surface, #3a3d41) !important;
  color: var(--color-text, #f4f5f7);
}

[class~='bg-offwhite'],
.bg-offwhite,
.bg-offwhite\/90,
.bg-offwhite\/70 {
  background-color: var(--color-surface, #ffffff) !important;
  color: var(--color-text, #1c1b19);
}

[data-theme='dark'] .bg-offwhite,
[data-theme='dark'] .bg-offwhite\/90,
[data-theme='dark'] .bg-offwhite\/70 {
  background-color: var(--color-surface, #3a3d41) !important;
  color: var(--color-text, #f4f5f7);
}

.bg-highlight,
.bg-highlight\/60,
.bg-highlight\/50,
.bg-highlight\/40,
.bg-highlight\/30,
.bg-highlight\/20 {
  background-color: var(--color-surface-muted, #f2ede1) !important;
  color: var(--color-text, #1c1b19);
}

[data-theme='dark'] .bg-highlight,
[data-theme='dark'] .bg-highlight\/60,
[data-theme='dark'] .bg-highlight\/50,
[data-theme='dark'] .bg-highlight\/40,
[data-theme='dark'] .bg-highlight\/30,
[data-theme='dark'] .bg-highlight\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-surface-muted, #1a2231) 90%,
    transparent
  ) !important;
  color: var(--color-text, #f4f5f7);
}

[data-theme='dark'] .theme-toggle {
  background-color: rgba(255 255 255 / 0.08);
}

[data-theme='dark'] .text-charcoal,
[data-theme='dark'] .text-charcoal\/90,
[data-theme='dark'] .text-charcoal\/80,
[data-theme='dark'] .text-charcoal\/70,
[data-theme='dark'] .text-charcoal\/60,
[data-theme='dark'] .text-charcoal\/50,
[data-theme='dark'] .text-charcoal\/40 {
  color: var(--color-text, #f4f5f7) !important;
}

[data-theme='dark'] .text-offwhite,
[data-theme='dark'] .text-offwhite\/90,
[data-theme='dark'] .text-offwhite\/70,
[data-theme='dark'] .text-muted {
  color: var(--color-text-muted, #b9c3d4) !important;
}

[data-theme='dark'] [class*='text-charcoal'] {
  color: var(--color-text, #f4f5f7) !important;
}

[data-theme='dark'] .service-filter-chip,
[data-theme='dark'] .service-filter-pill,
[data-theme='dark'] .location-chip,
[data-theme='dark'] .badge-pill {
  background-color: var(--color-chip-bg, rgba(255 255 255 / 0.08));
  color: var(--color-text, #f4f5f7);
  border-color: var(--color-chip-border, rgba(255 255 255 / 0.16));
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

[data-footer] {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

[data-theme='dark'] [data-footer] {
  background-color: color-mix(in srgb, var(--color-bg) 90%, #000 10%);
}

[data-footer] [class*='text-offwhite'] {
  color: var(--color-text) !important;
}

[data-footer] [class*='text-offwhite/'] {
  color: var(--color-text) !important;
}

@media (forced-colors: active) {
  .btn,
  .theme-toggle,
  .theme-toggle__btn {
    background: ButtonFace !important;
    color: ButtonText !important;
    border-color: ButtonText !important;
    box-shadow: none !important;
  }

  .theme-toggle__btn--active {
    background: Highlight !important;
    color: HighlightText !important;
  }

  .btn:focus-visible,
  .focus-ring:focus-visible,
  .theme-toggle__btn:focus-visible {
    outline: 2px solid Highlight !important;
  }
}
/* Service finder chip active states */
.service-filter-chip[data-active='true'],
.service-filter-chip[aria-pressed='true'],
.service-filter-chip[data-selected='true'] {
  background-color: rgba(28, 27, 26, 0.12);
  border-color: rgba(28, 27, 26, 0.45);
  color: var(--color-text, #1c1b19);
}

[data-theme='dark'] .service-filter-chip[data-active='true'],
[data-theme='dark'] .service-filter-chip[aria-pressed='true'],
[data-theme='dark'] .service-filter-chip[data-selected='true'] {
  background-color: rgba(231, 168, 88, 0.25);
  border-color: rgba(231, 168, 88, 0.6);
  color: #fff8f0;
}
/* Sticky & mobile CTA alignment */
#sticky-action-bar,
#mobile-cta-bar {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  transform-origin: center;
  overflow: visible;
}

#sticky-action-bar > .card-surface,
#mobile-cta-bar .mobile-cta-inner {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  #sticky-action-bar > .card-surface,
  #mobile-cta-bar .mobile-cta-inner {
    width: min(100%, 22rem);
  }
}

#sticky-action-bar.sticky-cta-hidden,
#sticky-action-bar.sticky-cta-visible {
  transform-origin: top center;
}

#mobile-cta-bar {
  transform-origin: bottom center;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
}

.mobile-cta-hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.mobile-cta-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.estimate-success-badge {
  position: absolute;
  right: 0.75rem;
  top: -1.75rem;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
  pointer-events: none;
}

.estimate-success-badge.estimate-success-visible {
  opacity: 1;
  transform: translateY(0);
}
