/*
Theme Name: VMASTER Boutique
Description: A high-end luxury art gallery theme designed for Vmaster.
Author: VMASTER Design
Version: 1.0.0
*/

:root {
    --bg-color: #f7f6f2; /* Cream/Beige Luxury Background */
    --text-primary: #1a1a1a; /* Deep Charcoal */
    --text-secondary: #5a5a5a;
    --accent-color: #bfa15f; /* Elegant Gold/Bronze */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --spacing-xl: 120px;
    --spacing-lg: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Header */
.boutique-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    z-index: 100;
    transition: all 0.5s ease;
}

.boutique-header.scrolled {
    padding: 15px 60px;
    background-color: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
}

.logo.logo-dominant img {
    height: auto;
    max-height: 120px;
    width: 250px;
    object-fit: contain;
}

.luxury-menu ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.luxury-menu li {
    position: relative;
}

.luxury-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.luxury-menu a:hover {
    color: var(--accent-color);
}

.luxury-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.luxury-menu a:hover::after {
    width: 100%;
}

/* Hero Editorial */
.hero-editorial {
    display: flex;
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
}

.hero-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    background-color: var(--bg-color);
    z-index: 2;
}

.hero-text-container h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero-text-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 50px;
}

.btn-primary {
    display: inline-block;
    align-self: flex-start;
    padding: 18px 45px;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.hero-image-container {
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateY(0);
}

/* About Section */
.about-boutique {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.about-content {
    flex: 1;
    padding-left: 100px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 500px;
}

.about-portrait {
    flex: 1;
    position: relative;
}

.about-portrait img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.8s ease;
}

.about-portrait:hover img {
    filter: grayscale(0%);
}

.portrait-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Collection Section */
.collection-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Staggered Grid for Luxury feel */
.gallery-boutique {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Make middle column staggered */
.gallery-boutique .gallery-item:nth-child(3n-1) {
    transform: translateY(60px);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.gallery-item-inner {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: 'צפה';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contact Section */
.contact-boutique {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 5%;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #eee;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: grayscale(0%);
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boutique-form .form-row {
    margin-bottom: 30px;
}

.boutique-form input,
.boutique-form textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.4s ease;
}

.boutique-form input:focus,
.boutique-form textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.boutique-form .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Footer */
.boutique-footer {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 80px 0 20px;
    font-family: var(--font-body);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: #a0a0a0;
    font-size: 0.95rem;
    max-width: 300px;
}

.boutique-footer h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--bg-color);
}

.boutique-footer ul {
    list-style: none;
}

.boutique-footer ul li {
    margin-bottom: 15px;
}

.boutique-footer a, .boutique-footer p {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.boutique-footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
}

/* Elegant Lightbox */
.elegant-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(247, 246, 242, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.elegant-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-img-wrapper {
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
}

/* Animations */
.reveal-text, .reveal-fade, .reveal-image {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible, .reveal-fade.visible, .reveal-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-editorial {
        flex-direction: column-reverse;
    }
    .hero-text-container {
        padding: 60px 5%;
        text-align: center;
    }
    .btn-primary {
        align-self: center;
    }
    .gallery-boutique {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-boutique .gallery-item:nth-child(3n-1) {
        transform: none; /* disable stagger on 2 cols */
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-content {
        padding-left: 0;
        margin-bottom: 50px;
    }
    .gallery-boutique {
        grid-template-columns: 1fr;
    }
    .hero-text-container h1 {
        font-size: 3.5rem;
    }
    .boutique-header {
        padding: 20px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Inner Pages CSS */
.page-boutique { padding: 150px 5% 80px; min-height: 70vh; background-color: var(--bg-color); }
.page-container { max-width: 800px; margin: 0 auto; }
.page-header { margin-bottom: 40px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 20px; }
.page-title { font-family: var(--font-heading); font-size: 3rem; color: var(--text-primary); }
.page-content { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }
.article-featured-image { margin-bottom: 40px; text-align: center; }
.article-featured-image img { max-width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }


/* Contact Form 7 / WPForms Boutique Overrides */
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.4s ease;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}
.wpcf7-form input[type="submit"] {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}
.about-rich-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.about-rich-text strong {
    font-weight: 700;
    color: var(--text-primary);
}
.about-rich-text ul {
    margin-bottom: 20px;
    padding-right: 20px;
}

