/* ==========================================================================
   Loyola Hospital — Professional Clean CSS
   ========================================================================== */

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

:root {
  --blue-dark:   #0a2558;
  --blue-mid:    #1a56a7;
  --blue-light:  #e8f0fe;
  --green:       #1a8f6f;
  --text-dark:   #111827;
  --text-body:   #4b5563;
  --text-muted:  #9ca3af;
  --border:      #e5e7eb;
  --bg-light:    #f9fafb;
  --white:       #ffffff;
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.10);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --transition:  all 0.25s ease;
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
}

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

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }

p { margin-bottom: 1rem; color: var(--text-body); }

a {
  text-decoration: none;
  color: var(--blue-mid);
  transition: var(--transition);
}
a:hover { color: var(--blue-dark); }

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

/* ── Layout Utilities ───────────────────────────────────────────────── */
.section-padding { padding: 80px 0; }
.bg-accent       { background-color: var(--bg-light); }

/* Section heading label */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary-custom {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-primary-custom:hover {
  background: var(--blue-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-custom {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-dark);
}
.btn-outline-custom:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Top Bar ────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 7px 0;
  font-size: 0.82rem;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar i { color: #90cdf4; margin-right: 5px; }

/* ── Navigation ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-mid) !important;
  background: var(--blue-light);
}

/* ── 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(0,0,0,0.68) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-highlight { color: #7ec8f0; }

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
}

/* ── Cards ──────────────────────────────────────────────────────────── */

/* Service card (grid) */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #c7d9f8;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue-mid);
  transition: width 0.3s ease;
}
.service-card:hover::after { width: 100%; }

.service-icon {
  width: 64px; height: 64px;
  background: var(--blue-light);
  color: var(--blue-mid);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--blue-dark);
  color: var(--white);
}
.service-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); }
.service-card p  { font-size: 0.88rem; color: var(--text-body); margin: 0; }

/* Stats box */
.stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue-dark);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

/* Testimonial */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  margin: 10px;
  height: 100%;
}

/* Facility card */
.facility-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.facility-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,88,0.85), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: opacity 0.3s ease;
}
.facility-card:hover img { transform: scale(1.07); }
.facility-card:hover .facility-overlay { opacity: 1; }
.facility-overlay h5 { color: var(--white); margin: 0; }

/* ── Page Header ─────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(rgba(10,37,88,0.82), rgba(10,37,88,0.65)),
              url('../Gallery/loyal-image.webp') center/cover no-repeat;
  padding: 100px 0 70px;
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.breadcrumb {
  background: transparent;
  justify-content: center;
  padding: 0;
}
.breadcrumb-item a { color: rgba(255,255,255,0.75); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #0b1c3d;
  color: #94a3b8;
  padding: 72px 0 0;
}
.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: #90cdf4;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: #90cdf4; padding-left: 4px; }

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 8px;
  margin-right: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
}
.social-icons a:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 50px;
  font-size: 0.85rem;
}
.footer-bottom p { color: #64748b; margin: 0; }

/* ── Floating Buttons ───────────────────────────────────────────────── */
.floating-btn {
  position: fixed;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}
.floating-whatsapp { bottom: 28px; right: 28px; background: #25D366; }
.floating-whatsapp:hover { background: #1da851; color: #fff; transform: scale(1.08); }
.floating-call { bottom: 82px; right: 28px; background: var(--blue-dark); }
.floating-call:hover { background: var(--blue-mid); color: #fff; transform: scale(1.08); }

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-control, .form-select {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(26,86,167,0.12);
}

/* ── Accordion ──────────────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  color: var(--blue-dark);
  background: var(--blue-light);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

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

@media (max-width: 576px) {
  .hero-title { font-size: 1.75rem; line-height: 1.3; }
  .hero-subtitle { font-size: 0.92rem; }
  .section-padding { padding: 52px 0; }
  .floating-btn { bottom: 18px; right: 18px; }
  .floating-whatsapp { bottom: 72px; }
  .page-header h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

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