/* ── Blocks: self-contained variants built on theme tokens ─────────────────
   Blocks carry their own strong styling so home-page compositions look
   deliberately designed, while inheriting each theme's fonts via body and
   using --brand so the tenant color always applies. */

.blk { position: relative; }

/* Hero — split */
.blk-hero-split { padding: 84px 0 64px; }
.blk-hero-split-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.blk-hero-split h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); line-height: 1.15; margin: 12px 0 14px; }
.blk-hero-split .blk-hero-copy p { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; }
.blk-hero-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 18%);
}
.blk-hero-media { position: relative; }
.blk-hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%;
  border-radius: 20px; background: color-mix(in srgb, var(--brand) 22%, transparent); z-index: -1;
}

/* Hero — full-bleed centered */
.blk-hero-center {
  min-height: min(78vh, 680px); display: flex; align-items: center; text-align: center;
  background-color: #14161a; background-size: cover; background-position: center; padding: 90px 0;
}
.blk-hero-center::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(10 12 16 / 55%), rgb(10 12 16 / 30%) 55%, rgb(10 12 16 / 60%));
}
.blk-hero-center .container { position: relative; max-width: 800px; }
.blk-hero-center h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem); color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / 45%);
  margin: 16px 0 14px;
}
.blk-hero-center p { color: #e8e6e1; font-size: 1.14rem; max-width: 56ch; margin: 0 auto 26px; }
.blk-hero-center .blk-eyebrow {
  border-color: color-mix(in srgb, var(--brand) 70%, white);
  color: color-mix(in srgb, var(--brand) 85%, white); background: rgb(0 0 0 / 25%);
}

/* Hero — minimal */
.blk-hero-minimal { padding: 110px 0 70px; text-align: left; }
.blk-hero-minimal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; line-height: 1.1; margin: 14px 0 16px; }
.blk-hero-minimal p { color: var(--ink-soft); font-size: 1.15rem; max-width: 50ch; }

.blk-eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: 999px;
  padding: 5px 14px;
}

/* Features */
.blk-features { padding: 64px 0; }
.blk-title { font-size: 1.7rem; margin-bottom: 26px; }
.blk-features-grid { display: grid; gap: 18px; }
.blk-features--cards .blk-features-grid,
.blk-features--icons .blk-features-grid { grid-template-columns: repeat(3, 1fr); }
.blk-features--numbers .blk-features-grid { grid-template-columns: 1fr; max-width: 760px; }
.blk-feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.blk-feature h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.blk-feature p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.blk-feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.blk-features--numbers .blk-feature { display: grid; grid-template-columns: 52px 1fr; gap: 8px 18px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; background: transparent; }
.blk-feature-num {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; grid-row: span 2;
}
@media (max-width: 860px) { .blk-features--cards .blk-features-grid, .blk-features--icons .blk-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .blk-hero-split-grid { grid-template-columns: 1fr; }
  .blk-features--cards .blk-features-grid, .blk-features--icons .blk-features-grid { grid-template-columns: 1fr; }
}

/* Stats */
.blk-stats { padding: 44px 0; }
.blk-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.blk-stats--band { background: var(--ink); }
.blk-stats--band .blk-stat-value { color: color-mix(in srgb, var(--brand) 80%, white); }
.blk-stats--band .blk-stat-label { color: rgb(255 255 255 / 72%); }
.blk-stat-value { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.blk-stat-label { display: block; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .blk-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Gallery */
.blk-gallery { padding: 56px 0; }
.blk-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.blk-shot { margin: 0; }
.blk-shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.blk-shot figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.blk-gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.blk-gallery-strip .blk-shot img { aspect-ratio: 4 / 3; scroll-snap-align: start; }
@media (max-width: 900px) { .blk-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA */
.blk-cta { padding: 70px 0; text-align: center; background: var(--brand); background-size: cover; background-position: center; }
.blk-cta::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--brand) 82%, black); }
.blk-cta--image::before { background: linear-gradient(90deg, rgb(10 12 16 / 75%), rgb(10 12 16 / 45%)); }
.blk-cta .container { position: relative; max-width: 640px; }
.blk-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.blk-cta p { color: rgb(255 255 255 / 85%); font-size: 1.06rem; margin: 10px 0 24px; }
.blk-cta .btn { background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgb(0 0 0 / 25%); }
.blk-cta .btn:hover { transform: translateY(-2px); }

/* Testimonials */
.blk-testi { padding: 64px 0; }
.blk-testi-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.blk-testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blk-quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.blk-quote blockquote { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.6; }
.blk-quote blockquote::before { content: "“"; color: var(--brand); font-size: 1.6rem; line-height: 0; margin-right: 2px; }
.blk-quote figcaption { font-size: 0.9rem; }
@media (max-width: 860px) { .blk-testi-cards, .blk-testi-row { grid-template-columns: 1fr; } }

/* Rich text */
.blk-richtext { padding: 56px 0; }
.blk-richtext--paper .prose {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px;
}

/* Live preview extras */
.blk-shelf .product-card:nth-child(even) { margin-top: 22px; }
.blk-post-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.blk-post-cover { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.blk-post-title { font-weight: 700; }
.blk-post-date { font-size: 0.85rem; }

/* ── Admin block editor ─────────────────────────────────────────────────── */
.block-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .block-type-grid { grid-template-columns: 1fr; } }
.block-type-option { display: block; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.block-type-option:hover { border-color: var(--ink-soft); }
.block-type-option.selected { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.block-type-name { font-weight: 700; }
.block-type-blurb { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.block-type-variants { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.variant-chip {
  font-size: 0.78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.variant-chip.selected { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.block-row-actions { display: flex; gap: 8px; align-items: center; }
.list-item-editor { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px 2px; margin-bottom: 10px; }
.list-item-editor .form-grid { grid-template-columns: 1fr 1fr; }
