/* ============================================
   Branches Counseling — GateWay Bible Church
   ============================================ */

/* (Hero uses shared page-hero--photo component from components.css) */


/* --- Intro Layout --- */

.counsel-intro-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-16);
  align-items: start;
}

.counsel-intro-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-top: var(--space-4);
}

.counsel-intro-text em {
  color: var(--dark-blue);
  font-weight: var(--font-weight-medium);
}


/* --- Highlight Card (free sessions) --- */

.counsel-highlight-card {
  background: var(--dark-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-left: 3px solid var(--gold);
}

.counsel-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white-10);
  border-radius: var(--radius-md);
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.counsel-highlight-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.counsel-highlight-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.7;
}


/* --- Services Grid --- */

.counsel-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.counsel-service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--bright-blue);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.counsel-telehealth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
  margin-top: var(--space-8);
  text-align: center;
}

.counsel-telehealth-note svg {
  flex-shrink: 0;
  color: var(--bright-blue);
}

.counsel-service-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-3);
}

.counsel-service-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
}


/* --- Counselor Team Grid --- */

.counsel-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.counsel-member {
  text-align: center;
  background: none;
  border: none;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-out);
  font-family: var(--font-primary);
}

.counsel-member:hover {
  background: var(--white);
}

.counsel-member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-5);
  border: 3px solid var(--bright-blue-20);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.counsel-member:hover .counsel-member-photo {
  border-color: var(--bright-blue);
}

.counsel-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.counsel-member-name {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-1);
}

.counsel-member-credential {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.counsel-member-focus {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-light);
  color: var(--gray-blue);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto var(--space-4);
}

.counsel-member-more {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* --- How It Works Steps --- */

.counsel-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.counsel-step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.counsel-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-black);
  color: var(--dark-blue);
}

.counsel-step-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.counsel-step-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.7;
}

.counsel-step-desc a {
  color: var(--bright-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--bright-blue-20);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.counsel-step-desc a:hover {
  border-color: var(--bright-blue);
}


/* --- What to Expect --- */

.counsel-expect-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-16);
  align-items: start;
}

.counsel-expect-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-top: var(--space-4);
}

.counsel-expect-privacy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
}

.counsel-expect-privacy svg {
  flex-shrink: 0;
  color: var(--gray-blue);
}

.counsel-expect-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-top: 3px solid var(--gold);
}

.counsel-expect-card h3 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-5);
}

.counsel-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.counsel-reasons-list li {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue-70);
  padding-left: var(--space-5);
  position: relative;
}

.counsel-reasons-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bright-blue);
  opacity: 0.5;
}


/* --- Scripture --- */

.counsel-verse {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.counsel-verse-text {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-light);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.counsel-verse-ref {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--white-50);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* --- Recovery Callout --- */

.counsel-recovery-layout {
  max-width: 700px;
}

.counsel-recovery-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin: var(--space-4) 0 var(--space-8);
}


/* --- Closing CTA --- */

.counsel-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.counsel-closing-headline {
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: var(--font-weight-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.counsel-closing-sub {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-book);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto var(--space-8);
}

.counsel-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}


/* --- Counselor Modal --- */

.counsel-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 32, 56, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.counsel-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.counsel-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-10);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--duration-normal) var(--ease-out);
}

.counsel-modal-overlay.is-active .counsel-modal {
  transform: translateY(0) scale(1);
}

.counsel-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-blue-10);
  border: none;
  border-radius: 50%;
  font-size: var(--text-xl);
  color: var(--dark-blue);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.counsel-modal-close:hover {
  background: var(--dark-blue-20);
}

.counsel-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--dark-blue-10);
}

.counsel-modal-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bright-blue-20);
}

.counsel-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.counsel-modal-name {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-1);
}

.counsel-modal-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--bright-blue);
}

.counsel-modal-body p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.counsel-modal-contact {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: 1px solid var(--dark-blue-10);
}

.counsel-modal-email,
.counsel-modal-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bright-blue-10);
  transition: background var(--duration-fast) var(--ease-out);
}

.counsel-modal-email:hover,
.counsel-modal-phone:hover {
  background: var(--bright-blue-20);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .counsel-intro-layout,
  .counsel-expect-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .counsel-services-grid {
    grid-template-columns: 1fr;
  }

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

  .counsel-telehealth-note {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .counsel-team-grid {
    grid-template-columns: 1fr;
  }

  .counsel-step {
    flex-direction: column;
    gap: var(--space-3);
  }

  .counsel-verse-text {
    font-size: var(--text-xl);
  }
}
