/* ==========================================================================
   Eric Beddow Construction Ltd
   Charcoal and steel with a safety-yellow accent. Zilla Slab + Barlow.
   ========================================================================== */

:root {
  /* Colours */
  --ink: #121417;
  --charcoal: #1b1e22;
  --steel: #2a2e34;
  --steel-light: #3a3f46;
  --paper: #f4f1ea;
  --paper-deep: #e9e3d6;
  --white: #ffffff;
  --text: #1d1f22;
  --text-muted: #565a61;
  --text-on-dark: #f3f1ec;
  --text-on-dark-muted: #c4c2bc;
  --line: #d6cfc0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --input-border: #b9b1a1;
  --accent-glint: #fff1c4;

  --accent: #f2b42c;
  --accent-light: #f9cd62;
  --accent-deep: #cf9312;
  --accent-ink: #7f5400;
  --accent-rgb: 242, 180, 44;
  --dark-rgb: 18, 20, 23;
  --clay: #8a5a3b;
  --error: #b3261e;
  --error-on-dark: #ffb4a8;

  /* Type */
  --font-heading: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.55rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.9vw, 4.5rem);
  --fs-statement: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 75rem;
  --nav-height: 4.5rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(var(--dark-rgb), 0.06), 0 1px 3px rgba(var(--dark-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--dark-rgb), 0.14), 0 10px 20px rgba(var(--dark-rgb), 0.08);
  --shadow-nav: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 15px rgba(var(--accent-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--accent-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text);
}

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

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent-light);
}

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

dl,
dd {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.on-dark {
  color: var(--text-on-dark);
}

.on-dark a:not(.btn) {
  color: var(--accent-light);
}

.on-dark a:not(.btn):hover {
  color: var(--white);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  color: var(--ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-dark {
  color: var(--text-on-dark);
  background: linear-gradient(180deg, var(--steel-light) 0%, var(--steel) 50%, var(--charcoal) 100%);
  box-shadow: 0 4px 15px rgba(var(--dark-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--dark-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Secondary actions are plain underlined links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

.on-dark .text-link--light,
.text-link--light {
  color: var(--text-on-dark);
}

.on-dark .text-link--light:hover,
.text-link--light:hover {
  color: var(--accent-light);
}

/* ---------- Header and nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--ink);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--text-on-dark);
  text-decoration: none;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--accent-light), var(--accent) 55%, var(--accent-deep));
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
}

.logo-text small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: solid opaque panel */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-md) var(--gutter) var(--space-xl);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-nav);
}

.nav-menu.open {
  display: flex;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.nav-links a:hover {
  color: var(--accent-light);
}

.btn-nav {
  align-self: flex-start;
  border-radius: var(--radius-full);
  padding-inline: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  /* Room under the rating panel for the floating chat button on phones */
  padding-bottom: 6.5rem;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg picture,
.cta-bg picture {
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--dark-rgb), 0.7) 0%, rgba(var(--dark-rgb), 0) 22%),
    linear-gradient(0deg, rgba(var(--dark-rgb), 0.92) 0%, rgba(var(--dark-rgb), 0.72) 55%, rgba(var(--dark-rgb), 0.4) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero-content {
  max-width: 44rem;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--accent-light);
}

.hero-line {
  display: block;
}

.highlight {
  color: var(--accent);
}

.hero-text {
  max-width: 36rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

/* Google rating in a glass panel */
.hero-rating {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 0.75rem;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.9rem 1.25rem;
  color: var(--text-on-dark);
  text-decoration: none;
  background: rgba(var(--dark-rgb), 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--transition-base), transform 0.4s var(--ease-spring);
}

.on-dark .hero-rating,
.on-dark .hero-rating:hover {
  color: var(--text-on-dark);
}

.hero-rating:hover {
  background: rgba(var(--dark-rgb), 0.65);
  transform: translateY(-3px);
}

.hero-rating .stars {
  grid-row: span 2;
}

.hero-rating-score {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-rating-note {
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
}

.stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--charcoal);
  border-block: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.75rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Service area strip ---------- */
.area-strip {
  padding-block: 1rem;
  color: var(--ink);
  background: var(--accent);
}

.area-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.area-strip p {
  margin: 0;
  font-weight: 500;
}

.area-strip .area-hours {
  font-weight: 700;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: var(--space-2xl);
}

.services-intro h2 span {
  display: block;
}

.services-intro p {
  max-width: 30rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.services-intro .text-link {
  margin-top: var(--space-sm);
}

.svc-list {
  border-top: 2px solid var(--text);
}

.svc {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.service-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  color: var(--clay);
}

.svc h3 {
  margin-bottom: var(--space-xs);
}

.svc p {
  max-width: 38rem;
  color: var(--text-muted);
}

.svc p.svc-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
}

.svc-note::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
}

/* ---------- Proof band ---------- */
.proof {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.proof::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
  opacity: 0.85;
}

.proof-top {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}

.proof-title {
  font-size: var(--fs-statement);
  line-height: 1;
}

.proof-title > span {
  display: block;
}

.proof-accent {
  color: var(--accent);
}

.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.proof-note {
  max-width: 28rem;
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.facts {
  display: grid;
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--line-dark);
}

.fact {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line-dark);
}

.fact dt {
  margin-bottom: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--white);
}

.fact dd {
  color: var(--text-on-dark-muted);
}

.fact dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -12px;
  font-weight: 600;
}

/* ---------- About ---------- */
.about {
  background: var(--paper-deep);
}

.about-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy h2 {
  margin-bottom: var(--space-lg);
}

.about-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text);
}

.about-copy p:not(.about-lead) {
  color: var(--text-muted);
}

.about-copy .btn {
  margin-top: var(--space-md);
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 55%;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(var(--dark-rgb), 0.92) 0%, rgba(var(--dark-rgb), 0.78) 50%, rgba(var(--dark-rgb), 0.5) 100%);
}

.cta-inner {
  max-width: var(--container);
}

.cta h2 {
  max-width: 40rem;
}

.cta h2 span {
  display: block;
}

.cta-accent {
  color: var(--accent);
}

.cta p {
  max-width: 34rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info > p {
  max-width: 28rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.contact-list {
  margin-top: var(--space-xl);
  border-top: 2px solid var(--text);
}

.contact-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 0.1rem;
}

.contact-item dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-weight: 600;
}

.contact-item dd a[href^="tel:"] {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--text);
  text-decoration-color: var(--accent);
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}

.form-fields {
  display: grid;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field-error,
.form-error {
  margin: 0.4rem 0 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}

.form-error a {
  color: var(--error);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

.form-success:focus {
  outline: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--space-3xl);
  color: var(--text-on-dark-muted);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: var(--space-md);
}

.site-footer h2 {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer li {
  margin-bottom: var(--space-xs);
}

.site-footer a:not(.logo) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -8px;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast), transform 0.3s ease;
}

.site-footer a:not(.logo):hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-block: var(--space-lg);
  font-size: var(--fs-small);
  border-top: 1px solid var(--line-dark);
}

/* ==========================================================================
   Breakpoints (mobile first)
   ========================================================================== */
@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-rating {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .area-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
  }

  .area-hours {
    flex-shrink: 0;
  }

  .svc {
    grid-template-columns: 3rem 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
  }

  .proof-top {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    border-top: 0;
  }

  .fact {
    padding: var(--space-lg) var(--space-lg) 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-dark);
  }

  .fact + .fact {
    padding-left: var(--space-lg);
    border-left: 1px solid var(--line-dark);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

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

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    gap: var(--space-xl);
  }

  .nav-links a {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    font-size: 1rem;
    border-bottom: 0;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    width: 100%;
  }

  .nav-links a:hover {
    color: var(--white);
  }

  .btn-nav {
    align-self: center;
    min-height: 46px;
    padding: 0.65rem 1.4rem;
  }

  .hero {
    padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  }

  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(var(--dark-rgb), 0.6) 0%, rgba(var(--dark-rgb), 0) 20%),
      linear-gradient(90deg, rgba(var(--dark-rgb), 0.94) 0%, rgba(var(--dark-rgb), 0.78) 38%, rgba(var(--dark-rgb), 0.25) 70%, rgba(var(--dark-rgb), 0.1) 100%);
  }

  .hero-rating {
    align-self: flex-end;
    flex-shrink: 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .svc-list {
    border-top-width: 2px;
  }

  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-3xl);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-3xl);
  }
}

/* Heavy below-fold sections render on demand */
.about,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ==========================================================================
   Premium animations (motion allowed only)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-spring) 0.2s both;
  }

  .highlight {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 40%, var(--accent-glint) 50%, var(--accent) 60%, var(--accent) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s both;
  }

  .hero-rating {
    animation: pop-in 0.6s var(--ease-spring) 0.9s both;
  }

  .hero-rating .stars svg {
    animation: star-pop 0.3s var(--ease-spring) both;
  }

  .hero-rating .stars svg:nth-child(1) { animation-delay: 1.2s; }
  .hero-rating .stars svg:nth-child(2) { animation-delay: 1.3s; }
  .hero-rating .stars svg:nth-child(3) { animation-delay: 1.4s; }
  .hero-rating .stars svg:nth-child(4) { animation-delay: 1.5s; }
  .hero-rating .stars svg:nth-child(5) { animation-delay: 1.6s; }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  .btn-pulse:hover,
  .btn-nav:hover {
    animation-play-state: paused;
  }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 8s linear infinite;
  }

  /* Scroll reveals (only when JS is running) */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-spring), transform 1.2s var(--ease-spring);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .js .svc-list .svc:nth-child(2) { transition-delay: 0.08s; }
  .js .svc-list .svc:nth-child(3) { transition-delay: 0.16s; }
  .js .svc-list .svc:nth-child(4) { transition-delay: 0.24s; }

  .js .facts.fade-in .fact {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
  }

  .js .facts.visible .fact {
    opacity: 1;
    transform: none;
  }

  .js .facts .fact:nth-child(2) { transition-delay: 0.15s; }
  .js .facts .fact:nth-child(3) { transition-delay: 0.3s; }

  /* Service icons pop in as each row reveals */
  .js .svc .service-icon {
    transform: scale(0);
  }

  .js .svc.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-spring) 0.3s both;
  }

  /* Services rows: light lift on hover */
  .svc {
    transition: background-color var(--transition-base);
  }

  .svc:hover .service-icon {
    color: var(--accent-deep);
    transition: color var(--transition-base);
  }

  /* Counters */
  .counter.pop {
    animation: pop-in 0.6s var(--ease-spring) both;
  }

  .counter.stat-bounce {
    animation: stat-bounce 0.9s ease;
  }

  /* About image slow zoom on reveal */
  .about-photo img {
    transform: scale(1.15);
  }

  .about-photo.visible img {
    transform: scale(1);
    transition: transform 12s linear;
  }

  /* Cards and panels */
  .form-panel:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
  }

  .about-photo {
    transition: box-shadow 0.5s var(--ease-spring);
  }

  .about-photo:hover {
    box-shadow: var(--shadow-card-hover);
  }

  /* Micro-interactions */
  .contact-item:hover {
    transform: translateX(8px);
  }

  .site-footer a:not(.logo):hover {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .marquee-track {
    animation-duration: 12s;
  }
}

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

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding-inline: var(--gutter);
  }

  .marquee-item:nth-child(n + 9) {
    display: none;
  }

  .marquee-item:nth-child(8)::after {
    display: none;
  }

  .btn,
  .hero-rating,
  .contact-item,
  .site-footer a {
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .btn:hover,
  .hero-rating:hover {
    transform: none;
  }
}

@keyframes hero-zoom-out {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gold-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes stat-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-10px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes icon-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes star-pop {
  0% { transform: scale(0) rotate(-30deg); }
  70% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
