/* 
 * Zero Delta Home Inspections - Main Stylesheet
 * Optimized for performance and consistency across all pages
 */

:root {
  --main-color: #005b96;     /* Primary blue */
  /* Dark, high-contrast accent using HSL variables */
  --accent-h: 42;            /* Orange/amber hue close to original brand */
  --accent-s: 90%;           /* Strong saturation for brand presence */
  --accent-l: 15%;           /* Very dark in light mode for white text */
  --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-contrast: #fff;   /* White text atop dark accent backgrounds */
  --text-color: #333;        /* Dark gray for text */
  --bg-color: #f9f9f9;       /* Light gray background */
  --light-blue: #e3f2fd;     /* Lighter blue for sections */
  --dark-blue: #01579b;      /* Darker blue for hover states */
  --card-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Consistent shadow */
  --transition-speed: 0.3s;  /* Standard transition timing */
}

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--main-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Slightly lighter accent in dark mode for visibility against dark UI */
    --accent-l: 20%;
  }
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--main-color);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--dark-blue);
}

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

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Header & Navigation */
header {
  background: var(--main-color);
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

.phone-button {
  background: var(--accent-color);
  color: var(--accent-contrast);
  padding: 10px 15px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

.phone-button:hover {
  transform: scale(1.05);
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 99;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle .hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-active .mobile-menu-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-active .mobile-menu-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-active .mobile-menu-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: var(--main-color);
  z-index: 100;
  transition: right 0.3s ease;
  padding-top: 80px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

.phone-button-mobile {
  display: block !important;
  padding: 1rem 2rem !important;
  background-color: var(--accent-color) !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Hero Section */
.hero, .city-hero {
  padding: 5rem 1rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--accent-contrast);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.cta-button.secondary:hover {
  background: rgba(249, 168, 38, 0.1);
  transform: translateY(-3px);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.badge img {
  width: 24px;
  height: 24px;
}

.breadcrumbs {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Section Styles */
section {
  padding: 5rem 1rem;
}

section:nth-child(even) {
  background: white;
}

section:nth-child(odd) {
  background: var(--bg-color);
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--accent-contrast);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--main-color);
  font-size: 1.5rem;
}

.service-card p {
  padding: 0 1.5rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-features {
  padding: 0 1.5rem 1rem;
  list-style-type: none;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-weight: bold;
}

.service-price {
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--dark-blue);
}

.service-button {
  display: block;
  margin: 1rem 1.5rem 1.5rem;
  background: var(--main-color);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.service-button:hover {
  background: var(--dark-blue);
}

.bundle-offer {
  background: var(--light-blue);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.bundle-offer h3 {
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.bundle-button {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.bundle-button:hover {
  background: var(--dark-blue);
}

/* City-specific Sections */
.city-content {
  margin-bottom: 2rem;
}

.city-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.highlight {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

.highlight:hover {
  transform: translateY(-5px);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.highlight h3 {
  margin-bottom: 0.5rem;
}

.city-map {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}

.map-caption {
  font-style: italic;
  color: #666;
}

/* Neighborhoods Grid */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.neighborhood {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease,
              background var(--transition-speed) ease;
}

.neighborhood:hover {
  transform: translateY(-3px);
  background: var(--light-blue);
}

/* City Special Section */
.special-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.special-info ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.special-info li {
  margin-bottom: 0.7rem;
}

.special-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(0, 86, 179, 0.1);
  font-family: Georgia, serif;
}

.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--main-color);
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--main-color);
  flex: 1;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: bold;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.more-questions {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.more-questions a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
}

/* CTA Section */
.city-cta {
  text-align: center;
  background: var(--light-blue);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: #263238;
  color: white;
  padding: 4rem 1rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-company h3,
.footer-services h3,
.footer-areas h3,
.footer-contact h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-company p {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  color: #ccc;
}

.license {
  font-style: italic;
}

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

.footer-social a {
  color: white;
  background: rgba(255,255,255,0.1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

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

.footer-services ul,
.footer-areas ul {
  list-style: none;
  padding: 0;
}

.footer-services li,
.footer-areas li {
  margin-bottom: 0.5rem;
}

.footer-services a,
.footer-areas a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  display: inline-block;
}

.footer-services a:hover,
.footer-areas a:hover {
  color: var(--accent-color);
}

.footer-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--accent-contrast) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-contact-button:hover {
  background: white;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

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

/* Contact Form */
.contact-form-container {
  background: var(--light-blue);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}


/* High-contrast submit button */
.submit-button {
  background: var(--accent-color);
  color: var(--accent-contrast);
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition-speed) ease,
              transform var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.submit-button:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 1024px) {
  .special-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--dark-blue);
    flex-direction: column;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    z-index: 101;
  }
  
  nav.active {
    right: 0;
  }
  
  .backdrop.active {
    display: block;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0.5rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero, .city-hero {
    padding: 4rem 1rem;
  }
  
  .hero h1, .city-hero h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1, .city-hero h1 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  header, footer, .cta-section, .phone-button {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}

/* JavaScript Enhancements */
.faq-answer[style="display: block;"] {
  padding: 1.2rem;
}

/* Smooth loading effect for images */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav#main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
    height: 100vh;
    background: transparent;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    justify-content: flex-start;
    gap: 2rem;
  }
  
  nav.active {
    left: 0;
  }
  
  nav a {
    font-size: 1.2rem;
  }
  
  .header-container {
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  
  .backdrop.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Lazy Loading Images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 100px;
  background-color: #f8f8f8;
}

.lazy-image.loaded {
  opacity: 1;
}

.service-image.lazy-image {
  min-height: 200px; /* Taller placeholder for service cards */
}

.map-image.lazy-image,
.highlight-image.lazy-image,
.inspection-type-image.lazy-image,
.feature-image.lazy-image,
.component-image.lazy-image {
  min-height: 180px;
  width: 100%;
  object-fit: cover;
}

.county-image.lazy-image {
  min-height: 120px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* New styles from Index.html */
.services {
  padding: 5rem 1rem;
  background: white;
}

.services h2 {
  text-align: center;
  color: var(--main-color);
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.areas {
  padding: 5rem 1rem;
  background: var(--light-blue);
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.area-map {
  flex: 1 1 400px;
}

.map-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.area-list {
  flex: 1 1 400px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.area-list h3 {
  color: var(--main-color);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.county {
  margin-bottom: 1.5rem;
}

.county h4 {
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cities a, .cities .city-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  display: inline-block;
}

.cities a:hover, .cities .city-link:hover {
  color: white;
  background: var(--main-color);
  cursor: pointer;
}

.view-all {
  display: inline-block;
  margin-top: 1rem;
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
}

.local-expertise {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 3rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.local-expertise h3 {
  color: var(--main-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.6rem;
}

.expertise-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item {
  text-align: center;
}

.expertise-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.expertise-item h4 {
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.expertise-item p {
  font-size: 0.9rem;
}

.testimonials {
  padding: 5rem 1rem;
  background: white;
}

.reviews-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.google-reviews {
  flex: 2 1 600px;
  min-height: 400px; /* Adjust based on widget height */
}

.featured-reviews {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background: var(--light-blue);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reviewer {
  font-weight: bold;
  font-size: 0.9rem;
  text-align: right;
}

.review-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.review-platform-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.review-platform-button:hover {
  background: var(--main-color);
  color: white;
}

.platform-icon {
  width: 24px;
  height: 24px;
}

.reviews-note {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #666;
}

.reviews-note a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
}

.faqs {
  padding: 5rem 1rem;
  background: var(--light-blue);
}

.faq-grid {
  margin: 2rem 0;
}

.faq-item {
  margin-bottom: 1rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--main-color);
  flex: 1;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: bold;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.more-questions {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.more-questions a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
}

/* ---------------------------
   Home Page UI Enhancements
   (non-SEO, purely visual)
---------------------------- */
/* Improve text readability on hero background with subtle dark overlay */
.hero::before,
.city-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

/* Ensure hero content sits above the overlay */
.hero-content,
.city-hero .hero-content {
  position: relative;
  z-index: 1;
}

/* Flexible call-to-action group beneath hero headline */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

@media (min-width: 600px) {
  .hero-cta-group {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Supporting note beneath the primary phone CTA */
.hero-phone-note {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.85;
}