/* ==========================================================================
   KnoxvilleTreeCrew.com — style.css
   Premium local-service design system
   Palette: Forest Green #1B5E20 · Charcoal #263238 · Safety Orange #FF6F00
   Type:    Archivo (display) · Instrument Sans (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --green: #1b5e20;
  --green-dark: #0d3512;
  --green-deep: #092a0e;
  --green-tint: #e8f1e9;
  --charcoal: #263238;
  --charcoal-soft: #45535b;
  --orange: #ff6f00;
  --orange-dark: #e05f00;
  --red: #d32f2f;
  --white: #ffffff;
  --mist: #f4f6f3;
  --line: #e3e8e2;
  --gold: #f5b301;

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(38, 50, 56, 0.07);
  --shadow-md: 0 12px 32px rgba(38, 50, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(13, 53, 18, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Wood-grain accent (signature texture, pure CSS) */
  --wood: repeating-linear-gradient(
    100deg,
    #7a4f2a 0 6px,
    #8a5c33 6px 11px,
    #6d452404 11px 12px,
    #86572f 12px 19px,
    #75492603 19px 20px
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: var(--wood);
  background-size: 200% 100%;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head p {
  margin-top: 1rem;
  color: var(--charcoal-soft);
  font-size: 1.1rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--mist { background: var(--mist); }
.section--dark {
  background: var(--green-deep);
  color: #dfe9df;
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .section-head p { color: #b8cbb9; }
.section--dark .eyebrow { color: #8fce93; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg { flex: none; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 111, 0, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 14px 32px rgba(255, 111, 0, 0.42); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(27, 94, 32, 0.3);
}
.btn--green:hover { background: #164e1a; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn--white {
  background: #fff;
  color: var(--green-dark);
  box-shadow: var(--shadow-md);
}

.btn--lg { padding: 1.2rem 2.4rem; font-size: 1.1rem; }

/* Ripple (injected by JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Top emergency bar ---------- */
.topbar {
  background: var(--charcoal);
  color: #cfd8dc;
  font-size: 0.88rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.topbar__pulse i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 111, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

.topbar a {
  font-weight: 700;
  color: #fff;
}
.topbar a:hover { color: var(--orange); }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(38, 50, 56, 0.07);
  transition: box-shadow 0.3s, background 0.3s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  line-height: 1.05;
}

.logo__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--charcoal-soft);
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--charcoal); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: none; align-items: center; gap: 0.9rem; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green);
  font-size: 1.02rem;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
}

.nav__toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

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

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(9, 42, 14, 0.97);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu ul {
  display: grid;
  gap: 1.15rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.mobile-menu .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

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

.hero__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform; /* parallax via JS */
}

.hero::before {
  /* Dark overlay */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(9, 42, 14, 0.92) 0%, rgba(13, 53, 18, 0.78) 45%, rgba(38, 50, 56, 0.45) 100%);
}

/* Signature: tree-ring watermark */
.hero__rings {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 640px;
  height: 640px;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

.hero__inner {
  padding: clamp(6rem, 12vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.hero__badge .stars { color: var(--gold); letter-spacing: 2px; }

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: #9fdca3;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: #d7e5d8;
  margin-bottom: 2.2rem;
  max-width: 560px;
}

.hero__sub b { color: var(--orange); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.hero__note {
  font-size: 0.92rem;
  color: #b9ccba;
  margin-bottom: 2.6rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trust-chip svg { color: #9fdca3; }
.trust-chip .stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--green-dark);
  color: #fff;
  padding: 2.4rem 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat b span { color: var(--orange); }

.stat small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9cb89e;
}

/* ---------- Cards: Why Choose Us ---------- */
.grid-4 {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 94, 32, 0.25);
}

.icon-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 1.3rem;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
}

.icon-card:hover .icon-card__icon {
  background: var(--green);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.icon-card h3 { margin-bottom: 0.55rem; }
.icon-card p { color: var(--charcoal-soft); font-size: 0.98rem; }

/* ---------- Services ---------- */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  height: 220px;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .service-card__img img { transform: scale(1.07); }

.service-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 53, 18, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.service-card__tag--hot { background: rgba(211, 47, 47, 0.9); }

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem;
}

.service-card__body p {
  color: var(--charcoal-soft);
  font-size: 0.97rem;
  margin: 0.6rem 0 1.3rem;
  flex: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Emergency banner ---------- */
.emergency {
  position: relative;
  background: linear-gradient(120deg, #b71c1c 0%, var(--red) 55%, var(--orange-dark) 130%);
  color: #fff;
  overflow: hidden;
}

.emergency::before {
  /* wood texture edge — signature accent */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--wood);
  opacity: 0.9;
}

.emergency .container {
  display: grid;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  align-items: center;
}

.emergency h2 { color: #fff; }

.emergency p {
  color: #ffe3d1;
  max-width: 520px;
  margin-top: 0.8rem;
}

.emergency__phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.emergency__phone:hover { color: #ffd8ba; }

.emergency .btn--white { color: var(--red); }

.emergency__side { text-align: left; }

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 2.4rem;
  counter-reset: step;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--green) 0%, var(--orange) 100%);
  opacity: 0.35;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.3rem;
  align-items: start;
}

.step__ring {
  width: 56px;
  height: 56px;
  flex: none;
  color: var(--green);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover .step__ring {
  transform: scale(1.1) rotate(8deg);
  box-shadow: var(--shadow-md);
}

.step__ring svg { width: 44px; height: 44px; }

.step__ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-dark);
}

.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--charcoal-soft); font-size: 0.98rem; max-width: 460px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(9, 42, 14, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(9, 42, 14, 0.94);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.lightbox__caption {
  color: #cfe3d0;
  margin-top: 1rem;
  font-weight: 600;
}

/* ---------- Reviews carousel ---------- */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.2rem 1.4rem;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 min(360px, 86%);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.review-card .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.review-card__g {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: #4285f4;
  border: 1px solid var(--line);
}

.review-card blockquote {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  flex: 1;
}

.review-card figcaption b { display: block; font-weight: 700; color: var(--charcoal); }
.review-card figcaption span { font-size: 0.85rem; color: var(--charcoal-soft); }

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.carousel__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.carousel__btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.review-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 1.4rem;
  margin-bottom: 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.review-summary b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
}

.review-summary .stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Service areas ---------- */
.areas {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.area-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6f0e6;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}

.area-card small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: #9cb89e;
}

.area-card svg { color: var(--orange); flex: none; }

.area-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq__item.is-open { box-shadow: var(--shadow-md); border-color: rgba(27, 94, 32, 0.3); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--charcoal);
}

.faq__q svg {
  flex: none;
  color: var(--green);
  transition: transform 0.35s var(--ease);
}

.faq__item.is-open .faq__q svg { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq__a p {
  padding: 0 1.4rem 1.35rem;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
}

/* ---------- Estimate form ---------- */
.estimate {
  display: grid;
  gap: 2.5rem;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.form-card__urgency {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff4e8;
  border: 1px solid #ffd9b0;
  color: #a34a00;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.6rem;
}

.form-card__urgency b { font-variant-numeric: tabular-nums; }

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.12);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--red);
  background: #fff5f5;
}

.field__error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.field.is-invalid .field__error { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.is-visible { display: block; }

.form-success .tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
}

.estimate__aside h2 { margin-bottom: 1rem; }

.estimate__points {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
}

.estimate__points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--charcoal-soft);
}

.estimate__points svg { color: var(--green); flex: none; margin-top: 3px; }
.estimate__points b { color: var(--charcoal); }

.map-ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #dfe8df, #cddccd);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.map-ph span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  background: linear-gradient(130deg, var(--green-dark), var(--green) 70%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.final-cta h2 { color: #fff; margin-bottom: 0.9rem; }
.final-cta p { color: #cfe3d0; max-width: 560px; margin: 0 auto 2.2rem; }

.final-cta__rings {
  position: absolute;
  left: -160px;
  top: -160px;
  width: 480px;
  height: 480px;
  opacity: 0.12;
  pointer-events: none;
}

.final-cta .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: #b0bec5;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
  grid-template-columns: 1fr;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer ul { display: grid; gap: 0.6rem; }
.footer a:hover { color: #fff; }

.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .logo small { color: #9fdca3; }

.footer__contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer__contact svg { color: var(--orange); flex: none; margin-top: 4px; }

.footer__social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s, transform 0.25s var(--ease);
}

.footer__social a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.4rem 0 calc(1.4rem + 74px); /* clearance for sticky mobile bar */
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 -8px 30px rgba(38, 50, 56, 0.22);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 1.05rem 0.5rem;
  color: #fff;
}

.mobile-cta a:first-child { background: var(--orange); }
.mobile-cta a:last-child { background: var(--green); }

/* ---------- Floating quote button (desktop) ---------- */
.float-quote {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 1100;
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), background 0.25s;
}

.float-quote:hover { transform: translateY(-3px) scale(1.03); background: var(--green-dark); }

/* ---------- Exit-intent popup ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(9, 42, 14, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.popup.is-open { opacity: 1; visibility: visible; }

.popup__card {
  position: relative;
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s var(--ease);
}

.popup.is-open .popup__card { transform: none; }

.popup__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--wood);
}

.popup__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--charcoal-soft);
}

.popup h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.popup p { color: var(--charcoal-soft); font-size: 0.98rem; margin-bottom: 1.5rem; }
.popup .btn { width: 100%; margin-bottom: 0.7rem; }
.popup small { color: var(--charcoal-soft); font-size: 0.8rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}

.page-hero img.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(9, 42, 14, 0.93), rgba(13, 53, 18, 0.72));
}

.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero .hero__sub { margin-top: 1rem; }
.page-hero .hero__ctas { margin-top: 2rem; margin-bottom: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b9ccba;
  margin-bottom: 1.4rem;
}

.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

/* Benefit checklist (service pages) */
.check-list {
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--charcoal-soft);
}

.check-list svg { color: var(--green); flex: none; margin-top: 4px; }
.check-list b { color: var(--charcoal); }

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

.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* Prose blocks for SEO content */
.prose {
  max-width: 720px;
  color: var(--charcoal-soft);
}

.prose h2, .prose h3 { color: var(--charcoal); margin: 2rem 0 0.8rem; }
.prose p + p { margin-top: 1rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .stats .container { grid-template-columns: repeat(4, 1fr); }
  .emergency .container { grid-template-columns: 1.2fr 1fr; }
  .emergency__side { text-align: right; }
  .estimate { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  .timeline::before {
    left: 5%;
    right: 5%;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--orange));
  }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .step p { font-size: 0.92rem; }
  .areas { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: flex; }
  .nav__toggle { display: none; }
  .mobile-cta { display: none; }
  .float-quote { display: inline-flex; }
  .footer__bottom { padding-bottom: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .mobile-cta, .float-quote, .popup, .lightbox { display: none !important; }
}

/* Form error notice (email delivery failure) */
.form-card__error {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: #FDECEA;
  border: 1px solid #F5C6C0;
  border-radius: 12px;
  color: #B71C1C;
  font-size: 0.95rem;
}
.form-card__error a { color: inherit; }

/* ============ Services dropdown menu ============ */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.dropdown-arrow {
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.nav__dropdown:hover .dropdown-arrow,
.nav__dropdown.is-open .dropdown-arrow,
.nav__dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); }

/* invisible bridge so hover survives the gap */
.nav__dropdown::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 14px;
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 240px;
  padding: 0.55rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(38, 50, 56, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 60;
}
.nav__dropdown:hover .nav__submenu,
.nav__dropdown:focus-within .nav__submenu,
.nav__dropdown.is-open .nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* submenu links: card style, no underline effect */
.nav__submenu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--charcoal-soft);
}
.nav__submenu a::after { display: none; }
.nav__submenu a:hover {
  background: var(--mist);
  color: var(--green);
}
.nav__submenu a[aria-current="page"] {
  background: rgba(27, 94, 32, 0.08);
  color: var(--green);
}

/* toggle highlighted when a service page is open */
.nav__dropdown-toggle.is-active { color: var(--charcoal); }
.nav__dropdown-toggle.is-active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .nav__submenu, .dropdown-arrow { transition: none; }
}

/* ============ Live Google Map embed ============ */
.map-embed {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(38, 50, 56, 0.14);
  border: 1px solid rgba(38, 50, 56, 0.08);
  line-height: 0; /* kill iframe bottom gap */
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
@media (min-width: 900px) {
  .map-embed iframe { height: 400px; }
}
@media screen and (max-width: 767px) {
    .topbar .container {
        display: none !important;
    }
}


