/* Balconit — promo bar, shop hero, clients, articles */

/* =========== PROMO BAR =========== */
.promo-bar {
  background: var(--ink);
  color: var(--bone);
  font-size: 16px;
  letter-spacing: normal;
}
.promo-bar-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.promo-bar-inner b { font-weight: 600; }
.promo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.promo-close {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all 180ms var(--ease);
}
.promo-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* =========== HERO SHOP =========== */
.hero-shop {
  padding-block: 28px 80px;
  background: var(--bone);
}
.hero-shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-bottom: clamp(30px, 4vw, 50px);
  padding-block: clamp(34px, 5vw, 64px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(31,27,22,0.08);
}
.hero-shop-headline {
  grid-column: 1;
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: normal;
  color: var(--ink);
  text-wrap: balance;
  text-align: start;
}
.hero-shop-intro {
  grid-column: 2;
  grid-row: 1;
  max-width: 38ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.72;
  text-align: start;
}
.hero-shop-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  /* Lock the row to a constant height so slide changes don't reflow either column */
  grid-auto-rows: clamp(580px, 74vh, 720px);
}
.hero-shop-card {
  background: var(--bone-2);
  border-radius: 8px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  min-height: 0; /* allow inner sections to clip rather than push card taller */
}
.hero-shop-card-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero-shop-deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 16px;
}
.hero-shop-deal-label {
  color: var(--ink-3);
  white-space: nowrap; /* short term stays on one line on the right */
  flex: 0 0 auto;
}
.hero-shop-deal-value {
  color: var(--ink);
  font-weight: 500;
  text-align: start;
  flex: 1 1 auto;
  min-width: 0;
  /* Keep each deal to one tidy line; full text is available on hover (title) and
     on the product page. Prevents long per-product policies from dominating. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* WooCommerce appends a "View cart" link after an ajax add-to-cart; it's
   redundant here (the cart drawer auto-opens + there's a header cart link) and
   it crowds/overflows the buy row, so hide it in our custom card contexts. */
.hero-shop-buy a.added_to_cart,
.hero-shop-card-bottom a.added_to_cart { display: none; }
.hero-shop-card::before {
  /* subtle botanical mark — single ornament, not decorative slop */
  content: '';
  position: absolute;
  bottom: -40px;
  inset-inline-end: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
}
.hero-shop-card-top { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-shop-tagline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-shop-pos {
  font-family: 'Discovery FS', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.hero-shop-active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: heroSlideIn 520ms var(--ease);
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-shop-active-en {
  font-family: 'Discovery FS', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-shop-display {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: normal;
  margin: 0;
  color: var(--ink);
  /* Cap title at 2 lines so word-wrap can't push tags into the buy area */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-shop-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
  /* Clamp the mood copy so longer entries don't change card height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.hero-shop-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--ink-2);
  background: var(--bone);
  border: 1px solid var(--rule-soft);
  padding: 6px 12px;
  border-radius: var(--pill);
}
.hero-shop-tag svg { opacity: 0.6; }
.hero-shop-tag-care .care-dots { gap: 2px; }
.hero-shop-tag-care .care-dot { width: 4px; height: 4px; background: var(--rule); }
.hero-shop-tag-care .care-dot.on { background: var(--accent); }
.hero-shop-buy {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}
.hero-shop-price-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 16px 8px 0;
  border-inline-end: 1px solid var(--rule);
  padding-inline-end: 16px;
}
.hero-shop-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: normal;
}
.hero-shop-price-meta {
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 4px;
}
.hero-shop-cta {
  flex: 1;
  justify-content: center;
}
.hero-shop-more {
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 4px;
  align-self: flex-start;
  transition: color 180ms var(--ease);
}
.hero-shop-more:hover { color: var(--ink); }

/* Slider */
.hero-shop-slider {
  position: relative;
  height: 100%;
  min-height: clamp(580px, 74vh, 720px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bone-2);
}
.hero-shop-stage {
  position: absolute;
  inset: 0;
}
.hero-shop-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 1200ms var(--ease);
  transform: scale(1.04);
}
.hero-shop-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-shop-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shop-pill {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(31,27,22,0.08);
  z-index: 3;
}
.hero-shop-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-shop-counter {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  color: #fff;
  font-family: 'Discovery FS', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  background: rgba(31,27,22,0.45);
  padding: 6px 12px;
  border-radius: var(--pill);
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.hero-shop-counter .muted { color: rgba(255,255,255,0.6); }
.hero-shop-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: all 200ms var(--ease);
  box-shadow: 0 4px 12px rgba(31,27,22,0.12);
}
.hero-shop-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-shop-arrow-prev { inset-inline-end: 20px; }
.hero-shop-arrow-next { inset-inline-start: 20px; }

/* Thumbnail nav (was hero-shop-tiles) */
.hero-shop-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}
.hero-shop-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: start;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 240ms var(--ease);
  color: var(--ink);
}
.hero-shop-tile:hover {
  background: var(--bone-2);
}
.hero-shop-tile.is-active {
  background: var(--surface);
  border-color: var(--rule);
  box-shadow: 0 4px 14px rgba(31,27,22,0.04);
}
.hero-shop-tile-img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bone-2);
  position: relative;
}
.hero-shop-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--ease); }
.hero-shop-tile.is-active .hero-shop-tile-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 6px;
  pointer-events: none;
}
.hero-shop-tile:hover .hero-shop-tile-img img { transform: scale(1.06); }
.hero-shop-tile-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 16px;
  color: var(--ink-2);
  flex: 1;
  min-width: 0;
}
.hero-shop-tile-text .eyebrow {
  font-size: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-shop-tile-text > span:last-child {
  font-size: 16px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-shop-tile-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 14px;
  height: 2px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.hero-shop-tile-bar > div {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 5500ms linear;
}
.hero-shop-tile:not(.is-active) .hero-shop-tile-bar { opacity: 0; }

/* Dot pagination — desktop hidden, shown only when the hero stacks */
.hero-shop-dots {
  display: none;
}
.hero-shop-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: var(--rule);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}
.hero-shop-dot:hover { background: var(--ink-3); }
.hero-shop-dot.is-active {
  width: 22px;
  background: var(--accent);
}

/* =========== CLIENTS — 4×2 social grid =========== */
.clients-section { background: var(--bone-2); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.client-card {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.client-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.client-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.client-card:hover .client-img img { transform: scale(1.05); }
.client-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0) 55%, rgba(31,27,22,0.7) 100%);
  opacity: 0;
  transition: opacity 280ms var(--ease);
}
.client-card:hover .client-veil { opacity: 1; }
.client-caption {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 280ms var(--ease) 40ms;
}
.client-card:hover .client-caption { opacity: 1; transform: translateY(0); }
.client-meta {
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  font-family: 'Discovery FS', system-ui, sans-serif;
  opacity: 0.85;
}
.client-name { font-size: 16px; font-weight: 500; }

/* =========== ARTICLES =========== */
.articles-section { background: var(--bone); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: inherit;
  transition: transform 280ms var(--ease);
}
.article-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { display: flex; flex-direction: column; gap: 10px; padding-inline: 2px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.article-cat { font-size: 16px; }
.article-time { color: var(--ink-3); font-size: 16px; }
.article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: normal;
  margin: 2px 0 0;
  text-wrap: pretty;
}
.article-excerpt { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.article-link {
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.article-card:hover .article-link { color: var(--accent); border-color: var(--accent); }

/* =========== RESPONSIVE =========== */
@media (max-width: 1100px) {
  .hero-shop-heading { grid-template-columns: 1fr; gap: 18px; }
  .hero-shop-headline,
  .hero-shop-intro { grid-column: auto; grid-row: auto; max-width: 720px; }
  .hero-shop-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .hero-shop-slider { min-height: 380px; height: 380px; order: 1; }
  .hero-shop-dots {
    order: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 4px;
  }
  /* Card drops into an auto-height row on mobile, so neutralize the desktop
     fixed-height column machinery (locked row height + flex:1 top + space-between
     + overflow:hidden) that otherwise collapses .hero-shop-card-top to 0 and
     clips/overlaps its content. */
  .hero-shop-card {
    order: 3;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    gap: 24px;
  }
  .hero-shop-card-top { flex: 0 0 auto; }
  .hero-shop-tiles { display: none; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .promo-bar { font-size: 16px; }
  .promo-bar-inner > span:nth-child(2) {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-inline-end: 32px;
  }
  .hero-shop-tiles { grid-template-columns: 1fr; }
  .hero-shop-heading {
    margin-bottom: 26px;
    padding-block: 30px 26px;
  }
  .hero-shop-headline { max-width: 13.5ch; font-size: clamp(30px, 8vw, 40px); line-height: 1.08; }
  .hero-shop-intro { max-width: 34ch; font-size: 16px; line-height: 1.64; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-shop-card { padding: 28px 24px; }
  .hero-shop-arrow { width: 36px; height: 36px; }
}
