/* Balconit — section-specific styles */

/* =========== HERO =========== */

/* Full-bleed */
.hero-fullbleed { padding: 0; }
.hero-fb-frame {
  position: relative;
  height: clamp(580px, 88vh, 880px);
  overflow: hidden;
}
.hero-fb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-fb-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31,27,22,0.15) 0%, rgba(31,27,22,0) 30%, rgba(31,27,22,0.55) 100%);
}
.hero-fb-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
  color: #fff;
}
.hero-fb-content .eyebrow,
.eyebrow-light {
  color: rgba(255,255,255,0.78);
}
.hero-display {
  margin: 18px 0 24px;
  color: #fff;
}
.hero-lede {
  color: rgba(255,255,255,0.86);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary-on-dark {
  background: #fff;
  color: var(--ink);
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 220ms var(--ease);
}
.btn-primary-on-dark:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-link-light {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-link-light:hover { color: #fff; border-color: #fff; }
.hero-fb-credit {
  position: absolute;
  bottom: 24px;
  inset-inline-end: 32px;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: 'Discovery FS', system-ui, sans-serif;
}

/* Split */
.hero-split { padding-block: 80px 96px; }
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-split-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-split-text .eyebrow { margin-bottom: 0; }
.hero-split-text .display { margin-top: -8px; }
.hero-split-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
  width: 100%;
}
.hero-split-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-split-meta b { font-size: 22px; font-weight: 500; }
.hero-split-meta span { font-size: 16px; color: var(--ink-3); }
.hero-split-img {
  height: clamp(480px, 72vh, 720px);
  border-radius: 4px;
}

/* Typeled */
.hero-typeled { padding-block: 64px 120px; }
.hero-tl-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.hero-tl-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: normal;
  margin: 0;
  text-wrap: balance;
}
.hero-tl-inset {
  display: inline-block;
  width: clamp(80px, 14vw, 200px);
  height: clamp(56px, 9vw, 130px);
  vertical-align: middle;
  margin: 0 0.12em;
  overflow: hidden;
  border-radius: 200px;
  background: var(--bone-2);
  position: relative;
  top: -0.08em;
}
.hero-tl-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-tl-mark {
  display: inline-block;
  position: relative;
  color: var(--accent);
  font-style: italic;
  margin-inline-start: 0.15em;
}
.hero-tl-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}

/* =========== KIT GRID =========== */

.kits-section { background: var(--bone); }
.section-head-right {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 36ch;
}

/* base card */
.kc { position: relative; }
/* stretched link makes the whole card clickable; interactive controls sit above it */
.kc-cardlink { position: absolute; inset: 0; z-index: 1; }
.kc-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 0; }
.kc-mood { font-size: 16px; color: var(--ink-2); line-height: 1.5; margin: 6px 0 0; }
.kc-price {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kc-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 12px;
}
.kc-sep { opacity: 0.5; }
.care-dots { display: inline-flex; gap: 3px; }
.care-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rule);
}
.care-dot.on { background: var(--accent); }

/* image-first — product-card density */
.kit-grid-image-first {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  row-gap: 48px;
}
.kc-image-first {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.kc-image-first:hover {
  border-color: var(--rule);
  box-shadow: 0 8px 24px rgba(31,27,22,0.05);
}
.kc-image-first .kc-img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: var(--bone-2);
}
.kc-image-first:hover .kc-img img { transform: scale(1.04); }
.kc-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--ink);
  color: var(--bone);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  padding: 5px 10px;
  border-radius: var(--pill);
  z-index: 2;
}
.kc-save {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: all 200ms var(--ease);
  z-index: 3;
}
.kc-save:hover { background: #fff; }
.kc-save.is-saved { color: var(--accent); }
.kc-save.is-saved svg { fill: currentColor; }
.kc-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.kc-info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.kc-eyebrow {
  font-family: 'Discovery FS', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kc-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.kc-stars svg { color: var(--accent); }
.kc-image-first .kc-name { font-size: 20px; margin-top: 2px; }
.kc-image-first .kc-mood {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2lh;
}
.kc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.kc-tag {
  font-size: 16px;
  color: var(--ink-2);
  background: var(--bone-2);
  padding: 4px 10px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kc-tag-care .care-dots { gap: 2px; }
.kc-tag-care .care-dot { width: 4px; height: 4px; }
.kc-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kc-foot-price { display: flex; flex-direction: column; gap: 2px; }
.kc-image-first .kc-price { font-size: 19px; }
.kc-price-meta { font-size: 16px; color: var(--ink-3); }
.kc-add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bone);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--pill);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.kc-add:hover { background: var(--accent); transform: translateY(-1px); }
/* Hide WooCommerce's auto-appended "View cart" link inside kit cards (the cart
   drawer auto-opens + there's a header cart, so it's redundant and breaks the foot row). */
.kc-foot a.added_to_cart { display: none; }

/* overlay */
.kit-grid-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.kc-overlay .kc-img { aspect-ratio: 3 / 4; }
.kc-overlay:hover .kc-img img { transform: scale(1.06); }
.kc-overlay-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0.15) 0%, rgba(31,27,22,0) 40%, rgba(31,27,22,0.65) 100%);
  pointer-events: none;
}
.kc-overlay-top {
  position: absolute;
  top: 18px;
  inset-inline: 18px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  font-family: 'Discovery FS', system-ui, sans-serif;
}
.kc-overlay-en { opacity: 0.85; }
.kc-overlay-price { font-variant-numeric: tabular-nums; }
.kc-overlay-bottom {
  position: absolute;
  bottom: 22px;
  inset-inline: 22px;
  color: #fff;
}
.kc-overlay-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.kc-overlay-mood {
  font-size: 16px;
  margin: 8px 0 0;
  color: rgba(255,255,255,0.86);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 320ms var(--ease);
}
.kc-overlay:hover .kc-overlay-mood { max-height: 80px; opacity: 1; margin-top: 10px; }
.kc-overlay-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 320ms var(--ease) 80ms;
}
.kc-overlay:hover .kc-overlay-actions { opacity: 1; transform: translateY(0); }

/* side */
.kit-grid-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  row-gap: 48px;
}
.kc-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.kc-side-img { aspect-ratio: 3 / 4; }
.kc-side:hover .kc-side-img img { transform: scale(1.04); }
.kc-side-info { display: flex; flex-direction: column; gap: 10px; padding-block: 4px; }
.kc-side-info .eyebrow { font-size: 16px; }
.kc-side-info .kc-name { font-size: 26px; margin-top: 2px; }
.kc-side-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--rule-soft);
}
.kc-side-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
}
.kc-side-list span { color: var(--ink-3); }
.kc-side-list b { font-weight: 500; }
.kc-side-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}
.kc-side-add { padding: 10px 18px; font-size: 16px; }

/* =========== HOW IT WORKS =========== */

.how-section { background: var(--bone-2); }
.how-section-timeline { background: var(--bone); }
.how-head { max-width: 720px; }

/* Timeline */
.how-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 140px);
  padding-top: 24px;
}
.how-timeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 50%;
  width: 1px;
  background: var(--rule);
  transform: translateX(0);
}
.how-timeline-rail-fill {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 1px;
  background: var(--accent);
  height: 0;
  transition: height 220ms linear;
}
.how-tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.how-tl-step.is-active { opacity: 1; transform: translateY(0); }
.how-tl-step:nth-child(even) .how-tl-body { grid-column: 1; text-align: center; }
.how-tl-step:nth-child(even) .how-tl-media { grid-column: 3; }
.how-tl-step:nth-child(odd) .how-tl-body { grid-column: 3; text-align: center; }
.how-tl-step:nth-child(odd) .how-tl-media { grid-column: 1; }
.how-tl-marker {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  height: 100%;
}
.how-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bone);
  border: 2px solid var(--rule);
  transition: all 360ms var(--ease);
  position: relative;
}
.how-tl-step.is-active .how-tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 14%, transparent);
}
.how-tl-body {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 24px;
}
.how-tl-step:nth-child(odd) .how-tl-body { align-items: center; }
.how-tl-step:nth-child(even) .how-tl-body { align-items: center; }
.how-tl-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: normal;
  margin: 0;
  text-wrap: balance;
}
.how-tl-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 40ch;
}
.how-tl-media { grid-row: 1; display: flex; }
.how-tl-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bone-2);
  transform: scale(0.96);
  transition: transform 800ms var(--ease);
}
.how-tl-step.is-active .how-tl-img { transform: scale(1); }
.how-tl-img img { width: 100%; height: 100%; object-fit: cover; }

.how-grid { display: grid; gap: 56px; }
.how-icons, .how-line { grid-template-columns: repeat(3, 1fr); }
.how-photos { grid-template-columns: repeat(3, 1fr); }

.how-step { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.how-icon { color: var(--accent); margin-bottom: 4px; }
.how-line-art { color: var(--ink-2); margin-bottom: 6px; }
.how-n {
  font-family: 'Discovery FS', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  color: var(--ink-3);
}
.how-title { margin: 4px 0 0; }
.how-step p { margin: 0; color: var(--ink-2); max-width: 36ch; }

.how-photos .how-photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  width: 100%;
}
.how-photo-info { display: flex; flex-direction: column; gap: 8px; }

/* =========== TRUST =========== */

.trust-section { background: var(--bone); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: normal;
  color: var(--ink);
}
.trust-count-label { color: var(--ink-3); font-size: 16px; }
.trust-quote {
  margin: 0;
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: 32px;
}
.trust-quote .trust-mark { color: var(--accent); opacity: 0.85; }
.trust-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  margin: 18px 0 16px;
  color: var(--ink);
  text-wrap: pretty;
}
.trust-quote figcaption { font-size: 16px; color: var(--ink-3); }
.trust-photo {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

/* =========== CART DRAWER editorial =========== */
.drawer-editorial-hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--ink);
}
.drawer-editorial-hero img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92;
}
.drawer-editorial-hero-caption {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 28px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.drawer-editorial-hero-caption .eyebrow-light {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.line-thumb-tall { height: 120px; }
.line-meta-editorial {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 24ch;
}
.line-editorial-foot {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1100px) {
  .kit-grid-image-first { grid-template-columns: repeat(2, 1fr); }
  .kit-grid-overlay { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-split-img { height: 420px; }
  .hero-tl-foot { grid-template-columns: 1fr; gap: 24px; align-items: flex-start; }
  .kit-grid-image-first,
  .kit-grid-overlay,
  .kit-grid-side { grid-template-columns: 1fr; }
  .kc-side { grid-template-columns: 1fr; }
  .how-icons, .how-line, .how-photos { grid-template-columns: 1fr; gap: 40px; }
  .how-timeline { gap: 56px; }
  .how-timeline-rail { display: none; }
  .how-tl-step { grid-template-columns: 1fr; gap: 16px; }
  .how-tl-step:nth-child(even) .how-tl-body,
  .how-tl-step:nth-child(odd) .how-tl-body { grid-column: 1; text-align: start; align-items: flex-start; }
  .how-tl-step:nth-child(even) .how-tl-media,
  .how-tl-step:nth-child(odd) .how-tl-media { grid-column: 1; }
  .how-tl-marker { display: none; }
  .how-tl-img { aspect-ratio: 16 / 11; }
  .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-quote { border-inline-start: none; padding-inline-start: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
  .hero-fb-content { padding-bottom: 56px; }
}
