/* ==========================================================================
   BALLAD — HOMEPAGE.CSS · load ONLY on front page
   Requires: base.css (for tokens & .bld root)
   ========================================================================== */

/* ── TRUST BAR ── */
.bld .trust-bar { background: var(--green); }
.bld .trust-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.bld .trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 32px; border-right: 1px solid rgba(255,255,255,.2);
}
.bld .trust-item:last-child { border-right: none; }
.bld .trust-ico {
  font-size: 20px; flex-shrink: 0; width: 40px; height: 40px;
  background: rgba(255,255,255,.15); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.bld .trust-item strong { display: block; font-size: 13px; color: var(--white); font-weight: 700; margin-bottom: 1px; }
.bld .trust-item span { font-size: 12px; color: rgba(255,255,255,.75); }

/* ── FEATURES ── */
.bld .features { padding: 80px 0; background: var(--white); }
.bld .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bld .feat-card {
  padding: 32px 28px; border-radius: var(--r3);
  border: 1px solid var(--border); background: var(--white);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative; overflow: hidden;
}
.bld .feat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0; background: var(--green);
  transition: width .3s ease;
}
.bld .feat-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.bld .feat-card:hover::after { width: 100%; }
.bld .feat-ico {
  width: 44px; height: 44px; background: var(--green-pale);
  border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.bld .feat-card h3 { font-size: 16px; margin-bottom: 8px; }
.bld .feat-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ── PRODUCT TABS ── */
.bld .prod-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.bld .prod-tab {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--muted); padding: 7px 16px; border-radius: 100px;
  font-size: 12.5px; font-weight: 500; font-family: var(--ff);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.bld .prod-tab:hover { border-color: var(--green); color: var(--green); }
.bld .prod-tab.active {
  background: var(--green); border-color: var(--green);
  color: var(--white); font-weight: 600;
}
.bld .prod-tab-link { display: inline-flex; align-items: center; border-style: dashed; }

/* ── FEATURED PRODUCTS ── */
.bld .products { padding: 80px 0; background: var(--bg); }
.bld .products-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.bld .prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── BANNER GRID ── */
.bld .banner-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  grid-template-rows: 280px 160px; gap: 2px; background: var(--border);
}
.bld .banner-main { grid-row: 1/3; position: relative; overflow: hidden; }
.bld .banner-sm { position: relative; overflow: hidden; }
.bld .banner-grid a { display: block; height: 100%; position: relative; overflow: hidden; }
.bld .banner-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .5s ease; filter: brightness(.75);
}
.bld .banner-grid a:hover img { transform: scale(1.05); filter: brightness(.85); }
.bld .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
}
.bld .banner-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 24px; }
.bld .banner-text .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
  margin-bottom: 5px; display: block;
}
.bld .banner-text h3 { font-size: 20px; color: var(--white); margin-bottom: 8px; }
.bld .banner-text h4 { font-size: 15px; color: var(--white); margin-bottom: 6px; }
.bld .banner-sale-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--amber); color: var(--white);
  font-size: 11px; font-weight: 800;
  padding: 5px 12px; border-radius: 3px; z-index: 2;
}
.bld .banner-more {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: 5px; transition: gap .15s;
}
.bld .banner-grid a:hover .banner-more { gap: 9px; color: var(--white); }

/* ── INSTRUMENTS ── */
.bld .instruments { padding: 80px 0; background: var(--white); }
.bld .inst-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 32px; align-items: start;
}
.bld .inst-menu {
  border: 1px solid var(--border); border-radius: var(--r3);
  overflow: hidden; position: sticky; top: 20px;
}
.bld .inst-menu-head { background: var(--green); padding: 20px 22px; }
.bld .inst-menu-head h3 { color: var(--white); font-size: 15px; margin: 0; }
.bld .inst-menu-head p { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 3px; }
.bld .inst-link {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  color: var(--ink2); font-size: 13.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease, padding .15s ease;
}
.bld .inst-link:last-child { border-bottom: none; }
.bld .inst-link:hover { background: var(--green-pale); color: var(--green-dark); padding-left: 26px; }
.bld .inst-link-ico { font-size: 16px; flex-shrink: 0; }
.bld .inst-link-badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700;
  background: var(--amber); color: var(--white); padding: 2px 7px; border-radius: 3px;
}
.bld .inst-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── STUDIO ── */
.bld .studio { background: #1c1e1c; padding: 80px 0; }
.bld .studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bld .studio-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r3); overflow: hidden;
  transition: background var(--ease), transform var(--ease);
}
.bld .studio-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.bld .studio-card-img { height: 200px; overflow: hidden; }
.bld .studio-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.7); transition: transform .4s ease;
}
.bld .studio-card:hover .studio-card-img img { transform: scale(1.05); }
.bld .studio-card-body { padding: 24px 22px; }
.bld .studio-num {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 8px; display: block;
}
.bld .studio-card-body h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.bld .studio-card-body p { color: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.75; margin-bottom: 16px; }
.bld .studio-link {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .15s, color .15s;
}
.bld .studio-link:hover { color: var(--white); gap: 10px; }

/* ── KNOWLEDGE ── */
.bld .knowledge { padding: 80px 0; background: var(--bg); }
.bld .know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bld .know-card { border-radius: var(--r3); overflow: hidden; position: relative; height: 200px; }
.bld .know-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .5s ease; filter: brightness(.65);
}
.bld .know-card:hover img { transform: scale(1.06); filter: brightness(.75); }
.bld .know-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}
.bld .know-text {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 20px;
}
.bld .know-text .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 5px; display: block;
}
.bld .know-text h3 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.bld .know-more {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s;
}
.bld .know-card:hover .know-more { color: var(--white); }
.bld .know-card-link { position: absolute; inset: 0; z-index: 3; }

/* ── TESTIMONIALS ── */
.bld .testi { padding: 80px 0; background: var(--white); }
.bld .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bld .testi-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 26px 22px;
  transition: box-shadow var(--ease);
}
.bld .testi-card:hover { box-shadow: var(--sh2); }
.bld .stars { color: var(--amber); font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.bld .testi-q { font-size: 14px; color: var(--ink2); line-height: 1.85; font-style: italic; margin-bottom: 18px; }
.bld .testi-by { display: flex; align-items: center; gap: 10px; }
.bld .testi-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
  color: var(--white); flex-shrink: 0;
}
.bld .testi-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bld .testi-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bld .testi-dots { display: none; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; }
.bld .testi-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border2); transition: all .25s ease;
  cursor: pointer; flex-shrink: 0;
}
.bld .testi-dot.active { background: var(--green); width: 20px; border-radius: 4px; }

/* ── CTA STRIP ── */
.bld .cta-strip { background: var(--green); }
.bld .cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 0; gap: 24px;
}
.bld .cta-strip h3 { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.bld .cta-strip p { color: rgba(255,255,255,.75); font-size: 13.5px; }

/* ── CATEGORIES ── */
.bld .cats { padding: 80px 0; background: var(--white); }
.bld .cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bld .cat-card {
  border: 1px solid var(--border); border-radius: var(--r3);
  padding: 22px 14px; text-align: center; background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
}
.bld .cat-card:hover {
  border-color: var(--green); box-shadow: var(--sh2);
  transform: translateY(-3px); background: var(--green-pale);
}
.bld .cat-ico { font-size: 28px; margin-bottom: 10px; }
.bld .cat-card h4 { font-size: 13px; font-weight: 700; color: var(--ink); }
.bld .cat-card p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ── BLOG ── */
.bld .blog { padding: 80px 0; background: var(--bg); }
.bld .blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bld .blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r3); overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.bld .blog-card:hover { box-shadow: var(--sh3); transform: translateY(-3px); }
.bld .blog-img { height: 160px; overflow: hidden; }
.bld .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bld .blog-card:hover .blog-img img { transform: scale(1.06); }
.bld .blog-body { padding: 16px 16px 18px; }
.bld .blog-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 7px; display: block;
}
.bld .blog-body h4 { font-size: 13.5px; color: var(--ink); line-height: 1.45; margin-bottom: 6px; font-weight: 500; }
.bld .blog-more {
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; transition: color .13s;
}
.bld .blog-card:hover .blog-more { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bld .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .bld .inst-grid { grid-template-columns: 1fr; }
  .bld .inst-menu { position: static; }
  .bld .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .bld .trust-bar-inner { grid-template-columns: 1fr; }
  .bld .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .bld .trust-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .bld .feat-grid,
  .bld .studio-grid,
  .bld .know-grid { grid-template-columns: 1fr; }
  .bld .prod-grid,
  .bld .inst-products,
  .bld .blog-grid,
  .bld .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bld .testi { padding: 56px 0; }
  .bld .testi-grid {
    display: flex !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px; padding: 4px 20px 8px;
    margin: 0 -20px; scrollbar-width: none;
  }
  .bld .testi-grid::-webkit-scrollbar { display: none; }
  .bld .testi-card { flex: 0 0 82vw; max-width: 300px; scroll-snap-align: start; min-width: 0; }
  .bld .testi-dots { display: flex; }
  .bld .banner-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bld .banner-main { grid-row: auto; }
  .bld .banner-grid a { height: 240px; }
  .bld .cta-strip-inner { flex-direction: column; text-align: center; }
  .bld .products-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .bld .prod-grid,
  .bld .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bld .blog-grid { grid-template-columns: 1fr; }
}