/* ==========================================================================
   IRON HOUSE GYM — Design Tokens
   Dark premium fitness. Warm near-black base, ember accent, industrial type.
   ========================================================================== */

:root{
  --black:        #0b0b0a;
  --charcoal:     #141210;
  --steel:        #1e1a16;
  --steel-2:      #262019;
  --line:         #3a332c;
  --line-soft:    #2a251f;

  --cream:        #efe8dc;
  --cream-dim:    #c9c0b2;
  --muted:        #8c8377;

  --ember:        #c1440e;
  --ember-light:  #e2662f;
  --ember-dark:   #7c2c09;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 2px;
  --container: 1180px;
  --section-pad: 6.5rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

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

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

ul{ list-style: none; margin: 0; padding: 0; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  color: var(--cream);
  letter-spacing: 0.005em;
}

p{ margin: 0; }

table{ border-collapse: collapse; }

:focus-visible{
  outline: 2px solid var(--ember-light);
  outline-offset: 3px;
}

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

.section{ padding: var(--section-pad) 0; }

.section-head{
  max-width: 640px;
  margin-bottom: 3.5rem;
}
.section-head h2{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 0.9rem;
}
.section-head p{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}
.section-head.light p{ color: var(--cream-dim); }

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--ember);
  color: var(--cream);
  border-color: var(--ember);
}
.btn-primary:hover{
  background: var(--ember-light);
  border-color: var(--ember-light);
}

.btn-outline{
  background: transparent;
  color: var(--cream);
  border-color: rgba(239,232,220,0.35);
}
.btn-outline:hover{
  border-color: var(--cream);
  background: rgba(239,232,220,0.06);
}

.btn-small{ padding: 0.65rem 1.4rem; font-size: 0.85rem; }
.btn-large{ padding: 1.15rem 2.8rem; font-size: 1.05rem; }
.btn-block{ width: 100%; }

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

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background-color .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(11,11,10,0.92);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  border-bottom-color: var(--line-soft);
}

.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo-mark{
  width: 38px; height: 38px;
  border: 1px solid var(--ember);
  color: var(--ember-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius);
}
.logo-text{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.logo-text em{
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ember-light);
  margin-top: 0.25rem;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.main-nav ul{
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul a{
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color .2s ease;
  position: relative;
}
.main-nav ul a:hover{ color: var(--cream); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--cream);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

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

.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,10,0.55) 0%, rgba(11,11,10,0.65) 45%, rgba(11,11,10,0.96) 100%),
    linear-gradient(90deg, rgba(11,11,10,0.55) 0%, rgba(11,11,10,0.05) 55%);
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.75rem 7rem;
}

.hero-tagline{
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ember-light);
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: rise .7s ease forwards .1s;
}

.hero-headline{
  font-size: clamp(3.2rem, 8.5vw, 6.6rem);
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.hero-headline .line{
  display: block;
  overflow: hidden;
}
.hero-headline .line span{
  display: block;
}
.hero-headline .line:nth-child(1){ opacity: 0; animation: rise .8s ease forwards .25s; }
.hero-headline .line:nth-child(2){ opacity: 0; animation: rise .8s ease forwards .4s; }

.hero-sub{
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 34ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: rise .8s ease forwards .55s;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: rise .8s ease forwards .7s;
}

.scroll-cue{
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.1s;
}
.scroll-cue-line{
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--ember-light), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes scrollLine{
  0%, 100%{ transform: scaleY(0.6); transform-origin: top; opacity: 0.5; }
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .hero-tagline, .hero-headline .line, .hero-sub, .hero-actions, .scroll-cue{
    animation: none !important;
    opacity: 1 !important;
  }
  .scroll-cue-line{ animation: none !important; }
  html{ scroll-behavior: auto; }
}

/* ==========================================================================
   Why Iron House — divided feature rows (not cards)
   ========================================================================== */

.why{ background: var(--black); }

.feature-list{
  border-top: 1px solid var(--line);
}
.feature-row{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-icon{
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember-light);
}
.feature-icon svg{ width: 26px; height: 26px; }
.feature-text h3{
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.feature-text p{
  color: var(--muted);
  max-width: 58ch;
  font-size: 1rem;
}

/* ==========================================================================
   Membership
   ========================================================================== */

.membership{
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.plans-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.plan-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  background: var(--steel);
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover{
  border-color: var(--cream-dim);
  transform: translateY(-4px);
}
.plan-card h3{
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream-dim);
  text-transform: none;
}
.plan-price{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--cream);
  line-height: 1;
}
.plan-price span{
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}
.plan-desc{
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}
.plan-badge{
  position: absolute;
  top: -13px;
  left: 1.7rem;
  background: var(--ember);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
}
.plan-card.featured{
  border-color: var(--ember);
  background: var(--steel-2);
}
.plan-card.featured:hover{ border-color: var(--ember-light); }

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

.classes-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.class-card{
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.class-card-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,10,0.05) 40%, rgba(11,11,10,0.92) 100%);
  transition: background .3s ease;
}
.class-card-body{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.4rem;
}
.class-card-body h3{
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.class-card-body p{
  color: var(--cream-dim);
  font-size: 0.9rem;
  max-width: 26ch;
}
.class-card:hover .class-card-scrim{
  background: linear-gradient(180deg, rgba(11,11,10,0.15) 30%, rgba(11,11,10,0.94) 100%);
}

/* ==========================================================================
   Transformation / Results
   ========================================================================== */

.transformation{ background: var(--black); }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}
.gallery-item{
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  filter: grayscale(15%);
}
.gallery-item:hover img{
  transform: scale(1.05);
  filter: grayscale(0%);
}

.quote-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.6rem;
}
.quote-row blockquote{
  margin: 0;
  border-left: 2px solid var(--ember);
  padding-left: 1.2rem;
}
.quote-row p{
  color: var(--cream-dim);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.quote-row cite{
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   About
   ========================================================================== */

.about{ background: var(--charcoal); }

.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-media img{
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-content h2{
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}
.about-content p{
  color: var(--cream-dim);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.about-stats{
  display: flex;
  gap: 2.6rem;
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stat span{
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--ember-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat p{
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Location
   ========================================================================== */

.location{ background: var(--black); }

.location-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: stretch;
}
.location-info h2{
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}
.location-address{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-dim);
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
}
.location-address svg{ width: 20px; height: 20px; color: var(--ember-light); flex-shrink: 0; }

.hours-table{
  width: 100%;
  margin-bottom: 2.2rem;
}
.hours-table tr{ border-bottom: 1px solid var(--line); }
.hours-table tr:first-child{ border-top: 1px solid var(--line); }
.hours-table td{
  padding: 0.85rem 0;
  font-size: 0.95rem;
}
.hours-table td:first-child{ color: var(--cream-dim); font-weight: 500; }
.hours-table td:last-child{ color: var(--muted); text-align: right; }

.location-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

.location-map{
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(35%) contrast(1.05) brightness(0.9);
}
.location-map iframe{ width: 100%; height: 100%; min-height: 340px; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-final{
  padding: 7rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--black) 0%, var(--charcoal) 100%);
  border-top: 1px solid var(--line-soft);
}
.cta-final h2{
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  margin-bottom: 2.4rem;
  color: var(--cream);
}

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

.site-footer{
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  padding: 4.5rem 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-brand p{
  color: var(--muted);
  margin: 1.1rem 0 1.4rem;
  max-width: 30ch;
  font-size: 0.92rem;
}
.social-links{ display: flex; gap: 0.8rem; }
.social-links a{
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  transition: border-color .2s ease, color .2s ease;
}
.social-links a svg{ width: 17px; height: 17px; }
.social-links a:hover{ border-color: var(--ember-light); color: var(--ember-light); }

.footer-links h4, .footer-contact h4, .footer-hours h4{
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.footer-links ul{ display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a{ color: var(--muted); font-size: 0.92rem; transition: color .2s ease; }
.footer-links a:hover{ color: var(--cream); }

.footer-contact p, .footer-hours p{
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.footer-bottom{
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0;
  text-align: center;
}
.footer-bottom p{
  color: var(--muted);
  font-size: 0.82rem;
}

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

@media (max-width: 980px){
  :root{ --section-pad: 4.5rem; }

  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--charcoal);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .main-nav ul a{ font-size: 1.1rem; }
  .nav-toggle{ display: flex; }

  .plans-grid{ grid-template-columns: repeat(2, 1fr); }
  .classes-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .quote-row{ grid-template-columns: 1fr; gap: 2rem; }

  .about-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media img{ aspect-ratio: 16/9; }

  .location-grid{ grid-template-columns: 1fr; }
  .location-map{ min-height: 280px; }

  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 640px){
  .hero-content{ padding-bottom: 5rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }

  .feature-row{ grid-template-columns: 56px 1fr; gap: 1.2rem; }

  .plans-grid{ grid-template-columns: 1fr; }
  .classes-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }

  .footer-grid{ grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-brand{ grid-column: auto; }
  .footer-grid > div:not(:first-child){
    padding-top: 1.8rem;
    border-top: 1px solid var(--line-soft);
  }
  .location-actions .btn{ flex: 1; }
}
