/* ============================================================
   Glasgow Fencing & Landscaping — style.css
   Palette: ink #1A2E1A | brand #2C5F2E | accent #C0622A | paper #F5F0E8
   ============================================================ */

/* ---- Self-hosted fonts (latin subset) — no external requests ---- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/lato-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lato-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:         #1A2E1A;
  --brand:       #2C5F2E;
  --brand-mid:   #3d7a40;
  --accent:      #C0622A;
  --accent-dark: #9e4d1f;
  --paper:       #F5F0E8;
  --paper-dark:  #E8E3D9;
  --white:       #ffffff;
  --display:     'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body:        'Lato', Arial, sans-serif;
  --radius:      6px;
  --shadow:      0 4px 24px rgba(26,46,26,0.13);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
p { color: #3a4f3a; }

/* ---- LAYOUT ---- */
.container { width: min(92%, 1180px); margin-inline: auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}
.section-sub { color: #5a6e5a; margin-top: 0.75rem; max-width: 56ch; margin-inline: auto; }
.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: block;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85em 2em;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,98,42,0.3);
  animation: ctaPulse 3s ease infinite;
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(192,98,42,0.45);
  animation: none;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26,46,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: navSlideIn 0.5s ease both;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 5%;
}
.nav-logo img { height: 84px; width: auto; }
.nav-links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.45em 1.2em;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-phone:hover { color: #e0763a; }
.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #122012;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 480px; }
.mobile-menu a {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.9rem 5%;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.mob-cta { background: var(--accent) !important; color: var(--white) !important; text-align: center; }
.mob-phone { color: var(--accent) !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,32,18,0.82) 0%,
    rgba(26,46,26,0.70) 50%,
    rgba(18,32,18,0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(90%, 820px);
  margin-left: 8%;
  padding-block: 3rem;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
/* Hero headline entrance — a self-completing CSS keyframe (not a JS/rAF tween),
   so the words always finish revealing even if the tab loads in the background
   or a script fails. animation-fill-mode:both holds the final visible state. */
.h1-word {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: h1-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.h1-word:nth-child(1) { animation-delay: 0.30s; }
.h1-word:nth-child(2) { animation-delay: 0.43s; }
.h1-word:nth-child(3) { animation-delay: 0.56s; }
.h1-word:nth-child(4) { animation-delay: 0.69s; }
@keyframes h1-rise { to { opacity: 1; transform: none; } }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--ink);
  padding: 2.5rem 5%;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
}
.trust-stat {
  text-align: center;
  padding: 0.5rem 1rem;
}
.trust-stat p { font-size: 0.82rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.trust-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: 0.15rem; }
.trust-num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.trust-sup {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.trust-badge {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.trust-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.12);
  justify-self: center;
}

/* ---- SERVICES ---- */
.services {
  padding: 5rem 0;
  background: var(--paper);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,46,26,0.16); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--ink); }
.card-body p { font-size: 0.9rem; color: #5a6e5a; line-height: 1.6; margin-bottom: 1rem; }
.card-cta {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  animation: cardCtaHover 0s;
}
.card-cta:hover { color: var(--accent-dark); }

/* ---- ABOUT ---- */
.about {
  padding: 5rem 0;
  background: var(--ink);
  color: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.about-img-wrap {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  max-width: 560px;
  margin-inline: auto;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: inherit;
}
.about-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  animation: microBounce 4s ease-in-out infinite;
}
.about-text .section-eyebrow { color: var(--accent); }
.about-text h2 { color: var(--white); margin-bottom: 1.25rem; }
.about-text p { color: rgba(255,255,255,0.78); margin-bottom: 1rem; }
.usp-list { display: flex; flex-direction: column; gap: 0.65rem; margin-block: 1.5rem; }
.usp-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateX(-20px);
}
.usp-list li svg { color: var(--accent); flex-shrink: 0; }

/* ---- VISUAL BREAK ---- */
.visual-break {
  position: relative;
  height: clamp(220px, 35vw, 420px);
  overflow: hidden;
}
.vb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.vb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,32,18,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.vb-quote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--white);
  text-align: center;
  max-width: 56ch;
  letter-spacing: -0.01em;
}
.vb-quote::before { content: '"'; color: var(--accent); margin-right: 0.2em; }
.vb-quote::after { content: '"'; color: var(--accent); margin-left: 0.2em; }

/* ---- PROCESS ---- */
.process {
  padding: 5rem 0;
  background: var(--paper-dark);
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
}
.step-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: stepPop 0s;
}
.process-step h3 { margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; color: #5a6e5a; }
.process-connector { display: none; }

/* ---- REVIEWS ---- */
.reviews {
  padding: 5rem 0;
  background: var(--ink);
}
.reviews .section-header { color: var(--white); }
.reviews .section-header h2 { color: var(--white); }
.reviews .section-header p { color: rgba(255,255,255,0.65); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(30px);
}
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.review-card blockquote {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}
.review-card cite {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ---- QUOTE FORM ---- */
.quote-section {
  padding: 5rem 0;
  background: var(--paper);
}
.quote-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.quote-text .section-eyebrow { color: var(--accent); }
.quote-text h2 { margin-bottom: 1rem; }
.quote-text p { color: #5a6e5a; margin-bottom: 1.5rem; }
.quote-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quote-perks li {
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quote-perks li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.quote-form {
  background: var(--white);
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.form-row-2 .form-group { margin-bottom: 0; }
label { font-family: var(--display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
label span { color: var(--accent); }
input, textarea, select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1.5px solid #d4cdc4;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}
textarea { resize: vertical; }
.form-status {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
  text-align: center;
}
.form-status.ok { color: #2a7a30; }
.form-status.err { color: #c0392b; }

/* ---- FOOTER ---- */
.site-footer { background: #0e1e0e; padding: 3.5rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 36ch; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li, .footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.25rem 5%;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--accent); }

/* ---- FLOATING BAR ---- */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.float-bar.visible { transform: translateY(0); }
.float-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.2s;
}
.float-call { background: var(--ink); }
.float-call:hover { background: #2a4a2a; }
.float-wa { background: #25D366; color: var(--white); }
.float-wa:hover { background: #1db954; }
.float-quote { background: var(--accent); }
.float-quote:hover { background: var(--accent-dark); }

/* ---- REVEAL (CSS transition + IntersectionObserver) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="left"]  { opacity: 0; transform: translateX(-50px); }
[data-reveal="right"] { opacity: 0; transform: translateX(50px); }
[data-reveal].revealed, [data-reveal].revealed ~ * { opacity: 1; transform: none; }
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-stagger] > *.revealed { opacity: 1; transform: none; }

/* ---- USP tick icon ---- */
.tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.tick::before { content: '\2713'; color: var(--accent); font-size: 1rem; font-weight: 700; }

/* ---- @KEYFRAMES (5+ required) ---- */
@keyframes navSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);  }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes ctaPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(192,98,42,0.30); }
  50%     { box-shadow: 0 4px 28px rgba(192,98,42,0.55); }
}

@keyframes microBounce {
  0%,100% { transform: translateY(0);   }
  50%     { transform: translateY(-5px); }
}

@keyframes underlineDraw {
  from { width: 0; }
  to   { width: 60px; }
}

@keyframes stepPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

/* h2 underline accent */
.section-header h2 { position: relative; display: inline-block; padding-bottom: 0.6rem; }
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
}
.section-header h2.drawn::after { animation: underlineDraw 0.6s 0.2s ease forwards; }

/* ---- DESKTOP / TABLET BREAKPOINTS ---- */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0; }
  .process-connector {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    opacity: 0.4;
  }
  .process-step { padding: 2rem 1rem; }
}

@media (min-width: 768px) {
  .trust-inner { gap: 0; }
  .quote-inner { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .about-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-img-wrap { margin-inline: 0; max-width: none; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-links  { display: flex; }
  .nav-phone  { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .float-bar  { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .hero-content { margin-left: 10%; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .h1-word { opacity: 1 !important; transform: none !important; animation: none !important; }
  [data-reveal], [data-reveal="left"], [data-reveal="right"] { opacity: 1 !important; transform: none !important; }
  .service-card, .process-step, .review-card, .usp-list li { opacity: 1 !important; transform: none !important; }
}

/* ============ BEFORE & AFTER / OUR WORK ============ */
.work { background: var(--paper-dark); padding: 5rem 0; }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.ba-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.ba-cat {
  align-self: flex-start;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(192,98,42,0.10);
  padding: .28rem .6rem;
  border-radius: 100px;
  margin-bottom: .8rem;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}
.ba-fig {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-dark);
}
.ba-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ba-tag {
  position: absolute;
  top: .55rem;
  left: .55rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--white);
  padding: .22rem .55rem;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.ba-tag-before { background: rgba(26,46,26,0.78); }
.ba-tag-after  { background: var(--brand); }
.ba-arrow {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.ba-title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: .9rem;
  font-weight: 600;
}
.work-cta { text-align: center; margin-top: 3rem; }

@media (max-width: 820px) {
  .ba-grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 460px) {
  .work { padding: 3.5rem 0; }
  .ba-pair { grid-template-columns: 1fr; gap: .75rem; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .ba-fig img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   Admin live-editor stand-down.
   The admin editor adds .lb-editing to <html>/<body>. These rules keep every
   section visible and still while the client edits, so nothing is hidden by a
   reveal animation or moves under them mid-edit. On the public site the class
   is never present, so none of this applies.
   ============================================================ */
html.lb-editing [data-reveal],
html.lb-editing [data-reveal="left"],
html.lb-editing [data-reveal="right"],
html.lb-editing [data-stagger] > *,
html.lb-editing .h1-word {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
html.lb-editing .hero-bg-img,
html.lb-editing .vb-img { transform: none !important; }
html.lb-editing .scroll-hint { display: none !important; }
html.lb-editing .float-bar { display: none !important; }
html.lb-editing { scroll-behavior: auto !important; }
