/* ============================================================
   Burgtec Home Widgets — Shared Styles
   ============================================================ */

:root {
  --bh-bg: #ffffff;
  --bh-surface: #ffffff;
  --bh-surface-soft: #f5f5f2;
  --bh-surface-softer: #faf9f7;
  --bh-line: #e6e3de;
  --bh-line-strong: #d8d3cc;
  --bh-text: #1d1d1b;
  --bh-muted: #6f716a;
  --bh-green: #16302a;
  --bh-radius-btn: 7px;
  --bh-radius-sm: 10px;
  --bh-radius-md: 16px;
  --bh-radius-lg: 22px;
  --bh-shadow: 0 14px 34px rgba(18,18,15,.05);
}

.bh-widget {
  font-family: 'Fonetika', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--bh-text);
  line-height: 1.45;
}
.bh-widget *, .bh-widget *::before, .bh-widget *::after { box-sizing: border-box; }
.bh-widget img { max-width: 100%; display: block; }
/* Do NOT use color:inherit on links — buttons set their own colour explicitly */
.bh-widget a:not(.bh-btn) { color: inherit; text-decoration: none; }

/* Shared typography */
.bh-eyebrow {
  color: var(--bh-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.bh-widget h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 6.5vw, 90px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 800;
  color: var(--bh-text);
}
.bh-widget h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 600;
}
.bh-widget h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
  font-weight: 600;
}
.bh-widget p {
  margin: 0 0 14px;
  color: var(--bh-muted);
  font-size: 15px;
}
.bh-lead {
  font-size: 17px;
  color: #343530;
  max-width: 56ch;
  margin-bottom: 14px;
  font-family: 'Fonetika', Arial, sans-serif;
}

/* Shared buttons */
.bh-widget .bh-btn,
a.bh-btn {
  appearance: none;
  border: 1px solid var(--bh-line-strong);
  background: #fff;
  color: var(--bh-text);
  border-radius: var(--bh-radius-btn);
  min-height: 36px;
  height: 36px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.bh-widget .bh-btn:hover,
a.bh-btn:hover { transform: translateY(-1px); border-color: #c7c1b8; color: #a0a09a !important; }

/* Primary — dark green, white text. Both selectors + !important beat any theme a{color} rule */
.bh-widget a.bh-btn-primary,
.bh-widget .bh-btn-primary,
a.bh-btn.bh-btn-primary { background: var(--bh-green) !important; color: #ffffff !important; border-color: var(--bh-green) !important; }
.bh-widget a.bh-btn-primary:hover,
.bh-widget .bh-btn-primary:hover,
a.bh-btn.bh-btn-primary:hover { background: #1d4238 !important; border-color: #1d4238 !important; color: #c8d4d2 !important; }

/* Soft */
.bh-widget a.bh-btn-soft,
.bh-widget .bh-btn-soft,
a.bh-btn.bh-btn-soft { background: var(--bh-surface-soft) !important; color: #7b7b78 !important; border-color: #f0efeb !important; }
.bh-widget a.bh-btn-soft:hover,
.bh-widget .bh-btn-soft:hover,
a.bh-btn.bh-btn-soft:hover { color: #a0a09a !important; }

/* Section head */
.bh-section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,440px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.bh-section-note { font-size: 15px; color: var(--bh-muted); }
.bh-section-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── 1. Hero Slider ──────────────────────────────────────── */
.bh-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 52px 0 0;
}

/* Slides */
.bh-slides { position: relative; }
.bh-slide {
  display: none;
  grid-template-columns: minmax(0,1fr) minmax(420px,.95fr);
  gap: 48px;
  align-items: start;
}
.bh-slide.active { display: grid; }

/* Elementor editor: JS doesn't run, so show first slide via CSS */
.elementor-editor-active .bh-slide:first-child { display: grid; }

/* Left copy */
.bh-slide-copy { padding-right: 10px; }

.bh-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
  color: var(--bh-text);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-tag-divider { color: #8e8b84; font-weight: 400; }
.bh-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Right media */
.bh-slide-media { display: flex; flex-direction: column; gap: 14px; }
.bh-hero-image-wrap {
  position: relative;
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  background: var(--bh-surface-softer);
  box-shadow: var(--bh-shadow);
  border: 1px solid var(--bh-line);
}
.bh-hero-image-wrap img {
  width: 100%;
  aspect-ratio: 1.18/1;
  object-fit: cover;
  display: block;
}
.bh-hero-image-wrap video {
  width: 100%;
  aspect-ratio: 1.18/1;
  object-fit: cover;
  display: block;
}
.bh-hero-note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(222,217,209,.95);
  padding: 9px 18px;
  border-radius: var(--bh-radius-btn);
  font-size: 12px;
  font-weight: 600;
  color: var(--bh-text);
  font-family: 'Fonetika', Arial, sans-serif;
  backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s, color .18s, transform .18s;
  cursor: pointer;
}
.bh-hero-note:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
  color: var(--bh-muted);
}
.bh-hero-note::after {
  content: '→';
  font-size: 11px;
}

/* Slider controls */
.bh-slider-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 40px;
}
.bh-slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bh-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bh-line-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, width .2s;
  flex-shrink: 0;
}
.bh-dot.active {
  background: var(--bh-green);
  width: 22px;
}
.bh-slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--bh-line-strong);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--bh-text);
  line-height: 1;
  transition: border-color .18s, transform .18s;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
}
.bh-slider-arrow:hover { border-color: #b0aa9f; transform: scale(1.06); }
.bh-slider-counter {
  margin-left: auto;
  font-size: 12px;
  color: var(--bh-muted);
  font-family: 'Fonetika', Arial, sans-serif;
  letter-spacing: .04em;
}

/* Slide transition */
.bh-slide { animation: none; }
.bh-slide.entering { animation: bh-fade-in .35s ease forwards; }
@keyframes bh-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 2. Proof Strip ──────────────────────────────────────── */
.bh-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 56px;
}
.bh-proof-card {
  background: var(--bh-surface-softer);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-md);
  padding: 22px 20px 24px;
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-proof-label {
  display: block;
  color: var(--bh-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}
.bh-proof-value {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--bh-text);
}
.bh-proof-card p { margin: 0; font-size: 14px; color: var(--bh-muted); line-height: 1.5; }

/* ── 3. Fast Paths ───────────────────────────────────────── */
.bh-fast-paths-section {
  padding: 60px 0;
  border-top: 1px solid var(--bh-line);
}
.bh-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bh-path-card {
  display: flex;
  flex-direction: column;
  background: var(--bh-surface-softer);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-md);
  padding: 24px 22px;
  min-height: 220px;
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-path-card p { margin: 0 0 auto; }
.bh-path-actions { margin-top: 18px; }

/* ── 4. Category Browser ─────────────────────────────────── */
.bh-category-section {
  padding: 56px 0 64px;
  border-top: 1px solid var(--bh-line);
}
.bh-category-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 40px;
  color: var(--bh-text);
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bh-category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--bh-text);
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-category-thumb {
  border-radius: var(--bh-radius-md);
  overflow: hidden;
  background: var(--bh-surface-softer);
  border: 1px solid var(--bh-line);
  aspect-ratio: 1/1;
  transition: border-color .18s, box-shadow .18s;
}
.bh-category-card:hover .bh-category-thumb {
  border-color: #c7c1b8;
  box-shadow: 0 8px 24px rgba(18,18,15,.10);
}
.bh-category-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-category-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ── 5. Featured Projects ────────────────────────────────── */
.bh-projects-section {
  padding: 60px 0;
  border-top: 1px solid var(--bh-line);
}
.bh-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bh-project-card {
  display: flex;
  flex-direction: column;
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-project-image {
  border-radius: var(--bh-radius-md);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  margin-bottom: 16px;
  background: var(--bh-surface-softer);
}
.bh-project-image img { width: 100%; aspect-ratio: 1.22/1; object-fit: cover; display: block; }
.bh-project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bh-meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  background: var(--bh-surface-softer);
  color: #4a4c45;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Fonetika', Arial, sans-serif;
}

/* ── 6. Markets + Resources (Split Band) ─────────────────── */
.elementor-widget-bhome_markets_resources,
.elementor-widget-bhome_markets_resources > .elementor-widget-container,
.bh-split-band {
  background: transparent !important;
}
.bh-split-band {
  border-top: 1px solid var(--bh-line);
  border-bottom: 1px solid var(--bh-line);
}
.bh-split-band-inner {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.bh-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.bh-market-card { display: flex; flex-direction: column; font-family: 'Fonetika', Arial, sans-serif; }
.bh-market-image {
  border-radius: var(--bh-radius-md);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  margin-bottom: 16px;
  background: var(--bh-surface-softer);
}
.bh-market-image img { width: 100%; aspect-ratio: 1.18/1; object-fit: cover; display: block; }

/* Help panel */
.bh-help-panel {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  padding: 28px;
  box-shadow: var(--bh-shadow);
  font-family: 'Fonetika', Arial, sans-serif;
  align-self: center;
}
.bh-resource-list { display: grid; gap: 14px; margin-top: 24px; }
.bh-resource-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--bh-radius-md);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--bh-line);
  box-shadow: 0 8px 22px rgba(24,24,18,.04);
}
.bh-resource-icon {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f1;
  flex: 0 0 96px;
}
.bh-resource-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 7. People ───────────────────────────────────────────── */
.bh-people-section {
  padding: 60px 0;
  border-top: 1px solid var(--bh-line);
}
.bh-people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bh-people-card { display: flex; flex-direction: column; font-family: 'Fonetika', Arial, sans-serif; }
.bh-people-image {
  border-radius: var(--bh-radius-md);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  margin-bottom: 16px;
  background: var(--bh-surface-softer);
}
.bh-people-image img { width: 100%; aspect-ratio: 1.1/1; object-fit: cover; display: block; }

/* ── 8. Final CTA ────────────────────────────────────────── */
.bh-final-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0 72px;
  border-top: 1px solid var(--bh-line);
  font-family: 'Fonetika', Arial, sans-serif;
}
.bh-final-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bh-slide { grid-template-columns: 1fr; }
  .bh-section-head,
  .bh-split-band-inner,
  .bh-final-cta { grid-template-columns: 1fr; }
  .bh-proof-strip,
  .bh-path-grid,
  .bh-project-grid,
  .bh-market-grid,
  .bh-people-grid { grid-template-columns: 1fr 1fr; }
  .bh-category-grid { grid-template-columns: repeat(3, 1fr); }
  .bh-final-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .bh-proof-strip,
  .bh-path-grid,
  .bh-project-grid,
  .bh-market-grid,
  .bh-people-grid { grid-template-columns: 1fr; }
  .bh-category-grid { grid-template-columns: repeat(2, 1fr); }
  .bh-resource-row { grid-template-columns: 1fr; }
  .bh-btn { width: 100%; }
  .bh-hero-actions, .bh-section-actions, .bh-final-actions { width: 100%; }
}
