/* assets/css/style.css */

/* --- Variáveis e Reset Básico --- */
:root {
    --color-primary: #0077B6;
    --color-secondary: #023E8A;
    --color-bg-dark: #0D1117;
    --color-text-light: #EAEAEA;
    --color-accent: #48CAE4;
    --color-footer-bg: #050709;
    --color-footer-text: #B0B0B0;
    --color-overlay-dark: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif; 
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Utilitários --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-primary {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* --- ESTILOS DE ÍCONES (Lucide Icons) --- */
.icon-lucide {
    width: 30px;
    height: 30px;
}

.service-icon, .mvo-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.mvo-icon {
    width: 40px;
    height: 40px;
}

.footer-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: var(--color-primary); 
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.submit-icon {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
}

/* --- Layout: Header --- */
.header {
    background-color: var(--color-bg-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 40px;
    width: auto;
}

/* --- Menu Mobile --- */
.menu-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.nav {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid var(--color-secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.nav.is-open {
    display: flex;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem; 
    display: block;
    text-align: center;
    border-bottom: 1px solid var(--color-secondary);
}

.nav-link:hover {
    color: var(--color-primary);
}

.btn-cta-nav {
    color: var(--color-primary);
    font-weight: bold;
}

/* --- Responsividade Desktop (a partir de 768px) --- */
@media (min-width: 768px) {
    .menu-toggle {
        display: none; 
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        padding: 0;
        border-top: none;
        box-shadow: none;
        gap: 2.5rem; 
        margin-left: auto;
    }

    .nav-link {
        color: var(--color-text-light);
        padding: 0.5rem 0;
        position: relative;
        border-bottom: none; 
        font-weight: 500;
    }
    
    .nav-link:hover {
        color: var(--color-text-light);
        text-shadow: 0 0 8px var(--color-primary);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px; 
        left: 50%; 
        width: 0;
        height: 3px;
        background: var(--color-primary);
        box-shadow: 0 0 8px var(--color-primary); 
        transition: width 0.3s ease-out, left 0.3s ease-out;
        border-radius: 2px;
    }

    .nav-link:hover::after {
        width: 100%;
        left: 0; 
    }
}

/* --- Layout: Hero Section com Fundo de VÍDEO --- */
.hero {
    min-height: 90vh; 
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 0; 
    position: relative;
    overflow: hidden; 
    background-color: var(--color-bg-dark);
    z-index: 1; 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-dark);
    z-index: 2;
}

.hero::after { 
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; 
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.15; 
    z-index: 3;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 4;
}

/* Drones page hero background with subtle Ken Burns effect */
.drones-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.drones-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,17,23,0.25), rgba(13,17,23,0.6));
    z-index: 2;
}
.drones-hero .hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform-origin: center center;
    animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.06) translateY(-4%); }
}

/* Carousel básico */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 500ms cubic-bezier(.2,.9,.3,1);
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
.carousel-button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 0.6rem 0.9rem;
    border-radius: 50%;
    margin: 0 0.5rem;
    pointer-events: auto;
}
.carousel-indicators {
    display:flex; gap:0.5rem; justify-content:center; margin-top:0.75rem;
}
.carousel-indicators button{ width:10px; height:10px; border-radius:50%; border:none; background:rgba(255,255,255,0.25);} 
.carousel-indicators button.active{ background:var(--color-primary); box-shadow:0 0 8px var(--color-primary);} 

/* Accordion/FAQ */
.accordion {
    width: 100%;
    text-align: left;
    padding: 1rem 1rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
    color: var(--color-text-light);
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display:flex; align-items:center; justify-content:space-between;
}
.accordion::after { content: '+'; font-weight:700; }
.accordion.active::after { content: '-'; }
.panel {
    padding: 1rem 1rem;
    border-left: 3px solid rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 6px;
}

/* Ensure footer shared look */
/* footer styles are defined earlier and reused across pages */

.hero-title {
    font-size: 2.8rem; 
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); 
}

.hero-subtitle {
    font-size: 1.2rem; 
    margin-bottom: 3rem;
    color: var(--color-text-light);
    opacity: 0.9;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7); 
}

.btn-cta {
    display: inline-block;
    padding: 1.1rem 2.8rem; 
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.6); 
    transform: scale(1);
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover / Focus / Active states for both anchors and buttons */
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
    background-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.8); 
}

.btn-cta:hover { transform: scale(1.05); }
.btn-cta:active { transform: scale(0.98); }

/* Ensure visited anchors keep the CTA look */
.btn-cta:visited { color: white; }

/* Focus-visible outline for accessibility */
.btn-cta:focus-visible { outline: 3px solid rgba(72,202,228,0.18); outline-offset: 4px; }

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem; 
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* --- Layout: Seções Padrão --- */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--color-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-text-light);
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    background-color: var(--color-bg-dark);
}

.mvo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.mvo-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.mvo-item p {
    color: var(--color-footer-text);
}

@media (min-width: 768px) {
    .mvo-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
        gap: 3rem;
    }
    .mvo-icon {
        margin: 0 0 1rem 0;
    }
}

/* --- Seções de Serviços Individuais --- */
.feature-section {
    padding: 6rem 0;
}
.feature-section.bg-secondary {
    background-color: var(--color-secondary);
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-content .section-title {
    text-align: left;
}

.feature-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-footer-text);
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-grid.reverse-grid .feature-image {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .feature-grid.reverse-grid .feature-content {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
}


/* --- Layout do Formulário de Contato --- */
.contact-section {
    background-color: var(--color-bg-dark);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary);
    border-color: var(--color-primary);
}

.btn-submit {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}

.btn-submit:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    box-shadow: 0 6px 15px rgba(72, 202, 228, 0.5);
}

.form-status-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none; 
}

.form-status-success {
    background-color: rgba(0, 119, 182, 0.2); 
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.form-status-error {
    background-color: rgba(255, 0, 0, 0.2);
    color: rgb(255, 80, 80);
    border: 1px solid rgb(255, 80, 80);
}


/* --- Layout: Footer --- */
.footer {
    background-color: var(--color-footer-bg); 
    padding: 3rem 0 1.5rem 0;
    border-top: 2px solid var(--color-primary); 
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3rem; 
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-secondary); 
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-col {
        flex: 1; 
        min-width: 200px;
    }
    .footer-info {
        flex: 1.5; 
        padding-right: 40px; 
    }
}

.footer-info h4, .footer-contact h4, .footer-links h4 {
    font-size: 1.2rem; 
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
}

.footer-info p {
    font-size: 1rem; 
    color: var(--color-footer-text); 
    margin: 0 auto;
}
@media (min-width: 768px) {
    .footer-info p {
        margin: 0; 
    }
}

.footer-contact ul, .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-contact li, .footer-links li {
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-bottom: 0.6rem; 
    font-size: 0.95rem;
    color: var(--color-footer-text);
}
@media (min-width: 768px) {
    .footer-contact li, .footer-links li {
        justify-content: flex-start;
    }
}

.footer-contact li a, .footer-links li a {
    color: var(--color-footer-text);
    text-decoration: none;
}
.footer-contact li a:hover, .footer-links li a:hover {
    color: var(--color-primary); 
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-footer-text);
    opacity: 0.6;
}

/* --- Banner de Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-secondary);
    padding: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-banner p {
    color: var(--color-footer-text);
    max-width: 800px;
    margin: 0;
}

.cookie-banner .btn-cta {
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 2rem;
    }
}

/* Partner logos uniform size */
.partner-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .partner-logo { height: 48px; }
}