body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content h3 {
    color: #f5c400;
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}


header {
    height: 120px;
    background-color: #000000;
    background: linear-gradient(90deg, #000000 60%, #232323);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}


header .header-title {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 1100px) {
    header h1 {
        font-size: 1.8rem;
    }
}

header h1 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: 2.5rem;
}

header nav:first-child {
    position: relative;
    z-index: 1;
    width: 400px;
    padding-right: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}


header nav:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    right: 0;
    background-color: #000;
    transform: skewX(-20deg);
    transform-origin: top right;
    z-index: -1;
    box-shadow: 5px 0 15px rgba(43, 42, 42, 0.5);
}



header nav .imglogo {
    height: auto;
    padding: 1%
}

header nav .imglogo img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    display: block;
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 14px;
    z-index: 20;
    margin-right: 30px;
    flex-shrink: 0;
}

.social-icons a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(245, 196, 0, 0.4);
    border-radius: 50%;

    color: #f5c400;
    font-size: 18px;

    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #f5c400;
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.4);
}

/* Redes sociais mobile */
@media (max-width: 936px) {

    .social-icons {
        margin: 10px auto 0;
        justify-content: center;
        padding-right: 0;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        align-items: center;
    }

    header nav:first-child {
        width: 100%;
        height: auto;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


.hero {
    position: relative;
    min-height: calc(100vh - 100px);


    background-image: url("img/Fundo.png");
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

html,
body {
    overflow-x: hidden;
}

.box {
    box-sizing: border-box;
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1000px;

    background-color: rgba(0, 0, 0, 0.6);

    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 80px;

    padding: 110px;
    margin: 20px;

    border-radius: 10px;
    align-items: center;
}

.box-conteudo {
    color: #fff;
    max-width: 720px;
}

.box-conteudo h2 {
    font-size: 32px;
    color: #f5b301;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.box-conteudo ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.box-conteudo ul li {
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
}

.box-conteudo ul li::before {
    content: "✔";
    color: #f5b301;
    margin-right: 8px;
    flex-shrink: 0;
}

.descricao {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-orcamento {
    display: inline-block;
    padding: 12px 24px;
    background: #f5b301;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
}

.btn-orcamento:hover {
    background: #d99c00;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-content h2 {
    margin-bottom: 10px;
}

.hero-content p {
    margin: 0;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 25px;
    left: 25px;
    font-size: 28px;
    color: #f5c400;
    z-index: 999;
    cursor: pointer;
}

.button {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    gap: 35px;
    animation: slideIn 1s ease forwards;
    min-width: 260px;
}

.button a {
    text-decoration: none;
    width: 100%;
}

.button button {
    width: 230px;
    padding: 14px 22px;

    background: linear-gradient(135deg, #1a1a1a, #000);
    color: #f5c400;

    border: 1px solid rgba(245, 196, 0, .4);
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;

    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}

.button button:hover {
    background: linear-gradient(135deg, #f5c400, #e0b200);
    color: #000;
    transform: translateX(8px) scale(1.04);
    box-shadow: 0 12px 30px rgba(245, 196, 0, .5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu mobile */
@media (max-width: 936px) {

    .menu-toggle {
        display: block;
    }

    .button {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 260px;

        background: rgba(0, 0, 0, .95);
        padding: 100px 20px;

        transition: left .4s ease;
        z-index: 998;
    }

    .button.open {
        left: 0;
        margin-top: 0;
    }
}

.galeria {
    background: #000;
    padding: 80px 0;
    text-align: center;
}

.galeria h1 {
    color: #d4af37;
    font-size: 48px;
    margin-bottom: 10px;
}

.galeria p {
    color: #ccc;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    width: 75%;
    margin: auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
    animation: fade 0.6s ease-in-out;
}

.slide img,
.slide video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

/* SETAS */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 35px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.arrow.left {
    left: -60px;
}

.arrow.right {
    right: -60px;
}

.arrow:hover {
    background: #d4af37;
    color: black;
    box-shadow: 0 0 15px #d4af37;
}

/* INDICADORES */
.indicators {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    background: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #d4af37;
}

.dot:hover {
    background: #d4af37;
}

/* ANIMAÇÃO */
@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.section-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.dark-bg {
    background-color: #1a1a1a;
    color: white;
    width: 100%;
    max-width: 100%;


}

section.dark-bg {
    padding: 80px 20px;
    margin: 0;
    max-width: 100%;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 2.5rem;
    color: #f5c400;

    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-bg .section-header h3 {
    color: #f5c400;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

.dark-bg .section-header .subtitle {
    color: #ccc;

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    cursor: pointer;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: #f5c400;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    color: #f5c400;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #ccc;
    word-wrap: break-word;
    /* Prevent long words from breaking layout */
}

.stats-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 40px;
}

.stats-list li {
    text-align: center;
}

.stats-list .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f5c400;
    display: block;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-box {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #333, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: -20px 20px 0px #f5c400;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #f5c400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-item {
    height: 350px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.equipment-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.equip-card {
    background: #2a2a2a;
    padding: 80px 20px;
    /* Reduced side padding */
    border-radius: 10px;
    width: 100%;
    /* Use 100% instead of fixed 850px */
    max-width: 850px;
    text-align: center;
    border: 1px solid #444;
}

.equip-card h4 {
    color: white;
    font-size: 45px;
    margin-bottom: 10px;
}

.equip-card p {
    color: #aaa;
    font-size: 30px;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    text-align: left;
    align-items: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-info .info-item {
    margin-top: 30px;
}

.contact-info strong {
    display: block;
    margin-bottom: 5px;
    color: #f5c400;
}

.formContato {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.formContato input,
.formContato textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background: #f9f9f9;
}

.formContato button {
    padding: 15px;
    background-color: #f5c400;
    color: black;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.formContato button:hover {
    background-color: black;
    color: white;
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background-color: #111;
    color: #fff;
    padding: 60px 20px 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer-section h4 {
    color: #f5c400;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: #f5c400;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: block;
        margin-bottom: 8px;
}

.footer-section ul {
    padding: 9px;
}

.footer-section ul li a:hover {
    color: #f5c400;
    padding-left: 5px;
}

@media (max-width: 900px) {

    .about-content,
    .contact-wrapper {
        flex-direction: column;
        padding: 0 15px;
        /* Add padding to prevent text touching edges */
    }

    .about-image {
        margin-top: 40px;
        width: 100%;
    }

    .contact-wrapper {
        padding: 30px 15px;
    }
}

@media (max-width: 936px) {
    header {
        height: auto;
        padding: 20px 0;
        text-align: center;
        background: #000;
        background-color: #000;
    }

    .hero {
        padding: 20px 0;
    }

    .box {
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        z-index: 999;
    }

    .box-conteudo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .box-conteudo ul {
        display: inline-block;
        text-align: left;
    }

    header nav:first-child {
        width: 100%;

        height: auto;
        background: black;

    }

    header nav:first-child::before {
        display: none;

    }

    header .header-title {
        display: none;

    }

    header h1 {
        font-size: 1.5rem;
        padding: 10px;
    }

    .button button {
        width: 100%;
        max-width: 100%;
    }

    .about-text h3 {
        text-align: center;
    }

    .about-text p {
        text-align: justify;
    }

    .stats-list {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .equip-card h4 {
        font-size: 28px;
        /* scale down large title on mobile */
        word-wrap: break-word;
    }

    .equip-card p {
        font-size: 20px;
    }

    .image-box {
        width: 100%;
        max-width: 250px;
        height: 200px;
        font-size: 1.5rem;
        box-shadow: -15px 15px 0px #f5c400;
        margin: 0 auto;
    }

    .carousel-container {
        width: 85%;
    }

    .arrow {
        font-size: 25px;
        padding: 8px 12px;
    }

    .arrow.left {
        left: -35px;
    }

    .arrow.right {
        right: -35px;
    }

    .indicators {
        gap: 8px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}