/* AHappy.net — Shared styles for static pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-purple: #534AB7;
  --brand-purple-light: #EEEDFE;
  --brand-purple-mid: #7F77DD;
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius: 12px;
  --max-w: 760px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg);
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
}
.site-logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color .15s;
}
.site-nav a:hover { color: var(--brand-purple); }
.nav-cta {
  background: var(--brand-purple);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-cta:hover { opacity: .88; }

/* ── Page hero ── */
.page-hero {
  background: var(--brand-purple-light);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
}
.page-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Content ── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-content h2 {
  font-size: 1.175rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-purple-light);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text-secondary); margin-bottom: 14px; }
.page-content ul {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 14px;
}
.page-content ul li { margin-bottom: 6px; }
.page-content a { color: var(--brand-purple); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content strong { color: var(--text-primary); font-weight: 600; }

/* ── Cards (pillars, contact) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.card a { text-decoration: none; color: inherit; display: block; }
.card a:hover h3 { color: var(--brand-purple); }

/* ── Contact form area ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.contact-info-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.contact-info-value a { color: var(--brand-purple); }

/* ── Social grid ── */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.social-pill:hover {
  border-color: var(--brand-purple-mid);
  color: var(--brand-purple);
}

/* ── Legal note ── */
.legal-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-note a { color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: #9ca3af;
  padding: 16px 24px;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-nav a:hover { color: #e5e7eb; }
.footer-legal {
  text-align: center;
  font-size: 0.775rem;
  line-height: 1.7;
  color: #6b7280;
}
.footer-legal a { color: #6b7280; text-decoration: none; }
