/* ============================================================
   Great Life Ambulance Service – Shared Stylesheet
   ============================================================ */

:root {
  --primary:      #0a3d91;
  --primary-dark: #062d6e;
  --danger:       #c62828;
  --light-bg:     #f4f7fb;
  --text:         #1c2a3a;
  --muted:        #5a6a7e;
  --white:        #ffffff;
  --shadow:       0 2px 10px rgba(0,0,0,0.10);
  --radius:       0.5rem;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

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

/* ── Navbar ───────────────────────────────────────────────── */
.site-nav {
  background: var(--primary);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .navbar-brand img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.site-nav .brand-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav .nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.18);
  text-decoration: none;
}

.site-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.45);
}

.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero + Carousel merged (index page) ─────────────────── */
.hero-carousel {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,29,80,0.80) 0%, rgba(10,61,145,0.55) 100%);
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-content {
  pointer-events: auto;
  color: #fff;
  padding: 3rem 1rem;
  max-width: 680px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.90;
  margin-bottom: 1.75rem;
}

.btn-hero {
  background: var(--danger);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-hero:hover {
  background: #a31f1f;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.75);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
  margin-left: 0.75rem;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* Carousel controls sit above the hero overlay */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.hero-carousel .carousel-indicators {
  z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 60%;
}

/* ── Page Header Band ─────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 2.5rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-header p {
  margin: 0;
  opacity: 0.85;
  font-size: 1.05rem;
}

/* ── Half-height image crop ──────────────────────────────── */
.img-crop-top {
  overflow: hidden;
  border-radius: 0.5rem;
}

.img-crop-top img {
  width: 100%;
  display: block;
}

/* ── Section ─────────────────────────────────────────────── */
.content-section { padding: 3.5rem 0; }

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Service Cards ───────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.service-card .service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-card h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ── Program Cards ───────────────────────────────────────── */
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-card-body { padding: 1.5rem; }

.program-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ── Section Cards (About / Departments) ─────────────────── */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.section-card h3, .section-card h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  background: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

/* ── Gallery Lightbox Modal ──────────────────────────────── */
#lightboxModal .modal-content { background: #000; border: none; }
#lightboxModal .modal-body { padding: 0; }
#lightboxModal img { width: 100%; display: block; }
#lightboxModal .btn-close { filter: invert(1); }

/* ── News ────────────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-card .news-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.news-body { padding: 2rem; }
.news-body h3 { color: var(--primary); }

blockquote {
  border-left: 4px solid var(--danger);
  padding-left: 1.2rem;
  color: #495057;
  font-style: italic;
  margin: 1.25rem 0;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.contact-info-item .ci-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ── Org Chart ───────────────────────────────────────────── */
.org-chart { display: flex; flex-direction: column; gap: 0.75rem; }

.org-node {
  border: 1px solid #c6d6e8;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  background: #eef4fb;
  font-weight: 500;
}

.org-children {
  margin-left: 1.5rem;
  border-left: 2px dashed #90b4d5;
  padding-left: 1rem;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background: var(--danger);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-band p { opacity: 0.90; margin-bottom: 1.25rem; }

.btn-cta {
  background: var(--white);
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 2.25rem;
  border-radius: 50px;
  border: none;
  display: inline-block;
  transition: transform 0.15s, opacity 0.2s;
}

.btn-cta:hover {
  color: var(--danger);
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.78);
  padding: 2.75rem 1rem 0;
}

.site-footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer a {
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  background: rgba(0,0,0,0.28);
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.83rem;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.55);
}

/* ── Scroll-to-Top Button ────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: background 0.2s, transform 0.15s;
}

#scrollTop:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── Form Success Notification ───────────────────────────── */
.form-success-box {
  display: none;
  text-align: center;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

.form-success-box .success-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.form-success-box h4 {
  color: #065f46;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success-box p {
  color: #047857;
  margin-bottom: 1.25rem;
}

/* ── Utilities ───────────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background-color: var(--primary) !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .site-nav .brand-name {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content h1   { font-size: 1.9rem; }
  .hero-content p    { font-size: 1rem; }
  .btn-hero-outline  { margin-left: 0; margin-top: 0.6rem; }
  .page-header h1    { font-size: 1.5rem; }
  .carousel-section .carousel-item img { height: 250px; }
  .news-card .news-img { height: 220px; }
}
