/* css/home.css */

/* -----------------------------------------------
   Homepage Hero (uses .hero, not .page-hero)
----------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Shared with global hero system via same class names */
.hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    rgba(11,29,46,0.95) 0%,
    rgba(11,29,46,0.80) 55%,
    rgba(11,29,46,0.40) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  text-wrap: balance;
  color: #ffffff !important;
}

/* Force all text inside the homepage hero to white */
.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero .hero-subtitle,
.hero .tagline {
  color: #ffffff !important;
}

.hero .tagline {
  color: var(--color-accent-light, #EBB5A4) !important;
}

/* Pain Points */
.pain-card {
  background-color: var(--color-bg-white);
  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  border-left: 4px solid var(--color-error);
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-2);
}

/* Process Steps */
.process-steps {
  position: relative;
  z-index: 1;
}

.step-connector {
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: rgba(255,255,255,0.1);
  z-index: -1;
}

.process-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  backdrop-filter: blur(10px);
}

.process-card h4 {
  color: var(--color-bg-white);
}

.step-num {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 auto var(--spacing-6);
}

/* Services */
.services-grid {
  gap: 28px !important;   /* fixed pixel gap between all 4 cards */
}

.service-card {
  padding: 0;
  /* Note: NO overflow:hidden here — that would clip the text padding */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

/* Image — overflow hidden here to clip photo crop */
.service-img-wrapper {
  height: 180px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;  /* top corners match card */
  flex-shrink: 0;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.06);
}

/* Text body — clear separator from image, generous padding */
.service-content {
  padding: 20px 22px 20px;          /* hardcoded for reliability */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.07);  /* subtle divider between image and text */
  background-color: #ffffff;
  border-radius: 0 0 16px 16px;    /* bottom corners match card */
}

.service-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1d2e;           /* force dark — overrides <a> link color */
  margin: 0;
  line-height: 1.3;
}

.service-content p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5a6a7a;
  margin: 0;
  flex-grow: 1;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  margin-top: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-top: 1px solid rgba(0,0,0,0.06);   /* micro divider above CTA */
  transition: gap 0.2s ease;
}

.service-card:hover .learn-more {
  gap: 8px;
}

/* Clinician */
.rounded-image {
  border-radius: var(--radius-2xl);
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  .hero .hero-overlay {
    background: linear-gradient(180deg, rgba(11,29,46,0.85) 0%, rgba(11,29,46,0.95) 100%);
  }
  .step-connector {
    display: none;
  }
  .process-steps.grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .clinician-content {
    order: -1;
  }
}

/* 4-column services grid — responsive collapse */
@media (max-width: 1200px) {
  .services-grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid.grid-cols-4 {
    grid-template-columns: 1fr;
  }
}
