/*
MPHL WCAG-focused Divi 5 CSS
Goal: practical WCAG 2.1 AA alignment. Final compliance still requires testing real content, forms, plugins, videos, and Divi settings.
Brand colors:
Navy #182751
Red  #e5262c
*/

:root {
  --mphl-navy: #182751;
  --mphl-red: #e5262c;
  --mphl-deep: #071329;
  --mphl-ink: #111827;
  --mphl-muted: #4b5563;
  --mphl-light: #f5f7fb;
  --mphl-focus: #ffbf47;
  --mphl-white: #ffffff;
}

/* Base accessibility */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  color: var(--mphl-ink);
  line-height: 1.6;
}

a {
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.mphl-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  z-index: 100000;
  background: #ffffff;
  color: #000000;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 900;
  border: 3px solid var(--mphl-focus);
}

.mphl-skip-link:focus {
  transform: translateY(0);
}

.mphl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mphl-focusable:focus-visible,
.mphl-btn:focus-visible,
.mphl-nav a:focus-visible,
.mphl-menu-toggle:focus-visible,
.mphl-arrow:focus-visible,
.mphl-dot:focus-visible,
.mphl-pause:focus-visible,
.mphl-card-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 4px solid var(--mphl-focus) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #000 !important;
}

/* Typography */
.mphl-h1,
.mphl-h2,
.mphl-h3,
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.035em;
}

.mphl-h1 {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: .9;
  margin: 0 0 24px;
  color: #fff;
  text-transform: uppercase;
}

.mphl-h1 span {
  color: #ff5a5f; /* brighter red for better contrast on dark hero */
}

.mphl-h2 {
  color: var(--mphl-navy);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: .95;
  text-transform: uppercase;
  margin: 12px 0 22px;
}

.mphl-h3 {
  color: var(--mphl-navy);
  font-size: 1.55rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.mphl-copy {
  color: var(--mphl-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.mphl-eyebrow {
  color: #b9151b; /* darkened red for white backgrounds */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .86rem;
}

/* Buttons and links */
.mphl-btn,
a.mphl-btn,
button.mphl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--mphl-red);
  color: #fff !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 13px 22px;
  text-decoration: none !important;
  line-height: 1.2;
}

.mphl-btn:hover {
  background: #b9151b;
  color: #fff !important;
}

.mphl-btn-secondary {
  background: transparent;
  border-color: #fff;
  color: #fff !important;
}

.mphl-btn-secondary:hover {
  background: #fff;
  color: var(--mphl-navy) !important;
}

/* Header */
.mphl-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(24,39,81,.15);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.mphl-header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mphl-logo img {
  max-height: 56px;
  width: auto;
}

.mphl-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.mphl-nav a {
  color: var(--mphl-navy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .86rem;
  text-decoration: none;
}

.mphl-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--mphl-red);
}

.mphl-menu-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  border: 2px solid var(--mphl-navy);
  background: #fff;
  color: var(--mphl-navy);
  border-radius: 10px;
  font-weight: 900;
}

/* Hero carousel */
.mphl-carousel {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  color: #fff;
  background: var(--mphl-deep);
}

.mphl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
  background-size: cover;
  background-position: center;
}

.mphl-slide.active {
  opacity: 1;
}

.mphl-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(229,38,44,.50), transparent 20%),
    linear-gradient(112deg, rgba(7,19,41,.99) 0%, rgba(24,39,81,.94) 50%, rgba(24,39,81,.56) 100%);
}

.mphl-night-sky,
.mphl-north-star,
.mphl-city-skyline,
.mphl-lake-reflection {
  pointer-events: none;
}

.mphl-night-sky {
  position:absolute;
  inset:0;
  z-index:3;
  opacity:.68;
  background:
    radial-gradient(circle at 18% 22%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 24% 15%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 32% 26%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 45% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 58% 24%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 68% 14%, #fff 0 1px, transparent 2px);
}

.mphl-north-star {
  position:absolute;
  top:120px;
  right:13%;
  width:72px;
  height:72px;
  z-index:4;
  opacity:.92;
  background:#fff;
  clip-path:polygon(50% 0,57% 38%,100% 50%,57% 62%,50% 100%,43% 62%,0 50%,43% 38%);
  filter:drop-shadow(0 0 18px rgba(255,255,255,.75));
}

.mphl-city-skyline {
  position:absolute;
  left:0;
  right:0;
  bottom:72px;
  height:135px;
  z-index:4;
  opacity:.82;
  background:#0a193a;
  clip-path:polygon(0 86%,3% 86%,3% 66%,6% 66%,6% 82%,9% 82%,9% 55%,12% 55%,12% 78%,15% 78%,15% 44%,18% 44%,18% 84%,22% 84%,22% 60%,25% 60%,25% 34%,28% 34%,28% 84%,32% 84%,32% 50%,36% 50%,36% 84%,40% 84%,40% 28%,43% 28%,43% 84%,48% 84%,48% 58%,53% 58%,53% 84%,56% 84%,56% 38%,59% 38%,59% 84%,64% 84%,64% 48%,68% 48%,68% 84%,74% 84%,74% 58%,78% 58%,78% 84%,83% 84%,83% 46%,86% 46%,86% 84%,91% 84%,91% 62%,96% 62%,96% 84%,100% 84%,100% 100%,0 100%);
}

.mphl-lake-reflection {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:116px;
  z-index:4;
  opacity:.52;
  background:
    linear-gradient(180deg, rgba(7,31,69,.2), rgba(7,31,69,.95)),
    repeating-radial-gradient(ellipse at center, rgba(255,255,255,.62) 0 1px, transparent 2px 17px);
}

.mphl-hero-content {
  position: relative;
  z-index: 5;
  min-height: 850px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 125px 0 170px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.mphl-kicker {
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.82rem;
  font-weight:900;
}

.mphl-hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: #fff;
  max-width: 720px;
}

.mphl-feature-panel {
  justify-self: end;
  width: min(430px,100%);
  border-radius:32px;
  overflow:hidden;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.34);
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.mphl-feature-panel img {
  width:100%;
  height:250px;
  object-fit:cover;
  display:block;
}

.mphl-feature-panel-body {
  padding:24px;
}

.mphl-feature-panel h2 {
  margin:0 0 8px;
  color:#fff;
  text-transform:uppercase;
  font-size:1.6rem;
  line-height:1.1;
}

.mphl-feature-panel p {
  margin:0;
  color:#fff;
}

.mphl-video-badge {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  font-weight:900;
  text-transform:uppercase;
}

.mphl-play {
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--mphl-red);
  display:grid;
  place-items:center;
}

.mphl-carousel-status {
  position: absolute;
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
  bottom: 86px;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.mphl-hero-controls {
  position:absolute;
  z-index:8;
  left:50%;
  transform:translateX(-50%);
  bottom:28px;
  display:flex;
  gap:8px;
  align-items:center;
  background: rgba(7,19,41,.88);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 10px 14px;
}

.mphl-arrow,
.mphl-pause,
.mphl-dot {
  min-width: 44px;
  min-height: 44px;
}

.mphl-arrow,
.mphl-pause {
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
}

.mphl-arrow {
  font-size: 1.35rem;
}

.mphl-pause {
  padding:0 14px;
  font-size:.86rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.mphl-dot {
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
}

.mphl-dot::before {
  content:"";
  width:14px;
  height:14px;
  border-radius:50%;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.4);
}

.mphl-dot[aria-current="true"]::before {
  width:34px;
  border-radius:999px;
  background:var(--mphl-red);
  border-color:#fff;
}

/* Sections */
.mphl-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.mphl-inner {
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  position:relative;
  z-index:2;
}

.mphl-split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.mphl-gym-floor {
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.94)),
    repeating-linear-gradient(90deg, rgba(214,169,106,.42) 0 22px, rgba(169,113,54,.28) 22px 24px, rgba(238,197,131,.34) 24px 46px),
    linear-gradient(180deg, #f2d091, #d6a96a);
}

.mphl-gym-floor::before {
  content:"";
  position:absolute;
  inset:0;
  opacity:.25;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, var(--mphl-red) 49.8% 50.2%, transparent 50.2%),
    radial-gradient(circle at center, transparent 0 23%, var(--mphl-navy) 23.2% 23.8%, transparent 24%),
    linear-gradient(0deg, transparent 0 23%, rgba(24,39,81,.75) 23.2% 23.7%, transparent 24%, transparent 76%, rgba(24,39,81,.75) 76.2% 76.7%, transparent 77%);
}

.mphl-mn-night {
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.92) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(229,38,44,.22), transparent 24%),
    linear-gradient(180deg, #071329 0%, #0a1e42 58%, #071f45 100%);
  color:#fff;
}

.mphl-mn-night .mphl-h2,
.mphl-mn-night .mphl-copy {
  color:#fff;
}

.mphl-photo {
  width:100%;
  border-radius:34px;
  display:block;
  object-fit:cover;
  box-shadow:0 30px 80px rgba(24,39,81,.22);
}

.mphl-photo-tall {
  aspect-ratio:.95/1;
}

.mphl-quick-grid,
.mphl-card-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.mphl-card-link {
  display:block;
  background:#fff;
  padding:26px;
  border-radius:24px;
  box-shadow:0 20px 60px rgba(24,39,81,.14);
  border:1px solid rgba(24,39,81,.10);
  text-decoration:none !important;
  color:var(--mphl-ink);
}

.mphl-card-link:hover {
  transform:translateY(-3px);
  text-decoration:none;
}

.mphl-icon {
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--mphl-navy);
  color:#fff;
  font-weight:900;
  font-size:1.25rem;
  margin-bottom:16px;
}

.mphl-gallery {
  display:grid;
  grid-template-columns:1.1fr .9fr .9fr;
  gap:18px;
}

.mphl-gallery-card {
  position:relative;
  min-height:380px;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  display:block;
  color:#fff !important;
  text-decoration:none !important;
}

.mphl-gallery-card:first-child {
  min-height:460px;
}

.mphl-gallery-card img {
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}

.mphl-gallery-card::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 30%, rgba(0,0,0,.86));
}

.mphl-gallery-card h3 {
  position:absolute;
  z-index:2;
  left:24px;
  bottom:22px;
  margin:0;
  color:#fff;
  text-transform:uppercase;
  font-size:1.65rem;
}

/* Footer */
.mphl-footer {
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(180deg,#071329,var(--mphl-navy));
  border-top:5px solid var(--mphl-red);
}

.mphl-footer-inner {
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  position:relative;
  z-index:2;
  padding:70px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.mphl-footer img {
  height:130px;
}

.mphl-footer a {
  color:#fff;
}

/* Forms */
.mphl-form label {
  display:block;
  font-weight:900;
  color:var(--mphl-navy);
  margin-bottom:6px;
}

.mphl-form input,
.mphl-form select,
.mphl-form textarea {
  width:100%;
  min-height:44px;
  border:2px solid #6b7280;
  border-radius:8px;
  padding:10px 12px;
  font-size:1rem;
}

.mphl-form .required {
  color:#b9151b;
  font-weight:900;
}

.mphl-error {
  color:#9f1239;
  font-weight:700;
}

/* Responsive */
@media (max-width: 980px) {
  .mphl-menu-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .mphl-nav {
    display:none;
    position:absolute;
    left:20px;
    right:20px;
    top:84px;
    background:#fff;
    border:2px solid var(--mphl-navy);
    border-radius:16px;
    padding:18px;
    flex-direction:column;
    align-items:flex-start;
  }

  .mphl-nav.is-open {
    display:flex;
  }

  .mphl-hero-content,
  .mphl-split {
    grid-template-columns:1fr;
  }

  .mphl-feature-panel {
    display:none;
  }

  .mphl-carousel,
  .mphl-hero-content {
    min-height:740px;
  }

  .mphl-quick-grid,
  .mphl-card-grid,
  .mphl-gallery {
    grid-template-columns:1fr;
  }

  .mphl-hero-controls {
    max-width:calc(100% - 20px);
    overflow-x:auto;
  }

  .mphl-north-star {
    right:28px;
    top:95px;
    width:48px;
    height:48px;
  }

  .mphl-footer-inner {
    flex-direction:column;
    align-items:flex-start;
  }
}
