/* ===== Variables ===== */
:root {
  --red: #8B0000;
  --red-dark: #6B0000;
  --red-light: #A52020;
  --nav-bg: #2c3e50;
  --nav-active: #DC2626;
  --ambulance-red: #DC2626;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--red-dark);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  transition: opacity var(--transition);
}

.top-bar-phone:hover {
  opacity: 0.85;
}

.top-bar-text {
  opacity: 0.85;
}

/* ===== Header & Nav ===== */
.header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
}

.header-logo {
  display: block;
  background: none;
  padding: 6px 0;
  border-radius: 0;
  flex-shrink: 0;
  line-height: 0;
}

.header-logo img {
  width: 170px;
  height: auto;
  display: block;
  object-fit: contain;
}

.preloader-logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-logo {
  display: block;
  width: 180px;
  height: 180px;
  background: none;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 4px;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--nav-active);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--nav-active);
  border-radius: 1px;
}

.dropdown-icon {
  transition: transform var(--transition);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--gray-800);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--gray-50);
  color: var(--red);
  padding-left: 28px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 20px auto 0;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--red);
  border-radius: 2px;
  animation: preload 1s ease infinite;
}

@keyframes preload {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===== Emergency Strip ===== */
.emergency-strip {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}

.emergency-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.emergency-strip a {
  color: var(--white);
  font-weight: 700;
}

.emergency-pulse {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.emergency-sep {
  opacity: 0.5;
}

/* ===== Top Bar Extended ===== */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
}

.top-bar-address {
  opacity: 0.85;
}

.top-bar-social {
  color: var(--white);
  font-weight: 600;
  opacity: 0.9;
}

.top-bar-social:hover {
  opacity: 1;
}

/* ===== Nav CTA ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.nav-cta-btn:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,62,80,0.92) 0%, rgba(26,37,47,0.85) 50%, rgba(107,0,0,0.75) 100%);
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 24px;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: var(--ambulance-red);
  border: 1px solid rgba(220, 38, 38, 0.45);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--nav-active);
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.hero-card-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-item strong {
  display: block;
  font-size: 0.95rem;
}

.hero-card-item span {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ===== Stats ===== */
.stats {
  background: var(--red);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: var(--white);
}

.stat-item {
  padding: 16px;
}

.stat-counter, .stat-counter-sm {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat-plus, .stat-slash {
  font-size: 2rem;
  font-weight: 800;
}

.stat-text {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== Features ===== */
.features {
  padding: 60px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(220, 38, 38, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(139, 0, 0, 0.08);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== Section Common ===== */
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
}

/* ===== About ===== */
.about {
  padding: 80px 0;
  background: var(--gray-50);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.about-image-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-image-badge small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.mvv-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.mvv-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.mvv-card h3 {
  color: var(--gray-900);
  margin-bottom: 12px;
}

.mvv-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gray-900);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-list {
  margin-top: 24px;
}

.about-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--gray-800);
  font-weight: 500;
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== Process ===== */
.process {
  padding: 80px 0;
  background: var(--white);
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 24px 16px;
}

.process-number {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.process-arrow {
  font-size: 1.5rem;
  color: var(--gray-400);
  padding-top: 40px;
}

/* ===== Services ===== */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.service-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.12) rotate(1deg);
}

.service-card:hover .service-image-overlay {
  opacity: 1;
}

.service-body {
  padding: 24px 28px 32px;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(-5deg);
}

.service-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--red-dark);
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(139, 0, 0, 0.15);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery {
  padding: 80px 0;
  background: var(--gray-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Team ===== */
.team {
  padding: 80px 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--gray-50);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.team-avatar {
  font-size: 3rem;
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 80px 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author strong {
  display: block;
  color: var(--gray-900);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===== CTA ===== */
.cta {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-inner {
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 40px 20px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--red);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Blog ===== */
.blog {
  padding: 80px 0;
  background: var(--gray-50);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-image-link {
  display: block;
  height: 200px;
  overflow: hidden;
}

.blog-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-link img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px 28px 28px;
}

.blog-card h3 a {
  color: var(--gray-900);
  transition: color var(--transition);
}

.blog-card h3 a:hover {
  color: var(--red);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.blog-link {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.blog-link:hover {
  color: var(--red-dark);
}

/* ===== Contact ===== */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 0, 0, 0.08);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  padding: 0;
}

.contact-icon--whatsapp img {
  width: 32px;
  height: 32px;
  display: block;
}

.contact-item strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--red);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--gray-50);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group select {
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-container {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
}

.sem-map {
  width: 100%;
  height: 400px;
  z-index: 1;
}

.sem-map-marker {
  background: none !important;
  border: none !important;
}

.sem-map-marker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
  transform-origin: 50% 36px;
}

.sem-map-marker-inner:hover {
  transform: scale(1.05);
}

.sem-map-pin {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--ambulance-red);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
  z-index: 2;
}

.sem-map-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  top: 9px;
  left: 9px;
}

.sem-map-label {
  background: var(--ambulance-red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  border: 2px solid var(--white);
  margin-top: 6px;
  z-index: 1;
}

.sem-map-popup {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.sem-map-popup strong {
  display: block;
  color: var(--ambulance-red);
  font-size: 1rem;
  margin-bottom: 6px;
}

.sem-map-popup span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.map-open-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--gray-50);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid var(--gray-200);
  transition: background var(--transition), color var(--transition);
}

.map-open-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ===== Footer ===== */
.footer {
  background: var(--nav-bg);
  color: var(--white);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: var(--nav-active);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-services ul li {
  margin-bottom: 8px;
}

.footer-services a {
  opacity: 0.8;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.footer-services a:hover {
  opacity: 1;
  color: var(--nav-active);
}

.footer-brand p {
  margin-top: 16px;
  opacity: 0.75;
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--nav-active);
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--nav-active);
}

.footer-contact p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--nav-active);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 0.875rem;
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform var(--transition);
  animation: whatsappPulse 2s infinite;
  line-height: 0;
}

.whatsapp-btn img {
  width: 60px;
  height: 60px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(37, 211, 102, 0.45));
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn:hover img {
  filter: drop-shadow(0 6px 24px rgba(37, 211, 102, 0.6));
}

@keyframes whatsappPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(37, 211, 102, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(37, 211, 102, 0.45)); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--gray-900);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-tooltip img {
  flex-shrink: 0;
  display: block;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: var(--radius);
}

.lightbox p {
  color: var(--white);
  margin-top: 16px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--nav-bg);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--red);
  transform: translateY(-3px);
}

/* ===== Fade In Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Marquee Strip ===== */
.marquee-strip {
  background: var(--nav-bg);
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 2px solid var(--ambulance-red);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  transition: color 0.3s ease, transform 0.3s ease;
}

.marquee-track span:hover {
  color: var(--ambulance-red);
  transform: scale(1.05);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Hero Particles ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ambulance-red);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle 8s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 60%; left: 25%; animation-delay: 1.5s; width: 8px; height: 8px; }
.hero-particles span:nth-child(3) { top: 30%; left: 70%; animation-delay: 3s; }
.hero-particles span:nth-child(4) { top: 75%; left: 55%; animation-delay: 0.8s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { top: 45%; left: 85%; animation-delay: 2.2s; }

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-10px, -35px) scale(0.9); opacity: 0.4; }
  75% { transform: translate(20px, -15px) scale(1.1); opacity: 0.5; }
}

.hero-bg {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ===== Tilt Cards ===== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card.tilt-active {
  box-shadow: var(--shadow-lg);
}

/* ===== Gallery Enhanced ===== */
.gallery-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-overlay {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Team & MVV Hover ===== */
.mvv-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mvv-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.mvv-card:hover .mvv-icon {
  transform: scale(1.3) rotate(10deg);
  display: inline-block;
  transition: transform 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.team-card:hover .team-avatar {
  transform: scale(1.15);
  transition: transform 0.4s ease;
  display: inline-block;
}

.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.process-step:hover .process-number {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.process-number {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.about-image {
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

.about-image-badge {
  animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-card-item {
  transition: transform 0.3s ease, background 0.3s ease;
  border-radius: 8px;
  padding: 8px;
}

.hero-card-item:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,0.08);
}

.hero-card-icon {
  transition: transform 0.4s ease;
}

.hero-card-item:hover .hero-card-icon {
  transform: scale(1.2) rotate(-10deg);
}

/* ===== Footer Credit ===== */
.footer-credit {
  opacity: 0.85;
}

.webgenzy-link {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.webgenzy-link .wg-pink {
  color: #E91E8C;
}

.webgenzy-link .wg-white {
  color: #ffffff;
}

.webgenzy-link:hover .wg-pink {
  color: #ff4db8;
}

.webgenzy-link:hover .wg-white {
  color: #ffffff;
  opacity: 0.9;
}

.footer-bottom p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== Contact & FAQ hover ===== */
.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
}

.contact-item:hover .contact-icon {
  transform: rotate(10deg) scale(1.1);
  background: rgba(220, 38, 38, 0.15);
}

.contact-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item {
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: var(--gray-50);
}

.faq-item.active .faq-question {
  color: var(--ambulance-red);
}

/* ===== EKG Line Animation ===== */
.hero h1 span {
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ambulance-red), transparent);
  animation: ekgPulse 2s ease-in-out infinite;
}

@keyframes ekgPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-card {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-card-item {
    flex: 1;
    min-width: 200px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-arrow {
    display: none;
  }

  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-text {
    display: none;
  }

  .header-logo img {
    width: 140px;
  }

  .preloader-logo {
    width: 180px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 14px 16px;
  }

  .nav-link.active::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    min-width: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--nav-active);
    padding-left: 24px;
  }

  .emergency-strip-inner span:not(.emergency-pulse):not(.emergency-sep) {
    display: none;
  }

  .top-bar-address, .top-bar-divider {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-wrapper {
    padding: 60px 24px;
  }

  .features {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item-lg {
    grid-column: span 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo {
    width: 150px;
    height: 150px;
  }

  .footer-bottom p {
    flex-direction: column;
    gap: 8px;
  }

  .marquee-track span {
    font-size: 0.8rem;
  }

  .service-image {
    height: 160px;
  }
}
