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

:root {
  --red: #E8001D;
  --matte-black: #0a0a0a;
  --near-black: #111111;
  --charcoal: #1a1a1a;
  --white: #ffffff;
  --mid-gray: #888888;
  
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--matte-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,29,0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 12px 30px; /* Adjust for border */
}

.btn-secondary:hover {
  background-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Typography Utilities */
.text-red { color: var(--red); }
.text-glow { text-shadow: 0 0 40px rgba(232,0,29,0.3); }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background-color: rgba(10,10,10,0.0);
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.125rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--red);
}

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

.nav-right a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 500;
  transition: opacity 0.2s;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  font-size: 1.125rem;
}

.nav-right a:hover {
  opacity: 0.8;
}

.nav-right svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: 0.3s;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--matte-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-menu a.active { color: var(--red); }

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
}

/* Footer */
footer {
  background-color: var(--matte-black);
  border-top: 2px solid var(--red);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: var(--red);
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.8;
}

.footer-social svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copyright {
  text-align: center;
  color: var(--mid-gray);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base Card */
.card {
  background-color: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

/* Hero Common */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.75), rgba(10,10,10,0.4));
  z-index: -1;
}

/* Home Hero */
.home-hero {
  height: 100vh;
  justify-content: center;
}

.home-hero .hero-bg {
  background-size: cover;
  animation: bgDrift 12s ease-in-out alternate infinite;
}

@keyframes bgDrift {
  0% { background-position: 50% 55%; }
  100% { background-position: 50% 60%; }
}

.home-hero-content {
  text-align: center;
  max-width: 800px;
}

.eyebrow {
  font-family: var(--font-body);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.home-hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  margin-bottom: 24px;
  line-height: 0.95;
  font-weight: 800;
}

.home-hero .tagline {
  font-size: 1.125rem;
  color: #aaa;
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-row { flex-direction: column; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--white);
  opacity: 0.5;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Section Common */
.section {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  text-align: center;
  margin-bottom: 64px;
  font-weight: 800;
}

/* Stats Bar */
.stats-bar {
  background-color: var(--near-black);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 72px);
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mid-gray);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Feature Cards */
.feature-icon {
  color: var(--red);
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.card p {
  color: #aaa;
}

/* Classes Grid */
.class-card {
  height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--charcoal);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.class-img-wrap {
  height: 60%;
  position: relative;
  overflow: hidden;
}

.class-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.class-card:hover .class-img {
  transform: scale(1.05);
}

.class-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0), rgba(26,26,26,1));
}

.class-content {
  height: 40%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.class-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.class-tag {
  font-size: 14px;
  color: var(--mid-gray);
}

/* Testimonials */
.testimonials-section {
  background-color: var(--near-black);
}

.review-card {
  border-left: 4px solid var(--red);
}

.stars {
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--white);
}

.review-author {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* About / Trainer */
.about-hero {
  padding: 160px 0 120px;
  background: radial-gradient(circle at top right, rgba(232,0,29,0.1), transparent 50%), var(--matte-black);
}

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

.trainer-img-wrapper {
  position: relative;
}

.trainer-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.trainer-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.trainer-img-main {
  border-left: 4px solid var(--red);
  box-shadow: 0 0 40px rgba(232,0,29,0.2);
  aspect-ratio: 3/4;
  object-position: center top;
}

.trainer-img-secondary {
  margin-top: 40px;
  border-right: 4px solid var(--red);
  box-shadow: 4px 8px 32px rgba(0,0,0,0.6);
  aspect-ratio: 3/4;
  object-position: center top;
}

@media (max-width: 480px) {
  .trainer-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trainer-img-secondary { margin-top: 24px; }
}

.trainer-name {
  font-size: clamp(48px, 6vw, 64px);
  margin-bottom: 8px;
  font-weight: 800;
}

.trainer-title {
  color: var(--red);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  font-weight: 500;
}

.trainer-bio {
  color: #aaa;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
}

/* Pull Quote */
.pull-quote {
  background-color: var(--near-black);
  padding: 120px 0;
  position: relative;
  text-align: center;
}

.pull-quote::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-color: rgba(232,0,29,0.05);
  opacity: 0.3;
  pointer-events: none;
}

.quote-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 240px;
  font-family: serif;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
  z-index: 1;
}

.quote-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 24px;
}

.quote-author {
  position: relative;
  z-index: 2;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  background: radial-gradient(circle at center, rgba(232,0,29,0.15), transparent 60%), var(--matte-black);
  text-align: center;
  padding: 120px 0;
}

.final-cta .section-title {
  margin-bottom: 24px;
}

.final-cta-sub {
  color: #aaa;
  font-size: 1.125rem;
  margin-bottom: 48px;
}

/* Pricing Page */
.pricing-hero {
  background-color: var(--near-black);
  padding: 160px 0 80px;
  text-align: center;
}

.pricing-sub {
  color: #aaa;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--red);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

@media (max-width: 1024px) {
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
}

.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background-color: var(--red);
  color: var(--white);
  padding: 4px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-name {
  font-size: 32px;
  color: var(--mid-gray);
  margin-bottom: 16px;
  font-weight: 700;
}

.popular .tier-name {
  color: var(--red);
}

.tier-price {
  font-size: 64px;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 32px;
}

.tier-price span {
  font-size: 24px;
  color: var(--mid-gray);
  font-weight: 600;
}

.tier-features {
  flex-grow: 1;
  margin-bottom: 40px;
}

.tier-features li {
  margin-bottom: 16px;
  color: #ccc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tier-features li::before {
  content: "✓";
  color: var(--red);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ Accordion */
.faq-section {
  background-color: var(--near-black);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 24px;
  color: var(--red);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  color: #aaa;
}

/* Gym gallery */
.gym-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gym-gallery-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.4s ease;
}

.gym-gallery-item:hover .gym-gallery-img {
  transform: scale(1.02);
}

.gym-gallery-item {
  overflow: hidden;
}

@media (max-width: 768px) {
  .gym-gallery { grid-template-columns: 1fr; }
  .gym-gallery-img { height: 260px; }
}

/* Reviews header with Google badge */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.reviews-header .section-title {
  margin-bottom: 0;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 4px;
}

.google-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.google-stars {
  color: #fbbc05;
  font-size: 1rem;
  letter-spacing: 1px;
}

.google-count {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.review-source {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .reviews-header { flex-direction: column; align-items: flex-start; }
}

/* Tier savings badge */
.tier-savings {
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Best Value badge (non-popular) */
.tier-badge-alt {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.amenity-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232,0,29,0.3);
}

.amenity-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--red);
  flex-shrink: 0;
}

.amenity-item span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Hamburger button reset */
button.hamburger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
