/* ===== Transform Fitness Hub ===== */

:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --dark: #1c1c1c;
  --grey: #8a8a8a;
  --light-grey: #cfcfcf;
  --off-white: #f2f1ee;
  --white: #ffffff;
  --accent: #e8412c;
  --accent-dark: #c4331f;
  --font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: 10px;
}

.section-head p {
  color: var(--grey);
  margin-top: 14px;
  font-size: 1.05rem;
}

.section-pad { padding: 100px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 34px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 20px 0;
  background: transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: 52px;
  transition: height 0.3s ease;
}

.site-header.scrolled .brand img { height: 42px; width: 42px; }

.brand-text {
  font-family: var(--font);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

.brand-text .line1 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.brand-text .line2 {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(105deg, rgba(8,8,8,0.92) 0%, rgba(10,10,10,0.72) 45%, rgba(10,10,10,0.4) 100%), url('../img/hero-gym.jpg') center 30% / cover no-repeat;
  color: var(--white);
}

.hero-content { max-width: 640px; padding-top: 90px; padding-bottom: 70px; }

.hero-content .eyebrow { display: inline-block; margin-bottom: 18px; }

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }

.hero-content .sub {
  font-size: 1.15rem;
  color: var(--light-grey);
  max-width: 500px;
  margin-bottom: 38px;
}

.hero-btns { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 22px;
  flex-wrap: wrap;
}

.hero-meta div { display: flex; align-items: center; gap: 10px; }
.hero-meta svg { flex-shrink: 0; color: var(--accent); }
.hero-meta span { font-size: 0.92rem; color: var(--light-grey); }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.scroll-cue .bar {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollmove 1.8s infinite;
}
@keyframes scrollmove {
  0% { opacity: 0; transform: translateY(-8px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ===== Feature strip ===== */
.feature-strip {
  background: var(--black);
  color: var(--white);
  padding: 42px 0;
}
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-item svg { color: var(--accent); flex-shrink: 0; }
.feature-item h4 {
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
.feature-item p { font-size: 0.82rem; color: var(--grey); text-transform: none; font-family: var(--font-body); margin-top: 2px; }

/* ===== About ===== */
.about { background: var(--off-white); }
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-media { position: relative; }
.about-media img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-media .tag {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--accent);
  color: var(--white);
  padding: 22px 26px;
  border-radius: 4px;
  font-family: var(--font);
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 12px 30px rgba(232,65,44,0.35);
}
.about-media .tag .big { font-size: 2rem; font-weight: 700; display: block; line-height: 1; }
.about-media .tag .small { font-size: 0.7rem; letter-spacing: 0.15em; }

.about-text .eyebrow { margin-bottom: 12px; display: block; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 20px; }
.about-text p { color: #4a4a4a; margin-bottom: 26px; }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 32px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.check-list svg { color: var(--accent); flex-shrink: 0; }

/* ===== Programmes ===== */
.programmes { background: var(--white); }
.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.prog-card {
  background: var(--black);
  color: var(--white);
  padding: 40px 28px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.prog-card:hover { transform: translateY(-8px); }
.prog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.prog-card:hover::before { transform: scaleX(1); }
.prog-card .num {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  display: block;
}
.prog-card svg { color: var(--accent); margin-bottom: 20px; }
.prog-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.prog-card p { color: var(--grey); font-size: 0.92rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)), url('../img/facility-dumbbells.jpg') center / cover no-repeat fixed;
  color: var(--white);
  text-align: center;
}
.cta-banner .eyebrow { justify-content: center; }
.cta-banner h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 28px; }
.cta-banner p { color: var(--light-grey); max-width: 560px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ===== Testimonials ===== */
.testimonials { background: var(--off-white); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.test-card {
  background: var(--white);
  padding: 34px 30px;
  border-radius: 4px;
  border: 1px solid #e6e4df;
}
.test-card .stars { color: var(--accent); margin-bottom: 16px; letter-spacing: 2px; }
.test-card p { color: #444; font-style: italic; margin-bottom: 22px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-weight: 700;
}
.test-author .name { font-weight: 700; font-size: 0.92rem; }
.test-author .role { font-size: 0.78rem; color: var(--grey); }

/* ===== Location ===== */
.location { background: var(--black); color: var(--white); }
.loc-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}
.loc-info {
  background: var(--near-black);
  padding: 56px 48px;
}
.loc-info .eyebrow { display: block; margin-bottom: 12px; }
.loc-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 26px; }

.loc-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.loc-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.loc-item h4 { font-family: var(--font-body); font-size: 0.95rem; text-transform: none; letter-spacing: 0; font-weight: 700; margin-bottom: 4px; }
.loc-item p, .loc-item a { color: var(--grey); font-size: 0.92rem; }
.loc-item a:hover { color: var(--accent); }

.social-row { display: flex; gap: 12px; margin-top: 30px; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.map-wrap { min-height: 480px; position: relative; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(0.3) contrast(1.1); }

/* ===== Footer ===== */
.site-footer { background: var(--near-black); color: var(--grey); padding: 50px 0 24px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 44px; width: 44px; }
.footer-brand span { font-family: var(--font); color: var(--white); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; font-size: 1.1rem; }

.footer-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip .container { grid-template-columns: repeat(2, 1fr); }
  .about .container { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .test-grid { grid-template-columns: repeat(1, 1fr); max-width: 480px; margin: 0 auto; }
  .loc-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 360px; }
}

@media (max-height: 800px) {
  .scroll-cue { display: none; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .main-nav.open ul { flex-direction: column; gap: 34px; text-align: center; }
  .main-nav.open a { font-size: 1.4rem; }

  .prog-grid { grid-template-columns: 1fr; }
  .feature-strip .container { grid-template-columns: 1fr; gap: 20px; }
  .check-list { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .loc-info { padding: 44px 26px; }
  .cta-banner { background-attachment: scroll; }
  .about-media .tag { right: 10px; }
  .section-pad { padding: 70px 0; }
}
