/* ═══════════════════════════════════════════════════
   KAVE — Shared Components
   ═══════════════════════════════════════════════════ */

/* ── Primary Button — fill slide-up ── */
.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}

.primary-btn span {
  position: relative;
  z-index: 2;
  transition: color var(--duration-slow) var(--ease);
}

.primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  transform: translateY(101%);
  transition: transform var(--duration-slow) var(--ease);
  z-index: 1;
}

.primary-btn:hover::before {
  transform: translateY(0);
}

.primary-btn:hover span {
  color: var(--color-text);
}

/* ── Secondary Button — underline reveal ── */
.secondary-btn {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
}

.secondary-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text-muted);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease);
}

.secondary-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--color-text);
}

/* ── Eyebrow Label ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ── Title Line Reveal (shared with hero) ── */
.title-line {
  display: block;
  overflow: hidden;
  position: relative;
}

.title-line i {
  display: block;
  font-style: normal;
  will-change: transform;
}

/* ── Section Head — split layout ── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 50px;
  gap: 40px;
}

.section-head .head-left {
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.8px;
}

.section-head .head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-bottom: 6px;
  max-width: 300px;
}

.section-head .meta {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: right;
}

/* ── Section Head — Responsive ── */
@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .section-head .head-right {
    align-items: flex-start;
    max-width: 100%;
  }
  .section-head .meta {
    text-align: left;
  }
  .section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 760px) {
  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  .primary-btn {
    padding: 15px 28px;
    font-size: 11px;
  }
}

/* ── Breadcrumb trail (Phase 6 — SEO + in-page nav). Mirrors .pv2-breadcrumb micro-type.
   Sits as the first child of .archive/.blog-archive (which carry the 120px header
   clearance), aligned to the hero gutter. ── */
.kave-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--gutter);
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}
.kave-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.kave-breadcrumb a:hover { color: var(--color-text); }
.kave-breadcrumb .sep { opacity: 0.4; }
.kave-breadcrumb [aria-current="page"] { color: var(--color-text); }
