/* ============================================
   VarzaCo.ir - Luxury Warm Palette Theme
   External CSS File
   ============================================ */

/* ---------- CSS Variables (Warm Palette) ---------- */
:root {
    --primary-red: #8B1A1A;
    --primary-red-dark: #5C1010;
    --primary-red-light: #C0392B;
    --meat-brown: #6D4C2A;
    --meat-brown-light: #A67B5B;
    --meat-brown-pale: #D4A574;
    --cream: #FDF8F0;
    --warm-white: #FEFAF5;
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-shimmer: #F0E0B8;
    --dark-charcoal: #2C2C2C;
    --warm-gray: #8A7A6A;
    --shadow-dark: rgba(60, 30, 15, 0.3);
    --shadow-gold: rgba(201, 168, 76, 0.25);
    --border-gold: #D4B87A;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma,  'Segoe UI', Geneva, Verdana, sans-serif;
    background: rgba(53, 17, 17, 0.784);
    color: var(--dark-charcoal);
    line-height: 1.8;
    padding: 0 20px;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(139, 26, 26, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

/* ---------- Starter / Hero ---------- */
#starter {
    background: linear-gradient(145deg, var(--primary-red-dark), var(--primary-red), var(--primary-red-light));
    padding: 60px 30px 50px;
    text-align: center;
    border-radius: 0 0 60px 60px;
    position: relative;
    margin: 0 -20px 0;
    box-shadow:
        0 20px 60px rgba(92, 16, 16, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--gold);
}

#starter::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
    border-radius: 4px;
}

#starter h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--warm-white);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(201, 168, 76, 0.15);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

#starter h1::before {
    content: '✦';
    position: absolute;
    right: -50px;
    top: 10px;
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.6;
}

#starter h1::after {
    content: '✦';
    position: absolute;
    left: -50px;
    top: 10px;
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.6;
}

#starter img {
    width: 212px;
    max-width: 300px;
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, var(--warm-white), #F5EDE0);
    border-radius: 30px;
    padding: 50px 40px 45px;
    margin: 40px auto 30px;
    max-width: 1100px;
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow:
        0 8px 40px rgba(60, 30, 15, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    border-radius: 0 0 4px 4px;
}

header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

header h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 4px;
}

#ref {
    font-size: 1.15rem;
    color: var(--meat-brown);
    max-width: 700px;
    margin: 10px auto 0;
    font-weight: 400;
    line-height: 1.9;
    opacity: 0.85;
}

/* ---------- Main ---------- */
main {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 10px;
}

/* ---- "ما کی هستیم؟" ---- */
main > div:first-child {
    background: linear-gradient(145deg, var(--warm-white), #F5EDE0);
    border-radius: 30px;
    padding: 45px 50px 40px;
    margin: 20px 0 50px;
    border-right: 5px solid var(--gold);
    box-shadow:
        0 6px 30px rgba(60, 30, 15, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
}

main > div:first-child::before {
    content: '◆';
    position: absolute;
    right: -15px;
    top: 30px;
    font-size: 1.6rem;
    color: var(--gold);
    opacity: 0.5;
}

main > div:first-child h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

main > div:first-child h2::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-right: 18px;
    vertical-align: middle;
    border-radius: 4px;
}

main > div:first-child p {
    font-size: 1.1rem;
    color: var(--meat-brown);
    line-height: 2;
    opacity: 0.92;
}

/* ---- محصولات ما ---- */
#our_stuff {
    background: linear-gradient(160deg, #FCF6ED, #F5EDE0);
    border-radius: 30px;
    padding: 40px 35px 50px;
    margin: 30px 0 40px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow:
        0 8px 45px rgba(60, 30, 15, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    position: relative;
}

#our_stuff::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    border-radius: 0 0 4px 4px;
}

#our_stuff > h2 {
    width: 100%;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 25px !important;
    margin-right: 0 !important;
    text-align: center;
    letter-spacing: 0.5px;
}

#our_stuff > h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    border-radius: 4px;
}

/* ---- Product Cards ---- */
.brd_stf1 {
    background: var(--warm-white);
    border-radius: 24px;
    padding: 22px 22px 28px;
    flex: 0 1 calc(33.333% - 28px);
    min-width: 250px;
    max-width: 350px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow:
        0 4px 20px rgba(60, 30, 15, 0.06),
        0 1px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.brd_stf1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold), var(--primary-red-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.brd_stf1:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(60, 30, 15, 0.12),
        0 4px 16px rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
}

.brd_stf1:hover::before {
    opacity: 1;
}

/* Decorative corner accent */
.brd_stf1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(201, 168, 76, 0.06) 50%);
    border-radius: 0 0 24px 0;
    pointer-events: none;
}

.brd_stf1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(60, 30, 15, 0.08);
    transition: transform 0.5s ease, box-shadow 0.4s ease;
    display: block;
    border: 1px solid rgba(201, 168, 76, 0.08);
}

.brd_stf1:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(60, 30, 15, 0.12);
}

.brd_stf1 p {
    font-size: 0.95rem;
    color: var(--meat-brown);
    line-height: 1.9;
    opacity: 0.85;
    font-weight: 400;
    padding: 0 4px;
}

/* ---- Footer Text ---- */
.footer_ourstf {
    background: linear-gradient(145deg, var(--warm-white), #F5EDE0);
    border-radius: 24px;
    padding: 38px 45px;
    margin: 40px 0 35px;
    border-right: 4px solid var(--gold);
    font-size: 1.05rem;
    color: var(--meat-brown);
    line-height: 2.1;
    box-shadow:
        0 4px 24px rgba(60, 30, 15, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0.92;
    position: relative;
}

.footer_ourstf::before {
    content: '"';
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}

/* ---- Contact Section ---- */
#telANDemail {
    background: linear-gradient(145deg, var(--primary-red-dark), var(--primary-red), var(--primary-red-light));
    border-radius: 60px 60px 30px 30px;
    padding: 35px 50px;
    margin: 30px 0 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-white);
    box-shadow:
        0 12px 50px rgba(92, 16, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    position: relative;
}

#telANDemail::before {
    content: '◆';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.4;
}

#telANDemail::after {
    content: '◆';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.4;
}

#telANDemail a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 1px;
    padding: 6px 28px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

#telANDemail a::before {
    content: '📞';
    margin-left: 10px;
    font-size: 1.2rem;
}

#telANDemail a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    color: var(--gold-shimmer);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
    transform: scale(1.02);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    #starter h1 {
        font-size: 2.4rem;
    }
    #starter h1::before,
    #starter h1::after {
        display: none;
    }

    header h2 {
        font-size: 2rem;
    }

    .brd_stf1 {
        flex: 0 1 calc(50% - 28px);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 12px;
    }

    #starter {
        padding: 40px 20px 35px;
        border-radius: 0 0 40px 40px;
        margin: 0 -12px 0;
    }
    #starter h1 {
        font-size: 1.8rem;
    }

    header {
        padding: 30px 20px 28px;
        border-radius: 20px;
        margin: 30px 0 20px;
    }
    header h2 {
        font-size: 1.6rem;
    }
    #ref {
        font-size: 0.95rem;
    }

    main > div:first-child {
        padding: 28px 22px;
        border-right-width: 4px;
        border-radius: 20px;
        margin: 15px 0 30px;
    }
    main > div:first-child h2 {
        font-size: 1.6rem;
    }
    main > div:first-child p {
        font-size: 0.95rem;
    }

    #our_stuff {
        padding: 25px 15px 30px;
        gap: 18px;
        border-radius: 20px;
    }
    #our_stuff > h2 {
        font-size: 1.6rem;
    }

    .brd_stf1 {
        flex: 0 1 100%;
        max-width: 100%;
        padding: 18px 18px 22px;
    }
    .brd_stf1 img {
        height: 170px;
    }

    .footer_ourstf {
        padding: 25px 22px;
        font-size: 0.95rem;
        border-radius: 18px;
    }

    #telANDemail {
        padding: 25px 20px;
        font-size: 1.1rem;
        border-radius: 40px 40px 20px 20px;
        flex-direction: column;
        gap: 12px;
    }
    #telANDemail::before,
    #telANDemail::after {
        display: none;
    }
    #telANDemail a {
        font-size: 1.3rem;
        padding: 8px 20px;
        width: 100%;
        max-width: 280px;
    }
    #telANDemail a::before {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #starter h1 {
        font-size: 1.4rem;
    }

    header h2 {
        font-size: 1.3rem;
    }

    main > div:first-child h2 {
        font-size: 1.3rem;
    }
    #our_stuff > h2 {
        font-size: 1.3rem;
    }

    .brd_stf1 img {
        height: 140px;
    }

    #telANDemail {
        font-size: 0.95rem;
        padding: 20px 14px;
    }
    #telANDemail a {
        font-size: 1.1rem;
        padding: 6px 14px;
    }
}

/* ---------- Scrollbar (luxury touch) ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--meat-brown));
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-red-dark), var(--meat-brown));
}

/* ---------- Selection ---------- */
::selection {
    background: var(--gold);
    color: var(--dark-charcoal);
}

/* ---------- Smooth loading ---------- */
* {
    transition: background 0.3s ease, color 0.2s ease;
}