/* Lamicare DRO Uganda - Website Styles */
:root {
  --primary: #E2A63B;       /* gold / orange */
  --primary-dark: #C8871E;  /* deep gold */
  --primary-light: #F6F3EC; /* soft paper */
  --accent: #B44229;        /* clay / rust orange */
  --accent-dark: #8f341f;
  --ink: #16202A;           /* near-black */
  --text: #16202A;
  --text-light: #55606b;
  --white: #EFEAE0;         /* warm paper white */
  --card-white: #FFFDF9;
  --gray-bg: #F6F3EC;
  --border: #D8CFBF;
  --shadow: 0 4px 20px rgba(22,32,42,0.08);
  --radius: 6px;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--primary-dark); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Top bar */
.top-bar {
  background: var(--ink);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { opacity: 0.85; color: var(--primary); }
.top-bar-right { display: flex; gap: 18px; align-items: center; }
.donate-btn {
  background: var(--primary);
  color: var(--ink) !important;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}
.donate-btn:hover { background: var(--accent); color: var(--white) !important; }

/* Header / Nav */
.header {
  background: rgba(239,234,224,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: relative;
}

/* Logo with white curved panel from page margin */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 2;
  background: var(--card-white);
  padding: 8px 18px 8px 20px;
  margin-left: -20px;
  border-radius: 0 28px 28px 0;
  box-shadow: 4px 0 18px rgba(22,32,42,0.06);
}
.logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: var(--card-white);
  border-radius: 0;
}
.logo img {
  height: 52px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
}
.nav > li > a:hover,
.nav > li > a.active {
  color: var(--ink);
  border-bottom-color: var(--primary);
  background: transparent;
}

/* Transparent blur dropdown – slow animation */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(216, 207, 191, 0.55);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(22, 32, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  z-index: 100;
  overflow: hidden;
  padding: 6px 0;
}
.nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(216, 207, 191, 0.35);
  transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  background: rgba(226, 166, 59, 0.14);
  color: var(--primary-dark);
  padding-left: 22px;
}
.dropdown a .nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.75;
  color: var(--primary-dark);
}
.dropdown a:hover .nav-icon { opacity: 1; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(226,166,59,0.25), transparent 60%),
    linear-gradient(135deg, #16202A 0%, #1f2c39 60%, #26343f 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 60px 0;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  background: transparent;
  border: 1.5px solid rgba(239,234,224,0.4);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw + 0.6rem, 2.6rem);
  line-height: 1.25;
  margin-bottom: 18px;
  font-weight: 800;
  overflow-wrap: break-word;
}
.hero p {
  font-size: clamp(0.95rem, 1.5vw + 0.6rem, 1.15rem);
  opacity: 0.95;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Sections */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title .label {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.1rem);
  color: var(--text);
  margin-bottom: 12px;
}
.section-title p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.05rem);
}

.bg-light { background: var(--gray-bg); }
.bg-primary { background: var(--ink); color: var(--white); }
.bg-primary .section-title h2,
.bg-primary .section-title p { color: var(--white); }
.bg-primary .section-title p { color: rgba(239,234,224,0.72); }
.bg-primary .section-title .label { color: var(--primary); }

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h3 { font-size: 1.5rem; margin-bottom: 14px; color: var(--primary-dark); }
.about-text p { margin-bottom: 14px; color: var(--text-light); }
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 360px; object-fit: cover; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.stat-card {
  background: var(--card-white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.stat-card .number {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.1;
}
.stat-card .label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Programme / Focus cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card-img {
  height: 180px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 16px;
}
.card-body .link {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
}
.card-body .link:hover { text-decoration: underline; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.value-item {
  text-align: center;
  padding: 28px 18px;
  background: var(--card-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-item .icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-heading);
}
.value-item .icon svg { width: 26px; height: 26px; }
.value-item h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary-dark); }
.value-item p { font-size: 0.9rem; color: var(--text-light); }

/* Partners types */
.partners-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.partner-type {
  background: var(--card-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.partner-type h4 { color: var(--primary-dark); margin-bottom: 8px; }
.partner-type p { font-size: 0.95rem; color: var(--text-light); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Donate section */
.donate-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.donate-section h2 { font-size: 2rem; margin-bottom: 12px; }
.donate-section p { max-width: 560px; margin: 0 auto 28px; opacity: 0.95; }
.donate-iframe-wrap {
  display: inline-block;
  background: var(--card-white);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 { margin-bottom: 16px; color: var(--primary-dark); }
.contact-info p { margin-bottom: 12px; color: var(--text-light); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { width: 100%; }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(239,234,224,0.65);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer h4 {
  color: var(--primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.footer p, .footer a {
  color: rgba(239,234,224,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}
.footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(239,234,224,0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(239,234,224,0.45);
}

/* Page header (inner pages) */
.page-header {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(226,166,59,0.28), transparent 60%),
    linear-gradient(135deg, #16202A 0%, #232f3b 100%);
  color: var(--white);
  padding: 50px 0 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw + 0.8rem, 2.4rem);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Content blocks */
.content-block { margin-bottom: 40px; position: relative; }
.content-block h2 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.content-block h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin: 20px 0 10px;
}
.content-block p { margin-bottom: 14px; color: var(--text-light); }
.content-block ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.content-block ul li { margin-bottom: 8px; color: var(--text-light); }

/* Donors & Partners */
.donors-strip {
  padding: 50px 0 60px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.donors-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.donors-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: donor-scroll 28s linear infinite;
}
.donors-marquee:hover .donors-track { animation-play-state: paused; }
.donor-logo-card {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: 0.25s;
}
.donor-logo-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}
.donor-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes donor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.donors-grid .donor-logo-card {
  width: 100%;
  height: 110px;
  opacity: 1;
  filter: none;
  box-shadow: var(--shadow);
}
.donors-grid .donor-logo-card:hover {
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}
.donors-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 20px;
  font-style: italic;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.42s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.50s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.58s; }

[data-parallax] { will-change: transform; }

.content-block .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary-dark);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

.stat-count { font-family: var(--font-heading); }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
}
.hero-stats .stat span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239,234,224,0.6);
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.form-status.show { display: block; }

.icon-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.icon-line svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--primary-dark);
  margin-top: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    padding: 12px;
  }
  .nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-left: 12px;
    background: rgba(246, 243, 236, 0.7);
    backdrop-filter: blur(8px);
    transition: none;
  }
  .about-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 50px 0; }
  .logo {
    margin-left: -16px;
    padding: 6px 14px 6px 16px;
    border-radius: 0 22px 22px 0;
  }
  .logo img { height: 40px; }
}

@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-content { padding: 40px 0; }
  .top-bar-right { gap: 10px; font-size: 0.8rem; }
  .top-bar-left { font-size: 0.8rem; }
  .top-bar-left a { word-break: break-word; }
  .donor-logo-card { width: 140px; height: 76px; }
  .donors-grid .donor-logo-card { height: 90px; }
  .donate-iframe-wrap { width: 100%; max-width: 232px; }
  .header .container { padding: 10px 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .hero { min-height: 380px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .top-bar .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .top-bar-right { flex-wrap: wrap; gap: 8px 14px; }
  .donor-logo-card { width: 120px; height: 68px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .hero-stats { gap: 22px; }
  .logo {
    margin-left: -14px;
    padding: 5px 12px 5px 14px;
    border-radius: 0 18px 18px 0;
  }
  .logo img { height: 36px; }
}

/* Homepage hero slider (extends .hero) */
.hero-slider {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,32,42,0.78) 0%, rgba(22,32,42,0.45) 50%, rgba(226,166,59,0.2) 100%);
  z-index: 1;
}
.slide-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
}
.hero .hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero .hero-text {
  max-width: 620px;
  color: var(--white);
}
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(239,234,224,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s;
}
.dot.active {
  background: var(--primary);
  border-color: var(--white);
  transform: scale(1.2);
}
.shape {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
  border-radius: 50%;
  animation: floatShape 14s ease-in-out infinite;
}
.shape-1 {
  width: 280px; height: 280px;
  background: var(--primary);
  top: 8%; right: 4%;
  filter: blur(40px);
}
.shape-2 {
  width: 180px; height: 180px;
  background: var(--accent);
  bottom: 12%; left: 6%;
  filter: blur(28px);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  animation-delay: -4s;
}
.shape-3 {
  width: 120px; height: 120px;
  border: 2px solid var(--primary);
  top: 38%; left: 12%;
  background: transparent;
  opacity: 0.2;
  animation-delay: -7s;
}
.shape-4 {
  width: 70px; height: 70px;
  background: var(--white);
  bottom: 28%; right: 18%;
  opacity: 0.08;
  border-radius: 18%;
  animation-delay: -2s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(16px,-24px) rotate(4deg); }
  50% { transform: translate(-12px,16px) rotate(-4deg); }
  75% { transform: translate(20px,8px) rotate(2deg); }
}

/* Full-height hero when slider is present */
.hero:has(.hero-slider) {
  min-height: 88vh;
  height: auto;
  display: block;
}

/* Top bar icons */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar-left a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar-left svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}
.top-bar-right a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-bar-right svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* Impact stats – "Results That Speak" style */
.impact-section {
  padding: 80px 0;
  background: var(--white);
}
.impact-section .section-title h2 span {
  color: var(--primary);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-white);
  box-shadow: var(--shadow);
}
.impact-cell {
  padding: 36px 24px;
  text-align: left;
  border-right: 1px solid var(--border);
  transition: background 0.3s ease;
}
.impact-cell:last-child { border-right: none; }
.impact-cell:hover { background: var(--primary-light); }
.impact-cell .num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 10px;
}
.impact-cell p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.45;
}

/* Daily updates cards */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.update-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.update-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(22,32,42,0.12);
}
.update-card .uc-img {
  height: 160px;
  background: var(--gray-bg);
  overflow: hidden;
}
.update-card .uc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.update-card .uc-body { padding: 20px; }
.update-card .uc-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.update-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.update-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.update-card .uc-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

/* Strategic pillars */
.strategy-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.strategy-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.strategy-card:hover { transform: translateY(-5px); }
.strategy-card .spa-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.strategy-card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.strategy-card p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

.header.scrolled {
  box-shadow: 0 4px 24px rgba(22,32,42,0.1);
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-cell { border-bottom: 1px solid var(--border); }
  .impact-cell:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-cell { border-right: none; }
}

/* ===== Team grid & profiles (YSAT-style) ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(22,32,42,0.12);
}
.team-card .tc-photo {
  height: 220px;
  background: var(--gray-bg);
  overflow: hidden;
  position: relative;
}
.team-card .tc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}
.team-card:hover .tc-photo img { transform: scale(1.06); }
.team-card .tc-body { padding: 20px 16px 24px; }
.team-card .tc-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.team-card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.team-card .tc-title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.team-card .btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 8px 16px;
  border-radius: 6px;
  transition: 0.25s;
}
.team-card .btn-view:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
}

/* Profile hero (dark band) */
.profile-hero {
  background: linear-gradient(135deg, #0f171f 0%, #1a2530 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.profile-hero .ph-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.profile-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  color: var(--white);
}
.profile-hero h1 span { color: var(--primary); }
.profile-hero .ph-quote {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.88;
  max-width: 640px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.profile-hero .ph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.profile-hero .ph-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.profile-photo-card {
  background: var(--card-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}
.profile-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}
.profile-photo-card .ppc-body {
  padding: 18px;
  text-align: center;
}
.profile-photo-card h3 { margin-bottom: 4px; color: var(--ink); }
.profile-photo-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.profile-photo-card ul {
  text-align: left;
  margin-top: 14px;
  padding-left: 18px;
  list-style: disc;
}
.profile-photo-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* Core values – stronger icons */
.value-item .icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 800;
  font-size: 1.35rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 14px rgba(226,166,59,0.2);
}
.value-item .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-dark);
}

/* Clearer body text */
body { color: #1a2530; }
.section-title h2 { color: #0f171f; }
.card-body p, .about-text p, .content-block p { color: #3d4a57; }

/* Mobile nav polish */
@media (max-width: 900px) {
  .nav.open {
    max-height: 85vh;
    overflow-y: auto;
  }
  .nav.open > li > a {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo-card { position: static; max-width: 320px; margin: 0 auto; }
}

/* ===== Footer links – no icons, clean list ===== */
.footer a {
  display: block;
  padding: 3px 0;
}
.footer a svg { display: none !important; }

/* ===== Mobile & tablet – full fix ===== */
@media (max-width: 992px) {
  .header .container {
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .logo {
    margin-left: -12px;
    padding: 6px 12px 6px 14px;
    border-radius: 0 20px 20px 0;
    flex-shrink: 0;
  }
  .logo img { height: 40px; }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 1002;
  }
  .nav {
    display: none;
    width: 100%;
  }
  .nav.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(22,32,42,0.18);
    padding: 8px 12px 16px;
    border-top: 2px solid var(--primary);
    max-height: min(80vh, 560px);
    overflow-y: auto;
    z-index: 1001;
  }
  .nav.open > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav.open > li:last-child { border-bottom: none; }
  .nav.open > li > a {
    padding: 14px 12px;
    font-size: 0.92rem;
    width: 100%;
  }
  .nav.open .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(246, 243, 236, 0.75) !important;
    margin: 0 0 8px 8px !important;
    padding: 4px 0 !important;
    min-width: 0 !important;
    max-height: none !important;
  }
  .nav.open .dropdown a {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px;
  }
  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .top-bar-left,
  .top-bar-right {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .hero:has(.hero-slider),
  .hero {
    min-height: 70vh;
  }
  .impact-grid {
    grid-template-columns: 1fr !important;
  }
  .impact-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .team-card .tc-photo { height: 160px; }
  .section { padding: 48px 0; }
  .page-header { padding: 40px 0 32px; }
  .donate-section { padding: 48px 16px; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
  .logo img { height: 34px; }
  .values-grid { grid-template-columns: 1fr; }
}

/* Desktop: ensure nav visible */
@media (min-width: 993px) {
  .mobile-toggle { display: none !important; }
  .nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
  }
}

/* ===== Partners logo marquee (scroll L→R) ===== */
.partners-marquee-section {
  background: var(--ink);
  padding: 36px 0 42px;
  overflow: hidden;
}
.partners-marquee-section .section-title {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 16px;
}
.partners-marquee-section .section-title .label {
  color: var(--primary);
}
.partners-marquee-section .section-title h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}
.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: partners-scroll 40s linear infinite;
}
.partners-track:hover {
  animation-play-state: paused;
}
.partner-logo-card {
  flex: 0 0 auto;
  width: 160px;
  height: 88px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.partner-logo-card:hover {
  transform: scale(1.06);
}
.partner-logo-card img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes partners-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}
@media (max-width: 600px) {
  .partner-logo-card {
    width: 130px;
    height: 72px;
    padding: 10px;
  }
  .partner-logo-card img { max-height: 52px; }
  .partners-track { gap: 16px; animation-duration: 32s; }
}

/* ===== Social links ===== */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: inherit;
  opacity: 0.9;
  transition: opacity .2s, transform .2s, color .2s;
}
.social-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.top-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}
.top-social a:hover {
  background: var(--primary);
  color: #fff !important;
}
.footer-social {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.footer-social a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--primary);
}
.footer-social svg {
  flex-shrink: 0;
}

/* ===== Fast page loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2530;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.loader-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.12);
  border-top-color: #c45c26;
  border-right-color: #e8a06a;
  animation: loaderSpin 0.7s linear infinite;
  top: -12px;
}
.loader-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  animation: loaderPulse 1s ease-in-out infinite;
}
.loader-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  margin-top: 28px;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-ring, .loader-logo { animation: none; }
  .page-loader { transition-duration: 0.15s; }
}
