/* Mampilly Medical Centre - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom primary color utilities (supplement Tailwind config) */
:root {
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
}

/* Navigation active state */
.nav-link.active {
  color: #4338ca;
  font-weight: 600;
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.82) 0%, rgba(30, 27, 75, 0.72) 100%);
}

/* Card hover effects */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(67, 56, 202, 0.15);
}

/* Review card */
.review-card {
  transition: box-shadow 0.2s ease;
}
.review-card:hover {
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.12);
}

/* Gallery grid image */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.75rem;
}
.gallery-item img {
  transition: transform 0.35s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.active {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#lightbox-close:hover {
  opacity: 1;
}
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

/* Star rating */
.star-filled {
  color: #f59e0b;
}
.star-empty {
  color: #d1d5db;
}
.star-half {
  color: #f59e0b;
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Map iframe */
.map-container iframe {
  border: none;
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
}

/* Section divider */
.section-divider {
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, #4338ca, #6366f1);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* Button primary */
.btn-primary {
  background-color: #4338ca;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #3730a3;
  transform: translateY(-1px);
}

/* Button outline */
.btn-outline {
  border: 2px solid #4338ca;
  color: #4338ca;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: #4338ca;
  color: #ffffff;
}

/* Button white (for hero) */
.btn-white {
  background-color: #ffffff;
  color: #4338ca;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 1rem;
}
.btn-white:hover {
  background-color: #e0e7ff;
  transform: translateY(-2px);
}

/* Page hero (non-home pages) */
.page-hero {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 60%, #1e1b4b 100%);
  padding: 5rem 1rem 3.5rem;
  text-align: center;
  color: #fff;
}

/* Footer */
footer a:hover {
  color: #a5b4fc;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .map-container iframe {
    height: 280px;
  }
}
