/* ==========================================================================
   DXB Muay Thai — holding page
   Brand colours are taken from the logo. Dark theme throughout.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #0a0a0e;
  --cyan: #00f0f0;
  --pink: #ff0a8c;
  --pink-hover: #ff3aa3;
  --white: #fff;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);

  --font-display: "DXB Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 20px;
  --nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.9vw + 10px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

h1, h2, h3 { margin: 0; color: var(--white); }

h2, h3, .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); text-wrap: balance; }
.h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-hover); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.arrow { font-size: 1.3em; line-height: 0; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Section label:  "Our mission  •———————"
   -------------------------------------------------------------------------- */

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cyan);
}

.label::after {
  content: "";
  flex: 0 1 220px;
  height: 8px;
  background:
    radial-gradient(circle, var(--pink) 0 3.5px, transparent 4px) left center / 8px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) 14px center / 100% 1px no-repeat;
}

.label-center { justify-content: center; }
.label-center::after { display: none; }

/* Two-column header: big content left, short text right */
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.split-side { color: var(--muted); max-width: 46ch; }
.split-side p { color: var(--text); }

/* --------------------------------------------------------------------------
   Floating menu bar
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  height: var(--nav-h);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background-color 0.3s ease;
}

.nav.is-scrolled { background: rgba(8, 8, 12, 0.8); }

.nav-logo img {
  height: 36px;
  width: auto;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--cyan); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(48px, 9vh, 96px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.hero::before {
  inset: -8px;
  background: url("images/hero-kick.jpg") 70% center / cover no-repeat;
  filter: blur(1.5px) brightness(0.78);
}

.hero::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 72%, rgba(0,0,0,0.3) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 45%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hero-logo {
  width: min(480px, 100%);
  margin: 0 0 22px -1%;
}

.hero-logo img { mix-blend-mode: screen; }

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.32em;
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
}

.tagline span:nth-child(2) { color: var(--cyan); }
.tagline span:nth-child(3) { color: var(--pink); }

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 10, 140, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 10, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 10, 140, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Mission (photo background)
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mission { padding-block: clamp(96px, 13vw, 170px); }

.mission::before,
.mission::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.mission::before {
  inset: -12px;
  background: url("images/mission-knee.jpg") 75% center / cover no-repeat;
  filter: blur(3px) brightness(0.5);
}

.mission::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,1) 100%);
}

.mission-statement {
  margin: 0;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   What we offer: photo cards
   -------------------------------------------------------------------------- */

.offer { padding-block: clamp(80px, 11vw, 150px); }

.split-head { margin-bottom: clamp(36px, 5vw, 64px); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  isolation: isolate;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.6) 62%, rgba(0,0,0,0.95) 100%);
}

.card:hover img { transform: scale(1.04); }

.pill {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 24px 28px;
}

.card h3 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  margin-bottom: 8px;
}

.card p { color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------------------
   Closing banner / contact
   -------------------------------------------------------------------------- */

.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: clamp(0px, 2vw, 24px);
  border-radius: clamp(0px, 2vw, 28px);
  padding-block: clamp(96px, 14vw, 180px);
  text-align: center;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.banner::before {
  inset: -12px;
  background: url("images/contact-coach.jpg") center 30% / cover no-repeat;
  filter: blur(2px) brightness(0.72);
}

.banner::after {
  inset: 0;
  background: radial-gradient(55% 65% at 50% 55%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 100%);
}

.banner-title {
  font-size: clamp(3rem, 9vw, 7rem);
  margin-bottom: 18px;
}

.banner-text { margin-bottom: 36px; color: var(--text); }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 240, 0.25);
}

.socials svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials svg .fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   Footer with giant logo
   -------------------------------------------------------------------------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 36px;
}

.footer-logo {
  width: 100%;
  margin-bottom: clamp(32px, 4vw, 56px);
  mix-blend-mode: screen;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.back-top { text-decoration: none; }
.back-top:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Fade-in on scroll (only when JavaScript is running)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .cards .reveal:nth-child(3) { transition-delay: 0.2s; }

/* --------------------------------------------------------------------------
   Tablet & mobile
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; align-items: start; }

  .cards {
    grid-template-columns: repeat(3, minmax(270px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; }

  .nav { gap: 10px; padding: 0 8px 0 16px; top: 10px; width: calc(100% - 20px); }
  .nav-logo img { height: 30px; }
  .nav-cta { margin-left: auto; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.25s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(8, 8, 12, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }

  .hero::before {
    background-position: 80% center;
    filter: blur(3px) brightness(0.7);
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.82) 52%, rgba(0,0,0,0.96) 100%);
  }

  .hero-actions .btn { flex: 1 1 auto; }

  .mission::before { background-position: 78% center; }
  .mission::after { background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.75) 25%, rgba(0,0,0,0.75) 75%, rgba(0,0,0,1) 100%); }

  .socials { flex-direction: column; align-items: stretch; }
  .socials a { display: flex; justify-content: center; }

  .footer-row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card img { transition: none; }
}
