/* HIITFIT shared site chrome — header/nav, footer, buttons, page banner.
   Used by the standalone pages (buy.html, schedule.html, account.html) so
   they match the look of the main site (home.html) without duplicating its
   entire stylesheet. If the main site's header/nav/footer design changes,
   mirror the change here too. */

:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --accent: #d9d9d9;
  --accent-light: #ffffff;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #e4e4e4 55%, #bdbdbd 100%);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.28);
  --danger: #e2897e;
  --display: "Bebas Neue", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 5rem;
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}
body.menu-locked { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }

/* Language toggle: hide whichever language block doesn't match <html lang>. */
html[lang="fr"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* Buttons */
.button {
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  background: var(--accent-gradient);
  color: #000;
  border: 1px solid var(--accent-light);
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.95rem 2.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: color 0.5s, border-color 0.5s;
}
.button:hover { background: transparent; color: #8D26D4; border-color: #8D26D4; }
.button-outline { background: transparent; color: var(--accent-light); border-color: var(--accent); }
.button-outline:hover { background: transparent; color: #8D26D4; border-color: #8D26D4; }
.button-accent { background: #8D26D4; color: #fff; border-color: #8D26D4; }
.button-accent:hover { background: transparent; color: #8D26D4; border-color: #8D26D4; }
.button-small { padding: 0.8rem 1.4rem; font-size: 1.4rem; letter-spacing: 0.08em; white-space: nowrap; }
.cta-break { display: none; }
[data-callback], [data-referral] { background: #8D26D4; color: #fff; border-color: #8D26D4; }
[data-callback]:hover, [data-referral]:hover { background: transparent; color: #8D26D4; border-color: #8D26D4; }

/* Sticky header: emblem, book button, menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: grid;
  grid-template-columns: minmax(auto, 1fr) auto minmax(auto, 1fr);
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.brand { display: block; justify-self: center; line-height: 0; }
.brand img { display: block; height: 2.75rem; width: auto; transform: translateY(10.75%); }
.bar-actions { display: flex; align-items: center; gap: 0.75rem; justify-self: center; }
.nav { display: flex; justify-self: center; gap: 2rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.5s;
}
.nav a:hover { color: #8D26D4; }
.nav a.is-active { color: #8D26D4; }

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--accent-light);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch { display: flex; align-items: center; gap: 0.25rem; margin-right: 0.5rem; }
.lang-btn {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}
.lang-btn.is-active { color: var(--accent-light); border-color: #8D26D4; background: rgba(141, 38, 212, 0.18); }
.lang-btn:hover { color: var(--accent-light); }

/* Page banner: same photo-banner treatment as the main site's Courses/Rates/etc. */
.page-banner {
  display: flex;
  align-items: center;
  min-height: clamp(18rem, 42vw, 24rem);
  padding: clamp(3.5rem, 11vw, 6rem) 0;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(26, 26, 26, 0.62) 0%, rgba(26, 26, 26, 0.86) 100%), url("hiitfit-gym-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}
.page-banner .wrap { width: 100%; }
.page-banner-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.page-banner-text { margin: 0 auto; max-width: 32rem; color: var(--text); font-size: 1.05rem; line-height: 1.6; }

/* Sections separated by a fading line */
.section-line { position: relative; }
.section-line::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}

/* Embed placeholder: where the Mariana Tek widget code gets dropped in. */
.mt-embed {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.mt-embed-placeholder {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  border: 2px dashed var(--line);
  border-radius: 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}
.mt-embed-placeholder .mt-embed-label {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(141, 38, 212, 0.18);
  color: #c58bef;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mt-embed-placeholder p { margin: 0 0 0.75rem; color: var(--muted); line-height: 1.6; }
.mt-embed-placeholder p:last-child { margin-bottom: 0; }
.mt-embed-placeholder code {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  color: var(--accent-light);
  font-size: 0.8rem;
  text-align: left;
  overflow-x: auto;
  white-space: pre;
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 1.75rem; text-align: center; color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-bottom: 0.75rem; }
.footer-links a { padding: 0.5rem 0; text-decoration: none; transition: color 0.5s; }
.footer-links a:hover { color: #8D26D4; }
.footer-links a.is-active { color: #8D26D4; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin: 0 0 0.75rem; font-size: 0.8rem; }
.footer-legal a { padding: 0.25rem 0; text-decoration: none; transition: color 0.5s; }
.footer-legal a:hover { color: #8D26D4; }

/* Desktop tiers: with 8 nav items + CTA, even wide "desktop" widths need a
   tighter gap/font than the default, or the CTA button gets pushed off. */
@media (min-width: 60.01rem) and (max-width: 75rem) {
  .bar { gap: 0.5rem; }
  .nav { gap: 0.7rem; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.03em; }
  .bar-actions { gap: 0.5rem; }
  .lang-switch { margin-right: 0.25rem; }
  .lang-btn { padding: 0.3rem 0.45rem; font-size: 0.7rem; }
  .bar-actions .button-small { padding: 0.6rem 0.9rem; font-size: 0.78rem; letter-spacing: 0.03em; }
}
@media (min-width: 75.01rem) and (max-width: 90rem) {
  .nav { gap: 1.2rem; }
  .nav a { font-size: 0.82rem; letter-spacing: 0.05em; }
}
@media (min-width: 46.01rem) and (max-width: 60rem) {
  .bar { gap: 0.5rem; }
  .nav { gap: 0.65rem; }
  .nav a { font-size: 0.75rem; letter-spacing: 0.06em; }
  .lang-switch { margin-right: 0.35rem; }
  .lang-btn { padding: 0.3rem 0.45rem; font-size: 0.7rem; }
  .bar-actions { gap: 0.5rem; }
  .bar-actions .button-small { padding: 0.6rem 0.85rem; font-size: 0.78rem; letter-spacing: 0.02em; }
}

/* Mobile */
@media (max-width: 46rem) {
  body { font-size: 1rem; }

  .bar { gap: 0.5rem; }
  .brand img { height: 2.1rem; }
  .lang-switch { gap: 0.2rem; margin-right: 0.35rem; }
  .lang-btn { padding: 0.3rem 0.45rem; font-size: 0.7rem; }
  .bar-actions { gap: 0.5rem; }
  .bar-actions .button-small {
    padding: 0.5rem 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: normal;
    max-width: 6.7rem;
    line-height: 1.15;
    flex-shrink: 0;
  }
  .cta-break { display: inline; }
  .menu-toggle { flex-shrink: 0; }
  .lang-switch { flex-shrink: 0; }

  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    justify-self: stretch;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    overflow-y: auto;
    background: var(--bg);
  }
  .menu-open .nav { display: flex; }
  .nav a {
    padding: 1.15rem 0;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .nav a:first-child { border-top: 1px solid var(--line); }
}
