/* ===== MUSIC THERAPY NEWS — Global Styles ===== */

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

:root {
  --navy: #1B2A4A;
  --navy-light: #2C3E6B;
  --teal: #2563EB;
  --teal-light: #3B82F6;
  --teal-pale: #EFF6FF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

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

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }

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

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

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--teal); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--gray-800);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.9rem;
}

.nav-cta:hover { background: var(--teal-light); color: var(--white) !important; }
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  outline: none;
  color: var(--gray-800);
}

.hero-search button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-search button:hover { background: var(--teal-light); }

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 { margin-bottom: 8px; }

.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  overflow: hidden;
}

.card-img svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.card-body { padding: 20px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.card-tag {
  background: var(--teal-pale);
  color: var(--teal);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--teal); }

.card-body p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Article Cards Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Therapist Cards --- */
.therapist-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.therapist-card:hover { box-shadow: var(--shadow-md); }

.therapist-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--teal);
  font-weight: 700;
}

.therapist-info h3 { margin-bottom: 4px; font-size: 1.1rem; }

.therapist-credentials {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.therapist-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.specialty-tag {
  background: var(--teal-pale);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.therapist-location {
  color: var(--gray-600);
  font-size: 0.85rem;
}

.therapists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Topics Grid --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.topic-card:hover {
  background: var(--teal-pale);
  border-color: var(--teal);
}

.topic-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.topic-card h4 { font-size: 0.95rem; margin-bottom: 4px; }

.topic-card p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* --- Sections --- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }

/* --- News Page --- */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.category-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.category-btn:hover, .category-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.sidebar-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-section h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
}

.sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.sidebar-item h4 a { color: var(--navy); }
.sidebar-item h4 a:hover { color: var(--teal); }

.sidebar-item .meta {
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* --- Article Page --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.article-header { margin-bottom: 32px; }

.article-header .category-label {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-header h1 { font-size: 2.2rem; margin-bottom: 16px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.article-content { line-height: 1.8; font-size: 1.05rem; }
.article-content p { margin-bottom: 20px; }

.article-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.article-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  background: var(--gray-50);
  margin: 24px 0;
  font-style: italic;
  color: var(--gray-600);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Author sidebar */
.author-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 92px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal-pale);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 700;
}

.author-card h4 { margin-bottom: 4px; }

.author-card .credentials {
  color: var(--gray-600);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.author-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Share buttons */
.share-bar {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.share-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Related articles */
.related-articles { margin-top: 48px; }
.related-articles h2 { margin-bottom: 24px; }

/* --- Directory Page --- */
.directory-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.directory-header h1 { color: var(--white); margin-bottom: 8px; }
.directory-header p { opacity: 0.85; margin-bottom: 24px; }

.directory-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.directory-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
}

.directory-search select {
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
  outline: none;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.filter-tag {
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tag:hover, .filter-tag.active {
  background: var(--teal);
  border-color: var(--teal);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-count {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Directory therapist card (larger) */
.dir-therapist-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
  cursor: pointer;
}

.dir-therapist-card:hover { box-shadow: var(--shadow-md); }

.dir-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--teal);
  font-weight: 700;
}

.dir-info { flex: 1; }
.dir-info h3 { margin-bottom: 4px; }

.dir-info .credentials {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.dir-info .bio {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.dir-contact {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

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

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

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

/* --- About Page --- */
.page-header {
  background: var(--gray-50);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--gray-600); font-size: 1.05rem; }

.about-content { max-width: 780px; margin: 0 auto; }

.about-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-pale);
}

.about-content p {
  margin-bottom: 16px;
  color: var(--gray-800);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.team-card {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal-pale);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--teal);
  font-weight: 700;
}

.team-card h4 { margin-bottom: 2px; }

.team-card .role {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 24px auto 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
}

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

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--teal-light); }

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.88rem;
  outline: none;
}

.newsletter-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--teal-light); }

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

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  line-height: 1;
}

.modal-close:hover { color: var(--gray-800); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .therapists-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 48px 0; }
  .section { padding: 40px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .menu-toggle { display: block; }

  .articles-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { border-bottom: 1px solid var(--gray-200); }
  .hero-search button { border-radius: 0 0 var(--radius) var(--radius); }

  .directory-search { flex-direction: column; }
  .dir-therapist-card { flex-direction: column; text-align: center; }
  .dir-avatar { margin: 0 auto; }
  .dir-contact { justify-content: center; }

  .article-header h1 { font-size: 1.75rem; }
  .team-grid { grid-template-columns: 1fr; }
}
