/*
 * Zyqvar Studio - v1.2 (Complete)
 * style.css
*/

/* -------------------
 * CSS Variables & Setup
 * ------------------- */
:root {
    --color-charcoal-stone: #3E3C3A;
    --color-muted-oat-gold: #D9CBA3;
    --color-sage-green: #7F9B91;
    --color-light-bg: #F8F5F2;
    --color-white: #FFFFFF;
    --color-text: #504e4c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --space-unit: 8px;
    --space-xs: var(--space-unit);
    --space-sm: calc(var(--space-unit) * 2);
    --space-md: calc(var(--space-unit) * 4);
    --space-lg: calc(var(--space-unit) * 8);
    --space-xl: calc(var(--space-unit) * 12);
    --font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.96rem);
    --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.2rem);
    --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.5rem);
    --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2rem);
    --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.66rem);
    --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.55rem);
    --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.16rem, 4.72rem);
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* -------------------
 * Base & Typography
 * ------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-charcoal-stone);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}
h1 { font-size: var(--font-size-xxxl); }
h2 { font-size: var(--font-size-xxl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
p { margin-bottom: var(--space-sm); }
a { color: var(--color-sage-green); text-decoration: none; transition: var(--transition); }
a:hover, a:focus { color: var(--color-charcoal-stone); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* -------------------
 * Layout & Containers
 * ------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
section {
    padding: var(--space-lg) 0;
}
.page-header {
    text-align: center;
    padding-bottom: var(--space-md);
}
.page-header .subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text);
}
.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
@media (min-width: 768px) {
    .two-column-layout { grid-template-columns: repeat(2, 1fr); align-items: center; }
}

/* -------------------
 * Header & Navigation
 * ------------------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(248, 245, 242, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    height: var(--header-height);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    border-bottom: 1px solid rgba(62, 60, 58, 0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.site-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-charcoal-stone);
    letter-spacing: 2px;
}
.main-nav { display: flex; align-items: center; }
.nav-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-icon { font-size: var(--font-size-md); color: var(--color-charcoal-stone); position: relative; }

.nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 101;
}
.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal-stone);
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger-icon::before { transform: translateY(-8px); }
.hamburger-icon::after { transform: translateY(8px); }

.nav-open .hamburger-icon { background-color: transparent; }
.nav-open .hamburger-icon::before { transform: rotate(45deg); }
.nav-open .hamburger-icon::after { transform: rotate(-45deg); }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav-menu { display: flex; gap: var(--space-md); }
    .nav-menu a { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; position: relative; }
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-muted-oat-gold);
        transition: width 0.3s;
    }
    .nav-menu a:hover::after { width: 100%; }
}
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-light-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 100;
        gap: var(--space-md);
        font-size: var(--font-size-lg);
    }
    .nav-open .nav-menu { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
}


/* -------------------
 * Buttons & Links
 * ------------------- */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--color-charcoal-stone); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-sage-green); color: var(--color-white); }
.btn-secondary { background-color: transparent; color: var(--color-charcoal-stone); border-color: var(--color-charcoal-stone); }
.btn-secondary:hover { background-color: var(--color-charcoal-stone); color: var(--color-white); }
.link-arrow { display: inline-block; font-weight: 600; }
.link-arrow::after { content: ' →'; }

/* -------------------
 * Hero Section
 * ------------------- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}
.video-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.video-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.video-banner video, .video-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: var(--font-size-xxxl);
    color: var(--color-white);
    margin: 0;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: var(--font-size-md);
    margin: var(--space-sm) 0 var(--space-md) 0;
}

/* -------------------
 * Components (Cards, Badges, etc)
 * ------------------- */
.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--color-muted-oat-gold);
    color: var(--color-charcoal-stone);
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.product-card {
    background-color: var(--color-white);
    text-align: center;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-info {
    padding: var(--space-sm);
}
.product-info h3 {
    font-size: var(--font-size-md);
}
.price {
    font-weight: 600;
    color: var(--color-sage-green);
}
.text-on-image {
    background: rgba(62, 60, 58, 0.7);
    color: var(--color-white);
    padding: var(--space-lg);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}
.text-on-image h2 { color: var(--color-white); }
.text-on-image p { color: rgba(255,255,255,0.9); }
.text-on-image .btn-secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}
.text-on-image .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal-stone);
}

/* -------------------
 * "Wow" Animations
 * ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}
.preloader.fade-out {
    opacity: 0;
}
.preloader-monogram {
    width: 80px;
    height: 80px;
    background-image: url('../assets/icons/favicon-source.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulseFill 2.5s infinite ease-in-out;
    position: relative;
}
@keyframes pulseFill {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.liquid-hover-card {
    position: relative;
    overflow: hidden;
}
.liquid-hover-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(217, 203, 163, 0.2) 0%, rgba(217, 203, 163, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.7s, height 0.7s, opacity 0.7s;
    opacity: 0;
    will-change: width, height, opacity;
}
.liquid-hover-card:hover::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

.parallax-section {
    position: relative;
    padding: var(--space-xl) 0;
    background: transparent;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    will-change: transform;
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.clip-path-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.clip-path-reveal.visible {
    clip-path: inset(0 0 0 0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-reveal, .clip-path-reveal {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}

/* -------------------
 * Page-Specific & Misc
 * ------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 992px) { .contact-layout { grid-template-columns: 1fr 1.5fr; } }

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.shop-filters h4, .shop-filters h5 {
    margin-bottom: var(--space-xs);
}
.shop-filters .filter-group {
    margin-bottom: var(--space-md);
}
.shop-filters ul li a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--color-text);
}
.shop-filters ul li a.active,
.shop-filters ul li a:hover {
    color: var(--color-charcoal-stone);
    font-weight: 600;
}
@media (min-width: 992px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
    }
}

.form-group { margin-bottom: var(--space-sm); }
.form-group label { display: block; margin-bottom: var(--space-xs); font-weight: 600; }
.form-group input, .form-group textarea, .product-options select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: var(--space-xs);
    color: var(--color-sage-green);
}
.copy-btn:hover { color: var(--color-charcoal-stone); }

.faq-item { border-bottom: 1px solid #ddd; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--space-sm) 0;
    font-size: var(--font-size-md);
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    transition: transform 0.3s;
}
.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-answer p { padding: 0 0 var(--space-sm) 0; }

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-charcoal-stone);
    color: var(--color-white);
    padding: var(--space-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent p { margin: 0; }
.cookie-consent a { color: var(--color-muted-oat-gold); text-decoration: underline; }
.cookie-consent .btn { padding: var(--space-xs) var(--space-sm); background-color: var(--color-white); color: var(--color-charcoal-stone); }

/* -------------------
 * Footer
 * ------------------- */
.site-footer {
    background-color: var(--color-charcoal-stone);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-lg) 0;
    font-size: var(--font-size-sm);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.site-footer h4, .site-footer h5 { color: var(--color-white); }
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--color-white); }
.social-links { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.social-links a { font-size: var(--font-size-md); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-sm);
    text-align: center;
}