/* ===== AFSG – Autism Family Support Group =====
   Light, smooth, modern design with autism awareness colours
   ===================================================== */

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

:root {
  --blue:    #3B82F6;
  --blue-l:  #EFF6FF;
  --blue-d:  #1D4ED8;
  --purple:  #8B5CF6;
  --purple-l:#F5F3FF;
  --green:   #22C55E;
  --green-l: #F0FDF4;
  --amber:   #F59E0B;
  --amber-l: #FFFBEB;
  --red:     #E55A2B;

  --text-1:  #0F172A;
  --text-2:  #475569;
  --text-3:  #94A3B8;
  --bg:      #FFFFFF;
  --bg-2:    #F8FAFC;
  --bg-3:    #F1F5F9;
  --border:  #E2E8F0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
p  { color: var(--text-2); line-height: 1.75; }

.accent { color: var(--blue); }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-l);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 8px; }
.section-header .link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
}

.section-pad { padding: 80px 0; }

.link-arrow {
  color: var(--blue);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 8px; text-decoration: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none !important;
}
.btn-lg { padding: 14px 30px; font-size: 1rem; }

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

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-l); }

/* ===== NAV ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: var(--text-1);
}
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-title { font-size: 1.3rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; line-height: 1.2; }
.logo-sub { font-size: 0.8rem; color: var(--text-2); font-weight: 400; margin-top: 2px; }

/* Footer logo text */
.footer-logo span { font-size: 0.95rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--blue-l); }
.btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
}
.btn-nav:hover { background: var(--blue-d) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: linear-gradient(160deg, #F0F7FF 0%, #F5F3FF 50%, #F0FDF4 100%);
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-spectrum {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #E55A2B, #F59E0B, #22C55E, #3B82F6, #8B5CF6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-symbol {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.25;
  width: 420px;
  height: 420px;
  pointer-events: none;
}
.infinity-symbol { width: 100%; height: 100%; }

/* ===== ABOUT STRIP ===== */
.about-strip {
  padding: 72px 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p  { margin-bottom: 20px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.78rem; color: var(--text-2); line-height: 1.4; }

/* ===== SPECTRUM DIVIDER ===== */
.spectrum-bar {
  display: flex;
  height: 5px;
}
.bar { flex: 1; }
.b1 { background: #E55A2B; }
.b2 { background: #F59E0B; }
.b3 { background: #EAB308; }
.b4 { background: #22C55E; }
.b5 { background: #3B82F6; }
.b6 { background: #8B5CF6; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin: 16px 0 10px; }
.card p { font-size: 0.93rem; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }
.icon-blue   { background: var(--blue-l);   color: var(--blue); }
.icon-purple { background: var(--purple-l); color: var(--purple); }
.icon-green  { background: var(--green-l);  color: #16A34A; }
.icon-amber  { background: var(--amber-l);  color: #D97706; }

/* ===== SYMBOL SECTION ===== */
.symbol-section {
  background: var(--bg-2);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.symbol-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}
.symbol-graphic { flex-shrink: 0; }
.rainbow-infinity { width: 260px; height: 260px; }
.symbol-text h2 { margin-bottom: 16px; }
.symbol-text p  { margin-bottom: 16px; }
.symbol-text p:last-child { margin-bottom: 0; }

/* ===== NEWS ===== */
.news { background: var(--bg); }
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card.featured { background: var(--blue-l); border-color: #BFDBFE; }
.news-card h3 { margin: 10px 0 8px; }
.news-card p  { font-size: 0.92rem; }
.news-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-3);
}
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #BFDBFE;
  color: #1E40AF;
  padding: 3px 10px;
  border-radius: 100px;
}
.news-tag.green  { background: #BBF7D0; color: #15803D; }
.news-tag.amber  { background: #FDE68A; color: #B45309; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #1E3A5F 0%, #2D1B69 100%);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-section h2 { color: #fff; margin-bottom: 8px; }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cta-section .btn-primary { background: #fff; color: var(--blue-d); border-color: #fff; }
.cta-section .btn-primary:hover { background: var(--blue-l); border-color: var(--blue-l); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a,
.footer p a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer ul a:hover,
.footer p a:hover { color: #fff; }
.footer p { font-size: 0.9rem; margin-bottom: 8px; color: rgba(255,255,255,0.5); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 20px 0 16px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}
.social-links a:hover { background: var(--blue); color: #fff; }
.social-links svg { width: 16px; height: 16px; }

.footer-policy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-policy a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-policy a:hover { color: #fff; }

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); text-align: center; margin: 0; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(160deg, #F0F7FF 0%, #F5F3FF 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #E55A2B, #F59E0B, #22C55E, #3B82F6, #8B5CF6);
}
.page-hero .section-tag { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p  { font-size: 1.05rem; max-width: 560px; margin-top: 12px; }

/* ===== CONTENT SECTIONS ===== */
.content-section { padding: 72px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col h2 { margin-bottom: 16px; }
.two-col p  { margin-bottom: 14px; }

/* Info cards (hub) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-card h3 { margin-bottom: 10px; font-size: 1rem; }
.info-card p  { font-size: 0.9rem; }
.info-card .link-arrow { margin-top: 12px; font-size: 0.88rem; }

/* Accordion */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-1);
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--bg-2); }
.accordion-btn .icon {
  font-size: 1.2rem;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-btn.open .icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 4px 24px 20px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}
.accordion-body.open { display: block; }

/* Form */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-1); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }

/* Events */
.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-date {
  text-align: center;
  background: var(--blue-l);
  border-radius: var(--radius-md);
  padding: 8px;
}
.event-date .day { font-size: 1.6rem; font-weight: 700; color: var(--blue); line-height: 1; }
.event-date .mon { font-size: 0.72rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.event-info h3 { font-size: 1rem; margin-bottom: 4px; }
.event-info p  { font-size: 0.88rem; }
.event-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.badge-blue   { background: var(--blue-l);   color: #1D4ED8; }
.badge-green  { background: var(--green-l);  color: #15803D; }
.badge-amber  { background: var(--amber-l);  color: #B45309; }
.badge-purple { background: var(--purple-l); color: #6D28D9; }

/* Volunteer */
.volunteer-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.vol-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--bg);
}
.vol-card .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}
.vol-card h3 { margin-bottom: 10px; }
.vol-card p  { font-size: 0.92rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .symbol-inner, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .symbol-graphic { margin: 0 auto; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .logo-title { font-size: 1rem; }
  .logo-mark svg { width: 56px !important; height: 56px !important; }
  .nav-links { 
    display: none;
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 64px; min-height: auto; }
  .hero-symbol { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }

  .news-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 56px 1fr; }
  .event-badge { display: none; }

  .section-pad { padding: 56px 0; }
  .content-section { padding: 48px 0; }
}
