/* ==========================================================================
   JUNIPER VITALITY — HOMEPAGE STYLES
   ========================================================================== */

/* === HERO =============================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-9)) 0 var(--space-10);
  overflow: hidden;
  background: linear-gradient(180deg, var(--linen) 0%, var(--paper) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-9);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero__content {
  max-width: 640px;
}

.hero__heading {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  color: var(--juniper-deep);
}

.hero__heading em {
  font-style: italic;
  color: var(--slate-blue);
  font-weight: 400;
}

.hero__lead {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--slate-mid);
  margin-bottom: var(--space-7);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__credentials {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(45, 75, 30, 0.12);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero__credentials-text {
  font-size: var(--text-sm);
  color: var(--slate-mid);
  line-height: 1.5;
}

.hero__credentials-text strong {
  color: var(--juniper-deep);
  font-weight: 600;
}

/* Hero image with botanical frame echoing the logo's circle treatment */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual-accent {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--juniper-mid);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

.hero__visual-accent-2 {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: var(--sage-mist);
  border-radius: 50%;
  z-index: -1;
}

/* Hero background watermark — subtle juniper branch to the far left,
   only visible enough to add texture without competing with content */
.hero__watermark {
  position: absolute;
  top: 50%;
  left: -8%;
  transform: translateY(-50%);
  width: 520px;
  height: 580px;
  opacity: 0.025;
  color: var(--juniper-deep);
  pointer-events: none;
  z-index: 0;
}

/* === DUAL PATH ENTRY ==================================================== */
.dual-path {
  background: var(--paper);
  position: relative;
}

.dual-path__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

.dual-path__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.path-card {
  background: var(--pearl);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-mid);
  border: 1px solid rgba(45, 75, 30, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.path-card--oncology {
  background: linear-gradient(135deg, var(--pearl) 0%, var(--paper) 100%);
}

.path-card--wellness {
  background: linear-gradient(135deg, var(--pearl) 0%, var(--sage-mist) 100%);
}

.path-card__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.path-card__icon {
  width: 32px;
  height: 32px;
  color: var(--juniper-mid);
}

.path-card__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--juniper-mid);
}

.path-card__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-5);
  color: var(--juniper-deep);
}

.path-card__description {
  color: var(--slate-mid);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.path-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.path-card__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate-deep);
}

.path-card__list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--juniper-mid);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* === PHILOSOPHY (VITAL FORCE) =========================================== */
.philosophy {
  background: var(--juniper-deep);
  color: var(--linen);
  position: relative;
  overflow: hidden;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-9);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.philosophy__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.philosophy__symbol {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy__symbol svg {
  width: 100%;
  height: 100%;
  color: var(--sage-pale);
  opacity: 0.9;
}

.philosophy__monogram {
  width: 100%;
  height: 100%;
  max-width: 360px;
  /* The brand monogram is dark green on white — on the dark green
     philosophy background, we lighten it via filter to make it readable
     while preserving its intricate botanical detail */
  filter: brightness(0) invert(1) opacity(0.4);
  transition: filter var(--transition-mid);
}

.philosophy__content h2 {
  color: var(--linen);
  margin-bottom: var(--space-5);
}

.philosophy__content h2 em {
  font-style: italic;
  color: var(--sage-pale);
  font-weight: 300;
}

.philosophy__lead {
  font-size: var(--text-md);
  color: rgba(248, 245, 238, 0.85);
  margin-bottom: var(--space-6);
  line-height: 1.7;
  max-width: 600px;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--sage-pale);
  padding-left: var(--space-5);
  border-left: 2px solid var(--gold);
  margin: var(--space-6) 0;
  line-height: 1.5;
}

.philosophy__attribution {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-4);
}

/* Subtle radial glow behind philosophy section */
.philosophy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--juniper-mid) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

/* === SERVICES OVERVIEW ================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* === DOCTOR INTRO STRIP ================================================= */
.doctor-intro {
  background: var(--sage-mist);
  position: relative;
  overflow: hidden;
}

.doctor-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-9);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.doctor-intro__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.doctor-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-intro__name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-3);
  color: var(--juniper-deep);
}

.doctor-intro__credentials {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: var(--space-6);
}

.doctor-intro__bio {
  color: var(--slate-deep);
  margin-bottom: var(--space-5);
  font-size: var(--text-md);
  line-height: 1.7;
}

.doctor-intro__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(45, 75, 30, 0.15);
}

.doctor-intro__stat {
  text-align: left;
}

.doctor-intro__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--juniper-deep);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.doctor-intro__stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mid);
  font-weight: 500;
}

/* === JOURNEY / PROCESS ================================================== */
.journey {
  background: var(--paper);
}

.journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  position: relative;
}

.journey__step {
  position: relative;
  padding: var(--space-6);
  background: var(--pearl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 75, 30, 0.08);
  transition: all var(--transition-mid);
}

.journey__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

.journey__step-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.journey__step-number::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.journey__step-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--juniper-deep);
}

.journey__step-description {
  color: var(--slate-mid);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .journey__steps { grid-template-columns: 1fr 1fr; }
}

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

/* === TESTIMONIAL FEATURE ================================================ */
.testimonial-feature {
  background: var(--linen);
  position: relative;
  overflow: hidden;
}

.testimonial-feature__inner {
  max-width: var(--container-mid);
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial-feature__quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--sage);
  opacity: 0.4;
  margin-bottom: var(--space-2);
  font-weight: 300;
}

.testimonial-feature__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--juniper-deep);
  margin-bottom: var(--space-7);
  font-style: italic;
}

.testimonial-feature__attribution {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.testimonial-feature__name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--juniper-deep);
}

.testimonial-feature__detail {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mid);
}

/* === CTA STRIP ========================================================== */
.cta-strip {
  background: linear-gradient(135deg, var(--juniper-deep) 0%, var(--berry) 100%);
  color: var(--linen);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip__inner {
  max-width: var(--container-mid);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.cta-strip h2 {
  color: var(--linen);
  font-weight: 300;
  margin-bottom: var(--space-5);
}

.cta-strip h2 em {
  font-style: italic;
  color: var(--sage-pale);
}

.cta-strip__lead {
  color: rgba(248, 245, 238, 0.85);
  font-size: var(--text-md);
  margin-bottom: var(--space-7);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-strip .btn--primary {
  background: var(--linen);
  color: var(--juniper-deep);
}

.cta-strip .btn--primary:hover {
  background: var(--gold);
  color: var(--pearl);
}

.cta-strip .btn--secondary {
  border-color: var(--linen);
  color: var(--linen);
}

.cta-strip .btn--secondary:hover {
  background: var(--linen);
  color: var(--juniper-deep);
}

/* === RESPONSIVE OVERRIDES =============================================== */
@media (max-width: 980px) {
  .hero__inner,
  .philosophy__inner,
  .doctor-intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
  .philosophy__visual { max-width: 280px; margin: 0 auto; }

  .dual-path__grid {
    grid-template-columns: 1fr;
  }

  .doctor-intro__highlights {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .doctor-intro__image { max-width: 360px; margin: 0 auto; }
}
