/* ==========================================================================
   OMMAC — Oman Martial Arts & Self Defence Committee
   Shared Design System CSS
   Built Elementor-friendly: markup mirrors Elementor's
   section > container > row > column > widget-wrap > widget structure,
   so sections can be rebuilt/edited in Elementor with matching classes.
   ========================================================================== */

/* -------------------- Google Fonts --------------------
   Loaded once with a <link> tag (WordPress: functions.php → ommac-fonts;
   static preview: each preview/*.html <head>). No @import here — it blocked
   rendering and downloaded the fonts a second time. */

/* -------------------- Design Tokens -------------------- */
:root {
  --c-gold: #FDCF07;
  --c-gold-dark: #DFB606;
  --c-gold-light: #FEE98F;
  --c-gold-pale: #FFF8DA;
  --c-black: #14120F;
  --c-black-soft: #1B1913;
  --c-white: #FFFFFF;
  --c-gray-50: #F7F6F4;
  --c-gray-100: #F1EFEC;
  --c-gray-300: #D9D6D0;
  --c-gray-500: #857F74;
  --c-gray-700: #4A473F;
  --c-text: #221F1A;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20,18,15,0.06);
  --shadow-md: 0 10px 30px rgba(20,18,15,0.10);
  --shadow-lg: 0 20px 50px rgba(20,18,15,0.16);

  --container: 1200px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--c-black); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* -------------------- Site Preloader -------------------- */
html.preloader-active,
html.preloader-active body { overflow: hidden; height: 100%; }
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  opacity: 1;
  transition: opacity 0.5s ease;
}
#site-preloader video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}
#site-preloader.is-hidden { opacity: 0; pointer-events: none; }
/* Failsafe: even if no script runs at all, the intro overlay fades out and
   stops blocking the page after 10s (main.js normally hides it within 6s,
   and an inline script in header.php has a 9s backup). */
#site-preloader { animation: ommac-preloader-failsafe 0.5s ease 10s forwards; }
@keyframes ommac-preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html.preloader-skip #site-preloader { display: none; }

/* Elementor-friendly structural aliases */
.elementor-section { position: relative; width: 100%; }
.elementor-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; }
.elementor-column { flex: 1; min-width: 0; }
.elementor-widget-wrap { width: 100%; }

.eyebrow {
  display: inline-block;
  color: var(--c-gold-dark);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* Section labels wrapped in a real <h2> for the heading outline: the wrapper
   takes on no styling of its own, so the label looks exactly as before. */
.ommac-heading-wrap { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; margin: 0; }
.eyebrow::after { content: ''; display: block; width: 46px; height: 3px; background: var(--c-gold); margin-top: 10px; border-radius: 2px; }
.eyebrow.center::after { margin-left: auto; margin-right: auto; }
.eyebrow.on-dark { color: var(--c-gold); }

.section-title { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.section-lead { color: var(--c-gray-700); font-size: 16px; max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--c-gold); color: var(--c-black); }
.btn-gold:hover { background: var(--c-black); color: var(--c-white); }
.btn-outline { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: var(--c-white); color: var(--c-black); }
.btn-dark { background: var(--c-black); color: var(--c-white); }
.btn-dark:hover { background: var(--c-gold); color: var(--c-black); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 11px 18px; font-size: 13px; }

/* Events hero "Register" CTA — same gold button family, but a subtle lift on
   hover instead of the color-swap other .btn-gold buttons use elsewhere. */
.btn-gold.hero-register-btn { border-radius: 10px; }

/* Premium page-end CTA panel (e.g. What We Do "Join Our Movement") — dark
   charcoal panel with a subtle warm gold glow, not a flat gold rectangle. */
.cta-join {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-black) 0%, var(--c-black-soft) 55%, #2a2013 100%);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin: 0 auto;
  padding: 45px 50px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-join::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(253, 207, 7,0.28), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(253, 207, 7,0.16), transparent 50%);
  pointer-events: none;
}
.cta-join-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.cta-join-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 36px);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 14px;
}
.cta-join-title span { color: var(--c-gold); }
.cta-join-text {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.btn-gold.cta-wide-btn {
  display: inline-flex;
  padding: 12px 24px;
  min-width: auto;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(253, 207, 7,0.35);
}
.btn-gold.cta-wide-btn:hover {
  background: var(--c-gold);
  color: var(--c-black);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(253, 207, 7,0.45);
}
@media (max-width: 640px) {
  .cta-join { padding: 30px 22px; }
}
.btn-gold.hero-register-btn:hover { background: var(--c-gold); color: var(--c-black); transform: translateY(-2px); }

/* -------------------- Top Ticker -------------------- */
.top-ticker {
  width: 100%;
  overflow: hidden;
  background: #FDCF07;
  color: #111;
  white-space: nowrap;
}

.top-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 20s linear infinite;
  will-change: transform;
}

.top-ticker-set {
  flex: 0 0 auto;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  padding: 8px 40px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}
.top-ticker-set span[dir="rtl"] { font-family: 'Noto Kufi Arabic', sans-serif; }

.ticker-dot {
  opacity: .7;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.top-ticker:hover .top-ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .top-ticker-track { animation: none; }
  .top-ticker { overflow-x: auto; }
}

/* -------------------- Header / Nav -------------------- */
.site-header {
  background: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
/* Mobile/tablet (≤1024px): unchanged from before — just a shadow once
   scrolled. The desktop-only floating-nav treatment (logos fading, white
   background disappearing, nav becoming the sole floating element) is
   added below, scoped to @media (min-width: 1025px) only — see that block
   for .site-header.is-scrolled there. */
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  /* minmax(0,1fr) — rather than plain 1fr — forces both side columns to stay
     truly equal width regardless of the two logo wrappers' own content width,
     so the centered nav capsule always sits exactly centered, never pushed
     off to one side. */
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
}
.site-header .header-inner .main-nav { justify-self: center; }
/* Desktop only: a wider header row + extra side padding gives both logo
   zones real breathing room. Mobile/tablet keep the original max-width and
   padding above (the ≤1024px block further down switches header-inner to
   flex for the hamburger layout, same as before this change). */
@media (min-width: 1025px) {
  .site-header .header-inner {
    max-width: 1500px;
    padding: 4px 32px;
    transition: padding 0.35s ease;
  }

  /* -------------------- Scroll-collapsing header (desktop only) --------------------
     .is-scrolled is toggled by main.js past ~100px of scroll. The header
     itself stays position:sticky (unchanged) and keeps its normal-flow
     height, so this only ever changes via smooth transitions — never an
     abrupt display:none — meaning the page never jumps. Because both logo
     columns keep reserving their grid space (only their opacity/transform
     change, not their layout), .main-nav stays exactly centered throughout
     via the same minmax(0,1fr) columns used at rest — no separate fixed
     positioning needed for it to "float" centered. */
  .site-header.is-scrolled {
    background: transparent;
    box-shadow: none;
  }
  .site-header.is-scrolled .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-logo-left,
  .header-logo-right {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .site-header.is-scrolled .header-logo-left,
  .site-header.is-scrolled .header-logo-right {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
  }

  /* Keep the existing glass look (background/blur/border/rim-light insets)
     exactly as-is; only strengthen the outer drop shadow so the capsule
     stays clearly visible once it's floating over hero images/content. */
  .site-header.is-scrolled .main-nav {
    box-shadow:
      0 10px 30px rgba(0,0,0,0.12),
      0 2px 8px rgba(0,0,0,0.06),
      inset 0 1px 1px rgba(255,255,255,0.95),
      inset 0 -1px 1px rgba(0,0,0,0.04);
  }
}

/* Equal-width left/right logo zones — each stretches to fill its grid
   column (both columns are forced equal by minmax(0,1fr) above), then
   aligns its logo to the outer edge. */
.header-logo-left,
.header-logo-right {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.header-logo-left { justify-content: flex-start; }
.header-logo-right { justify-content: flex-end; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* The ≤768px override for this lives further down, after the ≤1024px block —
   it must come after in source order so it actually wins at real phone
   widths (both blocks match there; equal specificity means later wins). */

/* Hero watermark icon */
.hero-watermark { position: absolute; opacity: .12; z-index: 1; pointer-events: none; }
.hero-watermark img { width: 100%; height: 100%; filter: brightness(1.4); }

.main-nav {
  display: flex;
  align-items: center;
  min-height: 62px;
  box-sizing: border-box;
  padding: 10px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(235,238,242,0.68));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(180, 185, 195, 0.35);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.10),
    0 2px 8px rgba(0,0,0,0.06),
    inset 0 1px 1px rgba(255,255,255,0.95),
    inset 0 -1px 1px rgba(0,0,0,0.04);
}
.main-nav ul { display: flex; align-items: center; gap: 36px; }
.main-nav a.nav-link {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--c-black);
  padding: 6px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  background: var(--c-gold);
  transition: width var(--transition);
  border-radius: 10px;
}
.main-nav li.current > a.nav-link::after,
.main-nav a.nav-link:hover::after { width: 100%; }
.main-nav li.current > a.nav-link { color: var(--c-black); }
.main-nav .caret { width: 10px; height: 10px; transition: transform var(--transition); }
.main-nav li.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}
.dropdown-wrap:hover .dropdown,
.dropdown-wrap.is-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; color: var(--c-text); transition: background var(--transition); }
.dropdown a:hover { background: var(--c-gray-50); color: var(--c-gold-dark); }

.header-cta { display: flex; align-items: center; gap: 18px; }
/* moc-logo.svg was replaced with a tightly-cropped version (no more baked-in
   empty margin around the artwork) — pixel-measured, it now fills ~94% of
   its own bounding box, essentially matching OMMAC's ~95%. That means a
   height close to .brand-logo's now genuinely produces a matching visible
   size, unlike the old file (see git history for that compensation). */
.header-partner-logo { height: 58px; width: auto; max-width: 100%; object-fit: contain; object-position: right center; flex-shrink: 0; }

/* -------------------- Language switch (English / العربية) --------------------
   WordPress only (preview HTML has no switch). Desktop: small pill next to the
   Ministry logo. ≤1024px: last item inside the mobile menu instead. */
.main-nav li.lang-switch { display: flex; align-items: center; }
/* Always "EN | عربي" in this order, on English and Arabic pages alike. */
.lang-switcher { direction: ltr; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1.5px solid var(--c-gold); border-radius: var(--radius-pill); white-space: nowrap; }
.lang-switch-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 11px;
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; line-height: 1.2;
  color: #5E5950; transition: background var(--transition), color var(--transition); /* 4.5:1+ on the glass bar */
}
.lang-switch-link[lang="ar"] { font-family: var(--font-arabic); font-size: 13px; }
.lang-switch-link:hover { color: var(--c-black); }
.lang-switch-link.is-current { background: var(--c-gold); color: var(--c-black); }
.lang-switch-link:focus-visible { outline: 2px solid var(--c-black); outline-offset: 2px; }
.lang-switch-sep { color: var(--c-gray-300); font-size: 12px; padding: 0 1px; user-select: none; }
/* Narrower desktops: the switcher adds one item to the glass bar, so tighten the
   spacing between items to keep the bar (and the logos beside it) the same size
   as before. 1321px+ is unchanged. Scoped with :has() so a nav without the
   switcher (the static preview) keeps its original spacing. */
@media (min-width: 1025px) and (max-width: 1320px) {
  .main-nav ul:has(> li.lang-switch) { gap: 24px; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .main-nav:has(li.lang-switch) { padding-left: 20px; padding-right: 20px; }
  .main-nav ul:has(> li.lang-switch) { gap: 15px; }
}
@media (max-width: 1024px) {
  /* Inside the mobile menu: last item, separated by a line; bigger tap targets. */
  .main-nav li.lang-switch { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--c-gray-100); }
  .lang-switch-link { min-height: 40px; min-width: 52px; font-size: 14px; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav-toggle span { height: 2.5px; background: var(--c-black); border-radius: 2px; transition: var(--transition); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  background: var(--c-black);
  color: var(--c-white);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero .elementor-container { display: flex; align-items: center; gap: 40px; width: 100%; padding-top: 60px; padding-bottom: 60px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 460px; position: relative; z-index: 3; }
.hero-media { flex: 1 1 440px; position: relative; z-index: 2; min-width: 280px; }
.hero-media img { border-radius: var(--radius-lg); width: 100%; height: 360px; object-fit: cover; box-shadow: var(--shadow-lg); }
/* Contact Us hero image — logo/graphic asset, must not be cropped like the
   photographic hero images on other pages. Scoped to this image only. */
.hero-media img.contact-media-img { width: 100%; height: 100%; object-fit: contain; }
.about-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; text-transform: uppercase; color: var(--c-white); line-height: 1.15; }
.hero-title .accent { color: var(--c-gold); }
.hero-sub { color: var(--c-gold); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.hero-underline { width: 60px; height: 4px; background: var(--c-gold); border-radius: 3px; margin: 18px 0; }
.hero-text { color: rgba(255,255,255,0.78); max-width: 640px; margin-bottom: 30px; font-size: 15.5px; }
.hero-bg-glow { position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(253, 207, 7,0.18), transparent 60%); z-index: 1; }
.hero.hero-compact { min-height: 320px; }
.hero.hero-compact .elementor-container { padding-top: 46px; padding-bottom: 46px; }

/* -------------------- Hero Video (Home) -------------------- */
/* The full 16:9 video, never cropped or zoomed: a bordered frame ~90% of the
   page width, centred, with its height taken from the 16:9 ratio (no fixed
   banner height, no blank space around it). */
/* The whole frame must also fit in the first screen below the ticker + header:
   its width is the smaller of ~90% of the page and (available height × 16/9),
   so the height (from the 16:9 ratio) never runs past the bottom of the screen.
   --hero-top = ticker + header height; --hero-pad = space above/below the frame. */
.home-hero {
  --hero-top: 106px;
  --hero-pad: 24px;
  --hero-max-w: 90%;
  position: relative;
  background: var(--c-white);
  padding: var(--hero-pad) 0;
}
.home-hero-video {
  display: block;
  width: min(var(--hero-max-w), calc((100vh - var(--hero-top) - 2 * var(--hero-pad)) * 16 / 9));
  width: min(var(--hero-max-w), calc((100svh - var(--hero-top) - 2 * var(--hero-pad)) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  object-fit: contain;
  background: var(--c-black);
  border: 2px solid var(--c-gold);
  border-radius: 18px;
}
/* WordPress admin bar (logged-in) pushes the page down. */
body.admin-bar .home-hero { --hero-top: 138px; }

/* Tablet */
@media (max-width: 1024px) {
  .home-hero { --hero-top: 124px; --hero-pad: 20px; }
  body.admin-bar .home-hero { --hero-top: 156px; }
}

/* Mobile: a little wider so the full 16:9 video stays as large as possible. */
@media (max-width: 782px) {
  body.admin-bar .home-hero { --hero-top: 170px; }
}
@media (max-width: 768px) {
  /* Phone: full width as before, but a square frame (25% shorter). */
  .split-grid.about-home-grid .about-home-image { width: 100%; aspect-ratio: 1 / 1; } /* (specific enough to beat the later tablet rule) */
  .home-hero { --hero-pad: 16px; --hero-max-w: 92%; }
  .home-hero-video { border-radius: 12px; }
}

/* -------------------- About / Split Sections -------------------- */
.split-section { padding: 90px 0; background: var(--c-white); }
.split-section.bg-gray { background: var(--c-gray-50); }

/* First section directly under the header on pages with no hero banner —
   scoped to this modifier only, does not affect .split-section elsewhere. */
.split-section.page-top-section { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 768px) {
  .split-section.page-top-section { padding-top: 24px; padding-bottom: 24px; }
}

/* What We Do page: measured — no margins/min-height/spacers contribute to
   the junction gap, sections sit flush; the gap is purely padding-bottom
   of one section + padding-top of the next. 40px/40px here gives an 80px
   combined gap on desktop, 24px/24px gives ~48px on mobile. Scoped to this
   page only, does not affect .section-block elsewhere. */
.section-block.wwd-section { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 768px) {
  .section-block.wwd-section { padding-top: 24px; padding-bottom: 24px; }
}
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-grid.reverse .split-media { order: 2; }

/* Homepage About section: single large image + text, wider than the
   shared .split-grid default (also used on What We Do). Scoped via
   .about-home-grid so other .split-grid usages are untouched. */
.split-grid.about-home-grid { grid-template-columns: 0.72fr 1fr; gap: 70px; align-items: center; } /* image column ~20% narrower; text gets the room */

/* About Us: premium Mission / Vision cards — light/dark contrast panels
   with an accent bar and icon badge, replacing a plain two-column layout.
   Scoped to .mv-* classes only, no shared selectors touched. */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.mv-card { position: relative; border-radius: var(--radius-lg); padding: 48px 40px 44px; overflow: hidden; }
.mv-card.mv-light { background: linear-gradient(165deg, #ffffff 0%, var(--c-gray-50) 100%); border: 1px solid var(--c-gray-100); box-shadow: var(--shadow-md); }
.mv-card.mv-dark { background: linear-gradient(165deg, var(--c-black) 0%, var(--c-black-soft) 55%, #241c10 100%); box-shadow: var(--shadow-lg); }
.mv-card.mv-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 6%, rgba(253, 207, 7,0.20), transparent 55%); pointer-events: none; }
.mv-card.mv-dark .eyebrow { color: var(--c-gold); }
.mv-card.mv-dark .check-list li { color: rgba(255,255,255,0.88); }
.mv-icon-badge { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: linear-gradient(145deg, var(--c-gold-light), var(--c-gold-dark)); box-shadow: 0 8px 22px rgba(253, 207, 7,0.35); }
/* Mission/Vision cards (About Us): bigger circle + centered PNG, kept
   distinct from the shared .mv-icon-badge (also used standalone in the
   homepage .mv-band) via this added class, so that badge is unaffected. */
.mv-card .mission-vision-icon { width: 68px; height: 68px; background: #FDCF07; }
.mv-card .mission-vision-icon img { width: 34px; height: 34px; object-fit: contain; }
.mv-accent { position: relative; z-index: 1; display: block; width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c-gold-dark), var(--c-gold)); margin-bottom: 18px; }
.mv-title { position: relative; z-index: 1; font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; letter-spacing: .2px; margin-bottom: 16px; }
.mv-card.mv-dark .mv-title { color: var(--c-white); }
.mv-body { position: relative; z-index: 1; }
.mv-body p { color: var(--c-gray-700); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.mv-body p:last-child { margin-bottom: 26px; }
.mv-card.mv-dark .mv-body p { color: rgba(255,255,255,0.78); }
.mv-card .check-list { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .mv-card { padding: 36px 26px 34px; }
}

/* About Us page: premium layered body background, replacing the plain
   solid white. Scoped entirely via .about-page-bg (unique to this page).
   Layering: decorations sit on the wrapper's own ::before at z-index 0;
   every direct content child (hero, pillars-bar wrapper, split-section)
   is lifted to z-index 1 so it always paints above the decoration; the
   floating Values ("pillars-bar") card gets z-index 3 so it stays above
   everything at the dark-hero / light-body transition it overlaps.
   Removing the wrapper class on this page fully reverses the effect. */
.about-page-bg { position: relative; }
.about-page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(253, 207, 7,.12), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(253, 207, 7,.06), transparent 30%),
    linear-gradient(180deg, #fff 0%, #faf8f3 55%, #fff 100%);
}
.about-page-bg > * { position: relative; z-index: 1; }
.about-page-bg .split-section { background: transparent; }
/* Measured: the gap between the stats row and the footer was exactly the
   split-section's own padding-bottom (90px) — no margins, min-height or
   spacer elements involved. Tightened to this page only. */
.about-page-bg .split-section { padding-bottom: 36px; }
@media (max-width: 768px) {
  .about-page-bg .split-section { padding-bottom: 32px; }
}
.split-body p { color: var(--c-gray-700); margin-bottom: 16px; font-size: 15px; }

/* Homepage About section: single large image (replaces the previous
   3-image gallery collage). */
.about-home-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;      /* fixed, shorter frame (the photo itself is a tall 3:4 portrait) */
  object-fit: cover;
  object-position: 65% 35%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.about-home-content h1, .about-home-content h2 { font-size: clamp(42px, 4vw, 64px); }
.about-home-content p { font-size: 18px; line-height: 1.75; }

/* -------------------- Mission / Vision -------------------- */
.mv-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: 60px;
}
.mv-band .mv-cell { padding: 46px 50px; position: relative; }
/* Optional Mission / Vision icon (only rendered when chosen in OMMAC Settings). */
.mv-band .mv-cell-icon { display: block; width: 44px; height: 44px; object-fit: contain; margin-bottom: 14px; }
.mv-band .mv-cell.dark { background: var(--c-black); color: var(--c-white); }
.mv-band .mv-cell.light { background: var(--c-white); color: var(--c-text); }
.mv-band .mv-icon-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; background: var(--c-white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 5;
}
.mission-vision-logo { width: 58%; height: 58%; object-fit: contain; display: block; }
.mv-title { color: var(--c-gold); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.mv-cell.light .mv-title { color: var(--c-gold-dark); }
.mv-cell p { font-size: 14.5px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.mv-cell.light p { color: var(--c-gray-700); }
.mv-cell h3 { font-size: 22px; margin-bottom: 14px; color: inherit; }

.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin-bottom: 10px; color: inherit; }
.check-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-gold); }

/* -------------------- Value Pillars (About page) -------------------- */
.pillars-bar {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: -70px auto 0;
  position: relative;
  z-index: 3;
  max-width: var(--container);
  padding: 44px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar { text-align: center; padding: 0 10px; }
.pillar .icon-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--c-gold-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.pillar .icon-badge svg { width: 26px; height: 26px; color: var(--c-gold-dark); }
.pillar .icon-badge img { width: 44px; height: 44px; object-fit: contain; }
.pillar h2, .pillar h4 { font-size: 16px; margin-bottom: 6px; }
.pillar p { font-size: 13.5px; color: var(--c-gray-500); }

/* -------------------- Core Values Band -------------------- */
.core-values { background: var(--c-black); border-radius: var(--radius-lg); padding: 56px 40px; margin: 20px auto 0; }
.core-values-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.cv-item { text-align: center; color: var(--c-white); }
.cv-item .icon-badge { width: 54px; height: 54px; border: 1.5px solid var(--c-gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cv-item .icon-badge svg { width: 24px; height: 24px; color: var(--c-gold); }
.cv-item .icon-badge img { width: 46px; height: 46px; object-fit: contain; }
.cv-item h3, .cv-item h5 { color: var(--c-white); font-size: 14.5px; margin-bottom: 8px; letter-spacing: .3px; }
.cv-item p { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.55; }
/* "Safety & Medical" is longer than the other five value titles; a touch
   smaller and tracked tighter so it wraps cleanly instead of crowding the
   card. Scoped to this title only — the other five are untouched. */
.cv-item h3.cv-title-wide, .cv-item h5.cv-title-wide { font-size: 13px; letter-spacing: .1px; }

/* -------------------- Stats --------------------
   Down to 2 stats (from 4) — a constrained, centered flex row instead of a
   full-width 1fr grid, so the pair doesn't stretch across the whole
   container with excess empty space between them. */
.stats-row { display: flex; justify-content: center; gap: 80px; max-width: 480px; margin: 0 auto; padding: 46px 0; border-bottom: 1px solid var(--c-gray-100); }
.stat { flex: 1 1 0; text-align: center; }
.stat svg { width: 30px; height: 30px; color: var(--c-gold-dark); margin: 0 auto 10px; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--c-black); }
.stat .label { font-size: 12.5px; color: var(--c-gray-500); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
@media (max-width: 480px) {
  .stats-row { flex-direction: column; align-items: center; gap: 28px; max-width: 220px; }
}

/* -------------------- Feature Link Cards (Gyms/Facilities) -------------------- */
.feature-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-link-card {
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-100);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition);
}
.feature-link-card:hover { background: var(--c-white); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-link-card .icon-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--c-gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-link-card .icon-badge svg { width: 24px; height: 24px; color: var(--c-black); }
.feature-link-card .flc-body { flex: 1; }
.feature-link-card h4 { font-size: 17px; margin-bottom: 4px; }
.feature-link-card p { font-size: 13.5px; color: var(--c-gray-500); }
.feature-link-card .arrow { width: 18px; height: 18px; color: var(--c-black); transition: transform var(--transition); flex-shrink: 0; }
.feature-link-card:hover .arrow { transform: translateX(5px); color: var(--c-gold-dark); }

/* -------------------- Card Grids (Events / News / Gyms / Facilities) -------------------- */
.section-block { padding: 90px 0; }
.section-block.bg-gray { background: var(--c-gray-50); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
/* Home page "Upcoming Events": 2 columns on desktop/tablet, 1 column on phones
   (replaces the old inline style, which also forced 2 columns on phones). */
.card-grid.card-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .card-grid.card-grid--two { grid-template-columns: 1fr; }
}

/* News page: hero sits directly above this section with no heading in
   between, so the default 90px section padding + 46px card-grid margin
   left a large gap. Scoped to this section only. */
.news-grid-section { padding-top: 48px; }
.news-grid-section .card-grid { margin-top: 0; }

.event-card, .blog-card, .gym-card, .facility-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--c-gray-100);
}
.event-card:hover, .blog-card:hover, .gym-card:hover, .facility-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.event-card .ec-media, .blog-card .bc-media, .gym-card .gc-media, .facility-card .fc-media {
  position: relative; height: 190px; overflow: hidden;
}
/* Event saved without an image (WordPress Events): brand-dark panel behind the date badge. */
.event-card .ec-media.ec-media--no-image { background: linear-gradient(160deg, var(--c-black) 0%, var(--c-black-soft) 55%, #2a2013 100%); }
.event-card .ec-media img, .blog-card .bc-media img, .gym-card .gc-media img, .facility-card .fc-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.event-card:hover img, .blog-card:hover img, .gym-card:hover img { transform: scale(1.08); }

.ec-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-gold); color: var(--c-black);
  border-radius: 8px; padding: 8px 12px; text-align: center; line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.ec-date-badge .d { font-size: 18px; font-weight: 800; display: block; }
.ec-date-badge .m { font-size: 10px; font-weight: 700; text-transform: uppercase; display: block; }

.tag-pill {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--c-gold-dark); border: 1.3px solid var(--c-gold);
  border-radius: var(--radius-pill); padding: 4px 12px; margin-bottom: 10px;
}
.premium-badge {
  position: absolute; top: 14px; left: 14px; background: var(--c-gold); color: var(--c-black);
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}
.verified-badge { width: 22px; height: 22px; color: var(--c-gold); flex-shrink: 0; }

.card-body { padding: 22px 24px 24px; }
.card-body h2, .card-body h3, .card-body h4 { font-size: 18px; margin-bottom: 8px; }
.card-body .meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-gray-500); margin-bottom: 6px; }
.card-body .meta svg { width: 15px; height: 15px; color: var(--c-gold-dark); flex-shrink: 0; }
.card-body p.desc { font-size: 13.5px; color: var(--c-gray-500); margin: 10px 0 16px; }
.card-body .date-line { font-size: 12.5px; color: var(--c-gray-500); margin-bottom: 8px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--c-black); }
.read-more svg { width: 15px; height: 15px; color: var(--c-gold-dark); transition: transform var(--transition); }
.read-more:hover svg { transform: translateX(5px); }

.gym-header-row, .blog-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

/* -------------------- News Cards (News page, generated from news-data.js) -------------------- */
.news-card .bc-media { display: block; height: 230px; }
.news-source { font-size: 12.5px; color: var(--c-gray-500); font-weight: 600; margin: -4px 0 14px; }

/* -------------------- Sports Grid (What We Do — Our Sports) --------------------
   6 cards, a clean 3x2 grid on desktop. */
.sports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }

.sport-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  min-height: 240px;
  max-height: 300px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Cards are not links for now (no sport detail pages yet), so there is no
   focus/pointer state — hover is purely visual. The .sports-grid prefix gives
   this rule enough specificity to outrank the shared .reveal.in-view transform,
   which sits later in this file and would otherwise cancel the hover lift once
   a card has scrolled into view. */
.sports-grid .sport-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 207, 7,0.55);
}
.sport-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sport-card:hover img { transform: scale(1.05); }

.sport-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.20) 55%, transparent 85%);
  transition: opacity var(--transition);
  pointer-events: none;
}
.sport-card:hover .sport-card-overlay { opacity: 0.92; }

.sport-card-info {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  /* Keeps the row the height the (removed) 42px arrow circle gave it, so the
     sport titles sit exactly where they did at every width. */
  min-height: 42px;
}
.sport-card-name {
  color: var(--c-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.15;
}
.sport-card-name::after {
  content: '';
  display: block;
  width: 34px; height: 3px;
  background: var(--c-gold);
  border-radius: 2px;
  margin-top: 9px;
}
@media (max-width: 1024px) {
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sports-grid { grid-template-columns: 1fr; gap: 20px; }
  .sport-card { min-height: 300px; }
}

/* -------------------- Sports Page (Our Sports) — editorial card grid,
   distinct from the What We Do .sports-grid/.sport-card design above:
   light info panel (no dark overlay), no circular arrow button. -------------------- */
.sports-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 46px; }

.sport-showcase-card {
  display: block;
  background: var(--c-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Not links for now (see .sport-card above): hover is purely visual. The
   .sports-showcase-grid prefix outranks the shared .reveal.in-view transform. */
.sports-showcase-grid .sport-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.sport-showcase-media { position: relative; height: 300px; overflow: hidden; }
.sport-showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.sport-showcase-card:hover .sport-showcase-media img { transform: scale(1.06); }

/* Bottom padding = original 26px + the 25.6px line box (16px × 1.6) the removed
   "Explore Sport" line used to occupy, so card heights are unchanged. */
.sport-showcase-info { padding: 22px 26px 51.6px; }
.sport-showcase-name { font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 1.8vw, 22px); color: var(--c-black); text-transform: uppercase; letter-spacing: .4px; }
.sport-showcase-accent { display: block; width: 34px; height: 3px; background: var(--c-gold); border-radius: 2px; margin: 10px 0 14px; }
@media (max-width: 1024px) {
  .sports-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sports-showcase-grid { grid-template-columns: 1fr; gap: 22px; }
  .sport-showcase-media { height: 240px; }
}

/* -------------------- Filter Bar (Gyms) -------------------- */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; background: var(--c-white); border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-gray-100); }
.filter-bar .filter-select, .filter-bar .filter-search {
  flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-gray-100);
  font-size: 14px; color: var(--c-gray-700); background: var(--c-white);
}
.filter-bar select { border: none; outline: none; flex: 1; background: transparent; color: var(--c-text); appearance: none; }
.filter-bar input { border: none; outline: none; flex: 1; background: transparent; }
.filter-bar svg { width: 17px; height: 17px; color: var(--c-gold-dark); flex-shrink: 0; }

/* -------------------- Contact Page -------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info-list { display: flex; flex-direction: column; gap: 32px; }
.contact-info-item { display: flex; align-items: center; gap: 18px; padding: 0 0 24px; margin: 0; border-bottom: 1px solid var(--c-gray-100); }
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-list .icon-badge { width: 58px; height: 58px; border-radius: 50%; background: var(--c-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-list .icon-badge img { width: 28px; height: 28px; object-fit: contain; }
.contact-info-list h3, .contact-info-list h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--c-gray-500); margin-bottom: 4px; }
.contact-info-list p { font-size: 15.5px; font-weight: 600; color: var(--c-black); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.form-field { width: 100%; padding: 16px 18px; border: 1.4px solid var(--c-gray-100); border-radius: var(--radius-sm); background: var(--c-gray-50); font-size: 14.5px; transition: border-color var(--transition); }
.form-field:focus { outline: none; border-color: var(--c-gold); background: var(--c-white); }
textarea.form-field { resize: vertical; min-height: 130px; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }

.form-file-upload { display: flex; flex-direction: column; gap: 8px; }
.form-file-upload > label { font-size: 13.5px; font-weight: 600; color: var(--c-black); }
.file-upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.4px dashed var(--c-gray-300);
  border-radius: var(--radius-sm);
  background: var(--c-gray-50);
  transition: border-color var(--transition), background var(--transition);
}
.file-upload-dropzone:hover, .file-upload-dropzone.is-dragover { border-color: var(--c-gold); background: var(--c-gold-pale); }
.file-upload-icon { width: 22px; height: 22px; color: var(--c-gray-500); flex-shrink: 0; transition: color var(--transition); }
.file-upload-dropzone:hover .file-upload-icon, .file-upload-dropzone.is-dragover .file-upload-icon { color: var(--c-gold-dark); }
.file-upload-text { font-size: 14.5px; color: var(--c-gray-500); }
.file-upload-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-file-upload > small { font-size: 12.5px; color: var(--c-gray-500); }
.file-upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-upload-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--c-black); background: var(--c-white); border: 1px solid var(--c-gray-100); border-radius: var(--radius-sm); padding: 8px 12px; }
.file-upload-list .file-remove { border: none; background: none; padding: 0; line-height: 1; font-size: 16px; color: var(--c-gray-500); cursor: pointer; transition: color var(--transition); }
.file-upload-list .file-remove:hover { color: var(--c-gold-dark); }
.file-upload-error { font-size: 13px; color: #C0392B; margin: 0; }
.file-upload-error:empty { display: none; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--c-black); color: rgba(255,255,255,0.72); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .footer-logo { width: 230px; }
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-row a:hover { background: var(--c-gold); border-color: var(--c-gold); }
.social-row svg { width: 16px; height: 16px; color: var(--c-white); }
.social-row a:hover svg { color: var(--c-black); }
.footer-col h2, .footer-col h5 { color: var(--c-gold); font-size: 14px; letter-spacing: .8px; margin-bottom: 20px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--c-gold); }
/* Highlights: no destination page exists yet, so this is intentionally a
   plain label (not a link) rather than a fake/broken href. */
.footer-col ul li .footer-link-pending { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col.contact-col li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-col.contact-col svg { width: 16px; height: 16px; color: var(--c-gold); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* -------------------- Scroll Reveal Animation -------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }
.reveal-delay-5.in-view { transition-delay: .5s; }

/* -------------------- Utilities -------------------- */
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.about-home-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.reverse .split-media { order: 0; }
  /* Stacked (tablet): image 80% wide and centred, same 4:5 frame. */
  .about-home-grid .split-media { display: flex; justify-content: center; }
  .about-home-image { width: 80%; }
  .mv-band { grid-template-columns: 1fr; }
  .mv-band .mv-icon-badge { top: 0; left: 50%; }
  .core-values-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-bar { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .site-header .header-inner { display: flex; justify-content: space-between; }
  /* Width-led (not height-led) here on purpose: moc-logo.svg's new cropped
     ratio (~3.76:1, much wider/flatter than before) meant a fixed height
     was pushing its rendered width well past this column's room — sizing
     by width instead guarantees it always fits, with height following the
     SVG's own ratio so it's never stretched. */
  .header-partner-logo { width: 150px; height: auto; max-width: 38vw; }
  .brand-logo { width: 220px; max-height: 72px; }
  /* Off-canvas panel. 100dvh (with 100vh fallback) so the panel matches the
     visible viewport when mobile browser toolbars show/hide. visibility:hidden
     while closed keeps the off-screen links out of the keyboard tab order;
     the visibility change is delayed until the slide-out finishes. */
  .main-nav { position: fixed; top: 0; right: -100%; width: min(320px, 84vw); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; background: var(--c-white); backdrop-filter: none; -webkit-backdrop-filter: none; border: none; border-radius: 0; flex-direction: column; align-items: flex-start; padding: 100px 30px 30px; box-shadow: var(--shadow-lg); transition: right var(--transition), visibility 0s linear .3s; z-index: 400; }
  .main-nav.is-open { right: 0; visibility: visible; transition: right var(--transition), visibility 0s; }

  /* Logos may shrink; the toggle never does. */
  .header-logo-left { flex: 1 1 auto; min-width: 0; }
  .header-logo-right { flex: 0 0 auto; }

  /* Hamburger: 44×44 tap target, always painted above the open panel
     (both live in .site-header's stacking context: panel z 400, toggle z 410). */
  .nav-toggle { display: flex; flex-shrink: 0; position: relative; z-index: 410; width: 44px; height: 44px; padding: 12px 9px; justify-content: center; gap: 5px; border-radius: 12px; }
  .nav-toggle span { display: block; width: 100%; }
  .nav-toggle:focus-visible { outline: 2px solid var(--c-black); outline-offset: 2px; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Menu open: lock page scroll (class set on <body> by main.js) and dim the
     page behind. Only <body> is locked, never <html>: body's overflow then
     propagates to the viewport, so the sticky header keeps working. (Locking
     <html> would turn <body> — which has overflow-x:hidden — into its own
     scroll container and push the sticky header off-screen when scrolled.)
     The backdrop sits under .site-header (z 500), so the panel and toggle
     stay on top; tapping it closes the menu. */
  body.nav-lock { overflow: hidden; }
  body.nav-lock::after { content: ''; position: fixed; inset: 0; background: rgba(20,18,15,0.45); z-index: 450; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .main-nav ul li { width: 100%; }
  .main-nav a.nav-link { padding: 12px 0; width: 100%; }
  .dropdown-wrap .dropdown { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; display: none; background: var(--c-gray-50); margin-top: 4px; }
  .dropdown-wrap.is-open .dropdown { display: block; }
  .hero-media { display: none; }
}

/* Narrower still: both header logos step down again so they (plus the
   toggle button) comfortably fit real phone widths without colliding. */
@media (max-width: 768px) {
  .brand-logo { width: 185px; max-height: 60px; }
  .header-partner-logo { width: 130px; height: auto; max-width: 34vw; }
}

/* Phones: tighter gaps and a slightly smaller partner logo so the 44px
   hamburger always fits next to both logos (down to 360px wide). */
@media (max-width: 480px) {
  .site-header .header-inner { gap: 12px; }
  .header-cta { gap: 10px; }
  .header-partner-logo { width: 104px; max-width: 28vw; }
}

@media (max-width: 720px) {
  .core-values-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-bar { grid-template-columns: 1fr 1fr; margin-top: -40px; padding: 30px 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-form { grid-template-columns: 1fr; }
  .feature-links { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
}

/* -------------------- Custom Cursor (mouse/trackpad only) -------------------- */
@media (pointer: fine) {
  body {
    cursor: url("../svg/cursor-32.svg") 6 7, auto;
  }

  a,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .file-upload-dropzone input[type="file"],
  .file-upload-list .file-remove {
    cursor: url("../svg/cursor-32.svg") 6 7, pointer;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    cursor: text;
  }
}

/* ==========================================================================
   Accessibility & structure (added for launch)
   ========================================================================== */

/* Skip link: hidden until focused with the keyboard (Tab), then shown top corner. */
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0; overflow: visible;
  position: fixed !important; top: 12px; inset-inline-start: 12px; z-index: 100000;
  padding: 12px 18px; background: var(--c-gold); color: var(--c-black);
  font-weight: 700; font-size: 15px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.site-main:focus { outline: none; }

/* Contact form: visible field labels (same style as the existing "Attach File" label). */
.contact-form .form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-form .form-group > label { font-size: 13.5px; font-weight: 600; color: var(--c-black); }
.contact-form .form-required { color: var(--c-gold-dark); margin-inline-start: 2px; }
/* Privacy notice under the Send button. */
.contact-form .form-consent { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; color: #5E5950; }
.contact-form .form-consent a { color: var(--c-black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-gold-dark); text-underline-offset: 2px; }

/* Default page template (page.php) — legal pages and other editor-written pages. */
.entry-content { max-width: 860px; font-size: 16px; line-height: 1.75; color: var(--c-text); }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 40px; }
.entry-content h3 { font-size: 20px; margin-top: 32px; }
.entry-content h4 { font-size: 17px; margin-top: 24px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 6px; }
.entry-content a { color: var(--c-black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-gold-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; } /* gold text on white fails contrast, so gold is the underline */
.entry-content a:hover { text-decoration-color: var(--c-black); }
.entry-content strong { font-weight: 700; color: var(--c-black); }
.entry-content blockquote { border-inline-start: 4px solid var(--c-gold); padding: 6px 0; padding-inline-start: 18px; color: #5E5950; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--c-gray-100); padding: 10px 12px; text-align: start; vertical-align: top; }
.entry-content th { background: var(--c-gray-50); font-weight: 700; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content hr { border: 0; border-top: 1px solid var(--c-gray-100); margin: 32px 0; }
.entry-updated { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 0; }
.page-links { margin-top: 32px; font-weight: 600; }

/* 404 / archive heroes reuse .hero.hero-compact; the button sits under the text. */
.hero-actions { margin-top: 8px; }
.posts-pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.posts-pagination .page-numbers { display: inline-block; min-width: 42px; padding: 10px 14px; text-align: center; border: 1.4px solid var(--c-gray-100); border-radius: var(--radius-sm); font-weight: 600; }
.posts-pagination .page-numbers.current, .posts-pagination a.page-numbers:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-black); }

/* ==========================================================================
   Phones and tablets (≤1024px, where these sections stack into one column)
   — desktop (1025px+) is unaffected.
   ========================================================================== */
@media (max-width: 1024px) {
  /* Home: the About OMMAC portrait is hidden; the About text follows the hero directly. */
  .split-grid.about-home-grid .split-media { display: none; }

  /* Home Mission / Vision: the OMMAC logo circle sits centred on the top edge
     of the panel, fully visible (the panel no longer clips it); the two cells
     keep the panel's rounded corners themselves. */
  .mv-band { overflow: visible; margin-top: 70px; }
  .mv-band .mv-icon-badge { top: 0; left: 50%; transform: translate(-50%, -50%); }
  .mv-band .mv-cell.dark { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-top: 58px; }
  .mv-band .mv-cell.light { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

  /* About Us Mission / Vision cards: icon circle centred at the top of each card. */
  .mv-card .mission-vision-icon { margin-left: auto; margin-right: auto; }
}
