/* ============================================================
   Burgtec Projects Plugin — Stylesheet
   Matches the approved WSI project page design exactly.
   All selectors prefixed .bcp- to avoid theme conflicts.
   ============================================================ */

:root {
  --bcp-text:    #1d1d1b;
  --bcp-muted:   #737879;
  --bcp-green:   #162A24;
  --bcp-line:    #E3E2DE;
  --bcp-soft:    #f5f5f2;
  --bcp-softer:  #faf9f7;
  --bcp-orange:  #DB792E;
  --bcp-white:   #ffffff;
  --bcp-font:    'Fonetika', Arial, sans-serif;
}

/* ── Base resets inside our widgets ── */
.bcp-hero, .bcp-intro-strip, .bcp-fw-image, .bcp-story,
.bcp-video-wrap, .bcp-quote-section, .bcp-stats-outer,
.bcp-gallery, .bcp-products-outer, .bcp-related, .bcp-final-cta {
  font-family: var(--bcp-font);
  -webkit-font-smoothing: antialiased;
  color: var(--bcp-text);
  box-sizing: border-box;
}
.bcp-hero *, .bcp-intro-strip *, .bcp-fw-image *, .bcp-story *,
.bcp-video-wrap *, .bcp-quote-section *, .bcp-stats-outer *,
.bcp-gallery *, .bcp-products-outer *, .bcp-related *, .bcp-final-cta * {
  box-sizing: border-box;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.bcp-hero {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 52px;
  padding: 36px 0 64px;
  align-items: start;
}
.bcp-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bcp-orange);
  margin-bottom: 18px;
}
.bcp-hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200;
  letter-spacing: -.05em;
  line-height: 1.0;
  color: var(--bcp-text);
  margin: 0 0 24px;
}
.bcp-hero-lead {
  font-size: 15px;
  font-weight: 300;
  color: var(--bcp-muted);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 40px;
}
.bcp-hero-meta { border-top: 1px solid var(--bcp-line); }
.bcp-meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--bcp-line);
}
.bcp-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bcp-muted);
  padding-top: 2px;
}
.bcp-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--bcp-text);
  line-height: 1.45;
}
.bcp-hero-right {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bcp-line);
}
.bcp-hero-right img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
  display: block;
}
.bcp-hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(227,226,222,.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--bcp-text);
}

/* ══════════════════════════════════════
   FULL-WIDTH IMAGE
══════════════════════════════════════ */
.bcp-fw-image {
  border-top: 1px solid var(--bcp-line);
  border-bottom: 1px solid var(--bcp-line);
  overflow: hidden;
  display: block;
}
.bcp-fw-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bcp-fw-caption {
  position: absolute;
  bottom: 18px;
  right: 24px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
}

/* ══════════════════════════════════════
   INTRO STRIP — boxed, max-width container
══════════════════════════════════════ */
.bcp-intro-strip {
  border-top: 1px solid var(--bcp-line);
  padding: 72px 0;
}
.bcp-intro-inner {
  max-width: var(--bcp-container, 1240px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.bcp-intro-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bcp-orange);
  margin-bottom: 14px;
}
.bcp-intro-heading {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--bcp-text);
  margin: 0;
}
.bcp-intro-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--bcp-muted);
  margin: 0 0 14px;
}
.bcp-intro-body p:first-child {
  font-size: 17px;
  font-weight: 200;
  color: #343530;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   STORY SECTION
══════════════════════════════════════ */
.bcp-story {
  padding: 80px 0;
  border-top: 1px solid var(--bcp-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
/* flip layout for text-right */
.bcp-story--right {
  direction: rtl;
}
.bcp-story--right > * {
  direction: ltr;
}

.bcp-story-text { }
.bcp-story-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bcp-orange);
  margin: 0 0 14px;
  padding: 0;
  line-height: 1;
}
.bcp-story-heading {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--bcp-text);
  line-height: 1.1;
  margin: 0 0 24px;
}
.bcp-story-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--bcp-muted);
  margin: 0 0 14px;
}

/* Story images — 1 wide + 2 square */
.bcp-story-images {
  display: grid;
  gap: 10px;
  align-self: start;
}
.bcp-img-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px !important;
  border: 1px solid var(--bcp-line);
  display: block;
}
.bcp-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bcp-img-sq {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px !important;
  border: 1px solid var(--bcp-line);
  display: block;
}

/* ══════════════════════════════════════
   VIDEO
══════════════════════════════════════ */
.bcp-video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bcp-line);
  aspect-ratio: 16 / 9;
  background: var(--bcp-green);
  cursor: pointer;
  margin-bottom: 80px;
}
.bcp-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bcp-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,42,36,.25);
  transition: background .3s;
}
.bcp-video-overlay:hover { background: rgba(22,42,36,.35); }
.bcp-play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  transition: transform .2s;
  font-family: var(--bcp-font);
}
.bcp-video-overlay:hover .bcp-play-btn { transform: scale(1.08); }

/* ══════════════════════════════════════
   PULL QUOTE
══════════════════════════════════════ */
.bcp-quote-section {
  background: var(--bcp-green);
  padding: 88px 0;
}
.bcp-quote-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: 52px;
  align-items: start;
}
.bcp-quote-bar {
  width: 1px;
  height: 100%;
  background: var(--bcp-orange);
  margin-top: 6px;
  min-height: 60px;
}
.bcp-quote-text {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 200;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.92);
  margin: 0 0 28px;
}
.bcp-quote-attr {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.bcp-quote-attr span { color: var(--bcp-orange); }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.bcp-stats-outer {
  background: var(--bcp-softer);
  border-top: 1px solid var(--bcp-line);
  border-bottom: 1px solid var(--bcp-line);
}
.bcp-stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  /* grid-template-columns set via inline style from PHP */
}
.bcp-stat {
  padding: 44px 36px;
  border-right: 1px solid var(--bcp-line);
}
.bcp-stat:last-child { border-right: none; }
.bcp-stat-value {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--bcp-text);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--bcp-font);
}
.bcp-stat-value em {
  font-style: normal;
  color: var(--bcp-orange);
}
.bcp-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bcp-muted);
  margin-bottom: 6px;
}
.bcp-stat-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--bcp-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.bcp-gallery { padding: 80px 0; border-top: 1px solid var(--bcp-line); }
.bcp-gallery-header { margin-bottom: 36px; }
.bcp-orange-label {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bcp-orange); margin-bottom: 10px;
}
.bcp-section-heading {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 200;
  letter-spacing: -.04em;
  margin: 0;
}
.bcp-gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 300px 300px;
}
.bcp-gallery-item {
  border-radius: 14px;
  border: 1px solid var(--bcp-line);
  overflow: hidden;
  position: relative;
}
.bcp-gallery-item--tall { grid-row: 1 / 3; }
.bcp-gallery-link {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bcp-gallery-grid .bcp-gallery-item img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .5s ease;
  cursor: zoom-in;
  vertical-align: top !important;
  align-content: unset !important;
}
.bcp-gallery-grid .bcp-gallery-item:hover img { transform: scale(1.03); }

/* ── Lightbox ── */
.bcp-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.bcp-lb--open { display: flex; }
.bcp-lb-bg {
  position: absolute; inset: 0;
  background: rgba(18,18,15,.94);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.bcp-lb-stage {
  position: relative; z-index: 2;
  max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.bcp-lb-img {
  max-width: 90vw; max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  display: block;
}
.bcp-lb-close {
  position: absolute; top: 20px; right: 24px; z-index: 3;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; cursor: pointer; line-height: 1;
  font-family: var(--bcp-font);
  transition: background .2s;
}
.bcp-lb-close:hover { background: rgba(255,255,255,.25); }
.bcp-lb-nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; cursor: pointer; user-select: none;
  transition: background .2s;
}
.bcp-lb-nav:hover { background: rgba(255,255,255,.25); }
.bcp-lb-prev { left: 20px; }
.bcp-lb-next { right: 20px; }

/* ══════════════════════════════════════
   PRODUCTS
══════════════════════════════════════ */
.bcp-products-outer {
  background: var(--bcp-softer);
  border-top: 1px solid var(--bcp-line);
  border-bottom: 1px solid var(--bcp-line);
}
.bcp-products-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 0;
}
.bcp-products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.bcp-products-heading {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--bcp-text);
}
.bcp-products-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bcp-green);
  border-bottom: 1px solid var(--bcp-green);
  padding-bottom: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.bcp-products-grid {
  display: grid;
  gap: 14px;
  /* grid-template-columns set via inline style from PHP based on product count */
}
.bcp-product-card {
  background: var(--bcp-white);
  border: 1px solid var(--bcp-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--bcp-text);
  transition: border-color .18s, transform .18s;
  display: block;
}
.bcp-product-card:hover {
  border-color: #c7c1b8;
  transform: translateY(-3px);
}
.bcp-product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bcp-soft);
  overflow: hidden;
}
.bcp-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}
.bcp-product-info { padding: 12px 14px 16px; }
.bcp-product-cat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bcp-muted);
  margin-bottom: 4px;
}
.bcp-product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bcp-text);
  line-height: 1.3;
}

/* ══════════════════════════════════════
   RELATED PROJECTS
══════════════════════════════════════ */
.bcp-related { border-top: 1px solid var(--bcp-line); padding: 72px 0; }
.bcp-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.bcp-related-heading {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--bcp-text);
}
.bcp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bcp-related-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bcp-line);
  background: var(--bcp-white);
  display: block;
  text-decoration: none;
  color: var(--bcp-text);
  transition: border-color .18s, transform .18s;
}
.bcp-related-card:hover { border-color: #c7c1b8; transform: translateY(-2px); }
.bcp-rc-image { aspect-ratio: 16 / 10; overflow: hidden; }
.bcp-rc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}
.bcp-related-card:hover .bcp-rc-image img { transform: scale(1.03); }
.bcp-rc-body { padding: 18px 20px 22px; }
.bcp-rc-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bcp-orange);
  margin-bottom: 8px;
}
.bcp-rc-title {
  font-size: 15px;
  font-weight: 200;
  letter-spacing: -.02em;
  color: var(--bcp-text);
  line-height: 1.2;
}

/* ══════════════════════════════════════
   FINAL CTA
══════════════════════════════════════ */
.bcp-final-cta {
  border-top: 1px solid var(--bcp-line);
  padding: 52px 0 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.bcp-fca-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bcp-muted);
  margin-bottom: 10px;
}
.bcp-fca-heading {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--bcp-text);
  line-height: 1.1;
  margin-bottom: 10px;
}
.bcp-fca-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--bcp-muted);
}
.bcp-fca-btns { display: flex; gap: 10px; flex-shrink: 0; }
.bcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  border-radius: 7px;
  font-family: var(--bcp-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.bcp-btn-primary { background: var(--bcp-green); color: #fff; }
.bcp-btn-primary:hover { background: #1e3a2f; color: #fff; }
.bcp-btn-soft { background: var(--bcp-soft); color: var(--bcp-muted); border: 1px solid var(--bcp-line); }
.bcp-btn-soft:hover { background: #ede9e4; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1080px) {
  .bcp-hero,
  .bcp-intro-inner,
  .bcp-story,
  .bcp-final-cta { grid-template-columns: 1fr; gap: 32px; }
  .bcp-stats { grid-template-columns: 1fr 1fr; }
  .bcp-stat { border-bottom: 1px solid var(--bcp-line); }
  .bcp-products-grid { grid-template-columns: repeat(3, 1fr); }
  .bcp-related-grid { grid-template-columns: 1fr 1fr; }
  .bcp-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 240px); }
  .bcp-gallery-item--tall { grid-row: auto; }
  .bcp-fca-btns { justify-content: flex-start; }
  .bcp-story--right { direction: ltr; }
}
@media (max-width: 680px) {
  .bcp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .bcp-related-grid { grid-template-columns: 1fr; }
  .bcp-stats { grid-template-columns: 1fr; }
  .bcp-gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .bcp-gallery-item { aspect-ratio: 16/9; }
  .bcp-meta-row { grid-template-columns: 120px 1fr; }
}
