/* Hansika Ambulance Services - Main Stylesheet */
/* Emergency Medical Service Website */

/* ========== ROOT VARIABLES ========== */
:root {
  /* Color Scheme */
  --primary-red: #E31E24;
  --primary-red-dark: #C1181D;
  --secondary-blue: #0066CC;
  --secondary-blue-dark: #0052A3;
  --white: #FFFFFF;
  --light-grey: #F5F5F5;
  --medium-grey: #CCCCCC;
  --dark-grey: #333333;
  --success-green: #28A745;
  --whatsapp-green: #25D366;
  
  /* Typography */
  --font-primary: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 50px;
  --container-max-width: 1200px;
  
  /* Transitions */
  --transition-speed: 0.3s;
  
  /* Shadows */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========== GLOBAL RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul, ol {
  list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-grey);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ========== UTILITY CLASSES ========== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--dark-grey);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  margin: 10px auto 0;
}

.section-subtitle {
  color: var(--secondary-blue);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
  will-change: transform;
}

.btn-secondary {
  background-color: var(--secondary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-blue-dark);
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  will-change: transform;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
  min-height: 56px;
}

.btn-emergency {
  background-color: var(--primary-red);
  color: var(--white);
  font-size: 1.25rem;
  padding: 18px 36px;
  animation: pulse 2s infinite;
}

.btn-emergency:hover {
  animation: none;
  background-color: var(--primary-red-dark);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(227, 30, 36, 0);
  }
}

/* ========== TOP EMERGENCY BAR ========== */
.emergency-top-bar {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 12px 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1001;
}

.emergency-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.emergency-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.emergency-contact-info {
  display: flex;
  gap: 25px;
  align-items: center;
}

.emergency-contact-info a {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emergency-contact-info a:hover {
  text-decoration: underline;
}

/* ========== MAIN HEADER ========== */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  min-height: 85px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 104px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-red);
  font-family: var(--font-primary);
  line-height: 1.2;
}

.logo-text span:last-child {
  font-size: 1.125rem;
  color: var(--secondary-blue);
  font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu a {
  color: var(--dark-grey);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-red);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width var(--transition-speed) ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Services Dropdown */
.nav-item {
  position: relative;
}

.nav-item.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) translateZ(0);
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 100;
  margin-top: 10px;
  pointer-events: none;
}

.nav-item.has-dropdown.active .dropdown-menu,
.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  color: var(--dark-grey);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-grey);
  color: var(--primary-red);
  padding-left: 30px;
}

.dropdown-menu a::after {
  display: none;
}

/* Header CTA Button */
.header-cta {
  margin-left: 20px;
}

.header-cta .btn-emergency {
  padding: 12px 24px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--dark-grey);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO SECTION & CAROUSEL ========== */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  transform: translateZ(0);
  will-change: auto;
}

.hero-carousel {
  position: relative;
  height: 100%;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
}

.hero-content {
  color: var(--white);
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.carousel-dot.active {
  background-color: var(--white);
  width: 30px;
  border-radius: 6px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backface-visibility: hidden;
}

.carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.prev {
  left: 30px;
}

.carousel-arrow.next {
  right: 30px;
}

/* ========== QUICK ACTIONS SECTION ========== */
.quick-actions {
  background-color: var(--light-grey);
  padding: 40px 0;
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.action-card {
  background-color: var(--white);
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  border-top: 4px solid var(--primary-red);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.action-card:nth-child(2) {
  border-top-color: var(--secondary-blue);
}

.action-card:nth-child(3) {
  border-top-color: var(--whatsapp-green);
}

.action-card:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: var(--card-shadow-hover);
  will-change: transform;
}

.action-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.action-card:nth-child(1) .action-icon {
  color: var(--primary-red);
}

.action-card:nth-child(2) .action-icon {
  color: var(--secondary-blue);
}

.action-card:nth-child(3) .action-icon {
  color: var(--whatsapp-green);
}

.action-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.action-card .btn {
  margin-top: 1rem;
  width: 100%;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.about-text h3 {
  color: var(--secondary-blue);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== FEATURES/USP SECTION ========== */
.features-section {
  background-color: var(--light-grey);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.feature-card:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: var(--card-shadow-hover);
  border-top: 4px solid var(--primary-red);
  will-change: transform;
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.feature-card:hover .feature-icon {
  color: var(--primary-red);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

/* ========== SERVICES SECTION ========== */
.services-section {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.service-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: var(--card-shadow-hover);
  will-change: transform;
}

.service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--secondary-blue);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-content .btn {
  width: 100%;
}

/* ========== PROCESS/HOW WE WORK SECTION ========== */
.process-section {
  background-color: var(--light-grey);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  position: relative;
}

.process-step {
  background-color: var(--white);
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-blue);
}

.process-step p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

/* ========== EQUIPMENT SECTION ========== */
.equipment-section {
  background-color: var(--white);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.equipment-item {
  background-color: var(--light-grey);
  padding: 25px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.equipment-item:hover {
  background-color: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-3px) translateZ(0);
  will-change: transform;
}

.equipment-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.equipment-item:hover .equipment-icon {
  color: var(--white);
}

.equipment-item p {
  font-weight: 600;
  margin: 0;
}

/* ========== SERVICE AREAS SECTION ========== */
.service-areas-section {
  background-color: var(--light-grey);
  padding: 60px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}

.area-item {
  background-color: var(--white);
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  border-left: 3px solid var(--secondary-blue);
}

.area-item:hover {
  background-color: var(--secondary-blue);
  color: var(--white);
  transform: translateX(5px) translateZ(0);
  will-change: transform;
}

.outstation-text {
  text-align: center;
  margin-top: 2rem;
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--secondary-blue);
  font-weight: 600;
  border: 2px dashed var(--secondary-blue);
}

/* ========== EMERGENCY CONTACT STRIP ========== */
.emergency-strip {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c1181d 100%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  margin: 60px 0;
}

.emergency-strip h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.emergency-strip .btn {
  background-color: var(--white);
  color: var(--primary-red);
  font-size: 1.5rem;
  padding: 20px 45px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.emergency-strip .btn:hover {
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  will-change: transform;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
  background-color: var(--white);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.testimonial-card {
  background-color: var(--light-grey);
  padding: 40px 35px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 0.3rem;
}

.testimonial-location {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: #FFD700;
  font-size: 1.2rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-nav button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--secondary-blue);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.testimonial-nav button:hover {
  background-color: var(--primary-red);
  transform: scale(1.1) translateZ(0);
  will-change: transform;
}

/* ========== FOOTER ========== */
.main-footer {
  background-color: var(--dark-grey);
  color: var(--white);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-logo {
  max-width: 338px;
  margin-bottom: 1.5rem;
}

.footer-column p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  display: block;
  transition: all var(--transition-speed) ease;
  padding: 5px 0;
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: #ccc;
}

.footer-contact-item i {
  color: var(--primary-red);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-contact-item strong {
  color: var(--white);
}

/* Service Areas Footer */
.footer-areas {
  background-color: #2a2a2a;
  padding: 30px 0;
  border-top: 1px solid #444;
}

.footer-areas h4 {
  text-align: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  text-align: center;
}

.footer-areas-grid span {
  color: #ccc;
  font-size: 0.85rem;
  padding: 8px;
  transition: color var(--transition-speed) ease;
}

.footer-areas-grid span:hover {
  color: var(--primary-red);
}

/* Bottom Footer */
.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ========== FLOATING ACTION BUTTONS ========== */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateZ(0);
  will-change: contents;
}

.floating-call {
  left: 30px;
}

.floating-whatsapp {
  right: 30px;
}

.float-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.float-btn-call {
  background-color: var(--primary-red);
}

.float-btn-whatsapp {
  background-color: var(--whatsapp-green);
}

.float-btn:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: none;
  will-change: transform;
}

.float-btn span {
  font-size: 0.65rem;
  margin-top: 3px;
  font-weight: 600;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-10px) translateZ(0);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 998;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--primary-red);
  transform: translateY(-5px) translateZ(0);
  will-change: transform;
}

/* ========== CONTACT PAGE STYLES ========== */
.contact-hero {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-red));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.contact-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.emergency-contact-box {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.emergency-contact-box h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.emergency-contact-box .phone-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.emergency-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.emergency-buttons .btn {
  min-width: 180px;
}

.contact-form-section {
  background-color: var(--white);
  padding: 60px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.contact-form {
  background-color: var(--light-grey);
  padding: 40px;
  border-radius: 10px;
}

.contact-form h3 {
  color: var(--secondary-blue);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-grey);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.required label::after {
  content: '*';
  color: var(--primary-red);
  margin-left: 4px;
}

.contact-info-box {
  background-color: var(--light-grey);
  padding: 30px;
  border-radius: 10px;
  align-self: start;
}

.contact-info-box h3 {
  color: var(--secondary-blue);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-top: 3px;
}

.contact-info-item div strong {
  display: block;
  color: var(--dark-grey);
  margin-bottom: 5px;
}

.contact-info-item div a {
  color: var(--secondary-blue);
  font-weight: 600;
}

.contact-info-item div a:hover {
  text-decoration: underline;
}

.map-section {
  padding: 60px 0;
  background-color: var(--light-grey);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== SERVICE DETAIL PAGE STYLES ========== */
.service-detail-hero {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-red));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.service-detail-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
}

.service-detail-content {
  padding: 60px 0;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.service-main-content h2 {
  color: var(--secondary-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-main-content h3 {
  color: var(--dark-grey);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.service-main-content ul {
  list-style: none;
  margin: 1rem 0;
}

.service-main-content ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  line-height: 1.6;
}

.service-main-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-sidebar {
  align-self: start;
}

.sidebar-card {
  background-color: var(--light-grey);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.sidebar-card h3 {
  color: var(--secondary-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

.services-list {
  list-style: none;
}

.services-list li {
  margin-bottom: 10px;
}

.services-list li a {
  display: block;
  padding: 12px 15px;
  background-color: var(--white);
  border-radius: 6px;
  color: var(--dark-grey);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  border-left: 3px solid transparent;
}

.services-list li a:hover,
.services-list li a.active {
  background-color: var(--secondary-blue);
  color: var(--white);
  border-left-color: var(--primary-red);
  padding-left: 20px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .about-content {
    gap: 35px;
  }
  
  .contact-layout,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
  }
  
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  /* Emergency Top Bar */
  .emergency-top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  
  .emergency-contact-info {
    flex-direction: column;
    gap: 10px;
  }
  
  /* Header */
  .header-content {
    position: relative;
  }
  
  .logo img {
    height: 84px;
  }
  
  .logo-text span:first-child {
    font-size: 1.65rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1001;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--light-grey);
  }
  
  .nav-menu a {
    display: block;
    padding: 15px 0;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--light-grey);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-item.has-dropdown.active .dropdown-menu {
    max-height: 500px;
  }
  
  .header-cta {
    margin: 20px 0 0 0;
    width: 100%;
  }
  
  .header-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1002;
  }
  
  /* Hero Section */
  .hero-section {
    height: 500px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-arrow.prev {
    left: 15px;
  }
  
  .carousel-arrow.next {
    right: 15px;
  }
  
  /* Sections */
  .quick-actions {
    padding: 30px 0;
    margin-top: -30px;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Emergency Strip */
  .emergency-strip h2 {
    font-size: 1.5rem;
  }
  
  .emergency-strip .btn {
    font-size: 1.25rem;
    padding: 16px 30px;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-areas-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  /* Floating Buttons */
  .float-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .floating-call {
    left: 15px;
  }
  
  .floating-whatsapp {
    right: 15px;
  }
  
  .back-to-top {
    bottom: 90px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  /* Contact Page */
  .emergency-contact-box {
    padding: 30px 20px;
  }
  
  .emergency-contact-box .phone-number {
    font-size: 1.75rem;
  }
  
  .emergency-buttons {
    flex-direction: column;
  }
  
  .emergency-buttons .btn {
    width: 100%;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .map-container {
    height: 300px;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .hero-section {
    height: 450px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .service-card {
    margin: 0 5px;
  }
  
  .float-btn span {
    display: none;
  }
}