/* =====================================================
   FITPATT SERVICES — SERVICES PAGE STYLES
===================================================== */

/* Layout */
.container{
  width:min(1100px, 90vw);
  margin-inline:auto;
}

/* Section */
section{
  padding:70px 0
}

.section-title{
  font-size: clamp(24px, 3vw, 36px);
  margin:0 0 10px
}

.section-sub{
  color:var(--muted);
  margin:0 0 26px
}

:root {
  --sticky-offset: 110px;
}

[id]{
  scroll-margin-top: var(--sticky-offset);
}

@media (max-width: 840px){
  :root { --sticky-offset: 90px; }
}


/* =====================================================
   SERVICES GRID
===================================================== */

.services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px
}

.service{
  padding:18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service:hover,
.service:focus-visible{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.service h3{
  margin:12px 0 6px
}

.service p{
  color:var(--muted);
  margin:0
}

@media (max-width: 960px){
  .services{
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 640px){
 .services{
    grid-template-columns: 1fr
  }
}


/* =====================================================
   PRODUCT CARDS
===================================================== */

.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:22px;
  align-items:stretch;
}

.product-card{
  padding:18px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display:flex;
  flex-direction:column;
}

.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.product-card img{
  width:100%;
  height:200px;
  object-fit:contain;
  margin-bottom:14px;
}

.product-card h4{
  margin:0 0 6px
}

.product-card p{
  margin:0;
  color:var(--muted);
  font-size:14px
}

.product-card em{
  font-style:italic;
  opacity:.85;
}

.whatsapp-btn{
  display:inline-block;
  margin-top:14px;
  padding:12px 18px;
  border-radius:12px;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.whatsapp-btn:hover{
  opacity:.9
}


/* =====================================================
   SERVICE CARD UX
===================================================== */

.service[role="button"]{
  cursor:pointer;
  outline:0;
}

.service[role="button"]:focus-visible{
  box-shadow: 0 0 0 3px var(--ring), 0 14px 30px rgba(0,0,0,.25);
}


/* =====================================================
   SERVICE MODAL
===================================================== */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(50px) saturate(110%);
  z-index: 1000;
  padding: 20px;
}

.modal.open{
  display: flex;
}

.modal-dialog{
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
}

.modal-close{
  position:absolute;
  top:10px;
  right:10px;
  font-size:22px;
  line-height:1;
  padding:8px 12px;
  border-radius:10px;
  background: rgba(255,255,255,0.9);
  border:1px solid rgba(0,0,0,0.15);
  cursor:pointer;
}

.modal-title{
  margin:6px 48px 8px 6px;
  font-size: clamp(20px, 2.5vw, 26px);
}

.modal-body{
  padding:6px;
  text-align:center;
}


/* =====================================================
   MODAL MEDIA
===================================================== */

.modal .media{
  width:100%;
  max-width:900px;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.3);
}

/* SmashIt video */
#serviceModal #smashitVideo.media{
  width:55%;
  max-width:600px;
  display:block;
  margin:0 auto;
}

/* Group Class video */
#serviceModal #groupClassVideo.media{
  width:70%;
  max-width:700px;
  display:block;
  margin:0 auto;
}

@media (max-width:640px){

  #serviceModal #smashitVideo.media{
    width:95%;
    max-width:95%;
  }

  #serviceModal #groupClassVideo.media{
    width:95%;
    max-width:95%;
  }
}


/* =====================================================
   PT SLIDER
===================================================== */

.pt-slider{
  position: relative;
  margin: 12px auto 0;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: #00000010;
}

.pt-track{
  display:flex;
  width:100%;
  transition: transform 320ms ease;
  will-change: transform;
}

.pt-slide{
  min-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
}

.pt-slide img{
  width:100%;
  height:auto;
  max-height:70vh;
  object-fit:contain;
  background: transparent;
}

.pt-prev,
.pt-next{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  padding:10px 14px;
  border-radius:10px;
  background: rgba(255,255,255,0.85);
  border:1px solid rgba(0,0,0,0.15);
  cursor:pointer;
  font-size:18px;
}

.pt-prev{ left:10px; }
.pt-next{ right:10px; }

.pt-dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  background: rgba(0,0,0,0.35);
  padding:6px 10px;
  border-radius:999px;
}

.pt-dots .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background:#cfcfcf;
}

.pt-dots .dot[aria-selected="true"]{
  background:#ffffff;
}


/* =====================================================
   PRODUCT MODAL SLIDER
===================================================== */

.product-modal-content .pt-slider{
  max-width:560px;
  margin:0 auto 14px;
}

.product-modal-content .pt-slide img{
  max-height:380px;
  object-fit:contain;
}

