/*
Theme Name: MS Equity
Theme URI: https://msequity.org
Author: MS Group
Author URI: https://ms-group.co
Description: MS Equity — official WordPress theme. MS Group corporate identity. Navy, gold, Playfair Display & Outfit typefaces.
Version: 2.1.0
License: Proprietary
Text Domain: ms-equity
*/

/* ── CSS VARIABLES ───────────────────────────────── */
:root {
  --navy:      #0d1b2e;
  --navy-dark: #07111c;
  --navy-mid:  #111e30;
  --gold:      #C9A84C;
  --gold-lt:   #e0c060;
  --white:     #ffffff;
  --muted:     #8899aa;
  --off-white: #ccd5e0;
  --head: 'Playfair Display', Georgia, serif;
  --body: 'Outfit', Arial, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

/* ── HARD RESET — override WordPress defaults ────── */
*, *::before, *::after { box-sizing: border-box !important; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body) !important;
  color: var(--off-white) !important;
  background: var(--navy-dark) !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none !important; transition: color .25s; }
a:hover { color: var(--gold-lt); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--head) !important;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

/* ── NAV ─────────────────────────────────────────── */
#site-nav, nav#site-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 60px !important;
  border-bottom: 1px solid rgba(201,168,76,.2) !important;
  position: sticky !important;
  top: 0 !important;
  background: var(--navy) !important;
  z-index: 1000 !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  width: 100% !important;
}
/* PNG logo — transparent, Good Times font, gold on transparent */
.nav-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.nav-logo-img {
  display: block !important;
  height: 44px !important;   /* fits nav with 18px top/bottom padding */
  width: auto !important;
  max-width: 100% !important;
}
/* Legacy text fallback — hidden */
.nav-logo-text { display: none !important; }
.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.nav-links a {
  color: #aab !important;
  text-decoration: none !important;
  margin-left: 28px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}
.nav-links a:hover { color: var(--gold) !important; }
a.nav-cta, .nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-left: 20px !important;
}
a.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: all .3s; }
.nav-mobile-open .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ────────────────────────────────────────── */
.hero { padding: 110px 60px 90px; background: var(--navy-dark); }
.hero-tag { color: var(--gold); font-family: var(--mono); font-size: 11px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(28px,4.5vw,48px); font-weight: 300; line-height: 1.25; color: var(--white); margin-bottom: 28px; max-width: 720px; }
.hero h1 strong { color: var(--gold); font-weight: 600; }
.hero-intro { font-size: 15px; color: var(--muted); line-height: 1.9; max-width: 680px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-gold { display: inline-block; background: var(--gold); color: var(--navy) !important; padding: 13px 32px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.btn-gold:hover { background: var(--gold-lt); color: var(--navy) !important; }
.btn-outline { display: inline-block; border: 1px solid var(--gold); color: var(--gold) !important; padding: 13px 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.btn-outline:hover { background: var(--gold); color: var(--navy) !important; }
.btn-dark { display: inline-block; background: var(--navy); color: var(--gold) !important; padding: 13px 32px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

/* ── STATS ───────────────────────────────────────── */
.stats { display: flex; border-top: 2px solid var(--gold); border-bottom: 1px solid rgba(201,168,76,.2); margin: 0 60px; background: var(--navy); }
.stat { flex: 1; padding: 40px 32px; border-right: 1px solid rgba(201,168,76,.12); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--head); font-size: clamp(28px,3vw,38px); font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: 80px 60px; background: var(--navy); }
.section.alt { background: var(--navy-dark); }
.section-tag { color: var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(24px,3vw,32px); font-weight: 300; color: var(--white); margin-bottom: 14px; }
.section-intro { font-size: 14px; color: var(--muted); line-height: 1.9; max-width: 700px; margin-bottom: 48px; }

/* ── VISION ──────────────────────────────────────── */
.vision-box { background: var(--navy-mid); border-left: 3px solid var(--gold); padding: 32px 40px; max-width: 820px; }
.vision-box p { font-size: 15px; color: #ccd; line-height: 1.9; font-style: italic; }

/* ── VALUES ──────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.value-card { background: var(--navy-mid); padding: 32px 28px; border-top: 2px solid var(--gold); }
.value-card h3 { font-family: var(--mono) !important; font-size: 13px; color: var(--gold); margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ── FOCUS AREAS ─────────────────────────────────── */
.focus-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.focus-item { background: var(--navy-mid); padding: 28px 32px; display: flex; gap: 20px; align-items: flex-start; }
.focus-icon { width: 36px; height: 36px; min-width: 36px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; color: var(--navy); margin-top: 2px; }
.focus-item h3 { font-family: var(--mono) !important; font-size: 13px; color: var(--gold); margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.focus-item p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ── PROJECTS ────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.project-card { background: var(--navy-mid); padding: 32px 28px; border-top: 2px solid rgba(201,168,76,.4); }
.project-sector { font-family: var(--mono); font-size: 9px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; opacity: .8; }
.project-card h3 { font-size: 14px !important; color: var(--white); margin-bottom: 12px; font-weight: 600; letter-spacing: .5px; line-height: 1.4; }
.project-card p { font-size: 12px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.project-status { display: inline-block; font-family: var(--mono); font-size: 9px; color: var(--navy); background: var(--gold); padding: 4px 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: bold; }

/* ── WHY INVEST ──────────────────────────────────── */
.invest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.invest-card { background: var(--navy-dark); border: 1px solid rgba(201,168,76,.25); padding: 36px 30px; }
.invest-card h3 { font-family: var(--mono) !important; font-size: 14px; color: var(--gold); margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.invest-card p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }

/* ── TEAM ────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.team-card { background: var(--navy-mid); border: 1px solid rgba(201,168,76,.18); border-top: 3px solid var(--gold); padding: 32px 28px; transition: transform .3s,box-shadow .3s; display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.team-card.featured { box-shadow: 0 0 0 1px rgba(201,168,76,.25); }
.team-name { font-family: var(--head) !important; font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.team-role { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.team-divider { width: 36px; height: 1px; background: rgba(201,168,76,.35); margin-bottom: 16px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 18px; flex: 1; }
.team-contact a { font-family: var(--mono); font-size: 11px; color: var(--gold) !important; }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-section { background: var(--gold); padding: 70px 60px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-section h2 { font-size: clamp(20px,2.5vw,30px); font-weight: 600; color: var(--navy) !important; max-width: 560px; line-height: 1.3; }

/* ── FOOTER ──────────────────────────────────────── */
hr.gold { border: none; border-top: 1px solid rgba(201,168,76,.2); margin: 0 60px; }
footer, #colophon {
  padding: 44px 60px !important;
  border-top: 1px solid rgba(201,168,76,.15) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: var(--navy) !important;
}
.footer-logo-text { font-family: var(--head) !important; font-size: 1.3rem; color: var(--gold) !important; letter-spacing: .08em; }
.footer-logo-img { display: block !important; height: 38px !important; width: auto !important; max-width: 100% !important; opacity: 0.85; transition: opacity .2s; }
.footer-logo-img:hover { opacity: 1; }
.footer-tag { font-family: var(--mono); font-size: 11px; color: #8899aa; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.footer-copy { font-size: 11px; color: #667788; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  #site-nav { padding: 18px 32px !important; }
  .nav-logo-img { height: 36px !important; }
  .hero, .section, .cta-section { padding-left: 32px !important; padding-right: 32px !important; }
  .stats { margin: 0 32px; }
  hr.gold { margin: 0 32px; }
  footer, #colophon { padding: 40px 32px !important; }
  .values-grid, .projects-grid, .invest-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #site-nav { padding: 16px 20px !important; }
  .nav-logo-img { height: 30px !important; }
  .nav-links { display: none !important; flex-direction: column !important; width: 100%; padding: 16px 0 8px; border-top: 1px solid rgba(201,168,76,.15); margin-top: 12px; }
  .nav-links.open { display: flex !important; }
  .nav-links a { margin-left: 0 !important; padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,.08); }
  a.nav-cta { display: none !important; }
  a.nav-cta.open { display: inline-block !important; margin: 12px 0 4px; }
  .nav-hamburger { display: flex !important; }
  .hero { padding: 80px 20px 56px !important; }
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .stats { flex-direction: column; margin: 0; }
  .stat { border-right: none; border-bottom: 1px solid rgba(201,168,76,.12); padding: 28px 20px; }
  .stat:last-child { border-bottom: none; }
  .section { padding: 52px 20px !important; }
  .values-grid, .focus-grid, .invest-grid, .projects-grid, .team-grid { grid-template-columns: 1fr; }
  .cta-section { flex-direction: column; align-items: flex-start; padding: 48px 20px !important; }
  .cta-section h2 { font-size: 22px; }
  footer, #colophon { flex-direction: column !important; text-align: center; gap: 20px; padding: 36px 20px !important; }
  hr.gold { margin: 0; }
}

/* ════════════════════════════════════════════════════════════════════ */
/*  v2.1.0 — Narrow hero (matches MS GROUP v2.4.10 treatment),         */
/*           full-width looping video directly under the hero.         */
/* ════════════════════════════════════════════════════════════════════ */

/* Override: constrain hero content to a centred, narrower column.
   Previously the hero used 60px side padding and let h1/intro flow at
   max-widths of 720/680. We now wrap everything in .hero-inner with
   a max-width matching the MS GROUP treatment and centre it. */
.hero {
  padding: 110px 24px 90px;     /* tighter side padding */
}
.hero-inner {
  max-width: 1280px;            /* 80rem — matches MS GROUP v2.4.10 */
  margin: 0 auto;
}
.hero-inner h1 {
  max-width: 960px;             /* keep headline readable on widescreens */
}
.hero-inner .hero-intro {
  max-width: 920px;             /* slightly wider than the original 680 */
}

/* ─── Hero video section (full width, native aspect, no crop) ──────── */
.hero-video-section {
  background: #000;
  padding: 0 0 24px;
}
.hero-video-wrap {
  width: 100%;
  max-width: 1600px;            /* cap on huge monitors */
  margin: 0 auto;
  line-height: 0;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;                 /* native aspect — uncropped */
  background: #000;
}

/* Mobile — same single-stack layout, tighter padding */
@media (max-width: 900px) {
  .hero { padding: 90px 20px 70px; }
}
@media (max-width: 600px) {
  .hero { padding: 70px 16px 56px; }
  .hero-video-section { padding-bottom: 16px; }
}
