/* Exact utilities from Lovable src/styles.css — keep in sync */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Scroll reveal — never block layout/scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.bg-grid-navy {
  background-image:
    linear-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
}

@keyframes enter {
  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0);
  }
}

.animate-in {
  animation-name: enter;
  animation-duration: 0.7s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.fade-in {
  --tw-enter-opacity: 0;
}

.slide-in-from-bottom-4 {
  --tw-enter-translate-y: 1rem;
}

.slide-in-from-bottom-6 {
  --tw-enter-translate-y: 1.5rem;
}

.delay-150 {
  animation-delay: 150ms;
}

.fill-mode-both {
  animation-fill-mode: both;
}

.duration-700 {
  animation-duration: 700ms;
}

/* ========== Header (responsive, no CDN dependency) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background, #fff);
  border-bottom: 1px solid var(--border, #e4e8ef);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 2px oklch(0.25 0.07 258 / 0.06), 0 8px 24px -8px oklch(0.25 0.07 258 / 0.12);
  border-bottom-color: transparent;
}

.header-inner {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4.25rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .header-inner {
    width: min(100% - 3rem, 80rem);
    height: 4.5rem;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    width: min(100% - 4rem, 80rem);
    height: 5rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(58vw, 11.5rem);
}

@media (min-width: 480px) {
  .header-brand {
    max-width: 13rem;
  }
}

@media (min-width: 1024px) {
  .header-brand {
    max-width: none;
    flex-shrink: 0;
  }
}

.header-brand img {
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .header-brand img {
    height: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .header-brand img {
    height: 3.5rem;
  }
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }

  .nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-desktop a {
    position: relative;
    display: block;
    border-radius: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .nav-desktop a:hover {
    color: var(--orange);
  }

  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: -0.125rem;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav-desktop a:hover::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-btn-phone-lg {
  display: none !important;
}

.header-btn-quote {
  display: none !important;
}

.header-btn-phone-sm {
  display: inline-flex !important;
}

@media (min-width: 640px) {
  .header-btn-quote {
    display: inline-flex !important;
  }
}

@media (min-width: 768px) {
  .header-btn-phone-lg {
    display: inline-flex !important;
  }

  .header-btn-phone-sm {
    display: none !important;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle .menu-icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background, #fff);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.is-open {
  display: block;
  max-height: 32rem;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }
}

.mobile-menu nav {
  padding: 0.75rem 1rem 1rem;
}

@media (min-width: 640px) {
  .mobile-menu nav {
    padding-inline: 1.5rem;
  }
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu a.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.mobile-menu a.mobile-nav-link:hover {
  color: var(--orange);
}

.mobile-menu .menu-quote {
  margin-top: 0.75rem;
  width: 100%;
}

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

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

summary {
  list-style: none;
}

/* Chip checked helpers */
.chip input:checked ~ .chip-dot,
.chip.is-checked .chip-dot {
  border-color: var(--orange);
  background: var(--orange);
}

svg.size-4 { width: 1rem; height: 1rem; }
svg.size-5 { width: 1.25rem; height: 1.25rem; }
svg.size-6 { width: 1.5rem; height: 1.5rem; }
svg.size-7 { width: 1.75rem; height: 1.75rem; }
svg.size-8 { width: 2rem; height: 2rem; }
svg.size-10 { width: 2.5rem; height: 2.5rem; }
