/* Grace Berman, LCSW - Soft Contrast Resource Hub */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Color Palette */
  --white: #ffffff;
  --cloud: #f8fafc;
  --text: #334155;
  --heading: #0f172a;
  --primary: #2563eb;
  --accent: #ec4899;
  --muted: #64748b;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--cloud);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}

.logo-name {
  color: var(--heading);
}

.logo-credentials {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

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

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius);
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--heading);
  margin: 5px 0;
  transition: 0.3s;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-alt {
  background-color: var(--cloud);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.audience-card {
  background-color: var(--white);
  border: 2px solid var(--cloud);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s;
  cursor: pointer;
}

.audience-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

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

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

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* ==========================================================================
   Cards & Resource Components
   ========================================================================== */

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

.resource-card {
  background-color: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s;
}

.resource-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pink {
  background-color: rgba(236, 72, 153, 0.1);
  color: var(--accent);
}

.badge-blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.resource-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.resource-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.card-link:after {
  content: '→';
  transition: transform 0.2s;
}

.card-link:hover:after {
  transform: translateX(4px);
}

/* ==========================================================================
   Topic Cards
   ========================================================================== */

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

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

.topic-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.icon-blue {
  background-color: rgba(37, 99, 235, 0.1);
}

.icon-pink {
  background-color: rgba(236, 72, 153, 0.1);
}

/* ==========================================================================
   Callout Boxes
   ========================================================================== */

.callout {
  background-color: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.callout-icon {
  font-size: 1.5rem;
}

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

.callout p {
  margin-bottom: 0;
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

.about-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

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

.credential-item {
  background-color: var(--cloud);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.credential-item h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.credential-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.bio-section {
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.bio-section h2 {
  text-align: center;
}

.bio-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background-color: var(--heading);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

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

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    width: 100%;
    text-align: center;
    padding: var(--space-sm) 0;
  }

  nav a {
    display: block;
    padding: var(--space-sm);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

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

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

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-md) var(--space-md);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}
