/* HealthRight Foundation Uganda — Corporate site styles */
:root {
  --hr-yellow: #f8c028;
  --hr-yellow-dark: #d9a512;
  --hr-black: #111111;
  --hr-navy: #0a2f4a;
  --hr-navy-light: #14466b;
  --hr-blue: #1a5276;
  --hr-gray: #f4f6f8;
  --hr-gray-border: #e2e6ea;
  --hr-text: #2c3338;
  --hr-muted: #5c6770;
  --hr-white: #ffffff;
  --font-sans: "Libre Franklin", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--hr-text);
  background: var(--hr-white);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hr-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--hr-yellow-dark);
}

/* Top bar */
.hr-topbar {
  background: var(--hr-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.hr-topbar a {
  color: rgba(255, 255, 255, 0.9);
}

.hr-topbar a:hover {
  color: var(--hr-yellow);
}

.hr-topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  margin-left: 0.5rem;
}

/* Navbar */
.hr-navbar {
  background: var(--hr-white);
  border-bottom: 1px solid var(--hr-gray-border);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 rgba(10, 47, 74, 0.04);
}

.hr-navbar .navbar-brand {
  padding: 0;
  margin-right: 1.5rem;
}

.hr-navbar .navbar-brand img {
  height: 48px;
  width: auto;
}

.hr-navbar .nav-link {
  color: var(--hr-navy) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem !important;
  text-transform: none;
}

.hr-navbar .nav-link:hover,
.hr-navbar .nav-link.active,
.hr-navbar .nav-item.show > .nav-link {
  color: var(--hr-black) !important;
}

.hr-navbar .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--hr-yellow);
}

.hr-navbar .dropdown-menu {
  border: 1px solid var(--hr-gray-border);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(10, 47, 74, 0.1);
  padding: 0.5rem 0;
}

.hr-navbar .dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hr-text);
  padding: 0.5rem 1.25rem;
}

.hr-navbar .dropdown-item:hover,
.hr-navbar .dropdown-item:focus {
  background: var(--hr-gray);
  color: var(--hr-navy);
}

.btn-hr-primary {
  background: var(--hr-yellow);
  color: var(--hr-black);
  border: 2px solid var(--hr-yellow);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
}

.btn-hr-primary:hover,
.btn-hr-primary:focus {
  background: var(--hr-yellow-dark);
  border-color: var(--hr-yellow-dark);
  color: var(--hr-black);
}

.btn-hr-outline {
  background: transparent;
  color: var(--hr-white);
  border: 2px solid var(--hr-white);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
}

.btn-hr-outline:hover,
.btn-hr-outline:focus {
  background: var(--hr-white);
  color: var(--hr-navy);
}

.btn-hr-navy {
  background: var(--hr-navy);
  color: var(--hr-white);
  border: 2px solid var(--hr-navy);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
}

.btn-hr-navy:hover,
.btn-hr-navy:focus {
  background: var(--hr-navy-light);
  border-color: var(--hr-navy-light);
  color: var(--hr-white);
}

.btn-hr-outline-dark {
  background: transparent;
  color: var(--hr-navy);
  border: 2px solid var(--hr-navy);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
}

.btn-hr-outline-dark:hover,
.btn-hr-outline-dark:focus {
  background: var(--hr-navy);
  color: var(--hr-white);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--hr-navy) 0%, var(--hr-navy-light) 55%, #1a5276 100%);
  color: var(--hr-white);
  padding: 3.5rem 0 3rem;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--hr-yellow);
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb-item.active {
  color: var(--hr-yellow);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.page-hero h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 0;
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--hr-white);
  background: var(--hr-navy) center/cover no-repeat;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 47, 74, 0.94) 0%,
    rgba(10, 47, 74, 0.82) 45%,
    rgba(10, 47, 74, 0.55) 100%
  );
  z-index: 1;
}

.home-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.home-hero .brand-mark {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hr-yellow);
  margin-bottom: 1rem;
}

.home-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.home-hero .hero-copy {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.home-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-gray {
  background: var(--hr-gray);
}

.section-navy {
  background: var(--hr-navy);
  color: var(--hr-white);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-yellow-dark);
  margin-bottom: 0.65rem;
}

.section-navy .section-eyebrow {
  color: var(--hr-yellow);
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--hr-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-navy .section-title {
  color: var(--hr-white);
}

.section-lead {
  color: var(--hr-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.section-navy .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.stats-bar {
  background: var(--hr-yellow);
  padding: 2.25rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
}

.stat-item .stat-number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--hr-black);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hr-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

/* Feature / program tiles */
.feature-tile {
  background: var(--hr-white);
  border: 1px solid var(--hr-gray-border);
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
  border-color: var(--hr-yellow);
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.08);
}

.feature-tile .tile-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hr-navy);
}

.feature-tile .tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-tile .tile-body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.feature-tile .tile-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-yellow-dark);
  margin-bottom: 0.5rem;
}

.feature-tile h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-bottom: 0.65rem;
}

.feature-tile p {
  font-size: 0.9375rem;
  color: var(--hr-muted);
  margin-bottom: 1rem;
}

.feature-tile .tile-link {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hr-navy);
}

.feature-tile .tile-link:hover {
  color: var(--hr-yellow-dark);
}

/* Values */
.value-block {
  padding: 1.5rem 0;
  border-top: 3px solid var(--hr-yellow);
}

.value-block .value-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hr-yellow-dark);
  margin-bottom: 0.5rem;
}

.value-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-bottom: 0.5rem;
}

.value-block p {
  font-size: 0.9375rem;
  color: var(--hr-muted);
  margin-bottom: 0;
}

/* Mission / Vision panels */
.mv-panel {
  background: var(--hr-white);
  border-left: 4px solid var(--hr-yellow);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(10, 47, 74, 0.06);
}

.mv-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-navy);
  margin-bottom: 0.85rem;
}

.mv-panel p {
  margin-bottom: 0;
  color: var(--hr-text);
  font-size: 1rem;
}

/* Team */
.team-card {
  text-align: center;
  height: 100%;
}

.team-card .team-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hr-gray);
  border: 3px solid var(--hr-yellow);
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hr-yellow-dark);
  margin-bottom: 0.85rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--hr-muted);
}

/* Content layout */
.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-block p,
.content-block li {
  color: var(--hr-text);
}

.sidebar-nav {
  background: var(--hr-gray);
  border: 1px solid var(--hr-gray-border);
  padding: 1.25rem;
}

.sidebar-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-navy);
  margin-bottom: 1rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--hr-text);
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--hr-white);
  border-left-color: var(--hr-yellow);
  color: var(--hr-navy);
}

/* Forms */
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hr-navy);
}

.form-control,
.form-select {
  border-radius: 0;
  border-color: var(--hr-gray-border);
  padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hr-yellow);
  box-shadow: 0 0 0 0.2rem rgba(248, 192, 40, 0.25);
}

/* Contact info strip */
.contact-info-box {
  background: var(--hr-navy);
  color: var(--hr-white);
  padding: 2rem;
  height: 100%;
}

.contact-info-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-info-box a {
  color: var(--hr-yellow);
}

.contact-info-box .info-row {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.9375rem;
}

.contact-info-box .info-row i {
  color: var(--hr-yellow);
  margin-top: 0.2rem;
}

/* News cards */
.news-card {
  border: 1px solid var(--hr-gray-border);
  height: 100%;
  background: var(--hr-white);
}

.news-card .news-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hr-navy);
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-body {
  padding: 1.35rem;
}

.news-card .news-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-muted);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-bottom: 0.65rem;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--hr-muted);
  margin-bottom: 0;
}

/* Partner logos */
.partner-grid .partner-slot {
  background: var(--hr-white);
  border: 1px solid var(--hr-gray-border);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hr-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(90deg, var(--hr-navy) 0%, var(--hr-navy-light) 100%);
  color: var(--hr-white);
  padding: 3.5rem 0;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hr-yellow);
}

.cta-band h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 32rem;
}

/* Footer */
.hr-footer {
  background: #081f31;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
  font-size: 0.9rem;
}

.hr-footer h5 {
  color: var(--hr-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.hr-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.hr-footer a:hover {
  color: var(--hr-yellow);
}

.hr-footer .footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.hr-footer .footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.hr-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hr-footer ul li {
  margin-bottom: 0.45rem;
}

.hr-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
}

.hr-footer .social-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 0.4rem;
  color: var(--hr-white);
}

.hr-footer .social-footer a:hover {
  border-color: var(--hr-yellow);
  color: var(--hr-yellow);
}

/* Placeholder image styling */
.img-placeholder {
  background: linear-gradient(135deg, #0a2f4a 0%, #1a5276 100%);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--hr-yellow);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--hr-yellow);
  border: 2px solid var(--hr-navy);
  border-radius: 50%;
}

.timeline-item .year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-yellow-dark);
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin: 0.25rem 0 0.5rem;
}

/* List checks */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--hr-yellow);
}

/* Donate / involve cards */
.involve-card {
  border: 1px solid var(--hr-gray-border);
  padding: 2rem 1.5rem;
  height: 100%;
  background: var(--hr-white);
  transition: border-color 0.2s ease;
}

.involve-card:hover {
  border-color: var(--hr-yellow);
}

.involve-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--hr-navy);
  color: var(--hr-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}

.involve-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hr-navy);
  margin-bottom: 0.75rem;
}

.involve-card p {
  color: var(--hr-muted);
  font-size: 0.9375rem;
}

/* Utility */
.text-navy {
  color: var(--hr-navy) !important;
}

.bg-hr-yellow {
  background-color: var(--hr-yellow) !important;
}

.hr-divider {
  height: 3px;
  width: 48px;
  background: var(--hr-yellow);
  border: 0;
  margin: 1rem 0 1.5rem;
}

@media (max-width: 991.98px) {
  .hr-navbar .nav-link.active {
    box-shadow: none;
    background: rgba(248, 192, 40, 0.15);
  }

  .home-hero {
    min-height: 68vh;
  }

  .hr-navbar .navbar-brand img {
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }

  .stat-item {
    margin-bottom: 1rem;
  }
}
