
/* ========================================
   NOMBELA HEALTH SERVICES - MASTER STYLES
   ======================================== */

/* === BRAND COLOR SYSTEM === */
:root {
  --brand-dark-blue: #1a2b54;
  --brand-gold: #d4a017;
  --brand-light-blue: #e6f2ff;
  --brand-white: #ffffff;
  --brand-light-gold: #f8f0d8;
  --brand-medium-blue: #2c3e68;
  --brand-accent-gold: #e6b82c;
  --brand-shadow-blue: rgba(26, 43, 84, 0.15);
  --brand-shadow-gold: rgba(212, 160, 23, 0.2);
}

/* === TYPOGRAPHY SYSTEM === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #2d3748;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-dark-blue);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-white);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.95;
}

/* === LAYOUT & SPACING === */
.container {
  max-width: 1200px;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

/* === TOP NAVIGATION === */
.top-nav {
  background: var(--brand-dark-blue);
  color: var(--brand-white);
  font-size: 0.875rem;
  padding: 12px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav:hover {
  background: var(--brand-medium-blue);
}

.top-nav a {
  color: var(--brand-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-nav a:hover {
  color: var(--brand-gold);
}

/* === MAIN NAVIGATION === */
.navbar {
  background: var(--brand-white);
  padding: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
  padding: 15px 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.navbar-brand img {
  max-height: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--brand-gold);
  border-radius: 4px;
  padding: 2px;
}

.navbar-brand:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px var(--brand-shadow-blue);
}

.nav-link {
  position: relative;
  color: var(--brand-dark-blue) !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 12px;
  margin: 0 8px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--brand-gold) !important;
  background: rgba(212, 160, 23, 0.05);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link.active {
  color: var(--brand-gold) !important;
  background: rgba(212, 160, 23, 0.1);
}

.nav-link.active::after {
  width: 80%;
}

/* =========================
   BRAND TEXT TUNING
========================= */

.brand-title {
  font-size: 1.1rem;          /* slightly bigger */
  font-weight: 600;
  color: #0b1f3a;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 2px;
  max-width: 340px;           /* keeps it tucked, not sprawling */
}


/* =========================
   NAV LINK BASE STYLE
========================= */

.navbar .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #0b1f3a;
  position: relative;
  padding: 6px 10px;
}


/* =========================
   MINI UNDERLINE INDICATOR
   (ALL LINKS incl. Contact)
========================= */

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #f5a800;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 14px;
}


/* =========================
   ACTIVE "HOME" PILL
========================= */

.navbar .nav-link.active {
  background-color: #fff5df;
  color: #f5a800;
  border-radius: 6px;
}


/* =========================
   DROPDOWN CARET ALIGNMENT
========================= */

.navbar .dropdown-toggle::after {
  border: none;
  content: "▾";
  font-size: 0.6rem;
  margin-left: 4px;
  vertical-align: middle;
}


/* =========================
   CTA BUTTON REFINEMENT
========================= */

.navbar .btn {
  font-size: 0.72rem;
  padding: 6px 14px;
  white-space: nowrap;
}

.btn-outline-warning {
  border-width: 1.5px;
}

.btn-primary {
  box-shadow: 0 6px 16px rgba(11,31,58,0.15);
}


/* =========================
   GENERAL SPACING SAFETY
========================= */

.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}


/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(rgba(26, 43, 84, 0.9), rgba(26, 43, 84, 0.9)), url('../assets/images/hero_image.jpg') center/cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.1) 0%, transparent 40%);
}

/* === VISION & MISSION SECTION === */
.vision-mission-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--brand-light-blue) 0%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
}

.vision-mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-gold), var(--brand-dark-blue));
}

.vision-card, .mission-card {
  background: var(--brand-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px var(--brand-shadow-blue);
  border: 2px solid var(--brand-light-blue);
  transition: all 0.3s ease;
  height: 100%;
}

.vision-card:hover, .mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-gold);
  box-shadow: 0 20px 50px var(--brand-shadow-gold);
}

.vision-card h3, .mission-card h3 {
  color: var(--brand-dark-blue);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.vision-card h3::after, .mission-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
}

.vision-card h3 {
  color: var(--brand-gold);
}

.vision-card h3::after {
  background: var(--brand-dark-blue);
}

/* === SERVICES SECTION === */
.services-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--brand-white);
  box-shadow: 0 10px 30px var(--brand-shadow-blue);
  border: 2px solid var(--brand-light-blue);
  padding: 2.5rem 2rem;
  height: 100%;
}

.services-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 43, 84, 0.25);
  border-color: var(--brand-gold);
}

.services-card i {
  font-size: 2.8rem;
  color: var(--brand-dark-blue);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--brand-light-blue) 0%, var(--brand-white) 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--brand-shadow-blue);
}

.services-card:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--brand-gold);
  background: linear-gradient(135deg, var(--brand-light-gold) 0%, #fff9e6 100%);
  box-shadow: 0 6px 20px var(--brand-shadow-gold);
}

.services-card h5 {
  margin-bottom: 1rem;
  color: var(--brand-dark-blue);
}

/* === TRUST SECTION === */
.trust-section {
  background: linear-gradient(135deg, var(--brand-light-blue) 0%, #f0f7ff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-gold), var(--brand-dark-blue));
}

.trust-section h2 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.trust-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  margin: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--brand-white);
  border-radius: 30px;
  box-shadow: 0 4px 15px var(--brand-shadow-blue);
  transition: all 0.3s ease;
  border: 1px solid var(--brand-gold);
  font-weight: 600;
}

.check-item:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--brand-light-gold);
  box-shadow: 0 8px 25px var(--brand-shadow-gold);
}

.check-item i {
  color: var(--brand-gold);
  margin-right: 10px;
  font-size: 1.1rem;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark-blue) 0%, var(--brand-medium-blue) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section h3 {
  color: var(--brand-white);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* === FOOTER - ULTRA PREMIUM DESIGN === */
footer {
  background: linear-gradient(135deg, var(--brand-dark-blue) 0%, #0f1a32 100%);
  color: var(--brand-white);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-gold), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h4 {
  color: var(--brand-white);
  margin-bottom: 25px;
  position: relative;
  font-size: 1.3rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 1px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  padding: 4px 0;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-gold);
  transform: translateX(5px);
  margin-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer-contact i {
  color: var(--brand-gold);
  margin-right: 12px;
  font-size: 1.1rem;
  min-width: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: var(--brand-gold);
  color: var(--brand-dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--brand-shadow-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-powered {
  background: rgba(212, 160, 23, 0.15);
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid var(--brand-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-powered i {
  color: var(--brand-gold);
  margin-right: 8px;
  font-size: 1.1rem;
}

.footer-powered a {
  color: var(--brand-gold);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.footer-powered a:hover {
  text-decoration: underline;
  color: #ffd700;
}

/* === BUTTONS === */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-dark-blue) 0%, var(--brand-medium-blue) 100%);
  border: none;
  color: var(--brand-white);
  box-shadow: 0 6px 20px rgba(26, 43, 84, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(26, 43, 84, 0.4);
  background: linear-gradient(135deg, var(--brand-medium-blue) 0%, #152445 100%);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline-primary {
  border: 2px solid var(--brand-gold);
  color: var(--brand-dark-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--brand-gold);
  color: var(--brand-dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--brand-shadow-gold);
}

.btn-light {
  background: var(--brand-white);
  color: var(--brand-dark-blue);
  border: 2px solid var(--brand-gold);
}

.btn-light:hover {
  background: var(--brand-light-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--brand-shadow-gold);
}

/* === ANIMATIONS === */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .display-5 {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .check-item {
    display: block;
    margin: 0.5rem auto;
    max-width: 300px;
  }
  
  .nav-link {
    margin: 0 4px;
    padding: 6px 8px;
    font-size: 0.95rem;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-powered {
    margin-top: 15px;
  }
  
  .vision-card, .mission-card {
    padding: 25px;
  }
}

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
}

/* === ADDITIONAL UTILITIES === */
.text-gold {
  color: var(--brand-gold) !important;
}

.bg-gold {
  background: var(--brand-gold) !important;
}

.shadow-gold {
  box-shadow: 0 4px 20px var(--brand-shadow-gold) !important;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}
/* ========================================
   LOGO VISIBILITY & PRESENCE FIX (FINAL)
======================================== */

/* Make the logo actually readable */
.navbar-brand img {
  max-height: 72px;                 /* ⬅️ THIS is the big fix */
  padding: 6px;                     /* more breathing room */
  background: #ffffff;              /* isolates from navbar */
  border: 2px solid var(--brand-gold);
  border-radius: 12px;              /* softer, premium */
  box-shadow: 0 8px 22px rgba(26, 43, 84, 0.18);
}

/* Slightly tighten navbar so logo feels dominant */
.navbar {
  padding: 16px 0;
}

/* Give brand block more visual weight */
.navbar-brand {
  gap: 16px;
}

/* Strengthen brand title a touch */
.brand-title {
  font-size: 1.40rem;
  font-weight: 900;
  color: var(--brand-dark-blue);
}

/* Keep subtitle subtle but readable */
.brand-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.3;
}
.navbar-brand {
  padding-right: 20px;
  border-right: 1px solid rgba(26, 43, 84, 0.1);
}

/* ========================================
   MID INFO STRIP (COMMUNITY CARE)
======================================== */

.mid-info-strip {
  background: var(--brand-light-blue);
  border-bottom: 1px solid rgba(26, 43, 84, 0.08);
  padding: 12px 0;
  font-size: 0.8rem;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-white);
  border-radius: 20px;
  font-weight: 600;
  color: var(--brand-dark-blue);
  box-shadow: 0 4px 12px var(--brand-shadow-blue);
  border: 1px solid var(--brand-light-blue);
  white-space: nowrap;
}

.info-pill i {
  color: var(--brand-gold);
  font-size: 0.85rem;
}

.info-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-medium-blue);
  white-space: nowrap;
}

.info-trust i {
  color: var(--brand-gold);
}

/* Mobile polish */
@media (max-width: 768px) {
  .mid-info-strip {
    font-size: 0.75rem;
  }

  .info-trust {
    display: none; /* keeps it clean on small screens */
  }
}


/* ========================================
   TESTIMONIALS SECTION (REDESIGN)
======================================== */

.testimonials-section {
  background: linear-gradient(
    135deg,
    var(--brand-dark-blue) 0%,
    #132147 100%
  );
  padding: 90px 0;
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.testimonials-title {
  color: var(--brand-white);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.testimonials-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card */
.testimonial-card {
  background: var(--brand-white);
  color: var(--brand-dark-blue);
  border-radius: 18px;
  padding: 40px 30px 32px;
  height: 100%;
  position: relative;
  box-shadow: 0 18px 40px rgba(26, 43, 84, 0.25);
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(26, 43, 84, 0.35);
}

/* Highlight middle card subtly */
.testimonial-card.highlight {
  border: 2px solid var(--brand-gold);
}

/* Quote mark */
.quote-icon {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand-gold);
  opacity: 0.25;
  line-height: 1;
}

/* Text */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 30px 0 28px;
  color: #2d3748;
}

/* Author */
.testimonial-author {
  border-top: 1px solid rgba(26, 43, 84, 0.1);
  padding-top: 18px;
}

.testimonial-author .name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-author .company {
  display: block;
  font-size: 0.85rem;
  color: var(--brand-medium-blue);
}

/* Mobile polish */
@media (max-width: 768px) {
  .testimonials-title {
    font-size: 1.8rem;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .quote-icon {
    font-size: 3.5rem;
  }
}
