/* Grace Berman LCSW - Newsletter Site Styles */

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

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

a:hover {
  opacity: 0.8;
}

/* Header and Navigation */
header {
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--heading);
  cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--cloud);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

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

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

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--muted);
  font-size: 1rem;
}

/* Sample Content Section */
.sample-content {
  background: var(--cloud);
  padding: 5rem 0;
}

.sample-content h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.content-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.content-card p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0;
}

/* Subscribe Section */
.subscribe-section {
  padding: 5rem 0;
  text-align: center;
}

.subscribe-section h2 {
  margin-bottom: 1rem;
}

.subscribe-section p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
}

.subscribe-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.subscribe-form input {
  padding: 1rem 1.5rem;
  border: 2px solid var(--cloud);
  border-radius: 8px;
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

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

/* Testimonials */
.testimonials {
  background: var(--cloud);
  padding: 5rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  font-weight: 600;
  color: var(--heading);
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Archive Page */
.page-header {
  padding: 3rem 0;
  text-align: center;
  background: var(--cloud);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0;
}

.archive-grid {
  padding: 5rem 0;
}

.issue-card {
  background: var(--white);
  border: 2px solid var(--cloud);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.issue-card:hover {
  border-color: var(--primary);
  transform: translateX(8px);
}

.issue-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.issue-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.issue-tag {
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.issue-card h3 {
  margin-bottom: 1rem;
  color: var(--heading);
}

.issue-excerpt {
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:after {
  content: '→';
  transition: transform 0.2s ease;
}

.read-more:hover:after {
  transform: translateX(4px);
}

/* About Page */
.about-section {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cloud);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  background: var(--cloud);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.about-highlights h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-highlights ul {
  list-style: none;
  margin-left: 0;
}

.about-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.125rem;
}

.about-highlights li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--heading);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

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

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}

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

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-large {
    padding: 1rem 1.5rem;
  }

  .issue-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .sample-content,
  .subscribe-section,
  .testimonials,
  .archive-grid,
  .about-section {
    padding: 3rem 0;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
