/* Gurukripa Medical Trust - Custom Styles */

/* Color Variables */
:root {
  --primary: #E53935;
  --primary-dark: #C62828;
  --primary-light: #EF5350;
  --dark: #1a1a2e;
  --dark-blue: #16213e;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f0f0;
  --white: #ffffff;
  --border: #e0e0e0;
}

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.85rem;
}

.top-bar a { color: #ccc; transition: color 0.2s; }
.top-bar a:hover { color: var(--white); }

/* Navigation */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 50;
  padding: 0.5rem 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  transition: background 0.2s;
}
.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }
.mobile-dropdown-menu { display: none; }
.mobile-dropdown-menu.active { display: block; }

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 500px;
}
@media (max-width: 768px) {
  .hero-slider { height: 300px; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  display: flex;
  align-items: center;
  padding: 0 2rem;
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dot.active { background: var(--primary); }

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Stats Counter */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Team Cards */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  background: none;
  border: none;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  border: none;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scroll-top.visible { display: flex; }

/* Footer */
.footer {
  background: var(--dark);
  color: #ccc;
}
.footer a { color: #ccc; transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer h3 { color: var(--white); }

/* Breadcrumb */
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Feature boxes */
.feature-box {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.feature-box:hover { transform: translateY(-2px); }

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-item img { height: 150px; }
}
