/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #003366; /* Dark Blue */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff6600; /* Accent Orange */
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.bg-light {
    background-color: #f9f9f9;
}

.btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e65c00;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    color: #003366;
}

.nav-links a:hover {
    color: #ff6600;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #003366;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('imagens/serviços/serviço-1.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    transition: background-image 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 80px; /* Header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7); /* Dark blue overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero .slogan {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
}

/* Sobre Nós */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.company-data {
    margin-top: 30px;
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
}

.company-data h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.company-data ul li {
    margin-bottom: 10px;
}

/* Serviços */
.services-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 300px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #ff6600;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.value-card .icon {
    width: 80px;
    height: 80px;
    background-color: #e6f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-card .icon i {
    font-size: 2rem;
    color: #003366;
}

/* Clientes */
.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.client-badge {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #555;
}

.clients-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.client-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.client-img img {
    max-height: 100%;
    width: auto;
}

/* Contato */
.contact-section {
    background-color: #003366;
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center; /* Center the content */
}

.contact-info {
    /* flex: 1; Removed to allow centering without stretching too much if not needed, or keep it but max-width */
    min-width: 300px;
    max-width: 600px; /* Limit width for better readability */
}

.contact-info a:hover {
    color: #ff6600 !important; /* Hover effect for links */
    text-decoration: underline;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    color: #ff6600;
}

.info-item h4 {
    color: #fff;
    margin-bottom: 5px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: #002244;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
        margin: 30px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }

    .services-categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .service-card {
        width: auto;
        padding: 10px 5px;
        min-height: 100px;
    }

    .service-card i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 0.7rem;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Modal de Galeria */
.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.image-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.image-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.image-modal__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(90vw, 1100px);
    max-height: 90vh;
    padding: 20px;
}

.image-modal__frame {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    height: min(75vh, 720px);
    display: flex;
    flex-direction: column;
}

.image-modal__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.image-modal__caption {
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #333;
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
}

.image-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.image-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-modal__nav {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.image-modal__nav:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.image-modal__nav--prev {
    order: 0;
}

.image-modal__nav--next {
    order: 2;
}

@media (max-width: 900px) {
    .image-modal__content {
        width: 95vw;
        gap: 10px;
        padding: 10px;
    }

    .image-modal__nav {
        width: 40px;
        height: 40px;
    }

    .image-modal__frame {
        height: 70vh;
    }
}

@media (max-width: 600px) {
    .image-modal__content {
        flex-direction: column;
    }

    .image-modal__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .image-modal__nav--prev {
        left: 16px;
    }

    .image-modal__nav--next {
        right: 16px;
    }

    .image-modal__frame {
        height: 60vh;
    }
}
