@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #2C3E50;       
    --primary-light: #34495e;
    --accent-gold: #c5a47e;
    --accent-gold-dark: #a88b68;
    --accent-gold-light: #dccbb5;
    --text-body: #D9D9D9;     
    --text-muted: #9ca3af;
    --heading-color: #f8fafc;
    --bg-main: #121212;       
    --bg-secondary: #1A1A1A;  
    --bg-header: rgba(18, 18, 18, 0.85);
    --input-bg: #222222;
    --input-border: #333333;
    --container-max: 1240px;
    --header-height: 90px;
    --header-scrolled: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-gold: 0 10px 25px rgba(197, 164, 126, 0.15);
    --shadow-gold-hover: 0 15px 35px rgba(197, 164, 126, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p { margin-bottom: 1rem; }

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

img { 
    max-width: 100%; 
    display: block; 
}

ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section { 
    padding: 5rem 0; 
    position: relative; 
    background-color: var(--bg-main);
}

.section-alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-header);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: var(--header-scrolled);
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img { 
    height: 55px; 
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(197, 164, 126, 0.3));
}

header.scrolled .logo-img { 
    height: 45px; 
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links > li > a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 10px 0;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links > li > a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(197, 164, 126, 0.5);
}

.nav-links > li > a:not(.btn-nav):hover { 
    color: #fff; 
}

.nav-links > li > a:not(.btn-nav):hover::after { 
    width: 100%; 
}

/* No botão pai, garantimos que o que vazar será cortado */
.btn-nav {
    padding: 10px 28px !important;
    border: 0.5px solid var(--accent-gold);
    color: var(--accent-gold) !important;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
    
    /* ESSENCIAL: Isso corta o excesso do ::before e mantém a curva perfeita */
    overflow: hidden; 
    
    z-index: 1;
    /* Truque extra para suavizar bordas no Chrome/Safari */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.btn-nav::before {
    content: '';
    position: absolute;
    
    /* Começa posicionado para cobrir tudo (com folga negativa) */
    top: -2px;
    left: 0;
    
    /* Largura 0% para começar */
    width: 0%; 
    
    /* Altura maior que 100% para garantir que não falte cor na vertical */
    height: calc(100% + 4px); 
    
    background: var(--accent-gold);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    
    /* Removemos o border-radius daqui, deixamos o pai (.btn-nav) cuidar do corte */
    border-radius: 0; 
}

.btn-nav:hover::before {
    /* Preenche um pouco mais que 100% para garantir que cubra a borda direita */
    width: 110%; 
}

.btn-nav:hover { 
    color: #fff !important;
    border-color: var(--accent-gold);
}

.btn-nav:hover { 
    color: #fff !important;
    border-color: var(--accent-gold);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-body);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.dropdown-menu a:hover {
    background: rgba(197, 164, 126, 0.1);
    color: var(--accent-gold);
    padding-left: 25px;
}

.dropdown-menu a i {
    font-size: 1.1rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.dropdown-menu a:hover i {
    transform: scale(1.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.btn:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover { 
    filter: brightness(1.15); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-gold-hover);
}

.btn-dark {
    background-color: var(--primary);
    color: #fff;
}

.btn-dark:hover { 
    background-color: var(--primary-light); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover { 
    background: var(--accent-gold);
    color: #fff; 
    box-shadow: 0 0 20px rgba(197, 164, 126, 0.3);
}

.nav-links > li > .btn-nav.btn::before {
    display: block !important;
    content: '';
    position: absolute;
    border-radius: var(--radius-pill);
    bottom: 0;
    left: 0;
    top: auto;
    transform: none;
    width: 100%;
    height: 0;
    background: var(--accent-gold);
    opacity: 1;
    pointer-events: auto;
}

.nav-links > li > .btn-nav.btn:hover::before {
    height: 100% !important;
    width: 100% !important;
    opacity: 1 !important;
}

footer {
    background: #000000;
    color: var(--text-muted);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(197, 164, 126, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    box-shadow: 0 0 8px rgba(197, 164, 126, 0.5);
}

.footer-links li { 
    margin-bottom: 0.8rem; 
    transition: var(--transition-fast);
}

.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition-fast);
    color: var(--accent-gold);
}

.footer-links a:hover { 
    color: var(--accent-gold); 
    padding-left: 5px; 
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(197, 164, 126, 0.3);
    border-radius: 50%;
    color: var(--text-body);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(197, 164, 126, 0.3);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover i {
    color: #fff;
    transform: scale(1.2) rotate(5deg);
}

.footer-social a[href*="instagram"]:hover {
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.footer-social a[href*="whatsapp"]:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.footer-social a[href*="facebook"]:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

.whatsapp-float:hover { 
    transform: scale(1.15); 
    background: #1da851;
    animation: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo,
    a.logo {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1002 !important;
        order: 1 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-img,
    .logo img {
        height: 45px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    header {
        height: 70px;
    }

    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        width: 100% !important;
    }
}