/* ===== Mohau Wamodimo Foundation – Landing Page ===== */
:root {
  --blue-deep: #0a2540;
  --blue-mid: #0d3b66;
  --blue-bright: #1a5f9e;
  --gold: #c9a227;
  --gold-rich: #d4af37;
  --gold-light: #f0d878;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --text: #1a1a2e;
  --text-muted: #5a6a7a;
  --red-warn: #c0392b;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(10, 37, 64, 0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mwm {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 2px;
}

.brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  letter-spacing: 0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--gold-light);
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.btn-nav {
  background: var(--gold);
  color: var(--blue-deep) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-nav:hover { background: var(--gold-light); color: var(--blue-deep) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0a2540 0%, #0d3b66 45%, #1a5f9e 100%);
  color: white;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(26, 95, 158, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-logo-left {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-logo-right {
  height: 58px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.countdown-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  backdrop-filter: blur(8px);
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cd-item {
  background: rgba(10, 37, 64, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 10px;
  min-width: 70px;
  padding: 0.75rem 0.5rem;
}

.cd-item span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
}

.cd-item small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  opacity: 0.9;
}

.countdown-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-rich) 100%);
  color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

.btn-full { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header.light { color: white; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header.light .section-eyebrow { color: var(--gold-light); }

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.section-header.light h2 { color: white; }

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-header.light .section-lead { color: rgba(255,255,255,0.85); }

/* ===== About ===== */
.about { background: white; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-card {
  background: var(--off-white);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.vision-banner {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid));
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--gold);
  text-align: center;
}

.vision-banner p { font-size: 1.05rem; }

/* ===== Campaign ===== */
.campaign {
  background: linear-gradient(160deg, #0a2540 0%, #0d3b66 100%);
  color: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.step-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  background: var(--gold);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

.step p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.no-cash {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.no-cash-icon { font-size: 1.5rem; }

.no-cash strong {
  display: block;
  color: #ff6b6b;
  margin-bottom: 0.25rem;
}

.paxi-info {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.paxi-info h3 {
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.paxi-info p {
  margin-bottom: 1.25rem;
  opacity: 0.9;
  max-width: 480px;
  margin-inline: auto;
}

/* ===== Donors ===== */
.donors { background: white; }

.donor-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.donor-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 560px;
}

.donor-table th,
.donor-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.donor-table thead {
  background: var(--blue-deep);
  color: white;
}

.donor-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.donor-table tbody tr {
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  transition: background var(--transition);
}

.donor-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.06);
}

.donor-table tbody tr:last-child { border-bottom: none; }

.badge-cert {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-rich));
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-none {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Certificate Section ===== */
.certificate-sec {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef2f7 100%);
}

.cert-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.cert-card {
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.15);
  border: 3px solid var(--gold);
}

.cert-inner {
  border: 2px solid var(--blue-deep);
  border-radius: 10px;
  padding: 1.75rem;
  background: linear-gradient(180deg, #fffef8 0%, white 40%);
}

.cert-header {
  text-align: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  padding-bottom: 1rem;
}

.cert-logo {
  height: 48px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.cert-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}

.cert-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-body {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.cert-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0.75rem 0;
  padding: 0.35rem 0;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  min-width: 200px;
}

.cert-motto {
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
}

.cert-sign {
  text-align: center;
}

.sign-line {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.cert-sign span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cert-tree {
  width: 56px;
  opacity: 0.85;
}

.cert-actions {
  text-align: left;
}

.cert-actions p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.cert-actions .small {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ===== Contact Form ===== */
.contact {
  background: linear-gradient(160deg, #0a2540 0%, #0d3b66 100%);
  color: white;
}

.form-warning {
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.form-warning strong { color: #ff8a8a; }

.enquiry-form {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 16px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0,0,0,0.35);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23c9a227'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--blue-deep);
  color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--gold);
}

.checkbox-group label {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: #061828;
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--gold);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-tag {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  color: var(--gold-light) !important;
  opacity: 1 !important;
}

.footer-powered {
  text-align: right;
}

.powered-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.powered-name {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.powered-name:hover { color: var(--gold-light); }

.footer-logos {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.95;
  transition: opacity var(--transition), transform var(--transition);
}

.footer-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.75;
}

.designer a {
  color: var(--gold-light);
  font-weight: 500;
}

.designer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-deep);
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--gold);
  }
  .cert-preview {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-powered { text-align: left; }
  .footer-logos { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .hero { padding: 3rem 0 4rem; min-height: auto; }
  .countdown { gap: 0.5rem; }
  .cd-item { min-width: 58px; padding: 0.6rem 0.3rem; }
  .cd-item span { font-size: 1.4rem; }
  .hero-logo-left { height: 54px; }
  .hero-logo-right { height: 44px; }
  .donor-stats { gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
}
