/* =========================================================
   RAC PROJETOS E CONSULTORIA EM ENGENHARIA ELÉTRICA
   STYLE.CSS — VERSÃO FINAL RESPONSIVA
   ========================================================= */


/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {
    --color-primary: #0863b8;
    --color-primary-dark: #071d33;
    --color-secondary: #1675ce;
    --color-accent: #ff6322;

    --color-background: #ffffff;
    --color-surface: #f4f7fa;

    --color-text: #102033;
    --color-text-muted: #617083;

    --color-border: #dbe4eb;

    --radius: 16px;

    --shadow: 0 12px 36px rgba(7, 29, 51, 0.07);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    color: var(--color-text);

    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;

    background: var(--color-background);

    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

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


/* =========================================================
   TIPOGRAFIA
   ========================================================= */

h1,
h2,
h3 {
    margin: 0 0 18px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.18;
}

h1 {
    max-width: 874px;

    font-size: clamp(2.25rem, 4.25vw, 4.5rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.3rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.08rem;
}

p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 28px;
    padding-right: 28px;

    min-width: 0;
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;

    z-index: 99;

    background: #ffffff;
    padding: 8px;
}


/* =========================================================
   HEADER
   ========================================================= */

#header {
    position: fixed;
    inset: 0 0 auto;

    z-index: 30;

    width: 100%;

    height: 88px;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 10px max(30px, calc((100vw - 1200px) / 2));

    transition: 0.3s;
}

#header.scrolled {
    height: 70px;

    background: rgba(255, 255, 255, 0.93);

    backdrop-filter: blur(12px);

    box-shadow: 0 4px 20px rgba(7, 29, 51, 0.07);
}

.brand {
    flex-shrink: 0;
}

.brand img {
    display: block;

    width: 112px;
    height: 64px;

    object-fit: contain;

    mix-blend-mode: multiply;
}

nav {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-left: auto;

    font-size: 0.83rem;
    font-weight: 700;
}

nav a {
    color: #2c6cba;

    padding: 8px 0;

    border-bottom: 2px solid transparent;

    transition: 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--color-primary);

    border-color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 16px;

    flex-shrink: 0;
}

.text-link {
    color: var(--color-primary);

    font-size: 0.8rem;

    font-weight: 800;
}

.menu-toggle {
    display: none;

    border: 0;

    background: transparent;

    font-size: 1.3rem;

    cursor: pointer;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid var(--color-accent);
    border-radius: 6px;

    padding: 14px 20px;

    background: var(--color-accent);
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.02em;

    transition:
        background 0.25s,
        transform 0.25s,
        box-shadow 0.25s;

    cursor: pointer;
}

.btn:hover {
    background: #e95014;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(255, 99, 34, 0.2);
}

.btn-small {
    padding: 10px 13px;

    font-size: 0.69rem;
}

.btn-ghost {
    background: transparent;

    border-color: rgba(255, 255, 255, 0.53);
}

.btn-ghost:hover {
    background: #ffffff;

    color: var(--color-primary);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;

    height: min(760px, 100vh);

    min-height: 650px;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #061b31;

    color: #ffffff;
}

.hero > img,
.hero-shade {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.hero > img {
    object-fit: cover;

    object-position: right center;

    transform: scale(0.8);

    transform-origin: right center;
}

.hero-shade {
    background:
        linear-gradient(
            90deg,
            #051b32 0%,
            rgba(6, 29, 52, 0.93) 32%,
            rgba(6, 29, 51, 0.47) 60%,
            transparent 87%
        );
}

.hero-content {
    position: relative;

    width: 100%;

    padding-top: 84px;

    margin-left: clamp(58px, 19.6vw, 294px);
    margin-right: auto;

    max-width: 874px;

    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.13em;
}

.eyebrow.light {
    color: #b4d8ff;
}

.hero h1 em {
    color: #ff803e;

    font-style: normal;
}

.hero p {
    max-width: 874px;

    color: #d5e2ee;

    font-size: 1.08rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin: 28px 0;
}

.hero-content .buttons {
    justify-content: flex-start;
}

.hero-points {
    display: flex;

    gap: 18px;

    max-width: 874px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.22);

    text-align: left;
}

.hero-points span {
    display: grid;

    font-size: 0.72rem;

    color: #bfd0df;
}

.hero-points b {
    font-size: 0.8rem;

    color: #ffffff;
}


/* =========================================================
   FAIXA DE CREDIBILIDADE
   ========================================================= */

.credibility {
    background: var(--color-primary-dark);

    color: #ffffff;
}

.grid4 {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.grid4 > div {
    display: grid;

    gap: 2px;

    padding: 28px 20px;

    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.grid4 i {
    margin-bottom: 5px;

    color: var(--color-accent);

    font-size: 1.1rem;
}

.grid4 b {
    font-size: 0.83rem;
}

.grid4 span {
    color: #b1c3d3;

    font-size: 0.72rem;
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.section {
    padding: 104px 0;

    width: 100%;
    max-width: 100%;

    overflow: hidden;
}

.muted {
    background: var(--color-surface);
}


/* =========================================================
   GRIDS
   ========================================================= */

.about-grid,
.split-grid,
.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    min-width: 0;
}

.about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 530px);
}

.about-grid .copy {
    width: 100%;
    max-width: 530px;

    min-width: 0;
}

.about-grid .copy h2 {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   QUEM SOMOS — IMAGEM
   ========================================================= */

.portrait {
    position: relative;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    overflow: hidden;

    background: #071d33;

    border-radius: var(--radius);
}

.portrait img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    min-width: 0;
}


/* Texto sobre a imagem */

.portrait > div {
    position: absolute;

    top: 30px;
    right: 26px;

    width: 65%;
    max-width: 65%;

    color: #071d33;

    padding: 0;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: clamp(1.25rem, 1.85vw, 1.5rem);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.035em;

    text-align: right;

    text-shadow: 0 1px 14px rgba(255, 255, 255, 0.67);

    overflow-wrap: break-word;
}

.portrait > div strong {
    display: block;

    margin-top: 5px;

    color: var(--color-primary);

    font-size: 1.14em;

    font-weight: 400;
}


/* =========================================================
   COPY
   ========================================================= */

.copy p {
    font-size: 0.96rem;
}

.copy blockquote {
    margin: 24px 0 0;

    padding: 8px 16px;

    border-left: 3px solid var(--color-accent);

    color: var(--color-primary-dark);

    font-family: Sora, Manrope, sans-serif;

    font-size: 1rem;

    font-weight: 700;
}


/* =========================================================
   MISSÃO / VISÃO / VALORES
   ========================================================= */

.values,
.trust {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    min-width: 0;
}

.values article,
.services article,
.trust article {
    background: #ffffff;

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow);

    min-width: 0;
}

.values i {
    display: block;

    margin-bottom: 18px;

    color: var(--color-accent);

    font-size: 1.5rem;
}


/* =========================================================
   TÍTULOS DE SEÇÃO
   ========================================================= */

.section-head {
    max-width: 760px;

    margin-bottom: 45px;
}

.section-head.center {
    margin-inline: auto;

    text-align: center;
}


/* =========================================================
   SERVIÇOS
   ========================================================= */

.services {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    min-width: 0;
}

.services article {
    position: relative;

    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.25s,
        border-color 0.25s;
}

.services article:hover {
    transform: translateY(-6px);

    border-color: #87bbed;
}

.services article > b {
    position: absolute;

    top: 20px;
    right: 22px;

    color: #c9d9e7;

    font-family: Sora, sans-serif;

    font-size: 1.2rem;

    font-weight: 800;
}

.services i {
    margin-bottom: 20px;

    color: var(--color-primary);

    font-size: 1.35rem;
}

.services p {
    font-size: 0.84rem;
}

.services a {
    margin-top: auto;

    color: var(--color-primary);

    font-size: 0.76rem;

    font-weight: 800;
}


/* =========================================================
   CHECKLIST
   ========================================================= */

.checklist {
    display: grid;

    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;

    font-size: 20px;

    line-height: 1.45;
}

.checklist li::before {
    content: "✓";

    margin-right: 12px;

    color: var(--color-accent);

    font-weight: 800;
}


/* =========================================================
   SEÇÕES AZUIS
   ========================================================= */

.navy,
.responsibility {
    background: var(--color-primary-dark);

    color: #ffffff;
}

.navy p,
.responsibility p {
    color: #c5d4e0;
}

.trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.navy .trust article,
.responsibility .trust article {
    background: rgba(255, 255, 255, 0.04);

    border-color: rgba(255, 255, 255, 0.14);

    box-shadow: none;
}

.trust i {
    display: block;

    margin-bottom: 18px;

    color: var(--color-accent);

    font-size: 1.35rem;
}

.trust p {
    font-size: 0.84rem;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
    position: relative;

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 22px;

    margin: 0;
    padding: 0;

    list-style: none;

    min-width: 0;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 23px;
    left: 6%;
    right: 6%;

    height: 1px;

    background: #c8d8e6;
}

.timeline li {
    position: relative;

    min-width: 0;
}

.timeline b {
    position: relative;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--color-primary);

    color: #ffffff;

    font-family: Sora, sans-serif;

    font-size: 0.8rem;
}

.timeline h3 {
    font-size: 0.9rem;
}

.timeline p {
    font-size: 0.78rem;
}


/* =========================================================
   SEGMENTOS
   ========================================================= */

.segments {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 12px;

    min-width: 0;
}

.segments article {
    background: #ffffff;

    border: 1px solid var(--color-border);

    border-radius: 10px;

    padding: 22px 16px;

    font-family: Sora, sans-serif;

    font-size: 0.83rem;

    font-weight: 700;

    min-width: 0;
}

.systems-title {
    margin-top: 48px;
}

.chips {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.chips span {
    padding: 8px 13px;

    background: #e6eff6;

    border-radius: 99px;

    color: #25445f;

    font-size: 0.75rem;

    font-weight: 700;
}


/* =========================================================
   RESPONSABILIDADE
   ========================================================= */

.responsibility {
    text-align: center;
}

.responsibility > .container > p {
    max-width: 720px;

    margin: 0 auto 36px;
}

.responsibility .trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    text-align: left;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 88px 0;

    background: linear-gradient(
        120deg,
        #0872c8,
        #075096
    );

    color: #ffffff;

    text-align: center;
}

.cta h2,
.cta p {
    max-width: 820px;

    margin-left: auto;
    margin-right: auto;
}

.cta p {
    color: #dceeff;
}

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

.cta small {
    color: #cce3f5;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.form-grid {
    align-items: start;
}

.contact-mini {
    display: grid;

    gap: 12px;

    color: var(--color-primary);

    font-weight: 700;
}

.contact-mini i {
    width: 22px;

    color: var(--color-accent);
}

form {
    display: grid;

    gap: 14px;

    padding: 30px;

    background: var(--color-surface);

    border-radius: var(--radius);

    min-width: 0;
}

label {
    display: grid;

    gap: 6px;

    font-size: 0.78rem;

    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;

    min-width: 0;

    padding: 11px;

    border: 1px solid var(--color-border);

    border-radius: 6px;

    background: #ffffff;

    color: var(--color-text);

    font-family: Manrope, sans-serif;

    font-size: 0.9rem;
}

textarea {
    min-height: 94px;

    resize: vertical;
}

.privacy {
    display: flex;
    align-items: center;

    font-weight: 500;
}

.privacy input {
    width: auto;

    margin-right: 9px;
}

.form-status {
    margin: 0;

    color: #178541;

    font-size: 0.83rem;

    font-weight: 700;
}


/* =========================================================
   LOCALIZAÇÃO / MAPA
   ========================================================= */

.location {
    position: relative;

    padding: 80px 0;

    overflow: hidden;

    background: #e9f0f5;

    text-align: center;
}

.location::before,
.location::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    border: 1px solid rgba(158, 183, 205, 0.4);

    border-radius: 50%;
}

.location::before {
    left: -220px;
    top: -250px;
}

.location::after {
    right: -190px;
    bottom: -280px;
}

.location .container {
    position: relative;

    z-index: 1;
}

.map-wrap {
    height: 360px;

    margin-top: 28px;

    overflow: hidden;

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.map-wrap iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 64px 0 0;

    background: #061524;

    color: #d2dde5;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1.5fr;

    gap: 45px;

    min-width: 0;
}

.footer-grid .address {
    margin-top: 15px;

    line-height: 1.55;
}

.footer-grid .address i {
    margin-right: 6px;

    color: var(--color-accent);
}

.footer-grid img {
    display: block;

    width: 145px;

    max-width: 100%;

    background: #ffffff;

    border-radius: 4px;
}

.footer-grid p {
    color: #a9bdcc;

    font-size: 0.8rem;
}

.footer-grid h3 {
    color: #ffffff;

    font-size: 0.9rem;
}

.footer-grid a {
    display: block;

    margin: 8px 0;

    color: #b6c7d4;

    font-size: 0.78rem;
}

.copyright {
    margin-top: 45px;

    padding: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.11);

    color: #91a9bb;

    font-size: 0.7rem;

    text-align: center;
}


/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */

.whatsapp-float {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 17px;

    background: #21a85b;

    border-radius: 99px;

    color: #ffffff;

    font-size: 0.78rem;

    font-weight: 800;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-float i {
    margin-right: 6px;

    font-size: 1.3rem;
}


/* =========================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================= */

.back-top {
    position: fixed;

    left: 22px;
    bottom: 23px;

    z-index: 20;

    width: 42px;
    height: 42px;

    opacity: 0;

    pointer-events: none;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: var(--color-primary);

    box-shadow: var(--shadow);

    transition: 0.2s;

    cursor: pointer;
}

.back-top.visible {
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity 0.6s,
        transform 0.6s;
}

.reveal.visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   FOCO
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--color-accent);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    #header {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav {
        gap: 12px;
    }

    .header-actions {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

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

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

    .grid4 > div:nth-child(2) {
        border-right: 0;
    }

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

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

    .about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 45px;
    }
}


/* =========================================================
   MOBILE — ATÉ 650PX
   ========================================================= */

@media (max-width: 650px) {

    /* -----------------------------------------------------
       BASE MOBILE
       ----------------------------------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden !important;
    }

    .container {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding-left: 20px;
        padding-right: 20px;
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    #header {
        width: 100%;

        height: 70px;

        padding-left: 20px;
        padding-right: 20px;

        background: rgba(255, 255, 255, 0.96);

        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 92px;
        height: 48px;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;

        flex-shrink: 0;
    }

    nav {
        position: absolute;

        top: 70px;
        left: 0;
        right: 0;

        display: grid;

        gap: 0;

        max-height: 0;

        overflow: hidden;

        margin-left: 0;

        background: #ffffff;

        box-shadow: 0 9px 15px rgba(0, 0, 0, 0.06);

        transition: max-height 0.3s ease;
    }

    nav.open {
        max-height: 350px;
    }

    nav a {
        width: 100%;

        padding: 15px 20px;

        border-bottom: 1px solid #edf1f4;
    }


    /* -----------------------------------------------------
       HERO MOBILE
       ----------------------------------------------------- */

    .hero {
        width: 100%;

        height: auto;

        min-height: 680px;
    }

    .hero > img {
        width: 100%;
        height: 100%;

        object-position: 70% center;

        transform: none;
    }

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(6, 29, 52, 0.96),
                rgba(6, 29, 51, 0.73) 75%,
                rgba(6, 29, 51, 0.33)
            );
    }

    .hero-content {
        width: 100%;
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;

        padding-top: 105px;

        text-align: center;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: 2.25rem;

        line-height: 1.15;

        overflow-wrap: break-word;
    }

    .hero p {
        width: 100%;
        max-width: 100%;

        font-size: 0.95rem;
    }

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

    .hero-points {
        width: 100%;
        max-width: 100%;

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 13px;

        text-align: center;
    }

    .hero-points span:last-child {
        grid-column: span 2;
    }


    /* -----------------------------------------------------
       BOTÕES MOBILE
       ----------------------------------------------------- */

    .buttons {
        width: 100%;
        max-width: 100%;
    }

    .buttons .btn {
        width: 100%;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       FAIXA CREDIBILIDADE
       ----------------------------------------------------- */

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

    .grid4 > div {
        padding: 20px 0;

        border-right: 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


    /* -----------------------------------------------------
       SEÇÕES
       ----------------------------------------------------- */

    .section {
        width: 100%;
        max-width: 100%;

        padding: 70px 0;

        overflow: hidden;
    }


    /* =====================================================
       CORREÇÃO PRINCIPAL — QUEM SOMOS
       ===================================================== */

    .about {
        width: 100%;
        max-width: 100%;

        overflow: hidden;
    }

    .about .container {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding-left: 20px;
        padding-right: 20px;
    }

    .about-grid {
        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        gap: 38px !important;

        margin: 0 !important;
    }

    .about-grid > * {
        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------------------
       FOTO QUEM SOMOS
       ----------------------------------------------------- */

    .about-grid .portrait {
        position: relative;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        height: auto !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: hidden !important;

        border-radius: 12px;
    }

    .about-grid .portrait img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
    }


    /* -----------------------------------------------------
       TEXTO SOBRE A FOTO
       ----------------------------------------------------- */

    .about-grid .portrait > div {
    position: absolute !important;

    top: 18px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;

    width: 52% !important;
    max-width: 52% !important;

    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    font-size: 1.0rem !important;

    line-height: 1.1 !important;

    letter-spacing: -0.02em !important;

    text-align: right !important;

    overflow-wrap: break-word !important;

    word-break: normal !important;
}

    .about-grid .portrait > div strong {
        display: block !important;

        margin-top: 3px !important;

        font-size: 1.08em !important;
    }


    /* -----------------------------------------------------
       TEXTO QUEM SOMOS
       ----------------------------------------------------- */

    .about-grid .copy {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        box-sizing: border-box !important;
    }

    .about-grid .copy .eyebrow {
        display: inline-flex;

        max-width: 100%;

        white-space: normal;

        overflow-wrap: break-word;
    }

    .about-grid .copy h2 {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        margin: 0 0 18px !important;
        padding: 0 !important;

        font-size: 2rem !important;

        line-height: 1.15 !important;

        letter-spacing: -0.035em !important;

        white-space: normal !important;

        overflow-wrap: break-word !important;

        word-wrap: break-word !important;

        word-break: normal !important;
    }

    .about-grid .copy p {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        margin: 0 0 18px !important;
        padding: 0 !important;

        font-size: 0.92rem !important;

        line-height: 1.65 !important;

        white-space: normal !important;

        overflow-wrap: break-word !important;

        word-wrap: break-word !important;

        word-break: normal !important;
    }

    .about-grid .copy blockquote {
        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        box-sizing: border-box !important;

        margin: 24px 0 0 !important;

        padding: 8px 16px !important;

        font-size: 0.95rem !important;

        line-height: 1.45 !important;

        overflow-wrap: break-word !important;
    }


    /* -----------------------------------------------------
       MISSÃO / VISÃO / VALORES
       ----------------------------------------------------- */

    .values {
        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        gap: 16px;
    }

    .values article {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }


    /* -----------------------------------------------------
       GRIDS GERAIS
       ----------------------------------------------------- */

    .split-grid,
    .form-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .split-grid > div:first-child {
        order: -1;
    }


    /* -----------------------------------------------------
       SERVIÇOS
       ----------------------------------------------------- */

    .services {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .services article {
        width: 100%;
        max-width: 100%;

        min-height: 230px;

        padding: 24px;
    }


    /* -----------------------------------------------------
       TRUST / DIFERENCIAIS
       ----------------------------------------------------- */

    .trust,
    .responsibility .trust {
        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        gap: 16px;
    }

    .trust article {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }


    /* -----------------------------------------------------
       TIMELINE
       ----------------------------------------------------- */

    .timeline {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .timeline::before {
        top: 24px;
        bottom: 24px;
        left: 23px;

        width: 1px;
        height: auto;
    }

    .timeline li {
        padding-left: 65px;
    }

    .timeline b {
        position: absolute;

        left: 0;
        top: 0;

        margin: 0;
    }


    /* -----------------------------------------------------
       SEGMENTOS
       ----------------------------------------------------- */

    .segments {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .segments article {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding: 18px 14px;

        font-size: 0.78rem;
    }


    /* -----------------------------------------------------
       SISTEMAS
       ----------------------------------------------------- */

    .chips {
        width: 100%;
        max-width: 100%;
    }

    .chips span {
        max-width: 100%;

        font-size: 0.72rem;

        overflow-wrap: break-word;
    }


    /* -----------------------------------------------------
       RESPONSABILIDADE
       ----------------------------------------------------- */

    .responsibility .trust {
        text-align: left;
    }


    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .cta {
        padding: 70px 0;
    }

    .cta h2 {
        width: 100%;
        max-width: 100%;

        font-size: 2rem;
    }

    .cta p {
        width: 100%;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       FORMULÁRIO
       ----------------------------------------------------- */

    .form-grid {
        width: 100%;
        max-width: 100%;
    }

    form {
        width: 100%;
        max-width: 100%;

        padding: 22px;

        min-width: 0;
    }

    input,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       MAPA
       ----------------------------------------------------- */

    .location {
        padding: 65px 0;
    }

    .map-wrap {
        width: 100%;
        max-width: 100%;

        height: 300px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

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

        gap: 25px;
    }

    .footer-grid img {
        width: 145px;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       WHATSAPP
       ----------------------------------------------------- */

    .whatsapp-float {
        right: 15px;
        bottom: 15px;

        width: 52px;
        height: 52px;

        padding: 0;

        display: grid;
        place-items: center;
    }

    .whatsapp-float i {
        margin: 0;

        font-size: 1.55rem;
    }

    .whatsapp-float span {
        display: none;
    }


    /* -----------------------------------------------------
       VOLTAR AO TOPO
       ----------------------------------------------------- */

    .back-top {
        left: 15px;
        bottom: 15px;
    }
}


/* =========================================================
   MOBILE PEQUENO — ATÉ 400PX
   ========================================================= */

@media (max-width: 400px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .about-grid .copy h2 {
        font-size: 1.8rem !important;
    }

    .about-grid .copy p {
        font-size: 0.9rem !important;
    }

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

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

    .hero-points span:last-child {
        grid-column: auto;
    }
}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        transition: none !important;

        animation: none !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}








/* =========================================================
   AJUSTES HERO — MOBILE
   RAC PROJETOS E CONSULTORIA
   ========================================================= */

@media (max-width: 650px) {

    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero {
        min-height: 680px !important;
        height: auto !important;

        overflow: hidden !important;

        position: relative;
    }


    /* -----------------------------------------------------
       IMAGEM DE FUNDO
       Deixa o engenheiro presente, mas menos competitivo
       com o texto.
       ----------------------------------------------------- */

    .hero > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;

        object-position: 68% center !important;

        transform: none !important;

        opacity: 0.72;
    }


    /* -----------------------------------------------------
       CAMADA ESCURA
       Mais contraste atrás do texto.
       ----------------------------------------------------- */

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(4, 22, 40, 0.97) 0%,
                rgba(4, 25, 44, 0.91) 48%,
                rgba(4, 25, 44, 0.72) 78%,
                rgba(4, 25, 44, 0.55) 100%
            ) !important;
    }


    /* -----------------------------------------------------
       CONTEÚDO
       ----------------------------------------------------- */

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 105px 20px 34px !important;

        text-align: center !important;
    }


    /* -----------------------------------------------------
       SELO
       ----------------------------------------------------- */

    .hero-content .eyebrow {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto 20px !important;

        font-size: 0.72rem !important;

        line-height: 1.35 !important;

        letter-spacing: 0.09em !important;

        text-align: center !important;

        overflow-wrap: break-word;
    }


    /* -----------------------------------------------------
       TÍTULO PRINCIPAL
       ----------------------------------------------------- */

    .hero h1 {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto 20px !important;

        font-size: 2.05rem !important;

        line-height: 1.12 !important;

        letter-spacing: -0.035em !important;

        text-align: center !important;

        overflow-wrap: normal !important;
        word-break: normal !important;
    }


    /* Destaque laranja */
    .hero h1 em {
        color: #ff6b2b !important;
    }


    /* -----------------------------------------------------
       TEXTO DE APOIO
       ----------------------------------------------------- */

    .hero p {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto 24px !important;

        color: #d7e4ef !important;

        font-size: 0.92rem !important;

        line-height: 1.6 !important;

        text-align: center !important;
    }


    /* -----------------------------------------------------
       BOTÕES
       ----------------------------------------------------- */

    .hero-content .buttons {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 12px !important;

        margin: 24px 0 28px !important;
    }

    .hero-content .buttons .btn {
        width: 100% !important;
        max-width: 100% !important;

        min-height: 52px !important;

        padding: 14px 18px !important;

        font-size: 0.76rem !important;

        border-radius: 7px !important;
    }


    /* Botão WhatsApp */
    .hero-content .buttons .btn.btn-ghost {
        background: rgba(5, 28, 49, 0.35) !important;

        border-color: rgba(255, 255, 255, 0.55) !important;

        color: #ffffff !important;
    }

    .hero-content .buttons .btn.btn-ghost i {
        color: #25d366 !important;
    }


    /* -----------------------------------------------------
       DIFERENCIAIS
       ----------------------------------------------------- */

    .hero-points {
        width: 100% !important;
        max-width: 100% !important;

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 16px !important;

        margin-top: 26px !important;
        padding-top: 22px !important;

        border-top: 1px solid rgba(255, 255, 255, 0.22) !important;

        text-align: center !important;
    }

    .hero-points span,
    .hero-points span:last-child {
        width: 100% !important;

        grid-column: auto !important;

        display: grid !important;

        gap: 3px !important;

        text-align: center !important;
    }

    .hero-points b {
        color: #ffffff !important;

        font-size: 0.78rem !important;

        line-height: 1.3 !important;
    }

    .hero-points span {
        color: #bfd0df !important;

        font-size: 0.7rem !important;

        line-height: 1.35 !important;
    }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 400px) {

    .hero-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero h1 {
        font-size: 1.9rem !important;
    }

    .hero-content .eyebrow {
        font-size: 0.67rem !important;
    }

    .hero p {
        font-size: 0.88rem !important;
    }

    .hero-points {
        gap: 14px !important;
    }
}













/* =========================================================
   DIFERENCIAIS / CREDIBILIDADE — MOBILE
   Layout 2x2 compacto
   ========================================================= */

@media (max-width: 650px) {

    /* Faixa dos quatro diferenciais */
    .credibility .grid4 {
        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: 100% !important;
        max-width: 100% !important;

        gap: 0 !important;

        padding: 0 !important;

        min-width: 0 !important;
    }


    /* Cada diferencial */
    .credibility .grid4 > div {
        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        display: grid !important;

        align-content: start !important;

        gap: 3px !important;

        padding: 20px 14px !important;

        border-right: 1px solid rgba(255, 255, 255, 0.10) !important;

        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;

        box-sizing: border-box !important;
    }


    /* Remove a borda direita da coluna direita */
    .credibility .grid4 > div:nth-child(even) {
        border-right: 0 !important;
    }


    /* Remove a borda inferior da última linha */
    .credibility .grid4 > div:nth-child(3),
    .credibility .grid4 > div:nth-child(4) {
        border-bottom: 0 !important;
    }


    /* Ícones */
    .credibility .grid4 i {
        display: block !important;

        margin: 0 0 8px !important;

        color: var(--color-accent) !important;

        font-size: 1rem !important;

        line-height: 1 !important;
    }


    /* Títulos */
    .credibility .grid4 b {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        color: #ffffff !important;

        font-size: 0.78rem !important;

        line-height: 1.3 !important;

        overflow-wrap: break-word !important;
    }


    /* Descrições */
    .credibility .grid4 span {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        color: #b8c9d8 !important;

        font-size: 0.68rem !important;

        line-height: 1.4 !important;

        overflow-wrap: break-word !important;
    }
}


/* =========================================================
   CELULARES MUITO PEQUENOS
   ========================================================= */

@media (max-width: 400px) {

    .credibility .grid4 > div {
        padding: 18px 11px !important;
    }

    .credibility .grid4 i {
        font-size: 0.95rem !important;
    }

    .credibility .grid4 b {
        font-size: 0.74rem !important;
    }

    .credibility .grid4 span {
        font-size: 0.64rem !important;
    }
}










/* =========================================================
   LISTA DE CONSULTORIA — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .checklist {
        font-size: 0.90rem !important;
        line-height: 1.45 !important;

        gap: 9px !important;
    }

    .checklist li {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

}










/* =========================================================
   AJUSTE DAS SETAS DOS LINKS DE SERVIÇOS
   ========================================================= */

.services article > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.services article > a > i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: inline-block;
    vertical-align: middle;
}

/* =========================================================
   RESPONSIVIDADE — NOTEBOOK / DESKTOP MÉDIO
   Corrige a sobreposição do título sobre a imagem em
   resoluções intermediárias, mantendo o desktop grande.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1500px) {

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    #header {
        padding-left: clamp(22px, 5.5vw, 60px);
        padding-right: clamp(22px, 5.5vw, 60px);
        gap: 16px;
    }

    .brand img {
        width: 104px;
        height: 60px;
    }

    nav {
        gap: clamp(12px, 1.25vw, 19px);
        font-size: clamp(0.70rem, 0.72vw, 0.80rem);
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .btn-small {
        padding: 10px 13px;
        font-size: 0.67rem;
        white-space: nowrap;
    }

    .header-actions .text-link {
        font-size: 0.73rem;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-content {
        /*
         * O início do conteúdo acompanha a largura da tela,
         * mas fica limitado para preservar o alinhamento visual.
         */
        margin-left: clamp(70px, 14.5vw, 210px);
        margin-right: 0;

        width: auto;

        /*
         * A largura cai conforme o notebook fica menor.
         * Isso impede que o H1 entre na área do profissional.
         */
        max-width: clamp(620px, 52vw, 780px);

        padding-top: 74px;
    }


    /* -----------------------------------------------------
       TÍTULO
       ----------------------------------------------------- */

    .hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: clamp(3rem, 3.8vw, 4rem);
        line-height: 1.10;
        letter-spacing: -0.04em;
    }


    /* -----------------------------------------------------
       TEXTO DE APOIO
       ----------------------------------------------------- */

    .hero p {
        max-width: 720px;
        font-size: 1rem;
        line-height: 1.55;
    }


    /* -----------------------------------------------------
       BOTÕES
       ----------------------------------------------------- */

    .hero-content .buttons {
        gap: 10px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .hero-content .buttons .btn {
        padding: 13px 18px;
        font-size: 0.74rem;
    }


    /* -----------------------------------------------------
       DIFERENCIAIS DO HERO
       ----------------------------------------------------- */

    .hero-points {
        max-width: 100%;
        gap: 14px;
        padding-top: 16px;
    }

    .hero-points b {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .hero-points span {
        font-size: 0.68rem;
        line-height: 1.35;
    }


    /* -----------------------------------------------------
       IMAGEM / SOBREPOSIÇÃO
       ----------------------------------------------------- */

    .hero > img {
        object-position: right center;
    }

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                #051b32 0%,
                rgba(6, 29, 52, 0.96) 31%,
                rgba(6, 29, 51, 0.67) 57%,
                rgba(6, 29, 51, 0.20) 82%,
                transparent 100%
            );
    }
}


/* =========================================================
   NOTEBOOK MAIS ESTREITO — 901PX A 1150PX
   ========================================================= */

@media (min-width: 901px) and (max-width: 1150px) {

    #header {
        padding-left: 24px;
        padding-right: 24px;
        gap: 12px;
    }

    .brand img {
        width: 94px;
        height: 56px;
    }

    nav {
        gap: 10px;
        font-size: 0.67rem;
    }

    .header-actions .text-link {
        display: none;
    }

    .header-actions .btn-small {
        padding: 9px 11px;
        font-size: 0.63rem;
    }

    .hero-content {
        margin-left: 80px;
        max-width: 600px;
        padding-top: 68px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 4vw, 3.25rem);
        line-height: 1.10;
    }

    .hero p {
        max-width: 560px;
        font-size: 0.95rem;
    }

    .hero-points {
        gap: 12px;
    }
}
