:root {
    --gold: #c9a227;
    --gold-light: #e8c547;
    --gold-dark: #8b6914;
    --black: #030303;
    --charcoal: #0a0a0a;
    --surface: #111111;
    --surface-elevated: #161616;
    --cream: #f5f0e6;
    --muted: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.06);
    --gold-glow: rgba(201, 162, 39, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--black);
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.gold-text {
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-text-solid {
    color: var(--gold);
}

.gold-bg {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
}

.gold-border {
    border-color: var(--gold);
}

/* Grain overlay */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold));
    border-radius: 10px;
}

/* Header */
.glass-header {
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

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

/* Hero */
.hero-bg {
    transition: transform 25s ease-out;
    will-change: transform;
}

.hero-container:hover .hero-bg {
    transform: scale(1.08);
}

.hero-vignette {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--black) 85%),
        linear-gradient(to bottom, rgba(3, 3, 3, 0.4) 0%, rgba(3, 3, 3, 0.6) 50%, var(--black) 100%);
}

.hero-line {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 1px;
}

/* Stats bar */
.stat-item {
    border-right: 1px solid var(--border);
}
.stat-item:last-child {
    border-right: none;
}

/* Section label */
.section-label {
    letter-spacing: 0.35em;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.1;
}

/* Experience cards */
.experience-card {
    background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 39, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.08);
}

.experience-icon {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.2);
}

/* Combo cards */
.combo-card {
    background: linear-gradient(160deg, var(--surface-elevated) 0%, var(--charcoal) 100%);
    border: 1px solid var(--border);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.combo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--gold-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.combo-card > * {
    position: relative;
    z-index: 1;
}

.combo-card:hover {
    transform: translateY(-12px);
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-glow);
}

.combo-card:hover::before {
    opacity: 1;
}

.combo-card.featured {
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.combo-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.combo-feature svg {
    flex-shrink: 0;
    color: var(--gold);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.gallery-item img {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: grayscale(30%) brightness(0.85);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(3, 3, 3, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.gallery-featured {
    grid-row: span 2;
}

@media (max-width: 1023px) {
    .gallery-featured {
        grid-row: span 1;
    }
}

/* Testimonials */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(201, 162, 39, 0.2);
}

/* Form */
.form-panel {
    background: linear-gradient(160deg, var(--surface-elevated), var(--charcoal));
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.form-panel.plano-destacado {
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15), 0 40px 80px rgba(0, 0, 0, 0.4);
}

.form-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: #0a0a0a;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.4);
    filter: brightness(1.05);
}

.btn-outline {
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold);
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), rgba(201, 162, 39, 0.3), var(--border), transparent);
}

/* Modal */
.modal-backdrop {
    backdrop-filter: blur(8px);
}

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

.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Mobile menu */
#mobile-menu {
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(20px);
}
