/* --- 1. Variables & Base Setup --- */
:root {
    --gold-primary: #CFA660;
    --gold-hover: #b88f4b;
    --gold-glow: rgba(207, 166, 96, 0.2);
    --bg-cream: #FCFBF8;
    --bg-alt: #F4F1EA;
    --text-ink: #141414;
    --text-light: #5A5A5A;
    --white: #FFFFFF;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-ink);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif-text {
    font-family: var(--font-display);
    font-weight: 600;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 var(--gold-glow); }
    70% { box-shadow: 0 0 0 15px rgba(207, 166, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 166, 96, 0); }
}

/* --- 3. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--white);
    border: 1px solid var(--gold-primary);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--text-ink);
}

/* --- 4. Navigation --- */
header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(252, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

header.scrolled .nav-link { color: var(--text-ink); }
header.scrolled .logo-light { display: none; }
header.scrolled .logo-dark { display: block; }
header.scrolled .logo-img { height: 60px; }

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: height 0.4s ease;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--gold-primary) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

header.scrolled .hamburger span {
    background: var(--text-ink);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background: var(--text-ink);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background: var(--text-ink);
}

/* --- 5. Immersive Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--text-ink);
    background-image: linear-gradient(rgba(10,10,10,0.6), rgba(10,10,10,0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100%" height="100%" fill="%231a1a1a"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- 6. Trust Bar --- */
.trust-bar {
    background: var(--bg-alt);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-ink);
}

/* --- 7. Interactive Categories Grid --- */
.collections {
    padding: 8rem 0;
    background: var(--bg-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    position: relative;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--text-ink);
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.7)), #2A2A2A;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease-smooth);
}

.product-card:hover .card-bg {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-smooth);
}

.product-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-link {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-smooth);
}

.product-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* --- 8. Configurator Teaser --- */
.configurator-promo {
    padding: 8rem 0;
    background: var(--text-ink);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(207,166,96,0.15) 0%, rgba(20,20,20,0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.promo-content { position: relative; z-index: 1; }

.promo-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ui-mockup {
    max-width: 900px;
    margin: 4rem auto 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: pulseGlow 4s infinite;
}

.ui-mockup-inner {
    height: 400px;
    background: #111;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 9. Footer --- */
footer {
    background: var(--bg-cream);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-ink);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold-primary); }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .logo { position: relative; z-index: 101; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s var(--ease-smooth);
        z-index: 100;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-ink);
        font-size: 1.2rem;
    }

    header.scrolled .logo-light,
    header.menu-open .logo-light { display: none; }
    
    header.scrolled .logo-dark,
    header.menu-open .logo-dark { display: block; }

    header.scrolled .nav-link,
    header.menu-open .nav-link { color: var(--text-ink); }
    
    .footer-grid { grid-template-columns: 1fr; }
}