/* =========================================================
   PEAK — Personal Training
   Apple-inspired: generous whitespace, restrained color,
   large type, subtle motion.
   ========================================================= */

:root{
  --black: #262628;
  --gray-900: #333335;
  --gray-800: #2c2c2f;
  --gray-600: #6e6e73;
  --text-muted: rgba(255,255,255,.78);
  --gray-300: #d2d2d7;
  --gray-100: #f5f5f7;
  --white: #ffffff;
  --accent: #0071e3;
  --accent-light: #7ec1ff;
  --accent-dark: #0058b0;
  --border: rgba(255,255,255,.12);
  --border-soft: rgba(255,255,255,.08);

  --max-width: 1120px;
  --section-pad: 128px;
  --radius: 18px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 4px 18px rgba(0,0,0,.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ---------- Site-wide background photo ----------
   A real <img> pinned behind everything, instead of a CSS background-image —
   background-attachment:fixed is unreliable (esp. iOS Safari); a fixed <img>
   element renders consistently everywhere, same as hero/cta-banner media. */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.site-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42,42,45,.78);
}

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

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

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

h1, h2, h3, p{ margin: 0; }

h1, h2, h3{
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Placeholder media blocks ---------- */
.img-placeholder{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(45deg, #e3e3e6, #e3e3e6 10px, #ececee 10px, #ececee 20px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::after{
  content: attr(data-placeholder);
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(255,255,255,.85);
  border-radius: calc(var(--radius) - 6px);
}

/* ---------- Layout helpers ---------- */
.section{
  padding: var(--section-pad) 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section--gray{
  max-width: none;
  background: rgba(50,50,54,.5);
}
.section--gray > *{ max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.section--dark{
  max-width: none;
  background: rgba(8,8,10,.62);
  color: var(--white);
}
.section--dark > *{ max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.section--dark .stat__label{ color: var(--gray-300); }
.section--dark .testimonial{ background: var(--gray-900); color: var(--white); }
.section--dark .testimonial cite{ color: var(--gray-300); }
.section--dark .testimonial__media{
  background:
    repeating-linear-gradient(45deg, #3a3a3c, #3a3a3c 10px, #333335 10px, #333335 20px);
}
.section--dark .testimonial__media::after{ background: rgba(0,0,0,.55); color: var(--gray-300); }

.section__head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__head h2{ margin-top: 8px; }

.eyebrow{
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-light);
  margin: 0 0 8px;
}

.lede{
  font-size: 21px;
  color: var(--text-muted);
}

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

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.btn--primary{
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover{ background: var(--accent-dark); }

.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--ghost:hover{ border-color: var(--white); }

.btn--full{ width: 100%; margin-top: 8px; }

.btn--call{
  background: #2fae52;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  padding: 20px 36px;
  gap: 10px;
}
.btn--call:hover{ background: #26943f; }

.btn--email{
  background: var(--accent);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  padding: 16px 32px;
}
.btn--email:hover{ background: var(--accent-dark); }

/* ---------- Nav ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(29,29,31,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
}
.nav__logo img{ display: block; }
.nav__links{
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a{
  color: rgba(255,255,255,.85);
  font-size: 15px;
  transition: color .2s var(--ease);
}
.nav__links a:hover{ color: var(--white); }
.nav__links a.active{ color: var(--white); }
.nav__cta{
  background: var(--accent);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 980px;
  font-weight: 500;
}
.nav__cta:hover{ background: var(--accent-dark); }

.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span{
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}
.hero__media{
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #2c2c2e, #2c2c2e 10px, #232325 10px, #232325 20px);
}
.hero__media::after{ background: rgba(0,0,0,.55); color: var(--gray-300); }
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 18%;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.6) 100%);
}
.hero__content{
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px;
}
.hero .eyebrow{ color: #7ec1ff; }
.hero h1{
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__sub{
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__actions .btn--ghost{
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.hero__actions .btn--ghost:hover{ border-color: var(--white); }
.hero__scroll{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  z-index: 1;
}

/* ---------- Split (About) ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media{ aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.split__media img{ width: 100%; height: 100%; object-fit: cover; }
.split__text .lede{ margin: 20px 0 16px; }
.split__text p{ margin-bottom: 16px; color: var(--text-muted); font-size: 18px; }
.split__text p.lede{ color: var(--white); }

.credentials{
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.credentials li{
  padding-left: 26px;
  position: relative;
  font-size: 17px;
  color: var(--white);
}
.credentials li::before{
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

/* ---------- Feature cards (Approach) ---------- */
.feature{
  text-align: center;
  padding: 8px;
}
.feature__icon{
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.feature h3{ font-size: 21px; margin-bottom: 10px; }
.feature p{ color: var(--text-muted); font-size: 17px; }

/* ---------- Program / offer cards ---------- */
.card{
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.22);
}
.card__media{ aspect-ratio: 4/3; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.card__media img, .card__media video{ width: 100%; height: 100%; object-fit: cover; }
.card h3{ font-size: 22px; margin-bottom: 8px; }
.card p{ color: var(--text-muted); font-size: 16px; margin-bottom: 4px; }
.card__price{ font-weight: 600; color: var(--white) !important; margin: 8px 0 12px !important; font-size: 17px; }
.link-arrow{
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
}

/* ---------- Stats ---------- */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.stats--2{
  grid-template-columns: repeat(2, 1fr);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.stat__num{
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
}
.stat__label{
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonial{
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  color: var(--white);
}
.testimonial__media{
  width: 56px; height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  min-height: unset;
  overflow: hidden;
}
.testimonial__media img{ width: 100%; height: 100%; object-fit: cover; }
.testimonial__media::after{ font-size: 9px; inset: 4px; }
.testimonial p{
  font-size: 17px;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial cite{
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal{
  max-width: 720px;
  margin: 0 auto;
}
.legal h1{
  font-size: clamp(32px, 4vw, 44px);
  margin: 8px 0 20px;
}
.legal h3{
  font-size: 20px;
  margin: 32px 0 10px;
}
.legal p{
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 4px;
}
.legal .lede{ color: var(--white); margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.gallery img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s var(--ease);
}
.gallery img:hover{ transform: scale(1.04); }

/* ---------- Pricing ---------- */
.price-list{
  max-width: 640px;
  margin: 0 auto;
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 32px;
}
.price-list ul{
  display: grid;
}
.price-list li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child{ border-bottom: none; }
.price-list__label{
  font-size: 18px;
  color: var(--white);
}
.price-list__label small{
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.price-list__amount{
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq{ max-width: 720px; margin: 0 auto; }
.faq__item{
  border-bottom: 1px solid var(--border);
}
.faq__question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  padding: 22px 4px;
  cursor: pointer;
}
.faq__icon{
  width: 20px; height: 20px;
  position: relative;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after{
  content: "";
  position: absolute;
  background: var(--white);
  transition: transform .25s var(--ease);
}
.faq__icon::before{ width: 100%; height: 2px; top: 9px; left: 0; }
.faq__icon::after{ width: 2px; height: 100%; top: 0; left: 9px; }
.faq__item.open .faq__icon::after{ transform: rotate(90deg); }
.faq__answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq__answer p{
  padding: 0 4px 22px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Contact ---------- */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact--simple{
  display: block;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact--simple .lede{ margin: 12px auto 0; max-width: 480px; }

.contact__actions{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.contact__actions .btn{ width: 100%; }

.contact__call-note{
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
}

.contact__hint{
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.contact__hint-title{
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.contact__hint ul{
  display: grid;
  gap: 10px;
}
.contact__hint li{
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  color: var(--text-muted);
}
.contact__hint li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

.contact__details{
  margin-top: 36px;
  display: grid;
  gap: 16px;
  text-align: center;
}
.contact__details p{ font-size: 17px; color: var(--text-muted); }
.contact__details strong{ color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.contact__details a{ color: var(--accent-light); }

.contact__locations{
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}
.contact__locations figure{
  margin: 0;
  flex: 1;
}
.contact__locations img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.contact__locations figcaption{
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.contact__social{
  display: flex;
  gap: 20px;
  margin-top: 28px;
  justify-content: center;
}
.contact__social a{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 14px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact__social a svg{
  background: var(--black);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}
.contact__social a:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer__links{ display: flex; gap: 20px; }
.footer__links a{ color: var(--text-muted); }
.footer__links a:hover{ color: var(--white); }

/* ---------- CTA Banner ---------- */
.cta-banner{
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}
.cta-banner__media{
  position: absolute;
  inset: 0;
}
.cta-banner__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.cta-banner__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.75) 100%);
}
.cta-banner__content{
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 96px 24px;
}
.cta-banner .eyebrow{ color: #7ec1ff; }
.cta-banner h2{
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-banner__sub{
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  :root{ --section-pad: 88px; }

  .nav__links{
    position: fixed;
    top: 52px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(29,29,31,.97);
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav__links.open{ max-height: 400px; }
  .nav__links a{
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 15px;
  }
  .nav__cta{
    border-radius: 0;
    text-align: center;
  }
  .nav__toggle{ display: flex; }

  .grid--3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; gap: 32px; }
  .split__media{ aspect-ratio: 3/4; }
  .contact{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; gap: 40px; }
  .cta-banner__content{ padding: 64px 24px; }
}
