/* ========================================
   ARQUIVO: styles.css
   DESCRIÇÃO: Estilos principais do site de Segurança e Terceirização
   AUTOR: Gabriel Lira
   DATA: 2025
   ======================================== */

/* ========== RESET E VARIÁVEIS GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --red-primary: #dc2626;
    --red-hover: #b91c1c;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-dark: #1f2937;
    --text-dark: #111827;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Tipografia */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Espaçamentos */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transições */
    --transition: all 0.3s ease;
}

/* ========== ESTILOS GLOBAIS ========== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botões Base */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    min-width: 180px;
    text-align: center;
}

.btn-primary {
    background-color: var(--red-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--red-primary);
}

.btn-white {
    background-color: var(--white);
    color: var(--red-primary);
}

.btn-white:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
}

/* Títulos de Seção */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    margin: -2rem auto 3rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: -5px 0 0 0;
    color: white;
}

/* Navegação Principal */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Área Direita do Header */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.social-icons a:hover {
    background-color: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.phone-highlight {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.phone-highlight strong {
    color: var(--red-primary);
    font-weight: 700;
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 38, 38, 0.40);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== SERVIÇOS SECTION ========== */
.services {
    background-color: var(--gray-light);
}

.services-security {
    padding: 5rem 0;
}

.services-facilities {
    background-color: var(--red-primary);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(97, 0, 0, 0.25);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Cards Brancos na Seção Vermelha */
.white-text {
    color: var(--white);
}

.white-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.white-card h3,
.white-card p {
    color: var(--white);
}

.white-icon {
    background-color: var(--white);
    color: var(--red-primary);
}

/* ========== PROTEÇÃO SECTION ========== */
.protection {
    padding: 5rem 0;
    background-color: var(--white);
}

.protection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.protection-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.protection-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Container do vídeo */
.video-container {
    background-color: var(--red-primary);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

/* Wrapper para manter aspect ratio do Shorts */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.video-wrapper.shorts {
    padding-bottom: 177.78%; /* Proporção 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper.shorts iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Texto abaixo do vídeo */
.video-text {
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.4;
    margin-top: 1rem;
}

/* ========== DIFERENCIAIS SECTION ========== */
.differentials {
    padding: 5rem 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.differentials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 192, 203, 0.3);
    filter: blur(3px);
}

.differentials .container {
    position: relative;
    z-index: 2;
}

/* Grid do cabeçalho dos diferenciais */
#differentials-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(122, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#differentials-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.3;
}

#differentials-header .section-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.differential-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.differential-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.differential-card h3 {
    margin-bottom: 1rem;
}

.differential-card p {
    margin-bottom: 1rem;
}

.differential-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.differential-card ul li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* ========== EQUIPE SECTION ========== */
.team {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.team-member {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gray-light);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-member p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: var(--red-primary);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-icon:hover {
    background-color: var(--red-hover);
    transform: scale(1.1);
}

/* ========== NOTÍCIAS SECTION ========== */
.news {
    padding: 5rem 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card h3 {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* ========== CTA FINAL SECTION ========== */
.cta-final {
    background-color: var(--red-primary);
    padding: 5rem 0;
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--red-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--red-primary);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: var(--red-primary);
}

/* ========== BOTÃO WHATSAPP FLUTUANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVIDADE ========== */

/* Desktop */
@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
    
    #differentials-header {
        max-width: 900px;
        gap: 2rem;
        padding: 4rem 3rem;
    }
    
    #differentials-header .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    #differentials-header .section-subtitle {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .header-container {
        gap: 2rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .services-grid,
    .differentials-grid,
    .team-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #differentials-header {
        padding: 3rem 2.5rem;
    }

    #differentials-header .section-title {
        font-size: 2.2rem;
    }
    
    .protection-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Header Mobile */
    .header-container {
        gap: 1rem;
    }
    
    .main-nav,
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Seções Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .services-grid,
    .differentials-grid,
    .team-grid,
    .news-grid,
    .protection-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .differential-card {
        padding: 2rem;
    }
    
    .protection-content h2 {
        font-size: 1.75rem;
    }
    
    .protection-container {
       grid-template-columns: 1fr;
       gap: 2rem;
    }
    
    .video-container {
        padding: 1.5rem;
    }

    #differentials-header {
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    #differentials-header .section-title {
        font-size: 1.75rem;
    }
    
    #differentials-header .section-subtitle {
        font-size: 1rem;
    }
    
    /* Remover quebras de linha forçadas no mobile */
    #differentials-header .section-title br,
    #differentials-header .section-subtitle br {
        display: none;
    }
    
    /* CTA Final Mobile */
    .cta-final h2 {
        font-size: 1.75rem;
    }
    
    /* Footer Mobile */
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        gap: 1rem;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Pequenos ajustes para telas muito pequenas */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .service-card,
    .differential-card {
        padding: 1.5rem;
    }
}

/* ========== UTILITÁRIOS ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========== MENU MOBILE ATIVO ========== */
.mobile-menu-active {
    overflow: hidden;
}

.mobile-menu-active .main-nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    padding: 2rem;
    animation: slideDown 0.3s ease;
}

.mobile-menu-active .nav-list {
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-active .header-right {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== PLACEHOLDER STYLES ========== */
/* Estilos temporários para elementos placeholder */
.logo img,
.member-photo img,
.news-image img {
    background-color: var(--gray-light);
}

/* ========== PRINT STYLES ========== */
@media print {
    .header,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 3rem 0;
    }
    
    .btn {
        border: 1px solid var(--text-dark);
    }
}