/* arquivo: grupo-rett.css */

:root {
    --navy: #061a33;
    --navy-2: #0a274c;
    --blue: #0d4d96;
    --green: #3b9b42;
    --gray: #606874;
    --light-gray: #f4f5f6;
    --border: #dfe3e8;
    --white: #ffffff;
    --black: #111318;
    --serif: "Libre Caslon Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --container: 1180px;
    --transition: 0.3s ease;
    --shadow: 0 18px 45px rgba(4, 20, 41, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-container,
.header-container,
.hero-container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 82px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(4, 25, 49, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 8px 30px rgba(4, 20, 41, 0.08);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 180px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.desktop-nav a {
    position: relative;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-cta {
    min-height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 3px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

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

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

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

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    padding: 130px 32px 40px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: 0.35s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 18px 0;
    font-family: var(--serif);
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-cta {
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

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

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(2, 18, 35, 0.94) 0%,
            rgba(2, 18, 35, 0.78) 37%,
            rgba(2, 18, 35, 0.33) 68%,
            rgba(2, 18, 35, 0.12) 100%
        );
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 670px;
    color: var(--white);
    padding: 100px 0 80px;
}

.eyebrow {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: #78b5c1;
}

.eyebrow-light {
    color: var(--white);
}

.eyebrow-light::after {
    display: none;
}

.hero h1 {
    max-width: 650px;
    margin-top: 18px;
    font-family: var(--serif);
    font-size: clamp(3rem, 5.1vw, 5.15rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.025em;
}

.hero-content > p {
    max-width: 510px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-line {
    display: block;
    width: 44px;
    height: 2px;
    margin: 24px 0;
    background: #65a27b;
}

.outline-button {
    width: fit-content;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 28px;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.outline-button svg {
    width: 22px;
}

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

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
    background: var(--white);
}

.about-image {
    min-height: 540px;
    overflow: hidden;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 72px 7vw;
}

.about-inner {
    max-width: 560px;
}

.about h2 {
    margin-top: 24px;
    font-family: var(--serif);
    font-size: clamp(2.15rem, 3.45vw, 3.65rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.about-inner > p {
    max-width: 470px;
    margin-top: 25px;
    color: var(--gray);
    font-size: 0.96rem;
    line-height: 1.7;
}

.text-link {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.text-link svg {
    transition: var(--transition);
}

.text-link:hover svg {
    transform: translateX(6px);
}

.companies {
    padding: 76px 0 84px;
    background: #fbfbfb;
}

.section-heading {
    margin-bottom: 38px;
}

.section-heading-centered {
    text-align: center;
}

.section-heading-centered .eyebrow::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-heading h2 {
    margin-top: 22px;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
}

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

.company-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.company-card-image {
    height: 205px;
    overflow: hidden;
}

.company-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

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

.company-card-body {
    min-height: 315px;
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-brand > div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.company-brand strong {
    font-size: 1rem;
}

.company-brand div:last-child span {
    margin-top: 3px;
    font-size: 1.3rem;
    font-weight: 600;
}

.company-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.company-symbol span {
    width: 30px;
    height: 30px;
    display: block;
    transform: rotate(30deg);
    border: 1px solid currentColor;
    position: relative;
}

.company-symbol span::before,
.company-symbol span::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid currentColor;
}

.company-symbol span::after {
    inset: 10px;
}

.symbol-tech {
    color: var(--blue);
}

.symbol-consulting {
    color: #676767;
}

.symbol-energy {
    color: var(--green);
}

.symbol-energy span {
    border-radius: 50%;
    border-width: 7px;
    transform: none;
}

.symbol-energy span::before,
.symbol-energy span::after {
    display: none;
}

.company-card-body > p {
    color: #4e5560;
    font-size: 0.88rem;
    line-height: 1.6;
}

.company-products {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
}

.company-products li {
    padding: 0 13px;
    border-right: 1px solid #b9bec4;
    font-size: 0.72rem;
}

.company-products li:first-child {
    padding-left: 0;
}

.company-products li:last-child {
    border-right: 0;
}

.company-link {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-transform: uppercase;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.company-link svg {
    width: 20px;
    transition: var(--transition);
}

.company-link:hover svg {
    transform: translateX(6px);
}

.company-card-tech .company-link,
.company-card-tech .company-brand div:last-child span {
    color: var(--blue);
}

.company-card-energy .company-link,
.company-card-energy .company-brand div:last-child span {
    color: var(--green);
}

.company-card-consulting .company-brand div:last-child span {
    color: #666;
}

.method {
    padding: 66px 0 74px;
    background: var(--white);
}

.method-heading {
    margin-bottom: 44px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.method-step {
    position: relative;
    min-height: 122px;
    padding: 0 36px 0 0;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 16px;
}

.method-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 1px;
    height: 72px;
    background: var(--border);
    transform: translateY(-50%);
}

.method-number {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--blue);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
}

.method-icon {
    color: var(--blue);
}

.method-icon svg {
    width: 54px;
    height: 54px;
    stroke-width: 1.25;
}

.method-content h3 {
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 0.87rem;
}

.method-content p {
    color: var(--gray);
    font-size: 0.75rem;
    line-height: 1.55;
}

.method-arrow {
    position: absolute;
    top: 50%;
    right: 2px;
    color: #a3aab2;
    font-size: 2rem;
    transform: translateY(-50%);
}

.method-step:last-child .method-arrow {
    display: none;
}

.numbers {
    position: relative;
    overflow: hidden;
    min-height: 175px;
    display: flex;
    align-items: center;
}

.numbers-background,
.numbers-overlay {
    position: absolute;
    inset: 0;
}

.numbers-background img {
    height: 100%;
    object-fit: cover;
}

.numbers-overlay {
    background: rgba(2, 18, 35, 0.84);
}

.numbers-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr 1.25fr;
    color: var(--white);
}

.number-item {
    min-height: 96px;
    padding: 20px 34px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 17px;
    align-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.number-item:last-child {
    border-right: 0;
}

.number-icon {
    grid-row: 1 / 3;
    align-self: center;
}

.number-icon svg {
    width: 54px;
    height: 54px;
    stroke-width: 1.35;
}

.number-item strong {
    align-self: end;
    font-size: 2.8rem;
    line-height: 0.95;
}

.number-item > span {
    align-self: start;
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.1;
}

.number-item-map strong {
    font-size: 1.35rem;
    line-height: 1.08;
}

.number-item-map > span {
    font-size: 0.75rem;
}

.careers {
    padding: 100px 0;
    background: var(--light-gray);
}

.careers-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.careers-content h2 {
    margin-top: 22px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3.6vw, 3.8rem);
    font-weight: 400;
    line-height: 1.08;
}

.careers-content > p {
    max-width: 500px;
    margin-top: 24px;
    color: var(--gray);
    line-height: 1.75;
}

.dark-button {
    margin-top: 30px;
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

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

.careers-image {
    min-height: 430px;
    overflow: hidden;
}

.careers-image img {
    height: 100%;
    object-fit: cover;
}

.contact-cta {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background:
        radial-gradient(circle at 85% 40%, rgba(37, 96, 158, 0.32), transparent 35%),
        linear-gradient(120deg, #061a33, #082b55);
    color: var(--white);
}

.contact-decoration {
    position: absolute;
    width: 650px;
    height: 650px;
    right: -200px;
    bottom: -430px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-decoration::before,
.contact-decoration::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-decoration::before {
    inset: 60px;
}

.contact-decoration::after {
    inset: 120px;
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.contact-title h2 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.15rem);
    font-weight: 400;
    line-height: 1.08;
}

.contact-content p {
    max-width: 430px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.site-footer {
    padding: 72px 0 26px;
    background: #041326;
    color: var(--white);
}

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

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

.footer-brand p {
    max-width: 390px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h3 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.87rem;
    transition: var(--transition);
}

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

.footer-bottom {
    margin-top: 62px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.76rem;
}

.footer-bottom > div {
    display: flex;
    gap: 25px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

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

.back-to-top:hover {
    background: var(--blue);
}

.back-to-top svg {
    width: 20px;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

    .desktop-nav a {
        font-size: 0.82rem;
    }

    .header-cta {
        padding-inline: 18px;
    }

    .company-grid {
        gap: 14px;
    }

    .company-card-body {
        padding-inline: 20px;
    }

    .method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 0;
    }

    .method-step:nth-child(2)::after {
        display: none;
    }

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

    .number-item:nth-child(2) {
        border-right: 0;
    }

    .number-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 72px;
    }

    .site-header.scrolled {
        height: 64px;
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span {
        background: var(--white);
    }

    .brand img {
    width: auto;
    height: 40px;
    max-width: 150px;
    
}
    .hero {
        min-height: 610px;
        padding-top: 72px;
    }

    .hero-overlay {
        background: rgba(2, 18, 35, 0.72);
    }

    .hero-content {
        max-width: 620px;
        padding: 90px 0 70px;
    }

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

    .about-image {
        min-height: 430px;
    }

    .about-content {
        padding: 70px 24px;
    }

    .about-inner {
        max-width: 680px;
        margin-inline: auto;
    }

    .company-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-inline: auto;
    }

    .company-card {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .company-card-image {
        height: auto;
        min-height: 310px;
    }

    .company-card-body {
        min-height: 310px;
    }

    .careers-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .careers-image {
        min-height: 380px;
    }

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

@media (max-width: 650px) {
    .section-container,
    .header-container,
    .hero-container {
        width: min(calc(100% - 30px), var(--container));
    }

    .hero {
        min-height: 650px;
    }

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

    .hero-content > p {
        font-size: 0.92rem;
    }

    .about-image {
        min-height: 330px;
    }

    .about h2,
    .section-heading h2 {
        font-size: 2.35rem;
    }

    .companies,
    .method,
    .careers {
        padding-block: 62px;
    }

    .company-card {
        display: block;
    }

    .company-card-image {
        height: 220px;
        min-height: 0;
    }

    .company-card-body {
        min-height: 320px;
    }

    .method-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .method-step {
        min-height: 145px;
        padding: 22px 0;
        grid-template-columns: auto auto 1fr;
        border-bottom: 1px solid var(--border);
    }

    .method-step:not(:last-child)::after,
    .method-arrow {
        display: none;
    }

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

    .number-item,
    .number-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .number-item:last-child {
        border-bottom: 0;
    }

    .careers-grid {
        gap: 40px;
    }

    .contact-grid {
        gap: 38px;
    }

    .contact-title h2 {
        font-size: 2.55rem;
    }

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}