/* Global Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --footer-color: #2c3e50;
  --banner-color: #ecf0f1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.page-clinicians {
  background-color: #eaf6ff;
}

.page-how-it-works {
  background-color: #eaf6ff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

/* Top Banner */
.top-banner {
  background-color: var(--banner-color);
  padding: 10px 0;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.contact-info i {
  margin-right: 5px;
  color: var(--secondary-color);
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 5px;
}

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

.logo img {
  height: 90px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: var(--primary-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--secondary-color);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

.close-menu {
  display: none; /* Hide close button by default in desktop view */
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/img/hero2.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-endorsement {
  margin: 20px auto 30px;
  color: #fff;
}

.hero-endorsement span {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.endorsement-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
}

.endorsement-badges img {
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* Main Content Sections */
section {
  padding: 60px 0;
}

/* Reviews Section */
.reviews-section {
  background-color: #d6ecff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.review-stars {
  color: #f5c518;
  margin-bottom: 12px;
}

.review-text {
  font-style: italic;
  color: #222;
  margin-bottom: 10px;
}

.review-author {
  color: #555;
  font-weight: 600;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Insurance Section */
.insurance-section {
  background-color: var(--light-color);
  text-align: center;
}

.insurance-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.insurance-logos img {
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.insurance-logos img:hover {
  filter: grayscale(0%);
}

/* Info Section */
.info-box {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

/* Welcome Section */
.welcome-section {
  background-color: #eaf6ff;
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-box p {
  margin-bottom: 10px;
}

.info-box ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Clinicians Section */
.clinician-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stack clinician cards vertically (one above the other) */
.clinicians-section .info-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.clinicians-section .clinician-card {
  width: 100%;
  max-width: 100%;
}

.clinician-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.clinician-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.clinician-img {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  margin-left: 20px;
}

.clinician-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.clinician-card:hover .clinician-img img {
  transform: scale(1.05);
}

.sammi-photo {
  background-color: #e8f4f8;
}

.clinician-info {
  flex: 1;
  padding: 20px 20px 20px 0;
}

.clinician-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.clinician-info p {
  margin-bottom: 15px;
}

.bio-divider {
  height: 2px;
  width: 140px;
  background: linear-gradient(90deg, #e3f3ff, #c9e8ff, #9fd3fb, #6bb9f0, #9fd3fb, #c9e8ff, #e3f3ff);
  border-radius: 3px;
  margin: 28px auto 36px;
}

/* How It Works Section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-card h3 {
  margin-top: 15px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Policy Page */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.policy-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 15px;
}

.policy-content ul {
  margin-left: 20px;
}

/* Footer */
footer {
  background-color: var(--footer-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
}

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

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.footer-contact-info i {
  margin-right: 10px;
  margin-top: 5px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .header-container {
    padding: 15px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 60px;
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 15px;
    text-align: center;
    border-radius: 0;
  }

  .close-menu {
    display: block; /* Show close button in mobile view */
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

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

  .endorsement-badges img {
    height: 30px;
  }

  .insurance-logos img {
    height: 50px;
  }

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

  /* Stack clinician card content vertically on small screens */
  .clinicians-section .clinician-card {
    flex-direction: column;
    text-align: center;
  }
  
  .clinicians-section .clinician-img {
    flex: none;
    width: 150px;
    height: 150px;
    margin: 40px auto 0 auto;
  }
  
  .clinicians-section .clinician-info {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .logo img {
    height: 65px;
  }

  .hero {
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-large {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .endorsement-badges {
    gap: 16px;
  }

  section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .insurance-logos {
    gap: 15px;
  }

  .insurance-logos img {
    height: 40px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
}
