:root {
    --blue: #123e73;
    --blue-dark: #071b33;
    --orange: #ff8900;
    --orange-dark: #df7300;
    --text: #1d2a38;
    --muted: #637083;
    --line: #e8edf3;
    --soft: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(7, 27, 51, .12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    hyphens: auto;
    text-align: justify;
    text-align-last: left;
}

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

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

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

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(18, 62, 115, .08);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    height: 96px;
    left: 0;
    padding: 0 max(32px, calc((100vw - 1180px) / 2));
    position: fixed;
    right: 0;
    top: 0;
    transition: box-shadow .25s ease, height .25s ease;
    z-index: 20;
}

.site-header.scrolled {
    box-shadow: 0 14px 35px rgba(7, 27, 51, .1);
    height: 82px;
}

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

.main-nav {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.main-nav a {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    background: var(--orange);
    bottom: -8px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    width: 100%;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav a.active {
    color: var(--blue);
}

.main-nav a.active::after {
    transform: scaleX(1);
}

.header-cta,
.button {
    align-items: center;
    border-radius: 0;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.header-cta,
.button-primary {
    background: var(--orange);
    color: var(--blue-dark);
}

.header-cta:hover,
.button-primary:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.button-ghost {
    border: 1px solid rgba(255, 255, 255, .42);
    color: var(--white);
}

.button-ghost:hover {
    background: var(--white);
    color: var(--blue-dark);
}

.button-light {
    background: var(--white);
    color: var(--blue-dark);
}

.menu-toggle {
    background: transparent;
    border: 0;
    display: none;
    height: 42px;
    width: 42px;
}

.menu-toggle span {
    background: var(--blue);
    display: block;
    height: 2px;
    margin: 7px auto;
    width: 28px;
}

.hero {
    align-items: center;
    display: flex;
    min-height: 760px;
    overflow: hidden;
    padding-top: 96px;
    position: relative;
}

.hero-bg,
.story-section > img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-bg {
    filter: grayscale(1);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(7, 12, 20, .92), rgba(7, 12, 20, .62), rgba(7, 12, 20, .2));
    inset: 0;
    position: absolute;
}

.hero-pattern {
    bottom: -32px;
    display: flex;
    gap: 22px;
    position: absolute;
    right: 5vw;
}

.hero-pattern span {
    background: var(--orange);
    clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
    height: 120px;
    width: 150px;
}

.hero-content {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 72px);
    letter-spacing: -.04em;
    line-height: 1.02;
    max-width: 820px;
}

.hero-content p {
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    margin: 26px 0 36px;
    max-width: 660px;
}

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

.eyebrow {
    color: var(--orange);
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.about-section,
.services-section,
.contact-band {
    padding: 110px 0;
}

.split-grid {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: 1.05fr .95fr;
}

.image-stack {
    position: relative;
}

.image-stack img {
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
}

.metric-card {
    background: var(--blue);
    bottom: -34px;
    box-shadow: var(--shadow);
    color: var(--white);
    max-width: 300px;
    padding: 28px;
    position: absolute;
    right: -28px;
}

.metric-card strong {
    color: var(--orange);
    display: block;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.section-copy h2,
.section-heading h2,
.contact-card h2 {
    color: var(--blue);
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.03em;
    line-height: 1.12;
}

.section-copy p {
    color: var(--muted);
    margin-top: 18px;
}

.text-link {
    color: var(--blue);
    display: inline-flex;
    font-weight: 800;
    margin-top: 28px;
}

.text-link::after {
    color: var(--orange);
    content: "→";
    margin-left: 10px;
}

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

.section-heading {
    display: grid;
    gap: 18px;
    grid-template-columns: 260px 1fr;
    margin-bottom: 52px;
}

.services-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(5, 1fr);
}

.service-card {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(7, 27, 51, .06);
    display: block;
    overflow: hidden;
}

.service-card img {
    aspect-ratio: 4 / 5;
    height: 270px;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.service-card span {
    align-items: center;
    color: var(--blue);
    display: flex;
    font-size: 17px;
    font-weight: 700;
    justify-content: center;
    min-height: 88px;
    padding: 16px;
    text-align: center;
}

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

.story-section {
    align-items: center;
    display: flex;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.story-section::before {
    background: linear-gradient(90deg, rgba(7, 12, 20, .86), rgba(7, 12, 20, .42), rgba(7, 12, 20, .08));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.story-content {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.story-content p {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 22px;
    max-width: 620px;
}

.contact-band {
    background: var(--blue-dark);
}

.page-hero {
    align-items: center;
    background:
        linear-gradient(115deg, rgba(7, 27, 51, .92), rgba(18, 62, 115, .72)),
        url("https://static.wixstatic.com/media/93507cc36ceb4f698334c53a1c91e168.jpg/v1/fill/w_1800,h_900,al_c,q_85,enc_avif,quality_auto/Pr%C3%A9dios%20altos.jpg") center/cover;
    color: var(--white);
    display: flex;
    min-height: 560px;
    padding: 170px 0 90px;
}

.page-hero-content h1 {
    font-size: clamp(40px, 6vw, 70px);
    letter-spacing: -.04em;
    line-height: 1.04;
    max-width: 900px;
}

.page-hero-content p {
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    margin-top: 24px;
    max-width: 720px;
}

.about-story,
.purpose-section {
    padding: 110px 0;
}

.story-grid {
    align-items: start;
    display: grid;
    gap: 70px;
    grid-template-columns: 340px 1fr;
}

.story-aside {
    background: var(--blue);
    color: var(--white);
    padding: 34px;
    position: sticky;
    top: 120px;
}

.story-aside span {
    color: var(--orange);
    display: block;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.story-aside strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.story-aside p {
    color: rgba(255, 255, 255, .78);
}

.story-text h2 {
    color: var(--blue);
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 26px;
}

.story-text p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 20px;
}

.consulting-band {
    background: var(--soft);
    padding: 90px 0;
}

.consulting-card {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: .9fr 1.1fr;
}

.consulting-card h2 {
    color: var(--blue);
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.03em;
    line-height: 1.12;
}

.consulting-card p {
    color: var(--muted);
    font-size: 18px;
}

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

.purpose-grid article {
    border: 1px solid var(--line);
    min-height: 320px;
    padding: 34px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.purpose-grid article:hover {
    border-color: rgba(255, 137, 0, .45);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.purpose-grid span {
    color: var(--orange);
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 28px;
}

.purpose-grid h3 {
    color: var(--blue);
    font-size: 26px;
    margin-bottom: 18px;
}

.purpose-grid p {
    color: var(--muted);
}

.service-cover {
    padding-top: 96px;
}

.service-cover img {
    height: 422px;
    object-fit: cover;
    width: 100%;
}

.executed-section {
    padding: 88px 0 110px;
}

.executed-heading {
    margin-bottom: 58px;
    text-align: center;
}

.executed-heading h1 {
    color: var(--blue);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: .02em;
    margin-bottom: 46px;
}

.executed-heading p {
    color: var(--text);
    font-size: 18px;
    margin: 0 auto;
    max-width: 980px;
    text-align: justify;
}

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

.executed-grid.compact-grid {
    max-width: 920px;
    margin: 0 auto;
}

.executed-grid article {
    align-items: center;
    background: var(--white);
    box-shadow: 0 22px 34px rgba(7, 27, 51, .08);
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr;
    min-height: 110px;
    padding: 22px;
}

.executed-grid span {
    align-items: center;
    background: var(--blue);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    font-size: 28px;
    font-weight: 500;
    height: 48px;
    justify-content: center;
    line-height: 1;
    width: 48px;
}

.executed-grid p {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.contact-page {
    padding: 220px 0 120px;
}

.contact-page h1 {
    color: var(--blue);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -.04em;
    margin-bottom: 110px;
}

.contact-rule {
    background: var(--line);
    height: 2px;
    margin-bottom: 90px;
    width: 100%;
}

.contact-layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
}

.contact-layout img {
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    width: 100%;
}

.contact-form {
    border-top: 2px solid var(--line);
    display: grid;
    gap: 16px;
    padding-top: 70px;
}

.contact-form label {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    background: #f3f3f3;
    border: 1px solid transparent;
    color: var(--text);
    font: inherit;
    min-height: 50px;
    outline: none;
    padding: 12px 16px;
    transition: border-color .25s ease, background .25s ease;
    width: 100%;
}

.contact-form textarea {
    min-height: 118px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--white);
    border-color: var(--orange);
}

.contact-form button {
    background: var(--orange);
    border: 0;
    color: var(--blue-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    margin-top: 22px;
    min-height: 52px;
    transition: background .25s ease, color .25s ease;
}

.contact-form button:hover {
    background: var(--orange-dark);
    color: var(--white);
}

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

.contact-card h2 {
    color: var(--white);
    max-width: 760px;
}

.site-footer {
    background: #061629;
    color: rgba(255, 255, 255, .72);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    gap: 54px;
    grid-template-columns: 1fr .7fr 1.05fr 1.45fr;
}

.footer-grid img {
    margin-bottom: 22px;
    width: 90px;
}

.footer-grid h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-grid a {
    display: block;
    margin-bottom: 10px;
}

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

.footer-map {
    min-height: 210px;
}

.footer-map iframe {
    border: 0;
    display: block;
    height: 100%;
    min-height: 210px;
    width: 100%;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    margin: 54px auto 0;
    max-width: 1180px;
    padding: 22px 0;
    width: min(92%, 1180px);
}

.back-to-top {
    background: var(--orange);
    border: 0;
    bottom: 24px;
    color: var(--blue-dark);
    cursor: pointer;
    font-size: 24px;
    height: 48px;
    opacity: 0;
    position: fixed;
    right: 24px;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    width: 48px;
    z-index: 10;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1020px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        padding: 0 24px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .main-nav.open {
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: grid;
        gap: 0;
        left: 0;
        padding: 20px 24px 28px;
        position: fixed;
        right: 0;
        top: 82px;
    }

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

    .split-grid,
    .section-heading,
    .contact-card,
    .contact-layout,
    .story-grid,
    .consulting-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .story-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .hero {
        min-height: 680px;
    }

    .brand img {
        height: 58px;
    }

    .about-section,
    .services-section,
    .about-story,
    .purpose-section,
    .executed-section,
    .contact-page,
    .contact-band {
        padding: 76px 0;
    }

    .contact-page {
        padding-top: 140px;
    }

    .contact-page h1 {
        margin-bottom: 56px;
    }

    .contact-rule {
        margin-bottom: 48px;
    }

    .contact-form {
        padding-top: 42px;
    }

    .service-cover {
        padding-top: 96px;
    }

    .service-cover img {
        height: 300px;
    }

    .page-hero {
        min-height: 520px;
        padding: 140px 0 70px;
    }

    .hero-pattern {
        opacity: .45;
        right: -70px;
    }

    .services-grid,
    .purpose-grid,
    .executed-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        margin-top: -24px;
        max-width: none;
        position: relative;
        right: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
