/* ===================================== fonts ========================================== */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn[wght].woff2") format("woff2 supports variations"),
        url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}



/* ===================================== variables ========================================== */
:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --light-color: #f1f2f6;
    --dark-color: #1e272e;
    --white-color: #ffffff;
    --gray-color: #a4b0be;
    --gray-light-color: #eeeeee;
    --gray-light-color-1: #ddd;
    --primary-gradient: linear-gradient(135deg, #ff4757, #ff6b7a);
    --success-color: #2ed573;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-light: #7f8c8d;
    --shadow-light: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 0.5rem;

    --ff-primary: "Vazirmatn", sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ===================================== reset & base styles ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--ff-primary);
}

html,
body {
    overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;

}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-actions .btn {
    width: 15rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* ============================= PRELOADER =============================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2f3542 0%, #1a1e29 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo span {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.dumbbell-loader {
    position: relative;
    width: 80px;
    height: 40px;
}

.dumbbell-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    border-radius: 4px;
    transform: translateY(-50%);
}

.dumbbell-weight {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: weightLift 1.5s ease-in-out infinite;
}

.weight-left {
    left: 0;
    animation-delay: 0s;
}

.weight-right {
    right: 0;
    animation-delay: 0.75s;
}

@keyframes weightLift {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0.4);
    }

    25% {
        transform: translateY(-120%) scale(1.1);
        box-shadow: 0 10px 20px rgba(255, 71, 87, 0.6);
    }

    50% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0.4);
    }
}

.loading-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f1f2f6;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #a0a4b8;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
}

/* پریلودر برای حالت موبایل */
@media (max-width: 768px) {
    .preloader-logo span {
        font-size: 2.5rem;
    }

    .dumbbell-loader {
        width: 60px;
        height: 30px;
    }

    .loading-text {
        font-size: 1rem;
    }

    .loading-progress {
        width: 150px;
    }
}

/* ============================= HEADER =============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    max-width: 120px;
    height: auto;
}

@media (max-width: 400px) {
    .navbar-brand img {
        max-width: 100px;
    }

}

/* desktop-menu  */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--white-color);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    font-weight: 500;
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.action-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid transparent;
}

.action-btn:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 400px) {
    .action-btn {
        padding: 0.1rem;
        width: 7rem;
        display: flex;
        justify-content: center;
    }

}

/* nav-toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle {
    color: var(--text-color);
}

/* pop up */

.working-hours-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.working-hours-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.hours-table {
    margin-bottom: 20px;
}

.day-hour {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-color);
}

.day-hour span:first-child {
    font-weight: 500;
    color: var(--secondary-color);
}

.day-hour span:last-child {
    color: var(--primary-color);
}

.notice {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-align: center;
    margin-top: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-popup:hover {
    color: var(--primary-color);
}

.btn.working-hours-btn {
    background-color: var(--primary-color);
    /* margin-right: 10px; */
    color: white;
}

.btn.working-hours-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.working-hours-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.working-hours-popup.active {
    opacity: 1;
    visibility: visible;
}

/* mobile-menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100dvh;
    background: white;
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header .navbar-brand {
    color: var(--secondary-color);
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-menu:hover {
    background-color: #f0f0f0;
}

.menu-panel {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-panel ul {
    list-style: none;
    flex: 1;
}

.menu-panel ul li {
    border-bottom: 1px solid #eee;
}

.menu-panel ul li a,
.menu-panel ul li button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    text-align: right;
    transition: var(--transition);
}

.menu-panel ul li a:hover,
.menu-panel ul li button:hover {
    background-color: #f9f9f9;
}

.menu-panel ul li button i,
.menu-panel ul li a i {
    font-size: 0.8rem;
}

.menu-header {
    padding: 1rem;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-color);
}

/* overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1040;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.nav-link:focus,
.mobile-nav-link:focus,
.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

@media (max-width: 991px) {
    .desktop-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 25px;
        width: 15rem
    }
}

/* ===================================== footer section ========================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col a img {
    margin-left: 6rem !important;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-col form {
    display: flex;
    margin-top: 20px;
}

.footer-col input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-col button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 15px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.footer-col button:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===================================== Back to Top Button ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}