/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --primary: #0A1F44;      /* Azul-Marinho Profundo */
    --secondary: #4A5D23;    /* Verde Oliva */
    --accent: #E67E22;       /* Laranja Queimado */
    --bg-light: #F9F9F9;     /* Off-White */
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f0f4f8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   2. BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-height: 48px; /* Acessibilidade */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #3a4a1c;
}

/* =========================================
   3. HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-desktop ul {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: var(--text-light);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-cta {
    margin-top: 30px;
}

/* =========================================
   4. HERO
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.6); /* Overlay Azul Marinho */
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================
   5. BARRA DE CONFIANÇA
   ========================================= */
.trust-bar {
    background-color: #e0e0e0;
    padding: 30px 0;
    text-align: center;
}

.trust-bar p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.logos-grid img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   6. GRIDS E CARDS
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Serviços Prévia */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(10,31,68,0.9), transparent);
    color: var(--text-light);
}

.service-info h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

/* =========================================
   7. DEPOIMENTOS
   ========================================= */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 150px;
}

.testimonial {
    display: none;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s;
}

.testimonial .author {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    font-style: normal;
    color: var(--secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   8. CTA FINAL
   ========================================= */
.cta-final {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('assets/cta-bg.jpg') center/cover fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--text-light);
}

.cta-final h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* =========================================
   9. SOBRE (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item .year {
    display: block;
    font-weight: 800;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* =========================================
   10. SERVIÇOS (PÁGINA)
   ========================================= */
.subtitle {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
}

.steps-grid {
    text-align: center;
}

.step {
    padding: 30px;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--text-light);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

/* =========================================
   11. PORTFÓLIO / GALERIA
   ========================================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--radius);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

/* =========================================
   12. CONTACTO
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--text-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
    background: var(--text-light);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--text-light);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.info-card h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* =========================================
   13. FOOTER
   ========================================= */
.footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-col a {
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* =========================================
   14. ANIMAÇÕES (FADE IN)
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   15. RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-desktop, .header-actions .btn-primary {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        text-align: left !important;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
    }
}