/* ==========================================================================
   Simons Lawn Care: homepage styles
   Mobile-first. All colors come from the variables below; no raw hex
   anywhere else in this file.
   ========================================================================== */

:root {
  /* Brand palette */
  --accent: #70B62C;
  --accent-hover: #5E9E23;
  --text: #23282D;
  --text-secondary: #555555;
  --text-subtle: #A0A0A0;
  --bg-light: #EBF0E6;
  --bg-card: #F4F7F2;
  --bg-white: #FFFFFF;

  /* Derived from the palette (no new brand colors) */
  --deep: color-mix(in srgb, var(--accent) 22%, var(--text));
  --overlay: color-mix(in srgb, var(--deep) 62%, transparent);
  --border: color-mix(in srgb, var(--text-subtle) 45%, transparent);
  --shadow: 0 8px 24px color-mix(in srgb, var(--text) 10%, transparent);

  /* The one extra color: required-field marker and form errors */
  --danger: #B3261E;

  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.container {
  width: min(100% - 2.5rem, 1140px);
  margin-inline: auto;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--bg-white);
  color: var(--text);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--accent-hover); }

/* ==========================================================================
   SHARED HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--text) 22%, transparent);
}

.site-header :focus-visible,
.hero :focus-visible,
.quote-box :focus-visible { outline-color: var(--bg-white); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0 1rem;
}

.brand { display: block; padding: 0.5rem 0; }
.brand img { height: 46px; width: auto; }

/* Hamburger (only shown when JS is running, see mobile rules) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7.5px; }
.nav-toggle__bars span:nth-child(3) { top: 15px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translate3d(0, 7.5px, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translate3d(0, -7.5px, 0) rotate(-45deg); }

.site-header__menu {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-bottom: 0.75rem;
}

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.65rem 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.social { display: flex; align-items: center; }
.social a {
  /* --near is set by script.js from cursor distance; hover/focus forces full glow */
  --hot: 0;
  --g: max(var(--near, 0), var(--hot));
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: inherit;
  transform: scale(calc(1 + var(--g) * 0.2));
}
.social a:hover,
.social a:focus-visible { --hot: 1; }
.social__icon {
  width: 18px;
  height: 18px;
  opacity: calc(0.82 + var(--g) * 0.18);
  filter:
    drop-shadow(0 0 calc(var(--g) * 4px) color-mix(in srgb, var(--bg-white) calc(var(--g) * 90%), transparent))
    drop-shadow(0 0 calc(var(--g) * 11px) color-mix(in srgb, var(--bg-white) calc(var(--g) * 55%), transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .social a { transition: transform 0.25s var(--ease); }
  .social__icon { transition: filter 0.25s ease-out, opacity 0.25s ease-out; }
}

/* Mobile: collapsible panel (only when JS is running) */
@media (max-width: 859px) {
  .js-ready .nav-toggle { display: flex; }

  .js-ready .site-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem max(1.25rem, calc((100% - 1140px) / 2)) 1.25rem;
    background: var(--accent);
    box-shadow: 0 12px 20px color-mix(in srgb, var(--text) 18%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -8px, 0);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js-ready .site-header__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .js-ready .site-nav ul { flex-direction: column; gap: 0; }
  .js-ready .site-nav a { padding: 0.8rem 0; font-size: 1.05rem; }
  .js-ready .site-nav a::after { bottom: 0.55rem; right: auto; width: 2.5rem; }
  .js-ready .social { margin: 0.5rem 0 0 -9px; }
}

@media (min-width: 860px) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-header__menu {
    flex-basis: auto;
    flex-wrap: nowrap;
    padding-bottom: 0;
    gap: 2.25rem;
  }
  .site-nav ul { gap: 0 2rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(480px, 78svh, 760px);
  overflow: hidden;
  background: var(--deep);
  color: var(--bg-white);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  transform: scale(1.12);          /* overscan so the parallax never shows edges */
  will-change: transform, opacity, filter;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;       /* keeps the mower in frame on narrow screens */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__content {
  position: relative;
  padding: 5rem 0;
  will-change: transform, opacity;
}

.hero h1 {
  color: var(--bg-white);
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--text) 45%, transparent);
}

.hero__tagline {
  margin: 1.1rem 0 2.25rem;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   WHO WE ARE
   ========================================================================== */
.who { padding: 4.5rem 0 5.5rem; }

.who__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.who__text h2 { margin-bottom: 1.25rem; }
.who__text p {
  max-width: 52ch;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.125rem;
}

.checklist {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 0.9rem 1.5rem;
  margin-top: 1.75rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}
.checklist svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}

.who__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.who__figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

@media (min-width: 860px) {
  .who { padding: 6rem 0 7rem; }
  .who__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .who__media { justify-self: end; width: 100%; max-width: 460px; }
}

@media (max-width: 479px) {
  .checklist { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ==========================================================================
   OUR SERVICES
   ========================================================================== */
.services {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  background: var(--bg-light);
  text-align: center;
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(40px, 6.5vw, 96px);
  fill: var(--bg-light);
  pointer-events: none;
}
.wave--top { top: 1px; transform: translateY(-100%); }
.wave--bottom { bottom: 1px; transform: translateY(100%); }

.services h2 { margin-bottom: 4.5rem; }

.services__grid {
  display: grid;
  gap: 4rem 1.5rem;
  text-align: center;
}

.service-card {
  position: relative;
  padding: 3.25rem 1.5rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-icon {
  position: absolute;
  top: -36px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--accent);
}
.service-icon svg { width: 34px; height: 34px; }

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
  font-weight: 600;
}
.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
}

@media (min-width: 600px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .services { padding: 4.5rem 0 6rem; }
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   GET A FREE QUOTE
   ========================================================================== */
.quote { padding: 6rem 0 6rem; }

.quote__grid {
  display: grid;
  gap: 1.75rem 3.5rem;
  grid-template-areas: "heading" "box" "form";
}
.quote__heading { grid-area: heading; }

.quote-box {
  grid-area: box;
  align-self: start;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-white);
}
.quote-box h3 {
  color: var(--bg-white);
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  font-weight: 600;
}
.quote-box p {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.quote-form {
  grid-area: form;
  display: grid;
  gap: 1.1rem 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }

.field label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.req { color: var(--danger); font-weight: 700; }

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--text-subtle);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 1rem;          /* 16px+ stops iOS from zooming on focus */
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:hover,
.field select:hover { border-color: var(--text-secondary); }
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 1px;
  border-color: var(--accent-hover);
  background: var(--bg-white);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.4rem;
}
.form-actions .btn { min-width: 160px; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-note { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.is-success { color: var(--accent-hover); }
.form-status.is-error { color: var(--danger); }

@media (min-width: 640px) {
  .quote-form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .quote { padding: 7rem 0 7rem; }
  .quote__grid {
    grid-template-columns: 5fr 6fr;
    grid-template-areas:
      "box heading"
      "box form";
    align-items: start;
  }
  .quote-box { padding: 2.75rem 2.5rem; margin-top: 0.4rem; }
}

/* ==========================================================================
   SHARED FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

.footer__grid {
  display: grid;
  gap: 2.75rem;
  padding: 4rem 0 3rem;
}

.footer__title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer li { margin-bottom: 0.35rem; }

.site-footer a {
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent-hover); text-decoration-color: currentColor; }
.footer__col nav a, .footer__brand > a { text-decoration: none; }
.footer__col nav a:hover { text-decoration: underline; }

.footer__brand img { width: 170px; margin: 0 auto 1rem; }
.footer__brand p { max-width: 36ch; margin-inline: auto; }

.footer__legal {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.footer__legal p { margin: 0; }

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ==========================================================================
   MOTION
   Hidden "before" states exist only when script.js is running (.js-ready)
   AND the visitor has not asked for reduced motion. If either is false,
   everything is simply visible and static.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* B. Service cards: staggered fade + slide up (delay set per card by JS) */
  .js-ready [data-reveal="up"] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: opacity 0.7s var(--ease) var(--d, 0ms),
                transform 0.7s var(--ease) var(--d, 0ms);
  }
  .js-ready [data-reveal="up"].is-visible { opacity: 1; transform: none; }

  /* D. Who We Are: soft clip-path wipe on the image */
  /* The observed wrapper stays unclipped; the figure inside is what wipes in */
  .js-ready [data-reveal="wipe"] .who__figure {
    clip-path: inset(0 100% 0 0 round var(--radius));
    transition: clip-path 1.2s var(--ease);
  }
  .js-ready [data-reveal="wipe"] img {
    transform: scale(1.1);
    transition: transform 1.6s var(--ease);
  }
  .js-ready [data-reveal="wipe"].is-visible .who__figure { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js-ready [data-reveal="wipe"].is-visible img { transform: none; }

  /* D. Who We Are: checklist items one by one */
  .js-ready .checklist li {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    transition: opacity 0.5s ease calc(var(--i) * 150ms + 250ms),
                transform 0.5s var(--ease) calc(var(--i) * 150ms + 250ms);
  }
  .js-ready .checklist.is-visible li { opacity: 1; transform: none; }

  /* C. Icons: script.js adds .is-playing when the card appears, and again on hover/tap */
  .icon * { transform-box: view-box; }
  .is-playing .icon--scissors .blade--a {
    transform-origin: 24px 24px;
    animation: snip-a 1.5s ease-in-out var(--ad, 0ms) 1 both;
  }
  .is-playing .icon--scissors .blade--b {
    transform-origin: 24px 24px;
    animation: snip-b 1.5s ease-in-out var(--ad, 0ms) 1 both;
  }

  .is-playing .icon--leaf .leaf {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: leaf-drift 1.8s ease-out var(--ad, 0ms) 1 both;
  }

  .is-playing .icon--drop .drop {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: drop-fall 1.1s cubic-bezier(0.3, 0.1, 0.4, 1) var(--ad, 0ms) 1 both;
  }

  .is-playing .icon--calendar .calendar {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: cal-pop 0.7s var(--ease) var(--ad, 0ms) 1 both;
  }

  /* Hold icons in their start state until their animation begins */
  .js-ready .service-card:not(.is-visible) .icon * { opacity: 0; }
}

@keyframes snip-a {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(24deg); }
  40%, 80% { transform: rotate(0deg); }
}
@keyframes snip-b {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-24deg); }
  40%, 80% { transform: rotate(0deg); }
}

@keyframes leaf-drift {
  0%   { opacity: 0; transform: translate3d(-2px, -22px, 0) rotate(-26deg); }
  20%  { opacity: 1; }
  35%  { transform: translate3d(5px, -13px, 0) rotate(18deg); }
  60%  { transform: translate3d(-4px, -6px, 0) rotate(-12deg); }
  82%  { transform: translate3d(2px, -1.5px, 0) rotate(5deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes drop-fall {
  0%   { opacity: 0; transform: translate3d(0, -26px, 0) scale(1, 1); }
  15%  { opacity: 1; }
  45%  { transform: translate3d(0, 2px, 0) scale(1.14, 0.86); }
  65%  { transform: translate3d(0, -6px, 0) scale(0.96, 1.05); }
  85%  { transform: translate3d(0, 0.5px, 0) scale(1.03, 0.97); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1); }
}

@keyframes cal-pop {
  0%   { opacity: 0; transform: scale(0.35); }
  55%  { opacity: 1; transform: scale(1.16); }
  80%  { transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}
.page-hero__inner { position: relative; z-index: 1; }

.page-hero h1 {
  max-width: 14em;
  font-size: clamp(2.5rem, 7.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
/* Each word sits in its own mask so it can rise into view */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.word > span { display: inline-block; }

.page-hero__sub {
  max-width: 34em;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
}

.float-leaf {
  position: absolute;
  width: var(--s);
  height: var(--s);
  color: var(--accent);
  opacity: 0.2;
  transform: rotate(var(--r, 0deg));
  will-change: transform;
  pointer-events: none;
}
@media (max-width: 599px) {
  .float-leaf--far { display: none; }
  .float-leaf { --s: 52px !important; opacity: 0.16; }
}

/* Intro: photo + text */
.about-intro {
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-white) 40%);
}
.about-intro__grid { display: grid; gap: 3rem; align-items: center; }

.about-media { position: relative; padding: 0 18px 18px 0; }
.about-media__tilt {
  position: relative;
  isolation: isolate;
  will-change: transform;
}
.about-media__tilt::before {            /* offset frame behind the photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 2px solid var(--accent);
  transform: translate3d(18px, 18px, 0);
}
.about-media .who__figure img { aspect-ratio: 3 / 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.about-intro__text h2 { margin-bottom: 1.25rem; }
.about-intro__body {
  max-width: 46ch;
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
}

/* Why choose us */
.why { padding: 5rem 0 6rem; background: var(--bg-card); }
.why h2 { margin-bottom: 4.25rem; }
.why__grid { display: grid; gap: 4rem 1.75rem; }

.why-card {
  position: relative;
  padding: 3.75rem 1.75rem 2.1rem;
  background: var(--bg-white);
  border: 3px solid var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-icon {
  position: absolute;
  top: -36px;
  left: 1.4rem;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  background: var(--bg-white);
  border: 3px solid var(--bg-light);
  border-radius: 12px;
  color: var(--accent);
}
.why-icon svg { width: 38px; height: 38px; overflow: visible; }
.why-card h3 { margin-bottom: 0.7rem; font-size: 1.6rem; font-weight: 600; }
.why-card p { margin: 0; color: var(--text-secondary); font-weight: 300; }

@media (min-width: 860px) {
  .page-hero { padding: 6.5rem 0 7rem; }
  .about-intro { padding: 6rem 0 7rem; }
  .about-intro__grid { grid-template-columns: 1.1fr 0.9fr; gap: 5.5rem; }
  .why { padding: 6rem 0 7rem; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Scroll progress bar (script.js adds it when <body data-progress>) */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--bg-white);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- About page motion (same rules as the homepage) ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* Headline: words rise out of their masks, one after another */
  .js-ready [data-reveal="words"] .word > span {
    transform: translate3d(0, 115%, 0);
    transition: transform 0.9s var(--ease) calc(var(--i) * 90ms + 150ms);
  }
  .js-ready [data-reveal="words"].is-visible .word > span { transform: none; }

  /* Photo frame slides out from behind the picture after the wipe */
  .js-ready [data-reveal="wipe"] .about-media__tilt::before {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.5s ease 0.7s, transform 0.8s var(--ease) 0.7s;
  }
  .js-ready [data-reveal="wipe"].is-visible .about-media__tilt::before {
    opacity: 1;
    transform: translate3d(18px, 18px, 0);
  }

  /* Cards: lift on hover once their entrance has finished */
  .js-ready .why-card.is-done,
  .js-ready .service-card.is-done {
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  }
  .js-ready .why-card.is-done:hover,
  .js-ready .why-card.is-done:focus-within,
  .js-ready .service-card.is-done:hover,
  .js-ready .service-card.is-done:focus-within {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 18px 34px color-mix(in srgb, var(--text) 14%, transparent);
  }

  /* Icons: script.js adds .is-playing on entrance and again on hover/tap */
  .icon--clock .clock-hour, .icon--clock .clock-min {
    transform-box: view-box;
    transform-origin: 24px 24px;
  }
  .icon--magnifier .mag, .icon--coin .coin {
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }

  .is-playing .icon--clock .clock-min  { animation: clock-min 1.7s cubic-bezier(0.3, 0.1, 0.2, 1) var(--ad, 0ms) 1 both; }
  .is-playing .icon--clock .clock-hour { animation: clock-hour 1.7s cubic-bezier(0.3, 0.1, 0.2, 1) var(--ad, 0ms) 1 both; }
  .is-playing .icon--magnifier .mag    { animation: mag-search 1.7s ease-in-out var(--ad, 0ms) 1 both; }
  .is-playing .icon--magnifier .glint  { animation: glint 1.7s ease-in-out var(--ad, 0ms) 1 both; }
  .is-playing .icon--coin .coin        { animation: coin-flip 1.6s cubic-bezier(0.3, 0.1, 0.3, 1) var(--ad, 0ms) 1 both; }
}

@keyframes clock-min  { 0% { transform: rotate(-720deg); } 100% { transform: rotate(0deg); } }
@keyframes clock-hour { 0% { transform: rotate(-120deg); } 100% { transform: rotate(0deg); } }

@keyframes mag-search {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  20%  { transform: translate3d(-6px, 3px, 0) rotate(-10deg); }
  45%  { transform: translate3d(6px, -2px, 0) rotate(10deg); }
  70%  { transform: translate3d(-3px, -4px, 0) rotate(-5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes glint { 0%, 55% { opacity: 0.2; } 75% { opacity: 1; } 100% { opacity: 1; } }

@keyframes coin-flip {
  0%   { opacity: 0; transform: scale(0.4, 0.4); }
  22%  { opacity: 1; transform: scale(1.12, 1.12); }
  36%  { transform: scale(1, 1); }
  50%  { transform: scale(0.04, 1); }
  64%  { transform: scale(1, 1); }
  78%  { transform: scale(0.04, 1); }
  92%  { transform: scale(1.06, 1); }
  100% { opacity: 1; transform: scale(1, 1); }
}

/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */
.page-hero--center { text-align: center; }
.page-hero--center h1,
.page-hero--center .page-hero__sub { margin-inline: auto; }

.gallery { padding: 0.5rem 0 5rem; }
.gallery__grid { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.js-ready .gallery-item { cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item::after {                      /* green tint on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--deep) 42%, transparent);
  opacity: 0;
}
.gallery-item::before {                     /* round "+" badge */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-white), var(--bg-white)) center / 22px 3px no-repeat,
    linear-gradient(var(--bg-white), var(--bg-white)) center / 3px 22px no-repeat,
    var(--accent);
  opacity: 0;
  transform: scale(0.6);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after,
.gallery-item:hover::before, .gallery-item:focus-visible::before { opacity: 1; }
.gallery-item:hover::before, .gallery-item:focus-visible::before { transform: scale(1); }

/* Closing call to action */
.gallery-cta { padding: 0 0 6rem; }
.cta-pill {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.25rem 2rem 2.5rem;
  border-radius: 28px;
  background: var(--deep);
  color: var(--bg-white);
  text-align: center;
}
.cta-pill h2 {
  margin-bottom: 1.5rem;
  color: var(--bg-white);
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
}
.cta-pill :focus-visible { outline-color: var(--bg-white); }

/* Photo viewer (built by script.js) */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bg-white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: color-mix(in srgb, var(--text) 90%, transparent); }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--text) 60%, transparent);
  transition: opacity 0.14s ease;
}
.lightbox__img.is-swapping { opacity: 0; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-white) 16%, transparent);
  color: var(--bg-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--accent); }
.lightbox__btn:focus-visible { outline-color: var(--bg-white); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem; top: 50%; margin-top: -26px; }
.lightbox__next  { right: 1rem; top: 50%; margin-top: -26px; }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; margin-top: 0; }
  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-item img { transition: transform 0.7s var(--ease); }
  .gallery-item::after { transition: opacity 0.3s ease; }
  .gallery-item::before { transition: opacity 0.3s ease, transform 0.45s var(--ease); }
  .gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.08); }

  .lightbox[open] { animation: lb-fade 0.25s ease; }
  .lightbox[open] .lightbox__img { animation: lb-pop 0.4s var(--ease); }
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop  { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact {
  position: relative;
  padding: 3.5rem 0 5rem;
  background: var(--bg-card);
}
.contact .wave { fill: var(--bg-card); }

.contact__grid { display: grid; gap: 3.5rem; align-items: start; }
.contact__info h2,
.contact__form h2 { margin-bottom: 2rem; }
.contact__form { border-radius: var(--radius); }

.info-list { display: grid; gap: 2rem; margin-top: 3rem; }
.info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 1.1rem;
  align-items: start;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--accent);
}
.info-icon svg { width: 26px; height: 26px; overflow: visible; }
.info-item h3 { margin: 0.15rem 0 0.2rem; font-size: 1.6rem; font-weight: 400; }
.info-item p { margin: 0; color: var(--text); font-size: 1.1rem; font-weight: 300; }
.info-item a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-item a[href^="tel"] { color: var(--text); text-decoration: none; }
.info-item a:hover, .info-item a:focus-visible { color: var(--text); }

@media (min-width: 900px) {
  .contact { padding: 4.5rem 0 7rem; }
  .contact__grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}

/* Map */
.map {
  position: relative;
  height: clamp(320px, 46vw, 500px);
  background: var(--bg-light);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.map__guard {                       /* added by script.js: click to unlock the map */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map__guard.show { background: color-mix(in srgb, var(--text) 38%, transparent); }
.map.is-active .map__guard { display: none; }
.map__hint {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--bg-white);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}
.map__guard.show .map__hint { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .map__guard, .map__hint { transition: opacity 0.25s ease, background-color 0.25s ease; }

  /* Arriving from a "Get a Free Quote" button: the form gives a soft green pulse */
  .contact__form:target .quote-form { animation: form-pulse 1.6s ease-out 0.3s 1 both; }

  .icon--mail .mail-flap { transform-box: fill-box; transform-origin: 50% 0; }
  .icon--mail .mail, .icon--phone .handset { transform-box: fill-box; transform-origin: 50% 50%; }
  .icon--pin .pin { transform-box: fill-box; transform-origin: 50% 100%; }

  .is-playing .icon--mail .mail       { animation: mail-hop 1.2s var(--ease) var(--ad, 0ms) 1 both; }
  .is-playing .icon--mail .mail-flap  { animation: mail-flap 1.2s ease-in-out var(--ad, 0ms) 1 both; }
  .is-playing .icon--phone .handset   { animation: phone-ring 1.3s ease-in-out var(--ad, 0ms) 1 both; }
  .is-playing .icon--phone .signal-a  { animation: signal-in 1.3s ease var(--ad, 0ms) 1 both; }
  .is-playing .icon--phone .signal-b  { animation: signal-in 1.3s ease calc(var(--ad, 0ms) + 160ms) 1 both; }
  .is-playing .icon--pin .pin         { animation: pin-drop 1.1s cubic-bezier(0.3, 0.1, 0.4, 1) var(--ad, 0ms) 1 both; }
}

@keyframes form-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 26px transparent; }
}
@keyframes mail-hop {
  0%   { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.7); }
  40%  { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.06); }
  70%  { transform: translate3d(0, 1px, 0) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes mail-flap { 0%, 30% { transform: scaleY(1); } 55%, 70% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-16deg); } 20% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); }
  50% { transform: rotate(-8deg); }  60% { transform: rotate(6deg); }
  70% { transform: rotate(0deg); }
}
@keyframes signal-in { 0%, 8% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 1; } }
@keyframes pin-drop {
  0%   { opacity: 0; transform: translate3d(0, -14px, 0) scale(1, 1); }
  18%  { opacity: 1; }
  45%  { transform: translate3d(0, 1px, 0) scale(1.12, 0.88); }
  65%  { transform: translate3d(0, -4px, 0) scale(0.96, 1.05); }
  85%  { transform: translate3d(0, 0.5px, 0) scale(1.03, 0.97); }
  100% { opacity: 1; transform: none; }
}

.page-hero--404 { padding: 7rem 0 8rem; }
.page-hero--404 .page-hero__sub { margin-bottom: 2rem; }

/* Belt and braces: reduced motion removes every transition and animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__bg, .hero__content { will-change: auto; }
}
