﻿/* ==========================================================================
   Sparky Electrical â€” Boksburg electricians
   One-page template stylesheet (mobile-first)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --bg: #ffffff;
  --surface: #f5f7f9;
  --dark: #141b24;
  --dark-soft: #1c2530;
  --ink: #182130;
  --body-c: #3f4956;
  --muted: #5e6975;
  --line: #e4e8ee;
  --line-strong: #cbd3dc;
  --brand: #f5b301;
  --brand-hover: #e0a200;
  --brand-deep: #8a6400;
  --brand-soft: #fcf3d9;
  --link: #0b57d0;
  --ring: #0b57d0;
  --ring-on-dark: #9dc1ff;
  --error: #b3261e;
  --ok: #1d7a46;
  --ok-bg: #e9f5ee;
  --on-dark: #edf1f6;
  --on-dark-muted: #aab4c2;
  --footer-text: #c3ccd6;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 12px;
  --shadow-sm: 0 1px 2px rgb(16 24 32 / 0.06);
  --shadow-md: 0 12px 32px -14px rgb(16 24 32 / 0.22);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --nav-h: 4.25rem;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-c);
  background: var(--bg);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 5.2vw + 0.9rem, 3.35rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw + 0.8rem, 2.3rem);
  font-weight: 750;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
}

address {
  font-style: normal;
}

svg {
  flex-shrink: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.stats-band :focus-visible {
  outline-color: var(--ring-on-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75em 1.25em;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--surface {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: var(--brand);
  color: #16181d;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #16181d;
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg);
  color: var(--ink);
}

.btn-outline-light {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.btn-lg {
  min-height: 54px;
  padding: 0.8em 1.7em;
}

.btn-block {
  width: 100%;
}

/* ---------- Header: top bar ---------- */
.topbar {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.4rem;
}

.topbar p {
  margin: 0;
}

.topbar-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.topbar-contact a:hover {
  color: var(--brand);
}

@media (max-width: 639px) {
  .topbar-note {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }
}

/* ---------- Header: main bar ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--bg);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.phone-link .icon {
  color: var(--brand-deep);
}

.phone-link:hover {
  color: var(--link);
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle-box {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-bar,
.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle-box::before {
  top: 0;
}

.nav-toggle-bar {
  top: 6px;
}

.nav-toggle-box::after {
  bottom: 0;
}

body.nav-open .nav-toggle-bar {
  opacity: 0;
}

body.nav-open .nav-toggle-box::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-box::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* No-JS fallback: plain stacked navigation */
.no-js .nav-toggle,
.no-js .nav-mobile-actions {
  display: none;
}

.no-js .site-nav {
  position: static;
  border-top: 1px solid var(--line);
}

/* Mobile drawer (JS enabled) */
@media (max-width: 1079px) {
  .js .site-nav {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(21rem, 86vw);
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--bg);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }

  .js body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .js body.nav-open::before {
    content: "";
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    background: rgb(10 14 20 / 0.5);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    display: grid;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.7rem 0.25rem;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-link:hover {
    color: var(--link);
  }

  .nav-link[aria-current="true"] {
    color: var(--brand-deep);
  }
}

@media (min-width: 1080px) {
  .nav-toggle,
  .nav-mobile-actions {
    display: none;
  }

  .navbar-actions {
    display: inline-flex;
  }

  .nav-list {
    display: flex;
    gap: clamp(0.25rem, 1.2vw, 0.9rem);
  }

  .nav-link {
    display: inline-block;
    padding: 0.55rem 0.65rem;
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--body-c);
    text-decoration: none;
    border-radius: 6px;
  }

  .nav-link:hover {
    color: var(--ink);
    background: var(--surface);
  }

  .nav-link[aria-current="true"] {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--brand);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.lead {
  font-size: clamp(1.0625rem, 1vw + 0.75rem, 1.1875rem);
  max-width: 56ch;
}

.hero-actions {
  display: grid;
  gap: 0.85rem;
  margin-block: 1.75rem 1.25rem;
}

.hero-emergency {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-emergency a {
  font-weight: 750;
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-emergency a:hover {
  color: var(--link);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hero-chips li {
  padding: 0.4em 0.95em;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid #f0dfad;
  border-radius: 999px;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: var(--brand-soft);
  border-radius: var(--r-md);
}

.hero-media img {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

@media (min-width: 480px) {
  .hero-chips li {
    font-size: 0.875rem;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(2.25rem, 5vw, 3rem);
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.stat strong {
  font-size: clamp(1.7rem, 3vw + 0.8rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.stat span {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
  max-width: 22ch;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .stats-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  padding: clamp(1.5rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.service-card h3 {
  margin-top: 0.9rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.service-info {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 0.45em 0.75em;
  margin: 0.25rem 0 0.75rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}

.service-link .icon {
  transition: transform 160ms ease;
}

.service-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-link:hover .icon {
  transform: translateX(4px);
}

.service-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark-muted);
}

.service-card--featured h3 {
  color: #fff;
}

.service-card--featured .service-icon {
  background: rgb(245 179 1 / 0.16);
  color: var(--brand);
}

.service-link--light {
  color: var(--brand);
}

.service-link--light:hover {
  color: var(--brand-hover);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--featured {
    grid-column: 1 / -1;
  }

  .service-card--featured .service-info {
    display: inline-block;
    width: fit-content;
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-media {
  margin: 0;
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: -1rem auto auto -1rem;
  width: 55%;
  height: 55%;
  border-radius: var(--r-md);
  background: var(--brand-soft);
}

.about-media img {
  position: relative;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 1.9rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 550;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23141B24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 920px) {
  .about-inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------- Why us ---------- */
.reason-list {
  display: grid;
  gap: 1.25rem;
  counter-reset: reason;
}

.reason {
  display: flex;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.reason h3 {
  margin-bottom: 0.35rem;
}

.reason p {
  margin-bottom: 0;
}

.reason-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
  min-width: 2.6rem;
  padding-top: 0.2rem;
}

@media (min-width: 760px) {
  .reason-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.35rem 1.5rem 1.55rem;
}

.project-tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 0.78125rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.35em 0.9em;
}

.project-body h3 {
  margin-bottom: 0.45rem;
}

.project-body p:last-child {
  margin-bottom: 0;
  font-size: 0.9688rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.review-card {
  padding: clamp(1.5rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 0.2rem;
  margin: 0 0 1rem;
  color: var(--brand);
}

.star {
  width: 19px;
  height: 19px;
}

.star--muted {
  color: var(--line-strong);
}

.review-card blockquote {
  margin: 0 0 1.25rem;
}

.review-card blockquote p {
  margin: 0;
  color: var(--ink);
}

.review-attribution {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9063rem;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Service areas ---------- */
.areas-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.areas-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.areas-panel h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.suburb-list li {
  padding: 0.42em 1em;
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.suburb-list--alt li {
  background: var(--brand-soft);
  border-color: #f0dfad;
}

.suburb-list:last-child {
  margin-bottom: 0;
}

@media (min-width: 940px) {
  .areas-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.faq-item summary:hover h3 {
  color: var(--link);
}

.chev {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 200ms ease;
}

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

.faq-answer {
  padding: 0 0.25rem 1.25rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-inner {
  max-width: 760px;
  text-align: center;
}

.cta-band h2 {
  color: var(--brand);
}

.cta-actions {
  display: grid;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.75rem);
  align-items: start;
}

.contact-intro > p {
  max-width: 46ch;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.contact-item .contact-label {
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  font-weight: 650;
}

.hours {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hours dt {
  font-weight: 650;
  color: var(--ink);
}

.hours dd {
  margin: 0;
  color: var(--body-c);
}

/* Form */
.contact-form {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.req {
  color: var(--error);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7em 0.95em;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(11 87 208 / 0.18);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin: 0;
  min-height: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-fineprint {
  margin: 0;
  font-size: 0.8438rem;
  color: var(--muted);
}

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.form-status.is-error {
  display: block;
  background: #fbeae9;
  color: var(--error);
  border: 1px solid #efc4c1;
}

.form-status.is-success {
  display: block;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #bfe3cd;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .contact-inner {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--footer-text);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.75rem, 6vw, 4rem) 2.5rem;
}

.footer-col h3 {
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1.1rem;
}

.footer-about p {
  margin-top: 1.25rem;
  max-width: 34ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand .brand-sub {
  color: var(--on-dark-muted);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact li + li {
  margin-top: 0.6rem;
}

.footer-hours-title {
  margin-top: 1.75rem;
}

.footer-hours {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #26313e;
  padding-block: 1.25rem;
  font-size: 0.8438rem;
  color: #8d99a7;
}

.footer-bottom-inner {
  display: grid;
  gap: 0.35rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  }

  .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
