/* Home Services Theme CSS */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #FF6B35;
  --primary-color-rgb: 255, 107, 53;
  --primary-dark: #e55a2b;
  --secondary-color: #2E3192;
  --secondary-color-rgb: 46, 49, 146;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #1A1A1A;
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  
  /* Shadows */
  --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 15px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: #fff;
}

.container {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 0 20px !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  /* Fallback background when no image is available */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* Fallback background color */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--spacing-xxl) 0;
  width: 100%;
}

.hero-content .container {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 0 20px !important;
}

.hero-content .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  align-items: center;
  min-height: 60vh;
}

.hero-content .col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
  text-align: left;
}

.hero-content .col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  text-align: left;
}

.hero-text-content {
  padding-right: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: flex-start;
}

.hero-badges .badge {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  justify-content: flex-start;
}

.hero-contact-card {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  color: var(--dark-color);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.hero-contact-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
  text-decoration: none;
  display: block;
  margin: var(--spacing-md) 0;
}

.service-area {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-top: var(--spacing-md);
}

/* ===== SECTION STYLING ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: #f8f9fa;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-image::before {
  content: '\f0ad';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  z-index: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  position: relative;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: scale(0);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(var(--primary-color-rgb), 0.35);
}

.service-card:hover .service-icon::after {
  transform: scale(2);
}

.service-content h4 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-card:hover .service-content h4 {
  color: var(--primary-color);
}

.service-content p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-features {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.service-card:hover .service-features {
  border-color: var(--primary-color);
}

.service-features .price {
  font-weight: 700;
  color: #28a745;
  font-size: 1.1rem;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid rgba(40, 167, 69, 0.2);
}

.emergency-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5722 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.service-features .service-type {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.service-card .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.service-card .btn i {
  transition: transform 0.3s ease;
}

.service-card:hover .btn {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.service-card:hover .btn i {
  transform: translateX(4px);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
}

/* Service cards grid enhancements */
@media (min-width: 992px) {
  .services-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .services-section .col-xl-4,
  .services-section .col-lg-4,
  .services-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .services-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 767px) {
  .services-section .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Additional grid enhancements for other sections */
/* Service Areas Grid */
@media (min-width: 992px) {
  .service-areas-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .service-areas-section .col-xl-4,
  .service-areas-section .col-lg-4,
  .service-areas-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .service-areas-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Team Section Grid */
@media (min-width: 992px) {
  .team-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .team-section .col-xl-3,
  .team-section .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Special Offers Grid */
@media (min-width: 992px) {
  .offers-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .offers-section .col-xl-4,
  .offers-section .col-lg-4,
  .offers-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .offers-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Why Choose Us Grid */
@media (min-width: 992px) {
  .why-choose-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .why-choose-section .col-xl-3,
  .why-choose-section .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Mobile responsive for About section */
@media (max-width: 991px) {
  .about-content {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .about-placeholder {
    height: 300px;
  }
  
  .about-placeholder i {
    font-size: 4rem;
  }
  
  .credentials-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  
  .credential-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 60px 0;
  }
  
  .about-placeholder {
    height: 250px;
  }
  
  .about-placeholder i {
    font-size: 3rem;
  }
  
  .highlight-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .highlight-item i {
    font-size: 1.25rem;
  }
  
  .about-content .section-title {
    font-size: 2rem;
  }
  
  .about-content .lead {
    font-size: 1.1rem;
  }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--light-color);
  padding: 80px 0;
}

.about-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.about-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

.about-placeholder i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

.credentials-overlay {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 3;
  flex-wrap: wrap;
  justify-content: center;
}

.credential-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-content {
  padding-left: 2rem;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.about-content .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
}

.about-highlights {
  margin: var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== SERVICES OVERVIEW SECTION ===== */
.services-overview {
  background: var(--light-color);
}

.services-overview h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.services-overview .lead {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xl);
}

/* ===== SERVICE HIGHLIGHTS ===== */
.service-highlights {
  margin: var(--spacing-xl) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlights-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.highlight-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.highlight-item i {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.highlight-item div {
  flex: 1;
}

.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.highlight-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon i {
  font-size: 1.5rem;
  color: white;
}

.highlight-content {
  flex: 1;
  text-align: left;
}

.highlight-content h5 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
}

.highlight-content p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1rem;
  line-height: 1.5;
}

.about-highlights {
  margin: var(--spacing-xl) 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: #fff;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
}

.testimonial-content {
  position: relative;
}

.rating {
  margin-bottom: var(--spacing-md);
}

.rating i {
  color: var(--warning-color);
  margin-right: var(--spacing-xs);
}

.testimonial-content p {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info strong {
  display: block;
  color: var(--dark-color);
  margin-bottom: var(--spacing-xs);
}

.author-info span {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.service-type {
  background: var(--light-color);
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--light-color);
}

.accordion-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.accordion-button {
  background: #fff;
  border: none;
  padding: var(--spacing-lg);
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);;
  color: white;
}

.accordion-button:focus {
  outline: none;
  box-shadow: none;
}

.accordion-body {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--secondary-color);
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: #fff;
}

.team-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  height: 250px;
  overflow: hidden;
  /* Fallback background when no team image */
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5a6268 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-image::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 4rem;
  color: white;
  opacity: 0.3;
  position: absolute;
  z-index: 1;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.team-placeholder {
  height: 250px;
  background: linear-gradient(135deg, var(--secondary-color), #5a6268);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

.team-info {
  padding: var(--spacing-xl);
}

.team-info h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--dark-color);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.team-specialty {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
}

.cert-badge {
  background: var(--light-color);
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
  background: var(--light-color);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
}

.feature-card:hover .feature-icon::before {
  transform: translateX(100%);
}

.feature-card h4 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  font-size: 1.25rem;
}

.feature-card p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

.feature-box {
  text-align: center;
  padding: var(--spacing-xl);
}

.feature-box .feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: 2rem;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.feature-box h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.feature-box p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== OFFERS SECTION ===== */
.offers-section {
  background: #fff;
}

.offer-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.offer-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 0 var(--border-radius-lg);
}

.offer-content {
  padding: var(--spacing-xxl) var(--spacing-xl) var(--spacing-xl);
  text-align: center;
}

.offer-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.offer-content p {
  font-size: 1.125rem;
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
}

.offer-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.offer-content li {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
  position: relative;
  padding-left: var(--spacing-lg);
}

.offer-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background: var(--light-color);
}

.blog-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  overflow: hidden;
  /* Fallback background when no blog image */
  background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-image::before {
  content: '\f15c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: white;
  opacity: 0.3;
  position: absolute;
  z-index: 1;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: var(--spacing-xl);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.blog-date {
  color: var(--secondary-color);
}

.blog-category {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
}

.blog-content h4 {
  margin-bottom: var(--spacing-md);
}

.blog-content h4 a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.blog-content h4 a:hover {
  color: var(--primary-color);
}

.blog-content p {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
}

/* ===== APPOINTMENT SECTION ===== */
.appointment-section {
  background: #fff;
}

.appointment-form-card {
  background: #fff;
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-sidebar {
  padding-left: var(--spacing-xl);
}

.contact-card,
.service-area-card,
.hours-card {
  background: var(--light-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-xl);
}

.contact-card h4,
.service-area-card h4,
.hours-card h4 {
  margin-bottom: var(--spacing-lg);
  color: var(--dark-color);
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.phone-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.phone-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.emergency-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--danger-color);
  text-decoration: none;
}

.service-areas {
  list-style: none;
  padding: 0;
}

.service-areas li {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.service-areas i {
  color: var(--primary-color);
  margin-right: var(--spacing-sm);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #dee2e6;
}

.hour-item:last-child {
  border-bottom: none;
}

/* ===== FORMS ===== */
.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: var(--spacing-sm);
}

.form-control,
.form-select {
  padding: var(--spacing-md);
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xxl);
  font-size: 1.125rem;
}

/* ===== EMERGENCY FLOAT ===== */
.emergency-float {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
}

#back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== UTILITIES ===== */
/* Image fallback utilities */
.img-fallback {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--secondary-color);
}

.img-fallback::before {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2rem;
  opacity: 0.3;
}

/* Hide broken image icons */
img {
  font-size: 0;
}

img::before {
  content: '';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

img::after {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--secondary-color);
  opacity: 0.3;
}

/* Gallery/Portfolio image fallbacks */
.gallery-item {
  background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gallery-item::before {
  content: '\f302';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: white;
  opacity: 0.4;
  position: absolute;
  z-index: 1;
}

.gallery-item img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo fallback */
.logo-container {
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: var(--border-radius);
  font-weight: 700;
}

.logo-container::before {
  content: '\f0ad';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
}

/* Testimonial avatar fallback */
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.testimonial-avatar::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 1.5rem;
  opacity: 0.8;
}

.testimonial-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Enhanced image error handling */
img[src=""], img:not([src]), img[src*="placeholder"] {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
  position: relative;
  display: inline-block;
  min-height: 100px;
  min-width: 100px;
}

img[src=""]:before, img:not([src]):before, img[src*="placeholder"]:before {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--secondary-color);
  opacity: 0.3;
}

/* Specific fallbacks for different sections */
.hero-section img[src=""], .hero-section img:not([src]) {
  display: none;
}

.service-image img[src=""], .service-image img:not([src]) {
  display: none;
}

.team-image img[src=""], .team-image img:not([src]) {
  display: none;
}

.blog-image img[src=""], .blog-image img:not([src]) {
  display: none;
}

.about-image img[src=""], .about-image img:not([src]) {
  display: none;
}

/* JavaScript-triggered fallback classes */
.hero-fallback {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.service-image-fallback {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%) !important;
}

.service-image-fallback::after {
  content: '\f0ad';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.team-image-fallback {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5a6268 100%) !important;
}

.team-image-fallback::after {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 4rem;
  color: white;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.blog-image-fallback {
  background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%) !important;
}

.blog-image-fallback::after {
  content: '\f15c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: white;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.about-image-fallback {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%) !important;
}

.about-image-fallback::after {
  content: '\f0c0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 5rem;
  color: var(--secondary-color);
  opacity: 0.2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.py-5 {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: left;
}

.text-end {
  text-align: right;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.text-white {
  color: white !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px !important;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 1000px !important;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 800px !important;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-contact-card {
    margin-top: var(--spacing-xl);
  }
  
  .contact-sidebar {
    padding-left: 0;
    margin-top: var(--spacing-xl);
  }
  
  .testimonials-carousel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 700px !important;
    padding: 0 18px !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .service-features {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .highlight-item {
    text-align: center;
    flex-direction: column;
  }
  
  .testimonial-author {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .emergency-float {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
  
  .emergency-float .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  
  .hero-content {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .appointment-form-card {
    padding: var(--spacing-xl);
  }
  
  .service-content,
  .team-info,
  .offer-content,
  .blog-content {
    padding: var(--spacing-lg);
  }
  
  .about-placeholder {
    height: 300px;
  }
  
  .about-placeholder i {
    font-size: 4rem;
  }
  
  .credentials-overlay {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* ===== GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-12 {
  width: 100%;
  padding: 0 15px;
}

.col-lg-3 {
  width: 25%;
  padding: 0 15px;
}

.col-lg-4 {
  width: 33.333333%;
  padding: 0 15px;
}

.col-lg-6 {
  width: 50%;
  padding: 0 15px;
}

.col-lg-8 {
  width: 66.666667%;
  padding: 0 15px;
}

/* ===== RESPONSIVE STYLES ===== */
/* Tablets and small laptops */
@media (max-width: 991.98px) {
  .hero-content .col-lg-8,
  .hero-content .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  /* Service highlights tablet styles */
  .highlight-item {
    padding: var(--spacing-lg);
  }
  
  .highlight-icon {
    width: 50px;
    height: 50px;
  }
  
  .highlight-icon i {
    font-size: 1.25rem;
  }
}

/* Mobile devices */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-badges {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-contact-card {
    margin-top: var(--spacing-xl);
  }
  
  /* Service highlights mobile styles */
  .service-highlights {
    margin: var(--spacing-lg) 0;
  }
  
  .highlights-container {
    gap: var(--spacing-lg);
  }
  
  .highlight-item {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .highlight-icon {
    margin-bottom: var(--spacing-sm);
  }
  
  .highlight-content {
    text-align: center;
  }
}

.col-md-6 {
  width: 50%;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .col-lg-3,
  .col-lg-4,
  .col-lg-6,
  .col-lg-8 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .col-md-6 {
    width: 100%;
  }
}