/* =========================
   FONTS
========================= */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {

    --primary: #0b1028;
    --secondary: #b89169;
    --secondary-light: #d7c0a7;

    --text: #232323;
    --text-light: #707070;

    --bg: #f7f4f1;
    --section: #efefef;
    --white: #ffffff;

    --border: #e7e0d8;

    --radius: 18px;

    --shadow:
    0 10px 25px rgba(0,0,0,.06);

}

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Vazirmatn', sans-serif;
    direction:rtl;

    color:var(--text);
    background:var(--bg);

    line-height:1.9;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

img{
    max-width:100%;
    display:block;
}

/* اعمال فونت روی دکمه‌ها */
button,
input,
textarea,
select,
.btn-primary,
.btn-wholesale,
.consult-btn,
.portfolio-filter button {
    font-family: 'Vazirmatn', sans-serif;
}

/* =========================
   CONTAINER
========================= */

.container{

    width:100%;
    max-width:1400px;

    margin:auto;

    padding-right:20px;
    padding-left:20px;
}

/* =========================
   SECTION
========================= */

.section{
    padding:90px 0;
}

.section-title{

    text-align:center;

    margin-bottom:50px;
}

.section-title h2{

    font-size:34px;
    font-weight:700;

    margin-bottom:10px;
}

.section-title p{

    color:var(--text-light);
}

/* =========================
   BUTTONS
========================= */

.btn-primary{

    background:var(--primary);
    color:white;

    padding:14px 28px;

    border-radius:12px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    transition:.3s;
}

.btn-primary:hover{

    transform:translateY(-2px);
}

/* =========================
   TOPBAR
========================= */

.topbar{

    background:var(--primary);
    color:white;

    font-size:13px;

    padding:8px 0;
}

.topbar .container{

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.topbar-left{

    display:flex;
    align-items:center;
    gap:20px;
}

.topbar-phone {
    color: white;
    transition: .2s;
}

.topbar-phone:hover {
    color: #b89169;
}

.consult-btn{

    color:white;

    border:1px solid rgba(255,255,255,.2);

    padding:6px 14px;

    border-radius:10px;
}

/* =========================
   HEADER
========================= */

.header{

    background:white;

    position:sticky;
    top:0;
    z-index:100;

    box-shadow:
    0 1px 10px rgba(0,0,0,.04);
}

.header .container{

    height:80px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo h2{

    color:var(--primary);
    font-size:28px;
}

.navbar ul{

    display:flex;
    align-items:center;
    gap:35px;
}

.navbar a{

    color:var(--text);

    font-weight:500;
}

.mobile-menu-btn{

    display:none;

    border:none;
    background:none;

    font-size:28px;

    cursor:pointer;
    color:var(--primary);
}

/* =========================
   HERO - فول‌وید و بدون فاصله
========================= */

.hero {
    width: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-image-full {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* =========================
   FEATURES
========================= */

.features{

    background:#f2f2f2;

    padding:30px 0;
}

.features .container{

    display:grid;

    grid-template-columns:
    repeat(6,1fr);

    gap:20px;
}

.feature-item{

    text-align:center;
}

.feature-icon{

    width:60px;
    height:60px;

    margin:0 auto 10px;

    border-radius:50%;

    background: #d3d3d3;
    color: #000000;

    font-size:26px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h4{

    font-size:16px;
    margin-top:5px;
}

.feature-item span{

    color:var(--text-light);

    font-size:13px;
}

/* =========================
   CATEGORIES
========================= */

.categories {
    background: #fbf9f7;
    padding: 90px 0;
}

.categories-title h2 {
    color: #975d1b;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.categories-title p {
    color: #975d1b;
    opacity: 0.8;
    font-size: 1rem;
}

.category-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;
}

.category-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.3s;
}

.category-card:hover{

    transform:translateY(-6px);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

.category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
    min-width: 70px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Vazirmatn', sans-serif;
}

.category-card h3{

    text-align:center;

    padding:20px;

    font-size:18px;
    color: #975d1b;
}

/* =========================
   SERVICES
========================= */

.services{

    background:#ededed;
}

.services .section-title p {
    max-width: 700px;
    margin: 0 auto;
}

.services-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:30px;

    margin-bottom: 40px;
}

.service-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-image-wrapper {
    overflow: hidden;
    width: 100%;
}

.service-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-content{

    padding:25px;
}

.service-content h3{

    margin-bottom:10px;

    color:var(--primary);
    font-size: 1.3rem;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.service-tags span {
    background: #f0edea;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* =========================
   WHOLESALE
========================= */

.wholesale-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.wholesale-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: 10px;
    border: 1px solid #e8e3dd;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    width: 50%;
    max-width: 700px;
}

.wholesale-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.wholesale-text {
    flex: 1;
    text-align: right;
}

.wholesale-text h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.wholesale-text p {
    color: #555555;
    font-size: 0.9rem;
    margin: 0;
}

.btn-wholesale {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: .3s;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-wholesale:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-filter{

    display:flex;
    justify-content:center;

    gap:10px;

    margin-bottom:40px;
}

.portfolio-filter button{

    border:none;

    background:white;

    padding:10px 22px;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;
    font-weight:500;
}

.portfolio-filter .active{

    background:var(--primary);

    color:white;
}

.portfolio-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.portfolio-item{

    overflow:hidden;

    border-radius:18px;

    background:white;

    box-shadow:var(--shadow);
}

.portfolio-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

/* =========================
   CONTACT - کارت‌های کلیک‌پذیر
========================= */

.contact{

    background:#f5f5f5;
}

.contact-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;

    margin-bottom:40px;
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: .3s;
    border-radius: 20px;
}

.contact-card-link:hover {
    transform: translateY(-4px);
}

.contact-card-link:hover .contact-card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-card{

    background:white;

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:var(--shadow);

    transition: .3s;
    height: 100%;
    cursor: pointer;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 30px;
    transition: .3s;
}

.contact-card-link:hover .contact-icon {
    background: var(--primary);
    color: white;
}

.contact-card h3{

    color:var(--primary);

    margin-bottom:10px;
}

.contact-link {
    color: var(--text);
    font-size: 1rem;
    transition: .2s;
    display: inline-block;
}

.contact-link:hover {
    color: #b89169;
}

.contact-button{

    text-align:center;
}

/* =========================
   FOOTER
========================= */

.footer{

    background:var(--primary);

    color:white;

    padding-top:70px;
}

.footer-grid{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr 1fr;

    gap:40px;
}

.footer h3{

    margin-bottom:20px;
}

.footer ul li{

    margin-bottom:10px;
}

.footer ul li i {
    margin-left: 8px;
    color: var(--secondary);
}

.footer p,
.footer li{

    opacity:.8;
}

.copyright{

    margin-top:60px;

    text-align:center;

    border-top:
    1px solid rgba(255,255,255,.1);

    padding:25px 0;
}

.header.scrolled{

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

/* =========================
   انیمیشن‌های ورود - فقط دسکتاپ
========================= */

@media (min-width: 993px) {

    .category-card,
    .service-card,
    .portfolio-item,
    .contact-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .category-card.show,
    .service-card.show,
    .portfolio-item.show,
    .contact-card.show {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:992px) {
    .hero-image-full {
        max-height: 70vh;
        object-fit: cover;
    }
}

@media (max-width:768px) {
    .hero-image-full {
        max-height: 65vh;
        object-fit: cover;
    }
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width:576px) {
    .hero-image-full {
        max-height: 55vh;
        object-fit: cover;
    }
}

/* =========================
   WHOLESALE - RESPONSIVE
========================= */

@media (max-width:992px) {
    .wholesale-card {
        width: 70%;
    }
}

@media (max-width:768px) {
    .wholesale-card {
        width: 90%;
        padding: 20px 24px;
    }
    
    .wholesale-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .wholesale-text {
        text-align: center;
    }
    
    .btn-wholesale {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

@media (max-width:576px) {
    .wholesale-card {
        width: 100%;
        padding: 16px 18px;
    }
}