/* --- Reset Básico e Fontes Modernas --- */
body, html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #e9ecef;
    scroll-behavior: smooth;
    /* --- FAIXA AZUL NO TOPO --- */
    border-top: 8px solid var(--primary-blue);
}
body.nav-open {
    overflow: hidden;
}

/* --- Cores Sugeridas (Paleta "Marine") --- */
:root {
    --primary-blue: #004a99;
    --secondary-blue: #007bff;
    --accent-teal: #00bfa5;
    --light-gray: #f8f9fa;
    --dark-text: #333;
    --white: #ffffff;
}

/* --- 1. HEADER --- */
.main-header {
    background-color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo img {
    height: 65px;
    transition: height 0.3s ease;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
}
.nav-menu a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: var(--accent-teal);
}

/* Botão Hambúrguer */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
}
.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger-line:nth-child(2) {
    margin: 6px 0;
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.mobile-nav-toggle.is-active .hamburger-line {
    background-color: var(--white);
}

/* Menu Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 74, 153, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}
.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}
.mobile-nav a:hover {
    color: var(--accent-teal);
}


/* --- 2. HERO COM VÍDEO (CORRIGIDO: Texto Esquerda / Meio) --- */
.hero-section {
    height: 650px;
    background-color: #333;
    background-position: center;
    display: flex;
    
    /* ALINHAMENTO CORRIGIDO AQUI */
    align-items: top; /* Centro Vertical */
    justify-content: flex-start; /* Esquerda Horizontal */
    
    color: var(--white);
    padding: 0 5%;
    position: relative; 
    overflow: hidden; 
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    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: 0;
}
.hero-content {
    max-width: 900px;
    text-align: left; /* Texto alinhado à esquerda */
    position: relative;
    z-index: 2; 
}
.hero-content h1 {
    font-size: clamp(1.2rem, 3vw, 2.2rem); 
    margin-bottom: 0;
    line-height: 1.2;
    white-space: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
@media (min-width: 1024px) {
    .hero-content h1 {
        white-space: nowrap;
    }
}


/* --- Classes Genéricas de Layout (Usadas em Serviços e Quem Somos) --- */
.about-section { /* Usado na home */
    max-width: 1300px;
    margin: 3rem auto;
    padding: 2.5rem;
    text-align: center;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.about-section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}
.about-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-container h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}
.content-section-wrapper {
    background-color: var(--light-gray);
    padding: 3rem 1rem;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.services-container {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

/* --- 3. HEXÁGONOS --- */
.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem 1rem;
    justify-items: center;
    padding-top: 1rem;
}
.hexagon-item {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 140px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.hexagon-item:hover {
    transform: scale(1.1) translateY(-5px);
}
.hexagon-border {
    background-color: var(--accent-teal);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: filter 0.3s ease;
    margin-bottom: 0.75rem;
}
.hexagon-item:hover .hexagon-border {
    filter: brightness(1.15);
}
.hexagon-image {
    width: 100%;
    aspect-ratio: 1.15 / 1; 
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}
.hexagon-item:hover .hexagon-image {
    transform: scale(1);
}
.hexagon-overlay {
    background-color: rgba(0, 74, 153, 0.75);
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.hexagon-item:hover .hexagon-overlay {
    opacity: 0.2; 
}
.hexagon-item h3 {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
}
.hexagon-item:hover h3 {
    color: var(--accent-teal);
}


/* --- 4. SEÇÃO CERTIFICAÇÕES --- */
.certification-wrapper {
    padding: 4rem 1rem;
    background-color: var(--white);
    text-align: center;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.section-header p {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 3rem;
    font-weight: 300;
}
.certification-grid-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; 
    max-width: 1300px;
    margin: 0 auto;
}
.cert-hexagon-static {
    text-decoration: none;
    display: block;
    width: 110px; 
    height: auto;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cert-hexagon-static:hover {
    transform: scale(1.15) translateY(-5px);
}
.cert-hexagon-static .hexagon-border {
    background-color: var(--accent-teal);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    padding: 2px;
    transition: filter 0.3s ease;
}
.cert-hexagon-static .hexagon-image {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    background-color: var(--white);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-hexagon-static .hexagon-image img {
    width: 102%;
    height: 102%;
    object-fit: cover;
    display: block;
}


/* --- 5. Seção de Depoimentos --- */
.testimonial-wrapper {
    padding: 3rem 1rem;
    margin: 3rem 0;
    background-color: var(--light-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}
.testimonial-wrapper h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
}
.testimonial-slider {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 3.5rem;
    position: relative;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-teal);
    height: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    quotes: "“" "”" "‘" "’";
}
.testimonial-text::before {
    content: open-quote;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-teal);
    line-height: 0;
    margin-right: 5px;
    position: relative;
    top: 5px;
}
.testimonial-author {
    display: block;
    font-weight: bold;
    color: var(--primary-blue);
    margin-top: 1rem;
}
.testimonial-company {
    display: block;
    font-size: 0.9rem;
    color: #777;
}
.testimonial-wrapper .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.testimonial-wrapper .swiper-pagination-bullet-active {
    background: var(--primary-blue) !important;
}

/* --- 6. PÁGINAS INTERNAS (Contato, Serviços e Quem Somos) --- */
.contact-page-content,
.service-content { /* Adicionada a classe .service-content aqui para compartilhar estilo */
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Estilos específicos para o texto interno */
.service-content h2 {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    font-size: 1.8rem;
}
.service-content p, .service-content li {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}
.service-content ul {
    padding-left: 20px;
}

/* Link de Voltar */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* --- Grid de Contato --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.contact-info h3, .contact-form h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info .info-item i {
    color: var(--accent-teal);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}
.info-item-social {
    margin-top: 2rem;
}
.info-item-social a {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.info-item-social a:hover {
    color: var(--accent-teal);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group textarea {
    resize: vertical;
}

/* --- Página de Serviço (servico.php) --- */
.service-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.4);
}
.service-header h1 {
    font-size: 2.8rem;
    font-weight: bold;
    max-width: 80%;
}


/* --- 7. Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* --- 8. FOOTER --- */
.main-footer {
    background-color: var(--primary-blue);
    color: #e0e0e0;
    padding: 4rem 2rem 1rem;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}
.footer-about h4 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1rem;
}
.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-contact h4, .footer-social h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.footer-contact p {
    margin: 0.8rem 0;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.footer-contact p i {
    color: var(--accent-teal);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.footer-social a {
    color: var(--white);
    font-size: 1.8rem;
    margin-right: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover {
    color: var(--accent-teal);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #c0c0c0;
}

/* --- 9. Modal de PDF --- */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.pdf-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 0;
    width: 80%;
    height: 85%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.pdf-modal-close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 2001;
    cursor: pointer;
    text-shadow: 0 1px 2px black;
}
.pdf-modal-close:hover,
.pdf-modal-close:focus {
    color: var(--accent-teal);
    text-decoration: none;
}
.pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* --- ESTILO DO BOTÃO (CORRIGIDO E REFORÇADO) --- */
.cta-button {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    
    /* Propriedades críticas para remover o estilo padrão de <button> */
    border: none; 
    cursor: pointer;
    font-family: inherit; /* Herda a fonte do site */
    font-size: 1rem;
    width: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* No formulário, o botão ocupa a largura total para ficar bonito */
.contact-form .cta-button {
    width: 100%;
}
.cta-button:hover {
    background-color: #009688;
}

/* --- 10. RESPONSIVIDADE --- */
@media (max-width: 1200px) {
    .hexagon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1024px) {
    .cert-hexagon-static {
        width: 100px;
    }
}
@media (max-width: 900px) {
    .hexagon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
    .hexagon-item {
        max-width: 160px;
    }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-nav-toggle { display: block; }
    
    .hero-section {
        justify-content: center;
        align-items: center;
    }
    .hero-content {
        text-align: center;
        justify-content: center;
    }
    .hero-content h1 { font-size: 2rem; }
    
    .service-header h1 { font-size: 2.2rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact p { justify-content: center; }
    .contact-container { grid-template-columns: 1fr; }
    
    .pdf-modal-content {
        width: 95%;
        height: 80%;
        margin: 10% auto;
    }
    /* Ajuste dos certificados no mobile */
    .certification-grid-static {
        gap: 1rem;
    }
    .cert-hexagon-static {
        width: 90px;
    }
}
@media (max-width: 540px) {
    .hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    .hexagon-item {
        max-width: 140px;
    }
    .hero-section { padding: 0 5%; }
}