/* ═══════════════════════════════════════════════════
   MBC Split Layout — split-layout.css
   Loaded only on pages using the MBC Split Layout template
═══════════════════════════════════════════════════ */

html, body, .mbc-screen {
  height: 100%; overflow: hidden;
  margin: 0; padding: 0;
  background: #0a0a0a;
}

/* ── SCREEN WRAPPER ── */
.mbc-screen {
  display: flex;
  width: 100vw; height: 100vh;
  overflow: hidden; position: relative;
}

/* ── HERO PANEL ── */
.mbc-hero-panel {
  background: #111;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}

/* Nav */
.mbc-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 54px; flex-shrink: 0;
  border-bottom: 1px solid #1e1e1e;
  position: relative; z-index: 10;
  background: rgba(17,17,17,.95);
}
.mbc-nav-logo { display: flex; align-items: center; gap: 10px; }
.mbc-nav-logo a { display: flex; }
.mbc-site-name {
  font-family: 'Playfair Display', serif; color: #fff;
  font-size: .85rem; line-height: 1; white-space: nowrap;
}
.mbc-site-sub {
  font-size: .52rem; color: #c9a84c;
  letter-spacing: .14em; text-transform: uppercase; margin-top: 2px;
}
.mbc-nav-links {
  display: flex; list-style: none; margin: 0; padding: 0; gap: 0;
}
.mbc-nav-links li a {
  color: rgba(255,255,255,.38); text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: .68rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-left: 14px; white-space: nowrap;
  transition: color .2s;
}
.mbc-nav-links li a:hover { color: #c9a84c; }

/* Hero layers */
.mbc-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.mbc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,11,11,.88) 45%, rgba(11,11,11,.55));
  pointer-events: none;
}

/* Hero content — Elementor outputs into here */
.mbc-hero-content {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 52px 24px;
  position: relative; z-index: 1; overflow: hidden;
  gap: 0;
}

/* Services strip */
.mbc-services-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #1e1e1e; flex-shrink: 0;
  position: relative; z-index: 2;
}
.mbc-svc {
  padding: 10px 18px; border-right: 1px solid #1e1e1e;
  background: rgba(8,8,8,.92);
}
.mbc-svc:last-child { border-right: none; }
.mbc-svc p:first-child {
  font-family: 'Playfair Display', serif;
  font-size: .74rem; color: #fff; margin-bottom: 1px;
}
.mbc-svc p:last-child {
  font-family: 'Outfit', sans-serif;
  font-size: .64rem; color: #c9a84c; font-weight: 300;
}

/* Image controls */
.mbc-img-controls {
  display: none; flex-shrink: 0;
  background: #080808; border-top: 1px solid #1e1e1e;
  padding: 5px 44px; gap: 9px; align-items: center;
  flex-wrap: wrap; position: relative; z-index: 10;
}
.mbc-img-controls.visible { display: flex; }
.mbc-img-controls label {
  font-family: system-ui, sans-serif; font-size: .6rem;
  color: #555; white-space: nowrap;
}
.mbc-img-controls input[type=range] { width: 70px; accent-color: #c9a84c; cursor: pointer; }
.mbc-val {
  font-family: system-ui, sans-serif; font-size: .6rem;
  color: #c9a84c; font-weight: 600; min-width: 28px;
}
.mbc-sep { color: #2a2a2a; font-size: .8rem; }
.mbc-btn-sm {
  background: #181818; color: #777; border: none; border-radius: 3px;
  padding: 4px 10px; font-size: .62rem; cursor: pointer;
  font-family: system-ui, sans-serif; white-space: nowrap;
}
.mbc-btn-sm:hover { background: #222; color: #bbb; }
.mbc-btn-danger { color: #f87171; border: 1px solid #f87171; background: transparent; }

#mbc-img-load-bar {
  background: #080808; border-top: 1px solid #1e1e1e;
  padding: 5px 44px; flex-shrink: 0;
}

/* ── DIVIDER ── */
.mbc-divider {
  width: 6px; flex-shrink: 0; cursor: col-resize;
  background: #1a1a1a; position: relative; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mbc-divider:hover, .mbc-divider.dragging { background: #2a2a2a; }
.mbc-divider::before {
  content: ''; width: 2px; height: 40px; border-radius: 2px;
  background: rgba(201,168,76,.4); display: block;
}
.mbc-divider:hover::before,
.mbc-divider.dragging::before { background: #c9a84c; }

/* ── NEWS PANEL ── */
.mbc-news-panel {
  flex: 1; background: #0e0e0e;
  display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}
.mbc-news-header {
  background: #161616; padding: 9px 18px 8px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; border-bottom: 1px solid #222;
}
.mbc-news-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: .9rem; color: #fff; font-weight: 700;
}
.mbc-news-header h2 em { color: #c9a84c; font-style: italic; font-weight: 400; }
.mbc-news-header-right { display: flex; align-items: center; gap: 10px; }
.mbc-news-header a {
  font-family: 'Outfit', sans-serif; font-size: .6rem;
  color: rgba(201,168,76,.55); text-decoration: none;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.mbc-news-header a:hover { color: #c9a84c; }
.mbc-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; display: inline-block;
  animation: mbc-pulse 2s infinite;
}
.mbc-live-label {
  font-family: 'Outfit', sans-serif; font-size: .56rem;
  color: #4ade80; letter-spacing: .06em;
}
@keyframes mbc-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* News grid */
.mbc-news-grid {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px; padding: 3px;
  background: #222; overflow: hidden;
  min-width: 0; align-content: stretch;
}
.mbc-news-grid.loading {
  display: flex; align-items: center; justify-content: center;
  background: #0e0e0e;
}
.mbc-loading-msg {
  font-family: 'Outfit', sans-serif; font-size: .8rem;
  color: rgba(255,255,255,.25); text-align: center; line-height: 1.8;
}
.mbc-spinner {
  display: block; width: 22px; height: 22px;
  border: 2px solid #222; border-top-color: #c9a84c;
  border-radius: 50%; animation: mbc-spin .8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes mbc-spin { to { transform: rotate(360deg); } }

/* Post cards */
.mbc-post-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: #1a1a1a; display: flex; flex-direction: column;
  justify-content: flex-end; min-width: 0; min-height: 0;
  text-decoration: none;
  transition: outline .1s;
}
.mbc-post-card:hover .mbc-post-thumb { transform: scale(1.04); }
.mbc-post-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.mbc-post-card:nth-child(4n+1) .mbc-post-thumb { background-color: #1a1a2e; }
.mbc-post-card:nth-child(4n+2) .mbc-post-thumb { background-color: #1a1208; }
.mbc-post-card:nth-child(4n+3) .mbc-post-thumb { background-color: #0a1a14; }
.mbc-post-card:nth-child(4n+4) .mbc-post-thumb { background-color: #1a1020; }

.mbc-post-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.84) 38%, rgba(0,0,0,.08) 100%);
  pointer-events: none;
}
.mbc-post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: #c9a84c; z-index: 2;
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.mbc-post-card:hover::before { transform: scaleX(1); }

.mbc-post-meta {
  position: relative; z-index: 1; padding: 10px 12px 9px;
}
.mbc-post-meta h3 {
  font-family: 'Lato', sans-serif; font-size: .76rem;
  color: #fff; font-weight: 700; line-height: 1.28; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.mbc-post-info {
  font-family: 'Outfit', sans-serif; font-size: .6rem;
  color: rgba(255,255,255,.4); display: flex; gap: 8px;
}
.mbc-post-date { color: rgba(201,168,76,.65); }

/* News footer */
.mbc-news-footer {
  background: #0a0a0a; padding: 6px 18px;
  font-family: 'Outfit', sans-serif; font-size: .6rem;
  color: rgba(255,255,255,.2); flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #1a1a1a;
}
.mbc-news-footer a { color: rgba(201,168,76,.4); text-decoration: none; }
.mbc-news-footer a:hover { color: #c9a84c; }

/* ── HERO CONTENT STYLES ── */
.mbc-hashtag-wrap {
  margin-bottom: 20px;
  align-self: flex-start;
}
.mbc-hashtag {
  display: inline-block;
  background: #c9a84c;
  color: #111;
  padding: 7px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 2px 12px rgba(201,168,76,.35);
}

.mbc-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  line-height: .92;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
}
.mbc-headline em {
  font-style: italic;
  color: #c9a84c;
  font-weight: 400;
}

.mbc-strapline {
  font-family: 'Outfit', sans-serif;
  font-size: .76rem;
  font-weight: 300;
  color: rgba(255,255,255,.42);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.mbc-mission {
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 300;
  color: rgba(255,255,255,.58);
  line-height: 1.72;
  max-width: 480px;
  margin: 0 0 24px;
}

.mbc-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.mbc-cta-primary {
  display: inline-block;
  background: #c9a84c;
  color: #111 !important;
  padding: 13px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.mbc-cta-primary:hover { background: #b8943d; }

.mbc-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255,255,255,.7) !important;
  padding: 13px 26px;
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
  white-space: nowrap;
}
.mbc-cta-secondary:hover,
.mbc-carousel-trigger:hover {
  border-color: #c9a84c;
  color: #c9a84c !important;
  background: rgba(201,168,76,.08);
}
.mbc-cta-arrow {
  font-size: 1rem;
  transition: transform .25s;
}
.mbc-cta-secondary:hover .mbc-cta-arrow { transform: translateX(4px); }

/* Slide dots */
.mbc-slide-dots {
  display: flex;
  gap: 7px;
  margin-top: 24px;
}
.mbc-sdot {
  height: 1px;
  cursor: pointer;
  transition: width .3s, background .3s;
  background: rgba(201,168,76,.28);
  display: inline-block;
}
.mbc-sdot.on { background: #c9a84c; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  html, body { overflow: auto; }

  .mbc-screen {
    flex-direction: column;
    height: auto; min-height: 100vh;
    overflow: visible;
  }
  .mbc-hero-panel {
    width: 100% !important;
    flex: none;
    min-height: 60vh;
  }
  .mbc-divider { display: none; }
  .mbc-news-panel {
    flex: none;
    height: auto;
    overflow: visible;
  }
  .mbc-news-grid {
    height: auto;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    overflow: visible;
  }
  .mbc-post-card {
    min-height: 180px;
    display: flex !important;
  }
  .mbc-img-controls { padding: 5px 20px; }
  #mbc-img-load-bar  { padding: 5px 20px; }
  .mbc-hero-content  { padding: 24px 28px; }
  .mbc-nav { padding: 0 20px; }
  .mbc-nav-links { display: none; } /* hide nav links on mobile — burger menu needed */
  .mbc-services-strip { grid-template-columns: 1fr; }
  .mbc-svc { border-right: none; border-bottom: 1px solid #1e1e1e; }
  .mbc-svc:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .mbc-news-grid {
    grid-template-columns: 1fr !important;
  }
  .mbc-post-card { min-height: 160px; }
  .mbc-headline { font-size: 2.4rem !important; }
}

/* ── SOCIAL LINKS ── */
.mbc-social-links {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  align-items: center;
}
.mbc-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
}
.mbc-social-link:hover { color: #c9a84c; border-color: rgba(201,168,76,.4); }
.mbc-social-fb:hover { color: #7dd3fc; border-color: rgba(125,211,252,.4); }
.mbc-social-yt:hover { color: #f87171; border-color: rgba(248,113,113,.4); }

/* ── CAROUSEL OVERLAY ── */
.mbc-carousel-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mbc-carousel-overlay.open {
  opacity: 1; pointer-events: all;
}
.mbc-carousel-panel {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 40px 32px 32px;
  max-width: 900px;
  width: 92vw;
  position: relative;
  max-height: 90vh;
  overflow: hidden;
}
.mbc-carousel-close {
  position: absolute; top: 14px; right: 18px;
  background: transparent; border: none; color: rgba(255,255,255,.4);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.mbc-carousel-close:hover { color: #c9a84c; }

.mbc-carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 900; color: #fff;
  margin-bottom: 28px;
}
.mbc-carousel-title em { color: #c9a84c; font-weight: 400; font-style: italic; }

.mbc-carousel-track-wrap {
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.mbc-carousel-track {
  display: flex; gap: 16px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

/* Cards */
.mbc-carousel-card {
  flex: 0 0 calc(33.333% - 11px);
  background: #1a1a1a;
  text-decoration: none;
  display: flex; flex-direction: column;
  border: 1px solid #222;
  transition: border-color .2s, transform .2s;
  min-width: 0;
}
.mbc-carousel-card:hover {
  border-color: #c9a84c;
  transform: translateY(-2px);
}
.mbc-cc-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mbc-cc-body {
  padding: 16px 18px 20px;
}
.mbc-cc-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; color: #fff; font-weight: 700;
  margin-bottom: 6px;
}
.mbc-cc-body p {
  font-family: 'Lato', sans-serif;
  font-size: .78rem; color: rgba(255,255,255,.45);
  line-height: 1.55; font-weight: 300;
}

/* Carousel nav arrows */
.mbc-carousel-prev,
.mbc-carousel-next {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.5);
  width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
  display: flex; align-items: center; justify-content: center;
}
.mbc-carousel-prev:hover,
.mbc-carousel-next:hover {
  border-color: #c9a84c; color: #c9a84c;
}

/* Carousel dots */
.mbc-carousel-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 18px;
}
.mbc-cdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer;
  transition: background .2s, transform .2s;
  border: none; padding: 0;
}
.mbc-cdot.on { background: #c9a84c; transform: scale(1.3); }

/* Hide carousel on mobile — just show links normally */
@media (max-width: 768px) {
  .mbc-carousel-panel { padding: 28px 18px 24px; }
  .mbc-carousel-card { flex: 0 0 calc(50% - 8px); }
  .mbc-carousel-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .mbc-carousel-card { flex: 0 0 80vw; }
}
