:root {
    --primary-bg: #050505;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --accent-color: #C5A059; /* Ouro Nobre */
    --accent-gradient: linear-gradient(135deg, #C5A059 0%, #E6C888 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
html {
    scroll-behavior: auto !important; /* Prevent conflict with Lenis */
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased; /* Smoother text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography Utilities */
.text-gold {
    color: var(--accent-color) !important;
}

.text-gradient-gold {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fw-light { font-weight: 300 !important; }
.fw-bold { font-weight: 700 !important; }
.ls-2 { letter-spacing: 2px; }

/* Buttons Premium */
.btn-gold {
    background: var(--accent-gradient);
    border: none;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    color: #000;
}

.btn-gold:hover::after {
    opacity: 0.2;
}

.btn-outline-premium {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 38px;
}

.btn-outline-premium:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.05);
}

/* Navbar Premium */
.navbar {
    padding: 20px 0;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    will-change: transform, background-color; /* Performance hint */
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    padding: 15px 0;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 20px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Dropdown Menu Premium */
.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0;
    margin-top: 15px; /* Slight offset */
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--accent-color);
    color: #000;
}

/* Hero Section Refined */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Cards & Sections */
.section-padding {
    padding: 120px 0;
}

.bg-dark-premium {
    background-color: var(--secondary-bg);
}

.card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.icon-box-premium {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-bottom: 25px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.card-premium:hover .icon-box-premium {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Helper for larger icons */
.icon-box-lg {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.1);
    border: none;
}

.icon-box-lg i {
    font-size: 2rem;
}

/* Tabs Redesign */
.nav-pills .nav-link {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 0;
    padding: 12px 30px;
    margin-right: 10px;
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background: var(--accent-color);
    color: #000!important;
    border-color: var(--accent-color);
}

/* Image Styling */
.img-premium-wrapper {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.img-premium {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.img-premium-wrapper:hover .img-premium {
    filter: grayscale(0%) contrast(1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #000;
}

/* Responsive */
/* Timeline Process Horizontal */
.timeline-container {
    padding: 3rem 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 55px; /* Aligned with marker */
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-item {
    position: relative;
    padding-top: 3rem; /* Space for marker */
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    top: 46px; /* Aligned with line */
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--primary-bg);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.timeline-content {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-bg-img { opacity: 0.4; }
    .hero-overlay { background: linear-gradient(0deg, #000000 0%, rgba(0,0,0,0.8) 100%); }
}

@media (max-width: 991px) {
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        height: auto;
    }
    
    .timeline-item {
        padding-top: 0;
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        top: 30px;
        left: 11px;
        transform: none;
    }
}

/* FAQ Custom Design (User JSON) */
.faq-section-custom {
    background-color: var(--secondary-bg); /* VG Dark Premium */
    position: relative;
    overflow: hidden;
}

.faq-card {
    position: relative;
    padding: 20px 30px;
    border-radius: 29px;
    border: 1px solid var(--border-color); /* Subtle border initially */
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.faq-card:hover,
.faq-card.active {
    border-color: var(--accent-color); /* Gold border on active/hover */
    background: var(--card-bg);
    transform: translateX(10px); /* Slight movement for interaction */
}

/* Gradient Border Mask Effect */
.faq-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 29px;
    padding: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent); /* Gold Gradient */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.faq-card:hover::before,
.faq-card.active::before {
    opacity: 1;
}

.faq-num {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: var(--primary-bg);
    font-family: var(--font-heading);
    transition: all 0.4s ease;
}

.faq-num::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent); /* Gold Gradient */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-card:hover .faq-num,
.faq-card.active .faq-num {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.faq-card:hover .faq-num::before,
.faq-card.active .faq-num::before {
    opacity: 1;
}

.faq-content {
    flex: 1;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.faq-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.4s ease;
    /* Center vertically with the number (50px height) */
    display: flex;
    align-items: center;
    height: 50px; 
}

.faq-card:hover .faq-title,
.faq-card.active .faq-title {
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    opacity: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-card:hover .faq-answer,
.faq-card.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    /* Add some spacing after title */
    margin-bottom: 10px; 
}

/* Mobile Adjustments */
@media(max-width: 600px){
    .faq-card {
        border-color: var(--border-color);
        background: var(--card-bg);
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .faq-title {
        height: auto; /* Reset fixed height on mobile */
        margin-bottom: 10px;
    }

    .faq-card::before, .faq-num::before {
        opacity: 0.5; /* Always show subtle border on mobile */
    }
}

/* --- VG Simulador Chat Redesign --- */
.bg-gold-subtle {
    background-color: rgba(197, 160, 89, 0.15) !important;
}

.focus-ring-gold:focus {
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
    border-color: var(--accent-color);
}

.hover-text-dark:hover {
    color: #000 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.suggestion-chip {
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

/* Custom Scrollbar for Chat */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Modern Chat Styling */
#chat-container {
    background: rgba(20, 20, 20, 0.95) !important; /* Dark Glass */
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#chat-messages {
    background: transparent !important;
}

/* Header */
#chat-container .border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
    background: transparent !important;
}

#chat-container h6 {
    color: var(--text-primary) !important;
}

#chat-container .text-muted {
    color: var(--text-secondary) !important;
}

/* Message Bubbles */
.bot-message-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 10px !important;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.bot-message-bubble .markdown-body {
    color: var(--text-primary) !important;
    font-weight: 300;
    font-size: 1.1rem;
}

.user-message-bubble {
    background: var(--accent-gradient) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 18px 18px 0 18px !important;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2) !important;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Input Area Floating */
.chat-input-area {
    background: transparent !important;
    border-top: none !important;
    padding: 20px !important;
}

.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 25px rgba(197, 160, 89, 0.1);
}

#user-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    padding-left: 20px;
    font-size: 0.95rem;
}

#user-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-send-btn {
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color) !important;
    color: #000 !important;
    margin-right: 4px;
    transition: transform 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}
