/* AASHRO Charitable Foundation — TrustHand-inspired charity theme */
:root {
  --primary: #e04237;
  --primary-dark: #d53f34;
  --gold: #e5ac1b;
  --gold-light: #f0cb00;
  --navy: #0a2a5c;
  --navy-deep: #061a3a;
  --green: #2e7d32;
  --text: #333333;
  --text-muted: #676767;
  --cream: #f7f5f1;
  --dropdown-bg: #fff0a5;
  --white: #ffffff;
  --border: #e8e4dc;
  --shadow: 0 4px 24px rgba(10, 42, 92, 0.08);
  --radius: 6px;
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 90px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button,
.btn {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Top bar —— */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

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

.topbar svg {
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  vertical-align: -2px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

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

.logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

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

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li.open > a {
  color: #8b3a2f;
}

.main-nav > ul > li.active > a,
.main-nav > ul > li.open > a {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: 420px;
  background: var(--dropdown-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li + li {
  border-top: 1px solid #333;
}

.dropdown a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}

.dropdown a:hover {
  background: rgba(224, 66, 55, 0.12);
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

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

.btn-gold:hover {
  background: var(--gold-light);
}

.header-cta {
  margin-left: 0.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 26, 58, 0.88) 0%, rgba(224, 66, 55, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 640px;
}

.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  transition: var(--transition);
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.sec-label {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-navy .sec-label {
  color: var(--gold);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-navy .sec-title {
  color: #fff;
}

.sec-desc {
  color: var(--text-muted);
  max-width: 40rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head .sec-desc {
  margin-inline: auto;
}

/* —— Mission / About teaser —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media .frame {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.split-media .frame img {
  width: 85%;
  max-width: 360px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.wish-list {
  margin: 1.25rem 0;
}

.wish-list li {
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  border-bottom: 1px dashed var(--border);
}

.wish-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* —— Achievements marquee —— */
.achievements {
  overflow: hidden;
  padding: 1.75rem 0;
  background: var(--primary);
  color: #fff;
}

.achievements-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.achievements-track span {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievements-track span::before {
  content: "★";
  color: var(--gold);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* —— Vision —— */
.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pill-list li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.vision-card {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(224, 66, 55, 0.25);
  top: -40px;
  right: -40px;
}

.vision-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
}

.vision-card p {
  opacity: 0.9;
  position: relative;
  margin-bottom: 1.5rem;
}

/* —— Causes grid —— */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cause-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cause-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(10, 42, 92, 0.14);
}

.cause-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  position: relative;
}

.cause-card-img .tax-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.cause-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cause-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.cause-card h3 a:hover {
  color: var(--primary);
}

.cause-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

/* —— Focus areas —— */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.focus-item {
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.focus-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.focus-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
}

.focus-item h4 {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}

/* —— CTA banner —— */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #1a3d6e 50%, var(--primary) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner .sec-label {
  color: var(--gold);
}

.cta-banner .sec-title {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
}

/* —— Stats —— */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}

/* —— Testimonials —— */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

.testimonial p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author strong {
  display: block;
  color: var(--navy);
}

.author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* —— FAQ —— */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  max-width: 960px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}

.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* —— Blog —— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, #1a3d6e, #2e7d32);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.blog-date {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* —— Page banner —— */
.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #1a3d6e 60%, var(--primary) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  opacity: 0.9;
}

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

/* —— Forms —— */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  min-height: 44px;
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 66, 55, 0.15);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(224, 66, 55, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-card h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.contact-card a:hover {
  color: var(--primary);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo img {
  width: 64px;
  height: 64px;
}

.footer-brand .logo-text strong {
  color: #fff;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* —— Content helpers —— */
.content-box {
  max-width: 800px;
  margin-inline: auto;
}

.content-box h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

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

.content-box ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}

.feature-box h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quote-box {
  background: var(--cream);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 1.75rem;
  font-style: italic;
  color: var(--navy);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.7rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  min-height: 44px;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 999;
  font-size: 1.6rem;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .causes-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .focus-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-text {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    min-width: 0;
    max-width: none;
    background: var(--dropdown-bg);
    margin: 0.25rem 0 0.5rem;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
  }

  .nav-overlay.show {
    display: block;
  }

  .split,
  .vision-grid,
  .faq-grid,
  .form-grid,
  .contact-cards,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .causes-grid,
  .blog-grid,
  .testimonials-grid,
  .gallery-grid,
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 480px;
  }

  .topbar {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Checkout / payment compliance —— */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.checkout-card h2,
.checkout-card h3 {
  color: var(--navy);
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.amount-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 1.25rem;
}

.amount-pill {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.amount-pill:hover,
.amount-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.order-summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  padding-top: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trust-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(46, 125, 50, 0.1);
  color: #1b5e20;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.consent-list {
  margin: 1rem 0;
}

.consent-list label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--text);
  cursor: pointer;
}

.consent-list input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.consent-list a {
  color: var(--primary);
  text-decoration: underline;
}

.policy-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  padding: 1rem 0 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.policy-links-bar a {
  color: var(--text-muted);
  text-decoration: underline;
}

.policy-links-bar a:hover {
  color: var(--primary);
}

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #f0f7f1;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #1b5e20;
  margin: 1rem 0;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-step.active {
  color: var(--primary);
}

.checkout-step .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.checkout-step.active .n {
  background: var(--primary);
  color: #fff;
}

.policy-content {
  max-width: 860px;
  margin-inline: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.policy-content h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.policy-content h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.policy-content ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}

.policy-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.status-panel {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.status-panel .status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.status-panel.success .status-icon { background: #2e7d32; }
.status-panel.failed .status-icon { background: var(--primary); }
.status-panel.cancelled .status-icon { background: #757575; }

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.footer-policies a:hover {
  color: var(--gold);
}

.footer-grid-5 {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
}

@media (max-width: 1024px) {
  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid-5 {
    grid-template-columns: 1fr;
  }
  .policy-content {
    padding: 1.25rem;
  }
}
