:root {
    --azul-forja: #0F2337;
    --azul-tecnologico: #285F96;
    --preto-fornalha: #19191C;
    --aco-bruto: #787878;
    --branco-polido: #EBEBEB;
    --branco: #FFFFFF;
    --linha: rgba(235, 235, 235, 0.14);
    --sombra: 0 24px 80px rgba(15, 35, 55, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--branco-polido);
    color: var(--preto-fornalha);
    font-family: "Urbanist", Arial, sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

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

h1,
h2,
h3 {
    font-family: "Zalando Sans Expanded", "Urbanist", sans-serif;
    letter-spacing: 0;
    line-height: 1.05;
}

p {
    line-height: 1.72;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--preto-fornalha);
    transition: opacity .45s ease, visibility .45s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-mark {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(235, 235, 235, .2);
    border-top-color: var(--azul-tecnologico);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    padding: 18px 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(15, 35, 55, .94);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
    padding: 12px 0;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 170px;
    height: auto;
}

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

.main-nav a {
    color: var(--branco-polido);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover {
    color: #8fc1f1;
    transform: translateY(-1px);
}

.main-nav .nav-catalog,
.main-nav .nav-cardans {
    border: 1px solid rgba(235, 235, 235, .24);
    padding: 12px 16px;
}

.main-nav .nav-catalog {
    background: rgba(235, 235, 235, .08);
}

.main-nav .nav-cardans {
    background: rgba(40, 95, 150, .74);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(235, 235, 235, .22);
    background: rgba(25, 25, 28, .35);
    color: var(--branco);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 54px;
    color: var(--branco);
    overflow: hidden;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background: url("/images/top.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(15, 35, 55, .96) 0%, rgba(15, 35, 55, .84) 42%, rgba(25, 25, 28, .46) 100%),
        linear-gradient(0deg, rgba(25, 25, 28, .92) 0%, transparent 36%);
}

.hero-overlay::after,
.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(235, 235, 235, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 235, 235, .22) 1px, transparent 1px);
    background-size: 76px 76px;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 70px;
}

.eyebrow {
    color: #9fc6ea;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--azul-tecnologico);
}

.hero-copy h1 {
    max-width: 820px;
    margin: 18px 0 22px;
    font-size: clamp(2.55rem, 6vw, 5.9rem);
}

.hero-lead {
    max-width: 650px;
    color: rgba(235, 235, 235, .88);
    font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid transparent;
    padding: 14px 20px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--azul-tecnologico);
    color: var(--branco);
}

.btn-primary:hover {
    background: #1f4c7a;
}

.btn-secondary {
    border-color: rgba(235, 235, 235, .36);
    color: var(--branco-polido);
}

.btn-secondary:hover {
    background: var(--branco-polido);
    color: var(--preto-fornalha);
}

.btn-light {
    background: var(--branco-polido);
    color: var(--azul-forja);
}

.hero-panel {
    border: 1px solid rgba(235, 235, 235, .18);
    background: rgba(25, 25, 28, .48);
    box-shadow: var(--sombra);
    backdrop-filter: blur(14px);
}

.panel-kicker {
    display: block;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(235, 235, 235, .12);
    color: rgba(235, 235, 235, .72);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.panel-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(235, 235, 235, .1);
}

.panel-row:last-child {
    border-bottom: 0;
}

.panel-row strong {
    color: var(--branco);
    font-family: "Zalando Sans Expanded", "Urbanist", sans-serif;
    font-size: .92rem;
    text-transform: uppercase;
}

.panel-row span {
    color: rgba(235, 235, 235, .74);
    line-height: 1.45;
}

.brand-band {
    position: relative;
    z-index: 2;
    background: var(--preto-fornalha);
    color: var(--branco-polido);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--linha);
}

.brand-token {
    min-height: 150px;
    padding: 28px 24px;
    border-right: 1px solid var(--linha);
}

.brand-token strong {
    display: block;
    color: var(--branco);
    font-family: "Zalando Sans Expanded", "Urbanist", sans-serif;
    font-size: .95rem;
    margin: 16px 0 8px;
    text-transform: uppercase;
}

.brand-token p {
    color: rgba(235, 235, 235, .68);
    font-weight: 600;
    line-height: 1.5;
}

.swatch {
    display: block;
    width: 42px;
    height: 8px;
    border: 1px solid rgba(235, 235, 235, .18);
}

.swatch-forja {
    background: var(--azul-forja);
}

.swatch-tech {
    background: var(--azul-tecnologico);
}

.swatch-aco {
    background: var(--aco-bruto);
}

.swatch-preto {
    background: #050507;
}

.section {
    padding: 112px 0;
}

.split-layout,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr .86fr;
    align-items: center;
    gap: 70px;
}

.section-copy h2,
.section-heading h2,
.cardans-shell h2 {
    margin: 14px 0 22px;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-copy p,
.section-heading p,
.cardans-shell p {
    color: #4f5962;
    font-size: 1.04rem;
}

.capability-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.capability-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--azul-forja);
    font-weight: 800;
}

.capability-list i {
    color: var(--azul-tecnologico);
}

.industrial-frame {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.industrial-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 1;
    border: 1px solid rgba(235, 235, 235, .28);
    pointer-events: none;
}

.industrial-frame img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.services-section {
    position: relative;
    background: var(--azul-forja);
    color: var(--branco);
    overflow: hidden;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 42px;
}

.services-section .section-heading p,
.services-section .section-heading h2 {
    color: var(--branco-polido);
}

.services-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 26px;
    color: var(--branco);
    text-decoration: none;
    background: var(--preto-fornalha);
    isolation: isolate;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 35, 55, .18), rgba(15, 35, 55, .92));
}

.service-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) contrast(1.05);
    transition: transform .45s ease, filter .45s ease;
}

.service-card:hover img {
    transform: scale(1.08);
    filter: saturate(1) contrast(1.12);
}

.service-card span {
    position: absolute;
    top: 22px;
    left: 22px;
    color: rgba(235, 235, 235, .64);
    font-weight: 900;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.service-card p {
    color: rgba(235, 235, 235, .74);
}

.gallery-section {
    background: #f6f7f8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    background: var(--preto-fornalha);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.gallery-item:hover img {
    opacity: .78;
    transform: scale(1.06);
}

.gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(15, 35, 55, .92), rgba(15, 35, 55, .1));
    color: var(--branco);
    font-weight: 800;
    text-align: left;
}

.cardans-cta {
    background: linear-gradient(135deg, var(--preto-fornalha), var(--azul-forja));
    color: var(--branco);
    padding: 70px 0;
}

.cardans-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.cardans-shell div {
    max-width: 720px;
}

.cardans-shell p {
    color: rgba(235, 235, 235, .75);
}

.cardans-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.contact-section {
    background: var(--branco-polido);
}

.contact-panel {
    display: grid;
    gap: 12px;
    padding: 28px;
    background: var(--branco);
    box-shadow: var(--sombra);
}

.contact-panel a,
.contact-panel p {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 35, 55, .1);
    color: var(--azul-forja);
    font-weight: 800;
    text-decoration: none;
}

.contact-panel a:last-child,
.contact-panel p:last-child {
    border-bottom: 0;
}

.contact-panel i {
    color: var(--azul-tecnologico);
    font-size: 1.15rem;
}

.site-footer {
    background: var(--preto-fornalha);
    color: rgba(235, 235, 235, .72);
    padding: 54px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .65fr .7fr .8fr;
    gap: 50px;
}

.site-footer img {
    width: 172px;
    margin-bottom: 18px;
}

.site-footer nav,
.footer-actions {
    display: grid;
    align-content: start;
    gap: 12px;
    margin-top: 0;
}

.site-footer a {
    color: var(--branco-polido);
    font-weight: 800;
    text-decoration: none;
}

.footer-actions a {
    border: 1px solid rgba(235, 235, 235, .16);
    padding: 12px 14px;
}

.footer-cardans a {
    border-color: rgba(40, 95, 150, .42);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(235, 235, 235, .12);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--branco);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform .2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: rgba(0, 0, 0, .88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1080px, 94vw);
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    border: 0;
    background: transparent;
    color: var(--branco);
    font-size: 3rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 76px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: rgba(15, 35, 55, .98);
        box-shadow: var(--sombra);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 16px;
        border-bottom: 1px solid rgba(235, 235, 235, .1);
    }

    .main-nav .nav-catalog,
    .main-nav .nav-cardans {
        margin-top: 10px;
        text-align: center;
    }

    .hero-grid,
    .split-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 520px;
    }

    .brand-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cardans-shell,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cardans-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand img {
        width: 142px;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 50px;
    }

    .hero-actions,
    .btn,
    .cardans-shell .btn {
        width: 100%;
    }

    .panel-row {
        grid-template-columns: 1fr;
    }

    .brand-grid,
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .brand-token {
        min-height: 112px;
    }

    .section {
        padding: 78px 0;
    }

    .service-card {
        min-height: 360px;
    }

    .gallery-item {
        height: auto;
    }

    .industrial-frame,
    .industrial-frame img {
        min-height: 330px;
    }
}
