/* ==========================================================================
   Loyola Hospital - Premium CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #0D6EFD;
  --secondary-color: #00B894;
  --accent-color: #F8FAFC;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(13, 110, 253, 0.1), 0 8px 10px -6px rgba(13, 110, 253, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Base Styles */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.section-padding {
  padding: 80px 0;
}

.bg-accent {
  background-color: var(--accent-color);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* Buttons */
.btn-custom {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #0D6EFD 0%, #0056b3 100%);
  color: var(--white);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #00B894 0%, #008f73 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Top Bar */
.top-bar {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar a {
  color: var(--white);
}

.top-bar i {
  color: var(--secondary-color);
  margin-right: 5px;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 5px 0;
}

.navbar-brand img {
  height: 80px;
  transition: var(--transition);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 15px !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 37, 88, 0.85) 0%, rgba(10, 37, 88, 0.5) 100%);
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.9), 0px 1px 3px rgba(0,0,0,1);
}

.hero-highlight {
  color: #00d2ff;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.9), 0px 1px 3px rgba(0,0,0,1);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #ffffff;
  max-width: 650px;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.9), 0px 1px 3px rgba(0,0,0,1);
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* Facilities Gallery */
.facility-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.facility-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.2));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: var(--transition);
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-card:hover .facility-overlay {
  opacity: 1;
}

.facility-overlay h5 {
  color: var(--white);
  margin: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.facility-card:hover .facility-overlay h5 {
  transform: translateY(0);
}

/* Statistics Counter */
.stat-box {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--secondary-color);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin: 15px;
  border: 1px solid var(--accent-color);
}

.quote-icon {
  color: rgba(13, 110, 253, 0.1);
  font-size: 3rem;
  position: absolute;
  top: 20px;
  right: 20px;
}

.patient-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Footer */
.site-footer {
  background-color: #0b1c3d;
  color: #a0aec0;
  padding: 80px 0 20px;
}

.site-footer h5 {
  color: var(--white);
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aec0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 40px;
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp {
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
}

.floating-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.1);
}

.floating-call {
  bottom: 85px;
  right: 30px;
  background-color: var(--primary-color);
}

.floating-call:hover {
  background-color: #0b5ed7;
  color: white;
  transform: scale(1.1);
}

#backToTop {
  bottom: 30px;
  left: 30px;
  background-color: var(--text-dark);
  opacity: 0;
  visibility: hidden;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* Breadcrumb */
.page-header {
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('../Gallery/loyal-image.webp') center/cover no-repeat;
  background-attachment: fixed;
  padding: 120px 0 80px;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.breadcrumb {
  background: transparent;
  justify-content: center;
  padding: 0;
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* Form Styles */
.form-control, .form-select {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Doctor Card */
.doctor-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.doctor-img-wrap {
  position: relative;
  overflow: hidden;
}

.doctor-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.doctor-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(to top, rgba(13, 110, 253, 0.9), transparent);
  transition: var(--transition);
}

.doctor-card:hover .doctor-social {
  bottom: 0;
}

.doctor-social a {
  width: 35px;
  height: 35px;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-social a:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.doctor-info {
  padding: 25px;
  text-align: center;
}

.doctor-info h4 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.doctor-info p {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 0;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--accent-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.1);
}

.accordion-item {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--border-radius) !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .top-bar {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  .section-padding {
    padding: 50px 0;
  }
  .floating-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  .floating-whatsapp {
    bottom: 75px;
  }
}

.ratio-9x16 {
  --bs-aspect-ratio: 177.77%;
}
