/* 
   SEG BRASIL MANGABEIRA - FINAL REVISADO V2
   Foco: Carrossel, Responsividade e Cores do Rodapé
*/

:root {
    --primary-blue: #2e3092;
    --secondary-blue: #0000ff;
    --accent-yellow: #ffe400;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f3f3f3;
    --text-color: #32373c;
    --font-main: 'Montserrat', sans-serif;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

/* --- DESTAQUES --- */
.highlight-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .btn { width: auto; }
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-fale-conosco {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 50px;
}

.btn-fale-conosco:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue) !important;
}

.btn-nav-mobile {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    display: block;
}

/* --- HEADER --- */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .logo img { height: 55px; }
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.nav-links.active {
    display: flex;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--dark);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s ease;
}
.social-icons{
    display:flex;
    gap:15px;
}

.social-icons a{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    transition:.3s;
}

.social-icons img{
    width:28px;
    height:28px;
    object-fit:contain;
}

.social-icons i{
    font-size:28px;
    color:#25D366;
}

.social-icons a:hover{
    transform:translateY(-5px);
}

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

@media (min-width: 1024px) {
       .header-content {
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 20px;
    }
      .logo {
        margin-right: 80px; /* ajuste o valor conforme desejar */
    }
       .nav-links {
        display: flex;
        flex: 1;
        gap: 30px;
    }

    
    .nav-links a { color: var(--primary-blue) !important; }
    .btn-nav-mobile { display: none; }
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

@media (min-width: 1024px) {
    .nav-links a { border: none; padding: 0; font-size: 14px; }
}

.mobile-menu-icon {
    font-size: 26px;
    color: var(--primary-blue);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-icon { display: none; }
}

.desktop-only { display: none; }
@media (min-width: 1024px) {
    .desktop-only { display: block; }
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 120px 0 60px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .hero-content { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}

.hero-text h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-text h1 { font-size: 44px; }
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    color: var(--accent-yellow);
    font-weight: 600;
}

/* --- SOBRE NÓS --- */
.about-section {
    padding: 80px 0;
}

.about-flex {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-flex { grid-template-columns: 300px 1fr; align-items: flex-start; }
}

.about-logo-side {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #16183d 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-logo-side img {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

.footer-brand img {
    height: 50px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.section-title-left {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.about-cards-flex {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .about-cards-flex { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
    .about-cards-flex { grid-template-columns: repeat(3, 1fr); }
}

.about-item {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 15px;
}

.about-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- COMMON SECTIONS --- */
section { padding: 60px 0; }
@media (min-width: 768px) { section { padding: 100px 0; } }

.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

@media (min-width: 768px) { .section-title { font-size: 36px; margin-bottom: 60px; } }

.side-by-side-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) { .side-by-side-images { grid-template-columns: 1fr 1fr; } }

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

@media (min-width: 992px) {
    .info-grid { grid-template-columns: 1fr 1fr; text-align: left; gap: 60px; align-items: center; }
    .reverse .info-grid { direction: rtl; }
    .reverse .info-text { direction: ltr; }
}

.info-image img {
    border-radius: 15px;
    margin: 0 auto;
}

.info-text h2 {
    font-size: 26px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* --- CARROSSEL --- */
.carousel-section {
    background-color: var(--white);
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    min-width: 100%;
    flex: 0 0 100%;
}

.carousel-slide img {
    width: 100%;
    max-width: 500px; /* diminua para 600px, 550px ou 500px se desejar */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.carousel-slide video {
    width: 100%;
    max-width: 500px; /* igual à imagem */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}
.carousel-prev, .carousel-next {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.cria{
    color: #41aee1;
}


.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-prev:hover, .carousel-next:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 { font-size: 28px; margin-bottom: 20px; }
.cta-section p { margin-bottom: 30px; }

/* --- APP SECTION --- */
.app-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 992px) {
    .app-container { grid-template-columns: 1fr 1fr; text-align: left; align-items: center; }
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 992px) { .app-badges { justify-content: flex-start; } }

.app-badge img { height: 40px; }

.floating-app {
    max-width: 200px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

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

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- FOOTER (Corrigido: Cores dos Links Rápidos) --- */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.quick-links li a {
    color: var(--accent-yellow) !important; /* Nova cor solicitada */
    font-weight: 500;
}

.quick-links li a:hover {
    color: var(--white) !important;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
}

/* --- ANIMATIONS --- */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}
