/* =========================================================
   Masti Starz — Site Chrome (Header + Footer)
   Ported directly from the approved static HTML build's
   css/style.css so the rendered output is pixel-identical.
   Loaded via a normal wp_enqueue_style() call — independent
   of Elementor's per-post CSS file generation, which is what
   was causing pages to render unstyled.
   ========================================================= */

:root {
  --msz-navy-950: #0B1220;
  --msz-navy-900: #0F1B2E;
  --msz-navy-800: #16243B;
  --msz-navy-700: #203355;
  --msz-red-600: #E1263A;
  --msz-red-700: #B81C2C;
  --msz-gold-500: #C9A24B;
  --msz-gold-300: #E4C97A;
  --msz-white: #F5F7FA;
  --msz-slate-400: #7C8AA3;
  --msz-slate-600: #4C5A73;
  --msz-line: rgba(245, 247, 250, 0.10);
  --msz-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --msz-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --msz-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --msz-container-w: 1240px;
  --msz-header-h: 84px;
  --msz-ticker-h: 40px;
  --msz-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.msz-container-inner {
  width: 100%;
  max-width: var(--msz-container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.msz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.75em;
  font-family: var(--msz-font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--msz-ease), background 0.25s var(--msz-ease), border-color 0.25s var(--msz-ease), color .25s var(--msz-ease);
}
.msz-btn:hover { transform: translateY(-2px); }
.msz-btn-primary { background: var(--msz-red-600); color: var(--msz-white); }
.msz-btn-primary:hover { background: var(--msz-red-700); color: var(--msz-white); }
.msz-btn-outline { background: transparent; border-color: var(--msz-line); color: var(--msz-white); }
.msz-btn-outline:hover { border-color: var(--msz-gold-500); color: var(--msz-gold-300); }
.msz-btn--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: msz-pulse-dot 1.6s infinite;
}
@keyframes msz-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* -----------------------------
   Header
------------------------------ */
.msz-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--msz-line);
  transition: background 0.3s var(--msz-ease), box-shadow 0.3s var(--msz-ease);
  font-family: var(--msz-font-body);
}
.msz-site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.97);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.msz-news-ticker {
  height: var(--msz-ticker-h);
  background: var(--msz-red-600);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.msz-news-ticker__label {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: 24px;
  background: var(--msz-navy-950);
  font-family: var(--msz-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--msz-gold-300);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  padding-right: 40px;
}
.msz-news-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: msz-ticker-scroll 32s linear infinite;
}
.msz-news-ticker__track span {
  padding-inline: 40px;
  font-family: var(--msz-font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msz-white);
}
@keyframes msz-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.msz-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--msz-header-h);
  gap: 24px;
}
.msz-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.msz-brand__logo { height: 40px; width: auto; display: block; }
.msz-brand__name {
  font-family: var(--msz-font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--msz-white);
}
.msz-brand__name span { color: var(--msz-red-600); }

.msz-nav-menu { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.msz-nav-menu a {
  font-family: var(--msz-font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--msz-slate-400);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--msz-ease), border-color 0.2s var(--msz-ease);
}
.msz-nav-menu a:hover,
.msz-nav-menu a.is-active { color: var(--msz-white); border-color: var(--msz-red-600); }

.msz-header-actions { display: flex; align-items: center; gap: 1rem; }

/* -----------------------------
   Dropdown submenus
------------------------------ */
.msz-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.msz-nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.msz-caret {
  font-size: 0.7em;
  transition: transform 0.2s var(--msz-ease);
}
.msz-nav-item.is-open .msz-caret,
.msz-nav-item:hover .msz-caret {
  transform: rotate(180deg);
}

.msz-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  min-width: 220px;
  background: var(--msz-navy-900);
  border: 1px solid var(--msz-line);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--msz-ease), transform 0.2s var(--msz-ease), visibility 0.2s;
  z-index: 200;
}
.msz-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--msz-slate-400);
  font-family: var(--msz-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
  transition: color 0.15s var(--msz-ease), background 0.15s var(--msz-ease);
}
.msz-dropdown a:hover {
  color: var(--msz-white);
  background: var(--msz-navy-800);
}

/* Desktop: reveal on hover */
@media (min-width: 861px) {
  .msz-nav-item:hover .msz-dropdown,
  .msz-nav-item.is-open .msz-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile: tap-to-expand instead of hover, dropdown becomes inline */
@media (max-width: 860px) {
  .msz-nav-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
  .msz-dropdown {
    position: static;
    margin-top: 8px;
    margin-left: 12px;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.25s var(--msz-ease);
  }
  .msz-nav-item.is-open .msz-dropdown {
    max-height: 400px;
  }
  .msz-dropdown a { padding: 8px 0; }
}

.msz-nav-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.5rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.msz-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--msz-white) !important;
  display: block;
  border: none;
}

/* Ticker overflow safeguard — prevents the scrolling marquee text from
   pushing the page width outward. Scoped to the ticker only (not the
   whole header) so it can't clip the dropdown panel below it. */
.msz-news-ticker {
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 860px) {
  .msz-nav-menu, .msz-header-actions .msz-btn-outline { display: none; }
  .msz-nav-toggle { display: flex !important; }
  body.msz-nav-open .msz-nav-menu {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--msz-navy-900);
    border-bottom: 1px solid var(--msz-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 1rem;
    z-index: 99;
  }
}

/* -----------------------------
   Footer
------------------------------ */
.msz-site-footer {
  background: var(--msz-navy-900);
  border-top: 1px solid var(--msz-line);
  padding-block: 96px 24px;
  font-family: var(--msz-font-body);
}
.msz-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--msz-line);
}
.msz-footer-col h4 {
  font-family: var(--msz-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--msz-gold-500);
  margin: 0 0 24px;
}
.msz-footer-col p { color: var(--msz-slate-400); font-size: 0.875rem; margin: 0 0 16px; line-height: 1.6; }
.msz-footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.msz-footer-col ul li { color: var(--msz-slate-400); font-size: 0.875rem; line-height: 1.5; }
.msz-footer-col ul a { color: var(--msz-slate-400); font-size: 0.875rem; text-decoration: none; transition: color .2s var(--msz-ease); }
.msz-footer-col ul a:hover { color: var(--msz-white); }
.msz-footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 24px; text-decoration: none; }
.msz-footer-brand img { height: 32px; display: block; }
.msz-footer-brand span { font-family: var(--msz-font-display); font-size: 1.25rem; text-transform: uppercase; color: var(--msz-white); }

.msz-social-icons { display: flex; gap: 0.6rem; margin-top: 8px; }
.msz-social-icons a {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  border-radius: 50% !important;
  border: 1px solid var(--msz-line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem;
  color: var(--msz-white) !important;
  text-decoration: none;
  background: transparent !important;
  transition: border-color .2s var(--msz-ease), color .2s var(--msz-ease), background .2s var(--msz-ease);
}
/* Covers both possible Elementor icon render paths: font-icon <i> tags
   (color) and inline <svg> (fill) — whichever one is actually used, this
   guarantees the icon glyph itself inherits the intended white/gold color
   instead of defaulting to black. */
.msz-social-icons a i,
.msz-social-icons a svg {
  color: inherit !important;
  fill: currentColor !important;
  width: 16px;
  height: 16px;
}
.msz-social-icons a:hover {
  border-color: var(--msz-gold-500) !important;
  color: var(--msz-gold-300) !important;
}

.msz-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: var(--msz-slate-600);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.msz-footer-bottom a { color: var(--msz-slate-400); text-decoration: none; }
.msz-footer-bottom a:hover { color: var(--msz-white); }
.msz-footer-legal { display: flex; gap: 0.5em; list-style: none; margin: 0; padding: 0; }

@media (max-width: 1080px) {
  .msz-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .msz-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .msz-footer-bottom { flex-direction: column; align-items: flex-start; }
}
