/* ForgeLocal v1.2.0 — optional colour scheme and layout variants */
:root {
  color-scheme: light;
}

html[data-color-scheme="dark"] {
  color-scheme: dark;
  --ink: #eef7f5;
  --muted: #b3c6c4;
  --paper: #0b1719;
  --soft: #122326;
  --line: #294044;
  --section-tint: #112326;
  --section-contrast: #061113;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-premium: 0 28px 80px rgba(0, 0, 0, 0.32);
  --shadow-float: 0 16px 45px rgba(0, 0, 0, 0.34);
}

html[data-color-scheme="dark"] body,
html[data-color-scheme="dark"] .site-header,
html[data-color-scheme="dark"] .mobile-panel,
html[data-color-scheme="dark"] .desktop-dropdown,
html[data-color-scheme="dark"] .menu-button,
html[data-color-scheme="dark"] .mobile-actions,
html[data-color-scheme="dark"] .hero-card,
html[data-color-scheme="dark"] .stat,
html[data-color-scheme="dark"] .card,
html[data-color-scheme="dark"] .review-card,
html[data-color-scheme="dark"] .metric-card,
html[data-color-scheme="dark"] .plan-card,
html[data-color-scheme="dark"] .warning-card,
html[data-color-scheme="dark"] .estimator__form,
html[data-color-scheme="dark"] .estimator__result,
html[data-color-scheme="dark"] .modal-panel {
  background-color: var(--paper);
  color: var(--ink);
}

html[data-color-scheme="dark"] .hero,
html[data-color-scheme="dark"] .marketplace-hero,
html[data-color-scheme="dark"] .page-hero {
  background: linear-gradient(135deg, #0a1719 0%, #122c30 100%);
}

html[data-color-scheme="dark"] .placeholder-note,
html[data-color-scheme="dark"] .legal-note {
  background: #2a2515;
  color: #f7e7b2;
  border-color: #6d5b24;
}

html[data-color-scheme="dark"] .site-header {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}

html[data-color-scheme="dark"] .brand,
html[data-color-scheme="dark"] .desktop-nav a,
html[data-color-scheme="dark"] .desktop-menu-button,
html[data-color-scheme="dark"] .mobile-panel a,
html[data-color-scheme="dark"] .mobile-panel summary,
html[data-color-scheme="dark"] .mobile-actions a {
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Three purposeful header families using one accessible DOM structure. */
.header--utility {
  border-top: 4px solid var(--accent);
}
.header--utility .nav-shell {
  min-height: 84px;
}
.header--utility .nav-phone {
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 2px;
}

.header--compact .nav-shell {
  min-height: 64px;
}
.header--compact .brand {
  width: 170px;
}
.header--compact .btn {
  min-height: 2.7rem;
}

.header--editorial {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--line);
}
.header--editorial .nav-shell {
  min-height: 92px;
}
.header--editorial .brand {
  width: 235px;
}
.header--editorial .desktop-nav {
  margin-inline: auto;
}

.header--overlay:not(.is-scrolled) {
  background: transparent;
  border-color: transparent;
}

/* Three footer families. */
.footer--service-map {
  background-image: radial-gradient(
    circle at 85% 20%,
    rgba(255, 255, 255, 0.09),
    transparent 28%
  );
}
.footer--service-map .footer-grid::after {
  content: "Service-area ready";
  display: grid;
  place-items: center;
  min-height: 9rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 850;
}
.footer--service-map .footer-grid {
  grid-template-columns: 1.25fr repeat(3, 0.8fr) 1fr;
}

.footer--conversion {
  padding-top: 5.5rem;
  background: linear-gradient(140deg, #071d21, #0b3a40);
}
.footer--conversion .footer-grid > div:first-child p {
  font-size: 1.15rem;
  max-width: 36ch;
}

.footer--statement .footer-grid {
  grid-template-columns: minmax(18rem, 1.9fr) repeat(3, 0.7fr);
}
.footer--statement .footer-grid > div:first-child p {
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  line-height: 1.25;
  max-width: 26ch;
}

@media (max-width: 1100px) {
  .footer--service-map .footer-grid,
  .footer--statement .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer--service-map .footer-grid::after {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .theme-toggle__label {
    display: none;
  }
  .theme-toggle {
    min-width: 2.75rem;
    padding-inline: 0.65rem;
  }
  .footer--service-map .footer-grid,
  .footer--statement .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

.theme-toggle--mobile {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

@media (min-width: 1021px) {
  .theme-toggle--mobile {
    display: none;
  }
}
