/* 
    Escaleno Contabilidade - Modernized Design System
    Lighter Palette: White & Soft Gray with Maroon/Gold Accents
*/

:root {
    --primary-color: #430413; /* Escaleno Maroon - Accent */
    --accent-color: #D4AF37;  /* Premium Gold */
    --bg-white: #ffffff;
    --bg-soft: #f8f9fa;
    --text-main: #2b2b2b;
    --text-light: #555555;
    --text-white: #ffffff;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.bg-soft {
    background-color: var(--bg-soft);
}

.text-center { text-align: center; }
.mt-5 { margin-top: 50px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(67, 4, 19, 0.8); /* Subtle wine glow on hover */
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-accent {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn i {
    margin-right: 12px;
    font-size: 1.1em;
}

.btn-lg {
    padding: 22px 50px;
    font-size: 1.1rem;
}

/* --- Clean up old variations --- */


/* --- Header --- */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    height: 90px;
    top: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo-box {
    background: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px; /* Garantir espaço do menu */
}

.scrolled .logo-box {
    box-shadow: none;
    padding: 8px 20px;
    background: transparent;
}

.logo {
    height: 75px; /* Tamanho aumentado */
    width: auto;
    transition: var(--transition);
}

.scrolled .logo {
    height: 60px;
}

.nav-list {
    display: flex;
    gap: 35px;
    margin-left: auto; /* Empurra o menu para a direita, afastando do logo */
}

.nav-link {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.scrolled .nav-link {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-white);
}

.scrolled .mobile-menu-toggle {
    color: var(--primary-color);
}

/* --- Hero Carousel (Swiper) --- */
.hero-slider {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide-content p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

/* --- Quem Somos Section --- */
.about {
    padding: 80px 0; /* Mais compacto verticalmente */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: flex-start; /* Alinhado ao topo para leitura imediata */
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.about-features i {
    color: var(--accent-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.stat-item h4 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.about-image {
    position: relative;
    padding: 20px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    z-index: 2;
    height: 480px; /* Altura controlada para evitar rolagem excessiva */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--bg-soft);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: 50px;
    left: -30px;
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 15px;
    z-index: 3;
    box-shadow: 0 15px 40px rgba(67, 4, 19, 0.3);
    text-align: center;
}

.experience-badge h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    line-height: 1;
}

.experience-badge p {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

/* --- Why Choose Us --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-soft);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

/* --- Final CTA Section (Pronto para o próximo passo) --- */
.contact-cta {
    position: relative;
    padding: 150px 0;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 4, 19, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.cta-card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 80px 50px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.cta-card-glass h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.1;
}

.cta-card-glass p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-pills {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-pill {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-pulse {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* --- Footer Expanded --- */
.footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

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

.footer-logo { height: 80px; margin-bottom: 25px; transition: var(--transition); }
.footer-logo:hover { transform: scale(1.05); }
.footer-text { color: #999; margin-bottom: 20px; }
.footer-links h4 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: #999; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

/* --- Location Grid Side-by-Side --- */
.location-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Um pouco mais largo para o mapa */
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.detail-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.map-container {
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2); /* Estética mais limpa */
}


/* --- Mobile Fixes --- */
@media (max-width: 992px) {
    .slide-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.5s;
        z-index: 1001;
        margin-left: 0; /* Reset margin for mobile */
        gap: 20px;
    }
    .nav-list.active { right: 0; }
    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        height: 70px;
    }
    .logo-box {
        margin-right: 0;
        padding: 8px 15px;
    }
    .logo {
        height: 50px;
    }
    .nav-link { color: var(--text-main); font-size: 1.5rem; }
    .mobile-menu-toggle { display: block; z-index: 1002; }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card { padding: 40px 30px; }
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .map-container { height: 350px; }
    .section { padding: 80px 0; }
}

/* --- Dev Signature (Custom) --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dev-signature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #999;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.dev-signature:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.dev-text {
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.dev-signature .tooltip-box {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    color: #f1f5f9;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #1e293b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.dev-signature:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fa-heart.pulse-red {
    color: #ef4444;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
