/* Grace Berman, LCSW - Bright Line Resource Center */

/* ========== CSS Custom Properties ========== */
:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --black: #18181b;
  --gray: #71717a;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography scale */
  --text-xs: 14px;
  --text-sm: 16px;
  --text-base: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 64px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--black);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
}

/* ========== Layout Containers ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-3xl) 0;
}

/* ========== Header & Navigation ========== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--off-white);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black);
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--black);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--black);
  cursor: pointer;
  padding: var(--space-xs);
}

/* ========== Hero Sections ========== */
.hero {
  background: var(--off-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto var(--space-xl) auto;
}

.hero-minimal {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

/* Dual-track selector */
.audience-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 800px;
  margin: var(--space-xl) auto 0;
}

.audience-card {
  background: var(--white);
  border: 2px solid var(--off-white);
  border-radius: 8px;
  padding: var(--space-xl);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.audience-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.audience-card p {
  color: var(--gray);
  margin-bottom: 0;
}

/* ========== Buttons & CTAs ========== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-light);
  opacity: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== Badge Component ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  margin-bottom: var(--space-xs);
}

.badge-light {
  background: var(--accent-light);
  color: var(--accent);
}

/* ========== Card Components ========== */
.card {
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.card-link {
  color: var(--accent);
  font-weight: 500;
  font-size: var(--text-sm);
}

/* Resource grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Topic grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.topic-card {
  background: var(--off-white);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.topic-card:hover {
  border-color: var(--accent);
  background: var(--white);
}

.topic-card h4 {
  margin-bottom: var(--space-xs);
}

.topic-card p {
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ========== Resource List ========== */
.resource-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
}

.resource-item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--off-white);
  transition: background 0.2s ease;
}

.resource-item:hover {
  background: var(--off-white);
}

.resource-item h4 {
  margin-bottom: var(--space-xs);
}

.resource-item p {
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.resource-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ========== Callout Box ========== */
.callout {
  background: var(--off-white);
  border-left: 4px solid var(--accent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 4px;
}

.callout h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.callout p {
  margin-bottom: var(--space-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ========== Newsletter Form ========== */
.newsletter {
  background: var(--off-white);
  padding: var(--space-2xl);
  border-radius: 8px;
  text-align: center;
  margin: var(--space-3xl) 0;
}

.newsletter h3 {
  margin-bottom: var(--space-sm);
}

.newsletter p {
  color: var(--gray);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-sm);
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-family: 'Inter', sans-serif;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ========== About/Credentials ========== */
.credentials {
  max-width: 800px;
  margin: 0 auto;
}

.credentials h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.credentials ul {
  list-style: none;
  padding: 0;
}

.credentials li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--off-white);
}

.credentials li:last-child {
  border-bottom: none;
}

/* ========== Footer ========== */
footer {
  background: var(--off-white);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--off-white);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--gray);
  font-size: var(--text-sm);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--off-white);
  color: var(--gray);
  font-size: var(--text-sm);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  :root {
    --text-3xl: 36px;
    --text-4xl: 48px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--off-white);
    padding: var(--space-md);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .audience-selector {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --text-3xl: 28px;
    --text-4xl: 36px;
    --text-2xl: 24px;
  }

  .audience-card {
    padding: var(--space-lg);
  }
}
