@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Primary Financial Colors */
    --primary: #FF6F0F;
    /* Exact Brand Color */
    --primary-dark: #E65A00;
    --primary-light: #FF8F4D;

    /* Secondary Colors */
    --secondary: #0F172A;
    /* Steel Navy */
    --secondary-light: #1E293B;

    /* Accent Colors */
    --accent: #F59E0B;

    /* Neutral Colors */
    --white: #FFFFFF;
    --bg-light: #F1F5F9;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #94A3B8;
    --gray-400: #64748B;
    --gray-500: #475569;
    --gray-600: #334155;
    --gray-700: #1E293B;
    --gray-800: #0F172A;
    --gray-900: #020617;

    /* Shadows - More subtle for corporate look */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

section {
    padding: 100px 0;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    /* Professional sharp corners */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: none;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background-color: var(--gray-100);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navbar */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header.scrolled nav {
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
    /* Hide text if logo image is used, or keep for SEO */
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('fachada.png') no-repeat center center/cover;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
    /* Prevent white edges from blur */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
    /* Laranja solicitado */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
    background: rgba(15, 23, 42, 0.4);
    /* Fundo sutil escuro */
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    /* Efeito vidro */
    border-left: 4px solid var(--primary);
    /* Detalhe lateral em laranja */
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-image {
    display: none;
}

/* Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 80px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.service-card:hover {
    border-color: var(--primary);
    background-color: var(--gray-100);
}

.service-info {
    flex: 1.2;
}

.service-info h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
    font-weight: 800;
}

.service-info p {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.service-details {
    flex: 1;
    background: #fcfcfc;
    padding: 50px;
    border-radius: 8px;
    border: 1px dashed var(--gray-200);
}

.service-details h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-details ul li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-footer-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Chronology / Timeline - Fixed Version */
.timeline {
    width: 100%;
    max-width: 1100px;
    margin: 100px auto 0;
    padding: 0 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 80px 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
    height: 180px;
    /* Force height to prevent overlap */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-content {
    position: absolute;
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
}

/* Alternate top and bottom with safe margins */
.timeline-item:nth-child(odd) .timeline-content {
    bottom: 100px;
}

.timeline-item:nth-child(even) .timeline-content {
    top: 100px;
}

/* Vertical line indicators */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 40px;
    background: var(--primary);
    left: 50%;
    opacity: 0.3;
}

.timeline-item:nth-child(odd)::after {
    bottom: 55%;
}

.timeline-item:nth-child(even)::after {
    top: 55%;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.4;
    opacity: 0.8;
}

.about {
    padding-bottom: 140px;
    /* Extra space for timeline */
}

/* About Us */
.about {
    background-color: var(--secondary);
    /* Steel Navy */
    color: var(--white);
    border-top: 1px solid var(--gray-800);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-4c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm37-39c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2394a3b8' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.about h2 {
    color: var(--white);
}

.about p {
    color: var(--white);
    font-weight: 300;
}

.about-text {
    flex: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stats-highlight {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-box {
    background: rgba(255, 111, 15, 0.1);
    padding: 30px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    min-width: 250px;
}

.stat-box h4 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

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

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--secondary);
    padding: 40px;
    border-radius: 20px;
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    color: var(--primary);
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.action-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.action-card:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.action-card:hover i {
    color: var(--white);
}

.action-card.whatsapp i {
    color: #25D366;
}

.action-card:hover.whatsapp {
    background-color: #25D366;
    border-color: #25D366;
}

/* Animations */
.map-section {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: var(--shadow);
}

.map-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-map {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-google {
    background: #4285F4;
    color: white;
}

.btn-waze {
    background: #33CCFF;
    color: white;
}

.btn-map:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate {
    animation: fadeInUp 0.8s forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white) !important;
    border: 1px solid var(--primary);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Hamburguer Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    padding: 5px;
}

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

.menu-toggle i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav .btn-primary {
        display: none;
        /* Omitir Fale Conosco no mobile como solicitado */
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 15px 20px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        z-index: 999;
        display: flex;
        /* Show as flex but off-screen */
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: block;
        padding: 20px 0;
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: 1px solid var(--primary);
        background: var(--gray-100);
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-image {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-flex {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: column;
        padding: 40px;
        gap: 30px;
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* =========================================================
   ESTILO DE SOBREPOSIÇÃO (VARIAÇÃO A - #777370)
   ========================================================= */
.overlap-a-section {
    background: var(--bg-light);
    /* cor de fundo de baixo */
    padding-bottom: 100px;
}

.overlap-a-header {
    background: #777370;
    color: white;
    padding: 100px 20px 180px 20px;
    text-align: center;
}

.overlap-a-header h2 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: var(--primary);
    /* Laranja */
}

.overlap-a-header p {
    color: white;
    /* Apenas branco */
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.overlap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: -100px auto 0 auto;
    padding: 0 20px;
}

.overlap-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
    text-decoration: none;
    /* In case it becomes a link */
    color: inherit;
    display: block;
}

@media (min-width: 901px) {
    .overlap-card:hover {
        transform: translateY(-5px);
    }

    .overlap-card.card-featured {
        transform: translateY(-20px);
        border-top-width: 6px;
    }

    .overlap-card.card-featured:hover {
        transform: translateY(-25px);
    }
}

.overlap-card i {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    /* Todos ícones de cima laranja */
}

.overlap-card h3 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: var(--secondary);
}

.overlap-card p {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.overlap-card-link {
    color: var(--secondary);
    /* Saiba mais azul */
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.overlap-card-link i {
    color: var(--primary);
    /* Setinha laranja */
    margin-left: 5px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .overlap-grid {
        grid-template-columns: 1fr;
        margin-top: -60px;
        gap: 20px;
    }

    .overlap-a-header {
        padding: 60px 20px 100px 20px;
    }
}

/* =========================================
   PREMIUM SCROLL ANIMATIONS (Apple Style)
   ========================================= */

/* Initial hidden state for scroll trigger */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* State when element becomes visible in the viewport */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delay staggered child elements specifically for grid setups */
.service-preview-card:nth-child(1),
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-preview-card:nth-child(2),
.service-card:nth-child(2) {
    transition-delay: 0.25s;
}

.service-preview-card:nth-child(3),
.service-card:nth-child(3) {
    transition-delay: 0.4s;
}

.stat-box:nth-child(1) {
    transition-delay: 0.1s;
}

.stat-box:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-box:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-box:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hero section animate on load */
.hero .animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1.animate {
    animation-delay: 0.2s;
}

.hero p.animate {
    animation-delay: 0.4s;
}

.hero .hero-btns.animate {
    animation-delay: 0.6s;
}

@keyframes heroRise {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}