/* ==========================================================================
   THE BLOC — Design System
   Industrial / raw concrete aesthetic. Strict black & white palette.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-soft: #121212;
  --charcoal: #1c1c1c;
  --gray-900: #232323;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #b8b8b4;
  --off-white: #efeee8;
  --white: #f7f7f2;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vw, 8rem);
  --max-width: 1280px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle concrete-grain texture over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

p { margin: 0 0 1rem; color: var(--gray-300); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--white);
}

/* ---- Rebar tick line: recurring motif from the logo mark ---- */
.rebar {
  position: relative;
  height: 2px;
  background: var(--gray-700);
  margin: 2.5rem 0;
}
.rebar::before, .rebar::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 2px;
  height: 14px;
  background: var(--gray-700);
}
.rebar::before { left: 0; }
.rebar::after { right: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: var(--off-white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 10, 10, 0.92); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.5rem; }
.nav-cta .btn { padding: 0.75rem 1.5rem; font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 4rem;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.06), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 40px),
    var(--black);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0.6rem 0 1.6rem;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5));
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* Page hero (interior pages) — shorter */
.page-hero {
  position: relative;
  padding: 10rem var(--gutter) 4.5rem;
  background: var(--black);
  border-bottom: 1px solid rgba(247,247,242,0.08);
}
.page-hero .eyebrow { margin-bottom: 0.8rem; }
.page-hero p { max-width: 60ch; margin-top: 1.2rem; font-size: 1.05rem; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { padding: var(--section-pad) 0; }
.section-alt { background: var(--black-soft); border-top: 1px solid rgba(247,247,242,0.06); border-bottom: 1px solid rgba(247,247,242,0.06); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.section-head p { max-width: 42ch; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Concrete photo placeholder block (used instead of stock photography)
   ========================================================================== */

.photo-block {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--gray-900), var(--black-soft));
  border: 1px solid rgba(247,247,242,0.1);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-block::after {
  content: attr(data-label);
  padding: 1.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.photo-block::before {
  content: "";
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  width: 22px; height: 22px;
  border-top: 2px solid var(--gray-500);
  border-left: 2px solid var(--gray-500);
  opacity: 0.6;
}
.photo-block.wide { aspect-ratio: 16/10; }
.photo-block.square { aspect-ratio: 1/1; }

/* ==========================================================================
   Feature / value grid
   ========================================================================== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,247,242,0.1); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(247,247,242,0.1); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(247,247,242,0.1); }

.feature-card {
  background: var(--black);
  padding: 2.6rem 2.2rem;
  transition: background 0.35s var(--ease);
}
.feature-card:hover { background: var(--charcoal); }
.feature-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray-500);
  display: block;
  margin-bottom: 1.4rem;
}
.feature-card h3 { margin-bottom: 0.8rem; }

/* ==========================================================================
   Split layout (image + text)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

/* ==========================================================================
   Classes / schedule
   ========================================================================== */

.class-list { display: flex; flex-direction: column; }
.class-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(247,247,242,0.1);
  transition: padding-left 0.3s var(--ease);
}
.class-row:hover { padding-left: 0.8rem; border-color: var(--white); }
.class-row .class-index { font-family: var(--font-display); color: var(--gray-500); font-size: 1.1rem; }
.class-row h3 { margin-bottom: 0.35rem; }
.class-meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }

.schedule-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.schedule-table th, .schedule-table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(247,247,242,0.1);
  font-size: 0.92rem;
}
.schedule-table th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}
.schedule-table td { color: var(--gray-300); }
.schedule-table tr:hover td { color: var(--white); }
.table-wrap { overflow-x: auto; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.price-card {
  border: 1px solid rgba(247,247,242,0.14);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--white); }
.price-card.featured { background: var(--white); color: var(--black); }
.price-card.featured .price-card-tag { color: var(--black); }
.price-card.featured p,
.price-card.featured .price-features li { color: var(--gray-700); }
.price-card.featured h3 { color: var(--black); }
.price-card.featured .price-features li::before { background: var(--black); }

.price-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.2rem;
}
.price-card h3 { margin-bottom: 1rem; }
.price-features { margin: 2rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.price-features li { font-size: 0.92rem; color: var(--gray-300); padding-left: 1.4rem; position: relative; }
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 2px;
  background: var(--white);
}
.price-card .btn { margin-top: auto; width: 100%; }

/* ==========================================================================
   Trainers
   ========================================================================== */

.trainer-card { background: var(--black); }
.trainer-info { padding: 1.6rem 0.2rem; }
.trainer-info h3 { margin-bottom: 0.2rem; }
.trainer-role { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 0.9rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
  background: var(--black);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-quote { font-size: 1.05rem; color: var(--white); margin-bottom: 1.6rem; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-name { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.testimonial-role { font-size: 0.75rem; color: var(--gray-500); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--white);
  color: var(--black);
  padding: var(--section-pad) 0;
  text-align: center;
}
.cta-band h2 { color: var(--black); margin-bottom: 1.4rem; }
.cta-band p { color: var(--gray-700); max-width: 50ch; margin: 0 auto 2.2rem; }
.cta-band .btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.cta-band .btn-primary:hover { background: var(--charcoal); }
.cta-band .btn-outline { border-color: var(--black); color: var(--black); }
.cta-band .btn-outline:hover { background: var(--black); color: var(--white); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247,247,242,0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.1rem;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--white);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select option { background: var(--black); }

.info-list { display: flex; flex-direction: column; gap: 2rem; }
.info-item .eyebrow { margin-bottom: 0.5rem; }
.info-item p { color: var(--white); font-size: 1.05rem; }
.info-item .info-sub { color: var(--gray-500); font-size: 0.88rem; margin-top: 0.2rem; }

.social-row { display: flex; gap: 1rem; margin-top: 2rem; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid rgba(247,247,242,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social-row a:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(247,247,242,0.08);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,247,242,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand img { height: 30px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col p { color: var(--gray-500); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }

  .site-header.mobile-open {
    background: var(--black);
    backdrop-filter: none;
  }

  .site-header.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--black);
    padding: 8rem var(--gutter) 2rem;
    gap: 1.8rem;
    z-index: 1050;
  }
  .site-header.mobile-open .nav-links a { font-size: 1.4rem; }

  .hero-content { max-width: none; }
  .hero-logo { max-width: 320px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .class-row, .event-row { grid-template-columns: 50px 1fr; }
  .class-row .btn { grid-column: 1 / -1; margin-top: 0.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* Events */
.event-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.event-month { font-size: 0.85rem; color: var(--gray-500); letter-spacing: 0.1em; }
.event-day { font-size: 2rem; margin-top: 0.3rem; }

/* ==========================================================================
   Google Maps embed (Contact page)
   ========================================================================== */

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247,247,242,0.1);
  overflow: hidden;
  background: var(--black-soft);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-link { margin-top: 1.5rem; }

@media (max-width: 700px) {
  .map-embed { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   WhatsApp
   ========================================================================== */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-whatsapp svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.form-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(0,0,0,0.55); }
.wa-float:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
