/* =============================================
   SUPRAMAR Fitness Club - CSS JavaScript
   ============================================= */

/* CSS Variables  */
:root {
  /* Background - Black */
  --background: #000000;
  /* Foreground - Cream/Beige */
  --foreground: #e8e0d0;
  
  /* Primary - Cream/Beige */
  --primary: #e8d5b5;
  --primary-foreground: #000000;
  
  /* Secondary - Olive Green */
  --secondary: #4a5d4a;
  --secondary-foreground: #e8e0d0;
  
  /* Muted - Light Gray */
  --muted: #f2f2f2;
  --muted-foreground: #4d4d4d;
  
  /* Accent - Dark Brown */
  --accent: #3d302a;
  --accent-foreground: #e8e0d0;
  
  /* Card */
  --card: #0d0d0d;
  --card-foreground: #e8e0d0;
  
  --border: #333333;
  
  --font-family: 'Sora', system-ui, sans-serif;
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

em,
i {
  font-style: normal !important;
}

/* Hide scrollbars (keep scrolling) */
html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html.device-phone,
html.device-ipad,
html.device-phone body,
html.device-ipad body {
  overscroll-behavior-y: none;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.scroll-locked {
  touch-action: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  transition: var(--transition);
  padding: 1.25rem 2rem;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.header.menu-open {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: none;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3rem);
  min-width: 0;
}

.nav-left {
  grid-column: 1;
  justify-self: start;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.9);
  transition: var(--transition);
  position: relative;
  font-weight: 400;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  grid-column: 2;
  justify-self: center;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: height 0.35s ease;
  will-change: height;
}

.header.scrolled .logo-img {
  height: 48px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 110;
  grid-column: 3;
  justify-self: end;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--foreground);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 250;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--foreground);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* =============================================
   LEFT SECTION INDICATOR
   ============================================= */
.section-indicator {
  position: fixed;
  left: clamp(0.9rem, 2vw, 1.75rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 260;
  padding: 0.75rem 0.6rem;
  border: 1px solid rgba(232, 224, 208, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}

.section-indicator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.05rem;
  bottom: 1.05rem;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(232, 224, 208, 0.18);
}

.section-indicator-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  color: rgba(232, 224, 208, 0.75);
  outline: none;
}

.section-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(232, 224, 208, 0.22);
  border: 1px solid rgba(232, 224, 208, 0.25);
  box-shadow: 0 0 0 6px rgba(232, 224, 208, 0);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.section-indicator-label {
  position: absolute;
  left: calc(100% + 0.8rem);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(232, 224, 208, 0.14);
  color: rgba(232, 224, 208, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-indicator-link:hover .section-indicator-label,
.section-indicator-link:focus-visible .section-indicator-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section-indicator-link:hover .section-indicator-dot,
.section-indicator-link:focus-visible .section-indicator-dot {
  background: rgba(232, 213, 181, 0.6);
  border-color: rgba(232, 213, 181, 0.65);
  box-shadow: 0 0 0 6px rgba(232, 213, 181, 0.09);
  transform: scale(1.08);
}

.section-indicator-link.active .section-indicator-dot {
  background: var(--primary);
  border-color: rgba(232, 213, 181, 0.95);
  box-shadow: 0 0 0 6px rgba(232, 213, 181, 0.16);
  transform: scale(1.14);
}

.section-indicator-link.active {
  color: var(--foreground);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100svh;
  z-index: 0;
}

.hero-spacer {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100svh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  transition: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
  transition: none;
}

.hero-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.8);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-title-accent {
  font-weight: 600;
}

.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.7s;
}


@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  position: relative;
  z-index: 10;
  background-color: var(--background);
}

/* =============================================
   ABOUT SECTION - Cream Background
   ============================================= */
.about {
  padding: 8rem 1.5rem;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 50svh;
  display: flex;
  align-items: center;
  background-color: var(--foreground);
  color: var(--accent);
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.about-title-wrapper {
  overflow: hidden;
}

.about-title {
  font-size: clamp(3.25rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-100px) rotate(-5deg);
  transition: all 0.8s ease;
}

.about-title .accent {
  color: var(--secondary);
}

.about-title.visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.about-content {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease 0.2s;
  min-width: 0;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  font-size: 1.0rem;
  color: rgba(61, 48, 42, 0.78);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
  padding-top: 2rem;
}

.stat {
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 0.6s ease;
}

.stat.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat:nth-child(1) { transition-delay: 0.4s; }
.stat:nth-child(2) { transition-delay: 0.55s; }
.stat:nth-child(3) { transition-delay: 0.7s; }

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(61, 48, 42, 0.6);
  margin-top: 0.5rem;
}

/* =============================================
   FOUNDER SECTION - bg-background (Black)
   ============================================= */
.founder {
  padding: 8rem 1.5rem;
  background-color: var(--background);
}

.founder-container {
  max-width: 1400px;
  margin: 0 auto;
}

.founder-kicker {
  color: rgba(232, 224, 208, 0.5);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.founder-title {
  color: var(--foreground);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.founder-media {
  border: 1px solid rgba(232, 224, 208, 0.5);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.founder-media.visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.founder-media:hover .founder-image {
  transform: scale(1.06);
}

.founder-content {
  min-width: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease 0.1s;
}

.founder-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-text {
  color: rgba(232, 224, 208, 0.75);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.founder-text p + p {
  margin-top: 1.25rem;
}

/* =============================================
   VISION SECTION - Cream Background
   ============================================= */
.vision {
  padding: 8rem 1.5rem;
  background-color: var(--foreground);
  color: var(--accent);
}

.vision-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.vision-title-wrapper {
  overflow: hidden;
}

.vision-title {
  font-size: clamp(3.25rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-100px) rotate(-5deg);
  transition: all 0.8s ease;
}

.vision-title .accent {
  color: var(--secondary);
}

.vision-title.visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.vision-content {
  min-width: 0;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease 0.2s;
}

.vision-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.vision-text {
  font-size: 1.0rem;
  color: rgba(61, 48, 42, 0.78);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.vision-text:last-child {
  margin-bottom: 0;
}

/* =============================================
   CONTACT SECTION - bg-secondary (Olive Green)
   ============================================= */
.contact {
  padding: 8rem 1.5rem;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 50svh;
  display: flex;
  align-items: center;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(74, 93, 74, 0.8) 50%, var(--secondary) 100%);
  transition: transform 0.1s linear;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.contact-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.5);
  margin-bottom: 1rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--secondary-foreground);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.contact-title.visible {
  opacity: 1;
  transform: scale(1);
}

.contact-message {
  max-width: 56ch;
  margin: 0 auto 3rem;
  color: rgba(232, 224, 208, 0.75);
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: rgba(232, 213, 181, 0.9);
  letter-spacing: 0.2em;
  box-shadow: 0 10px 40px rgba(232, 213, 181, 0.3);
  transform: scale(1.05);
}

/* Contact Info */
.contact-info {
  margin-top: 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(232, 224, 208, 0.2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.contact-info-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.contact-info-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-item:hover {
  transform: translateY(-5px);
}

.contact-info-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.5);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  color: var(--secondary-foreground);
  font-size: 0.9rem;
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-reveal-btn {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(232, 224, 208, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.contact-reveal-btn:hover {
  border-color: rgba(232, 213, 181, 0.65);
  background-color: rgba(232, 213, 181, 0.08);
}

.contact-reveal-btn:focus-visible {
  outline: 2px solid rgba(232, 213, 181, 0.7);
  outline-offset: 3px;
}

.contact-phone-link {
  color: inherit;
  text-decoration: none;
}

.contact-phone-link:hover {
  text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 4rem 2rem;
  border-top: 1px solid rgba(232, 224, 208, 0.1);
  background-color: var(--background);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.footer-text {
  font-size: 0.75rem;
  color: rgba(232, 224, 208, 0.5);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: rgba(232, 224, 208, 0.5);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--foreground);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 960px) {
  .nav-left, .nav-right {
    display: none;
  }

  .section-indicator {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-media {
    max-width: 520px;
    margin: 0 auto;
  }

  .founder-kicker,
  .founder-title,
  .founder-text {
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vision-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-link {
    font-size: 0.7rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-title {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .vision-title {
    font-size: clamp(3rem, 15vw, 6rem);
  }
  
  .contact-info {
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header.scrolled {
    backdrop-filter: none;
  }

  .hero-subtitle {
    position: relative;
    top: -100px;
  }
  
  .about {
    padding: 5rem 1.5rem;
  }
  
  .contact {
    padding: 5rem 1.5rem;
  }
}

.device-phone .hero-bg img,
.device-phone .hero-overlay,
.device-phone .hero-content,
.device-phone .scroll-indicator,
.device-phone .contact-bg {
  transition: none !important;
}

.device-phone .hero-bg img {
  will-change: auto;
  transform: none !important;
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-title {
    font-size: 3rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-title {
    font-size: 2rem;
  }
}
