/* REPS HEALTH CLUB - Complete Design System & Elementor Companion Styles */

/* Container */
.reps-container {
  width: 100%;
  max-width: var(--reps-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.reps-section {
  padding: 96px 0;
  background-color: var(--reps-dark);
  position: relative;
}

.reps-section--alt {
  background-color: var(--reps-dark-secondary);
}

.reps-section--black {
  background-color: var(--reps-black);
}

.reps-eyebrow {
  display: block;
  font-family: var(--reps-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reps-orange);
  margin-bottom: 12px;
}

/* Buttons (Signature Sharp-Cornered Outlined & Solid #F15A29) */
.reps-btn,
.elementor-kit-4 .elementor-button,
.elementor-button.reps-elementor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--reps-font-display);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 2px solid var(--reps-orange);
  background-color: transparent;
  color: var(--reps-orange);
  cursor: pointer;
  transition: var(--reps-transition);
}

.reps-btn:hover,
.reps-btn:focus-visible,
.elementor-kit-4 .elementor-button:hover,
.elementor-kit-4 .elementor-button:focus {
  background-color: var(--reps-orange);
  color: var(--reps-dark);
  border-color: var(--reps-orange);
  box-shadow: 0 10px 28px var(--reps-orange-glow);
}

.reps-btn--solid {
  background-color: var(--reps-orange);
  color: var(--reps-dark);
}

.reps-btn--solid:hover,
.reps-btn--solid:focus-visible {
  background-color: transparent;
  color: var(--reps-orange);
}

.reps-btn--sm {
  padding: 12px 24px;
  font-size: 13px;
}

/* Signature FitnessKIT-inspired Offset L-Shaped Orange Frames */
.reps-offset-frame-right,
.reps-offset-frame-left {
  position: relative;
  display: block;
}

.reps-offset-frame-right {
  padding: 16px 16px 0 0 !important;
}

.reps-offset-frame-left {
  padding: 16px 0 0 16px !important;
}

.reps-offset-frame-right .elementor-widget-container,
.reps-offset-frame-left .elementor-widget-container,
.reps-offset-frame-right > img,
.reps-offset-frame-left > img {
  position: relative;
  z-index: 2;
}

.reps-offset-frame-right img,
.reps-offset-frame-left img {
  position: relative;
  z-index: 2;
  width: 100%;
  object-fit: cover;
  display: block;
}

.reps-offset-frame-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 72%;
  border-top: 12px solid var(--reps-orange);
  border-right: 12px solid var(--reps-orange);
  z-index: 1;
  pointer-events: none;
}

.reps-offset-frame-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 58%;
  border-top: 12px solid var(--reps-orange);
  border-left: 12px solid var(--reps-orange);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  .reps-offset-frame-right {
    padding: 10px 10px 0 0 !important;
  }
  .reps-offset-frame-left {
    padding: 10px 0 0 10px !important;
  }
  .reps-offset-frame-right::before {
    border-top-width: 8px;
    border-right-width: 8px;
  }
  .reps-offset-frame-left::before {
    border-top-width: 8px;
    border-left-width: 8px;
  }
}

/* Uniform Aspect Ratios for Elementor Image Cards */
.reps-img-43 img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.reps-img-11 img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.reps-img-34 img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.reps-img-32 img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

/* Equal-height Pricing Columns */
.reps-pricing-col > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}
.reps-pricing-col .elementor-widget-button {
  margin-top: auto;
}

/* Global Header & Sticky Bar */
.reps-site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.96) 0%, rgba(17, 17, 17, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.reps-site-header.is-overlay-top {
  position: fixed;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom: none;
  backdrop-filter: none;
}

.reps-site-header.is-scrolled {
  position: fixed;
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid rgba(241, 90, 41, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.reps-elementor-header-sec > .elementor-container {
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.reps-elementor-nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-bar .reps-site-header.is-overlay-top,
.admin-bar .reps-site-header.is-scrolled {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .reps-site-header.is-overlay-top,
  .admin-bar .reps-site-header.is-scrolled {
    top: 46px;
  }
}

.reps-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.reps-brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.reps-brand-logo img {
  height: 46px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.reps-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.reps-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(10px, 1vw, 17px);
}

.reps-nav-list > li {
  position: relative;
  flex-shrink: 0;
}

.reps-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  font-family: var(--reps-font-body);
  font-size: clamp(11px, 0.8vw, 12.5px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #D4D4D4;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.reps-nav-list > li > a:hover,
.reps-nav-list > li.current-menu-item > a,
.reps-nav-list > li.current_page_item > a,
.reps-nav-list > li.current-menu-ancestor > a {
  color: var(--reps-white);
  border-bottom-color: var(--reps-orange);
}

.reps-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--reps-dark-secondary);
  border: 1px solid var(--reps-border-dark);
  border-top: 2px solid var(--reps-orange);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--reps-transition);
  z-index: 100;
}

.reps-nav-list > li:hover > .sub-menu,
.reps-nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reps-nav-list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--reps-text);
}

.reps-nav-list .sub-menu a:hover,
.reps-nav-list .sub-menu .current-menu-item > a {
  background: rgba(241, 90, 41, 0.14);
  color: var(--reps-orange);
}

/* Mobile Header Toggle & Drawer */
.reps-mobile-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .reps-elementor-nav-wrap {
    justify-content: flex-end !important;
  }
}

.reps-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--reps-orange);
  background: transparent;
  color: var(--reps-orange);
  cursor: pointer;
}

.reps-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.reps-mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: var(--reps-transition);
}

.admin-bar .reps-mobile-drawer {
  top: 46px;
}

@media (min-width: 783px) {
  .admin-bar .reps-mobile-drawer {
    top: 32px;
  }
}

.reps-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.reps-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--reps-border-dark);
}

.reps-mobile-drawer-nav {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reps-mobile-drawer-nav a {
  display: block;
  padding: 9px 0;
  font-family: var(--reps-font-display);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--reps-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reps-mobile-drawer-nav li.current-menu-item > a,
.reps-mobile-drawer-nav a:hover {
  color: var(--reps-orange);
}

@media (max-width: 1080px) {
  .reps-nav-wrapper,
  .reps-header-cta-desktop,
  .reps-header-cta-col {
    display: none !important;
  }
  .reps-mobile-controls {
    display: flex !important;
  }
  .reps-elementor-header-sec > .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .reps-header-logo-col {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  .reps-header-nav-col {
    width: auto !important;
    flex: 1 1 auto !important;
  }
  .reps-header-logo-col img {
    max-width: 138px !important;
    height: auto !important;
  }
}

/* Global Footer */
.reps-site-footer {
  background-color: var(--reps-black);
  border-top: 2px solid var(--reps-orange);
  padding: 64px 0 0;
}

.reps-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 52px;
}

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

@media (max-width: 640px) {
  .reps-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.reps-footer-logo img {
  height: 54px;
  width: auto;
  margin-bottom: 18px;
}

.reps-footer-heading {
  font-family: var(--reps-font-display);
  font-size: 18px;
  color: var(--reps-white);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.reps-footer-meta {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reps-footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--reps-text);
}

.reps-footer-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--reps-orange);
}

.reps-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reps-footer-links a {
  color: var(--reps-text);
  font-size: 14px;
}

.reps-footer-links a:hover {
  color: var(--reps-orange);
  padding-left: 4px;
}

.reps-footer-timings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reps-footer-timings li {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.reps-footer-timings strong {
  color: var(--reps-orange);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reps-social-squares {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.reps-social-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--reps-white);
  transition: var(--reps-transition);
}

.reps-social-square:hover {
  border-color: var(--reps-orange);
  background-color: var(--reps-orange);
  color: var(--reps-dark);
}

.reps-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: var(--reps-muted);
}

/* Interactive Forms (Contact + Newsletter) */
.reps-newsletter-form {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

.reps-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: var(--reps-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: none;
  color: var(--reps-white);
  font-family: var(--reps-font-body);
  font-size: 14px;
  outline: none;
}

.reps-newsletter-form input[type="email"]:focus {
  border-color: var(--reps-orange);
}

.reps-newsletter-form button {
  height: 48px;
  min-width: 52px;
  padding: 0 16px;
  background: var(--reps-orange);
  border: 2px solid var(--reps-orange);
  color: var(--reps-dark);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--reps-transition);
}

.reps-newsletter-form button:hover {
  background: var(--reps-orange-hover);
  color: var(--reps-white);
}

.reps-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reps-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 640px) {
  .reps-form-row {
    grid-template-columns: 1fr;
  }
}

.reps-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reps-white);
  white-space: nowrap;
}

.reps-field input,
.reps-field select,
.reps-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--reps-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: var(--reps-white);
  font-family: var(--reps-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reps-field input:focus,
.reps-field select:focus,
.reps-field textarea:focus {
  border-color: var(--reps-orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.18);
}

.reps-form-status {
  margin-top: 10px;
  padding: 12px 16px;
  font-size: 14px;
  border-left: 3px solid var(--reps-orange);
  background: rgba(241, 90, 41, 0.12);
  color: var(--reps-white);
  display: none;
}

.reps-form-status.is-visible {
  display: block;
}

.reps-form-status.is-error {
  border-left-color: #ff4d4d;
  background: rgba(255, 77, 77, 0.12);
}

/* Cards & Feature Components (Used by Widgets + Fallback Templates) */
.reps-pricing-card {
  background: var(--reps-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 44px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--reps-transition);
  position: relative;
}

.reps-pricing-card.is-featured {
  border-color: var(--reps-orange);
  background: linear-gradient(180deg, rgba(241, 90, 41, 0.08) 0%, var(--reps-dark) 100%);
}

.reps-pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--reps-orange);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.reps-tier-squares {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.reps-tier-squares span {
  width: 14px;
  height: 14px;
  background: #444444;
  display: inline-block;
}

.reps-tier-squares span.is-active {
  background: var(--reps-orange);
}

.reps-pricing-amount {
  font-family: var(--reps-font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--reps-white);
  margin-bottom: 6px;
}

.reps-pricing-period {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reps-orange);
  margin-bottom: 26px;
}

.reps-pricing-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--reps-text);
}

/* Timing Table Cards */
.reps-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .reps-timing-grid {
    grid-template-columns: 1fr;
  }
}

.reps-timing-card {
  background: var(--reps-dark-secondary);
  border: 1px solid var(--reps-border-dark);
  border-top: 3px solid var(--reps-orange);
  padding: 28px 24px;
  text-align: center;
}

.reps-timing-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reps-orange);
  margin-bottom: 10px;
}

.reps-timing-hours {
  font-family: var(--reps-font-display);
  font-size: 20px;
  color: var(--reps-white);
}

/* Gallery Hover & Lightbox */
.reps-gallery-img-wrap,
.elementor-widget-image.reps-gallery-item img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  cursor: zoom-in;
}

.reps-gallery-img-wrap:hover img,
.elementor-widget-image.reps-gallery-item:hover img {
  transform: scale(1.03);
}

.reps-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.94);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reps-lightbox.is-open {
  display: flex;
}

.reps-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border: 2px solid var(--reps-orange);
}

.reps-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--reps-orange);
  color: var(--reps-dark);
  border: none;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

/* Section Reveal Animations (Graceful Fallback + Reduced Motion Safe) */
.reps-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Elementor Overrides Ensuring Zero Green Remnants & Consistent Spacing */
.elementor-kit-4 .elementor-widget-icon.elementor-view-default .elementor-icon,
.elementor-widget-icon-box .elementor-icon,
.elementor-widget-icon-list .elementor-icon-list-icon i,
.elementor-widget-icon-list .elementor-icon-list-icon svg {
  color: var(--reps-orange);
  fill: var(--reps-orange);
}

.elementor-accordion .elementor-tab-title.elementor-active {
  color: var(--reps-orange);
}

/* Image hover polish inside Elementor cards */
.reps-hover-zoom .elementor-image img,
.reps-hover-zoom img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reps-hover-zoom:hover .elementor-image img,
.reps-hover-zoom:hover img {
  transform: scale(1.04);
}
