/* Horanta Living Lab page styles. Keep content edits in page-living-lab.php. */
.hklab-page {
  --hklab-olive: #314b2f;
  --hklab-soil: #6f5236;
  --hklab-clay: #a87a4f;
  --hklab-cream: #f7f1e5;
  --hklab-warm: #fffdf8;
  --hklab-ink: #20251d;
  --hklab-muted: #68715e;
  --hklab-line: rgba(49, 75, 47, 0.16);
  --hklab-radius: 8px;
  background: var(--hklab-warm);
  color: var(--hklab-ink);
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  overflow: hidden;
}

.hklab-page h1,
.hklab-page h2,
.hklab-page h3 {
  color: inherit;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}

.hklab-page p {
  color: var(--hklab-muted);
}

.hklab-page .hk-reveal {
  opacity: 1;
  transform: none;
}

.hklab-hero {
  position: relative;
  min-height: min(820px, 88svh);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background:
    linear-gradient(110deg, rgba(24, 35, 22, 0.84) 0%, rgba(24, 35, 22, 0.62) 42%, rgba(24, 35, 22, 0.16) 100%),
    var(--hklab-hero-image),
    linear-gradient(135deg, #243321, #806141);
  background-size: cover;
  background-position: center;
  padding: clamp(120px, 16vw, 190px) 0 clamp(44px, 7vw, 78px);
}

.hklab-hero__shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--hklab-warm));
  z-index: -1;
}

.hklab-hero__copy {
  max-width: 840px;
}

.hklab-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fffdf6;
  font-size: clamp(3rem, 7.2vw, 7.35rem);
  font-weight: 700;
  line-height: 0.92;
  text-wrap: balance;
}

.hklab-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.72;
}

.hklab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hklab-actions--center {
  justify-content: center;
}

.hklab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 15px 22px;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.26s ease, background-color 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.hklab-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.hklab-btn:hover,
.hklab-btn:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.hklab-btn:focus-visible {
  outline: 3px solid rgba(168, 122, 79, 0.42);
  outline-offset: 3px;
}

.hklab-btn--primary {
  background: var(--hklab-olive);
  color: #fff;
  box-shadow: 0 18px 36px rgba(32, 37, 29, 0.16);
}

.hklab-btn--primary:hover,
.hklab-btn--primary:focus-visible {
  background: #243a23;
  color: #fff;
}

.hklab-btn--light {
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(255, 253, 248, 0.76);
  color: #263522;
}

.hklab-btn--light:hover,
.hklab-btn--light:focus-visible {
  background: #fff;
  color: #263522;
}

.hklab-btn--outline {
  background: transparent;
  border-color: rgba(49, 75, 47, 0.24);
  color: var(--hklab-olive);
}

.hklab-btn--outline:hover,
.hklab-btn--outline:focus-visible {
  background: rgba(49, 75, 47, 0.08);
  color: var(--hklab-olive);
}

.hklab-section {
  padding: clamp(68px, 9vw, 128px) 0;
  background: var(--hklab-warm);
}

.hklab-section--intro {
  padding-top: clamp(54px, 7vw, 96px);
}

.hklab-section--olive {
  background: #eef1e7;
}

.hklab-section--soil {
  background: #352b21;
  color: #fff8ed;
}

.hklab-section--soil p,
.hklab-section--soil .hklab-partnership__item p {
  color: rgba(255, 248, 237, 0.78);
}

.hklab-section--research {
  background: linear-gradient(90deg, rgba(49, 75, 47, 0.08), rgba(168, 122, 79, 0.1)), var(--hklab-cream);
}

.hklab-section-header {
  max-width: 820px;
  margin: 0 0 clamp(30px, 4vw, 52px);
}

.hklab-section-header h2,
.hklab-partnership__intro h2,
.hklab-research h2,
.hklab-cta h2,
.hklab-about__panel h2 {
  margin: 0;
  color: var(--hklab-ink);
  font-size: clamp(2.35rem, 4.8vw, 5.1rem);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

.hklab-section--soil .hklab-partnership__intro h2 {
  color: #fff8ed;
}

.hklab-section-header p,
.hklab-partnership__intro p,
.hklab-research p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  line-height: 1.78;
}

.hklab-two-column,
.hklab-about,
.hklab-partnership {
  display: grid;
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.hklab-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.hklab-about {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: stretch;
}

.hklab-partnership {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
}

.hklab-lined-list {
  border-top: 1px solid var(--hklab-line);
}

.hklab-lined-list p {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--hklab-line);
  color: var(--hklab-ink);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.62;
}

.hklab-about__panel {
  border-left: 6px solid var(--hklab-clay);
  padding-left: clamp(22px, 3vw, 42px);
}

.hklab-about__panel p {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.82;
}

.hklab-about__facts {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--hklab-line);
  border-radius: var(--hklab-radius);
  background: var(--hklab-cream);
  padding: clamp(24px, 4vw, 38px);
}

.hklab-about__facts strong,
.hklab-impact-card strong {
  color: var(--hklab-olive);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
}

.hklab-about__facts strong {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.hklab-about__facts span {
  display: block;
  margin-bottom: 18px;
  color: var(--hklab-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hklab-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(49, 75, 47, 0.18);
  border-left: 1px solid rgba(49, 75, 47, 0.18);
}

.hklab-lab-card {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid rgba(49, 75, 47, 0.18);
  border-bottom: 1px solid rgba(49, 75, 47, 0.18);
  background: rgba(255, 253, 248, 0.48);
  transition: background-color 0.26s ease, transform 0.26s ease;
}

.hklab-lab-card:hover {
  background: rgba(255, 253, 248, 0.82);
  transform: translateY(-3px);
}

.hklab-lab-card h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--hklab-olive);
  font-size: clamp(1.72rem, 2.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.02;
}

.hklab-lab-card p {
  margin: 22px 0 0;
  line-height: 1.68;
}

.hklab-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hklab-focus-card {
  min-height: 172px;
  border: 1px solid var(--hklab-line);
  border-radius: var(--hklab-radius);
  background: #fff;
  padding: 22px;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.hklab-focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 75, 47, 0.34);
  box-shadow: 0 18px 34px rgba(49, 75, 47, 0.08);
}

.hklab-focus-card span {
  color: var(--hklab-clay);
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hklab-focus-card h3 {
  margin: 36px 0 0;
  color: var(--hklab-ink);
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.22vw, 1.25rem);
  font-weight: 800;
  line-height: 1.32;
}

.hklab-partnership__list {
  display: grid;
  border-top: 1px solid rgba(255, 248, 237, 0.18);
}

.hklab-partnership__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 248, 237, 0.18);
}

.hklab-partnership__item span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d6b07b;
  box-shadow: 0 0 0 6px rgba(214, 176, 123, 0.12);
}

.hklab-partnership__item p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.hklab-impact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--hklab-line);
  border: 1px solid var(--hklab-line);
}

.hklab-impact-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--hklab-warm);
  padding: 22px;
}

.hklab-impact-card strong {
  font-size: clamp(1.65rem, 2.8vw, 3rem);
}

.hklab-impact-card span {
  display: block;
  margin-top: 28px;
  color: var(--hklab-muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hklab-research {
  max-width: 980px;
}

.hklab-research h2 {
  color: var(--hklab-olive);
}

.hklab-research p {
  max-width: 940px;
  color: var(--hklab-ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.68;
}

.hklab-cta {
  padding: clamp(74px, 10vw, 136px) 0;
  background: var(--hklab-olive);
  color: #fffdf6;
  text-align: center;
}

.hklab-cta__inner {
  max-width: 940px;
}

.hklab-cta h2 {
  color: #fffdf6;
}

.hklab-cta .hklab-btn--primary {
  background: #fffdf6;
  color: var(--hklab-olive);
}

.hklab-cta .hklab-btn--outline {
  border-color: rgba(255, 253, 246, 0.34);
  color: #fffdf6;
}

.hklab-cta .hklab-btn--outline:hover,
.hklab-cta .hklab-btn--outline:focus-visible {
  background: rgba(255, 253, 246, 0.1);
  color: #fffdf6;
}

.hklab-footer {
  padding: 34px 0;
  background: #211c16;
  color: #fff8ed;
}

.hklab-footer__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 24px;
}

.hklab-footer strong {
  display: block;
  max-width: 420px;
  color: #fff8ed;
  font-weight: 900;
  line-height: 1.4;
}

.hklab-footer p {
  margin: 7px 0 0;
  color: rgba(255, 248, 237, 0.7);
}

.hklab-footer a {
  color: #fff8ed;
  text-decoration: none;
  font-weight: 800;
}

.hklab-footer a:hover,
.hklab-footer a:focus-visible {
  text-decoration: underline;
}

.hklab-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1180px) {
  .hklab-lab-grid,
  .hklab-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hklab-impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hklab-hero {
    min-height: 78svh;
    align-items: flex-end;
    background-position: 58% center;
  }

  .hklab-two-column,
  .hklab-about,
  .hklab-partnership,
  .hklab-footer__inner {
    grid-template-columns: 1fr;
  }

  .hklab-about__panel {
    border-left-width: 4px;
  }

  .hklab-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hklab-hero {
    min-height: 82svh;
    padding-top: 96px;
    background:
      linear-gradient(180deg, rgba(24, 35, 22, 0.82) 0%, rgba(24, 35, 22, 0.66) 58%, rgba(24, 35, 22, 0.22) 100%),
      var(--hklab-hero-image),
      linear-gradient(135deg, #243321, #806141);
    background-size: cover;
    background-position: 62% center;
  }

  .hklab-hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    line-height: 1;
  }

  .hklab-actions,
  .hklab-actions--center {
    flex-direction: column;
    align-items: stretch;
  }

  .hklab-btn {
    width: 100%;
  }

  .hklab-section {
    padding: 58px 0;
  }

  .hklab-lab-grid,
  .hklab-focus-grid,
  .hklab-impact-grid {
    grid-template-columns: 1fr;
  }

  .hklab-lab-card,
  .hklab-focus-card,
  .hklab-impact-card {
    min-height: auto;
  }
}
