/*
 * Homepage sections below the canonical Hero.
 * Header, Floating Controls and Hero remain owned by their existing styles.
 */

body[data-nav="home"] {
  --home-ink: var(--forest-deep, #103c2a);
  --home-forest: var(--forest, #174d35);
  --home-gold: var(--gold-dark, #b68d40);
  --home-gold-soft: rgba(182, 141, 64, 0.16);
  --home-cream: var(--cream, #fbf7ed);
  --home-border: rgba(23, 77, 53, 0.13);
  --home-shadow: 0 16px 42px rgba(16, 60, 42, 0.07);
}

body[data-nav="home"] .section-padding:not(#about) {
  padding: clamp(72px, 7vw, 104px) 0;
}

body[data-nav="home"] .section-intro {
  max-width: 760px;
  margin-bottom: 44px;
}

body[data-nav="home"] .section-intro.center {
  margin-inline: auto;
  text-align: center;
}

body[data-nav="home"] .section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body[data-nav="home"] .section-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold-dark);
}

body[data-nav="home"] .section-label.center {
  justify-content: center;
}

body[data-nav="home"] .section-label.center::before,
body[data-nav="home"] .section-label.center::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold-dark);
}

body[data-nav="home"] .section-label.center::before {
  display: none;
}

body[data-nav="home"] section:not(#about) .section-label {
  margin-bottom: 14px;
  color: var(--home-gold);
}

body[data-nav="home"] .section-intro h2 {
  margin-bottom: 16px;
  color: var(--home-ink);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

body[data-nav="home"] .section-intro p {
  color: #526158;
  font-size: 16px;
  line-height: 1.75;
}

body[data-nav="home"] :is(
  #solutions,
  #personas,
  #insights,
  #testimonials,
  #recruitment
) strong {
  color: var(--home-ink);
  font-weight: 700;
}

body[data-nav="home"] :where(
  .solution-link,
  .insights-featured-media,
  .insights-featured-body a,
  .insights-recent-card a,
  .insights-resource-item,
  .insights-panel-link,
  .home-secondary-cta,
  .home-job-card a,
  .jobs-home-actions a
):focus-visible {
  outline: 3px solid rgba(182, 141, 64, 0.42);
  outline-offset: 3px;
}

/* Insights */
body[data-nav="home"] .home-insights {
  position: relative;
  overflow: hidden;
  background: var(--home-cream);
}

body[data-nav="home"] .home-insights::before,
body[data-nav="home"] .home-insights::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
}

body[data-nav="home"] .home-insights::before {
  top: 0;
  background: linear-gradient(90deg, transparent 5%, rgba(182, 141, 64, 0.25) 30%, rgba(182, 141, 64, 0.35) 50%, rgba(182, 141, 64, 0.25) 70%, transparent 95%);
}

body[data-nav="home"] .home-insights::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent 5%, rgba(182, 141, 64, 0.15) 30%, rgba(182, 141, 64, 0.25) 50%, rgba(182, 141, 64, 0.15) 70%, transparent 95%);
}

body[data-nav="home"] #insights .section-intro {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 60px;
}

body[data-nav="home"] #insights .section-intro h2 {
  font-size: 36px;
  line-height: 1.3;
}

@media (min-width: 992px) {
  body[data-nav="home"] #insights .section-intro {
    max-width: 980px;
  }
}

body[data-nav="home"] .insights-feed {
  min-height: 240px;
}

body[data-nav="home"] .insights-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 24px;
}

body[data-nav="home"] .insights-featured-card,
body[data-nav="home"] .insights-recent-card,
body[data-nav="home"] .insights-resource-panel {
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  overflow: hidden;
}

body[data-nav="home"] .insights-featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

body[data-nav="home"] .insights-featured-media {
  display: block;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
}

body[data-nav="home"] .insights-featured-media img,
body[data-nav="home"] .insights-recent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

body[data-nav="home"] .insights-featured-card:hover img,
body[data-nav="home"] .insights-recent-card:hover img {
  transform: scale(1.08);
}

body[data-nav="home"] .insights-cover-fallback {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.13) 1px, transparent 1.5px),
    linear-gradient(150deg, #1a2338 0%, #232f4c 100%);
  background-size: 22px 22px, cover;
}

body[data-nav="home"] .insights-cover-fallback[hidden] {
  display: none;
}

body[data-nav="home"] .insights-cover-fallback::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.65), transparent);
  content: "";
}

body[data-nav="home"] .insights-cover-fallback.is-v2 {
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.13) 1px, transparent 1.5px),
    linear-gradient(200deg, #17202f 0%, #2a3040 90%);
}

body[data-nav="home"] .insights-cover-fallback.is-v3 {
  background-image:
    radial-gradient(rgba(247, 244, 236, 0.09) 1px, transparent 1.5px),
    linear-gradient(135deg, #1c2740 0%, #141b2c 100%);
}

body[data-nav="home"] .insights-cover-fallback.is-v4 {
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.11) 1px, transparent 1.5px),
    linear-gradient(160deg, #212b42 0%, #10151f 100%);
}

body[data-nav="home"] .insights-cover-fallback i {
  color: rgba(212, 175, 55, 0.75);
  font-size: 30px;
}

body[data-nav="home"] .insights-cover-fallback em {
  color: rgba(240, 234, 216, 0.55);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-nav="home"] .insights-cover-fallback.is-large i {
  font-size: 46px;
}

body[data-nav="home"] .insights-cover-fallback.is-large em {
  font-size: 13px;
}

body[data-nav="home"] .insights-featured-body {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

body[data-nav="home"] .insights-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #887044;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

body[data-nav="home"] .insights-article-meta time::before {
  content: "•";
  margin-right: 10px;
}

body[data-nav="home"] .insights-featured-body h3,
body[data-nav="home"] .insights-recent-card h3 {
  font-family: var(--font-heading);
  color: var(--home-ink);
  line-height: 1.4;
}

body[data-nav="home"] .insights-featured-body h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
}

body[data-nav="home"] .insights-featured-body p {
  margin-bottom: 20px;
  color: #5d6a63;
  font-size: 14.5px;
  line-height: 1.7;
}

body[data-nav="home"] .insights-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  color: var(--home-forest);
  font-size: 13px;
  font-weight: 700;
}

body[data-nav="home"] .insights-recent-list {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-nav="home"] .insights-recent-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-width: 0;
  padding: 12px;
}

body[data-nav="home"] .insights-recent-media {
  min-height: 150px;
  overflow: hidden;
  border-radius: 13px;
}

body[data-nav="home"] .insights-recent-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 10px 6px 18px;
}

body[data-nav="home"] .insights-recent-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

body[data-nav="home"] .insights-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

body[data-nav="home"] .insights-resource-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(34, 40, 36, 0.035);
}

body[data-nav="home"] .insights-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

body[data-nav="home"] .insights-panel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 13px;
  background: #fbf3df;
  color: #9a7428;
  box-shadow: inset 0 0 0 1px rgba(182, 141, 64, 0.16);
}

body[data-nav="home"] .insights-panel-head > div > span {
  color: #92712f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body[data-nav="home"] .insights-panel-head h3 {
  margin: 2px 0 0;
  color: #303834;
  font-family: var(--font-heading);
  font-size: 19px;
}

body[data-nav="home"] .insights-resource-panel--legal .insights-panel-icon {
  background: #eef2f4;
  color: #5b6b76;
  box-shadow: inset 0 0 0 1px rgba(91, 107, 118, 0.14);
}

body[data-nav="home"] .insights-resource-panel--legal .insights-panel-head > div > span {
  color: #68747d;
}

body[data-nav="home"] .insights-resource-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

body[data-nav="home"] .insights-resource-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fcfbf7;
}

body[data-nav="home"] .insights-resource-item:hover {
  border-color: var(--home-gold-soft);
  background: #fffaf0;
}

body[data-nav="home"] .insights-resource-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #f8f0dc;
  color: #987229;
}

body[data-nav="home"] .insights-resource-panel--legal .insights-resource-icon {
  background: #eef2f4;
  color: #5b6b76;
}

body[data-nav="home"] #insights .insights-resource-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

body[data-nav="home"] #insights .insights-resource-content strong {
  overflow: hidden;
  color: #303834;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-nav="home"] #insights .insights-resource-content small {
  color: #777f7a;
  font-size: 12px;
  font-weight: 600;
}

body[data-nav="home"] .insights-panel-link,
body[data-nav="home"] .home-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}

body[data-nav="home"] .insights-panel-link {
  align-self: flex-start;
  margin-top: auto;
  color: #846426;
}

body[data-nav="home"] .insights-resource-panel--legal .insights-panel-link {
  color: #536570;
}

body[data-nav="home"] .insights-all-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

body[data-nav="home"] .home-secondary-cta {
  padding: 0 24px;
  color: #fff;
  border-radius: 999px;
  background: var(--home-forest);
}

body[data-nav="home"] .home-content-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 84px;
  margin: 0;
  padding: 18px;
  color: #657169;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

body[data-nav="home"] .home-content-status--wide {
  min-height: 220px;
  border: 1px dashed rgba(182, 141, 64, 0.35);
  border-radius: 18px;
  background: #fff;
}

body[data-nav="home"] .home-content-status a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Testimonials */
body[data-nav="home"] .home-testimonials {
  background: var(--home-cream);
}

body[data-nav="home"] .testimonials-grid {
  align-items: stretch;
  gap: 24px;
}

body[data-nav="home"] .testimonial-card {
  height: 100%;
  border-color: var(--home-border);
  box-shadow: none;
}

body[data-nav="home"] .testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 141, 64, 0.4);
  box-shadow: var(--home-shadow);
}

body[data-nav="home"] .tm-card-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 34px;
}

body[data-nav="home"] .testimonial-text {
  flex: 1;
  color: #4f5d55;
}

body[data-nav="home"] .tm-quote-icon {
  background: #fff7df;
}

body[data-nav="home"] .testimonial-card:hover .tm-quote-icon {
  background: var(--home-gold);
  transform: none;
  box-shadow: none;
}

/* Recruitment */
body[data-nav="home"] .home-recruitment {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--home-border);
  background: #fff;
}

body[data-nav="home"] .home-recruitment::before,
body[data-nav="home"] .home-recruitment::after {
  display: none;
}

body[data-nav="home"] .home-recruitment .recruitment-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

body[data-nav="home"] .home-recruitment .recruitment-copy {
  max-width: 430px;
  padding-top: 8px;
}

body[data-nav="home"] .home-recruitment .recruitment-copy h2 {
  margin: 0 0 14px;
  color: var(--home-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

body[data-nav="home"] .home-recruitment .recruitment-copy p {
  max-width: 640px;
  color: #56645c;
  font-size: 15.5px;
  line-height: 1.72;
}

body[data-nav="home"] .home-recruitment .jobs-home-actions {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 26px;
}

body[data-nav="home"] .home-recruitment .jobs-home-actions a {
  width: auto;
  min-height: 46px;
  padding-inline: 20px;
}

body[data-nav="home"] .home-recruitment .jobs-home-actions .btn-primary-orange {
  background: var(--home-forest);
  border-color: var(--home-forest);
}

body[data-nav="home"] .home-recruitment .jobs-home-actions .btn-outline-brown {
  color: var(--home-forest);
  border-color: rgba(23, 77, 53, 0.38);
}

body[data-nav="home"] .jobs-home-list {
  display: grid;
  gap: 14px;
}

body[data-nav="home"] .home-job-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 22px;
  padding: 22px 24px;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body[data-nav="home"] .home-job-card:hover {
  border-color: rgba(182, 141, 64, 0.42);
  box-shadow: 0 12px 30px rgba(16, 60, 42, 0.06);
}

body[data-nav="home"] .home-job-card__badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
}

body[data-nav="home"] .home-job-card__badges:empty {
  display: none;
}

body[data-nav="home"] .job-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

body[data-nav="home"] .job-badge.featured {
  border-color: #fde68a;
  background: #fff8ea;
  color: #b45309;
}

body[data-nav="home"] .job-badge.urgent {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

body[data-nav="home"] .home-job-card h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
}

body[data-nav="home"] .home-job-card__company {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #69756e;
  font-size: 13px;
}

body[data-nav="home"] .home-job-card__facts {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}

body[data-nav="home"] .home-job-card__facts div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 77, 53, 0.08);
}

body[data-nav="home"] .home-job-card__facts dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #7a867f;
  font-size: 11px;
}

body[data-nav="home"] .home-job-card__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 700;
}

body[data-nav="home"] .home-job-card__link {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--home-forest);
  font-size: 13px;
  font-weight: 700;
}

body[data-nav="home"] .home-recruitment .jobs-home-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed rgba(182, 141, 64, 0.38);
  border-radius: 17px;
  background: var(--home-cream);
  color: #59675f;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

body[data-nav="home"] .home-recruitment .jobs-home-empty a,
body[data-nav="home"] .legal-form-notice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body[data-nav="home"] .home-recruitment .jobs-home-empty a {
  color: var(--gold-dark);
  font-weight: 700;
}

@media (max-width: 991px) {
  body[data-nav="home"] .insights-editorial-grid,
  body[data-nav="home"] .home-recruitment .recruitment-panel {
    grid-template-columns: 1fr;
  }

  body[data-nav="home"] .home-recruitment .recruitment-copy {
    max-width: 720px;
  }

  body[data-nav="home"] .jobs-home-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-nav="home"] .home-job-card {
    grid-template-columns: 1fr;
  }

  body[data-nav="home"] .home-job-card__link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  body[data-nav="home"] .home-job-card__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-nav="home"] .section-padding:not(#about) {
    padding: 56px 0;
  }

  body[data-nav="home"] .section-intro {
    margin-bottom: 30px;
  }

  body[data-nav="home"] .section-intro h2 {
    margin-bottom: 8px;
    font-size: clamp(25px, 7.5vw, 32px);
  }

  body[data-nav="home"] .section-intro p {
    font-size: 15px;
    line-height: 1.68;
  }

  body[data-nav="home"] .section-label {
    gap: 8px;
    font-size: 10px;
  }

  body[data-nav="home"] #insights .section-intro {
    margin-bottom: 32px;
  }

  body[data-nav="home"] .insights-resources-grid,
  body[data-nav="home"] .jobs-home-list {
    grid-template-columns: 1fr;
  }

  body[data-nav="home"] .insights-recent-card {
    grid-template-columns: 36% 1fr;
  }

  body[data-nav="home"] .insights-recent-media {
    min-height: 134px;
  }

  body[data-nav="home"] .insights-featured-body,
  body[data-nav="home"] .insights-resource-panel {
    padding: 22px 18px;
  }

  body[data-nav="home"] .tm-card-inner {
    padding: 26px 22px;
  }

  body[data-nav="home"] .testimonial-text {
    font-size: 14px;
  }

  body[data-nav="home"] .home-recruitment .jobs-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-nav="home"] .home-recruitment .jobs-home-actions a {
    width: 100%;
  }

  body[data-nav="home"] .home-job-card__facts {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body[data-nav="home"] .insights-recent-card {
    grid-template-columns: 1fr;
  }

  body[data-nav="home"] .insights-recent-media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  body[data-nav="home"] .insights-recent-card > div {
    padding: 16px 6px 6px;
  }

  body[data-nav="home"] .insights-resource-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body[data-nav="home"] .insights-resource-item > i {
    display: none;
  }

  body[data-nav="home"] #insights .insights-resource-content strong {
    white-space: normal;
  }

  body[data-nav="home"] .home-job-card {
    padding: 20px 18px;
  }
}

@media (max-width: 390px) {
  body[data-nav="home"] .section-padding:not(#about) {
    padding: 50px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-nav="home"] :where(
    .testimonial-card,
    .insights-featured-media img,
    .insights-recent-media img,
    .home-job-card
  ) {
    animation: none !important;
    transition: none !important;
  }
}
