﻿/**
 * Media Focus Interactive Services Engine - Scoped Stylesheet
 * Scoped root: .mfa-service-shell
 * Performance-Optimized (< 30KB), Zero Theme Leak
 */

.mfa-service-shell {
  --mf-blue: #1B3F72;
  --mf-blue-dark: #0E2A52;
  --mf-gold: #F4A820;
  --mf-gold-hover: #E09A15;
  --mf-dark: #111827;
  --mf-text: #1F2937;
  --mf-muted: #5a6a7e;
  --mf-light: #F9FAFB;
  --mf-card-bg: #FFFFFF;
  --mf-border: #E5E7EB;
  --mf-radius-sm: 8px;
  --mf-radius-md: 14px;
  --mf-radius-lg: 22px;
  --mf-shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --mf-shadow-md: 0 10px 30px rgba(27,63,114,0.08);
  --mf-shadow-lg: 0 20px 50px rgba(27,63,114,0.14);
  --mf-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  font-family: inherit;
  color: var(--mf-text);
  background: var(--mf-light);
  line-height: 1.7;
  box-sizing: border-box;
}

.mfa-service-shell *, 
.mfa-service-shell *::before, 
.mfa-service-shell *::after {
  box-sizing: border-box;
}

.mfa-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* â”€â”€ HERO SECTION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-hero {
  position: relative;
  padding: 80px 0 65px;
  background: linear-gradient(145deg, var(--mf-blue) 0%, var(--mf-blue-dark) 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 3px solid var(--mf-gold);
}

.mfa-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(244,168,32,0.12) 0%, rgba(27,63,114,0) 70%);
  pointer-events: none;
}

.mfa-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.mfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(244,168,32,0.15);
  border: 1px solid rgba(244,168,32,0.4);
  border-radius: 30px;
  color: var(--mf-gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.mfa-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px;
}

.mfa-hero-sub {
  font-size: 16.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  margin-bottom: 28px;
}

.mfa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.mfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--mf-radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--mf-transition);
  border: none;
}

.mfa-btn-gold {
  background: var(--mf-gold);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(244,168,32,0.35);
}
.mfa-btn-gold:hover {
  background: var(--mf-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244,168,32,0.45);
}

.mfa-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.25);
}
.mfa-btn-whatsapp:hover {
  background: #20BA5A;
  color: #ffffff;
  transform: translateY(-2px);
}

.mfa-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.mfa-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* â”€â”€ VIDEO FACADE (Lazy Click-to-Play) â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-video-facade {
  position: relative;
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  box-shadow: var(--mf-shadow-lg);
  aspect-ratio: 16/9;
  background: #000000;
  cursor: pointer;
  border: 2px solid rgba(244,168,32,0.3);
}

.mfa-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mfa-video-facade:hover .mfa-video-poster {
  transform: scale(1.03);
}

.mfa-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--mf-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(244,168,32,0.25);
  transition: var(--mf-transition);
}

.mfa-video-facade:hover .mfa-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 16px rgba(244,168,32,0.35);
}

/* â”€â”€ SECTION COMMONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-section {
  padding: 70px 0;
}

.mfa-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.mfa-section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--mf-blue);
  margin: 0 0 10px;
}

.mfa-section-desc {
  font-size: 15.5px;
  color: var(--mf-muted);
  line-height: 1.8;
  margin: 0;
}

/* â”€â”€ BEFORE / AFTER INTERACTIVE SLIDER â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  box-shadow: var(--mf-shadow-md);
  user-select: none;
  border: 1.5px solid var(--mf-border);
}

.mfa-ba-after,
.mfa-ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

.mfa-ba-after img,
.mfa-ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.mfa-ba-before {
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--mf-gold);
  z-index: 2;
}

.mfa-ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(17,24,39,0.75);
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.mfa-ba-label-before { right: 16px; }
.mfa-ba-label-after { left: 16px; }

.mfa-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mf-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 4;
  cursor: ew-resize;
  border: 3px solid #ffffff;
}

.mfa-ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

/* â”€â”€ INTERACTIVE TABS (Deliverables & Workflow) â”€ */
.mfa-tabs-wrap {
  background: var(--mf-card-bg);
  border-radius: var(--mf-radius-md);
  border: 1.5px solid var(--mf-border);
  box-shadow: var(--mf-shadow-sm);
  overflow: hidden;
}

.mfa-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--mf-border);
  background: #FAFBFD;
}

.mfa-tab-btn {
  flex: 1;
  min-width: 160px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mf-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--mf-transition);
}

.mfa-tab-btn:hover {
  color: var(--mf-blue);
  background: rgba(27,63,114,0.03);
}

.mfa-tab-btn.active {
  color: var(--mf-blue);
  border-bottom-color: var(--mf-gold);
  background: #ffffff;
}

.mfa-tab-content {
  padding: 32px 28px;
  display: none;
}

.mfa-tab-content.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  animation: mfaFadeIn 0.3s ease;
}

@keyframes mfaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ BEHIND THE SCENES / EQUIPMENT SPECS â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.mfa-equip-card {
  background: var(--mf-card-bg);
  padding: 26px 22px;
  border-radius: var(--mf-radius-md);
  border: 1.5px solid var(--mf-border);
  transition: var(--mf-transition);
}

.mfa-equip-card:hover {
  border-color: var(--mf-blue);
  box-shadow: var(--mf-shadow-md);
  transform: translateY(-4px);
}

.mfa-equip-icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: inline-block;
}

.mfa-equip-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--mf-blue);
  margin: 0 0 8px;
}

.mfa-equip-desc {
  font-size: 14px;
  color: var(--mf-muted);
  line-height: 1.65;
  margin: 0;
}

/* â”€â”€ CASE STUDY METRICS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: linear-gradient(135deg, var(--mf-blue) 0%, var(--mf-blue-dark) 100%);
  padding: 34px;
  border-radius: var(--mf-radius-md);
  color: #ffffff;
  text-align: center;
  margin: 35px 0;
}

.mfa-metric-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--mf-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.mfa-metric-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* â”€â”€ DYNAMIC PORTFOLIO GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.mfa-portfolio-card {
  background: var(--mf-card-bg);
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  border: 1.5px solid var(--mf-border);
  box-shadow: var(--mf-shadow-sm);
  transition: var(--mf-transition);
  cursor: pointer;
}

.mfa-portfolio-card:hover {
  box-shadow: var(--mf-shadow-md);
  transform: translateY(-5px);
  border-color: var(--mf-blue);
}

.mfa-portfolio-thumb-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #E5E7EB;
}

.mfa-portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mfa-portfolio-card:hover .mfa-portfolio-thumb {
  transform: scale(1.05);
}

.mfa-portfolio-body {
  padding: 18px 20px;
}

.mfa-portfolio-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--mf-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mfa-portfolio-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--mf-text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.mfa-portfolio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--mf-muted);
}

/* â”€â”€ LIGHTBOX MODAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mfa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,18,30,0.88);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--mf-transition);
}

.mfa-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mfa-modal-box {
  background: #ffffff;
  border-radius: var(--mf-radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  transform: scale(0.92);
  transition: var(--mf-transition);
}

.mfa-modal-overlay.active .mfa-modal-box {
  transform: scale(1);
}

.mfa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--mf-transition);
  z-index: 10;
}
.mfa-modal-close:hover {
  background: #e11d48;
  color: #ffffff;
}

/* â”€â”€ RESPONSIVE STYLES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 992px) {
  .mfa-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mfa-hero-title {
    font-size: 30px;
  }
  .mfa-tab-content.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mfa-section {
    padding: 48px 0;
  }
  .mfa-hero {
    padding: 55px 0 40px;
  }
  .mfa-hero-title {
    font-size: 24px;
  }
  .mfa-portfolio-grid {
    grid-template-columns: 1fr;
  }
}