/* ============================================
   MyGymBro — Shared Styles
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Variables --- */
:root {
  --green: #32CD32;
  --green-dark: #28a428;
  --green-accessible: #228B22;
  --black: #0A0A0A;
  --gray-900: #1A1A1A;
  --gray-800: #2A2A2A;
  --gray-700: #3A3A3A;
  --gray-400: #999;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- GSAP flash fix --- */
.gs-reveal {
  opacity: 0;
}

/* --- Navigation (liquid glass, full width) --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}
@supports (backdrop-filter: blur(1px)) {
  nav {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
nav.nav--scrolled {
  background: rgba(0, 0, 0, 0.92);
}
@supports not (backdrop-filter: blur(1px)) {
  nav {
    background: rgba(0, 0, 0, 0.92);
    box-shadow: none;
  }
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.nav-logo img {
  height: 28px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}
.nav-logo-text span {
  color: var(--green);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  color: var(--white);
  opacity: 1;
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .nav-inner {
    height: 56px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100dvh;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 18px;
  }
}

/* --- Footer --- */
footer {
  background: var(--black);
  padding: 56px 24px 40px;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-logo img {
  height: 24px;
  width: auto;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}
.footer-logo-text span {
  color: var(--green);
}
/* Instagram link */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-ig {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.footer-ig svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-ig:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-copy {
  color: var(--gray-700);
  font-size: 13px;
}

/* --- Legal Pages (shared) --- */
.page-header {
  background: var(--black);
  padding: 120px 24px 60px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--white);
}
.page-header p {
  color: var(--gray-400);
  margin-top: 12px;
  font-size: 15px;
}

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 10px;
}
.content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.content ul, .content ol {
  margin: 10px 0 14px 24px;
}
.content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.content strong {
  color: var(--gray-900);
}
.content a {
  color: var(--green-accessible);
  text-decoration: none;
  font-weight: 500;
}
.content a:hover {
  text-decoration: underline;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
.content th, .content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
}
.content th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-900);
}
.content td {
  color: var(--gray-700);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Responsive (legal pages) --- */
@media (max-width: 600px) {
  .content table {
    font-size: 13px;
  }
  .content th, .content td {
    padding: 8px 10px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .gs-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
