:root {
    --red: #e30613;
    --red-dark: #b90710;
    --ink: #151617;
    --muted: #626262;
    --soft: #f5f5f3;
    --line: #e7e7e2;
    --shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #fff;
    color: var(--ink);
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

#inicio,
#servicos,
#sobre,
#projetos,
#diferenciais,
#contato {
    scroll-margin-top: 96px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.nav-wrapper {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo img {
    width: 172px;
    height: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 13px;
    color: #555;
}

.nav-menu a {
    position: relative;
    padding: 34px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--red);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    height: 3px;
    background: var(--red);
    left: 0;
    right: 0;
    bottom: 25px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    transform: scaleX(1);
}

.phone-button {
    background: var(--red);
    color: #fff;
    padding: 15px 20px;
    border-radius: 7px;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(227, 6, 19, .24);
    white-space: nowrap;
}

.phone-button:hover {
    background: var(--red-dark);
}

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

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
    transition: .2s ease;
}

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

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

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

.hero-section {
    min-height: calc(100vh - 88px);
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)),
        url('assets/banner-extintor.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .94) 0%,
            rgba(0, 0, 0, .78) 42%,
            rgba(0, 0, 0, .32) 74%,
            rgba(0, 0, 0, .12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 78px 0;
    max-width: 780px;
}

.eyebrow,
.section-kicker {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--red);
    letter-spacing: .3px;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.06;
    text-transform: uppercase;
    font-weight: 900;
    max-width: 820px;
}

.hero-content h1 span {
    display: block;
    color: var(--red);
}

.hero-text {
    font-size: 19px;
    line-height: 1.7;
    margin: 26px 0 38px;
    max-width: 610px;
    color: #eeeeee;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 7px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
    transition: .22s ease;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 15px 28px rgba(227, 6, 19, .22);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, .75);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--red);
    background: var(--red);
}

.projects-section,
.about-section,
.services-section,
.location-section {
    padding: 82px 0;
}

.projects-section,
.services-section {
    text-align: center;
}

.services-section {
    background: var(--soft);
}

.projects-section h2,
.about-section h2,
.services-section h2,
.location-section h2 {
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.16;
    margin-bottom: 34px;
}

.projects-section h2 span {
    color: var(--red);
}

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

.project-card {
    min-height: 270px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-align: left;
    box-shadow: var(--shadow);
    background: #111;
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: transform .35s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .86));
}

.project-card div {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
}

.project-card h3 {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.project-card p {
    font-size: 13px;
    color: #e6e6e6;
    line-height: 1.5;
    margin-top: 7px;
}

.see-more {
    display: inline-flex;
    margin-top: 34px;
    border: 1.5px solid var(--red);
    color: var(--red);
    border-radius: 7px;
    padding: 14px 34px;
    font-weight: 900;
}

.see-more:hover {
    background: var(--red);
    color: #fff;
}

.features-bar {
    background: var(--ink);
    color: #fff;
    padding: 58px 0;
}

.features-bar .section-kicker {
    text-align: center;
    margin-bottom: 30px;
}

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

.feature {
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 24px;
}

.feature span {
    display: block;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    line-height: 1.65;
    color: #d8d8d8;
}

.about-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 58px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section-kicker.left {
    text-align: left;
    margin-bottom: 10px;
}

.about-content h2 {
    margin-bottom: 18px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.85;
    color: #4d4d4d;
}

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

.stats-grid div {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.stats-grid strong {
    display: block;
    color: var(--red);
    font-size: 32px;
    font-weight: 900;
}

.stats-grid span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left;
}

.services-grid div {
    min-height: 112px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .04);
}

.services-grid div::before {
    content: '';
    display: block;
    width: 28px;
    height: 4px;
    background: var(--red);
    border-radius: 99px;
    margin-bottom: 16px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 44px;
    align-items: stretch;
}

.map-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.google-map iframe {
    display: block;
    width: 100%;
    height: 330px;
    filter: grayscale(.08) contrast(1.02);
}

.map-fallback {
    display: none;
    padding: 16px 18px;
    background: #fff;
    color: var(--red);
    font-weight: 900;
    border-top: 1px solid var(--line);
}

.bairro-localizacao {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #444;
}

.contact-card {
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card h2 {
    margin-bottom: 18px;
}

.contact-card p:not(.section-kicker) {
    color: #dedede;
    line-height: 1.8;
    margin-bottom: 28px;
}

.full {
    width: 100%;
}

.footer {
    background: #141516;
    color: #fff;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1fr;
    gap: 50px;
}

.footer-logo {
    width: 155px;
    margin-bottom: 18px;
}

.footer p,
.footer a {
    display: block;
    color: #c9c9c9;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer a:hover {
    color: #fff;
}

.footer h3 {
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-crea {
    width: min(1180px, 92%);
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-selos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.crea-logo {
    width: 150px;
}

.cbmerj-logo {
    width: 92px;
}

.footer-info-crea p {
    color: #fff;
    font-weight: 800;
    margin-bottom: 2px;
}

.footer-info-crea span {
    display: block;
    color: #cfcfcf;
    font-size: 13px;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 35px;
    padding: 20px;
    color: #aaa;
    font-size: 13px;
}

.whatsapp-float {
    display: none !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.project-card,
.feature,
.services-grid div,
.contact-card {
    animation: fadeUp .7s ease both;
}

@media (max-width: 1080px) {
    .nav-menu {
        gap: 20px;
    }

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

@media (max-width: 900px) {
    .nav-wrapper {
        min-height: 78px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 10px 6%;
        box-shadow: 0 22px 32px rgba(0, 0, 0, .09);
        display: none;
    }

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

    .nav-menu a {
        padding: 16px 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .phone-button {
        display: none;
    }

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        aspect-ratio: 16 / 10;
    }

    .hero-section {
        min-height: auto;
        background-position: 58% center;
    }

    .hero-bg {
        background: linear-gradient(180deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .56), rgba(0, 0, 0, .78));
    }

    .hero-content {
        padding: 88px 0 74px;
    }

    .location-grid {
        gap: 28px;
    }
}

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

    .logo img {
        width: 142px;
    }

    .nav-wrapper {
        min-height: 72px;
    }

    .nav-menu {
        top: 72px;
        padding: 8px 17px 14px;
    }

    .nav-menu a {
        padding: 14px 0;
    }

    .hero-content {
        padding: 68px 0 56px;
    }

    .hero-content h1 {
        font-size: 34px;
        max-width: 12ch;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.65;
        margin: 22px 0 30px;
    }

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

    .project-grid,
    .features-grid,
    .services-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .projects-section,
    .about-section,
    .services-section,
    .location-section {
        padding: 56px 0;
    }

    .project-card,
    .project-card img {
        min-height: 245px;
    }

    .contact-card {
        padding: 30px 22px;
    }

    .google-map iframe {
        height: 280px;
    }

    .map-fallback {
        display: block;
    }

    .footer-crea {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-selos {
        width: 100%;
    }

    .crea-logo {
        width: 145px;
    }

    .cbmerj-logo {
        width: 86px;
    }

}

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

    .hero-content h1 {
        font-size: 31px;
    }

    .btn {
        min-height: 52px;
        padding: 0 18px;
        font-size: 12px;
    }

    .projects-section h2,
    .about-section h2,
    .services-section h2,
    .location-section h2 {
        font-size: 27px;
    }

    .project-card,
    .project-card img {
        min-height: 225px;
    }

    .feature,
    .services-grid div,
    .stats-grid div {
        padding: 20px;
    }

    .crea-logo {
        width: 132px;
    }

    .cbmerj-logo {
        width: 78px;
    }
}
