/* =====================================================
   AnxietyManagementTest.com — Main Stylesheet
   ===================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #14b8a6;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --footer-bg: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15,23,42,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVIGATION ──────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(15,23,42,0.07);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.2s;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 72px 24px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: #a5f3fc; }
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 1.0625rem; }

/* ── CONTENT SECTION ─────────────────────────────── */
.section {
  padding: 64px 0;
}
.section-alt { background: var(--white); }
.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 720px;
}
.section p strong { color: var(--text); font-weight: 600; }

/* ── FEATURE BADGES (hero) ───────────────────────── */
.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ── TEST CARDS GRID ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link::after { content: '→'; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { margin-top: 32px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  transition: background 0.15s;
}
.faq-question:hover { background: #f1f5f9; }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
}
.cta-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PAGE CONTENT (about/privacy/terms/contact) ───── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.page-content .updated {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.page-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 32px 0 10px;
}
.page-content p, .page-content li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.page-content ul { padding-left: 20px; }

/* Contact form */
.contact-form { margin-top: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background-color: var(--footer-bg);
  color: #94a3b8;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #ffffff; }
.footer-disclaimer {
  margin: 32px 0 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px 24px;
}
.footer-disclaimer-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 10px;
}
.footer-disclaimer p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.65;
}
.footer-copy {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #475569;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; gap: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding: 40px 20px 28px; }
  .hero { padding: 48px 20px 40px; }
  .cards-grid { grid-template-columns: 1fr; }
}
