/* Home-only styles. Reusable buttons, header, hero, and cards live in
   Branding/08-Web-Elements/josie-white-components.css. */

/* The skip link stays offscreen until keyboard focus makes it visible. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--jw-cream);
  background: var(--jw-navy);
  border-radius: .5rem;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

/* Prevent decorative art from creating a horizontal scrollbar. The main element
   must remain visible so the hero portrait can overlap the header on desktop. */
body { overflow-x: clip; }
main { overflow: visible; }

/* Match the proven GitHub layering: offset the relatively positioned hero
   without creating the stacking context that would trap Josie behind the
   translucent header surface. */
.home-intro-stack { position: relative; }
.home-hero { top: var(--home-hero-pin-y, 0px); }

/* Short role summary directly below the hero. */
.home-role-strip {
  position: relative;
  z-index: 50;
  padding-block: 1rem;
  border-block: 1px solid rgb(23 44 69 / .12);
  background: color-mix(in srgb, var(--jw-sage) 18%, var(--jw-cream));
}

.home-role-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.home-role-strip__inner span + span::before {
  content: "•";
  margin-right: 1.5rem;
  color: var(--jw-warm-gold);
}

/* Section 3 stays compact. Its corner flourish is sized proportionally and
   anchored to the top right, behind the heading and cards. */
.home-section-heading { margin-inline: auto; text-align: center; }
.home-pathways {
  position: relative;
  z-index: 50;
  padding-block: clamp(2.5rem, 4vw, 4rem);
  background: var(--jw-cream) url("../Branding/04-Illustrations-and-Backgrounds/LineWork/Flower-vine-top-right.png") right top / min(30rem, 70vw) auto no-repeat;
}
.home-pathways > .jw-container { width: min(calc(100% - clamp(2rem, 6vw, 6rem)), 90rem); }
.home-pathways .home-section-heading { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
.home-pathway-card--speaking { background: linear-gradient(90deg, rgb(245 232 241 / .7), rgb(247 243 235 / .58)), url("../assets/images/cards/speaking-card-art.png") center / cover; }
.home-pathway-card--consulting { background: linear-gradient(90deg, rgb(247 243 235 / .7), rgb(247 243 235 / .48)), url("../assets/images/cards/consulting-card-art.png") center / cover; }
.home-pathway-card--resources { background: linear-gradient(90deg, rgb(247 243 235 / .68), rgb(247 243 235 / .48)), url("../assets/images/cards/resources-card-art.png") center / cover; }

/* A viewport-sized stage keeps section 4's place in the document while its
   panel is fixed behind the cards, then covered by the About section. */
.home-philosophy-stage { position: relative; min-height: 100svh; }
.home-philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: #172c45;
}
.home-philosophy-stage.is-pinned .home-philosophy {
  position: fixed;
  z-index: 35;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100svh;
}

.home-philosophy__art {
  position: absolute;
  z-index: -1;
  left: -2rem;
  bottom: -3rem;
  width: min(36rem, 44vw);
  opacity: .78;
  transform: scaleX(-1);
}

.home-philosophy__layout {
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.home-philosophy__copy { position: static; }
.home-philosophy__copy .jw-heading { font-size: clamp(3.25rem, 6vw, 5.6rem); }
.home-gold-text { color: var(--jw-gold); }
.home-philosophy__body { max-width: 42rem; padding-top: .25rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.home-philosophy__body p { margin: 0 0 1.5rem; }
.home-philosophy__closing { padding: 1.5rem 0 0 1.5rem; border-left: 3px solid var(--jw-gold); font: italic 400 clamp(1.5rem, 2.6vw, 2.15rem)/1.25 var(--jw-font-display); }

/* About preview: copy and portrait sit side by side until the mobile breakpoint. */
.home-about { position: relative; z-index: 60; }
.home-about__layout { display: grid; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.home-about__layout { grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .72fr); }
.home-about__copy { max-width: 44rem; }
.home-about__copy > p:not(.jw-eyebrow) { margin: 1.25rem 0 0; }
.home-about__copy .jw-text-link { margin-top: 1.75rem; }
.home-about__portrait { position: relative; margin: 0; }
.home-about__portrait img { width: 100%; aspect-ratio: 1024 / 1495; object-fit: cover; object-position: center top; border: 1px solid rgb(255 255 255 / .75); border-radius: 46% 46% var(--jw-radius-md) var(--jw-radius-md) / 20% 20% var(--jw-radius-md) var(--jw-radius-md); box-shadow: var(--jw-shadow-soft); }
.home-about__accent { position: absolute; z-index: -1; right: -1.5rem; bottom: -1.5rem; width: 72%; aspect-ratio: 1; border-radius: 50%; background: var(--jw-gold); opacity: .8; }

/* Testimonial design preview. The content is placeholder copy, not endorsements. */
.home-testimonials {
  position: relative;
  z-index: 61;
  isolation: isolate;
  /* Let the right-hand linework cross the boundary into the About section. */
  overflow: visible;
  padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 4% 74%, rgb(128 156 145 / .24), transparent 25%),
    radial-gradient(circle at 93% 35%, rgb(250 180 66 / .14), transparent 28%),
    #f7f3eb;
}
.home-testimonials__inner { position: relative; z-index: 2; width: min(calc(100% - clamp(2rem, 7vw, 7rem)), 90rem); margin-inline: auto; }
.home-testimonials__label { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 3vw, 2.25rem); margin: 0 0 2.25rem; color: var(--jw-navy); font-size: .86rem; font-weight: 700; letter-spacing: .32em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.home-testimonials__label::before, .home-testimonials__label::after { content: ""; width: clamp(3rem, 7vw, 6.5rem); height: 1px; background: var(--jw-warm-gold); }
/* Decorative illustrations are a background layer, behind the inner content. */
.home-testimonials__botanical { position: absolute; z-index: 0; pointer-events: none; }
.home-testimonials__botanical--left { width: clamp(11rem, 18vw, 19rem); top: 0; left: -6rem; transform: rotate(180deg); }
.home-testimonials__botanical--right { width: clamp(23rem, 31vw, 32rem); top: -4.5rem; right: -4rem; opacity: .8; transform: rotate(25deg); }
/* Side gutters reserve room for arrows outside the large featured card. */
.home-testimonials__slider { position: relative; margin-inline: 4.75rem; }
.home-testimonials__slides {
  overflow: hidden;
  border: var(--jw-liquid-glass-border);
  border-radius: 1rem;
  background: var(--jw-liquid-glass-background);
  box-shadow: var(--jw-liquid-glass-shadow);
  -webkit-backdrop-filter: var(--jw-liquid-glass-filter);
  backdrop-filter: var(--jw-liquid-glass-filter);
  transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.home-testimonials__slides:hover,
.home-testimonials__slides:focus-within { background: var(--jw-liquid-glass-hover-background); box-shadow: var(--jw-liquid-glass-hover-shadow); transform: translateY(-.35rem); }
.home-featured-testimonial { min-height: clamp(26rem, 33vw, 30rem); display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
/* JS changes the hidden attribute; this rule prevents grid/flex rules from
   accidentally showing inactive slides or unavailable controls. */
.home-featured-testimonial[hidden], .home-testimonials__arrow[hidden], .home-testimonials__dots[hidden] { display: none; }
.home-featured-testimonial__media { position: relative; min-height: inherit; overflow: hidden; }
.home-featured-testimonial__media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 25%; }
.home-featured-testimonial:nth-child(2) .home-featured-testimonial__media img { object-position: center; }
.home-featured-testimonial:nth-child(3) .home-featured-testimonial__media img { object-position: center; }
.home-featured-testimonial__media span { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; width: fit-content; padding: .42rem .7rem; border-radius: var(--jw-radius-pill); color: var(--jw-navy); background: rgb(247 243 235 / .92); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.home-featured-testimonial__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
.home-testimonials__quote-mark { display: block; height: .5em; color: #d3932b; font: 400 clamp(5rem, 8vw, 8rem)/1 var(--jw-font-display); }
.home-featured-testimonial blockquote { max-width: 34ch; margin: 1.5rem 0 0; color: var(--jw-navy); font: 400 clamp(1.4rem, 1.9vw, 1.95rem)/1.2 var(--jw-font-display); }
.home-featured-testimonial figcaption { display: grid; gap: .3rem; margin-top: 1.5rem; color: var(--jw-navy); font-size: .95rem; line-height: 1.35; }
.home-featured-testimonial figcaption::before, .home-testimonials__card figcaption::before { content: ""; width: 4rem; height: 2px; margin-bottom: .8rem; background: var(--jw-warm-gold); }
.home-featured-testimonial__name { color: var(--jw-plum); font-size: .83rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.home-testimonials__arrow { position: absolute; z-index: 4; top: 50%; width: 4rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgb(23 44 69 / .1); border-radius: 50%; color: var(--jw-plum); background: rgb(255 255 255 / .95); box-shadow: 0 .5rem 1.4rem rgb(23 44 69 / .14); font: 400 3.5rem/.7 var(--jw-font-display); cursor: pointer; transform: translateY(-50%); }
.home-testimonials__arrow:hover, .home-testimonials__arrow:focus-visible { background: var(--jw-gold); }
.home-testimonials__arrow--previous { left: -4.5rem; }
.home-testimonials__arrow--next { right: -4.5rem; }
.home-testimonials__arrow span { transform: translateY(-.13em); }
.home-testimonials__dots { display: flex; justify-content: center; gap: 1.25rem; padding: 1.5rem 0 2rem; }
.home-testimonials__dots button { width: .85rem; height: .85rem; padding: 0; border: 0; border-radius: 50%; background: rgb(23 44 69 / .26); cursor: pointer; }
.home-testimonials__dots button[aria-current="true"] { background: var(--jw-plum); }
.home-testimonials__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.4vw, 1.25rem); margin-top: 1rem; }
.home-testimonials__card {
  position: relative;
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.5rem, 2.3vw, 2.25rem);
  border: var(--jw-liquid-glass-border);
  border-radius: 1rem;
  background: var(--jw-liquid-glass-background);
  box-shadow: var(--jw-liquid-glass-shadow);
  -webkit-backdrop-filter: var(--jw-liquid-glass-filter);
  backdrop-filter: var(--jw-liquid-glass-filter);
  transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.home-testimonials__card:hover { background: var(--jw-liquid-glass-hover-background); box-shadow: var(--jw-liquid-glass-hover-shadow); transform: translateY(-.35rem); }
.home-testimonials__card .home-testimonials__quote-mark { position: relative; z-index: 1; font-size: 5.5rem; }
.home-testimonials__card blockquote { position: relative; z-index: 1; max-width: 30ch; margin: 1.2rem 0 2rem; color: var(--jw-navy); font: 400 clamp(1.25rem, 1.45vw, 1.55rem)/1.22 var(--jw-font-display); }
.home-testimonials__card figcaption { position: relative; z-index: 1; display: grid; gap: .25rem; margin-top: auto; color: var(--jw-navy); font-size: .83rem; }
.home-testimonials__card figcaption span { margin-bottom: .2rem; color: var(--jw-plum); font-size: .67rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.home-testimonials__card figcaption strong { color: var(--jw-plum); font-size: .86rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.home-testimonials__card figcaption small { font-size: .81rem; }
.home-testimonials__review-note { max-width: 55rem; margin: 1.5rem auto 0; color: var(--jw-navy); font-size: .82rem; line-height: 1.5; text-align: center; }

/* Final invitation: repeat the supplied wallpaper behind a tinted glass panel.
   The dark tint keeps the longer copy readable while the pattern shows through. */
.home-final-cta {
  position: relative;
  padding-block: clamp(5rem, 8vw, 8rem);
  background: var(--jw-cream) url("../Branding/04-Illustrations-and-Backgrounds/Wallpaper/Josie-White-Pattern-Wildflower-Sprigs-Cream-Sage-Rust.jpg") center top / 100% auto repeat-y; /* same flower size as the Consulting page */
}
.home-final-cta > .jw-container { width: min(calc(100% - 3rem), 72rem); }
.home-final-cta__band {
  padding: clamp(2.5rem, 6vw, 5rem);
  border: var(--jw-liquid-glass-border);
  background: var(--jw-liquid-glass-background);
  background-color: rgb(20 54 58 / .7);
  box-shadow: var(--jw-liquid-glass-shadow);
  -webkit-backdrop-filter: var(--jw-liquid-glass-filter);
  backdrop-filter: var(--jw-liquid-glass-filter);
  transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.home-final-cta__band:hover,
.home-final-cta__band:focus-within {
  background-color: rgb(20 54 58 / .64);
  box-shadow: var(--jw-liquid-glass-hover-shadow);
  transform: translateY(-.35rem);
}
.home-final-cta__band > div { max-width: 46rem; }
.home-final-cta__band .jw-eyebrow { color: var(--jw-gold); }
.home-final-cta__band p:last-child { max-width: 42rem; margin: 1.2rem 0 0; }
.home-final-cta__band .jw-button { flex: none; }
@media (prefers-reduced-transparency: reduce) {
  .home-testimonials__slides,
  .home-testimonials__card {
    background: #f3ede2;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .home-final-cta__band {
    background: var(--jw-navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* On narrow screens, multi-column sections stack and carousel arrows move
   onto the photo rather than hanging outside the viewport. */
@media (max-width: 48rem) {
  .home-philosophy__layout, .home-about__layout { grid-template-columns: 1fr; }
  .home-role-strip__inner { display: grid; }
  .home-role-strip__inner span + span::before { content: none; }
  .home-philosophy__layout { gap: 2.5rem; }
  .home-philosophy__art { left: -8rem; bottom: -2rem; width: 30rem; max-width: none; opacity: .38; }
  .home-about__portrait { width: min(100%, 28rem); margin-inline: auto; }
  .home-final-cta__band { align-items: flex-start; }
  .home-featured-testimonial { grid-template-columns: 1fr; }
  .home-testimonials__slider { margin-inline: 0; }
  .home-featured-testimonial__media { min-height: 19rem; }
  .home-featured-testimonial__content { min-height: 22rem; padding: 2rem; }
  .home-featured-testimonial blockquote { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .home-testimonials__cards { grid-template-columns: 1fr; }
  .home-testimonials__card { min-height: 16rem; }
  .home-testimonials__arrow { top: 19rem; width: 3rem; font-size: 2.6rem; }
  .home-testimonials__arrow--previous { left: -.7rem; }
  .home-testimonials__arrow--next { right: -.7rem; }
  .home-testimonials__botanical--left { top: 0; left: 0; width: min(10rem, 42vw); opacity: .7; }
  .home-testimonials__botanical--right { top: -1.25rem; right: 2.5rem; width: min(13rem, 54vw); opacity: .35; transform: rotate(15deg); }
}


/* Hero label: one line on wide screens, two lines on phones so it clears the leaves. */
@media (max-width: 48rem) {
  .jw-hero--framed .jw-eyebrow { white-space: normal; font-size: .72rem; letter-spacing: .1em; }
  .home-eyebrow-line { display: block; }
}
.home-testimonials__card cite { font-style: italic; }
