/* Custom Stylesheet for Muganwa, Nanteza & Co. Advocates */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  --navy: #1a2744;
  --navy-dark: #0d1627;
  --gold: #c8a84b;
  --gold-light: #dfc078;
  --teal: #3d7a7a;
  --teal-light: #4e9a9a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray-bg: #f4f6f9;
  --text-dark: #1a2744;
  --text-body: #3a4a5c;
  --text-muted: #6c757d;
  --font-heading: 'M PLUS Rounded 1c', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'M PLUS Rounded 1c', sans-serif;
  --shadow-sm: 0 4px 15px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 39, 68, 0.16);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* NO STRETCH IMAGE UTILITIES */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* TOP CONTACT HEADER BAR */
.top-bar {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200, 168, 75, 0.2);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--gold-light);
}

.top-bar-badge {
  background-color: rgba(200, 168, 75, 0.18);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(200, 168, 75, 0.3);
}

/* NAVBAR */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(26, 39, 68, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--teal) !important;
  background-color: rgba(61, 122, 122, 0.08);
}

/* BUTTON STYLES */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  box-shadow: 0 6px 20px rgba(200, 168, 75, 0.35);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.88rem;
}

.btn-gold:hover, .btn-gold:focus {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 168, 75, 0.5);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 12px 28px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.88rem;
}

.btn-navy:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 24px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy);
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1d3356 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200, 168, 75, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 168, 75, 0.15);
  border: 1px solid rgba(200, 168, 75, 0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title span.text-gold {
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(200, 168, 75, 0.3);
}

.hero-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

/* PAGE HEADER BREADCRUMB */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb-item, .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumb-item.active {
  color: var(--gold-light);
  font-weight: 700;
}

/* STATS COUNTER BAR */
.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 8px;
}

/* PRACTICE AREA & SERVICE CARDS */
.service-card {
  background: var(--white);
  border: 1px solid rgba(26, 39, 68, 0.08);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 168, 75, 0.3);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 39, 68, 0.06);
  color: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--gold-light);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 15px;
}

.service-link:hover {
  color: var(--navy);
  gap: 10px;
}

/* TEAM CARDS */
.team-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(26, 39, 68, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.team-img-wrapper {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: var(--navy-dark);
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

.team-body {
  padding: 24px;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--navy);
}

.team-role {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-quals {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

/* SECTION TITLES */
.section-tag {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title span.text-gold {
  color: var(--gold);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* TRUST BAR & BADGES */
.trust-strip {
  background: var(--cream);
  border-top: 1px solid rgba(26, 39, 68, 0.08);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  padding: 20px 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.trust-badge-item i {
  font-size: 1.5rem;
  color: var(--gold);
}

/* MISSION & PHILOSOPHY BOXES */
.mp-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.mp-box.teal {
  border-left-color: var(--teal);
}

.mp-box h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.mp-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 0;
}

/* FEATURE HIGHLIGHT BOXES */
.feature-box {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 30px;
  border-left: 5px solid var(--gold);
  height: 100%;
}

.feature-box.teal {
  border-left-color: var(--teal);
}

/* CONTACT FORM */
.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 39, 68, 0.08);
}

.form-control, .form-select {
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid rgba(26, 39, 68, 0.15);
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(61, 122, 122, 0.12);
}

/* FOOTER */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  font-size: 0.92rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  display: inline-block;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* FLOATING WIDGETS */
.floating-widgets {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-float-wa {
  background-color: #25D366;
}

.btn-float-wa:hover {
  background-color: #1ebd5b;
  transform: scale(1.1);
  color: var(--white);
}

.btn-float-call {
  background-color: var(--teal);
}

.btn-float-call:hover {
  background-color: var(--teal-light);
  transform: scale(1.1);
  color: var(--white);
}

.btn-back-top {
  background-color: var(--gold);
  color: var(--navy);
  display: none;
}

.btn-back-top.show {
  display: flex;
}

.btn-back-top:hover {
  background-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-4px);
}

/* MEDIA QUERIES */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 60px 0;
  }
  .hero-image-frame img {
    height: 340px;
  }
  .page-header {
    padding: 40px 0;
  }
}


/* Z-INDEX & OVERLAP FIX FOR NAVBAR & STICKY SIDEBARS */
.navbar-custom {
  z-index: 1030 !important;
}
.sticky-top {
  z-index: 10 !important;
  top: 110px !important; /* Spacing below the fixed navbar */
}

/* PREMIUM BACKGROUND PATTERNS & GRADIENTS */
body {
  background: radial-gradient(circle at 100% 0%, rgba(200, 168, 75, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(61, 122, 122, 0.04) 0%, transparent 40%),
              linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  background-attachment: scroll;
  position: relative;
}

section.py-5:not(.bg-light) {
  position: relative;
}

section.py-5.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%) !important;
  border-top: 1px solid rgba(26, 39, 68, 0.03);
  border-bottom: 1px solid rgba(26, 39, 68, 0.03);
}




/* FORCE STICKY NAVBAR FIXED AT TOP WITHOUT OVERLAP */
.navbar-custom.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1040 !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Page content spacer adjustment when navbar is sticky */
body {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f5f0e8 100%) !important;
}

/* PRINCIPLE CARDS */
.principle-card {
  transition: var(--transition);
}
.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
  border-color: var(--gold) !important;
}

/* --- GLOBAL UNIVERSAL HOVER EFFECT FOR ALL CARDS --- */
.card, .service-card, .team-card, .stat-card, .contact-card, .client-category-card, .mp-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.card:hover, .service-card:hover, .team-card:hover, .stat-card:hover, .contact-card:hover, .client-category-card:hover, .mp-box:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
  border-color: var(--gold) !important;
}

/* --- MISSING BRAND UTILITY CLASSES --- */
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.text-navy-dark { color: var(--navy-dark) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-teal { color: var(--teal) !important; }
.bg-teal { background-color: var(--teal) !important; }
.text-cream { color: var(--cream) !important; }
.bg-cream { background-color: var(--cream) !important; }


.list-group-item.active {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: var(--white) !important;
}


.custom-social-hover:hover { color: var(--gold) !important; transform: translateY(-2px); transition: all 0.2s ease; }


.footer, .footer *, .footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6, .footer p, .footer a, .footer span { font-family: var(--font-body) !important; }


.footer .small, .footer small { font-size: 1rem !important; }
.footer a, .footer p, .footer li { font-size: 1rem !important; }

