/* ============================================================
   TalentJam — Home page layout
   Recreates the live www.talentjam.io design language:
   sweeping arc hero photo + organic orange shape, a lavender
   product-showcase band, alternating feature splits with
   circular icons, framework cards, a rounded value panel and
   an illustration cluster. Colours inherit from styles.css.
   ============================================================ */

:root {
  --lav-band: #c0b2db;            /* muted lavender — showcase band   */
}

/* ── Hero ──────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  background: var(--navy-mid);
  overflow: hidden;
}
/* Decorative arcs sized by VIEWPORT WIDTH so they scale down with the
   layout and never crowd the copy. The photo is square (1498×1498);
   the orange is a tall arc (1200×2764). Height follows from width. */
.home-hero__photo,
.home-hero__orange {
  position: absolute; top: 0; height: auto;
  pointer-events: none; user-select: none;
}
.home-hero__photo { left: 0; z-index: 1; width: clamp(300px, 46vw, 660px); }
.home-hero__orange { right: -80px; z-index: 0; width: clamp(140px, 17vw, 280px); }
.home-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
  /* track the photo's rendered height so it's never clipped and the
     column stays balanced as the viewport scales */
  min-height: clamp(460px, 46vw, 660px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.home-hero__content { grid-column: 2; max-width: 510px; }
.home-hero__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lavender);
  margin-bottom: 18px;
}
.home-hero__h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--purple); margin-bottom: 22px;
}
.home-hero__h1 em { font-style: normal; color: var(--lavender); }
.home-hero__lead {
  font-size: 18px; line-height: 1.7;
  color: rgba(74,52,79,0.72); margin-bottom: 32px; max-width: 540px;
}
.home-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Showcase band (lavender, centred product carousel) ──────── */
/* The product screenshots are transparent PNGs with their own browser
   chrome and drop-shadow baked in, so they float directly on the band.
   A fixed-aspect stage with object-fit:contain keeps the height steady
   as slides of differing aspect ratios cycle (no layout jump). */
/* The band's top sits one third of the way down the screenshot: the
   showcase shares the hero's cream, and the lavender is a full-bleed
   block that starts at 33% of the image and runs behind the dots. */
.showcase {
  position: relative;
  background: var(--navy-mid);   /* cream — continuous with the hero */
  overflow-x: clip;              /* contain the full-bleed lavender    */
}
.showcase__inner {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  /* padding (not margin) creates the gap below the hero so it fills with
     the section's cream rather than collapsing through to the body */
  padding: 40px 24px 48px;
}
.showcase__stage {
  position: relative; isolation: isolate;
  height: clamp(300px, 40vw, 500px);   /* every slide is this height */
}
.showcase__stage::before {
  content: '';
  position: absolute; top: 33.33%; bottom: -82px;
  left: 50%; transform: translateX(-50%);
  width: 100vw; background: var(--lav-band);
}
.showcase__stage .carousel__slide {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain;   /* fixed height; width follows the aspect ratio */
}
/* Raw screenshots (no baked-in window chrome) get a rounded frame so
   they match the floating-window look of the other slides. */
.showcase__stage .carousel__slide--rounded {
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(35,20,45,0.16);
}
.showcase .carousel__dots { position: relative; margin-top: 24px; }
.showcase .carousel__dot { border-color: rgba(255,255,255,0.65); }
.showcase .carousel__dot.active,
.showcase .carousel__dot:hover {
  background: var(--white); border-color: var(--white);
}

/* ── Generic home section + split ──────────────────────────── */
.home-section { padding: 92px 0; }
.home-section--cream { background: var(--navy-mid); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center;
}
.split--narrow-visual { grid-template-columns: 1fr 1.25fr; }
.split--reverse .split__visual { order: 2; }
.split--reverse .split__content { order: 1; }
.split__kicker {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 14px;
}
.split__h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--purple); margin-bottom: 18px;
}
.split__h2 em { font-style: normal; color: var(--lavender); }
.split__body { font-size: 16px; line-height: 1.75; color: rgba(74,52,79,0.72); margin-bottom: 20px; }
.split__body strong { color: var(--purple); font-weight: 600; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: rgba(74,52,79,0.78); line-height: 1.55;
}
.checklist li::before {
  content: '✓'; color: var(--lavender); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ── Circular icon ─────────────────────────────────────────── */
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle img { width: 32px; height: 32px; object-fit: contain; }
.home-section--cream .icon-circle { background: var(--white); }
/* Circular icons dropped into the shared .card component on interior pages */
.card .icon-circle { margin-bottom: 16px; font-size: 22px; }

/* ── Feature cards (stacked, icon + text) ──────────────────── */
.fcards { display: flex; flex-direction: column; gap: 16px; }
.fcard {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.fcard__title { font-size: 17px; font-weight: 600; color: var(--purple); margin-bottom: 6px; }
.fcard__body { font-size: 14px; line-height: 1.6; color: rgba(74,52,79,0.66); }

/* ── Framework cards (stacked white tiles) ─────────────────── */
.fw-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 440px;
}
.fw-card {
  height: 132px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 22px rgba(35,20,45,0.07);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 26px;
  color: var(--purple); text-align: center;
}
.fw-card--dashed {
  border: 2px dashed rgba(74,52,79,0.30); box-shadow: none;
  font-size: 15px; font-weight: 600; color: rgba(74,52,79,0.55);
  padding: 0 12px;
}

/* ── Value panel (rounded container, circular-icon grid) ───── */
.value-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 28px; padding: 56px 56px 48px;
  box-shadow: 0 18px 50px rgba(35,20,45,0.06);
}
.value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px;
}
.value-item .icon-circle { margin-bottom: 18px; background: var(--navy-mid); }
.value-item__title { font-size: 17px; font-weight: 600; color: var(--purple); margin-bottom: 8px; }
.value-item__body { font-size: 14px; line-height: 1.6; color: rgba(74,52,79,0.66); margin-bottom: 14px; }
.value-item__link { font-size: 13px; font-weight: 600; color: var(--lavender); }
.value-item__link:hover { color: var(--purple); }

/* ── Audience blocks (labelled paragraphs) ─────────────────── */
.aud-block { margin-bottom: 26px; }
.aud-block:last-child { margin-bottom: 0; }
.aud-block__label { font-size: 16px; font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.aud-block__body { font-size: 15px; line-height: 1.6; color: rgba(74,52,79,0.72); margin-bottom: 6px; }
.aud-block__link { font-size: 13px; font-weight: 600; color: var(--lavender); }
.aud-block__link:hover { color: var(--purple); }

/* ── Illustration cluster ──────────────────────────────────── */
.illus {
  position: relative; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.illus__disc {
  position: absolute; border-radius: 50%; background: var(--navy-mid);
}
.illus__disc--1 { width: 240px; height: 240px; top: 20px; left: 50%; transform: translateX(-55%); }
.illus__disc--2 { width: 150px; height: 150px; bottom: 24px; right: 14%; background: rgba(155,211,132,0.18); }
.illus img { position: relative; z-index: 1; }
.illus__a { width: 88px; height: 88px; object-fit: contain; position: absolute; top: 30px; left: 46%; }
.illus__b { width: 150px; height: 150px; object-fit: contain; position: absolute; bottom: 40px; left: 26%; }
.illus__c { width: 120px; height: 120px; object-fit: contain; position: absolute; bottom: 56px; right: 22%; }

/* ── Product visual (feature rows) ─────────────────────────── */
.prod-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(35,20,45,0.12);
  background: #fff;
  aspect-ratio: 16 / 10;
}
/* Crop the transparent margin/chrome of the window mockups so the
   screenshot content fills the frame edge to edge. */
.prod-visual img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
  transform: scale(1.04); transform-origin: center top;
}

/* ── Stats strip ───────────────────────────────────────────── */
.home-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; gap: 24px;
}
.home-stat__num {
  font-family: var(--font-serif); font-size: 44px; font-weight: 700;
  color: var(--lavender); line-height: 1; margin-bottom: 8px;
}
.home-stat__label { font-size: 14px; color: rgba(74,52,79,0.62); line-height: 1.45; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
}
@media (max-width: 900px) {
  .home-hero__photo, .home-hero__orange { display: none; }
  .home-hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 72px 24px 64px; }
  .home-hero__content { grid-column: 1; }
  .home-hero__lead { max-width: none; }
  .split, .split--narrow-visual { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__visual { order: -1; }
  .split--reverse .split__content { order: 0; }
  .fw-grid { max-width: none; }
  .showcase__inner { padding-top: 24px; }
  .home-stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .value-panel { padding: 40px 28px; }
  .illus { min-height: 300px; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .fw-grid { grid-template-columns: 1fr 1fr; }
  .home-section { padding: 64px 0; }
}
