:root {
    --primary: #2E3619;
    --secondary: #3D4B39;
    --accent: #806941;
    --accent-glow: rgba(128, 105, 65, 0.5);
    --white: #FFFFFF;
    --dark: #121212;
    --light: #F4F4F4;
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;      /* títulos */
    --font-subheading: 'Montserrat', sans-serif; /* subtítulos */
    --font-body: 'Montserrat', sans-serif;            /* textos correntes */
    --font-mono: 'Montserrat', monospace;         /* códigos admin */
    --font-main: 'Montserrat', sans-serif;       /* fallback main */
    /* UI */
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 24px;
    --radius-btn: 50px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 20px 40px rgba(0,0,0,0.15), inset 0 2px 0 rgba(255,255,255,0.4);
    --shadow-hover: 0 30px 60px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.5);
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    border: 3px solid #1a1a1a;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Helper for Footer Logo White */
.footer-logo-img {
    filter: brightness(0) invert(1); /* Torna a imagem branca pura */
    max-height: 80px;
    width: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at 0% 0%, #ffffff 0%, #f0f2eb 50%, #e6e8e0 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    min-height: 100vh;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.5rem) !important; }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem) !important; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem) !important; }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem) !important; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Header Glassmorphism Premium Dark */
header {
    background: linear-gradient(90deg, #202020 0%, #2E3619 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(128, 105, 65, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 5% !important;
    min-height: 80px;
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(128, 105, 65, 0.3);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 5% !important;
    background: rgba(32, 32, 32, 0.95) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 -1px 5px rgba(128, 105, 65, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.main-logo-img {
    max-height: 130px !important;
    width: auto !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

header.scrolled .main-logo-img {
    max-height: 85px !important;
}

.logo span {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    text-shadow: 0 0 10px rgba(128, 105, 65, 0.5);
    position: relative;
    z-index: 2001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #EBEBEB;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 0%; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--accent-glow);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0 5%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.monstera-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10C30 10 10 30 10 50C10 70 30 90 50 90C70 90 90 70 90 50C90 30 70 10 50 10Z" fill="none" stroke="%23806941" stroke-width="0.2"/></svg>');
    background-size: 300px;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-professional {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.hero-professional img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

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

.hero-content h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    color: var(--light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, rgba(128,105,65,0.9), rgba(128,105,65,1));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(128, 105, 65, 0.3), inset 0 2px 2px rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(128, 105, 65, 0.4), inset 0 2px 2px rgba(255,255,255,0.6);
    background: linear-gradient(135deg, rgba(148,125,85,1), rgba(128,105,65,1));
}

.cta-button.outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 2px 2px rgba(255,255,255,0.2);
    text-shadow: none;
}

.cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), inset 0 2px 2px rgba(255,255,255,0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Solutions Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.solution-card {
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s ease;
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
}

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

.solution-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.1));
    box-shadow: 0 8px 32px var(--accent-glow), inset 0 2px 5px rgba(255,255,255,1);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    transform: translateZ(0);
    transition: var(--transition);
}

.solution-card:hover i {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px var(--accent-glow), inset 0 2px 5px rgba(255,255,255,1);
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.4));
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* Portfolio Preview */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.portfolio-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: rotateX(0deg) rotateY(0deg);
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.9);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(46, 54, 25, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    padding: 2rem;
    text-align: center;
    transform: translateZ(30px);
}

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

/* Sections Styling */
section {
    padding: 120px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

/* Footer */
footer, section.footer, .site-footer {
    background-color: #121212 !important;
    color: #ffffff !important;
    padding: 80px 10% 40px !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem !important;
    margin-bottom: 60px;
}

.footer-logo h2 { color: #fff; margin-bottom: 1.5rem; }
.footer-logo h2 span { color: var(--accent); }
.footer-logo p { color: #888; line-height: 1.8; }

.footer-links h4 { color: var(--accent); margin-bottom: 1.5rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a { color: #888; text-decoration: none; transition: var(--transition); }
.footer-links ul li a:hover { color: #fff; padding-left: 5px; }

.footer-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.85rem;
}

/* Utilities */
.hide-desktop { display: none !important; }
.hide-mobile { display: inline-flex !important; }

/* Responsive */
@media (max-width: 992px) {
    .hide-desktop { display: block !important; }
    .hide-mobile { display: none !important; }
    
    header { padding: 0.6rem 5% !important; min-height: 80px !important; justify-content: flex-end !important; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .main-logo-img { max-height: 100px !important; }
    .menu-toggle { display: block; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(32, 32, 32, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 120px 10%;
        transition: var(--transition);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(128, 105, 65, 0.2);
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 2rem !important; align-items: flex-start !important; }
    nav ul li a { font-size: 1.2rem; color: var(--white); }
    .page-hero { padding: 140px 5% 60px 5%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 50px;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .hero-professional {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        width: 100%;
    }
    
    .hero-professional img {
        max-height: 65vh;
        max-width: 100%;
        width: auto;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .main-logo-img { max-height: 100px !important; }
    header.scrolled .main-logo-img { max-height: 80px !important; }
    .footer-grid { 
        grid-template-columns: 1fr !important; 
        text-align: center !important;
    }
    .footer-links ul { align-items: center; display: flex; flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .hero-btns { flex-direction: column; }
    section { padding: 60px 5%; }
}

/* Futuristic Inner Pages Styles */
.page-hero {
    padding: 180px 10% 80px 10%;
    background: linear-gradient(135deg, var(--dark) 0%, #1a2211 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(128,105,65,0.15) 0%, transparent 60%);
    animation: rotateSlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

.page-hero h1 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-3d);
}

.glowing-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.glowing-input:focus {
    outline: none;
    background: rgba(255,255,255,0.9);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 2px 5px rgba(0,0,0,0.05);
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), inset 0 2px 5px rgba(255,255,255,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6), inset 0 2px 5px rgba(255,255,255,0.5);
    color: #FFF;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
