/*
 * Majmr homepage sections (mj-*). Loaded after majmr-theme.css.
 * Clean-display rules: one H1, short copy, generous whitespace, no decoration,
 * same standards in light and dark mode. Surfaces and text colors come from the
 * --mj-* tokens below, which switch with the template's [data-theme].
 * Photo-backed bands (hero, stats, vision, CTA) and the partners strip stay dark in both modes.
 * Corners stay nearly square to echo the geometry of the Majmr logo.
 */
:root {
  --mj-tech: #7C5CD6;
  --mj-marketing: #E5484D;
  --mj-events: #0E8A80;
  --mj-dark: #231F20;
  --mj-darker: #1A1718;
  --mj-yellow: #FAB838;

  /* dark mode (template default) */
  --mj-bg: #231F20;
  --mj-bg-alt: #1A1718;
  --mj-surface: #2E292A;
  --mj-text: #FFFFFF;
  --mj-text-muted: #B3AFAC;
  --mj-border: rgba(255, 255, 255, 0.12);
  --mj-label: var(--mj-yellow);

  --mj-space: 140px;
  --mj-radius: 4px;
  --mj-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-theme="light"] {
  --mj-bg: #FFFFFF;
  --mj-bg-alt: #F3F3F2;
  --mj-surface: #FFFFFF;
  --mj-text: #231F20;
  --mj-text-muted: #5E5856;
  --mj-border: rgba(35, 31, 32, 0.14);
  --mj-label: #5E5856; /* yellow is too light for text on white */
}
@media (max-width: 991px) { :root { --mj-space: 90px; } }

/* template extras that add noise */
.mt-cursor { display: none !important; }

/* ---------- sector color: accent follows the sector in focus (see majmr-home.js) ---------- */
:root { --mj-accent: var(--mj-yellow); --mj-accent-ink: var(--mj-dark); }
html[data-sector="tech"] { --mj-accent: var(--mj-tech); --mj-accent-ink: #fff; }
html[data-sector="marketing"] { --mj-accent: var(--mj-marketing); --mj-accent-ink: #fff; }
html[data-sector="events"] { --mj-accent: var(--mj-events); --mj-accent-ink: #fff; }
.mj-header-btn { background-color: var(--mj-accent) !important; color: var(--mj-accent-ink) !important; transition: background-color 0.5s ease, color 0.5s ease; }
.mj-header-btn:hover { color: #fff !important; }
#scroll-percentage { --rr-color-theme-primary: var(--mj-accent); }
::selection { background: var(--mj-accent); color: var(--mj-accent-ink); }
/* thin line across the top of the screen, visible only while a sector is in focus */
.mj-sector-line {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none;
  background: var(--mj-accent); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.6s var(--mj-ease), background-color 0.5s ease;
}
html[data-sector] .mj-sector-line { transform: scaleX(1); }

/* ---------- loader: Majmr incense burner (mabkhara) with a glowing ember and rising smoke ---------- */
#preloader { background-color: var(--mj-darker); display: grid; place-items: center; }
/* the burner sits at 25% of the image width (smoke drifts right), so shift it onto the screen center */
.mj-loader-art { position: relative; width: 230px; direction: ltr; transform: translateX(25%); }
.mj-loader-art img { display: block; width: 100%; height: auto; }
.mj-ember {
  position: absolute; left: 25%; top: 62.8%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 184, 56, 0.75) 0%, rgba(250, 184, 56, 0.25) 35%, rgba(250, 184, 56, 0) 70%);
  mix-blend-mode: screen; animation: mj-ember 1.8s ease-in-out infinite;
}
.mj-smoke { position: absolute; left: 26.5%; top: 47%; width: 0; height: 0; }
.mj-smoke i {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 227, 225, 0.4), rgba(230, 227, 225, 0) 70%);
  filter: blur(7px); opacity: 0; animation: mj-smoke 3s ease-out infinite;
}
.mj-smoke i:nth-child(2) { animation-delay: 1s; }
.mj-smoke i:nth-child(3) { animation-delay: 2s; }
@keyframes mj-ember { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes mj-smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(30px, -110px) scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .mj-ember, .mj-smoke i { animation: none; } .mj-smoke { display: none; } }

/* ---------- scroll reveal (replays on every pass; see majmr-home.js) ---------- */
.mj-reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s var(--mj-ease), transform 0.8s var(--mj-ease);
  transition-delay: var(--mj-delay, 0ms);
}
.mj-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mj-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- shared ---------- */
.mj-section { padding: var(--mj-space) 0; position: relative; overflow: hidden; background: var(--mj-bg); color: var(--mj-text-muted); }
.mj-alt { background: var(--mj-bg-alt); }
.mj-section p { color: var(--mj-text-muted); }
.mj-section .mj-title { color: var(--mj-text); }
.mj-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.25; font-weight: 700; margin: 0; }
.mj-label { display: block; color: var(--mj-label); font-size: 16px; font-weight: 600; margin-bottom: 14px; }
/* section head: title on the start side, supporting line on the end side */
.mj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 60px; flex-wrap: wrap; margin-bottom: 64px; }
.mj-head-text { max-width: 420px; font-size: 18px; line-height: 1.8; margin: 0; }

/* ---------- header ---------- */
.header .header-right { display: flex; align-items: center; gap: 20px; }
.mj-header-btn { padding: 12px 26px !important; font-size: 15px; }
@media (max-width: 991px) { .mj-header-btn { display: none !important; } }

/* Pages that open on a dark full-bleed hero (home, sectors): header floats over it and stays light until it turns sticky */
.mj-overlay-header .header:not(.fixed) { position: absolute; top: 0; left: 0; right: 0; z-index: 99; background: transparent; }
.mj-overlay-header .header:not(.fixed) .header-logo .logo-dark { display: block !important; }
.mj-overlay-header .header:not(.fixed) .header-logo .logo-light { display: none !important; }
.mj-overlay-header .header:not(.fixed) .header-menu-wrap > .mobile-menu-items > ul > li > a { color: #fff; }
.mj-overlay-header .header:not(.fixed) .header-menu-wrap > .mobile-menu-items > ul > li > a:hover,
.mj-overlay-header .header:not(.fixed) .header-menu-wrap > .mobile-menu-items > ul > li.active > a { color: var(--mj-yellow); }
.mj-overlay-header .header:not(.fixed) .sidebar-trigger { border-color: rgba(255, 255, 255, 0.35) !important; }

/* Side menu: the close button sat on top of the logo (both on the right in RTL) */
.sidebar-area .sidebar-trigger.close { right: auto; left: 30px; }

/* ---------- hero ---------- */
.mj-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: var(--mj-darker) url(../img/majmr/about-sectors.jpg) center/cover no-repeat;
  padding: 160px 0 120px;
}
/* Cover the section with the 16:9 video (container units size it to the hero, not the viewport) */
.mj-hero-video { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; }
.mj-hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%); border: 0;
}
.mj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(26, 23, 24, 0.9) 0%, rgba(26, 23, 24, 0.55) 55%, rgba(26, 23, 24, 0.3) 100%);
}
.mj-hero .container { position: relative; z-index: 2; }
.mj-hero-content { max-width: 640px; }
.mj-eyebrow { display: block; color: var(--mj-yellow); font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.mj-hero .mj-hero-title { color: #fff; font-size: clamp(52px, 8vw, 104px); line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
.mj-hero .mj-hero-text { color: #E6E3E1; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.8; max-width: 520px; margin-bottom: 44px; }
.mj-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.mj-play-btn { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; font-size: 17px; }
.mj-play-btn:hover { color: var(--mj-yellow); }
.mj-play-icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45); font-size: 14px; transition: all 0.3s ease;
}
.mj-play-btn:hover .mj-play-icon { background: var(--mj-yellow); border-color: var(--mj-yellow); color: var(--mj-dark); }

/* ---------- about ---------- */
.mj-about-img { border-radius: var(--mj-radius); overflow: hidden; }
.mj-about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mj-about-content .mj-title { margin-bottom: 28px; }
.mj-about-content p { font-size: 17px; line-height: 1.9; margin-bottom: 16px; }
.mj-about-content .mj-lead { color: var(--mj-text); font-size: 22px; font-weight: 600; }
/* the template styles blockquote as a dark two-column grid; reset it to a simple stacked quote */
.mj-section .mj-quote {
  display: block; grid-template-columns: none; background: none; border: 0; border-radius: 0;
  margin: 36px 0 0; padding: 4px 22px 4px 0; border-right: 2px solid var(--mj-yellow);
}
.mj-quote p { color: var(--mj-text) !important; font-size: 19px; line-height: 1.7; margin-bottom: 10px !important; }
.mj-quote cite { display: block; color: var(--mj-text-muted); font-style: normal; font-size: 15px; }

/* ---------- stats ---------- */
.mj-stats { position: relative; padding: var(--mj-space) 0; background-size: cover; background-position: center; }
.mj-stats-overlay { position: absolute; inset: 0; background: rgba(26, 23, 24, 0.82); }
.mj-stats .container { position: relative; z-index: 1; }
.mj-stats .mj-stats-title { color: #fff; margin-bottom: 64px; }
.mj-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.mj-stat { padding: 8px 0 8px 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.mj-stat + .mj-stat { padding-right: 24px; }
.mj-stat:last-child { border-left: 0; }
.mj-stat-num { display: flex; align-items: baseline; direction: ltr; justify-content: flex-end; color: var(--mj-yellow); font-size: clamp(44px, 5.5vw, 72px); font-weight: 300; line-height: 1; }
.mj-stat-num .odometer { font-family: inherit; line-height: 1; }
.mj-suffix { font-size: 0.8em; }
.mj-stat-label { display: block; color: #fff; font-size: 18px; margin-top: 14px; }
@media (max-width: 991px) {
  .mj-stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .mj-stat:nth-child(3) { border-left: 0; }
  .mj-stat:nth-child(4) { padding-right: 0; }
}
@media (max-width: 575px) {
  .mj-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mj-stat, .mj-stat + .mj-stat { border-left: 0; padding: 0; }
}

/* ---------- sectors: full-bleed panels; the hovered one widens ---------- */
.mj-panels { display: flex; gap: 12px; height: 580px; }
.mj-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--mj-radius);
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  transition: flex-grow 0.7s var(--mj-ease), opacity 0.8s var(--mj-ease), transform 0.8s var(--mj-ease);
}
.mj-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--mj-ease); }
.mj-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(26, 23, 24, 0.92) 0%, rgba(26, 23, 24, 0.35) 55%, rgba(26, 23, 24, 0.1) 100%); }
.mj-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.mj-panel-body { padding: 36px; width: 100%; }
.mj-panel .mj-panel-title { color: #fff; font-size: 28px; margin-bottom: 12px; }
.mj-panel-text { display: block; color: #E6E3E1; font-size: 16px; line-height: 1.8; max-width: 380px; margin-bottom: 26px; }
.mj-panel-btn {
  display: inline-block; padding: 12px 26px; border: 1px solid rgba(255, 255, 255, 0.6); color: #fff;
  font-size: 15px; font-weight: 700; transition: background-color 0.35s ease, border-color 0.35s ease;
}
.mj-panel:hover, .mj-panel:focus-visible { color: #fff; }
.mj-panel:hover img, .mj-panel:focus-visible img { transform: scale(1.04); }
.mj-panel:hover .mj-panel-btn, .mj-panel:focus-visible .mj-panel-btn { background: var(--c); border-color: var(--c); }
@media (min-width: 992px) {
  .mj-panels:hover .mj-panel { flex-grow: 0.8; }
  .mj-panels .mj-panel:hover { flex-grow: 1.6; }
}
@media (max-width: 991px) {
  .mj-panels { flex-direction: column; height: auto; }
  .mj-panel { min-height: 380px; }
}

/* ---------- vision & mission ---------- */
.mj-vm { display: grid; grid-template-columns: 1fr 1fr; }
.mj-vm-item { position: relative; padding: var(--mj-space) 8%; min-height: 520px; display: flex; align-items: center; }
.mj-vm-vision { background-size: cover; background-position: center; }
.mj-vm-vision::before { content: ""; position: absolute; inset: 0; background: rgba(26, 23, 24, 0.78); }
.mj-vm-mission { background: var(--mj-darker); }
.mj-vm-inner { position: relative; z-index: 1; max-width: 520px; }
.mj-vm .mj-vm-label { display: block; color: var(--mj-yellow); font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.mj-vm .mj-vm-title { color: #fff; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.5; margin-bottom: 20px; }
.mj-vm-inner p { color: #D9D5D2; font-size: 17px; line-height: 1.9; margin: 0; }
@media (max-width: 991px) {
  .mj-vm { grid-template-columns: 1fr; }
  .mj-vm-item { min-height: 0; padding: var(--mj-space) 24px; }
}

/* ---------- values: editorial list ---------- */
.mj-values-side .mj-title { margin-bottom: 40px; }
.mj-values-img { border-radius: var(--mj-radius); overflow: hidden; }
.mj-values-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mj-values-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--mj-border); }
.mj-values-list li {
  display: grid; grid-template-columns: 200px 1fr; gap: 12px 40px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--mj-border);
}
.mj-values-list h3 { color: var(--mj-text); font-size: 30px; margin: 0; transition: color 0.3s ease; }
.mj-values-list p { font-size: 17px; line-height: 1.8; margin: 0; }
.mj-values-list li:hover h3 { color: var(--mj-yellow); }
[data-theme="light"] .mj-values-list li:hover h3 { color: var(--mj-text-muted); }
@media (max-width: 575px) { .mj-values-list li { grid-template-columns: 1fr; padding: 26px 0; } }

/* ---------- methodology ---------- */
.mj-head-tabs { align-items: center; }
.mj-tabs { gap: 10px; border: 0; }
.mj-tabs .nav-link {
  border: 1px solid var(--mj-border); border-radius: var(--mj-radius); padding: 12px 24px;
  color: var(--mj-text); background: transparent; font-size: 17px; font-weight: 700; transition: all 0.3s ease;
}
.mj-tabs .nav-link:hover { border-color: var(--c); }
.mj-tabs .nav-link.active { background: var(--c); border-color: var(--c); color: #fff; }
.mj-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mj-steps-4 { grid-template-columns: repeat(4, 1fr); }
.mj-steps li {
  position: relative; background: var(--mj-surface); border: 1px solid var(--mj-border); border-radius: var(--mj-radius);
  padding: 30px 24px 34px; transition: transform 0.4s var(--mj-ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
/* colored bar grows across the top edge on hover */
.mj-steps li::before {
  content: ""; position: absolute; top: -1px; right: -1px; height: 3px; width: 0; background: var(--c);
  transition: width 0.45s var(--mj-ease);
}
.mj-step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--c); color: var(--mj-text); font-size: 17px; font-weight: 700; margin-bottom: 22px;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.mj-steps h3 { color: var(--mj-text); font-size: 19px; margin-bottom: 8px; }
.mj-steps p { font-size: 15px; line-height: 1.8; margin: 0; }
.mj-steps li:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.mj-steps li:hover::before { width: calc(100% + 2px); }
.mj-steps li:hover .mj-step-num { background: var(--c); color: #fff; }
@media (max-width: 1199px) { .mj-steps, .mj-steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .mj-steps, .mj-steps-4 { grid-template-columns: 1fr; } }

/* ---------- partners (dark strip in both modes: logos are white) ---------- */
.mj-partners { background: var(--mj-darker); }
.mj-partners .mj-title { color: #fff; }
.mj-partners .mj-label { color: var(--mj-yellow); }
.mj-marquee { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mj-marquee-track { display: flex; width: max-content; animation: mj-marquee 60s linear infinite; }
.mj-marquee:hover .mj-marquee-track { animation-play-state: paused; }
.mj-marquee-list { display: flex; align-items: center; gap: 72px; list-style: none; margin: 0; padding: 0 36px; }
.mj-marquee-list li { flex: 0 0 auto; }
.mj-marquee-list img { height: 56px; width: auto; max-width: 200px; object-fit: contain; opacity: 0.7; transition: opacity 0.3s ease; }
.mj-marquee-list img:hover { opacity: 1; }
@keyframes mj-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mj-marquee { mask-image: none; }
  .mj-marquee-track { animation: none; width: auto; }
  .mj-marquee-list { flex-wrap: wrap; justify-content: center; gap: 40px 56px; }
  .mj-marquee-copy { display: none; }
}

/* ---------- CTA ---------- */
.mj-cta { position: relative; padding: var(--mj-space) 0; background-size: cover; background-position: center; }
.mj-cta-overlay { position: absolute; inset: 0; background: rgba(26, 23, 24, 0.8); }
.mj-cta .container { position: relative; z-index: 1; }
.mj-cta-content { max-width: 720px; }
.mj-cta .mj-cta-title { color: #fff; font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 20px; }
.mj-cta-content p { color: #E6E3E1; font-size: 19px; line-height: 1.8; margin-bottom: 40px; }
.mj-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.rr-primary-btn.transparent.mj-btn-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.rr-primary-btn.transparent.mj-btn-light:hover { color: var(--mj-dark); }
.mj-contact-list {
  list-style: none; padding: 28px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.mj-contact-list li { display: inline-flex; align-items: center; gap: 10px; }
.mj-contact-list i { color: var(--mj-yellow); }
.mj-contact-list a { color: #fff; font-size: 17px; }
.mj-contact-list a:hover { color: var(--mj-yellow); }

/* ---------- footer ---------- */
.mj-footer .footer-wrap { padding-top: 90px; padding-bottom: 60px; }
.mj-footer p { color: #B3AFAC; line-height: 1.9; }
/* plain text links: no template arrow icons */
.mj-footer .footer-widget.footer-col-2 .footer-list li a { padding-left: 0; padding-right: 0; }
.mj-footer .footer-widget.footer-col-2 .footer-list li a::before { display: none; }
.mj-footer .footer-list li a:hover { color: var(--mj-yellow); }
.mj-footer .social-list { justify-content: flex-end; }
@media (max-width: 767px) {
  .mj-footer .copyright-content p { text-align: center; }
  .mj-footer .social-list { justify-content: center; }
}
