/* ==========================================================================
   Martial Arts For All Foundation — global stylesheet
   ========================================================================== */

:root {
  --red: #A32D2D;
  --red-dark: #7E2323;
  --charcoal: #1C1C1C;
  --light-red: #D97B7B;
  --gray: #6B6B6B;
  --white: #FFFFFF;
  --off-white: #FAF7F6;
  --border: #E7DEDE;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 18px rgba(28, 28, 28, 0.08);
  --shadow-hover: 0 10px 28px rgba(28, 28, 28, 0.14);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; color: var(--charcoal); }
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
main { display: block; }
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--off-white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5em;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-link { flex-shrink: 0; display: inline-flex; }
.logo-img { height: 56px; width: auto; }

.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 28px; justify-content: center; }
.site-nav a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-donate {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}
.btn-donate:hover { background: var(--red-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.75) 0%, rgba(28,28,28,0.88) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 96px;
  text-align: center;
}
.hero-logo {
  width: 433px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 24px;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.4em;
}
.hero-content p {
  max-width: 660px;
  margin: 0 auto 1.6em;
  font-size: 1.15rem;
  color: #F1E7E7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* simple hero for interior pages */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #E7D6D6; max-width: 640px; margin: 0.6em auto 0; }

/* ---------- Preview cards (Home) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.preview-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.preview-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.preview-card p { color: var(--gray); margin-bottom: 1em; }
.preview-card .learn-more {
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Donate tiles (Home) ---------- */
.donate-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.donate-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.donate-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.donate-tile-venmo { background: #3D95CE; }
.donate-tile-givebutter { background: var(--red); }
.donate-tile .tile-icon { font-size: 1.8rem; }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.contact-card h2 { color: var(--white); }
.contact-card a { color: var(--white); font-weight: 600; }
.contact-card-item { display: flex; flex-direction: column; gap: 6px; }
.contact-card-label { color: var(--light-red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-social { display: flex; gap: 14px; }
.contact-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
}
.contact-social a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Mission statement (About) ---------- */
.mission-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.mission-text p:last-child { margin-bottom: 0; }

/* ---------- Stacked bio rows (About / Partners) ---------- */
.bio-row {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.bio-row:last-child { border-bottom: none; }
.bio-row.reverse { flex-direction: row-reverse; }
.bio-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
}
.bio-text h3 { margin-bottom: 0.2em; }
.bio-role { color: var(--red); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6em; display: block; }
.bio-text p { color: var(--gray); margin: 0 0 0.8em; }
.bio-text p:last-child { margin-bottom: 0; }
.placeholder-note {
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 0.6em;
}

/* ---------- Dollar tiers (Programs) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tier-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.2em;
}
.tier-card h4 { font-size: 1.05rem; margin-bottom: 0.4em; }
.tier-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }

.programs-cta {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.programs-cta h2 { color: var(--white); }
.programs-cta p { color: #F5E4E4; max-width: 560px; margin: 0 auto 1.6em; }
.programs-cta .btn-primary { background: var(--white); color: var(--red); }
.programs-cta .btn-primary:hover { background: var(--off-white); }

/* ---------- Testimonials (Impact) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  margin: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { color: var(--gray); font-size: 0.82rem; }

/* ---------- Section headings ---------- */
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #D9D0D0;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-brand { max-width: 340px; }
.footer-logo-badge {
  display: inline-flex;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.footer-logo { height: 44px; display: block; }
.footer-brand p { color: #B9AFAF; font-size: 0.92rem; }
.footer-contact h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.6em; }
.footer-contact p { margin: 0 0 0.4em; }
.footer-contact a { color: #D9D0D0; }
.footer-contact a:hover { color: var(--light-red); }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #4A4444;
  border-radius: 50%;
  color: var(--white);
}
.social-links a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom {
  border-top: 1px solid #3A3535;
  text-align: center;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: #9A9090;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .btn-donate { order: 1; }
  .nav-toggle { order: 2; }
  .site-nav { order: 3; }

  .card-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .donate-tiles { grid-template-columns: 1fr; }
  .bio-row, .bio-row.reverse { flex-direction: column; text-align: center; }
  .contact-card { flex-direction: column; text-align: center; align-items: center; }
  .contact-card-item { align-items: center; }
}
