/* ===== Perform Better Fitness Center — core styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;600&display=swap');

:root {
  --yellow: #F5DE1F; /* official brand yellow */
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --card: #2A2A2A;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.15);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Type system: 2 fonts x 2 styles, nothing else */
  --fw-display-heavy: 800; /* Barlow Condensed ExtraBold: headings, prices, numbers, logo */
  --fw-display: 700;       /* Barlow Condensed Bold: nav, buttons, labels, tags */
  --fw-body: 400;          /* Inter Regular: body text */
  --fw-body-strong: 600;   /* Inter SemiBold: emphasis */

  --container: 1280px;
  --gap-section: 100px;
  --gap-section-mobile: 56px;

  --radius: 8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: var(--font-body); font-weight: var(--fw-body); }
strong, b, th { font-weight: var(--fw-body-strong); }
em, i, cite, address { font-style: normal; }

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

@media (min-width: 640px) {
  .container { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1024px) {
  .container { padding-left: 80px; padding-right: 80px; }
}

/* Let the page keep growing on large and ultra-wide screens instead of
   staying pinned at 1280px with dead space on either side. */
@media (min-width: 1600px) {
  :root { --container: 1500px; }
  .container { padding-left: 100px; padding-right: 100px; }
}

@media (min-width: 1920px) {
  :root { --container: 1760px; }
  .container { padding-left: 120px; padding-right: 120px; }
}

@media (min-width: 2400px) {
  :root { --container: 2100px; }
}

.section {
  padding-top: var(--gap-section-mobile);
  padding-bottom: var(--gap-section-mobile);
}

@media (min-width: 1024px) {
  .section { padding-top: var(--gap-section); padding-bottom: var(--gap-section); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.eyebrow .rule { width: 28px; height: 3px; background: var(--yellow); flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display-heavy);
  line-height: 1.05;
  text-transform: uppercase;
}

h2 { font-size: clamp(60px, 8vw, 68px); }
h3 { font-size: clamp(22px, 2.5vw, 26px); }

p { font-family: var(--font-body); color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-ghost { color: var(--white); padding: 14px 24px; }
.btn-ghost:hover { color: var(--yellow); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 28px;
}

.divider-v {
  width: 1px;
  height: 40px;
  background: var(--faint);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-display-heavy);
  font-size: 24px;
  letter-spacing: 0.01em;
}
.site-nav .logo .logo-mark { height: 80px; width: auto; }
.site-nav .logo span { color: var(--yellow); }
.site-nav .nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.site-nav .nav-links a:hover { color: var(--yellow); }
.site-nav .nav-toggle {
  background: none;
  color: var(--white);
  display: flex;
  align-items: center;
}

@media (min-width: 780px) {
  .site-nav .nav-links { display: flex; }
  .site-nav .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

@media (min-width: 780px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 0;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--fw-display-heavy); font-size: 26px; margin-bottom: 10px; }
.footer-brand .logo .logo-mark { height: 84px; width: auto; }
.footer-brand .logo span { color: var(--yellow); }
.footer-brand p { font-size: 16px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.footer-social a svg { width: 23px; height: 23px; }
.footer-social a:hover { color: var(--yellow); }

.footer-col h4 {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 17px;
  color: var(--yellow); text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 16px; color: var(--muted); }
.footer-col a:hover { color: var(--white); }
.footer-col li { display: flex; align-items: flex-start; gap: 10px; }
.footer-col li svg { flex-shrink: 0; margin-top: 2px; color: var(--yellow); }

@media (min-width: 900px) {
  .footer-grid { flex-direction: row; justify-content: space-between; padding: 60px 0; }
  .footer-brand { width: 30%; min-width: 240px; }
  .footer-col { width: 20%; min-width: 140px; }
  .footer-col:last-child { width: 28%; min-width: 220px; }
}

.footer-bottom {
  background: var(--charcoal);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .footer-bottom .container { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom .credit { color: var(--yellow); font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: 0.02em; text-transform: uppercase; font-size: 16px; }

/* ---------- Brand colour patterns ---------- */
/* Key phrase in a heading picked out in brand yellow */
.hl { color: var(--yellow); }

/* Full-bleed yellow section with black type, used for high-impact closing CTAs */
.cta-band { background: var(--yellow); color: var(--black); position: relative; overflow: hidden; }
.cta-band h2, .cta-band h3 { color: var(--black); }
.cta-band p { color: rgba(13,13,13,0.75); }
.cta-band .cta-watermark {
  position: absolute; right: -40px; bottom: -60px; height: 140%; width: auto;
  opacity: 0.12; filter: brightness(0); pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }

/* Oversized faded logo behind a section */
.has-watermark { position: relative; overflow: hidden; }
.has-watermark::after {
  content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 580px;
  background: url('../assets/brand/logo.png') no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}
.has-watermark > .container { position: relative; z-index: 1; }
@media (max-width: 700px) { .has-watermark::after { width: 240px; height: 330px; right: -50px; } }

/* Scrolling yellow ticker band */
.brand-ticker { background: var(--yellow); color: var(--black); overflow: hidden; padding: 14px 0; }
.brand-ticker-track {
  display: flex; width: max-content; gap: 0;
  animation: marqueeScroll 38s linear infinite;
  font-family: var(--font-display); font-weight: var(--fw-display-heavy);
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
}
.brand-ticker-track span { display: inline-flex; align-items: center; }
.brand-ticker-track span::after { content: '\2022'; margin: 0 22px; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .brand-ticker-track { animation: none; } }

/* ---------- Icon helper ---------- */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Staff card (flip: photo front, details back) ---------- */
.staff-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }

.staff-card {
  position: relative;
  aspect-ratio: 3/4;
  perspective: 1400px;
  cursor: pointer;
}
.staff-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
@media (hover: hover) {
  .staff-card:hover .staff-card-inner { transform: rotateY(180deg); }
}
.staff-card.is-flipped .staff-card-inner { transform: rotateY(180deg); }

.staff-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.staff-face-front img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-face-front .staff-name-tag {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-display); font-weight: var(--fw-display-heavy);
  font-size: 22px; color: var(--white); text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.staff-face-front::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,13,13,0.75) 0%, transparent 40%);
}

.staff-face-back {
  background: var(--charcoal);
  transform: rotateY(180deg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.staff-face-back h4 {
  font-family: var(--font-display); font-weight: var(--fw-display-heavy);
  font-size: 26px; text-transform: uppercase;
  color: var(--accent, var(--yellow));
  margin-bottom: 4px;
}
.staff-face-back .staff-role {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.staff-face-back p { font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.staff-face-back .staff-quals-label {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 8px;
}
.staff-face-back ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.staff-face-back ul li {
  font-size: 13px; color: var(--muted);
  padding-left: 14px; position: relative;
}
.staff-face-back ul li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--yellow);
}
.staff-flip-hint {
  position: absolute; bottom: 12px; right: 14px; z-index: 2;
  font-size: 12px; color: rgba(255,255,255,0.7);
  font-family: var(--font-display); font-weight: var(--fw-display);
  display: none;
}
@media (hover: none) { .staff-flip-hint { display: block; } }

.staff-card.placeholder .staff-face-front {
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border: 1px dashed rgba(255,255,255,0.18);
}
.staff-card.placeholder .staff-face-front svg { width: 56px; height: 56px; color: var(--muted); opacity: 0.5; }
.staff-card.placeholder .staff-face-front .staff-placeholder-label {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 14px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.staff-card.placeholder .staff-face-back { border: 1px dashed rgba(255,255,255,0.18); align-items: center; text-align: center; }
.staff-card.placeholder .staff-face-back p { color: var(--muted); }

/* ---------- Marquee gallery (auto-scrolling rows) ---------- */
.marquee-gallery { background: var(--black); overflow: hidden; }
.marquee-row { display: flex; overflow: hidden; }
.marquee-row + .marquee-row { margin-top: 8px; }
.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marqueeScroll linear infinite;
}
.marquee-row.reverse .marquee-track { animation-direction: reverse; }
.marquee-row.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 240px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}
@media (max-width: 700px) {
  .marquee-track img { height: 160px; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Free Trial modal ---------- */
.ftm-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  align-items: center; justify-content: center;
  padding: 20px;
}
.ftm-overlay.open { display: flex; }
.ftm-modal {
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.ftm-modal h3 { font-size: 24px; margin-bottom: 6px; }
.ftm-sub { font-size: 16px; margin-bottom: 20px; }
.ftm-close {
  position: absolute; top: 16px; right: 16px;
  background: none; color: var(--white); font-size: 26px; line-height: 1;
}
.ftm-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.ftm-tab {
  flex: 1; background: var(--card); color: var(--muted);
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 16px;
  padding: 10px 8px; border-radius: var(--radius-sm);
}
.ftm-tab.active { background: var(--yellow); color: var(--black); }
.ftm-pane { display: none; flex-direction: column; gap: 14px; }
.ftm-pane.active { display: flex; }
.ftm-pane label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-body); font-size: 16px; color: var(--muted);
}
.ftm-pane input, .ftm-pane select, .ftm-pane textarea {
  background: var(--black); color: var(--white);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: var(--font-body); font-size: 18px;
  resize: vertical;
}
.ftm-pane select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.ftm-pane input[type="date"]::-webkit-calendar-picker-indicator,
.ftm-pane input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}
.ftm-pane input:focus, .ftm-pane select:focus, .ftm-pane textarea:focus {
  outline: 2px solid var(--yellow); outline-offset: 1px;
}
