/* ============================================
   PEARCE PROFESSIONAL TREE CARE — main.css
   Brand: rugged, professional, woodsy
   Logo: black-and-white badge style
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #2d4a2d;        /* Deep forest green — main brand */
  --color-primary-dark: #1a2e1a;
  --color-primary-darker: #0f1c0f;
  --color-accent: #c2410c;         /* Rust orange — for CTAs */
  --color-accent-dark: #9a330a;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f1ea;         /* Cream — sections */
  --color-bg-cream: #ede5d3;       /* Warmer cream — header tray */
  --color-bg-dark: #1a1a1a;
  --color-border: #d9d4c8;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --max-width: 1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* --- Typography --- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.5rem; margin-bottom: var(--space-md); letter-spacing: -0.01em; }
h2 { font-size: 1.875rem; margin-bottom: var(--space-sm); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); }
p { margin-bottom: var(--space-sm); }
.muted { color: var(--color-text-muted); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: white; }

/* --- Header (floating white pill, fixed on scroll) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: var(--space-sm) 0;
}
.site-header .container {
  padding: 0 var(--space-md);
}
.header-pill {
  background: white;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  height: 92px;          /* hard-locked so every page renders the pill identically */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 88px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 1rem;
  margin-top: -6px;
}
.site-logo img {
  height: 76px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}
.site-logo:hover img { transform: scale(1.03); }

/* --- Center nav --- */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav > ul {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.site-nav a,
.site-nav .dropdown-toggle {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  color: var(--color-text);
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  transition: color 0.18s;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
/* Active/hover indicator — small dot under the link */
.site-nav a::after,
.site-nav .dropdown-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after,
.site-nav .has-dropdown:hover .dropdown-toggle::before,
.site-nav .has-dropdown.open .dropdown-toggle::before {
  transform: scale(1);
}
.site-nav a:hover,
.site-nav a.active,
.site-nav .has-dropdown:hover .dropdown-toggle,
.site-nav .has-dropdown.open .dropdown-toggle {
  color: var(--color-primary);
}

/* --- Services dropdown --- */
.site-nav .has-dropdown { position: relative; }
.site-nav .dropdown-toggle::after {
  content: "▾";
  font-size: 0.7em;
  transition: transform 0.2s;
  position: static;
  background: none;
  width: auto;
  height: auto;
  transform: none;
  margin-left: 0.15rem;
  color: var(--color-text-muted);
}
.site-nav .has-dropdown:hover .dropdown-toggle::after,
.site-nav .has-dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.site-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: white;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 0.5rem 0;
  z-index: 110;
}
/* Bridge so hover doesn't drop the menu */
.site-nav .has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
}
.site-nav .has-dropdown:hover .dropdown,
.site-nav .has-dropdown:focus-within .dropdown,
.site-nav .has-dropdown.open .dropdown { display: block; }
.site-nav .dropdown li { display: block; }
.site-nav .dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-nav .dropdown a::after { display: none; }
.site-nav .dropdown a:hover,
.site-nav .dropdown a.active {
  background: var(--color-bg-alt);
  border-left-color: var(--color-accent);
  color: var(--color-primary);
}

/* --- Header CTA pills (right side) --- */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-cta .btn-pill-outline,
.header-cta .btn-pill-primary {
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s, color 0.15s;
  line-height: 1;
}
.header-cta .btn-pill-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: white;
}
.header-cta .btn-pill-outline:hover {
  background: var(--color-primary);
  color: white;
}
.header-cta .btn-pill-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.25);
}
.header-cta .btn-pill-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.35);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.75rem;
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-size: 1rem;
}
.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: white; }
.btn-large { font-size: 1.125rem; padding: var(--space-md) var(--space-xl); }

/* --- Trust badges --- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  padding: var(--space-md) 0;
}
.trust-badges .badge {
  background: white;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Forms --- */
.contact-form {
  display: grid;
  gap: var(--space-sm);
  max-width: 540px;
  margin: var(--space-lg) auto 0;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: white;
  color: var(--color-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 74, 45, 0.18);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { width: 100%; }

/* --- Service Area section (background map + foreground card + CTA) --- */
.service-area {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
  color: white;
  background: var(--color-primary-darker);
}
.service-area-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/map/service-area-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.4) brightness(0.55) contrast(1.05);
  z-index: 0;
}
.service-area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 28, 15, 0.85) 0%,
    rgba(15, 28, 15, 0.55) 45%,
    rgba(15, 28, 15, 0.85) 100%
  );
  z-index: 1;
}
.service-area-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.service-area-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  background: white;
  border: 6px solid white;
  transform: translateY(0);
}
.service-area-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
#service-area-map {
  width: 100%;
  height: 480px;
  border-radius: 6px;
  background: #e6e1d5;
}
@media (max-width: 768px) {
  #service-area-map { height: 360px; }
}
.service-area-content h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}
.service-area-content .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.service-area-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}
.service-area-content .cta-row {
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .service-area-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .service-area-content {
    text-align: center;
  }
  .service-area-content .cta-row {
    justify-content: center;
  }
  .service-area-content h2 { font-size: 1.75rem; }
}

/* --- Service cards (2×2 grid on desktop, single column on mobile) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: stretch;
}
.service-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  position: relative;
}
.service-card::after {
  content: "→";
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-border);
  font-size: 1.25rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.service-card:hover::after {
  color: var(--color-accent);
  transform: translateX(3px);
}
.service-card .icon {
  font-size: 3.25rem;
  margin-bottom: var(--space-xs);
  display: block;
  line-height: 1;
}
.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}
.service-card .tagline {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 auto var(--space-sm);
  max-width: 36ch;
  line-height: 1.4;
}
.service-card .service-sublist {
  list-style: none;
  padding: var(--space-sm) 0 0 0;
  margin: var(--space-xs) 0 0 0;
  border-top: 1px solid var(--color-border);
  text-align: left;
  flex-grow: 1;
  display: inline-block;
}
.service-card .service-sublist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.service-card .service-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: var(--space-md); }
  .service-card .icon { font-size: 2.75rem; }
  .service-card h3 { font-size: 1.2rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  background-image: url('../images/hero/tyson-climbing.jpg');
  background-size: 133% auto;
  background-position: right 62%;
  background-repeat: no-repeat;
  background-color: var(--color-primary-darker);
  color: white;
  padding: calc(var(--space-xl) + 130px) 0 calc(var(--space-xl) + 80px);
  min-height: max(600px, min(78.9vw, 1140px));
  overflow: hidden;
}
.hero-cta-stack { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.hero-cta-stack .btn { width: 100%; max-width: 360px; }
/* Hero background video — sits behind the gradient + content */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
/* Right-side dark gradient — keeps Tyson visible left, text readable right */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.hero-content {
  max-width: 520px;
  text-align: left;
}
.hero h1 {
  font-size: 2.875rem;
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}
.hero p.tagline {
  font-size: 1.1875rem;
  margin-bottom: var(--space-lg);
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}
.hero .cta-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}
.hero .btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

/* --- Sticky mobile call button --- */
.mobile-call-fab {
  display: none;
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 200;
  background: var(--color-accent);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-darker);
  color: white;
  padding: var(--space-lg) 0 var(--space-md);
}
.site-footer a {
  color: white;
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-accent); }

/* Brand band */
.footer-brand {
  text-align: center;
  margin-bottom: var(--space-md);
}
.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.footer-logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  opacity: 0.95;
}
.footer-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  opacity: 0.9;
}
.footer-badges li { display: inline-block; }

/* Internal divider */
.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: var(--space-md) 0;
}

/* Info grid */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}
.footer-col h4 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: white;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  font-size: 0.95rem;
  opacity: 0.92;
}
.footer-col ul li a:hover {
  opacity: 1;
  color: var(--color-accent);
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 var(--space-xs);
}
.footer-area-note {
  font-style: italic;
  opacity: 0.75;
  font-size: 0.875rem;
}

/* Contact column */
.footer-col-contact .footer-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}
.footer-col-contact .footer-phone:hover { color: white; }
.footer-contact-extra a {
  font-size: 0.95rem;
  opacity: 0.92;
}
.footer-contact-extra a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-hours {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  opacity: 0.7;
  font-style: italic;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.75;
}
.footer-bottom p { margin: 0; }
.footer-flourish { opacity: 0.85; }

@media (max-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
  .footer-badges {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* --- Generic helpers --- */
.center-text { text-align: center; }
.lead { font-size: 1.125rem; color: var(--color-text-muted); }

/* ============================================
   RESPONSIVE — Mobile first; these are tablet/desktop overrides
   ============================================ */

@media (max-width: 820px) {
  .site-nav > ul { gap: var(--space-sm); }
  .site-nav a, .site-nav .dropdown-toggle { font-size: 0.9rem; }
  .site-logo img { height: 70px; }
  .header-cta .btn-pill-primary { font-size: 0.85rem; padding: 0.6rem 1rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.tagline { font-size: 1.0625rem; }
  section { padding: var(--space-lg) 0; }

  /* On mobile, fade overlays the whole hero so text is centered with the photo behind */
  .hero {
    min-height: 520px;
    padding: calc(var(--space-lg) + 110px) 0 var(--space-lg);
    background-size: cover;
    background-position: 60% center;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
  .hero .container { justify-content: center; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero .cta-row { justify-content: center; }

  .menu-toggle { display: block; order: 3; }

  /* Pill on mobile: tighter, square-ish corners feel friendlier in narrow widths */
  .header-pill {
    border-radius: 16px;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    min-height: 80px;
    gap: var(--space-xs);
    position: relative;
  }
  .site-logo { margin: -6px 0; }
  .site-logo img { height: 72px; }

  .site-nav {
    order: 4;
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: 12px;
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    flex: none;
  }
  .site-nav.open { display: block; }
  .site-nav > ul {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: stretch;
  }
  .site-nav a, .site-nav .dropdown-toggle {
    font-size: 1rem;
    padding: var(--space-sm);
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    border-bottom: 1px solid var(--color-border);
    border-radius: 6px;
  }
  .site-nav a::after,
  .site-nav .dropdown-toggle::before { display: none; }

  /* Mobile dropdown — inline expansion, not floating */
  .site-nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    margin-top: 0;
    padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
    min-width: 0;
    background: var(--color-bg-alt);
  }
  .site-nav .has-dropdown.open .dropdown { display: block; }
  .site-nav .has-dropdown::after { display: none; }
  .site-nav .dropdown a { padding: var(--space-sm) 0; }

  /* Phone CTA shrinks but stays visible */
  .header-cta { order: 2; }
  .header-cta .btn-pill-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .mobile-call-fab { display: block; }
  .contact-form { padding: var(--space-md); }
}

@media (max-width: 480px) {
  /* On the smallest screens, drop phone digits — keep just the icon-call CTA */
  .header-cta .btn-pill-primary span.cta-text { display: none; }
  .header-cta .btn-pill-primary { padding: 0.6rem 0.85rem; }
  .site-logo img { height: 64px; }
}

/* --- Reviews marquee (continuous slow horizontal slide) --- */
.reviews {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.reviews-marquee {
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: review-marquee 80s linear infinite;
  will-change: transform;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}
@keyframes review-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.review-card {
  flex: 0 0 360px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.review-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.review-text {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.review-author {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 480px) {
  .review-card { flex-basis: 290px; }
  .reviews-track { animation-duration: 150s; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; }
}

/* ===========================================================
   Contact page
   =========================================================== */

.contact-hero {
  padding: calc(var(--space-xl) + 3rem) 0 var(--space-md);
}
.contact-hero h1 {
  margin-bottom: var(--space-sm);
}
.contact-hero .lead {
  max-width: 620px;
  margin: 0 auto var(--space-sm);
}
.contact-call-prompt {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}
.contact-call-prompt a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.contact-call-prompt a:hover {
  text-decoration: underline;
}

.contact-form-section {
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0 var(--space-xl);
}

.contact-form-panel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  color: white;
  padding: calc(var(--space-lg) + 0.5rem) var(--space-lg) var(--space-lg);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.contact-form-leaf {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 2.5rem;
  opacity: 0.8;
  transform: rotate(-18deg);
  pointer-events: none;
  user-select: none;
}
.contact-form-panel h2 {
  color: white;
  text-align: center;
  font-size: 1.65rem;
  margin: 0 0 var(--space-md);
  position: relative;
}

.contact-form-dark {
  display: grid;
  gap: var(--space-sm);
  position: relative;
}
.contact-form-dark label {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.contact-form-dark input,
.contact-form-dark select,
.contact-form-dark textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: white;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.contact-form-dark input::placeholder,
.contact-form-dark textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.contact-form-dark input:focus,
.contact-form-dark select:focus,
.contact-form-dark textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.28);
}
.contact-form-dark textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.contact-form-dark select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}
.contact-form-dark select option {
  background: var(--color-primary-dark);
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-consent {
  margin-top: 0.25rem;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
}
.consent-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.btn-full {
  width: 100%;
  display: block;
}
.contact-form-dark .btn-full {
  margin-top: var(--space-xs);
}

@media (max-width: 600px) {
  .contact-form-panel {
    padding: calc(var(--space-md) + 1rem) var(--space-md) var(--space-md);
    border-radius: 10px;
  }
  .contact-form-panel h2 {
    font-size: 1.4rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-leaf {
    font-size: 2rem;
    top: 0.5rem;
    left: 0.75rem;
  }
}

/* ===========================================================
   Friendly call/text modal
   =========================================================== */

.call-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.call-modal.open { display: flex; }
.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  animation: call-modal-fade 0.2s ease-out;
}
.call-modal-card {
  position: relative;
  background: white;
  border-radius: 18px;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: call-modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes call-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes call-modal-pop {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.call-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.call-modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.call-modal-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}
.call-modal-card h2 {
  color: var(--color-primary);
  font-size: 1.625rem;
  margin-bottom: var(--space-sm);
}
.call-modal-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.call-modal-number {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
}
.call-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.call-modal-actions .btn { width: 100%; }
@media (min-width: 480px) {
  .call-modal-actions { flex-direction: row; }
  .call-modal-actions .btn { flex: 1; }
}

/* ============================================
   Tree Removal page (and shared service-page styles)
   ============================================ */

/* Section eyebrow + title (reusable on all service pages) */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
@media (max-width: 720px) {
  .section-title { font-size: 1.75rem; }
}

/* --- Service hero (compact green hero, no photo) --- */
.service-hero {
  background:
    linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 60%, var(--color-primary-dark) 100%);
  color: white;
  padding: calc(var(--space-xl) + 4rem) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.service-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.service-hero .container { position: relative; z-index: 1; max-width: 900px; }
.service-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4d4ad;
  margin-bottom: var(--space-sm);
}
.service-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: white;
  max-width: 760px;
}
.service-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.service-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
@media (max-width: 720px) {
  .service-hero { padding: calc(var(--space-xl) + 1.5rem) 0 var(--space-lg); }
  .service-hero h1 { font-size: 2rem; }
  .service-hero .lead { font-size: 1rem; }
  .service-hero .cta-row .btn { width: 100%; text-align: center; }
}

/* --- Sub-services strip --- */
.sub-services-section { padding: var(--space-xl) 0; }
.sub-services-section .section-eyebrow { text-align: center; }
.sub-services-section .section-title { text-align: center; margin-bottom: var(--space-lg); }
.sub-services-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
.sub-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sub-service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.sub-service-icon { font-size: 2.25rem; margin-bottom: var(--space-xs); }
.sub-service-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
}
@media (max-width: 720px) {
  .sub-services-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .sub-services-strip { grid-template-columns: 1fr; }
}

/* --- Why pillars --- */
.why-pillars-section { padding: var(--space-xl) 0; }
.why-pillars-section .lead { max-width: 720px; margin: 0 auto var(--space-lg); }
.why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.why-pillars.why-pillars-3 {
  grid-template-columns: repeat(3, 1fr);
}
.why-pillar {
  background: white;
  border-radius: 10px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.why-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.pillar-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}
.why-pillar h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}
.why-pillar p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .why-pillars,
  .why-pillars.why-pillars-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-pillars,
  .why-pillars.why-pillars-3 { grid-template-columns: 1fr; }
}

/* --- Service detail blocks (alternating) --- */
.service-details { padding: var(--space-xl) 0; }
.service-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 140px; /* leaves space for fixed header when anchor-jumped */
}
.service-detail:last-child { border-bottom: none; }
.service-detail-flip { grid-template-columns: 1fr 180px; }
.service-detail-flip .service-detail-num { order: 2; text-align: left; }
.service-detail-flip .service-detail-body { order: 1; text-align: right; }
.service-detail-flip .check-list { display: inline-block; text-align: left; }

.service-detail-num {
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.18;
  font-weight: 700;
  text-align: right;
}
.service-detail-body h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.service-detail-body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Inline button-style link */
.btn-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-link:hover {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent-dark);
}

@media (max-width: 720px) {
  .service-detail,
  .service-detail-flip {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .service-detail-num,
  .service-detail-flip .service-detail-num {
    font-size: 4rem;
    text-align: left;
    order: 0;
  }
  .service-detail-flip .service-detail-body {
    order: 0;
    text-align: left;
  }
  .service-detail-flip .check-list { display: block; }
  .service-detail-body h2 { font-size: 1.5rem; }
  .service-detail-body p { font-size: 1rem; }
}

/* --- Process strip --- */
.process-section { padding: var(--space-xl) 0; }
.process-section .lead { max-width: 720px; margin: 0 auto var(--space-lg); }
.process-strip {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
.process-strip::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-xs);
}
.process-num {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  box-shadow: 0 4px 14px rgba(45, 74, 45, 0.3);
}
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.process-step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 720px) {
  .process-strip {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .process-strip::before { display: none; }
}

/* --- Service area mini block --- */
.service-area-mini { padding: var(--space-xl) 0; background: var(--color-bg-alt); }
.service-area-mini .lead { max-width: 720px; margin: 0 auto var(--space-md); }

/* --- Final CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: white;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}
.cta-band .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  font-size: 1.0625rem;
}
.cta-row-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}
.btn-secondary-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-secondary-light:hover {
  background: white;
  color: var(--color-accent);
}
@media (max-width: 720px) {
  .cta-band h2 { font-size: 1.5rem; }
  .cta-row-center .btn { width: 100%; text-align: center; }
}

/* Active state inside dropdown nav (visual marker on Tree Removal item when on this page) */
.site-nav .dropdown a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Sub-services strip: 4-tile variant (Island & Cottage page) --- */
.sub-services-strip-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .sub-services-strip-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .sub-services-strip-4 { grid-template-columns: 1fr; }
}

/* --- Sub-services strip: 3-tile variant (Emergency & Storm Damage page) --- */
.sub-services-strip-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) {
  .sub-services-strip-3 { grid-template-columns: 1fr; }
}

/* --- About page --- */
.about-story-section {
  padding: var(--space-lg) 0;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-story-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.about-story-photo-empty {
  background: var(--color-primary-darker);
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  position: relative;
}
.about-story-photo-empty::after {
  content: "🌲";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  opacity: 0.5;
}
.about-story-text .section-title {
  margin-top: 0.4rem;
}
.about-story-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
@media (max-width: 760px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about-story-photo img,
  .about-story-photo-empty {
    aspect-ratio: 4 / 3;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Home page About preview — photo on the right */
.about-preview-section {
  padding: var(--space-xl) 0;
}
.about-story-flip {
  grid-template-columns: 1.4fr 1fr;
}
.about-story-flip .about-story-text  { grid-column: 1; grid-row: 1; }
.about-story-flip .about-story-photo { grid-column: 2; grid-row: 1; }

@media (max-width: 760px) {
  .about-story-flip {
    grid-template-columns: 1fr;
  }
  .about-story-flip .about-story-text  { grid-column: 1; grid-row: 2; }
  .about-story-flip .about-story-photo { grid-column: 1; grid-row: 1; }
}

/* --- Service detail block with a side visual (e.g. before/after) --- */
.service-detail-with-visual {
  grid-template-columns: 140px 1fr 360px;
  align-items: start;
}
.service-detail-with-visual .service-detail-num {
  font-size: 5rem;
}

@media (max-width: 960px) {
  .service-detail-with-visual {
    grid-template-columns: 180px 1fr;
  }
  .service-detail-with-visual .before-after {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
  }
}
@media (max-width: 720px) {
  .service-detail-with-visual {
    grid-template-columns: 1fr;
  }
  .service-detail-with-visual .service-detail-num { font-size: 4rem; }
}

/* --- Re-useable before/after card --- */
.before-after {
  margin: 0;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}
.before-after-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  cursor: pointer;
  background: #1a1a1a;
}
.before-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 320ms ease;
}
.before-after-img-after { opacity: 0; }

.before-after.is-active .before-after-frame .before-after-img-after { opacity: 1; }
@media (hover: hover) {
  .before-after-frame:hover .before-after-img-after { opacity: 1; }
}

.before-after-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.before-after-label-after { opacity: 0; }
.before-after.is-active .before-after-frame .before-after-label-before { opacity: 0; }
.before-after.is-active .before-after-frame .before-after-label-after { opacity: 1; }
@media (hover: hover) {
  .before-after-frame:hover .before-after-label-before { opacity: 0; }
  .before-after-frame:hover .before-after-label-after { opacity: 1; }
}

.before-after-hint {
  margin: var(--space-xs) 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b6b6b);
  font-style: italic;
}

@media (max-width: 960px) {
  .before-after { max-width: 480px; justify-self: start; }
}
@media (max-width: 720px) {
  .before-after { max-width: 100%; }
}
