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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0c10;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    font-weight: 500;
}

/* ===== HERO BACKGROUND USING IMG TAG ===== */
.hero-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 8%;
}

.hero-bg-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Main Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER & NAVBAR (دقیقاً مثل COACHES) ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(233, 196, 106, 0.2);
    padding-bottom: 0.5rem;
}

.logo {
    z-index: 200;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 150px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e9c46a;
    transition: width 0.2s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e9c46a;
}

/* ===== منوی همبرگر (دقیقاً مثل COACHES) ===== */
.hamburger {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO SECTION (left aligned) ===== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 3rem 0 2rem 0;
    max-width: 650px;
}

.club-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #e9c46a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.slogan-top {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.8rem, 8vw, 2rem);
    font-weight: 200;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slogan-bottom {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 7vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.05em;
    background: linear-gradient(120deg, #f9d976, #f39f86);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-top: -0.2rem;
}

/* ===== BUTTON JOIN ===== */
.btn-join {
    font-family: 'Cinzel', serif;
    background: #e9c46a;
    color: #0a0c10;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    margin: 2rem 0 0 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-join:hover {
    background: #f4d078;
    transform: translateY(-3px);
}

/* ===== FOOTER with golden line above ===== */
.contact-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 2rem;
    border-top: 2px solid #e9c46a;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
}

.contact-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.footer-credit {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 1rem;
    font-weight: 500;
}

/* ===== RESPONSIVE (MOBILE) ===== */
@media (max-width: 768px) {
    .site-container {
        padding: 0 1.2rem;
    }

    .site-header {
        margin-bottom: 2rem;
    }

    .logo img {
        max-width: 125px;
    }

    .hamburger {
        display: block !important;
    }

    .main-nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(8, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 150;
        border-radius: 0 20px 20px 0;
        box-shadow: 4px 0 30px rgba(0,0,0,0.6);
        padding: 2rem 1rem;
    }

    .main-nav ul.active {
        left: 0;
    }

    .main-nav ul li a {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 140;
        backdrop-filter: blur(4px);
    }

    .hero {
        align-items: flex-start;
        max-width: 100%;
        padding: 2rem 0 1rem;
    }

    .club-name {
        font-size: 2rem;
        font-weight: 800;
    }

    .contact-info {
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-item {
        font-size: 0.85rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .btn-join {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
        font-weight: 700;
    }
    .contact-item {
        font-size: 0.75rem;
    }
}

/* ===== شبکه‌های اجتماعی در موبایل: همه در یک خط ===== */
@media (max-width: 768px) {
    .social-links {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: center;
    }
    .social-links .social-item {
        gap: 0.15rem !important;
    }
    .social-links .social-item i {
        font-size: 0.85rem !important;
    }
    .social-links .social-item a {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.35rem !important;
    }
    .social-links .social-item {
        gap: 0.1rem !important;
    }
    .social-links .social-item i {
        font-size: 0.75rem !important;
    }
    .social-links .social-item a {
        font-size: 0.55rem !important;
    }
}

/* ==================== NEW DISCOUNT POPUP CSS (START) ==================== */
#taj-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#taj-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.taj-popup-content {
    background: rgba(10, 12, 16, 0.95);
    border: 2px solid #e9c46a;
    border-radius: 20px;
    padding: 25px 30px; /* پدینگ عمودی کمتر برای جا شدن در دسکتاپ */
    max-width: 650px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(233, 196, 106, 0.2);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    max-height: 95vh; /* اجازه نده از صفحه بیرون بزنه */
    overflow-y: auto; /* فقط اگر در موارد نادر جا نشد اسکرول بده */
}

#taj-popup-overlay.active .taj-popup-content {
    transform: scale(1);
}

.taj-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #e9c46a;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.taj-popup-close:hover {
    color: #ffffff;
}

.taj-popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem; /* کوچک‌تر برای جا شدن در یک خط */
    color: #e9c46a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.taj-popup-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.taj-popup-subheading {
    color: #e9c46a;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.taj-discount-grid {
    display: grid;
    grid-template-columns: 1fr; /* یک ستونه برای خوانایی بهتر */
    gap: 5px; /* فاصله کمتر */
    margin: 10px 0;
    text-align: center;
    background: rgba(233, 196, 106, 0.1);
    padding: 10px 15px; /* پدینگ کمتر */
    border-radius: 12px;
    border: 1px solid rgba(233, 196, 106, 0.3);
}

.taj-discount-item {
    font-size: 0.95rem;
    color: #e0e0e0;
    padding: 2px 0;
}

.taj-discount-item strong {
    color: #e9c46a;
    font-size: 1rem;
}

.taj-popup-note {
    font-size: 0.9rem;
    color: #e9c46a;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.taj-popup-urgency {
    background: #e9c46a;
    color: #0a0c10;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulseUrgency 2s infinite;
}

@keyframes pulseUrgency {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.taj-popup-extra-text {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.taj-popup-btn {
    display: inline-block;
    background: #e9c46a;
    color: #0a0c10;
    padding: 12px 30px; /* دکمه کمی کوچک‌تر */
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(233, 196, 106, 0.3);
    font-family: 'Cinzel', serif;
}

.taj-popup-btn:hover {
    background: #f4d078;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(233, 196, 106, 0.5);
}

.taj-popup-footer {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #888;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .taj-popup-content {
        padding: 20px 15px;
        max-height: 90vh;
    }
    .taj-popup-title {
        font-size: 1.1rem;
    }
    .taj-popup-subtitle {
        font-size: 0.95rem;
    }
    .taj-popup-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
    .taj-popup-urgency {
        font-size: 0.8rem;
    }
    .taj-discount-item {
        font-size: 0.85rem;
    }
    .taj-popup-extra-text {
        font-size: 0.9rem;
    }
    .taj-popup-footer {
        margin-top: 10px;
    }
}
/* ==================== NEW DISCOUNT POPUP CSS (END) ==================== */