:root {
    --navy: #0B1638;
    --navy-deep: #070E24;
    --navy-mid: #15275A;
    --orange: #E66000;
    --orange-strong: #C24F00;
    --orange-hover: #A84400;
    --whatsapp: #25D366;
    --whatsapp-text: #128C4B;
    --ink: #1A2332;
    --muted: #55617A;
    --line: #DFE4EC;
    --surface: #F4F6F9;
    --white: #FFFFFF;
    --on-dark: #B7C4D8;
    --on-dark-line: rgba(255, 255, 255, 0.14);
    --radius: 4px;
    --font: "Barlow", system-ui, sans-serif;
    --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    color: var(--ink);
    line-height: 1.6;
    background: var(--white);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--orange-strong);
    color: var(--white);
    padding: 8px 14px;
    z-index: 2000;
    border-radius: var(--radius);
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.12;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--orange-strong);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

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

.btn-lg {
    padding: 15px 28px;
    font-size: 1.05rem;
}

.eyebrow {
    display: block;
    color: var(--orange-strong);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.eyebrow-light {
    color: #FF9A52;
}

/* Topbar */
.topbar {
    background: var(--navy-deep);
    color: var(--on-dark);
    font-size: 0.88rem;
}

.topbar-inner {
    display: flex;
    gap: 28px;
    align-items: center;
    min-height: 38px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

a.topbar-item {
    color: var(--white);
    font-weight: 500;
}

a.topbar-item:hover {
    color: #FF9A52;
}

.topbar-item i {
    color: #FF9A52;
    font-size: 0.8rem;
}

.topbar-hours {
    margin-right: auto;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 46px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
}

.nav a:hover {
    color: var(--orange-strong);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    background: var(--navy);
    color: var(--white);
}

.hero-content {
    align-self: center;
    padding: 88px 64px 88px max(20px, calc((100vw - 1200px) / 2));
}

.hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.8rem);
    color: var(--white);
    margin-bottom: 20px;
    max-width: 16ch;
}

.hero p {
    font-size: 1.15rem;
    color: var(--on-dark);
    margin-bottom: 32px;
    max-width: 54ch;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    color: var(--on-dark);
}

.hero-features i {
    color: #FF9A52;
    margin-right: 6px;
}

.hero-media {
    position: relative;
    min-height: 560px;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estrutura técnica */
.capacidades {
    background: var(--navy-deep);
    color: var(--on-dark);
}

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

.capacidades-grid li {
    padding: 28px 32px;
    border-left: 1px solid var(--on-dark-line);
}

.capacidades-grid li:first-child {
    padding-left: 0;
    border-left: 0;
}

.capacidades-grid strong {
    display: block;
    color: var(--white);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.capacidades-grid span {
    font-size: 0.98rem;
}

/* Seções */
.section {
    padding: 96px 0;
}

.section-surface {
    background: var(--surface);
}

.section-dark {
    background: var(--navy);
    color: var(--on-dark);
}

.section-dark h2 {
    color: var(--white);
}

.section-title {
    margin-bottom: 48px;
    max-width: 680px;
}

.section-title h2,
.sobre-text h2,
.contato-info h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.section-title p {
    margin-top: 12px;
}

/* Sobre */
.sobre-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.sobre-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.sobre-text h2 {
    margin-bottom: 18px;
}

.sobre-text p {
    color: var(--muted);
    margin-bottom: 14px;
}

.sobre-text strong {
    color: var(--ink);
}

.sobre-itens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.sobre-itens h3 {
    margin-bottom: 6px;
}

.sobre-itens p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Especialidades */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 1rem;
}

/* Indústrias atendidas */
.section-setores {
    padding-top: 0;
}

.section-setores .section-title {
    margin-bottom: 28px;
}

.icones-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.icones-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--navy);
    font-weight: 600;
    text-align: center;
}

.icones-grid i {
    color: var(--orange-strong);
    font-size: 1.6rem;
}

.setores-nota {
    margin-top: 16px;
    color: var(--muted);
}

/* Trabalhos realizados */
.trabalhos-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 48px;
    margin-bottom: 40px;
}

.trabalhos-head .section-title {
    margin-bottom: 0;
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro {
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--on-dark);
    background: transparent;
    border: 1px solid var(--on-dark-line);
    border-radius: var(--radius);
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filtro:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.filtro[aria-pressed="true"] {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}

.trabalho[hidden] {
    display: none;
}

.trabalho a {
    display: block;
    text-decoration: none;
    color: var(--white);
}

.trabalho img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--navy-mid);
    transition: opacity 0.2s ease;
}

.trabalho a:hover img {
    opacity: 0.82;
}

.trabalho span {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.galeria-cta {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--on-dark-line);
    font-size: 1.1rem;
}

.galeria-cta a {
    color: #FF9A52;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.galeria-cta a:hover {
    text-decoration: underline;
}

.galeria-cta i {
    margin-left: 4px;
    font-size: 0.85em;
}

/* Lightbox */
.lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    background: rgba(5, 10, 26, 0.96);
    color: var(--white);
}

.lightbox::backdrop {
    background: rgba(5, 10, 26, 0.96);
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    justify-items: center;
}

.lightbox figure {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox img {
    max-height: calc(100dvh - 110px);
    width: auto;
    border-radius: var(--radius);
}

.lightbox figcaption {
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.lightbox-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(5, 10, 26, 0.6);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    grid-row: 1;
}

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

.lightbox-prev {
    grid-column: 1;
}

.lightbox-next {
    grid-column: 3;
}

.lightbox-close {
    position: absolute;
    grid-row: auto;
    top: 12px;
    right: 12px;
    z-index: 1;
}

/* Qualidade */
.section-title-destaque {
    max-width: none;
}

.section-title-destaque h2 {
    font-size: clamp(2.3rem, 4.2vw, 3.3rem);
}

.destaque {
    color: var(--orange);
}

.qualidade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.qualidade-grid article {
    border-top: 2px solid var(--navy);
    padding-top: 22px;
}

.qualidade-grid i {
    color: var(--orange-strong);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.qualidade-grid h3 {
    margin-bottom: 8px;
}

.qualidade-grid p {
    color: var(--muted);
    font-size: 1rem;
}

/* Processo */
.processo-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step-num {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--orange-strong);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 1rem;
}

/* CTA */
.cta-banner {
    background: var(--navy-mid);
    color: var(--white);
    padding: 64px 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 8px;
}

.cta-banner p {
    color: var(--on-dark);
}

.cta-banner .btn {
    flex-shrink: 0;
}

/* Contato */
.contato-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
}

.contato-info h2 {
    margin-bottom: 14px;
}

.contato-info > p {
    color: var(--muted);
}

.canais {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.canal-email {
    grid-column: 1 / -1;
}

.canal {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.canal:hover {
    border-color: var(--navy);
}

.canal i {
    grid-row: span 2;
    width: 30px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--navy);
}

.canal-whatsapp i {
    font-size: 1.8rem;
    color: var(--whatsapp-text);
}

.canal span {
    font-size: 0.9rem;
    color: var(--muted);
}

.canal strong {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--navy);
    white-space: nowrap;
}

.info-list {
    margin-top: 32px;
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-item i {
    width: 20px;
    flex-shrink: 0;
    margin-top: 5px;
    text-align: center;
    color: var(--orange-strong);
}

.info-item strong {
    color: var(--navy);
    font-weight: 600;
}

.info-item p {
    color: var(--muted);
}

.mapa-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 420px;
}

.mapa-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* Trabalhe conosco */
.carreiras-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 64px;
    align-items: center;
}

.carreiras-text h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    margin-bottom: 14px;
}

.carreiras-text p {
    color: var(--muted);
}

.funcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.funcoes li {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    font-weight: 500;
}

.carreiras-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.carreiras-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    background: var(--navy-deep);
    color: var(--on-dark);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    background: var(--white);
    padding: 6px 10px;
    border-radius: var(--radius);
}

.footer-brand p {
    max-width: 40ch;
}

.footer h3 {
    color: var(--white);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer a,
.footer p {
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--on-dark-line);
    padding: 18px 0;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 22px;
    right: 22px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(7, 14, 36, 0.3);
    z-index: 900;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

@media (max-width: 1240px) {
    .header-container {
        gap: 12px;
        min-height: 68px;
    }

    .logo img {
        height: 38px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .btn-header {
        order: 1;
        padding: 10px 14px;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 20px 16px;
        gap: 0;
    }

    body.nav-open .nav {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav a:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 1080px) {
    .servicos-grid,
    .qualidade-grid,
    .processo-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .icones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .galeria {
        grid-template-columns: repeat(3, 1fr);
    }

    .sobre-grid,
    .contato-grid {
        gap: 40px;
    }

    .hero-content {
        padding-right: 40px;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 76px;
    }

    .topbar-inner {
        justify-content: center;
        gap: 20px;
    }

    .topbar-location,
    .topbar-hours {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 56px 20px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .capacidades-grid {
        grid-template-columns: 1fr;
    }

    .capacidades-grid li,
    .capacidades-grid li:first-child {
        padding: 20px 0;
        border-left: 0;
        border-top: 1px solid var(--on-dark-line);
    }

    .capacidades-grid li:first-child {
        border-top: 0;
    }

    .section {
        padding: 64px 0;
    }

    .sobre-grid,
    .contato-grid,
    .carreiras-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .carreiras-media img {
        aspect-ratio: 16 / 10;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .icones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicos-grid,
    .qualidade-grid,
    .processo-steps,
    .sobre-itens,
    .canais,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .trabalho span {
        font-size: 0.92rem;
    }

    .btn-lg {
        width: 100%;
    }

    .galeria-cta a {
        display: block;
        margin: 6px 0 0;
    }

    .lightbox[open] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 60px 12px 12px;
    }

    .lightbox figure {
        grid-column: 1 / -1;
    }

    .lightbox img {
        max-height: calc(100dvh - 200px);
    }

    .lightbox-prev,
    .lightbox-next {
        grid-row: 2;
    }

    .lightbox-prev {
        grid-column: 1;
        justify-self: end;
    }

    .lightbox-next {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .filtro, .canal, .trabalho img, .whatsapp-float { transition: none; }
}
