* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mech-blue: #00A8FF;
    --mech-blue-dark: #0088cc;
    --mech-navy: #0b1f33;
    --mech-dark: #071421;
    --mech-light: #f5f7fa;
    --mech-white: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1d1d1d;
    background: var(--mech-light);
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}

.topbar {
    background: var(--mech-dark);
    color: var(--mech-white);
    font-size: 14px;
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    background: var(--mech-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-content {
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex !important;
    align-items: center !important;
    height: 70px !important;
    overflow: hidden !important;
}

.navbar .logo a {
    display: flex !important;
    align-items: center !important;
    height: 70px !important;
}

.navbar .logo img {
    display: block !important;
    height: 62px !important;
    max-height: 62px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: var(--mech-navy);
    font-weight: 700;
    font-size: 15px;
}

.navbar a:hover {
    color: var(--mech-blue);
}

.btn-area {
    background: var(--mech-navy);
    color: var(--mech-white) !important;
    padding: 11px 18px;
    border-radius: 4px;
}

.btn-area:hover {
    background: var(--mech-blue);
}

.hero {
    min-height: 570px;
    background:
        linear-gradient(rgba(5, 20, 35, 0.78), rgba(5, 20, 35, 0.78)),
        url("../img/industria.jpg");
    background-size: cover;
    background-position: center;
    color: var(--mech-white);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 780px;
}

.tag {
    display: inline-block;
    background: rgba(0,168,255,0.15);
    border: 1px solid var(--mech-blue);
    color: var(--mech-white);
    padding: 9px 15px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero h1 {
    font-size: 50px;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
}

.btn-primary {
    background: var(--mech-blue);
    color: var(--mech-white);
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--mech-blue-dark);
}

.btn-secondary {
    border: 2px solid var(--mech-white);
    color: var(--mech-white);
}

.btn-secondary:hover {
    background: var(--mech-white);
    color: var(--mech-navy);
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.beneficio {
    min-height: 330px;
    padding: 58px 34px;
    text-align: center;
    color: var(--mech-white);
}

.beneficio:nth-child(1) {
    background: #061522;
}

.beneficio:nth-child(2) {
    background: #0b1f33;
}

.beneficio:nth-child(3) {
    background: #12395c;
}

.beneficio:nth-child(4) {
    background: var(--mech-blue);
}

.icon {
    font-size: 54px;
    margin-bottom: 22px;
}

.beneficio h3 {
    font-size: 27px;
    margin-bottom: 20px;
}

.beneficio p {
    font-size: 17px;
    line-height: 1.7;
}

.sobre {
    background: var(--mech-white);
    padding: 85px 0;
}

.section-title span {
    color: var(--mech-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    color: var(--mech-navy);
    font-size: 36px;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 22px;
    max-width: 850px;
}

.section-title.center {
    text-align: center;
}

.section-title.center h2 {
    margin-left: auto;
    margin-right: auto;
}

.sobre p {
    max-width: 900px;
    font-size: 18px;
    line-height: 1.8;
}

.numbers {
    display: flex;
    gap: 25px;
    margin-top: 42px;
}

.numbers div {
    flex: 1;
    background: var(--mech-light);
    padding: 30px;
    border-left: 5px solid var(--mech-blue);
}

.numbers strong {
    display: block;
    font-size: 38px;
    color: var(--mech-navy);
}

.numbers span {
    font-size: 16px;
}

.servicos {
    padding: 85px 0;
    background: var(--mech-light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.card {
    background: var(--mech-white);
    padding: 34px;
    min-height: 220px;
    border-radius: 8px;
    border-top: 5px solid var(--mech-blue);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.card h3 {
    color: var(--mech-navy);
    font-size: 22px;
    margin-bottom: 16px;
}

.card p {
    line-height: 1.7;
    font-size: 16px;
}

.cta {
    background:
        linear-gradient(rgba(5, 20, 35, 0.88), rgba(5, 20, 35, 0.88)),
        url("../img/industria.jpg");
    background-size: cover;
    background-position: center;
    color: var(--mech-white);
    text-align: center;
    padding: 85px 0;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.cta p {
    font-size: 19px;
    margin-bottom: 30px;
}

footer {
    background: var(--mech-dark);
    color: var(--mech-white);
    padding: 28px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

footer h3 {
    margin-bottom: 8px;
}

@media (max-width: 950px) {
    .topbar-content,
    .nav-content,
    .numbers,
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .nav-content {
        height: auto;
        padding: 20px 0;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .beneficios,
    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 520px;
        text-align: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

.laser-hero {
    min-height: 560px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
        url("../img/corte-laser.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}
/* =====================================================================
   Complementos adicionados na revisão do site (menu mobile, formulário
   de contato funcional, mensagens, acessibilidade e páginas de erro).
   ===================================================================== */

/* Link "pular para o conteúdo" — só aparece ao navegar por teclado */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: #0d1b2a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 6px 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/* Foco visível em todo o site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f7a600;
    outline-offset: 2px;
}

.topbar-content a {
    color: inherit;
    text-decoration: none;
    margin-left: 14px;
}
.topbar-content a:hover {
    text-decoration: underline;
}

/* Item de menu da página atual */
.navbar a.ativo {
    color: #f7a600;
}

/* Botão hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.ativo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.ativo span:nth-child(2) { opacity: 0; }
.nav-toggle.ativo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 950px) {
    /* O media query anterior deste arquivo empilha .nav-content em coluna.
       Aqui a barra volta para linha: logo à esquerda, hamburger à direita,
       e o menu ocupa a largura toda logo abaixo quando aberto. */
    .nav-content {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 0;
    }
    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }
    .navbar ul {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        text-align: left;
        gap: 4px;
        padding: 12px 0 4px;
        margin: 0;
    }
    .navbar ul.aberto {
        display: flex;
    }
    .navbar ul li {
        width: 100%;
        list-style: none;
    }
    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 10px 4px;
    }
    .navbar ul li .btn-area {
        display: inline-block;
        width: auto;
        margin-top: 6px;
    }
}

/* Mensagens do Django */
.alerta {
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid #999;
    background: #f2f4f7;
    color: #1b263b;
    font-size: 15px;
}
.alerta-success { border-left-color: #2e7d32; background: #e8f5e9; }
.alerta-error   { border-left-color: #c62828; background: #fdecea; }
.alerta-warning { border-left-color: #ef6c00; background: #fff4e5; }
.alerta-info    { border-left-color: #1565c0; background: #e8f0fe; }

/* Formulário de contato */
.contato-form-box .form-group {
    margin-bottom: 16px;
}
.contato-form-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}
.contato-form-box input,
.contato-form-box select,
.contato-form-box textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: #1b263b;
}
.contato-form-box textarea {
    resize: vertical;
}
.contato-form-box input[aria-invalid="true"],
.contato-form-box textarea[aria-invalid="true"] {
    border-color: #c62828;
}
.erro-campo {
    display: block;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
}
.form-aviso {
    font-size: 13px;
    color: #5a6472;
    margin: 4px 0 14px;
}

/* Honeypot: invisível para pessoas, ainda preenchível por robôs */
.campo-armadilha {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Páginas de erro */
.erro-section {
    padding: 90px 0;
    background: #0d1b2a;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.erro-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}
.erro-content h1 {
    font-size: 34px;
    margin: 12px 0 16px;
}
.erro-content p {
    color: #cfd6e0;
    margin-bottom: 26px;
}
.erro-acoes {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
