@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Ultra-Professional Pest Control Theme Colors */
  --bg-primary: #FFFFFF;        /* Clean white background */
  --bg-secondary: #F8FAFC;      /* Soft slate-gray for alternate sections */
  --bg-tertiary: #F1F5F9;       /* Light border background */
  
  --text-primary: #0F172A;      /* Deep slate-blue for readable copy */
  --text-secondary: #475569;    /* Muted slate-blue for body text */
  --text-muted: #64748B;        /* Placeholders / small details */

  --primary: #15803D;           /* Deep Forest Green (Nature, safety, pest eradication) */
  --primary-hover: #166534;
  --secondary: #00395E;         /* Corporate Dark Blue (Trust, professionalism) */
  --accent: #E05315;            /* High-visibility Safety Orange (Action, warning, CTAs) */
  --accent-hover: #C2410C;

  --border: #E2E8F0;
  --border-glow: rgba(21, 128, 61, 0.15);
  --shadow: rgba(0, 0, 0, 0.05);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Prevent search form flex inputs from overflowing on narrow viewports */
.search-form input {
  min-width: 0 !important;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

ul {
  list-style-position: inside;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

header.header-scrolled {
  padding: 0.6rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo span {
  color: var(--primary);
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.cta-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.phone-link {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: #FFFFFF !important;
  background-color: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(224, 83, 21, 0.2);
}

.phone-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(224, 83, 21, 0.35);
  color: #FFFFFF !important;
  text-decoration: none;
}

.phone-link i {
  color: #FFFFFF;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
  text-decoration: none !important;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 83, 21, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 2rem 3.5rem;
  background-color: #0F2E1B; /* Solid background fallback */
  background: linear-gradient(135deg, #0F2E1B 0%, #154D2F 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  max-width: 100%;
  color: #FFFFFF;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #FFFFFF !important;
}

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* KPI Bar Styling */
.kpi-grid-md {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media(min-width: 768px) {
  .kpi-grid-md {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}


/* Search widget */
.search-widget {
  max-width: 500px;
  margin: 0 auto;
  padding: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.search-form input:focus {
  border-color: transparent;
}

/* Two-Column Sidebar Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width: 1024px) {
  .layout-wrapper {
    grid-template-columns: 2.2fr 1fr;
  }
}

/* Content blocks */
.main-content-area {
  min-width: 0;
}

.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card / Box Widgets */
.widget-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 2px 5px var(--shadow);
}

.widget-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  color: var(--secondary);
}

/* Sidebar Call Widget */
.call-widget {
  background: linear-gradient(135deg, var(--secondary) 0%, #001F33 100%);
  color: #FFFFFF;
  border: none;
  text-align: center;
}

.call-widget h3 {
  color: #FFFFFF;
  border-bottom-color: var(--accent);
}

.call-widget p {
  color: #E2E8F0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.call-widget .phone-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Sidebar form details */
.sidebar-form input,
.sidebar-form select,
.sidebar-form button {
  width: 100%;
  margin-bottom: 0.85rem;
}

.sidebar-form input,
.sidebar-form select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.sidebar-form input:focus,
.sidebar-form select:focus {
  border-color: var(--primary);
  outline: none;
}

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

@media(min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px var(--shadow);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: rgba(21, 128, 61, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Prose Content Layout */
.prose h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
  color: var(--secondary);
}

.prose p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose ul {
  padding-left: 1.25rem;
}

/* Local SEO Navigation Grid */
.seo-link-grid {
  margin-top: 2rem;
}

.links-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.links-container a {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.links-container a:hover {
  background-color: rgba(21, 128, 61, 0.04);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Dynamic Map Block */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  margin: 2rem 0;
  background-color: var(--bg-secondary);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ Accordions */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: #FFFFFF;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Footer Section */
footer {
  background-color: var(--secondary);
  color: #FFFFFF;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 2rem 2.5rem;
  margin-top: 5rem;
}

footer p {
  color: #94A3B8;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.35rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

.footer-contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-contact-list i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.footer-contact-list a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-guarantee-box {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.footer-guarantee-box h5 {
  color: #81C784;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.05);
  color: #CBD5E1;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #64748B;
  font-size: 0.85rem;
}

@media(min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
  }
}

/* Sticky CTA elements */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

@media(min-width: 768px) {
  .sticky-cta-bar {
    display: none;
  }
}

.sticky-cta-bar .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* Enhanced Call CTAs & Mobile Floating Widget */
.btn-pulse {
  position: relative;
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 83, 21, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(224, 83, 21, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 83, 21, 0);
  }
}

.floating-mobile-call {
  position: fixed;
  bottom: 4.5rem; /* Floating above the sticky quote bar */
  right: 1.25rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #FFFFFF;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(224, 83, 21, 0.4);
  text-decoration: none !important;
  animation: float-wiggle 3s infinite ease-in-out, pulse-shadow 2s infinite;
  transition: all 0.3s ease;
}

.floating-mobile-call i {
  font-size: 1.45rem;
}

.floating-mobile-call:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

@keyframes float-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0deg);
  }
  52% {
    transform: translateY(-6px) rotate(-15deg);
  }
  54% {
    transform: translateY(-6px) rotate(15deg);
  }
  56% {
    transform: translateY(-6px) rotate(-15deg);
  }
  58% {
    transform: translateY(-6px) rotate(0deg);
  }
}

/* Vertical Floating Call Tab for Desktop Users */
.floating-desktop-call {
  position: fixed;
  right: 0;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom; /* Anchors bottom-right to edge, keeping pill fully visible */
  z-index: 1100;
  display: none; /* Hidden on mobile */
  align-items: center;
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 12px 12px 0 0; /* Rounded facing the page content when rotated */
  box-shadow: 0 -4px 15px rgba(224, 83, 21, 0.4);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.floating-desktop-call i {
  font-size: 1.15rem;
  margin-right: 0.65rem;
  transform: rotate(90deg); /* Counter-rotate icon to stand upright */
  animation: vertical-phone-shake 2.5s infinite ease-in-out;
}

.floating-desktop-call:hover {
  background-color: var(--accent-hover);
  transform: rotate(-90deg) translateX(50%) translateY(-8px); /* Slide out left on hover */
  box-shadow: 0 -6px 20px rgba(224, 83, 21, 0.5);
}

@keyframes vertical-phone-shake {
  0%, 100% { transform: rotate(90deg) scale(1); }
  10%, 30% { transform: rotate(80deg) scale(1.1); }
  20%, 40% { transform: rotate(100deg) scale(1.1); }
  50% { transform: rotate(90deg) scale(1); }
}

@keyframes phone-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10%, 30% { transform: rotate(-10deg) scale(1.1); }
  20%, 40% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
}

@media(min-width: 768px) {
  .floating-mobile-call {
    display: none;
  }
  .floating-desktop-call {
    display: flex; /* Shown on desktop */
  }
}

/* Sidebar Call Box Phone Enhancements */
.phone-highlight-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background-color: rgba(255,255,255,0.06);
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.15);
}

.phone-highlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.phone-number-pulse {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
}

.phone-number-pulse:hover {
  color: var(--accent) !important;
}

/* Global Responsive Overrides */
.d-none {
  display: none !important;
}

@media(min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
  .d-md-inline-flex {
    display: inline-flex !important;
  }
}

@media(max-width: 768px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group a {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    width: 100%;
    justify-content: center;
  }
  .container {
    padding: 2rem 1.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

@media(max-width: 576px) {
  header {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.1rem;
    gap: 0.25rem;
  }
  .phone-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    gap: 0.25rem;
  }
  .search-form {
    flex-direction: column;
    width: 100%;
  }
  .search-widget {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .search-form input {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .search-form button {
    width: 100%;
    border-radius: 6px !important;
    justify-content: center;
  }
}
@media(min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr !important;
  }
}

.city-pill-box:hover {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
  text-decoration: none !important;
}
.city-pill-box:hover i {
  color: #FFFFFF !important;
}

/* Infinite Scrolling Testimonials Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: scroll-marquee 55s linear infinite;
}

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

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

.marquee-card {
  width: 360px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  background-color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0,0,0,0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  white-space: normal;
}

@media (min-width: 768px) {
  .grid-4-md {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (min-width: 992px) {
  .grid-5-md {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

.grid-hub-services {
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .grid-hub-services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid-hub-services {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) {
  .grid-hub-services {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Scroll Reveal Animations with Fallback Safety */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
}

body.js-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Category Accordions */
details.category-accordion summary::-webkit-details-marker {
  display: none;
}
details.category-accordion[open] summary {
  border-bottom-color: var(--border) !important;
  background-color: #FFFFFF !important;
  color: var(--primary) !important;
}
details.category-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
  color: var(--primary) !important;
}

/* Back to Top Hover */
.back-to-top:hover {
  background-color: var(--secondary) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* Mobile responsive optimizations for navigation header */
@media (max-width: 767px) {
  body {
    padding-bottom: 64px !important; /* Ensure footer content is scrollable above the sticky flat CTA bar */
  }
  .back-to-top {
    bottom: 5rem !important; /* Float back-to-top button above the sticky CTA bar */
  }
  header {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
  }
  .logo {
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    gap: 0.25rem !important;
    flex-grow: 1 !important;
  }
  .logo span {
    font-size: 1.1rem !important;
  }
  .logo i {
    font-size: 1.15rem !important;
  }
  .cta-header {
    display: none !important; /* Hide header call button on mobile to prevent double CTA bars */
  }
  #mobile-menu-toggle {
    display: block !important;
    order: 3 !important;
  }
}

