* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #222;
    font-size: 16px;
    line-height: 1.75;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
}

header {
    background-color: #1E3A8A;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 120px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
    border-radius: 6px;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
    color: #1E3A8A;
    outline: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #f5f5f5;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        border-radius: 8px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1500;
    }

    nav ul.show {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        padding: 12px 16px;
        font-size: 1.1rem;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn {
        padding: 4px 8px;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        background-color: #1E3A8A;
        color: #fff;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .contact-info,
    .contact-form {
        flex: unset;
        max-width: 100%;
    }

    .contact-form {
        padding: 25px 15px;
        margin-top: 25px;
    }
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../imagens/frota.jpeg') no-repeat center/cover;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 75vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    background-color: #1E3A8A;
    border: 2px solid #1E3A8A;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    will-change: transform;
}

.btn:hover,
.btn:focus {
    background-color: #1E3A8A;
    transform: translateY(-2px);
    outline: none;
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.section {
    padding: 60px 20px;
    background-color: #fafafa;
    color: #222;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1E3A8A;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-top: -10px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 40px;
    flex-direction: row;
}

.about-text {
    flex: 1 1 50%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}

.about-text .btn {
    font-size: 1rem;
    padding: 10px 22px;
    margin-top: 20px;
    align-self: start;
    background-color: #1E3A8A;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.about-text .btn:hover {
    background-color: #1E3A8A;
}

.about-img {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
        align-items: center;
    }

    .about-text .btn {
        align-self: center;
    }

    .about-img {
        text-align: center;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.service-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 57, 114, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.5);
}

.service-box h3 {
    font-size: 1.4rem;
    color: #1E3A8A;
    margin-bottom: 12px;
}

.service-box p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .services-row {
        flex-direction: column;
        gap: 40px;
    }

    .service-group {
        flex: 1 1 auto;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.portfolio-overlay {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px 20px;
    background-color: #fff;
    color: #111;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.portfolio-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1d;
    line-height: 1.4;
    text-transform: capitalize;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    margin: 0;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ff5a5a;
}

.clients-carousel {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: scrollClients 20s linear infinite;
}

.clients-track>img {
    flex: 0 0 auto;
    max-height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: default;
    vertical-align: middle;

}

.client-logo[alt="Raízen"] {
    max-height: 130px;
}

.clients-track>img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: none;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .clients-track>img {
        max-height: 50px;
        gap: 20px;
    }

    .client-logo[alt="Raízen"] {
        max-height: 90px;
    }
}


.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: flex-start;
    padding: 30px 0;
}

.contact-info {
    flex: 1;
    color: #555;
    font-size: 1rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.1);
    align-items: center;
}

.contact-form .btn {
    display: block;
    margin: 20px auto 0 auto;
}

@media (max-width: 768px) {

    .about-content,
    .mission-container,
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #1E3A8A;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        border-radius: 8px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .contact-info,
    .contact-form {
        flex: unset;
        max-width: 100%;
    }

    .contact-form {
        padding: 25px 15px;
        margin-top: 25px;
    }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #222;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1.5px solid #ccc;
    background-color: #fff;
    color: #222;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #1E3A8A;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding: 40px 0;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-info,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li,
.footer-links li {
    margin-bottom: 12px;
    color: #f0f0f0;
    font-size: 0.95rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #facc15;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ffffff33;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.footer a,
.footer a:visited {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #facc15;
}

.footer {
    position: relative;
    background-color: #1E3A8A;
    color: #ffffff;
}

.footer .Fabrica {
    display: block;
    max-width: 150px;
    height: auto;
    margin-top: 15px;
}

.footer-info {
    text-align: left;
    text-decoration: none;

}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.footer-social li a {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 30px;
    color: #1E3A8A;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid #ffffff;
}

.footer-social li a i {
    color: #1E3A8A;
    transition: color 0.3s ease;
}

.footer-social li a:hover {
    background: #ffffff;
    color: #1E3A8A;
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    display: inline-block;
    margin-right: 12px;
    font-size: 40px;
    color: #1E3A8A;
    background: #ffffff;
    padding: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: #1E3A8A;
}


a:focus-visible,
button:focus-visible {
    outline: 2px dashed #ffffff;
    outline-offset: 4px;
}