:root {
    --brand-crimson: #C0141A;
    --brand-deep: #9E0F14;
    --brand-gold: #C9A84C;
    --brand-deepgold: #A8893A;
    --brand-bg: #FFFFFF;
    --brand-ivory: #FAF9F6;
    --brand-beige: #F3ECE6;
    --brand-black: #0A0A0A;
    --brand-charcoal: #1A1A1A;
    --brand-gray: #666666;
    --text-light: #F3ECE6;
    --text-dark: #0A0A0A;
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --accent-soft: rgba(192, 20, 26, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--brand-ivory);
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    scroll-behavior: smooth;
}

section {
    position: relative;
    z-index: 1;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

#hero {
    margin-top: 0;
}

header { z-index: 2000 !important; }
.sticky-bar { z-index: 2000 !important; }
.floating-whatsapp { z-index: 2000 !important; }
.modal-overlay { z-index: 3000 !important; }
.exit-intent-overlay { z-index: 4000 !important; }
footer { 
    position: relative; 
    z-index: 2500 !important; 
    background: var(--brand-black); 
}

body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

/* --- Premium Noise --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: multiply;
}

/* --- Custom Cursor --- */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--brand-crimson);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(192, 20, 26, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* --- Layout Utils --- */
.section-padding {
    padding: 140px 0;
}

.container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container-custom { padding: 0 24px; }
    .section-padding { padding: 80px 0; }
}

/* --- 3D & Glass --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}

.card-3d {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.floating {
    animation: floating 6s infinite ease-in-out;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Typography --- */
.editorial-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 800;
    color: var(--brand-black);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-crimson), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    color: var(--brand-crimson);
    margin-bottom: 20px;
    display: block;
}

/* --- Nav Links --- */
.nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-crimson);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--brand-crimson);
}

/* --- Buttons --- */
.btn-premium {
    padding: 20px 40px;
    background: var(--brand-black);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: var(--brand-crimson);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--brand-black);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--brand-black);
    color: white;
}

/* --- Animations --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-span {
    font-size: 24px;
    font-weight: 800;
    color: #ccc;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: default;
}

.marquee-span:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--brand-crimson);
    transform: scale(1.1);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(192, 20, 26, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(192, 20, 26, 0.5); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(192, 20, 26, 0.2); transform: scale(1); }
}

@keyframes pulse-glow-green {
    0% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.7); transform: scale(1.05); }
    100% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.4); transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.reveal-up { opacity: 1; transform: none; }

/* --- Special Hero Elements --- */
.hero-image-stack {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-img-main {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
}

.hero-img-floating {
    position: absolute;
    width: 300px;
    height: 400px;
    border-radius: 30px;
    object-fit: cover;
    bottom: -50px;
    right: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 10px solid white;
}

/* --- Grid Fix --- */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.service-card {
    grid-column: span 4;
    background: white;
    padding: 50px 40px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

/* --- Sticky CTA --- */
.sticky-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 15px 30px;
    border-radius: 100px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
    .asymmetric-grid > div {
        grid-column: span 1 !important;
    }
    .hero-image-stack {
        height: 400px;
        margin-top: 50px;
    }
    .hero-img-floating {
        width: 150px;
        height: 200px;
    }
    .sticky-bar { 
        bottom: 10px; 
        padding: 10px 20px;
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
    }
}

/* --- Form Inputs --- */
.input-luxury {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fcfcfc;
    border-radius: 15px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
}

.input-luxury:focus {
    outline: none;
    border-color: var(--brand-crimson);
    background: #fff;
    box-shadow: 0 10px 30px rgba(192, 20, 26, 0.05);
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 50px;
    border-radius: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--brand-gray);
}

/* --- Exit Intent Popup --- */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.exit-intent-overlay.active {
    display: flex;
    opacity: 1;
}

.exit-intent-container {
    width: 90%;
    max-width: 500px;
    background: #fff;
    padding: 50px;
    border-radius: 40px;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exit-intent-overlay.active .exit-intent-container {
    transform: scale(1);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
    text-decoration: none;
}
.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
