/* Assert Your Boundaries Counseling - Stylesheet */
/* Color Palette:
   Primary: #0a400c (Deep Forest Green), #e9e469 (Soft Yellow)
   Complementary: #1d332e (Dark Teal), #d3af37 (Gold)
   Font: Libre Baskerville
*/

:root {
  --forest-green: #0a400c;
  --soft-yellow: #e9e469;
  --dark-teal: #1d332e;
  --gold: #d3af37;
  --white: #ffffff;
  --off-white: #faf9f6;
  --light-cream: #f5f4ef;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --text-light: #777777;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.7s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest-green);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--forest-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--dark-teal);
  border-color: var(--dark-teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}

.btn-secondary:hover {
  background-color: var(--forest-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}

.btn-outline:hover {
  background-color: var(--forest-green);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #2f5249;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 192px;
  width: auto;
  display: block;
}

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

.nav-menu a {
  font-size: 0.9rem;
  color: var(--white);
  position: relative;
}

.nav-menu a:hover {
  color: var(--soft-yellow);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--forest-green);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: var(--dark-teal);
  color: var(--white) !important;
}

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

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition-fast);
}

/* Hero About Section (Homepage) */
.hero-about {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-cream) 100%);
}

.hero-about-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: start;
}

.hero-about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.hero-about-content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--forest-green);
  margin-bottom: 0.25rem;
}

.hero-about-title {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.hero-about-content .core-values {
  color: var(--forest-green);
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero-about .hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Legacy Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-cream) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a400c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--forest-green);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-subtitle a {
  color: var(--forest-green);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.hero-subtitle a:hover {
  color: var(--gold);
}

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

/* Sankofa Introduction */
.sankofa-intro {
  padding: 6rem 0;
  background-color: var(--forest-green);
  color: var(--white);
}

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

.sankofa-content h2 {
  color: var(--soft-yellow);
  margin-bottom: 2rem;
}

.sankofa-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.sankofa-text em {
  color: var(--soft-yellow);
  font-style: italic;
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Audience Section */
.audience-section {
  padding: 6rem 0;
  background-color: var(--dark-teal);
  color: var(--white);
}

.audience-section .section-title {
  color: var(--soft-yellow);
}

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

.audience-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all var(--transition-medium);
}

.audience-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.audience-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--soft-yellow);
}

.audience-card h3 {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
}

.audience-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.audience-card .btn-outline {
  color: var(--soft-yellow);
  border-color: var(--soft-yellow);
}

.audience-card .btn-outline:hover {
  background-color: var(--soft-yellow);
  color: var(--dark-teal);
}

.card-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  position: relative;
}

.card-link::after {
  content: ' \2192';
  transition: transform var(--transition-fast);
}

.card-link:hover {
  color: var(--forest-green);
}

/* Challenges Section */
.challenges-section {
  padding: 6rem 0;
  background-color: var(--light-cream);
}

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

.challenge-item {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.challenge-item:hover {
  transform: translateX(8px);
  border-left-color: var(--forest-green);
}

.challenge-text {
  color: var(--text-dark);
  font-size: 1rem;
}

/* About Preview */
.about-preview {
  padding: 6rem 0;
  background-color: var(--off-white);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-preview-content h2 {
  margin-bottom: 0.5rem;
}

.about-preview-content .credentials {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.about-preview-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Services Overview */
.services-overview {
  padding: 6rem 0;
  background-color: var(--dark-teal);
  color: var(--white);
}

.services-overview .section-title {
  color: var(--soft-yellow);
}

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

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.service-card h3 {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.service-card .card-link {
  color: var(--soft-yellow);
}

.service-card .card-link:hover {
  color: var(--white);
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  background-color: var(--dark-teal);
  color: var(--white);
}

.how-it-works .section-title {
  color: var(--soft-yellow);
}

.how-it-works .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.steps-timeline {
  max-width: 700px;
  margin: 3rem auto 0;
}

.step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--gold);
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: var(--soft-yellow);
  color: var(--dark-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--soft-yellow);
}

.step-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Location Section */
.location-section {
  padding: 6rem 0;
  background-color: var(--dark-teal);
  color: var(--white);
}

.location-section .section-title {
  color: var(--soft-yellow);
}

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

.location-section ul {
  color: rgba(255, 255, 255, 0.8);
}

.location-section strong {
  color: var(--soft-yellow);
}

/* Trust Section */
.trust-section {
  padding: 6rem 0;
  background-color: var(--light-cream);
}

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

.trust-item {
  text-align: center;
  padding: 1.5rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.trust-value {
  font-size: 1.1rem;
  color: var(--forest-green);
  font-weight: 700;
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Final CTA */
.final-cta {
  padding: 6rem 0;
  background-color: var(--forest-green);
  text-align: center;
}

.cta-content h2 {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-note a {
  color: var(--soft-yellow);
}

.cta-note a:hover {
  color: var(--white);
}

.final-cta .btn-primary {
  background-color: var(--soft-yellow);
  color: var(--forest-green);
  border-color: var(--soft-yellow);
}

.final-cta .btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--forest-green);
}

/* Footer */
.footer {
  background-color: var(--dark-teal);
  color: var(--white);
  padding: 1.5rem 0 0.75rem;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 192px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--soft-yellow);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive Design */
@media (max-width: 992px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-preview-image {
    text-align: center;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media screen and (max-width: 900px) {
  .nav {
    padding: 0;
  }

  .nav-container {
    padding: 0.25rem 0.5rem 0.25rem 0;
    min-height: 70px;
  }

  .nav-logo img {
    height: 144px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
  }

  /* Force hide desktop menu, show hamburger */
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #2f5249;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-fast);
    overflow-y: auto;
    z-index: 1000;
  }

  /* Show menu when active */
  .nav-menu.active {
    display: flex !important;
    right: 0;
  }

  .nav-menu a {
    color: var(--white);
    padding: 0.75rem 0;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--soft-yellow);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    background-color: var(--soft-yellow) !important;
    color: #2f5249 !important;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001;
    padding: 0.75rem;
  }

  .nav-toggle span {
    width: 24px;
    height: 3px;
  }

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

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

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

  /* Hero About responsive */
  .hero-about {
    padding: 6rem 0 3rem;
  }

  .hero-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .hero-about-content h1 {
    font-size: 1.5rem;
  }

  .hero-about .hero-cta {
    justify-content: center;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

  section {
    padding: 4rem 0;
  }

  .sankofa-intro,
  .final-cta {
    padding: 4rem 0;
  }

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

  .footer-logo {
    height: 144px;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Page-specific styles */

/* About Page */
.page-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-cream) 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

.content-section {
  padding: 5rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--light-cream);
}

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

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

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

.content-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.content-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: all var(--transition-fast);
}

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

.value-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Credentials List */
.credentials-list {
  list-style: none;
  margin-top: 2rem;
}

.credentials-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--light-cream);
}

.credentials-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--forest-green);
  font-weight: bold;
}

/* Services Page */
.service-section {
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

.service-section:nth-child(even) {
  background-color: var(--light-cream);
}

.service-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.service-header h2 {
  margin-bottom: 1rem;
}

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

.service-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--gold);
}

.service-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.service-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-sidebar {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.service-sidebar h4 {
  margin-bottom: 1rem;
  color: var(--forest-green);
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-cream);
}

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

.price-value {
  font-weight: 700;
  color: var(--forest-green);
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-info-item svg {
  color: var(--forest-green);
  flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: var(--light-cream);
}

.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background-color: var(--white);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--light-cream);
}

.faq-question svg {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-fast);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* Resources Page */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.resource-card h3 {
  margin-bottom: 1rem;
}

.resource-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest-green);
  font-weight: 700;
}

.resource-link:hover {
  color: var(--gold);
}

/* Crisis Banner */
.crisis-banner {
  background-color: var(--forest-green);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.crisis-banner h2 {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
}

.crisis-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.crisis-banner a {
  color: var(--soft-yellow);
  font-weight: 700;
}

.crisis-banner a:hover {
  color: var(--white);
}

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

.rate-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.rate-card-header {
  background-color: var(--forest-green);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
}

.rate-card-header h3 {
  color: var(--soft-yellow);
  margin-bottom: 0.5rem;
}

.rate-card-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.rate-card-body {
  padding: 2rem;
}

.rate-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rate-price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest-green);
}

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

.rate-features {
  list-style: none;
}

.rate-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--light-cream);
}

.rate-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.rate-features li:last-child {
  border-bottom: none;
}

/* Internship Page */
.internship-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--light-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-green);
}

.benefit-content h4 {
  margin-bottom: 0.25rem;
}

.benefit-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* SimplePractice Widget Styling */
.spwidget-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--forest-green);
  color: var(--white);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.spwidget-button:hover {
  background-color: var(--dark-teal);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-details {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

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

  .page-hero {
    padding: 7rem 1rem 2.5rem;
  }

  .page-hero .lead {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  /* Contact cards mobile */
  .contact-card {
    padding: 1.5rem;
  }

  .contact-card h3 {
    font-size: 1.25rem;
  }

  /* FAQ mobile improvements */
  .faq-question {
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .faq-answer p {
    padding: 0 1rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Resource cards mobile */
  .resource-card {
    padding: 1.5rem;
  }

  /* Rates table mobile */
  .rates-grid {
    grid-template-columns: 1fr;
  }

  /* Internship benefits mobile */
  .internship-benefits {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    padding: 1.25rem;
  }

  /* Values/outcomes grid mobile */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  /* Challenges grid mobile */
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .challenge-item {
    padding: 1.25rem 1.5rem;
  }

  /* Trust grid mobile */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-item {
    padding: 1rem 0.5rem;
  }

  .trust-label {
    font-size: 0.75rem;
  }

  .trust-value {
    font-size: 0.95rem;
  }

  /* Badges row mobile */
  .badges-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Crisis banner mobile */
  .crisis-banner {
    padding: 1.5rem 0;
  }

  .crisis-banner h2 {
    font-size: 1.25rem;
  }

  /* Section subtitle mobile */
  .section-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
  }

  /* CTA section mobile */
  .cta-content p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .cta-subtitle {
    font-size: 0.9rem !important;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Navigation mobile */
  .nav-container {
    padding: 0.25rem 0.5rem 0.25rem 0;
    min-height: 60px;
  }

  .nav-logo img {
    height: 150px;
    max-width: 360px;
  }

  .nav-toggle {
    padding: 0.5rem;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
  }

  .nav-menu {
    width: 85%;
    padding: 4rem 1.5rem 1.5rem;
  }

  /* Hero mobile */
  .hero {
    padding: 5rem 1rem 2rem;
  }

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

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

  .hero-location {
    font-size: 0.85rem;
  }

  .hero-body {
    font-size: 0.95rem;
  }

  /* Buttons mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    max-width: 100%;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  /* Section padding mobile */
  section {
    padding: 3rem 0;
  }

  .sankofa-intro,
  .final-cta {
    padding: 3rem 0;
  }

  /* Sankofa section mobile */
  .sankofa-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sankofa-text {
    font-size: 1rem;
  }

  /* Audience cards mobile */
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .audience-card {
    padding: 2rem 1.5rem;
  }

  .audience-icon {
    width: 60px;
    height: 60px;
  }

  .audience-icon svg {
    width: 32px;
    height: 32px;
  }

  /* Service cards mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Steps timeline mobile */
  .steps-timeline {
    margin: 2rem auto 0;
  }

  .step {
    margin-bottom: 2rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  /* About preview mobile */
  .about-preview-content h2 {
    font-size: 1.5rem;
  }

  .hero-quote {
    font-size: 1rem !important;
  }

  .about-preview-content ul {
    padding-left: 1rem;
    font-size: 0.95rem;
  }

  /* Footer mobile */
  .footer {
    padding: 1.125rem 0 0.56rem;
  }

  .footer-logo {
    height: 150px;
  }

  .footer-brand p,
  .footer-links a,
  .footer-contact p {
    font-size: 0.85rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  /* Page hero mobile */
  .page-hero {
    padding: 5.5rem 1rem 2rem;
  }

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

  /* Content sections mobile */
  .content-section {
    padding: 3rem 0;
  }

  .content-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Contact info items mobile */
  .contact-info-item {
    font-size: 0.9rem;
  }

  .contact-info-item svg {
    width: 18px;
    height: 18px;
  }

  /* SimplePractice button mobile */
  .spwidget-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    display: block;
    text-align: center;
  }

  /* Section titles mobile */
  .section-title {
    font-size: 1.5rem;
    padding: 0 0.5rem;
  }

  /* Price highlight mobile */
  .price-highlight {
    font-size: 0.9rem;
  }

  /* Who I work with section */
  .who-i-work-with {
    padding: 3rem 0;
  }

  /* Success outcomes mobile */
  .success-outcomes {
    padding: 3rem 0;
  }

  /* Location section mobile */
  .location-section {
    padding: 3rem 0;
  }

  .location-section ul {
    text-align: left;
    padding-left: 1.5rem;
  }

  /* Rates tables mobile */
  .rates-table th,
  .rates-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  /* Crisis resources list mobile */
  .crisis-list {
    padding-left: 0;
  }

  .crisis-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .spwidget-button,
  .nav-menu a,
  .faq-question,
  .card-link,
  .resource-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu a {
    padding: 0.75rem 0;
  }

  .faq-question {
    min-height: 56px;
  }
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
}

/* Improve text readability on mobile */
@media (max-width: 768px) {
  p, li {
    line-height: 1.8;
  }
}

/* Safari Browser Compatibility */
@supports (-webkit-touch-callout: none) {
  /* Safari flexbox fixes */
  .nav-container,
  .hero-cta,
  .hero-about-grid,
  .footer-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }

  .hero-about-grid {
    display: -webkit-grid;
    display: grid;
  }

  /* Safari sticky fix */
  .nav {
    position: -webkit-sticky;
    position: sticky;
  }

  /* Safari image rendering */
  img {
    -webkit-transform: translateZ(0);
  }
}

/* Samsung Internet & Mobile Browser Compatibility */
/* Force mobile nav on smaller screens regardless of browser detection */
@media screen and (max-width: 900px),
       screen and (max-device-width: 900px),
       screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 900px) {

  /* Explicitly hide desktop nav links */
  .nav-menu {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background-color: #2f5249 !important;
    flex-direction: column !important;
    padding: 5rem 2rem 2rem !important;
    gap: 0.5rem !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
  }

  /* Show menu only when toggled */
  .nav-menu.active {
    display: flex !important;
    visibility: visible !important;
    right: 0 !important;
  }

  /* Always show hamburger on mobile */
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    z-index: 1001 !important;
  }
}

/* JavaScript-based mobile nav detection (catches Samsung and other touch devices) */
body.mobile-nav-mode .nav-menu {
  display: none !important;
  visibility: hidden !important;
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 80% !important;
  max-width: 300px !important;
  height: 100vh !important;
  background-color: #2f5249 !important;
  flex-direction: column !important;
  padding: 5rem 2rem 2rem !important;
  gap: 0.5rem !important;
  z-index: 1000 !important;
  overflow-y: auto !important;
  transition: right 0.3s ease !important;
}

body.mobile-nav-mode .nav-menu.active {
  display: flex !important;
  visibility: visible !important;
  right: 0 !important;
}

body.mobile-nav-mode .nav-menu a {
  display: block !important;
  padding: 1rem 0 !important;
  font-size: 1.1rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  width: 100% !important;
}

body.mobile-nav-mode .nav-toggle {
  display: flex !important;
  visibility: visible !important;
  z-index: 1001 !important;
}

/* Additional Samsung/Android/Safari fixes */
.nav-menu,
.audience-card,
.service-card,
.value-card,
.resource-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fix position:sticky fallback */
.nav {
  position: -webkit-sticky;
  position: sticky;
}

/* Fix transitions */
.btn,
.audience-card,
.service-card,
.value-card,
.nav-menu a {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Fix button display issues */
.btn,
.btn-primary,
.btn-outline,
.nav-cta {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix font rendering */
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Fix image rendering */
img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
