/* Media Vision header, navigation and film-strip footer. */
:root {
  --c-page-width: 100%;
  --c-page-gutter: 12px;
  --chrome-header-top: clamp(36px, 8vh, 80px);
  --chrome-header-scrolled-top: 16px;
  --chrome-header-height: 78px;
}

.c-wrap {
  width: 100%;
  max-width: var(--c-page-width);
  margin: 0 auto;
  padding-inline: var(--c-page-gutter);
  position: relative;
  z-index: 2;
}

.site-header-slot {
  height: calc(var(--chrome-header-top) + var(--chrome-header-height));
  flex: 0 0 auto;
}

.c-header,
.c-footer {
  font-family: var(--brand-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--brand-text);
}

.c-header:lang(ar),
.c-footer:lang(ar) {
  font-family: var(--brand-arabic-font);
}

.c-header img,
.c-footer :is(img, svg) {
  display: block;
}

.c-header {
  position: fixed;
  top: var(--chrome-header-top);
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  pointer-events: none;
  transition: translate var(--brand-motion-quick) var(--brand-ease);
}

.c-header-inner {
  width: calc(100% - 2 * var(--c-page-gutter));
  max-width: calc(var(--c-page-width) - 2 * var(--c-page-gutter));
  min-height: var(--chrome-header-height);
  padding-inline: clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  pointer-events: auto;
  transition: background var(--brand-motion-quick) var(--brand-ease), border-color var(--brand-motion-quick) var(--brand-ease), box-shadow var(--brand-motion-quick) var(--brand-ease);
}

.c-header.is-scrolled {
  translate: 0 calc(var(--chrome-header-scrolled-top) - var(--chrome-header-top));
}

.c-header.is-scrolled .c-header-inner {
  background: rgba(32, 32, 38, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.c-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}

.c-brand-logo {
  width: clamp(184px, 15vw, 236px);
  height: auto;
}

.c-header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 24px;
}

.c-header-reseller {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 7px;
  background: #cf2e46;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--brand-motion-quick) var(--brand-ease);
}

.c-header-reseller:hover {
  background: #ab2036;
}

.c-header-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.c-header-signin {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: color var(--brand-motion-quick) var(--brand-ease);
  white-space: nowrap;
}

.c-header-signin:hover {
  color: var(--brand-text);
}

.c-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.c-mobile-toggle .icon-close { display: none; }
.c-mobile-toggle.open .icon-menu { display: none; }
.c-mobile-toggle.open .icon-close { display: block; }

.c-mobile-drawer {
  display: none;
  max-height: calc(100dvh - var(--chrome-header-top) - var(--chrome-header-height));
  overflow-y: auto;
  background: rgba(9, 11, 15, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brand-border);
  padding: 16px 24px 24px;
}

.c-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.c-mobile-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-text-soft);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.c-mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  min-width: 196px;
  padding: 0 32px;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition: background var(--brand-motion-quick) var(--brand-ease), transform var(--brand-motion-quick) var(--brand-ease), box-shadow var(--brand-motion-quick) var(--brand-ease);
  white-space: nowrap;
}

.c-btn-primary:hover {
  background: var(--brand-accent-hover);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.c-btn-dark svg {
  flex-shrink: 0;
}

.c-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 32px;
  background: var(--brand-deep);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--brand-motion-quick) var(--brand-ease), border-color var(--brand-motion-quick) var(--brand-ease), transform var(--brand-motion-quick) var(--brand-ease);
  white-space: nowrap;
}

.c-btn-dark:hover {
  background: var(--brand-panel);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {

  .c-mobile-drawer.open {
    animation: brand-enter var(--brand-motion-quick) var(--brand-ease);
  }
}
.c-footer {
  position: relative;
  background: var(--brand-band);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: clip;
}

.c-footer::before,
.c-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-repeat: repeat-x;
  background-size: 40px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Crect x='2' y='1' width='22' height='12' rx='3.5' fill='%230a0a0e'/%3E%3C/svg%3E");
}

.c-footer::before { top: 12px; }
.c-footer::after { bottom: 12px; }

.c-footer-frames {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  padding: 16px 0;
}

.c-footer-frames::before,
.c-footer-frames::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 260px;
  background: var(--brand-deep);
  border-radius: 26px;
  pointer-events: none;
}

.c-footer-frames::before {
  right: calc(100% + 24px);
}

.c-footer-frames::after {
  left: calc(100% + 24px);
}

.c-footer-frame {
  background: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 26px;
  min-width: 0;
  padding: 28px clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.c-footer-top-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-footer-brand {
  flex-shrink: 0;
  align-self: flex-start;
}

.c-footer-brand img {
  width: 156px;
  height: auto;
}

.c-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 12px 18px;
}

.c-footer-links-grid a {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
  transition: color var(--brand-motion-quick) var(--brand-ease);
}

.c-footer-links-grid a:hover {
  color: var(--brand-highlight);
}

.c-footer-links-grid a.is-accent-link {
  color: var(--brand-highlight);
  font-weight: 700;
}

.c-footer-bottom-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.c-footer-android {
  height: 18px;
  width: auto;
  margin-inline-end: 6px;
}

.c-footer-gplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: var(--brand-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background var(--brand-motion-quick) var(--brand-ease), border-color var(--brand-motion-quick) var(--brand-ease);
}

.c-footer-gplay img {
  height: 22px;
  width: auto;
}

.c-footer-gplay:hover {
  background: var(--brand-raised);
  border-color: rgba(255, 255, 255, 0.22);
}

.c-footer-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 24px;
  background: var(--brand-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--brand-motion-quick) var(--brand-ease), border-color var(--brand-motion-quick) var(--brand-ease);
}

.c-footer-download:hover {
  background: var(--brand-raised);
  border-color: rgba(255, 255, 255, 0.24);
}

.c-footer-contact-title {
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.c-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.c-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.c-contact-item > div {
  min-width: 0;
}

.c-contact-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-highlight);
  flex-shrink: 0;
}

.c-contact-item small {
  display: block;
  font-size: 12.5px;
  color: var(--brand-muted);
  margin-bottom: 2px;
}

.c-contact-item a {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}

.c-contact-item a:hover {
  color: var(--brand-highlight);
}

.c-footer-right-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-footer-copy-row {
  font-size: 13px;
  color: var(--brand-muted);
}

.c-footer-copy-row strong {
  color: #fff;
  font-weight: 800;
}

.c-footer-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--brand-muted);
  margin: 0;
}
@media (min-width: 576px) {
  :root {
    --c-page-width: 540px;
  }
}

@media (min-width: 768px) {
  :root {
    --c-page-width: 720px;
  }
}

@media (min-width: 992px) {
  :root {
    --c-page-width: 960px;
  }
}

@media (min-width: 1200px) {
  :root {
    --c-page-width: 1140px;
  }
}

@media (min-width: 1400px) {
  :root {
    --c-page-width: 1320px;
  }
}

@media (width < 992px) {
  .c-footer-frames {
    grid-template-columns: 1fr;
  }
  .c-footer-frames::before,
  .c-footer-frames::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --chrome-header-top: 34px;
    --chrome-header-scrolled-top: 10px;
    --chrome-header-height: 56px;
  }
  .c-header-inner {
    gap: 10px;
  }
  .c-brand-logo {
    width: clamp(118px, 34vw, 152px);
  }
  .c-header-right {
    gap: 12px;
  }
  .c-header-divider {
    display: block;
    height: 22px;
  }
  .c-header-signin {
    display: inline-block;
    font-size: 13px;
  }
  .c-mobile-toggle {
    display: inline-flex;
  }
  .c-mobile-drawer.open {
    display: block;
    pointer-events: auto;
  }
  .c-contact-row {
    grid-template-columns: 1fr;
  }
  .c-footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .c-footer {
    padding-bottom: 40px;
  }
}

@media (width < 576px) {
  .c-header-signin,
  .c-header-divider {
    display: none;
  }
  .c-footer-bottom-left {
    justify-content: center;
  }
}

@media (max-width: 410px) {
  .c-header-inner {
    padding-inline: 10px;
    gap: 6px;
  }
  .c-brand-logo {
    width: clamp(94px, 28vw, 122px);
  }
  .c-header-right {
    gap: 6px;
  }
}

@media (max-width: 768px) {
  :root:has(.c-header-reseller) {
    --chrome-header-height: 105px;
  }

  .c-header-inner:has(.c-header-reseller) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 44px 44px;
    align-content: center;
  }

  .c-header-right:has(.c-header-reseller) {
    display: contents;
  }

  .c-header-reseller {
    grid-area: 2 / 1 / 3 / 4;
  }

  .c-header-right:has(.c-header-reseller) :is(.c-header-signin, .c-header-divider) {
    display: none;
  }
}
