:root {
    --c-gold: #cdab68;
    --c-gold-rgb: 205, 171, 104;
    --c-olive: #3f4b40;
    --c-olive-dark: #2d362e;
    --c-cream: #f8f3ea;
    
    --ease-lux: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.8s var(--ease-lux);
    --transition-medium: 0.5s var(--ease-lux);
}

body {
    background-color: var(--c-olive-dark);
    color: var(--c-cream);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== AMBIENT NOISE & DEPTH ===== */
.bg-noise {
    position: relative;
}
.bg-noise::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* ===== AMBIENT GLOWS ===== */
.glow-gold {
    position: absolute;
    background: radial-gradient(circle, rgba(var(--c-gold-rgb), 0.15) 0%, rgba(var(--c-gold-rgb), 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ===== JEWEL CLIP PATHS ===== */
.shape-jewel {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.shape-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.shape-emerald {
    clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}

/* ===== TYPOGRAPHY ACCENTS ===== */
.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.gold-text-gradient {
    background: linear-gradient(135deg, #f3e3be, #cdab68, #b2914d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ELEGANT BUTTONS ===== */
.btn-editorial {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--c-gold);
    color: var(--c-cream);
    transition: var(--transition-medium);
    z-index: 2;
}
.btn-editorial::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--c-gold);
    transition: var(--transition-medium);
    z-index: -1;
}
.btn-editorial:hover {
    color: var(--c-olive-dark);
    border-color: var(--c-gold);
}
.btn-editorial:hover::before {
    height: 100%;
}

.btn-editorial-light {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--c-olive-dark);
    color: var(--c-olive-dark);
    transition: var(--transition-medium);
    z-index: 2;
}
.btn-editorial-light::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--c-olive-dark);
    transition: var(--transition-medium);
    z-index: -1;
}
.btn-editorial-light:hover {
    color: var(--c-cream);
}
.btn-editorial-light:hover::before {
    height: 100%;
}

/* ===== REVEAL ANIMATION SYSTEM ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}
.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s var(--ease-lux);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.2s var(--ease-lux), transform 1.2s var(--ease-lux);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}

.is-visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-olive-dark); }
::-webkit-scrollbar-thumb { background: var(--c-gold); }

/* ===== GLASS NAV ===== */
.nav-glass {
    background: rgba(45, 54, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(205, 171, 104, 0.1);
}

/* Dynamic Nav Theme (For light backgrounds like servicos.php) */
.nav-theme-light:not(.nav-glass) nav a {
    color: var(--c-olive-dark) !important;
}
.nav-theme-light:not(.nav-glass) nav a:hover {
    color: var(--c-gold) !important;
}
.nav-theme-light:not(.nav-glass) nav a.active {
    color: var(--c-gold) !important;
}
.nav-theme-light:not(.nav-glass) nav a.btn-cta-navbar {
    color: var(--c-olive-dark) !important;
    border-color: var(--c-olive-dark) !important;
    background: transparent !important;
}
.nav-theme-light:not(.nav-glass) nav a.btn-cta-navbar:hover {
    background: var(--c-olive-dark) !important;
    color: var(--c-cream) !important;
}
.nav-theme-light:not(.nav-glass) .md\:hidden {
    color: var(--c-olive-dark) !important;
}
.nav-theme-light:not(.nav-glass) img {
    filter: brightness(0) invert(0.2) sepia(0.2) hue-rotate(70deg) !important;
}

/* ===== HERO FLOAT ANIMATION ===== */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}
.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

/* ===== ROTATING RING ===== */
@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ring-rotate {
    animation: slowSpin 40s linear infinite;
}

/* ===== PULSE GLOW ===== */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
.pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* ===== MARQUEE / RUNNING TEXT ===== */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== PARALLAX IMAGE HOVER ===== */
.img-parallax {
    transition: transform 1.5s var(--ease-lux);
}
.img-parallax:hover {
    transform: scale(1.08);
}

/* ===== COUNTER NUMBER ANIMATION ===== */
@keyframes countFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-number {
    animation: countFadeIn 0.8s var(--ease-lux) forwards;
    opacity: 0;
}

/* ===== DECORATIVE GOLD LINE (expand) ===== */
.line-expand {
    width: 0;
    transition: width 1.2s var(--ease-lux);
}
.is-visible .line-expand,
.line-expand.is-visible {
    width: 100%;
}

/* ===== STAGGERED CARD HOVER ===== */
.card-luxury {
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-lux);
}
.card-luxury::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-lux);
}
.card-luxury:hover::after {
    transform: scaleX(1);
}
.card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== IMAGE GALLERY MOSAIC ===== */
.mosaic-item {
    overflow: hidden;
    position: relative;
}
.mosaic-item img {
    transition: transform 1.2s var(--ease-lux), filter 0.6s ease;
}
.mosaic-item:hover img {
    transform: scale(1.1);
    filter: sepia(0) saturate(1.2);
}
.mosaic-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 54, 46, 0.7) 0%, transparent 60%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.mosaic-item:hover::before {
    opacity: 1;
}

/* ===== PILLAR / 3 COLUMNS SEPARATOR ===== */
.pillar-divider {
    position: relative;
}
.pillar-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--c-gold), transparent);
}

/* ===== SPECIALTY ROWS (antigo, mantido para servicos.php) ===== */
.specialty-row {
    border-bottom: 1px solid rgba(205, 171, 104, 0.2);
    transition: var(--transition-medium);
}
.specialty-row:hover {
    background: rgba(205, 171, 104, 0.05);
    padding-left: 20px;
    border-bottom-color: var(--c-gold);
}
.specialty-image {
    opacity: 0;
    transform: scale(0.95) rotate(-2deg);
    transition: var(--transition-medium);
    pointer-events: none;
}
.specialty-row:hover .specialty-image {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ===== SCROLL DOWN BOUNCE ===== */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}
