/* ============================================
   MAIN.CSS - استایل پایه و متغیرها
   ============================================ */

:root {
    --color-primary: #c9a87c;
    --color-primary-dark: #b8925e;
    --color-primary-light: #e8d5b8;
    --color-bg-dark: #0a0a14;
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-text-primary: #f0ede8;
    --color-text-secondary: #b5b0a8;
    --color-text-muted: #7a756d;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 18px;
    --radius-md: 14px;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.logo .logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 20px rgba(201, 168, 124, 0.3));
}
.logo .logo-text {
    background: linear-gradient(135deg, #f0ede8 0%, #c9a87c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    letter-spacing: 0.3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active {
    color: #fff;
}
.nav-links a.active::after {
    width: 100%;
}

.badge {
    background: var(--color-primary);
    color: #0a0a14;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    margin-right: 4px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #0a0a14 !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(201, 168, 124, 0.25);
}
.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(201, 168, 124, 0.4);
    color: #0a0a14 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #0a0a14;
    box-shadow: 0 8px 25px rgba(201, 168, 124, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(201, 168, 124, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.btn-success {
    background: #27ae60;
    color: #fff;
}
.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== SECTION COMMON ===== */
section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
    background: rgba(201, 168, 124, 0.1);
    padding: 4px 16px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 124, 0.15);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title .highlight {
    color: var(--color-primary);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 50px 0 30px;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}
.footer-brand .social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}
.footer-brand .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}
.footer-brand .social a:hover {
    background: var(--color-primary);
    color: #0a0a14;
    border-color: var(--color-primary);
}

.footer-col h5 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-enamad img {
    max-width: 100px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition-smooth);
}
.footer-enamad img:hover {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .logo {
        font-size: 1.3rem;
    }
}

/* ===== FOOTER TRUST BADGES ===== */
.footer-enamad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-enamad a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-enamad a:hover {
    transform: scale(1.05);
}

.footer-enamad img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .footer-enamad {
        gap: 12px;
    }
    .footer-enamad img {
        height: 45px;
    }
}

/* ===== دکمه تولیدکنندگان ===== */
.btn-producer {
    background: linear-gradient(135deg, #c9a87c, #b8925e);
    color: #0a0a14;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-producer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 124, 0.4);
}

.btn-producer i {
    margin-left: 8px;
}