/* ============================================
   Club Fitness — Main Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
    --accent: #4c00ff;
    --accent-hover: #6b33ff;
    --bg-dark: #000000;
    --bg-section: #0c0c0c;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text: #ffffff;
    --text-muted: #bbbbbb;
    --text-dark: #111111;
    --font: 'Poppins', sans-serif;
    --container: 1200px;
    --section-pad: clamp(60px, 8vw, 120px);
    --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: var(--section-pad) 0;
}
.section--dark { background: var(--bg-section); }
.section--card { background: var(--bg-card); }

.grid {
    display: grid;
    gap: 40px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid--2 { grid-template-columns: 1fr 1fr; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Accent Divider (brand motif) --- */
.divider {
    width: 36px;
    height: 6px;
    background: var(--accent);
    transform: skewX(-30deg);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    padding: 16px 36px;
    color: var(--text);
    background: var(--accent);
    transform: skewX(-15deg);
    transition: background var(--transition);
    text-decoration: none;
}
.btn span {
    display: block;
    transform: skewX(15deg);
}
.btn:hover { background: var(--accent-hover); }
.btn--outline {
    background: transparent;
    border: 2px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background var(--transition);
}
.navbar.scrolled { background: rgba(0, 0, 0, 0.95); }
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.navbar__logo img { height: 50px; }
.navbar__menu {
    display: none;
    gap: 32px;
    align-items: center;
}
.navbar__link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.navbar__link:hover,
.navbar__link--active { color: var(--text); }
.navbar__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: skewX(-15deg);
}
.navbar__cta {
    font-size: 0.85rem;
    font-weight: 700;
    font-style: italic;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--text);
    transform: skewX(-15deg);
    transition: background var(--transition);
}
.navbar__cta span { display: block; transform: skewX(15deg); }
.navbar__cta:hover { background: var(--accent-hover); }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
}
.mobile-menu.active { display: flex; }

.mobile-menu a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

@media (min-width: 1024px) {
    .navbar__menu { display: flex; }
    .hamburger { display: none; }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    padding: 100px 20px 60px;
}
.hero__logo {
    max-width: 400px;
    margin: 0 auto 24px;
}
.hero__tagline {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* --- Page Banner --- */
.page-banner {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    overflow: hidden;
}
.page-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, var(--bg-dark) 100%);
    z-index: 1;
}
.page-banner__content {
    position: relative;
    z-index: 2;
}
.page-banner h1 {
    font-style: italic;
    text-transform: uppercase;
}

/* --- Content Sections --- */
.text-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}
.text-section p:last-child { margin-bottom: 0; }

.section-title {
    font-style: italic;
    margin-bottom: 16px;
}

/* --- Contact Cards --- */
.contact-card {
    text-align: center;
    padding: 50px 20px;
}
.contact-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.contact-card__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--bg-dark);
}
.contact-card h3 { margin-bottom: 16px; }
.contact-card a {
    color: var(--text-muted);
    transition: color var(--transition);
    font-weight: 600;
}
.contact-card a:hover { color: var(--accent); }

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}
.cta-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}
.cta-section__content {
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- App Badges --- */
.app-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.app-badges a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition);
    font-size: 0.9rem;
}
.app-badges a:hover {
    border-color: var(--accent);
    background: rgba(76, 0, 255, 0.1);
}
.app-badges svg {
    width: 24px;
    height: 24px;
    fill: var(--text);
}

/* --- Video Section --- */
.video-wrap {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}
.video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-wrap__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(76, 0, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.video-wrap:hover .video-wrap__play {
    background: var(--accent-hover);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-wrap__play svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color var(--transition), background var(--transition);
}
.social-icons a:hover {
    border-color: var(--accent);
    background: rgba(76, 0, 255, 0.15);
}
.social-icons svg {
    width: 18px;
    height: 18px;
    fill: var(--text);
}

/* --- Footer --- */
.footer { background: #0a0a0a; }
.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
}
.footer__logo img { max-width: 160px; margin-bottom: 20px; }
.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text);
}
.footer__links a {
    display: block;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color var(--transition);
    font-size: 0.95rem;
}
.footer__links a:hover { color: var(--text); }
.footer__contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.footer__contact a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer__inner { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* --- Terms Page --- */
.terms { background: var(--bg-section); }
.terms__wrap {
    max-width: 800px;
    margin: 0 auto;
}
.terms__meta {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}
.terms h2 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}
.terms p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* --- Opening Hours --- */
.hours {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.8;
}
.hours .red { color: #ff4444; }

/* --- Social Section (contact page) --- */
.social-section {
    background: var(--bg-card);
    padding: 60px 0;
    text-align: center;
}
.social-section .social-icons {
    justify-content: center;
    gap: 20px;
}
.social-section .social-icons a {
    width: 50px;
    height: 50px;
}
.social-section .social-icons svg {
    width: 22px;
    height: 22px;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Join Page specific --- */
.join-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
    text-align: left;
}
.join-features__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.join-features__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.join-features__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text);
}
.join-features__text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.join-features__text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .join-features { grid-template-columns: 1fr 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
