/* HouseStar Cleaning - Safe Sparkling Modernity Design System */
@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    overscroll-behavior: none;
    background-color: #f8f9ff;
    color: #0b1c30;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9ff;
}

::-webkit-scrollbar-thumb {
  background: #cbdbf5;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #006194;
}

/* Tabular figures for pricing & ratings */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #006194;
  outline-offset: 2px;
}

/* FAQ Accordion animation */
details summary {
  list-style: none;
  cursor: pointer;
}

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

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

.faq-chevron {
  transition: transform 0.2s ease;
}

/* Mobile drawer */
.mobile-menu-panel {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-panel.hidden {
  display: none;
}
