/*
Theme Name: San Antonio Sprinkler Repair
Theme URI: https://sanantoniosprinkerrepair.com
Author: San Antonio Sprinkler Repair
Author URI: https://sanantoniosprinkerrepair.com
Description: Professional WordPress theme for San Antonio Sprinkler Repair - a local irrigation and sprinkler repair company serving the San Antonio metro area. Features sidebar navigation matching the React version.
Version: 3.8.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sa-sprinkler
Tags: business, one-column, custom-menu, featured-images, threaded-comments

San Antonio Sprinkler Repair Theme - Sidebar Navigation Layout
*/

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --sidebar-width: 16rem;
  --sidebar-bg: #1e3a8a;
  --sidebar-border: #1e40af;
  --sidebar-text: #ffffff;
  --sidebar-text-muted: #bfdbfe;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ==========================================================================
   SIDEBAR LAYOUT - Matches React Version
   ========================================================================== */

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  background-color: var(--sidebar-bg);
}

.sidebar-header .sidebar-logo {
  display: block;
}

.sidebar-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: var(--radius);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.nav-group {
  padding: 0.5rem 0;
}

.nav-group-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border-radius: 0;
}

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

.nav-item.active a {
  background-color: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.nav-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #ffffff;
  stroke: #ffffff;
}

.sidebar-footer {
  padding: 1rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--sidebar-text-muted);
  line-height: 1.5;
}

.sidebar-footer p {
  margin-bottom: 0.75rem;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile Header (hidden on desktop) */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-logo-link {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.mobile-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--primary-foreground);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-call-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Sidebar Overlay (for mobile) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile/Tablet Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-header {
    display: flex;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

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

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(rgba(30, 64, 175, 0.9), rgba(30, 64, 175, 0.9)), 
              url('assets/images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 2rem;
  text-align: center;
}

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

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   BRAND LOGOS
   ========================================================================== */

.brand-logos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  background-color: var(--muted);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--card);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(30, 64, 175, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
  padding: 2rem;
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Page Header */
.page-header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .phone-cta {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Page Hero Image */
.page-hero-image {
  width: 100%;
  height: 12rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .page-hero-image {
    height: 16rem;
  }
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--muted);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--muted-foreground);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--muted-foreground);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
  background-color: var(--muted);
  padding: 3rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-stars {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: #ffffff;
  color: var(--primary);
  padding: 3rem 2rem 1rem;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  border-radius: var(--radius);
}

.footer-col h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--foreground);
  font-size: 0.875rem;
}

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

.footer-contact {
  color: var(--foreground);
  font-size: 0.875rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-phone {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   SERVICE AREAS
   ========================================================================== */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.area-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.area-link:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.area-link svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

/* ==========================================================================
   RELATED MODULES
   ========================================================================== */

.related-module {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.related-module h3 {
  margin-bottom: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.related-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-answer {
  padding: 0 1.5rem 1rem;
  color: var(--muted-foreground);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.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;
}

/* ==========================================================================
   REACT-MATCHING STYLES - New Components
   ========================================================================== */

/* Brand Bar - React Homepage Style */
.brand-bar {
  background-color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand-logos-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Hero with Background Image */
.hero-with-image {
  position: relative;
  background: linear-gradient(rgba(30, 64, 175, 0.85), rgba(30, 64, 175, 0.9)), 
              url('assets/images/hero-bg.jpg') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Features Bar */
.features-bar {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(30, 64, 175, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.feature-text span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   HOMEPAGE - REACT MATCHING LAYOUT
   ========================================================================== */

/* Brand Header - Blue gradient bar */
.brand-header {
  background: linear-gradient(to right, var(--primary), rgba(30, 64, 175, 0.8));
  color: white;
  padding: 1rem 0;
}

.brand-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 992px) {
  .brand-header-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.brand-header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

@media (min-width: 992px) {
  .brand-header-left h1 {
    font-size: 1.875rem;
  }
}

.brand-header-left p {
  color: rgba(255, 255, 255, 0.9);
}

.brand-header .phone-link {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

.brand-logos-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.brand-logos-inline .divider {
  color: rgba(255, 255, 255, 0.5);
}

/* Diagonal Brand Logos - Slanted layout */
.brand-logos-diagonal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-logos-diagonal .brand-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  transform: rotate(-12deg);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.brand-logos-diagonal .brand-name:nth-child(1) { transform: rotate(-15deg); }
.brand-logos-diagonal .brand-name:nth-child(2) { transform: rotate(-8deg); }
.brand-logos-diagonal .brand-name:nth-child(3) { transform: rotate(5deg); }
.brand-logos-diagonal .brand-name:nth-child(4) { transform: rotate(12deg); }

@media (max-width: 768px) {
  .brand-logos-diagonal {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .brand-logos-diagonal .brand-name {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
  }
}

/* Hero Image Banner - Full width */
.hero-image-banner {
  position: relative;
  height: 12rem;
}

@media (min-width: 992px) {
  .hero-image-banner {
    height: 16rem;
  }
}

.hero-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

/* Main Content Section */
.main-content-section {
  padding: 2rem 0 3rem;
}

/* Home Grid - 2/3 + 1/3 layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.content-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-block.border-top {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.section-title-primary {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .section-title-primary {
    font-size: 1.875rem;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.flex-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flex-title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-rating svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Services Checklist Grid - 2 columns */
.services-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  list-style: none;
}

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

.services-checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.services-checklist-grid li svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Specialist Grid - Image + Text side by side */
.specialist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .specialist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.specialist-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.specialist-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.specialist-content a {
  color: var(--primary);
  text-decoration: none;
}

.specialist-content a:hover {
  text-decoration: underline;
}

.font-medium {
  font-weight: 500;
}

/* Mission Card */
.mission-card {
  background-color: rgba(30, 64, 175, 0.05);
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.mission-card .italic {
  font-style: italic;
  margin-bottom: 1rem;
}

.phone-link-primary {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.phone-link-primary:hover {
  text-decoration: underline;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.testimonial-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  fill: rgba(30, 64, 175, 0.8);
  color: var(--primary);
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.testimonial-location svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Bottom Image */
.bottom-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.bottom-image img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

/* Sidebar Column */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sticky-sidebar {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  z-index: 100;
}

/* Make sidebar column allow sticky positioning */
.sidebar-column {
  align-self: flex-start;
}

/* Mobile sticky form */
@media (max-width: 1023px) {
  .sticky-sidebar {
    position: sticky;
    top: 70px; /* Below mobile header */
    z-index: 100;
  }
}

/* Contact Card */
.contact-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-card-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-card-header svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card-body {
  padding: 1.5rem;
}

.payment-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Contact Form 7 Styling */
.cf7-styled .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cf7-styled .form-group {
  margin-bottom: 0;
}

.cf7-styled .wpcf7-form-control:not([type="submit"]) {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cf7-styled .wpcf7-form-control:not([type="submit"]):focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.cf7-styled .wpcf7-form-control[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cf7-styled .wpcf7-form-control[type="submit"]:hover {
  background-color: var(--primary-dark);
}

.cf7-styled select.wpcf7-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.cf7-styled textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.cf7-styled .wpcf7-response-output {
  margin: 1rem 0 0 0 !important;
  padding: 1rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem;
}

.cf7-styled .wpcf7-mail-sent-ok,
.cf7-styled .wpcf7 form.sent .wpcf7-response-output {
  background-color: #16a34a !important;
  color: #fff !important;
  border: none !important;
  text-align: center;
  font-weight: 500;
}

.cf7-styled .wpcf7-validation-errors,
.cf7-styled .wpcf7 form.invalid .wpcf7-response-output {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

.cf7-styled .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.cf7-styled .wpcf7-spinner {
  display: none;
}

.cf7-styled label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Features Sidebar */
.features-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(30, 64, 175, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.feature-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.btn-block {
  width: 100%;
}

/* Services Checklist */
.services-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.service-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}

.service-check-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Mission Card */
.mission-card {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--primary);
}

.mission-card h2 {
  color: var(--primary);
}

/* Why Choose Grid */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.why-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.why-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(30, 64, 175, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.why-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Image Gallery Grid */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.image-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--muted);
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-box:hover img {
  transform: scale(1.05);
}

.image-box-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1rem 0.75rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

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

@media (max-width: 480px) {
  .image-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.why-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* Stats Grid - Service Areas Page */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* CTA Cards */
.cta-card {
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.cta-card h3 {
  margin-bottom: 0.75rem;
}

.cta-card p {
  margin-bottom: 1.5rem;
}

.cta-card-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta-card-primary p {
  opacity: 0.9;
}

.cta-card-muted {
  background-color: var(--muted);
  color: var(--foreground);
}

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

/* Info Cards */
.info-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card-highlight {
  border-left: 4px solid var(--primary);
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-header-flex svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-header-flex h3 {
  margin: 0;
}

/* Area Sections */
.area-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.area-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.area-section h2 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.area-section p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

/* Area Tags */
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
}

.area-tag svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}

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

/* FAQ Section Titles */
.faq-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.faq-section-title svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* FAQ Toggle */
.faq-toggle {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .hero-with-image {
    min-height: 350px;
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .brand-logos-inline {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .brand-label {
    margin-bottom: 0.5rem;
  }
}

/* Site Main - Two Column Layout */
.site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .site-main:not(.home-layout) {
    grid-template-columns: 1fr 280px;
  }
}

.content-area {
  min-width: 0;
}

/* Content Sidebar */
.content-sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.sidebar-widget {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

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

.sidebar-nav-links li {
  margin-bottom: 0.5rem;
}

.sidebar-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.sidebar-nav-links a:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.sidebar-nav-links a svg {
  width: 1rem;
  height: 1rem;
  color: #ffffff;
}

/* Sidebar CTA */
.sidebar-cta {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.sidebar-cta h4 {
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   CLICK-TO-CALL BAR - Mobile Only
   ========================================================================== */

.click-to-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.click-to-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.click-to-call-bar svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
  .click-to-call-bar {
    display: block;
  }
  
  body {
    padding-bottom: 60px;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE STYLES
   ========================================================================== */

/* Mobile Base Styles */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .btn-lg {
    padding: 0.875rem 1.25rem;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem 1rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .page-header .phone-cta {
    font-size: 1rem;
  }
  
  .site-main {
    padding: 1.5rem 0;
    gap: 1.5rem;
  }
  
  .py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto;
  }
  
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .footer-nav li {
    margin: 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Services Grid Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 1.25rem;
  }
}

/* Contact Form Responsive */
@media (max-width: 640px) {
  .contact-form {
    padding: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.875rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-item {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
    padding-right: 2rem;
  }
  
  .faq-answer {
    font-size: 0.9375rem;
  }
}

/* Service Areas Responsive */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .area-card {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Brand Logos Responsive */
@media (max-width: 640px) {
  .brand-logos {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .brand-logo {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Homepage Responsive */
@media (max-width: 992px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  .home-sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .brand-header {
    padding: 1.5rem 1rem;
  }
  
  .brand-header h1 {
    font-size: 1.5rem;
  }
  
  .hero-image-banner {
    height: 10rem;
  }
  
  .specialist-grid {
    grid-template-columns: 1fr;
  }
  
  .specialist-image {
    height: 200px;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 1rem;
  }
}

/* Related Modules Responsive */
@media (max-width: 640px) {
  .related-module {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .related-module h3 {
    font-size: 1.125rem;
  }
  
  .nearby-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-services-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Section Responsive */
@media (max-width: 640px) {
  .cta-section {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
}

/* Content Sidebar Responsive */
@media (max-width: 992px) {
  .content-sidebar {
    display: none;
  }
}

/* Service Content Responsive */
@media (max-width: 768px) {
  .service-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .service-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  
  .service-content ul,
  .service-content ol {
    margin-left: 1rem;
  }
  
  .service-content li {
    margin-bottom: 0.5rem;
  }
}

/* Card Responsive */
@media (max-width: 640px) {
  .card {
    padding: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
}

/* Hide sidebar on mobile */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .sidebar.open + .sidebar-overlay,
  .sidebar-overlay.active {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for tables on mobile */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a, button, .btn, input, select, textarea {
    min-height: 44px;
  }
  
  .nav-item a {
    padding: 0.875rem 1rem;
  }
}

/* ==========================================================================
   CRITICAL MOBILE OVERRIDES - Ensure responsiveness
   ========================================================================== */

/* Contact Page Grid */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Force single column on mobile for all grids */
@media (max-width: 640px) {
  .services-grid,
  .testimonials-grid,
  .specialist-grid,
  .related-services-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  
  .stats-grid,
  .nearby-areas-grid,
  .areas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .home-grid {
    grid-template-columns: 1fr !important;
  }
  
  .site-main {
    grid-template-columns: 1fr !important;
  }
}

/* Force proper widths on mobile */
@media (max-width: 768px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .content-area {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .sidebar {
    transform: translateX(-100%) !important;
  }
  
  .sidebar.open {
    transform: translateX(0) !important;
  }
  
  .mobile-header {
    display: flex !important;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Fix any fixed width elements */
  .card,
  .service-card,
  .testimonial-card,
  .stat-card,
  .area-card,
  .faq-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Ensure text doesn't overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix button overflow */
@media (max-width: 480px) {
  .btn {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .cta-buttons .btn {
    width: 100% !important;
  }
}
