/* Flat Fee House Cleaners Sarasota - Main Styles */
/* Mobile-First Responsive Design */

/* CSS Variables for Consistent Theming */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-menu a {
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-cta {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Trust Signals */
.trust-signals {
  background-color: var(--bg-light);
  padding: 3rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trust-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.875rem;
}

/* Services Section */
.services {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: none;
  margin: 1rem 0;
}

.service-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Why Choose Us */
.why-choose {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Service Areas */
.service-areas {
  padding: 4rem 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.area-item {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.area-item:hover {
  background-color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.area-item a {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}

.area-item a:hover {
  color: var(--primary-color);
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-category {
  margin-bottom: 2rem;
}

.faq-category h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.faq-item {
  background-color: white;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  gap: 1rem;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-content {
  max-width: 900px;
  margin: 2rem auto;
}

.about-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content ul {
  margin: 1.5rem 0;
}

.about-content li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.map-section {
  padding: 4rem 0;
}

.map-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 0.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Tablet Styles */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }

  .hero h1 { font-size: 3.5rem; }

  .container {
    padding: 0 2rem;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .hero h1 { font-size: 4rem; }

  .hero {
    padding: 6rem 0;
  }

  .services,
  .why-choose,
  .service-areas,
  .faq,
  .contact {
    padding: 5rem 0;
  }
}

/* Mobile Menu */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cta-section,
  .nav-cta {
    display: none;
  }
}

/* ============================================
   BLOG POST STYLES - Professional Typography & Layout
   ============================================ */

/* Blog Post Container */
.blog-post {
  background-color: var(--bg-light);
  padding-top: 2rem;
}

/* Blog Hero Section */
.blog-hero {
  max-width: 900px;
  margin: 0 auto 3rem;
  background-color: var(--bg-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.blog-hero .featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.blog-hero .blog-meta {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 2rem 0;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-meta .category {
  background-color: var(--primary-color);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.blog-meta .date,
.blog-meta .read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta .date::before {
  content: "📅";
}

.blog-meta .read-time::before {
  content: "⏱️";
}

.blog-hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
  padding: 0 2rem;
  color: var(--text-dark);
  font-weight: 800;
}

.blog-hero .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
  padding: 0 2rem 2rem;
  margin: 0;
  font-weight: 400;
}

/* Table of Contents */
.table-of-contents {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.table-of-contents h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-of-contents h2::before {
  content: "📋";
  font-size: 1.5rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.table-of-contents li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.table-of-contents a {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.table-of-contents a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Blog Content Area */
.blog-content {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  line-height: 1.8;
}

/* Enhanced Typography for Blog Content */
.blog-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #374151;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.blog-content h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-content h3::before {
  content: '▸';
  color: var(--primary-color);
  font-size: 1.25rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary-color);
}

/* Enhanced Lists */
.blog-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.blog-content li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
}

.blog-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-content li strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Links in Content */
.blog-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.blog-content a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

/* CTA Boxes within Content */
.cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cta-box h3 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-box h3::before {
  content: none;
}

.cta-box p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #475569;
}

.cta-box .btn {
  margin: 0.5rem;
}

/* Section Styling */
.blog-content section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.blog-content section:last-of-type {
  margin-bottom: 2rem;
}

/* Conclusion Section */
.blog-content .conclusion {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 2.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--secondary-color);
  margin-top: 3rem;
}

.conclusion h2 {
  color: var(--secondary-color);
  border-bottom: none;
  margin-top: 0;
}

.conclusion h2::after {
  content: none;
}

/* Related Posts Section */
.related-posts {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: var(--bg-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.related-posts h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.related-posts h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: block;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background-color: white;
}

.related-card h3 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.related-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}

/* Header Improvements for Blog */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header .logo a {
  text-decoration: none;
  color: var(--primary-color);
}

.site-header .logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}

.site-header .logo .tagline {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-number {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.125rem;
}

.phone-number:hover {
  color: var(--primary-dark);
}

/* Footer Improvements */
.site-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section .phone a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Special Content Blocks */
.highlight-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.highlight-box::before {
  content: '💡';
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.warning-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left: 4px solid #dc2626;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.warning-box::before {
  content: '⚠️';
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.tip-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.tip-box::before {
  content: '✨';
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Quote Blocks */
blockquote {
  background-color: #f8fafc;
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: #475569;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Responsive Blog Styles */
@media (min-width: 768px) {
  .blog-hero h1 {
    font-size: 3rem;
  }

  .blog-hero .lead {
    font-size: 1.375rem;
  }

  .blog-hero .featured-image {
    height: 500px;
  }
}

/* =================================================================
   MOBILE-FIRST RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Extra Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 0.875rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Blog Post Mobile Optimization */
  .blog-post {
    padding-top: 0.5rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Fix all sections to prevent overflow */
  section {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .blog-hero {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .blog-hero .featured-image {
    height: 200px;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .blog-hero h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
    line-height: 1.3;
  }

  .blog-hero .lead {
    font-size: 0.9375rem;
    padding: 0 1rem 1rem;
    line-height: 1.5;
  }

  .blog-hero .blog-meta {
    padding: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .blog-meta .category {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
  }

  .blog-meta .date,
  .blog-meta .read-time {
    font-size: 0.8125rem;
  }

  /* Table of Contents - Compact Mobile */
  .table-of-contents {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .table-of-contents h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .table-of-contents h2::before {
    font-size: 1.125rem;
  }

  .table-of-contents li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
  }

  .table-of-contents a {
    font-size: 0.875rem;
  }

  /* Blog Content - Mobile Typography */
  .blog-content {
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .blog-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    word-wrap: break-word;
  }

  /* Force all inline elements to respect mobile width */
  .blog-content * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .blog-content table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-content h2 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .blog-content h2::after {
    width: 60px;
  }

  .blog-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .blog-content h3::before {
    font-size: 1rem;
  }

  .blog-content h4 {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding-left: 0.75rem;
  }

  .blog-content li {
    font-size: 0.9375rem;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .blog-content li::before {
    font-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  .blog-content ul,
  .blog-content ol {
    margin: 1rem 0;
    padding-left: 0;
  }

  /* CTA Box - Compact Mobile */
  .cta-box {
    padding: 1.25rem;
    margin: 2rem 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .cta-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .cta-box p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  .cta-box .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    box-sizing: border-box;
  }

  /* Fix CTA buttons container */
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Special Content Blocks - Mobile */
  .highlight-box,
  .warning-box,
  .tip-box {
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
  }

  blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 1rem;
  }

  /* Related Posts - Mobile Stack */
  .related-posts {
    padding: 1.25rem;
    margin-top: 2rem;
  }

  .related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-card {
    padding: 1.25rem;
  }

  .related-card h3 {
    font-size: 1rem;
  }

  .related-card p {
    font-size: 0.875rem;
  }

  /* Header - Mobile Compact */
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-header .logo h1 {
    font-size: 1.125rem;
  }

  .site-header .logo .tagline {
    font-size: 0.8125rem;
  }

  .main-nav ul {
    gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
  }

  .header-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .phone-number {
    text-align: center;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
  }

  .header-cta .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem;
    min-height: 44px;
  }

  /* Footer - Mobile Optimization */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1.125rem;
  }
}

/* Small Mobile to Standard Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .blog-post {
    padding-top: 1rem;
  }

  .blog-hero {
    border-radius: 0.5rem;
  }

  .blog-hero .featured-image {
    height: 250px;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
    padding: 0 1.5rem;
  }

  .blog-hero .lead {
    font-size: 1rem;
    padding: 0 1.5rem 1.5rem;
  }

  .blog-hero .blog-meta {
    padding: 1rem 1.5rem 0;
    gap: 1rem;
  }

  .table-of-contents {
    border-radius: 0.5rem;
    padding: 1.5rem;
  }

  .blog-content {
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .blog-content h4 {
    font-size: 1.125rem;
  }

  .cta-box {
    padding: 1.5rem;
  }

  .cta-box h3 {
    font-size: 1.375rem;
  }

  .related-posts {
    padding: 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .header-cta {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .phone-number {
    flex: 1;
  }

  .header-cta .btn {
    flex: 1;
    text-align: center;
  }
}

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog-hero h1 {
    font-size: 2.25rem;
  }

  .blog-hero .lead {
    font-size: 1.1875rem;
  }

  .blog-hero .featured-image {
    height: 400px;
  }

  .blog-content {
    padding: 2.5rem 2rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1.0625rem;
  }

  .blog-content h2 {
    font-size: 1.75rem;
  }

  .blog-content h3 {
    font-size: 1.375rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-content {
    flex-wrap: nowrap;
  }

  .main-nav ul {
    gap: 1.25rem;
  }

  .header-cta {
    flex-direction: row;
    width: auto;
  }
}

/* Desktop (1025px+) - Already optimized above */
@media (min-width: 1025px) {
  .blog-hero .featured-image {
    height: 500px;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .blog-hero h1 {
    font-size: 3.5rem;
  }

  .blog-hero .lead {
    font-size: 1.5rem;
  }

  .blog-content {
    max-width: 850px;
    padding: 3.5rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1.1875rem;
  }

  .blog-content h2 {
    font-size: 2.25rem;
  }

  .blog-content h3 {
    font-size: 1.75rem;
  }
}

/* =================================================================
   MOBILE NAVIGATION & INTERACTION IMPROVEMENTS
   ================================================================= */

/* Mobile Menu Toggle Button */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
    min-width: 44px;
    min-height: 44px;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 4;
  }

  .main-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 0.875rem 1rem;
    width: 100%;
    min-height: 44px;
    border-radius: 0.375rem;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    background-color: white;
    color: var(--primary-color);
  }
}

/* =================================================================
   TOUCH-FRIENDLY INTERACTIVE ELEMENTS
   ================================================================= */

@media (max-width: 767px) {
  /* All touch targets minimum 44px */
  a,
  button,
  .btn,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Table of Contents - Touch Friendly */
  .table-of-contents a {
    padding: 0.75rem 0;
    display: block;
    min-height: 44px;
  }

  /* Related Cards - Touch Friendly */
  .related-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* =================================================================
   PERFORMANCE OPTIMIZATIONS FOR MOBILE
   ================================================================= */

/* Reduce animations on mobile */
@media (max-width: 767px) {
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }

  .blog-content img,
  .featured-image {
    content-visibility: auto;
    contain: layout style paint;
  }
}

/* Force GPU acceleration */
.blog-hero,
.blog-content,
.table-of-contents {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Optimize scroll performance */
@media (max-width: 767px) {
  .blog-content section {
    contain: content;
  }
}

/* =================================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================================= */

/* Focus states for all interactive elements */
a:focus,
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .blog-content p,
  .blog-content li {
    color: #000;
  }

  .blog-content a {
    text-decoration: underline;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-white: #1f2937;
    --bg-light: #111827;
  }
}

/* =================================================================
   IMAGE OPTIMIZATION FOR MOBILE
   ================================================================= */

@media (max-width: 767px) {
  .featured-image,
  .blog-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Lazy loading support */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print Styles for Blog Posts */
@media print {
  .blog-post {
    background-color: white;
  }

  .blog-hero,
  .blog-content,
  .table-of-contents {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .cta-box,
  .related-posts,
  .site-header,
  .site-footer {
    display: none;
  }

  .blog-content a {
    color: black;
    text-decoration: underline;
  }
}

/* =================================================================
   MOBILE OVERFLOW FIX - INLINE STYLES OVERRIDE
   ================================================================= */
@media (max-width: 479px) {
  /* Override inline grid styles that cause overflow */
  .blog-content div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    max-width: 100% !important;
  }

  /* Override inline flex styles */
  .blog-content div[style*="display: flex"] {
    flex-direction: column !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  /* Override inline padding that causes overflow */
  .blog-content div[style*="padding"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Override inline width/min-width styles */
  .blog-content div[style*="min-width"],
  .blog-content div[style*="width"] {
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Fix stat boxes that overflow */
  .blog-content > div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"],
  .blog-content section > div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* Fix icon-based list items */
  .blog-content div[style*="border-left"] {
    padding: 15px 10px !important;
    border-left-width: 3px !important;
  }

  /* Fix numbered steps */
  .blog-content div[style*="min-width: 40px"] {
    min-width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }

  /* Fix tables with inline styles */
  .blog-content table[style] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
  }

  .blog-content table[style] td,
  .blog-content table[style] th {
    padding: 10px !important;
    font-size: 14px !important;
  }

  /* Fix season comparison boxes */
  .blog-content div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* Fix decision guide boxes */
  .blog-content div[style*="grid-template-columns: 1fr 1fr"] > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* CRITICAL: Prevent any section from overflowing */
  .blog-content section {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Fix table of contents overflow */
  .table-of-contents {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 15px !important;
  }

  .table-of-contents ul {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .table-of-contents li {
    max-width: 100% !important;
    word-wrap: break-word !important;
  }

  .table-of-contents a {
    max-width: 100% !important;
    word-wrap: break-word !important;
  }

  /* Fix any remaining divs in content */
  .blog-content > div,
  .blog-content section > div {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Fix images in content */
  .blog-content img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  /* Nuclear option: force all children to respect width */
  .blog-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* But preserve normal behavior for text elements */
  .blog-content p,
  .blog-content h1,
  .blog-content h2,
  .blog-content h3,
  .blog-content h4,
  .blog-content span,
  .blog-content a,
  .blog-content li,
  .blog-content strong,
  .blog-content em {
    width: auto !important;
  }
}
