/* Grace Berman LCSW - Soft Contrast Design */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --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 scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  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: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: #1d4ed8;
}

/* ============================================================
   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-sm);
}

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.5rem;
}

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

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

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

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

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary);
}

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

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--cloud) 0%, var(--white) 100%);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--heading) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  margin-bottom: var(--space-lg);
  font-size: 1.35rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #1d4ed8;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

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

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

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--primary);
}

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

.card-title a {
  color: var(--heading);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary);
}

.card-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--muted);
}

.card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

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

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

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

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--heading);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================================
   NEWSLETTER SIGNUP
   ============================================================ */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  color: var(--white);
  text-align: center;
}

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

.newsletter-box p {
  opacity: 0.95;
  margin-bottom: var(--space-lg);
}

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

.newsletter-form .form-input {
  flex: 1;
  border: none;
}

.newsletter-form .btn {
  background: var(--accent);
  white-space: nowrap;
}

.newsletter-form .btn:hover {
  background: #db2777;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}

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

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

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--cloud);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .lead {
  max-width: 650px;
  margin: 0 auto;
}

/* ============================================================
   ABOUT PAGE SPECIFIC
   ============================================================ */
.about-intro {
  margin-bottom: var(--space-xl);
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--cloud);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

/* ============================================================
   CONTACT PAGE SPECIFIC
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-info {
  background: var(--cloud);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-info-item {
  margin-bottom: var(--space-md);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-label {
  font-weight: 600;
  color: var(--heading);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-info-value {
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cloud);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

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

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

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

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

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

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

  /* Mobile navigation */
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cloud);
    padding: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .site-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .site-nav a {
    font-size: 1.1rem;
  }

  /* Grid adjustments */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Newsletter form */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-box {
    padding: var(--space-lg);
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
  }

  h1 {
    font-size: 1.875rem;
  }

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

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