/* فونت وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-RD-UI-FD-NL-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: #FAF9F6;
    color: #3E362E;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* هدر و منو */
/* ============================================ */
header {
    background: #85c1ff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

/* لوگو */
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #3E362E;
}

.logo-text span {
    color: #8B7D6B;
}

.logo-text p {
    font-size: 0.8rem;
    color: #8B7D6B;
}

.logo-img-only {
    height: 40px;
    width: auto;
}

/* منو */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #3E362E;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8B7D6B;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #3E362E;
}

/* ============================================ */
/* اسلایدر (بنر) */
/* ============================================ */
.slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 100vh;
    min-height: 500px;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-text {
    position: absolute;
    bottom: 10%;
    left: 10%;
    right: 10%;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(3px);
}

.slide-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 1.2rem;
}

/* دکمه‌های قبلی و بعدی اسلایدر */
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider button:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* ============================================ */
/* معرفی آتلیه */
/* ============================================ */
.intro {
    padding: 60px 20px;
    text-align: center;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: #8B7D6B;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid #8B7D6B;
    color: #8B7D6B;
}

.btn:hover {
    background: #6B5D4B;
    transform: scale(1.05);
}

/* ============================================ */
/* صفحات داخلی (گالری، رزرو، بلاگ، تماس) */
/* ============================================ */
.gallery-page, .blog-page, .reservation-page, .contact-page {
    padding: 50px 0;
    min-height: 70vh;
}

.center-reserveText {
    text-align: center;
}

/* ============================================ */
/* گالری */
/* ============================================ */
.album-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.album-btn {
    background: #F5F5DC;
    border: 1px solid #8B7D6B;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.album-btn.active,
.album-btn:hover {
    background: #8B7D6B;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================ */
/* لایت‌باکس */
/* ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox .close:hover {
    color: #8B7D6B;
}

.lightbox-buttons {
    margin-top: 20px;
}

.lightbox-prev, .lightbox-next {
    background: #8B7D6B;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #6B5D4B;
    transform: scale(1.05);
}

/* ============================================ */
/* فرم رزرو */
/* ============================================ */
.reserve-form {
    max-width: 500px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    background: #8B7D6B;
}

.form-result {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.phone-btn {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin: 15px 0;
    transition: 0.3s;
}

.phone-btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

/* ============================================ */
/* بلاگ */
/* ============================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.blog-post img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.blog-content {
    padding: 15px;
    flex: 1;
}

.blog-content h3 {
    margin-bottom: 5px;
    color: #3E362E;
}

.date {
    color: #8B7D6B;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

/* ============================================ */
/* تماس با ما */
/* ============================================ */
.contact-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 10px;
}

.icon {
    font-size: 24px;
}

.social-links {
    text-align: center;
    margin-top: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social {
    background: #F5F5DC;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #3E362E;
    transition: 0.3s;
}

.social:hover {
    background: #8B7D6B;
    color: white;
}

/* ============================================ */
/* فوتر */
/* ============================================ */
footer {
    background: #3E362E;
    color: #FAF9F6;
    padding: 40px 0 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info a {
    color: #FAF9F6;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #FAF9F6;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #5A4E42;
    margin-top: 30px;
    font-size: 0.8rem;
}

/* ============================================ */
/* ریسپانسیو (موبایل و تبلت) */
/* ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* منو همبرگری */
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #F5F5DC;
        padding: 20px;
        position: absolute;
        top: 70px;
        right: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    /* اسلایدر در موبایل */
    .slider {
        min-height: 400px;
        height: 400px;
    }
    
    .slider button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .slide-text h2 {
        font-size: 1.2rem;
    }
    
    .slide-text p {
        font-size: 0.9rem;
    }
    
    .slide-text {
        padding: 12px 20px;
        bottom: 10%;
    }
    
    /* معرفی */
    .intro h2 {
        font-size: 1.5rem;
    }
    
    /* گالری */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-grid img {
        height: 150px;
    }
    
    /* بلاگ */
    .blog-post {
        flex-direction: column;
    }
    
    .blog-post img {
        width: 100%;
        height: 200px;
    }
    
    /* فوتر */
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
        min-height: 300px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .album-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}