/* ==============================
   Grace Berman, LCSW
   Design: Ink & Signal
   Palette: White, Ink, Charcoal, Silver, Signal, Rose
   ============================== */

/* ==============================
   CSS VARIABLES
   ============================== */
:root {
  /* Colors */
  --white: #ffffff;
  --ink: #1e293b;
  --charcoal: #334155;
  --silver: #94a3b8;
  --signal: #22d3ee;
  --rose: #fb7185;

  /* Typography */
  --font-headline: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

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

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ==============================
   RESET & BASE
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

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

/* ==============================
   HEADER
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
}

.main-nav a {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  position: relative;
}

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

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--signal);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--ink);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--rose);
}

.btn-secondary {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--signal);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* ==============================
   HERO
   ============================== */
.hero {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==============================
   CREDENTIALS BANNER
   ============================== */
.credentials-banner {
  background: var(--ink);
  padding: var(--space-xl) 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.credential-label {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.credential-detail {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

/* ==============================
   SECTIONS
   ============================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.section-label {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--charcoal);
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section-cta {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ==============================
   FEATURED MEDIA
   ============================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.media-card {
  padding: var(--space-lg);
  border: 2px solid var(--ink);
  transition: all 0.3s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--signal);
}

.media-tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.media-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.media-source {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.media-date {
  font-size: 0.875rem;
  color: var(--silver);
  margin-bottom: 0;
}

/* ==============================
   EXPERTISE PREVIEW
   ============================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.expertise-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--signal);
}

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

.expertise-card-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ==============================
   SPEAKING TOPICS
   ============================== */
.speaking-intro {
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.speaking-subtitle {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

.topics-list {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.topic-item {
  padding: var(--space-lg);
  border-left: 4px solid var(--signal);
  background: rgba(34, 211, 238, 0.05);
}

.topic-title {
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.topic-description {
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 0;
}

.speaking-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==============================
   PAGE HEADER
   ============================== */
.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--white);
}

.page-header.section-dark {
  background: var(--ink);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--charcoal);
  max-width: 700px;
  margin-bottom: 0;
}

.page-header.section-dark .page-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* ==============================
   EXPERTISE SECTIONS
   ============================== */
.expertise-section {
  padding: var(--space-3xl) 0;
}

.expertise-section:nth-child(even) {
  background: var(--ink);
}

.expertise-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.expertise-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.expertise-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-xl);
  line-height: 1.1;
}

.section-dark .expertise-title {
  color: var(--white);
}

.expertise-body {
  font-size: 1.125rem;
  line-height: 1.8;
}

.expertise-body p {
  margin-bottom: var(--space-lg);
}

.section-dark .expertise-body {
  color: rgba(255, 255, 255, 0.9);
}

.expertise-list {
  list-style: none;
  margin: var(--space-lg) 0;
  padding-left: 0;
}

.expertise-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.7;
}

.expertise-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 700;
  font-size: 1.25rem;
}

.expertise-cta-text {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(34, 211, 238, 0.1);
  border-left: 4px solid var(--signal);
  font-weight: 500;
}

.section-dark .expertise-cta-text {
  background: rgba(34, 211, 238, 0.15);
}

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
  background: rgba(251, 113, 133, 0.1);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

/* ==============================
   PRESS & MEDIA
   ============================== */
.featured-in {
  background: var(--white);
  padding: var(--space-2xl) 0;
  border-bottom: 2px solid var(--ink);
}

.press-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.press-logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: var(--space-md);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.press-item {
  padding: var(--space-lg);
  border: 2px solid var(--ink);
  transition: all 0.3s ease;
}

.press-item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--signal);
}

.press-tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.press-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.press-excerpt {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.press-source {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.press-date {
  font-size: 0.875rem;
  color: var(--silver);
  margin-bottom: 0;
}

/* ==============================
   PODCASTS
   ============================== */
.podcast-list {
  display: grid;
  gap: var(--space-xl);
}

.podcast-item {
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--signal);
}

.podcast-title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.podcast-show {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.podcast-date {
  font-size: 0.875rem;
  color: var(--silver);
  margin-bottom: var(--space-md);
}

.podcast-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==============================
   SPEAKING
   ============================== */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.speaking-item {
  padding: var(--space-lg);
  border: 2px solid var(--ink);
  transition: all 0.3s ease;
}

.speaking-item:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--rose);
}

.speaking-tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--rose);
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.speaking-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.speaking-event {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.speaking-location {
  font-size: 0.875rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.speaking-date {
  font-size: 0.875rem;
  color: var(--silver);
  margin-bottom: 0;
}

/* ==============================
   SPEAKING CTA SECTION
   ============================== */
.speaking-cta-section {
  background: rgba(251, 113, 133, 0.08);
}

.speaking-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.speaking-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.speaking-cta-description {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

.speaking-topics-preview {
  text-align: left;
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: var(--white);
  border: 2px solid var(--ink);
}

.speaking-topics-title {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.speaking-topics-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.speaking-topics-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.speaking-topics-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 700;
  font-size: 1.25rem;
}

.speaking-topics-list li:last-child {
  margin-bottom: 0;
}

/* ==============================
   BIO SECTION
   ============================== */
.bio-section {
  padding: var(--space-3xl) 0;
}

.bio-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.bio-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

.bio-lead {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

/* ==============================
   CREDENTIALS SECTION
   ============================== */
.credentials-section {
  background: var(--ink);
  padding: var(--space-3xl) 0;
}

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

.credential-block {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--signal);
}

.credential-title {
  font-size: 1.5rem;
  color: var(--signal);
  margin-bottom: var(--space-md);
}

.credential-detail {
  display: block;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.credential-detail:last-child {
  margin-bottom: 0;
}

/* ==============================
   APPROACH SECTION
   ============================== */
.approach-section {
  padding: var(--space-3xl) 0;
}

.approach-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.approach-intro {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

.approach-principles {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.principle-item {
  padding: var(--space-lg);
  border-left: 4px solid var(--signal);
  background: rgba(34, 211, 238, 0.05);
}

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

.principle-description {
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==============================
   CURRENT WORK SECTION
   ============================== */
.current-work-section {
  background: var(--ink);
  padding: var(--space-3xl) 0;
}

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

.project-item {
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--signal);
}

.project-title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.project-type {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.project-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--signal);
  margin-bottom: var(--space-lg);
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--rose);
}

.contact-note {
  font-size: 1rem;
  color: var(--silver);
  margin-bottom: 0;
  font-style: italic;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--charcoal);
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--ink);
}

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

.footer-text {
  font-size: 0.875rem;
  color: var(--silver);
  margin-bottom: 0;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--silver);
  transition: color 0.2s ease;
}

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

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  .main-nav a.active::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .media-grid,
  .expertise-grid,
  .press-grid,
  .speaking-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .press-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
