/* =============================================
   KinQ PAGE — STYLES
============================================= */

/* ================================================
   SECTION 1: HERO (title left, photo right)
================================================ */
.kq-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.kq-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.kq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(2,2,2,0.95) 0%,
    rgba(2,2,2,0.78) 45%,
    rgba(2,2,2,0.25) 100%);
  z-index: 1;
}
.kq-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}
.kq-hero-text { display: flex; flex-direction: column; gap: 22px; }
.kq-hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--white);
}
.kq-hero-text p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  max-width: 440px;
}
.kq-hero-img { display: flex; justify-content: flex-end; }
.kq-hero-img img {
  width: 100%;
  max-width: 540px;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}


/* ================================================
   SECTION 2: THE KinQ DIFFERENCE (centered)
================================================ */
.kq-difference {
  padding: 90px 0 40px;
  background: var(--bg);
}
.kq-difference-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.kq-difference h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
}
.kq-diff-lead {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
}
.kq-diff-em {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--white);
}
.kq-diff-em em { font-style: italic; }
.kq-diff-em strong { font-weight: 700; }


/* ================================================
   SECTIONS 3-5: TESTING BLOCKS (img + accordion)
================================================ */
.kq-block {
  padding: 60px 0;
  background: var(--bg);
}
.kq-block-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
/* Automation block: text left, image right (alt order handled in HTML) */

.kq-block-img img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.kq-block-text { display: flex; flex-direction: column; gap: 18px; }
.kq-block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}
.kq-block-text > p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}
.kq-intro { color: var(--white) !important; font-weight: 500; }

/* Accordion */
.kq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.kq-item {
  background: var(--bgalt);
  border: 1px solid rgba(51,44,39,0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--ease);
}
.kq-item[open] { border-color: rgba(74,185,183,0.4); }
.kq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  transition: background var(--ease);
}
.kq-item summary::-webkit-details-marker { display: none; }
.kq-item summary:hover { background: rgba(74,185,183,0.05); }

/* chevron circle */
.kq-chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74,185,183,0.12);
  position: relative;
  transition: background var(--ease), transform var(--ease);
}
.kq-chev::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: translate(-60%, -50%) rotate(-45deg);
  transition: transform var(--ease), border-color var(--ease);
}
.kq-item[open] .kq-chev {
  background: var(--gold);
}
.kq-item[open] .kq-chev::after {
  border-color: var(--bg);
  transform: translate(-50%, -30%) rotate(45deg);
}

.kq-item-body {
  padding: 0 22px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}


/* ================================================
   SECTION 6: THE KinQ PROMISE (centered closing)
================================================ */
.kq-promise {
  padding: 90px 0 110px;
  background: var(--bg);
}
.kq-promise-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.kq-promise h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
}
.kq-promise-lead {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  max-width: 680px;
}
.kq-promise-points {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0;
}
.kq-promise-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.kq-promise-points i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.kq-promise-text {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  max-width: 880px;
}


/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
  .kq-hero-inner,
  .kq-block-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .kq-hero-img { justify-content: center; }
  .kq-hero-img img { max-width: 100%; height: 280px; }
  .kq-block-img img { aspect-ratio: 16/10; max-height: 360px; }
  /* On stacked layout, always show image before text for the alt block */
  .kq-block--alt .kq-block-img { order: -1; }
  .kq-hero-overlay {
    background: linear-gradient(180deg, rgba(2,2,2,0.6) 0%, rgba(2,2,2,0.85) 100%);
  }
  .kq-promise-points { gap: 24px; }
}

@media (max-width: 640px) {
  .kq-hero { padding-top: 64px; }
  .kq-hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .kq-hero-text h1 { font-size: 44px; }
  .kq-difference { padding: 56px 0 24px; }
  .kq-block { padding: 40px 0; }
  .kq-block-inner { gap: 28px; }
  .kq-item summary { font-size: 15px; padding: 15px 18px; }
  .kq-promise { padding: 56px 0 72px; }
  .kq-promise-points { flex-direction: column; gap: 14px; align-items: center; }
}
