/*
 * Global Styles for RelyPro Cleaning Services
 *
 * This stylesheet defines the primary colour palette and typography,
 * as well as specific component styles used across the site. It builds
 * upon Bootstrap 5 defaults to create a clean, modern look.
 */

/* Colour variables */
:root {
  --primary-color: #2f7d25;
  --primary-hover: #25651d;
  --secondary-color: #000000;
  --light-color: #f8f9fa;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  transform: translateY(-180%);
  background: #ffffff;
  color: #111827;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.skip-link:focus {
  transform: translateY(0);
}

[id] {
  scroll-margin-top: 5.5rem;
}

/* Navbar styling */
#header .navbar {
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled .navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Default nav links - white on transparent background */
#header .nav-link {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

/* Nav links when scrolled - black on white background */
#header.scrolled .nav-link {
  color: var(--secondary-color);
}

/* Active nav link always stays primary color */
#header .nav-link.active {
  color: #ffffff !important;
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.45em;
}

#header.scrolled .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hover effects */
#header .nav-link:hover {
  color: var(--primary-color);
}

/* Mobile navbar toggler styling */
#header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
  transition: border-color 0.3s ease;
}

#header.scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.5) !important;
}

/* Navbar toggler icon color */
#header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#header.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile dropdown menu styling */
@media (max-width: 991.98px) {
  #header .navbar-collapse {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile nav links in dropdown */
  #header .nav-link {
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
  }
  
  /* Mobile nav link hover effects */
  #header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color) !important;
  }
  
  /* Active mobile nav link */
  #header .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
  }
  
  /* Mobile quote button */
  #header .btn-primary {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Mobile dropdown menu styling */
@media (max-width: 991.98px) {
  #header .navbar-collapse {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile nav links in dropdown */
  #header .nav-link {
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
  }
  
  /* Mobile nav link hover effects */
  #header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color) !important;
  }
  
  /* Active mobile nav link */
  #header .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
  }
  
  /* Mobile quote button */
  #header .btn-primary {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Logo styling */
#header .navbar-brand {
  position: relative;
}

#header .navbar-brand img {
  transition: opacity 0.4s ease;
  height: 40px !important;
  width: auto !important;
  display: block;
}

#header .logo-white {
  opacity: 1;
}

#header .logo-black {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 40px !important;
  width: auto !important;
}

#header.scrolled .logo-white {
  opacity: 0;
}

#header.scrolled .logo-black {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(69, 168, 51, 0.25);
}

/* Hero Section */
#hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #102617 url("../images/hero-poster.webp") center / cover no-repeat;
}

#hero .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

#hero .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(calc(100% - 2rem), 960px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-video-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.2;
}

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
  background: #000000;
  color: #ffffff;
}

.hero-video-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

#hero.hero-video-unavailable .hero-video {
  display: none;
}

#hero .scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 3;
}

#hero .scroll-indicator:hover {
  opacity: 1;
}

#hero .scroll-indicator .scroll-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  animation: scroll-bounce 2s infinite;
}

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

@media (max-width: 575.98px) {
  #hero .hero-content {
    width: min(calc(100% - 1.5rem), 960px);
  }

  #hero .scroll-indicator {
    bottom: 1.75rem;
    gap: 0.35rem;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
  }

  #hero .scroll-indicator .scroll-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Page Headers */
.page-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-header h1,
.page-header p {
  position: relative;
  z-index: 1;
}

/* Section headings */
section h2 {
  color: var(--secondary-color);
}

.relypro-bg-primary {
  background-color: var(--primary-color) !important;
}

.page-header .text-white-50 {
  color: rgba(255, 255, 255, 0.88) !important;
}

.btn-outline-primary-relypro {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-outline-primary-relypro:hover {
  color: #fff;
  border-color: var(--primary-hover);
  background-color: var(--primary-hover);
}

/* Cards */
.card {
  border-radius: 0.5rem;
}

.card .icon {
  font-size: 3rem;
  color: var(--primary-color);
}

/* Map responsiveness */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  font-size: 0.9rem;
}

.footer-bg {
  background-color: #1a4d14 !important;
}

.footer-bg a {
  color: #ffffff;
  text-underline-offset: 0.2em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-weight: 600;
}


/* Form controls */
.form-control,
.form-select {
  border-radius: 0.375rem;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(69, 168, 51, 0.25);
  border-color: var(--primary-color);
}

/* Form placeholder styling */
.form-control::placeholder,
.form-select::placeholder {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Specific styling for select dropdowns */
.form-select,
#quoteType,
#quoteService {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

/* When select has a value selected, make text normal */
.form-select:not(:invalid),
#quoteType:not(:invalid),
#quoteService:not(:invalid) {
  color: #374151 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Force styling on the select element when showing placeholder */
select.form-select[required]:invalid,
#quoteType[required]:invalid,
#quoteService[required]:invalid {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* Force styling when valid option is selected */
select.form-select[required]:valid,
#quoteType[required]:valid,
#quoteService[required]:valid {
  color: #374151 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

#quoteService:disabled {
  background-color: #f1f5f9;
  color: #6b7280 !important;
  cursor: not-allowed;
}

/* Style individual options */
.form-select option,
#quoteType option,
#quoteService option {
  color: #374151 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Style the disabled placeholder option specifically */
.form-select option:disabled,
#quoteType option:disabled,
#quoteService option:disabled {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

/* Date and time input placeholders */
input[type="date"]::placeholder,
input[type="time"]::placeholder {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Date and time input styling when empty */
input[type="date"]:invalid,
input[type="time"]:invalid {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Date and time input styling when filled */
input[type="date"]:valid,
input[type="time"]:valid {
  color: #374151;
  font-size: 0.9rem;
}

/* Form labels for contrast */
.form-label {
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-light {
  background-color: #f6f7f8 !important;
}

@media (max-width: 991.98px) {
  /* Adjust hero height on smaller screens */
  #hero {
    height: 90vh;
  }
}

/* Trust metrics */
#trust-metrics .stats-card {
  background: rgba(0, 0, 0, 0.12);
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#trust-metrics .stats-card i {
  font-size: 1.75rem;
  color: #ffffff;
}

#trust-metrics .stats-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.15);
}

/* Why choose cards */
#why-relypro .why-card {
  background: #ffffff;
  border-radius: 0.85rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-relypro .why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.12);
}

#why-relypro .icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(69, 168, 51, 0.15);
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* How it works timeline */
#how-it-works .timeline-step {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.75rem 1.75rem 2rem;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#how-it-works .timeline-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
}

#how-it-works .timeline-step .step-number {
  position: absolute;
  top: -1.2rem;
  left: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(69, 168, 51, 0.35);
}

/* Pricing cards */
#packages .pricing-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#packages .pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 34px 60px rgba(15, 23, 42, 0.12);
}

.pricing-card__header p {
  color: #6b7280 !important;
}

.pricing-card__price .currency {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.pricing-card__price .amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.1;
}

.pricing-card__price .period {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.pricing-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pricing-card__list li {
  display: flex;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.pricing-card__list i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.pricing-card--featured {
  position: relative;
  border-color: transparent;
  background: linear-gradient(160deg, #f1fff0 0%, #ffffff 65%);
  box-shadow: 0 32px 64px rgba(69, 168, 51, 0.25);
}

.pricing-card--featured .amount {
  color: var(--primary-color);
}

.pricing-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  #packages .pricing-card {
    padding: 2rem 1.5rem;
  }
}

/* FAQs */
#faqs .accordion-item {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.25rem;
}

#faqs .accordion-button {
  font-weight: 600;
  font-size: 1rem;
}

#faqs .accordion-button:not(.collapsed) {
  background: rgba(69, 168, 51, 0.12);
  color: var(--secondary-color);
  box-shadow: none;
}

#faqs .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(69, 168, 51, 0.2);
}

/* CTA section */
#cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  min-height: 32rem;
  background-color: #102617;
}

#cta .cta-collage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

#cta .collage-frame {
  position: relative;
  width: min(92%, 940px);
  height: min(80%, 440px);
}

#cta .collage-card {
  position: absolute;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(12, 24, 20, 0.4);
  background: rgba(9, 18, 15, 0.65);
}

#cta .collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

#cta .collage-card--one {
  top: 10%;
  left: 0;
  width: 38%;
  height: 78%;
}

#cta .collage-card--two {
  top: -6%;
  left: 34%;
  width: 34%;
  height: 86%;
}

#cta .collage-card--three {
  bottom: 4%;
  right: 2%;
  width: 30%;
  height: 70%;
}

#cta .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 77, 20, 0.82) 0%, rgba(27, 68, 55, 0.78) 100%);
  z-index: 1;
}

#cta .container {
  position: relative;
  z-index: 2;
}

#cta a {
  text-decoration: none;
}

#cta .btn-light {
  color: var(--secondary-color);
  font-weight: 600;
  border: none;
}

#cta .btn-light:hover {
  background: #f1f5f9;
  color: #111827;
}

@media (max-width: 1199.98px) {
  #cta {
    min-height: 30rem;
    padding: 4.5rem 0;
  }

  #cta .collage-frame {
    width: min(94%, 820px);
    height: min(82%, 400px);
  }

  #cta .collage-card {
    border-radius: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  #cta {
    text-align: center;
    padding: 4rem 0;
    min-height: 28rem;
  }

  #cta .collage-frame {
    width: 100%;
    height: 360px;
  }

  #cta .collage-card--one {
    left: 4%;
    width: 42%;
  }

  #cta .collage-card--two {
    left: 36%;
    width: 36%;
  }

  #cta .collage-card--three {
    right: 4%;
    width: 34%;
  }

  #cta .btn-light {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  #cta {
    padding: 3.5rem 0 3.75rem;
    min-height: auto;
  }

  #cta .cta-collage {
    align-items: flex-start;
    padding-top: 1rem;
  }

  #cta .collage-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: auto;
  }

  #cta .collage-card {
    position: relative;
    width: 78%;
    height: 200px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    order: initial;
  }

  #cta .collage-card--two {
    order: 2;
  }

  #cta .collage-card--three {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero .scroll-indicator .scroll-icon {
    animation: none;
  }
}

/* Conversion and consent UI */
.mobile-conversion-bar {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  background: #102617;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  font-size: 0.875rem;
}

.cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.form-privacy {
  margin-top: 0.85rem;
  color: #4b5563;
  font-size: 0.8rem;
}

.form-privacy a {
  color: #1f5d18;
  font-weight: 600;
}

.form-status:focus {
  outline: 3px solid rgba(47, 125, 37, 0.35);
  outline-offset: 2px;
}

.service-proof {
  border-left: 4px solid var(--primary-color);
  background: #f3f8f2;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
}

.content-card {
  height: 100%;
  border: 1px solid #dfe7dd;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff;
}

.featured-service-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary-color) !important;
  background: linear-gradient(180deg, #f7fbf6 0%, #ffffff 55%);
}

.service-badge {
  display: inline-block;
  border-radius: 999px;
  background: #dff0db;
  color: #1f5d18;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.breadcrumb-wrap {
  background: #f6f7f8;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: #1f5d18;
  font-weight: 600;
}

.legal-content {
  max-width: 52rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Blog */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 0 6rem;
  background:
    linear-gradient(120deg, rgba(8, 31, 14, 0.94), rgba(36, 101, 29, 0.86)),
    url("../images/hero-poster.webp") center 48% / cover no-repeat;
}

.blog-hero::after {
  position: absolute;
  inset: auto -10% -8rem;
  height: 13rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50% 50% 0 0;
  content: "";
  transform: rotate(-2deg);
}

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

.blog-hero .eyebrow {
  color: #bfe3b9;
}

.blog-hero .lead {
  max-width: 48rem;
}

.blog-listing {
  background: #ffffff;
}

.blog-featured {
  overflow: hidden;
  background: #f2f8f0;
  border: 1px solid #cfe0cb;
  border-radius: 1.25rem;
  box-shadow: 0 20px 48px rgba(22, 62, 28, 0.12);
}

.blog-featured__image-link {
  display: block;
  height: 100%;
  min-height: 28rem;
  overflow: hidden;
}

.blog-featured__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-featured:hover .blog-featured__image {
  transform: scale(1.02);
}

.blog-featured__body {
  display: flex;
  height: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  flex-direction: column;
  justify-content: center;
}

.blog-featured__label {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  color: #ffffff;
  background: #205f19;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-featured h2 a {
  color: #172219;
  text-decoration: none;
}

.blog-featured h2 a:hover,
.blog-featured h2 a:focus-visible {
  color: #1f5d18;
}

.blog-page-count {
  color: #5b655c;
  font-weight: 700;
}

.rss-link {
  color: #1f5d18;
  font-weight: 700;
  text-decoration: none;
}

.rss-link:hover,
.rss-link:focus-visible {
  color: var(--primary-hover);
  text-decoration: underline;
}

.blog-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce6da;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(22, 62, 28, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 20px 44px rgba(22, 62, 28, 0.14);
  transform: translateY(-4px);
}

.blog-card__image-link {
  display: block;
  overflow: hidden;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.025);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #5b655c;
  font-size: 0.78rem;
}

.blog-category {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.65rem;
  color: #1f5d18;
  background: #e5f2e2;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.blog-card h2 a {
  color: #172219;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible {
  color: #1f5d18;
}

.blog-card__link {
  color: #1f5d18;
  font-weight: 800;
  text-decoration: none;
}

.blog-card__link:hover,
.blog-card__link:focus-visible {
  color: var(--primary-hover);
  text-decoration: underline;
}

.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination__link {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #1f5d18;
  background: #ffffff;
  border: 1px solid #bdd1b9;
  border-radius: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.blog-pagination__link:hover,
.blog-pagination__link:focus-visible,
.blog-pagination__link.is-current {
  color: #ffffff;
  background: #205f19;
  border-color: #205f19;
}

.blog-pagination__link.is-disabled {
  color: #7b837c;
  background: #f1f3f1;
  border-color: #dfe4de;
}

.blog-service-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 1rem;
  color: #18351c;
  background: #ffffff;
  border: 1px solid #dce6da;
  border-radius: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-service-link:hover,
.blog-service-link:focus-visible {
  color: #1f5d18;
  border-color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(22, 62, 28, 0.1);
}

.article-hero {
  padding: 9.5rem 0 4.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(110, 174, 99, 0.38), transparent 36%),
    linear-gradient(135deg, #102617 0%, #1f5d2b 100%);
}

.article-hero .lead {
  max-width: 50rem;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
}

.article-breadcrumb {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.article-breadcrumb,
.article-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.72);
}

.article-breadcrumb a {
  color: #ffffff;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.article-byline {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.article-shell {
  background: #ffffff;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 3rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow: 0 20px 50px rgba(18, 45, 23, 0.14);
}

.article-content {
  max-width: 48rem;
  margin: 0 auto;
  color: #2f3931;
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  color: #172219;
  font-weight: 800;
  line-height: 1.25;
}

.article-content h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.article-content h3 {
  margin: 2rem 0 0.85rem;
  font-size: 1.3rem;
}

.article-content a {
  color: #1f5d18;
  font-weight: 700;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  color: #214327;
  background: #edf6eb;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 0.75rem 0.75rem 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content li + li {
  margin-top: 0.45rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.75rem;
  border: 1px solid #dce6da;
}

.article-content th {
  background: #edf6eb;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 52rem;
  margin: 3.5rem auto 0;
  padding: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1e5b27, #2f7d25);
  border-radius: 1rem;
  box-shadow: 0 18px 42px rgba(25, 83, 32, 0.2);
}

.article-cta .eyebrow {
  color: #d6efd1;
}

.article-return {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #dce6da;
}

.article-return a {
  color: #1f5d18;
  font-weight: 800;
  text-decoration: none;
}

.article-return a:hover,
.article-return a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .blog-hero {
    padding: 8rem 0 4.25rem;
  }

  .blog-featured__image-link {
    min-height: 0;
  }

  .blog-featured__image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .blog-featured__body {
    padding: 1.5rem;
  }

  .blog-featured .display-6 {
    font-size: 1.75rem;
  }

  .blog-pagination__list {
    flex-wrap: wrap;
  }

  .blog-pagination__link--direction {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .article-hero {
    padding: 8rem 0 3.5rem;
  }

  .article-hero .display-5 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .article-breadcrumb .breadcrumb-item:last-child {
    display: none;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }

  .article-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card__image,
  .blog-featured__image,
  .blog-service-link {
    transition: none;
  }

  .blog-card:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 4.25rem;
  }

  .service-page-layout {
    margin-right: 0;
    margin-left: 0;
  }

  .hero-video-toggle {
    bottom: 5.25rem;
  }

  .mobile-conversion-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1070;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 4.25rem;
    background: #102617;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  }

  .mobile-conversion-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-conversion-bar a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-conversion-bar a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -4px;
  }

  .cookie-banner {
    bottom: 5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
