/* ============================================================
   AI Fun 4 Us — Static Site Styles
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1d4ed8;
  --primary-dark:  #1e40af;
  --primary-light: #dbeafe;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --text:          #111827;
  --text-muted:    #6b7280;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #0f172a;
  --border:        #e5e7eb;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 25px -5px rgba(0,0,0,.15);
  --transition:    150ms ease;
  --max-w:         1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

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

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* --- Header / Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--primary); }

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-donate { margin-left: .5rem; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s;
}

/* --- Hero --- */
.hero {
  background:
    linear-gradient(135deg, rgba(30,58,138,.82) 0%, rgba(79,70,229,.82) 60%, rgba(124,58,237,.82) 100%),
    url('/images/bg-01-free-img-1.webp') center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
}
.hero .tagline {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: .35rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p  { font-size: 1.2rem; opacity: .9; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Section headings --- */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-heading { margin-bottom: 1rem; }
.section-subtext { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtext { margin: 0 auto; }

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--text-muted); font-size: .95rem; }

/* --- Alt background sections --- */
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #e2e8f0;
}
.section-dark h2 { color: #fff; }
.section-dark p  { color: #94a3b8; }

/* --- Quote --- */
.quote-block {
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.quote-block blockquote {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.quote-block cite { font-size: .9rem; opacity: .75; font-style: normal; }

/* --- Team --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: .75rem; }
.team-card p { color: var(--text-muted); font-size: .9rem; }

/* --- Mission / Vision boxes --- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.mv-box {
  border-left: 4px solid var(--primary);
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.mv-box h3 { color: var(--primary); margin-bottom: .6rem; }

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Contact section / form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: .95rem;
}
.contact-detail .icon { font-size: 1.25rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}
.form-status.success { background: #dcfce7; color: #166534; display: block; }
.form-status.error   { background: #fee2e2; color: #991b1b; display: block; }

/* --- Donate page --- */
.donate-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }

.amount-btn {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.amount-btn:hover,
.amount-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.custom-amount { position: relative; }
.custom-amount span {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--text-muted);
}
.custom-amount input { padding-left: 1.75rem; }

.donate-impact h3 { margin-bottom: 1.5rem; }
.impact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.impact-icon { font-size: 1.75rem; flex-shrink: 0; }
.impact-text strong { display: block; font-weight: 600; margin-bottom: .2rem; }
.impact-text span   { color: var(--text-muted); font-size: .9rem; }

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; max-width: 280px; }

.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: .5rem; }
.footer-col a   { color: #94a3b8; font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* --- Page hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { font-size: 1.1rem; opacity: .85; max-width: 540px; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links li { width: 100%; }
  .nav-links a  { display: block; padding: .65rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }
  header { position: relative; }

  .contact-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .donate-grid   { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 2rem; }
  .form-row      { grid-template-columns: 1fr; }
  .amount-grid   { grid-template-columns: repeat(2, 1fr); }
  section        { padding: 3.5rem 0; }
}
