/* BekCraft redesign — home page. Scoped to body.bc so other pages keep their styles. */
body.bc {
  --bc-ink: #15212B;
  --bc-ink-2: #0E1820;
  --bc-green: #17803F;
  --bc-green-d: #0F5E2D;
  --bc-soft: #F4F7F5;
  --bc-soft-2: #EEF3F0;
  --bc-line: #E3E8EC;
  --bc-muted: #4A5966;
  margin: 0;
  background: #FFFFFF;
  color: var(--bc-ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.bc *, body.bc *::before, body.bc *::after { box-sizing: border-box; }
body.bc h1, body.bc h2, body.bc h3, body.bc p, body.bc dl, body.bc dd, body.bc ul { margin: 0; }
body.bc h1, body.bc h2, body.bc h3 { font-family: inherit; color: inherit; letter-spacing: 0; }
body.bc img { display: block; max-width: 100%; }
body.bc a { color: inherit; }
body.bc a:focus-visible, body.bc button:focus-visible { outline: 3px solid var(--bc-green); outline-offset: 2px; }
body.bc .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bc-muted { color: var(--bc-muted); font-size: 15px; }

/* Buttons */
body.bc .bc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
body.bc .bc-btn:hover { transform: translateY(-1px); }
body.bc .bc-btn-dark { background: var(--bc-ink); color: #FFFFFF; }
body.bc .bc-btn-dark:hover { background: #22323F; }
body.bc .bc-btn-accent { background: var(--bc-green); color: #FFFFFF; }
body.bc .bc-btn-accent:hover { background: var(--bc-green-d); }
body.bc .bc-btn-light { background: #FFFFFF; color: var(--bc-ink); }
body.bc .bc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--bc-green); font-weight: 700; text-decoration: none; }
body.bc .bc-link:hover { color: var(--bc-green-d); }

/* Top bar */
.bc-topbar { background: var(--bc-ink); color: #DDE5EA; font-size: 14px; }
.bc-topbar .bc-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
body.bc .bc-topbar a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.bc-topbar-slogan { margin-left: auto; }

/* Header */
.bc-header { background: #FFFFFF; border-bottom: 1px solid var(--bc-line); position: sticky; top: 0; z-index: 50; }
body.bc .bc-header-inner { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 24px; padding: 12px 24px; }
.bc-logo img { width: auto; height: 52px; }
body.bc .bc-nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; }
body.bc .bc-nav a { text-decoration: none; padding: 10px 0; color: var(--bc-ink); border-bottom: 2px solid transparent; }
body.bc .bc-nav a:hover, body.bc .bc-nav a[aria-current="page"] { border-bottom-color: var(--bc-green); }
body.bc .bc-menu-btn { display: none; }

/* Hero */
.bc-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.bc-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.bc-badge { align-self: flex-start; background: var(--bc-soft-2); color: var(--bc-green-d); font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 8px 14px; border-radius: 999px; }
body.bc .bc-hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; font-weight: 800; }
.bc-lead { font-size: 18px; line-height: 1.6; color: var(--bc-muted); }
.bc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bc-stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 8px; }
.bc-stats dt { font-size: 34px; font-weight: 800; line-height: 1.1; }
.bc-stats dd { font-size: 14px; color: var(--bc-muted); }
.bc-hero-tiles { background: var(--bc-soft); border-radius: 24px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.bc .bc-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #E6ECE8; text-decoration: none; }
.bc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bc-tile:hover img { transform: scale(1.04); }
.bc-tile span { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(255,255,255,.94); color: var(--bc-ink); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 8px; width: fit-content; max-width: calc(100% - 20px); }
.bc-hero-empty { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: var(--bc-muted); }

/* Sections */
.bc-section { padding: 80px 0; }
.bc-soft { background: var(--bc-soft); }
body.bc .bc-section h2, body.bc .bc-cta h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.15; }
.bc-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.bc-section > .bc-wrap > h2 { margin-bottom: 32px; }

/* Category cards */
.bc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
body.bc .bc-cat { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--bc-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--bc-ink); transition: box-shadow .2s, transform .2s; }
.bc-cat:hover { box-shadow: 0 12px 32px rgba(21,33,43,.10); transform: translateY(-2px); }
.bc-cat-media, .bc-prod-media { display: block; aspect-ratio: 4 / 3; background: #E6ECE8; overflow: hidden; }
.bc-cat-media img, .bc-prod-media img { width: 100%; height: 100%; object-fit: cover; }
.bc-noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--bc-muted); font-size: 14px; }
.bc-cat-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
body.bc .bc-cat h3 { font-size: 21px; font-weight: 800; }
.bc-cat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--bc-muted); }

/* Product cards */
.bc-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
body.bc .bc-prod { display: flex; flex-direction: column; border: 1px solid var(--bc-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--bc-ink); background: #FFFFFF; transition: box-shadow .2s; }
.bc-prod:hover { box-shadow: 0 10px 28px rgba(21,33,43,.09); }
.bc-prod-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.bc-prod-cat { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--bc-green-d); }
body.bc .bc-prod h3 { font-size: 17px; font-weight: 700; }
.bc-prod .bc-link { margin-top: auto; padding-top: 6px; font-size: 15px; }

/* Why */
.bc-whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.bc-why { background: #FFFFFF; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.bc-why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bc-soft-2); color: var(--bc-green); display: flex; align-items: center; justify-content: center; }
body.bc .bc-why h3 { font-size: 19px; font-weight: 800; }
.bc-why p { color: var(--bc-muted); font-size: 15px; line-height: 1.55; }

/* Area */
.bc-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bc-area .bc-lead { margin-top: 14px; }
.bc-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bc-chips li { background: var(--bc-soft-2); font-weight: 700; padding: 12px 20px; border-radius: 999px; }
body.bc .bc-chips .bc-chip-dark { background: var(--bc-ink); color: #FFFFFF; }

/* CTA */
.bc-cta { background: var(--bc-ink); color: #FFFFFF; padding: 72px 0; }
.bc-cta-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.bc-cta p { margin-top: 10px; color: #C9D4DB; font-size: 17px; }

/* Footer */
.bc-footer { background: var(--bc-ink-2); color: #B9C5CD; font-size: 15px; }
.bc-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.bc-footer-inner > div, .bc-footer-inner > nav { display: flex; flex-direction: column; gap: 10px; }
.bc-footer-brand { font-size: 22px; font-weight: 800; color: #FFFFFF; letter-spacing: .5px; }
.bc-footer-brand span { color: #3DBE6E; }
.bc-footer-title { color: #FFFFFF; font-weight: 700; }
body.bc .bc-footer a { color: #B9C5CD; text-decoration: none; }
body.bc .bc-footer a:hover { color: #FFFFFF; }

/* Floating buttons: existing call button + optional Telegram */
body.bc .floating-call, body.bc .bc-float { position: fixed; right: 20px; z-index: 60; width: 56px; height: 56px; padding: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none; box-shadow: 0 8px 24px rgba(21,33,43,.25); }
body.bc .floating-call { bottom: 20px; background: var(--bc-ink); }
body.bc .floating-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.bc .floating-call svg { width: 24px; height: 24px; }
body.bc .bc-float-tg { bottom: 88px; background: var(--bc-green); }

/* Tablet */
@media (max-width: 1080px) {
  body.bc .bc-nav { gap: 20px; }
  body.bc .bc-header-cta { display: none; }
  .bc-footer-inner { grid-template-columns: 1fr 1fr; }
}
/* Mobile */
@media (max-width: 860px) {
  .bc-topbar-slogan { display: none; }
  .bc-topbar span { font-size: 13px; }
  .bc-logo img { height: 44px; }
  body.bc .bc-menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--bc-line); border-radius: 12px; background: #FFFFFF; }
  body.bc .bc-menu-btn span { display: block; height: 2px; width: 100%; background: var(--bc-ink); border-radius: 2px; }
  body.bc .bc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: #FFFFFF; border-bottom: 1px solid var(--bc-line); padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(21,33,43,.08); }
  body.bc .bc-nav.open { display: flex; }
  body.bc .bc-nav a { padding: 14px 0; border-bottom: 1px solid var(--bc-line); }
  body.bc .bc-nav a:last-child { border-bottom: 0; }
  .bc-hero-inner, .bc-area { grid-template-columns: 1fr; gap: 32px; }
  .bc-hero-inner { padding-top: 36px; padding-bottom: 48px; }
  .bc-section { padding: 56px 0; }
  .bc-cta { padding: 56px 0; }
  .bc-stats { gap: 24px; }
  .bc-stats dt { font-size: 28px; }
}
@media (max-width: 520px) {
  .bc-wrap { padding: 0 16px; }
  .bc-badge { font-size: 11px; }
  .bc-actions .bc-btn { flex: 1 1 100%; }
  .bc-hero-tiles { padding: 10px; gap: 10px; }
  .bc-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bc-prod-body { padding: 12px; }
  body.bc .bc-prod h3 { font-size: 15px; }
  .bc-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.bc *, body.bc *::before, body.bc *::after { transition: none !important; }
}

/* Footer contacts reuse the shared admin-driven markup */
body.bc .bc-footer .footer-contacts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; background: none; }
body.bc .bc-footer .footer-contacts a { padding: 0; border: 0; background: none; font-size: 15px; font-weight: 400; min-height: 0; }
@media (max-width: 520px) { body.bc .bc-header-inner { padding: 10px 16px; } }
@media (max-width: 860px) { body.bc .bc-header-cta { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 14px; } }
@media (max-width: 360px) { body.bc .bc-header-cta { display: none; } }

/* Small phones */
body.bc .bc-section-head .bc-link { min-height: 44px; }
@media (max-width: 520px) {
  body.bc .bc-hero h1 { font-size: 28px; line-height: 1.15; }
  .bc-hero-inner { padding-top: 28px; }
  .bc-lead { font-size: 16px; }
  .bc-stats { gap: 20px 28px; }
  .bc-stats dt { font-size: 24px; }
  .bc-section { padding: 44px 0; }
  .bc-section-head { margin-bottom: 20px; }
  .bc-footer-inner { padding-bottom: 96px; } /* floating buttons must not cover footer links */
}
@media (max-width: 520px) {
  .bc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .bc-stats dt { font-size: 22px; }
  .bc-stats dd { font-size: 13px; line-height: 1.3; }
}

/* Scroll entrance (classes added by redesign-home.js only) */
body.bc .bc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease-out var(--bc-delay, 0ms), transform .6s cubic-bezier(.2,.8,.25,1) var(--bc-delay, 0ms), box-shadow .2s; }
body.bc .bc-reveal.bc-in { opacity: 1; transform: none; }
body.bc .bc-cat.bc-in:hover { transform: translateY(-4px); }
/* Floating buttons drift in once on page open */
@keyframes bc-float-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.bc .floating-call, body.bc .bc-float { animation: bc-float-in .5s ease-out .4s both; }
@media (prefers-reduced-motion: reduce) { body.bc .floating-call, body.bc .bc-float { animation: none; } }

/* Park Misa style: outline button, footer Telegram + icons, floating call pill (left) and Telegram (right) */
body.bc .bc-btn-outline { background: transparent; color: var(--bc-ink); box-shadow: inset 0 0 0 2px var(--bc-ink); }
body.bc .bc-btn-outline:hover { background: var(--bc-ink); color: #FFFFFF; }
body.bc .bc-footer-cta { align-self: flex-start; margin-top: 6px; color: #FFFFFF; }
body.bc .bc-footer .bc-footer-cta { color: #FFFFFF; }
.bc-footer-social { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 10px; }
body.bc .bc-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: #DDE5EA; background: rgba(255,255,255,.08); transition: background .15s, color .15s; }
body.bc .bc-footer-social a:hover { background: var(--bc-green); color: #FFFFFF; }
body.bc .floating-call { left: 20px; right: auto; bottom: 20px; width: auto; height: 52px; padding: 0 22px 0 18px; gap: 10px; font-weight: 700; font-size: 16px; }
body.bc .floating-call::after { content: "Qo‘ng‘iroq qilish"; }
body.bc .bc-float-tg { right: 20px; bottom: 20px; width: 58px; height: 58px; background: var(--bc-green); }
@media (max-width: 520px) {
  body.bc .floating-call { left: 12px; bottom: 12px; height: 48px; padding: 0 18px 0 14px; font-size: 15px; }
  body.bc .bc-float-tg { right: 12px; bottom: 12px; width: 52px; height: 52px; }
}
body.bc { padding-bottom: 0; }
body.bc .bc-hero .bc-actions { gap: 10px; }
body.bc .bc-hero .bc-btn { padding: 12px 20px; }
@media (min-width: 861px) { body.bc .bc-hero .bc-actions { flex-wrap: nowrap; } }
@media (min-width: 861px) and (max-width: 1180px) { body.bc .bc-hero .bc-actions { flex-wrap: wrap; } }

/* 404 */
.bc-404 { min-height: 60vh; display: flex; align-items: center; }
.bc-404 .bc-wrap { display: flex; flex-direction: column; gap: 18px; }
.bc-404-code { font-size: clamp(72px, 12vw, 140px); font-weight: 800; line-height: 1; color: var(--bc-green); }
body.bc .bc-404 h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.bc-404 .bc-lead { max-width: 640px; }

/* Hero banner (admin "Hero banner") above the product tiles */
body.bc .bc-hero-banner { grid-column: 1 / -1; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #E6ECE8; }
body.bc .bc-hero-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
body.bc .bc-hero-banner:hover img { transform: scale(1.03); }
body.bc .bc-hero-banner { aspect-ratio: 2 / 1; }
body.bc .bc-hero-banner ~ .bc-tile { aspect-ratio: 16 / 10; }

/* Hero photos are display-only (no hover zoom / pointer) */
body.bc .bc-hero-banner:hover img, body.bc .bc-tile:hover img { transform: none; }
body.bc .bc-tile { cursor: default; }

/* Bajarilgan ishlar */
.bc-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bc-work { margin: 0; border-radius: 16px; overflow: hidden; background: #E6ECE8; position: relative; aspect-ratio: 4 / 3; }
.bc-work img { width: 100%; height: 100%; object-fit: cover; }
.bc-work figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); background: rgba(255,255,255,.94); color: var(--bc-ink); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 520px) { .bc-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bc-area .bc-map-actions { margin-top: 18px; }
