* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d5 100%);
  color: #2c2c2c;
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(135deg, #fff 0%, #f9f7f4 100%);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.logo-container:hover {
  opacity: 0.9;
}

/* General responsive styling */
.logo-img {
  max-width: 10%; /* Prevents overflow */
  height: auto; /* Keeps aspect ratio */
  margin-right: 15px;
}

.logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.title p {
  font-size: 0.7rem;
}

.title div {
  font-size: 24px;
  font-weight: 600;
  color: #d4051b;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav {
  /* enable this when adding services dropdown again */
  /* flex: 1; */
  margin: 0 2rem; /* remove this after service dropdown */
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #5d4037;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: block;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(139, 69, 19, 0.1);
  color: #8b4513;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #5d4037;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Overlay - Fixed initial state */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Menu - Fixed initial state */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #fff 0%, #f9f7f4 100%);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 80px 0 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: block;
  color: #5d4037;
  text-decoration: none;
  padding: 15px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: rgba(139, 69, 19, 0.1);
  color: #8b4513;
  padding-left: 35px;
}

/* Mobile Services Submenu */
.mobile-services-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: #5d4037;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 25px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-services-toggle:hover {
  background: rgba(139, 69, 19, 0.1);
  color: #8b4513;
}

.services-arrow {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 12px;
}

.mobile-services-toggle.active .services-arrow {
  transform: rotate(180deg);
}

.mobile-services-submenu {
  max-height: 0;
  overflow: hidden;
  background: #f8f6f0;
  transition: max-height 0.3s ease;
}

.mobile-services-submenu.active {
  max-height: 500px;
}

.mobile-submenu-link {
  display: block;
  color: #666;
  text-decoration: none;
  padding: 12px 35px;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e8e2d5;
}

.mobile-submenu-link:hover {
  background: rgba(139, 69, 19, 0.05);
  color: #8b4513;
  padding-left: 45px;
}

.mobile-submenu-link:last-child {
  border-bottom: none;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #5d4037;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
}

.dropdown-item:hover {
  background: rgba(139, 69, 19, 0.05);
  color: #8b4513;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 10px 20px;
}

/* Footer Content */
.footer {
  display: flex;
  justify-content: center;
}

/* Hero Section */
.hero {
  display: flex;
  padding: 40px 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 246, 240, 0.9) 100%
  );
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  max-width: 100%;
}

.hero h1 {
  font-size: 36px;
  color: #8b4513;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero h3 {
  font-size: 18px;
  color: #666;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.hero p {
  font-size: 18px;
  color: #666;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
}

.we-serve-details {
  text-align: left;
  font-size: 18px;
  color: #666;
}

.we-serve-details p {
  margin-bottom: 1rem;
}

.we-serve-details ul {
  margin-left: 2rem;
}

.hero-img {
  border: 2px solid #8b4513;
  box-shadow: 1px 1px 8px 0px #5f4c4c;
  border-radius: 10px;
  max-width: 100%; /* Prevents overflow */
  height: auto; /* Keeps aspect ratio */
  margin-right: 15px;
}

.cta-buttons {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
}

.cta-button {
  background: #f8f6f0;
  color: #8b4513;
  padding: 12px 30px;
  border: 1px solid #8b4513;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
  width: 15rem;
}

.cta-button:hover,
.cta-button:active {
  background: #8b4513;
  color: #f8f6f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
}

.hero-ambulance {
  padding: 10px 0 0px 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Services Section */
.services-section {
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  scroll-margin-top: 100px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #8b4513;
  margin-bottom: 40px;
  font-weight: 300;
}

.remove-margin-bottom {
  margin-bottom: 0;
}

.section-subtitle {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  font-weight: 300;
}

.section-header {
  display: flex;
  justify-content: center;
}

.amount {
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 246, 240, 0.9) 100%
  );
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 5px solid #d2691e;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d2691e 0%, #8b4513 100%);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-left-color: #8b4513;
}

.service-card h3 {
  color: #8b4513;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.service-card h3 .service-icon {
  font-size: 28px;
  flex-shrink: 0;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h4 {
  color: #8b4513;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.service-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Individual Service Section */
.service-detail {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.service-detail h3 {
  text-align: center;
  font-size: 22px;
  color: #8b4513;
  margin-bottom: 20px;
  font-weight: 300;
}

.service-detail p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
}

/* Image Gallery Section */
.gallery-section {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  scroll-margin-top: 100px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Section */
.contact-info {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.contact-info h2 {
  margin-bottom: 20px;
  font-weight: 500;
}

.contact-details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.contact-item {
  flex: 1;
  min-width: 200px;
}

.contact-item h4 {
  margin-bottom: 10px;
  color: #ffe4b5;
}

/* Contact Cards Styling */
.contact-cards {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Om Symbol Decoration */
.om-decoration {
  text-align: center;
  font-size: 24px;
  color: #d2691e;
  margin: 30px 0;
  opacity: 0.7;
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-content {
    padding: 15px 20px;
  }

  .nav {
    display: flex;
  }

  .nav-list {
    display: flex;
    gap: 15px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .dropdown {
    min-width: 220px;
  }

  .dropdown-item {
    padding: 10px 15px;
    font-size: 13px;
  }

  .mobile-menu-toggle,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .service-card {
    padding: 25px;
  }

  .service-card h3 {
    font-size: 18px;
    gap: 10px;
  }

  .service-card h3 .service-icon {
    font-size: 24px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 30px 20px;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 20px;
    justify-content: space-between;
  }

  .logo-container {
    margin-right: 0;
    flex: 1;
  }

  .title div {
    font-size: 20px;
  }

  .title p {
    font-size: 0.65rem;
    margin-bottom: 5px;
  }

  .nav {
    display: none !important;
  }

  .hero-ambulance {
    padding: 10px 30px;
  }

  .nav-list {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .mobile-nav,
  .mobile-nav-overlay {
    display: block !important;
  }

  .main-content {
    padding: 20px 15px;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
    padding: 40px 20px;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .remove-margin-bottom {
    margin-bottom: 0;
  }

  .section-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .services-section {
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    gap: 10px;
    flex-direction: row;
    text-align: left;
  }

  .service-card h3 .service-icon {
    font-size: 24px;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-detail {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .service-detail h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .service-detail p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .gallery-section {
    padding: 25px 20px;
    margin-bottom: 30px;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .service-image-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-details {
    flex-direction: column;
    gap: 20px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .service-card h4 {
    font-size: 15px;
  }

  .gallery-images {
    font-size: 14px;
    padding: 15px;
  }

  .logo-img {
    max-width: 7%;
  }

  .we-serve-details {
    font-size: 15px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .header-content {
    padding: 8px 15px;
  }

  .title div {
    font-size: 18px;
  }

  .title p {
    font-size: 0.6rem;
  }

  .main-content {
    padding: 15px 10px;
  }

  .footer {
    padding: 0 10px;
  }

  .hero {
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero h3 {
    font-size: 15px;
  }

  .hero p {
    font-size: 15px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-card h3 {
    font-size: 16px;
    gap: 8px;
  }

  .service-card h3 .service-icon {
    font-size: 20px;
  }

  .service-card p {
    font-size: 13px;
  }

  .service-detail {
    padding: 20px 15px;
  }

  .gallery-section {
    padding: 20px 15px;
  }

  .contact-info {
    padding: 25px 15px;
  }

  .mobile-nav {
    width: 100%;
    right: -100%;
  }

  .section-title {
    font-size: 22px;
  }
  .remove-margin-bottom {
    margin-bottom: 0;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    max-width: 10%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .we-serve-details {
    font-size: 15px;
  }

  .hero-img {
    margin-right: 0;
  }
}
