/* ================================================
   Spotswood Contracting - Elementor Design Rebuild
   Production site: spotswoodcontracting.com
   ================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 120px; overflow-x: hidden; }

:root {
  --accent: #ccff00;
  --accent-hover: #b9e700;
  --accent-light: #e0ff66;
  --accent-dark: #99cc00;
  --dark: #1a1a1a;
  --body-font: 'Inter', sans-serif;
  --heading-font: 'Poppins', sans-serif;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

/* ================================================
   SVG Icon Sizing (replaces Font Awesome)
   ================================================ */
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
.icon-xs { width: 0.75em; height: 0.75em; fill: currentColor; vertical-align: -0.125em; }
.icon-sm { width: 0.875em; height: 0.875em; fill: currentColor; vertical-align: -0.125em; }
.icon-lg { width: 2em; height: 2em; fill: currentColor; vertical-align: -0.25em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}

.section-subtitle {
  color: #666;
  font-size: 1.05rem;
}

/* ================================================
   Buttons
   ================================================ */
.btn-accent-lime {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-accent-lime:hover {
  background: var(--dark);
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.3);
}

/* ================================================
   Top Utility Bar
   ================================================ */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #ccc;
  font-size: 0.8rem;
}

/* Sub-page hero needs relative positioning for the absolute top-bar */
.page-hero {
  position: relative;
}

.top-bar-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.top-bar-link:hover { color: var(--accent); }

.top-bar-text {
  color: #999;
}

.top-bar-google img {
  border-radius: 3px;
}

.top-bar-review-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.top-bar-review-link:hover { text-decoration: underline; }

.top-bar-social a {
  color: #999;
  transition: color 0.2s;
}

.top-bar-social a:hover { color: var(--accent); }

.top-bar-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.top-bar-cta:hover { background: var(--accent); color: var(--dark); }

.top-bar-cta-alt {
  background: var(--accent);
  color: var(--dark);
}

.top-bar-cta-alt:hover { background: #fff; color: var(--dark); }

/* ================================================
   Header / Main Nav
   ================================================ */
.header-wrapper {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 30px;
}

.header-div {
  background: #fff;
  border-radius: 24px;
  max-width: 1400px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .header-wrapper { padding: 0 10px; top: 10px; }
  .header-div { border-radius: 24px; }
}

.header-div .navbar-brand img {
  max-height: 60px;
}

/* Logo hover unfurl */
.brand-unfurl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  /* was: 'Playfair Display', serif — kept loaded in case we revert */
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
  margin-left: 0;
}

@media (hover: hover) {
  .brand-unfurl:hover .brand-text {
    max-width: 400px;
    opacity: 1;
    margin-left: 10px;
  }
}

.header-div .nav-link {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  padding: 8px 14px;
  transition: color 0.2s;
}

.header-div .nav-link:hover {
  color: var(--accent);
}

.header-div .dropdown-toggle.show {
  color: var(--dark);
}

.header-div .dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  margin-top: 8px;
  background: var(--accent);
}

.header-div .dropdown-item {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  color: var(--dark);
  transition: background 0.2s, color 0.2s;
}

.header-div .dropdown-item:hover {
  background: var(--dark);
  color: var(--accent);
}

/* Desktop hover dropdown (CSS-only) */
@media (min-width: 992px) {
  .header-div .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Header CTA buttons */
.header-cta-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
}

/* ================================================
   Hero Section (Carousel)
   ================================================ */
.hero-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
}

/* Video slide */
.hero-slide-video {
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}

/* Persistent overlay (badges, social — stays across all slides) */
.hero-persistent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  padding-bottom: 50px;
}

.hero-persistent .container,
.hero-persistent a,
.hero-persistent button {
  pointer-events: auto;
}

/* Per-slide text content */
.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.z-1 { z-index: 1; }

.hero-content {
  padding: 100px 0 40px;
  max-width: 550px;
}

.hero-content h1,
.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .hero-content h1, .hero-content h2 { font-size: 1.8rem; }
  .hero-slide { min-height: 70vh; }
  .hero-content { padding: 20px 0 20px; max-width: 100%; }
  .hero-slide-content { align-items: flex-start; padding-top: 100px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-desc { font-size: 0.9rem; }
}

/* Extra-narrow phones (Galaxy S25 Ultra, Pixel, etc.) */
@media (max-width: 412px) {
  .hero-content h1, .hero-content h2 { font-size: 1.55rem; }
  .hero-content { padding: 16px 0 12px; }
  .hero-slide-content { padding-top: 100px; }
  .hero-sub { font-size: 0.88rem; margin-top: 10px; }
  .hero-desc { font-size: 0.85rem; margin-top: 4px; }
  .hero-persistent { padding-bottom: 40px; }
  .hero-google-badge { gap: 6px; }
  .hero-google-left img { width: 60px; height: auto; }
  .hero-google-left .icon-sm { width: 12px; height: 12px; }
  .hero-review-link { font-size: 0.65rem; }
  .hero-review-count { padding-left: 10px; }
  .hero-count-number { font-size: 1.2rem; }
  .hero-review-count small { font-size: 0.65rem; }
  .hero-sba-badge img { height: 45px; }
  .hero-indicators { bottom: 8px; }
}

/* Carousel indicators (dash/pill style) */
.hero-indicators {
  bottom: 20px;
  z-index: 4;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hero-indicators button {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0;
  opacity: 1;
  transition: width 0.3s, background 0.3s;
}

.hero-indicators button.active {
  width: 48px;
  background: var(--accent);
}

/* Hero badges (Google + SBA) — centered */
.hero-badges-center {
  position: absolute;
  bottom: 50px;
  right: 200px;
  z-index: 4;
  pointer-events: auto;
}

.hero-review-count {
  font-family: var(--heading-font);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 16px;
}

.hero-review-count span {
  font-size: 3rem;
  color: var(--accent);
}

.hero-count-number {
  font-size: 3rem;
  color: var(--accent);
}

.hero-review-count small {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  width: 100%;
  text-align: center;
}

.hero-review-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.hero-review-link:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .hero-badges-center {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
  .hero-badges-center > div { justify-content: center; }
}

.hero-google-badge {
  color: #fff;
  font-size: 0.85rem;
}

.hero-sba-badge img {
  max-height: 80px;
  border-radius: 8px;
}

/* Floating social icons (persistent across slides) */
.hero-social-float {
  position: absolute;
  right: 180px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 12px;
  z-index: 4;
  pointer-events: auto;
}

.hero-social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.2s;
  text-decoration: none;
}

.hero-social-float a svg {
  width: 16px;
  height: 16px;
}

.hero-social-float a:hover {
  background: var(--accent);
  color: var(--dark);
}

/* (old slider dots removed — using Bootstrap carousel indicators) */

/* ================================================
   Certifications
   ================================================ */
#certifications {
  background: url('../images/image.png') center / 1300px repeat;
  position: relative;
}

#certifications::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
}

#certifications > .container {
  position: relative;
  z-index: 1;
}

.cert-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cert-card img {
  max-height: 70px;
  max-width: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.cert-card h6,
.cert-card .cert-card-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.cert-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.cert-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(204, 255, 0, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Secondary cert row (smaller logos) */
.cert-secondary {
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.cert-item-sm {
  text-align: center;
  margin: 0;
}

.cert-item-sm img {
  max-height: 45px;
  max-width: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cert-item-sm:hover img {
  opacity: 1;
}

.cert-item-sm figcaption {
  font-size: 0.65rem;
  color: #999;
}

/* ================================================
   Core Services - Lime gradient card layout
   ================================================ */
.services-header {
  padding: 50px 20px 30px;
}

.services-header .section-title {
  color: var(--dark);
}

.services-header .section-subtitle {
  color: rgba(0, 0, 0, 0.7);
}

.services-cards-bg {
  position: relative;
  overflow: hidden;
  background:
    url('../images/core_service_tree_bg.png') center / contain no-repeat,
    linear-gradient(135deg, #ccff00 0%, #a8e600 40%, #8bc34a 100%);
  padding: 50px 0 30px;
  border-radius: 24px;
}

/* (tree watermark SVGs removed — using background image instead) */

/* Card row - horizontal flex with stagger */
.services-card-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Individual card */
.svc-card {
  position: relative;
  display: block;
  width: 280px;
  height: 440px;
  border-radius: 20px 0 20px 0;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.svc-card:hover {
  transform: translateY(-6px);
}

/* Staggered vertical offsets */
.svc-card-offset-1 { margin-top: 30px; }
.svc-card-offset-2 { margin-top: 0; }
.svc-card-offset-3 { margin-top: 30px; }
.svc-card-offset-4 { margin-top: 0; }

.svc-card-img {
  width: 100%;
  height: 100%;
}

.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-img img {
  transform: scale(1.05);
}

/* Overlay with title */
.svc-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  color: #fff;
  transition: background 0.3s ease;
}

.svc-card:hover .svc-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.15) 100%);
}

.svc-card-overlay h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 220px;
}

/* Hover description text */
.svc-hover-text {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 8px 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.svc-card:hover .svc-hover-text {
  max-height: 100px;
  opacity: 1;
  margin: 8px 0 0;
}

/* Tree icon circle */
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  margin-bottom: 6px;
}

.svc-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Subtitle on last card */
.svc-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Explore link */
.explore-services-link {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.explore-services-link:hover {
  color: #333;
}

/* Responsive: stack on mobile */
@media (max-width: 991px) {
  .services-card-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .svc-card {
    width: calc(50% - 12px);
    height: 390px;
  }

  .svc-card-offset-1,
  .svc-card-offset-2,
  .svc-card-offset-3,
  .svc-card-offset-4 {
    margin-top: 0;
  }
}

@media (max-width: 575px) {
  .svc-card {
    width: 100%;
    height: 340px;
  }
}

/* ================================================
   Why Choose Spotswood
   ================================================ */
#whyChoose {
  background: #f9f9f9;
  padding: 110px 0;
}

.why-left .section-title {
  font-size: 1.9rem;
}

.why-row {
  align-items: center;
}

.why-left {
  height: 100%;
}

.why-photo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.why-item {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.why-accent-bar {
  display: none;
}

.why-item h5,
.why-item .why-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--dark);
}

.why-item p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ================================================
   About Section
   ================================================ */
#aboutSection {
  background: #fff;
  padding: 110px 0;
}

#aboutSection img {
  border-radius: 16px;
}

/* ================================================
   Testimonials — Review Card Carousel
   ================================================ */
#testimonials {
  background: #fafafa;
  overflow: hidden;
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.reviews-carousel-wrapper .container {
  overflow: hidden;
}

/* Fade edges */
.reviews-carousel-wrapper .container::before,
.reviews-carousel-wrapper .container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.reviews-carousel-wrapper .container::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.reviews-carousel-wrapper .container::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

/* Track — infinite scroll animation */
.reviews-track {
  display: flex;
  gap: 24px;
  padding: 10px 0 20px;
  width: max-content;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviewsScrollDynamic {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-distance)); }
}

@media (max-width: 768px) {
  .reviews-track {
    gap: 16px;
  }
  .review-card {
    flex: 0 0 280px;
  }
}

/* Individual card */
.review-card {
  flex: 0 0 360px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.review-google-icon {
  border-radius: 2px;
}

.review-stars svg {
  margin-right: 1px;
}

.review-text {
  font-size: 0.92rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  display: flex;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.review-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.review-author small {
  display: block;
  font-size: 0.75rem;
  color: #999;
}

@media (max-width: 991px) {
  .review-card { flex: 0 0 300px; }
}

@media (max-width: 575px) {
  .review-card { flex: 0 0 260px; padding: 20px 18px; }
}

/* ================================================
   Service Areas
   ================================================ */
#serviceAreas {
  background: #fff;
}

.service-areas-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.service-areas-map {
  width: 100%;
  height: auto;
  display: block;
  min-height: 280px;
  object-fit: cover;
}

.service-areas-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px 20px;
}

.service-areas-text h2 {
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-areas-text p {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0;
}

@media (max-width: 767px) {
  .service-areas-text h2 { font-size: 1.6rem; }
}

/* ================================================
   FAQ
   ================================================ */
#faqSection {
  background: #fafafa;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
}

.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  padding: 18px 0;
  background: transparent;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background-size: 14px;
  background-position: center;
}

.accordion-body {
  padding: 0 0 18px;
  color: #666;
}

/* ================================================
   CTA Section
   ================================================ */
#ctaSection {
  background: linear-gradient(135deg, #ccff00 0%, #a8e600 40%, #8bc34a 100%);
  padding: 4rem 0 6rem 0 !important;
}

.cta-heading {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.65);
}

.btn-cta-dark {
  background: var(--dark);
  color: var(--accent);
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-cta-dark:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-cta-outline {
  background: transparent;
  color: var(--dark);
  font-weight: 700;
  border: 2px solid var(--dark);
  border-radius: 25px;
  padding: 12px 30px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-cta-outline:hover {
  background: var(--dark);
  color: var(--accent);
  transform: scale(1.05);
}

/* ================================================
   Footer
   ================================================ */
#mainFooter {
  background: url('../images/image.png') center / 2000px repeat;
  position: relative;
  color: #ccc;
}

#mainFooter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(36, 44, 10, 0.94), rgba(26, 26, 26, 0.96));
}

#mainFooter > .container {
  position: relative;
  z-index: 1;
}

.footer-logo {
  max-height: 45px;
  width: auto;
}

.footer-brand-name {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.6;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-contact li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #999;
}

.footer-contact a {
  color: #999;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  color: var(--accent);
  margin-right: 8px;
  transition: background 0.2s;
  text-decoration: none;
}

.footer-social a svg {
  width: 14px;
  height: 14px;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
}

.footer-certs img {
  max-height: 40px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-certs img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #222;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ================================================
   Page Hero (sub-pages)
   ================================================ */
.page-hero {
  background: var(--dark);
  min-height: 45vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 160px 0 60px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero h1 {
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2.8rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* ================================================
   Blog Category Filter Bar
   ================================================ */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  background: #f0f0f0;
  padding: 6px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-filter-pill:hover {
  background: var(--accent);
  color: var(--dark);
}

.blog-filter-pill.active {
  background: var(--accent);
  color: var(--dark);
}

/* ================================================
   Blog Featured Grid
   ================================================ */
.blog-featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured-card:hover .blog-featured-title {
  color: var(--accent-dark);
}

/* Large card (left) */
.blog-featured-lg {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-featured-lg .blog-featured-img-lg {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.blog-featured-lg .blog-featured-body {
  padding: 20px 24px 24px;
}

.blog-featured-lg .blog-featured-title {
  font-size: 1.3rem;
}

/* Small cards (right, stacked) */
.blog-featured-sm {
  height: auto;
}

.blog-featured-sm > .d-flex {
  min-height: 0;
}

.blog-sm-img-col {
  flex: 0 0 42%;
  max-width: 42%;
}

.blog-sm-text-col {
  flex: 1 1 0%;
  min-width: 0;
}

.blog-featured-img-sm {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 16px 0 0 16px;
}

.blog-featured-sm .blog-featured-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.blog-featured-sm .blog-featured-title {
  font-size: 1.05rem;
}

.blog-featured-sm .blog-listing-excerpt {
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stretched link styling for cards */
.blog-card-link {
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover {
  color: var(--accent-dark);
}

.blog-featured-title {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.2s;
}

/* Category pills */
.blog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.blog-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s;
}

.blog-pill:hover {
  background: var(--accent-hover);
  color: var(--dark);
}

@media (max-width: 991px) {
  .blog-featured-lg .blog-featured-img-lg { height: 220px; }
  .blog-featured-img-sm { min-height: 140px; }
  .blog-sm-img-col { flex: 0 0 100%; max-width: 100%; }
  .blog-sm-text-col { flex: 0 0 100%; max-width: 100%; }
  .blog-featured-sm > .d-flex { flex-wrap: wrap; }
  .blog-featured-img-sm { border-radius: 16px 16px 0 0; }
}

/* ================================================
   Blog Featured Row (Option C: first wider + hover expand)
   ================================================ */
.blog-featured-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.blog-feat-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, flex 0.3s ease;
}

.blog-feat-primary {
  flex: 2 1 0%;
}

.blog-feat-secondary {
  flex: 1 1 0%;
}

.blog-feat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.blog-feat-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.blog-feat-primary .blog-feat-img {
  height: 280px;
}

.blog-feat-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-feat-body .blog-listing-excerpt {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-feat-secondary .blog-listing-excerpt {
  -webkit-line-clamp: 2;
}

.blog-feat-secondary .blog-featured-title {
  font-size: 1.05rem;
}

.blog-feat-primary .blog-featured-title {
  font-size: 1.3rem;
}

@media (max-width: 991px) {
  .blog-featured-row {
    flex-direction: column;
  }
  .blog-feat-primary,
  .blog-feat-secondary {
    flex: 1 1 100%;
  }
  .blog-feat-img,
  .blog-feat-primary .blog-feat-img {
    height: 200px;
  }
}

/* ================================================
   Blog Zigzag Posts
   ================================================ */
.blog-zigzag-item {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}

.blog-zigzag-item:last-child {
  border-bottom: none;
}

.blog-zigzag-reverse {
  flex-direction: row-reverse;
}

.blog-zigzag-img-col {
  flex: 0 0 45%;
  max-width: 45%;
}

.blog-zigzag-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.blog-zigzag-text-col {
  flex: 1;
}

.blog-zigzag-text-col .blog-listing-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.blog-zigzag-text-col .blog-listing-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load More Button */
.blog-load-more {
  display: block;
  margin: 40px auto 0;
  padding: 14px 48px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.blog-load-more:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .blog-zigzag-item,
  .blog-zigzag-reverse {
    flex-direction: column;
  }
  .blog-zigzag-img-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .blog-zigzag-img {
    height: 200px;
  }
}

/* ================================================
   Blog Listing
   ================================================ */
.blog-hero {
  background:
    url('../images/image.png') center / 2000px repeat;
  position: relative;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(204, 255, 0, 0.9), rgba(168, 230, 0, 0.82), rgba(139, 195, 74, 0.88));
}

.blog-hero > .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: var(--dark);
}

.blog-hero p {
  color: rgba(0, 0, 0, 0.6);
}

/* FAQ page — dark hero with leaf pattern */
.faq-hero {
  background: url('../images/image.png') center / 2000px repeat;
  position: relative;
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.92), rgba(40, 50, 10, 0.90), rgba(26, 26, 26, 0.92));
}

.faq-hero > .container {
  position: relative;
  z-index: 1;
}

.blog-listing-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 28px 0;
  border-bottom: 3px solid var(--accent);
  transition: background 0.2s;
  cursor: pointer;
}

.blog-listing-item:first-child {
  border-top: none;
}

.blog-listing-item:hover {
  background: #f9f9f9;
}

.blog-listing-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-listing-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-listing-title a {
  color: inherit;
  text-decoration: none;
}

.blog-listing-item:hover .blog-listing-title {
  color: var(--accent-dark);
}

.blog-listing-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.blog-listing-excerpt {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ================================================
   Back to Top
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.2s;
}

.back-to-top:hover {
  transform: scale(1.1);
  color: var(--dark);
}

@media (max-width: 991px) {
  .back-to-top {
    bottom: 60px;
  }
}

/* ================================================
   Responsive
   ================================================ */

/* Mobile nav extras (phone, chipdrop, review) */
.mobile-nav-extras {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-extras-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 12px;
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.mobile-nav-btn:active { transform: scale(0.97); }

.mobile-nav-call {
  background: var(--accent);
  color: var(--dark);
}

.mobile-nav-call:hover { color: var(--dark); opacity: 0.9; }

.mobile-nav-chip {
  background: #2e7d32;
  color: #fff;
}

.mobile-nav-chip:hover { color: #fff; opacity: 0.9; }

.mobile-nav-review {
  background: #1a73e8;
  color: #fff;
}

.mobile-nav-review:hover { color: #fff; opacity: 0.9; }

@media (max-width: 767px) {
  .section-title { font-size: 1.6rem; }
  .header-ctas { flex-direction: column; width: 100%; margin-top: 12px; }
  .header-cta-btn { text-align: center; }

  /* Sub-page hero mobile */
  .page-hero {
    padding: 130px 0 40px;
    min-height: 35vh;
  }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Why Spotswood trust image */
  .why-trust-img {
    max-height: 300px;
    margin-bottom: 24px;
  }

  /* What Sets Us Apart cards */
  .apart-card {
    height: auto;
    min-height: 140px;
  }

  /* Committed section */
  .committed-list li {
    font-size: 0.95rem;
  }

  /* Contact form mobile */
  .contact-form-section-inner {
    padding: 30px 16px;
    border-radius: 16px;
  }
  .contact-form-heading { font-size: 1.5rem; }
  .contact-form-card { padding: 24px 16px; }
  .contact-step-num { width: 30px; height: 30px; font-size: 0.85rem; }

}

/* ================================================
   Blog Single Post — Hero
   ================================================ */
.blog-post-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}

.blog-post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/image.png') center / 2000px repeat;
  opacity: 0.06;
  pointer-events: none;
}

.blog-post-hero .container {
  position: relative;
  z-index: 2;
}

.blog-post-hero h1 {
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.blog-post-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .blog-post-hero {
    min-height: 220px;
    padding-bottom: 32px;
  }
  .blog-post-hero h1 {
    font-size: 1.6rem;
  }
}

/* ================================================
   Blog Single Post — Article
   ================================================ */
.blog-article-hero {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 24px;
  object-fit: cover;
}

.blog-article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-article-body h2,
.blog-article-body h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--dark);
  margin-top: 28px;
  margin-bottom: 12px;
}

.blog-article-body p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.blog-article-meta {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-article h2 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-article p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-article-cta {
  background: #f5f5f5;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 24px;
  margin-top: 40px;
}

.blog-article-cta h3 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.blog-article-cta p {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 16px;
}

.blog-back-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: var(--dark);
}

/* ================================================
   Blog Sidebar
   ================================================ */
.blog-sidebar {
  position: sticky;
  top: 180px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.sidebar-heading {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-posts li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-posts li:last-child {
  border-bottom: none;
}

.sidebar-posts a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.sidebar-posts a:hover {
  color: var(--accent-dark);
}

.sidebar-posts small {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
}

.sidebar-cta {
  background: var(--dark);
  color: #fff;
}

.sidebar-cta h4 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 0.88rem;
  color: #bbb;
  margin-bottom: 16px;
}


/* ================================================
   Tree Service Page — Service Cards Grid
   ================================================ */
.tree-svc-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid var(--accent);
}

.tree-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tree-svc-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.tree-svc-card h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.tree-svc-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Tree Service Page — Difference Checklist */
.tree-diff-list li {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.tree-diff-list li:last-child {
  border-bottom: none;
}

/* ================================================
   Tree Service - Spotswood Difference (lime gradient)
   ================================================ */
.spotswood-diff-section {
  background:
    url('../images/core_service_tree_bg.png') center calc(100% + 80px) / 120% auto no-repeat,
    linear-gradient(135deg, #ccff00 0%, #a8e600 40%, #8bc34a 100%);
  padding: 80px 0;
}

.spotswood-diff-heading {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}

.spotswood-diff-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.2s;
}

.spotswood-diff-item:hover {
  background: rgba(255,255,255,0.8);
}

.spotswood-diff-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--dark);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .spotswood-diff-section {
    padding: 50px 0;
  }

  .spotswood-diff-heading {
    font-size: 1.6rem;
  }

  .spotswood-diff-item {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
}



/* ================================================
   Gallery Page
   ================================================ */
.gallery-filter-btn {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  background: #f0f0f0;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery-filter-btn:hover {
  background: var(--accent);
  color: var(--dark);
}

.gallery-filter-btn.active {
  background: var(--accent);
  color: var(--dark);
}

.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item {
  transition: opacity 0.3s;
}

.lightbox-trigger {
  display: block;
  cursor: pointer;
}

/* ================================================
   Lightbox Overlay
   ================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tree Service page — taller hero to match homepage */
.page-hero-tall {
  min-height: 75vh;
}

@media (max-width: 767px) {
  .page-hero-tall {
    min-height: 50vh;
  }
}

/* Page hero with video background */
.page-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero .hero-overlay {
  z-index: 1;
}

.page-hero .top-bar {
  z-index: 5;
}

/* ================================================
   Hero Stats Bar (sub-page heroes)
   ================================================ */
.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: none;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number,
.hero-stat-static {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline;
}

.hero-stat-suffix {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-badge img {
  border-radius: 6px;
}

@media (max-width: 767px) {
  .hero-stats-bar {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .hero-stat-number,
  .hero-stat-static,
  .hero-stat-suffix {
    font-size: 2rem;
  }

  .hero-stat-badge {
    margin-left: 0;
  }
}

@media (max-width: 412px) {
  .hero-stats-bar {
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .hero-stat-number,
  .hero-stat-static,
  .hero-stat-suffix {
    font-size: 1.6rem;
  }

  .hero-stat small {
    font-size: 0.7rem;
  }
}

/* Tree Service — Intro section background */
#treeIntro {
  background: url('../images/image.png') center / 1300px repeat;
  position: relative;
}

#treeIntro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
}

#treeIntro > .container {
  position: relative;
  z-index: 1;
}

/* Landscape Construction — Intro section background */
#landscapeIntro {
  background: url('../images/image.png') center / 1300px repeat;
  position: relative;
}

#landscapeIntro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
}

#landscapeIntro > .container {
  position: relative;
  z-index: 1;
}

/* Commercial — Intro section background */
#commercialIntro {
  background: url('../images/image.png') center / 1300px repeat;
  position: relative;
}

#commercialIntro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
}

#commercialIntro > .container {
  position: relative;
  z-index: 1;
}

/* Emergency — Intro section background */
#emergencyIntro {
  background: url('../images/image.png') center / 1300px repeat;
  position: relative;
}

#emergencyIntro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
}

#emergencyIntro > .container {
  position: relative;
  z-index: 1;
}

/* ================================================
   Privacy Policy — Sidebar + Content Blocks
   ================================================ */
.privacy-sidebar {
  position: sticky;
  top: 120px;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.privacy-sidebar-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 1rem;
}

.privacy-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-sidebar-nav li {
  margin-bottom: .6rem;
}

.privacy-sidebar-nav a {
  color: #333;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.privacy-sidebar-nav a:hover {
  color: var(--accent-dark, #6b8e00);
}

.privacy-block {
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

.privacy-block:last-child {
  border-bottom: none;
}

.privacy-block h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.privacy-block ul {
  padding-left: 1.25rem;
}

.privacy-block li {
  margin-bottom: .5rem;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .privacy-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

/* ================================================
   Gallery Carousel (scrolling, like reviews)
   ================================================ */
.gallery-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.gallery-carousel-wrapper .container {
  overflow: hidden;
}

/* Fade edges */
.gallery-carousel-wrapper .container::before,
.gallery-carousel-wrapper .container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

.gallery-carousel-wrapper .container::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.gallery-carousel-wrapper .container::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.gallery-track {
  display: flex;
  gap: 20px;
  padding: 10px 0 20px;
  width: max-content;
  animation: galleryScroll 120s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-card {
  flex: 0 0 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575px) {
  .gallery-card {
    flex: 0 0 280px;
  }

  .gallery-card img {
    height: 200px;
  }
}

/* Tree Solutions — Compact Strip Cards */
.tree-strip-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tree-strip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.tree-strip-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tree-strip-text h3 {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.tree-strip-text p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ================================================
   Why Spotswood — Trust Section Image
   ================================================ */
.why-trust-img {
  border-radius: 24px 0 24px 0;
}

/* ================================================
   Why Spotswood — What Sets Us Apart Cards
   ================================================ */
.apart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apart-card {
  background: linear-gradient(145deg, #ccff00 0%, #8bc34a 60%, #5a9e1e 100%);
  border-radius: 16px;
  padding: 28px 24px;
  color: var(--dark);
  height: 180px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.apart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.apart-card-offset-top {
  margin-top: 30px;
}

.apart-card-logo {
  max-height: 60px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 8px;
}

.apart-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.apart-card h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.apart-card p {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
  font-style: italic;
}

@media (max-width: 991px) {
  .apart-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apart-card-offset-top {
    margin-top: 0;
  }
}

@media (max-width: 575px) {
  .apart-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   Why Spotswood — Committed Section
   ================================================ */
.badge-pill-lime {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.committed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.committed-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.committed-list li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 0.7rem;
  color: #fff;
  background: var(--accent);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* ================================================
   Contact Form Section
   ================================================ */
.contact-form-section-inner {
  background:
    url('../images/image.png') center / 2000px repeat;
  position: relative;
  padding: 60px 50px;
  border-radius: 24px;
  overflow: hidden;
}

.contact-form-section-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(204, 255, 0, 0.9), rgba(168, 230, 0, 0.82), rgba(139, 195, 74, 0.88));
}

.contact-form-section-inner > .row {
  position: relative;
  z-index: 1;
}

.contact-form-heading {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-form-sub {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}

.contact-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 800;
  border: 3px solid var(--dark);
}

.contact-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-step p {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
  line-height: 1.4;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  position: relative;
}

.contact-label {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.contact-input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25);
}

@media (max-width: 991px) {
  .contact-form-section-inner {
    padding: 40px 24px;
  }

  .contact-form-heading {
    font-size: 1.8rem;
  }

  .contact-form-card {
    padding: 28px 20px;
  }
}

/* ================================================
   Financing Page
   ================================================ */
.finance-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.finance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.finance-card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.finance-card h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.finance-card p {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Finance Steps */
.finance-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finance-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.finance-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 800;
  border: 3px solid var(--dark);
}

.finance-step strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.finance-step p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Finance CTA Card */
.finance-cta-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 24px;
  padding: 60px 40px;
}

.finance-cta-tall {
  padding: 130px 40px;
}

@media (max-width: 767px) {
  .finance-cta-card {
    padding: 40px 24px;
  }

  .finance-cta-tall {
    padding: 60px 24px;
  }

  .finance-card {
    padding: 28px 20px;
  }
}

/* ================================================
   404 Error Page
   ================================================ */
.error-hero {
  position: relative;
  background:
    url('../images/image.png') center / 2000px repeat;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 180px 0 0;
  overflow: hidden;
}

.error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.92) 0%, rgba(30, 30, 30, 0.88) 50%, rgba(60, 80, 20, 0.85) 100%);
  z-index: 1;
}

/* Old centered watermark — kept as subtle bg layer */
.error-hero-watermark {
  display: none;
}

/* Giant 404 anchored to bottom, peeking halfway up */
.error-hero-bignum {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(45%);
  font-family: var(--heading-font);
  font-size: clamp(20rem, 42vw, 45rem);
  font-weight: 900;
  color: rgba(204, 255, 0, 0.08);
  line-height: 1;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.error-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-hero-title .text-accent {
  color: var(--accent);
}

.error-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .error-hero {
    min-height: 65vh;
    padding: 140px 0 0;
  }

  .error-hero-bignum {
    transform: translateX(-50%) translateY(50%);
  }
}

/* 404 page nav pills */
.error-pill {
  border: 1px solid #ccc;
  color: #555;
  font-weight: 600;
  transition: all 0.2s;
}

.error-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}


/* ================================================
   Mailing List — Footer Signup
   ================================================ */
.footer-subscribe {
  margin-top: 20px;
}

.footer-subscribe-heading {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
}

.footer-subscribe-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--body-font);
  transition: border-color 0.2s, background 0.2s;
}

.footer-subscribe-input::placeholder {
  color: #888;
}

.footer-subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.footer-subscribe-btn {
  background: var(--accent);
  color: var(--dark);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}

.footer-subscribe-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.footer-subscribe-msg {
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 18px;
}

.footer-subscribe-msg.success { color: var(--accent); }
.footer-subscribe-msg.error { color: #ff6b6b; }

@media (max-width: 480px) {
  .footer-subscribe-form {
    flex-direction: column;
  }
}

/* ================================================
   Mailing List — Blog CTA Banner
   ================================================ */
.blog-subscribe-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3a0f 50%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.blog-subscribe-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/image.png') center / 2000px repeat;
  opacity: 0.06;
}

.blog-subscribe-cta > * {
  position: relative;
  z-index: 1;
}

.blog-subscribe-cta h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.blog-subscribe-cta p {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.blog-subscribe-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--body-font);
  transition: border-color 0.2s;
}

.blog-subscribe-input::placeholder { color: #888; }

.blog-subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
}

.blog-subscribe-btn {
  background: var(--accent);
  color: var(--dark);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}

.blog-subscribe-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.blog-subscribe-msg {
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 20px;
}

.blog-subscribe-msg.success { color: var(--accent); }
.blog-subscribe-msg.error { color: #ff6b6b; }

@media (max-width: 576px) {
  .blog-subscribe-cta { padding: 28px 20px; }
  .blog-subscribe-form { flex-direction: column; }
  .blog-subscribe-cta h3 { font-size: 1.25rem; }
}

/* ================================================
   Mailing List — Blog Sidebar Subscribe
   ================================================ */
.sidebar-subscribe h4 {
  color: var(--accent);
}

.sidebar-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-subscribe-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
}

.sidebar-subscribe-input::placeholder { color: #999; }

.sidebar-subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
}

.sidebar-subscribe-btn {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-subscribe-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.sidebar-subscribe-msg {
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

.sidebar-subscribe-msg.success { color: var(--accent); }
.sidebar-subscribe-msg.error { color: #ff6b6b; }

/* ================================================
   Mailing List — Contact Form Checkbox
   ================================================ */
.contact-mailing-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.contact-mailing-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-mailing-opt label {
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  line-height: 1.4;
}

/* ================================================
   Mailing List — Confirm / Unsubscribe Pages
   ================================================ */
.ml-page-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.ml-page-card {
  text-align: center;
  max-width: 480px;
}

.ml-page-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ml-page-icon.success { background: rgba(204,255,0,0.15); }
.ml-page-icon.error { background: rgba(255,107,107,0.15); }
.ml-page-icon.info { background: rgba(100,181,246,0.15); }

.ml-page-card h1 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.ml-page-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ml-page-card .btn-cta-dark {
  display: inline-block;
}


/* ================================================
   Blog — No-Image Fallback (CSS-only leaf pattern)
   ================================================ */
.blog-no-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d4a2d 0%, #3a6b3a 40%, #4a7c3f 100%);
  background-size: cover;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.blog-no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/image.png');
  background-size: 1200px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.15;
}

.blog-no-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(204, 255, 0, 0.12) 0%, transparent 60%);
}

.blog-no-image-label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  backdrop-filter: blur(2px);
}


/* ================================================
   Blog Post Body — Quill content spacing fix
   ================================================ */
.blog-article-body p {
  margin-bottom: 1rem;
}

.blog-article-body p:empty,
.blog-article-body p br:only-child {
  display: none;
}

.blog-article-body p + p:empty {
  display: none;
}

.blog-article-body h2,
.blog-article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
