/* ================================================================
   01. VARIÁVEIS
   ================================================================ */

:root {
    --navy: #061725;
    --navy-dark: #04131f;

    --gold: #c6a25f;
    --gold-light: #ead39e;

    --cream: #f4f1eb;
    --white: #ffffff;

    --ink: #0f1d2b;
    --muted: #697787;

    --line: rgba(6, 23, 37, 0.12);
    --line-light: rgba(255, 255, 255, 0.14);

    --container: min(1200px, calc(100% - 40px));

    --shadow:
        0 24px 70px
        rgba(6, 23, 37, 0.12);
}


/* ================================================================
   02. RESET
   ================================================================ */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "DM Sans", sans-serif;

    color: var(--ink);

    background: var(--white);

    overflow-x: hidden;
}


body.menu-open {
    overflow: hidden;
}


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


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


button {
    font: inherit;
    cursor: pointer;
}


.container {
    width: var(--container);

    margin-inline: auto;
}


/* ================================================================
   03. BARRA DE PROGRESSO
   ================================================================ */

.progress {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 999;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--white)
        );
}


/* ================================================================
   04. TOPBAR
   ================================================================ */

.topbar {
    color: rgba(255, 255, 255, 0.68);

    background: var(--navy-dark);

    font-size: 0.76rem;
}


.topbar .container {
    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.topbar i {
    margin-right: 6px;

    color: var(--gold);
}


.sep {
    margin: 0 10px;

    opacity: 0.35;
}


/* ================================================================
   05. HEADER
   ================================================================ */

header {
    position: absolute;

    top: 38px;
    left: 0;
    right: 0;

    z-index: 100;

    transition: 0.3s;
}


header.scrolled {
    position: fixed;

    top: 0;

    background:
        rgba(6, 23, 37, 0.96);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 14px 40px
        rgba(0, 0, 0, 0.12);
}


/* ================================================================
   06. NAVEGAÇÃO
   ================================================================ */

.nav {
    min-height: 88px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


/* ================================================================
   07. LOGOTIPO
   ================================================================ */

.logo {
    display: inline-flex;

    align-items: center;

    flex-shrink: 0;
}


.logo-img {
    display: block !important;

    width: auto !important;

    height: 58px !important;

    max-width: 165px !important;

    object-fit: contain !important;
}


/* ================================================================
   08. LINKS
   ================================================================ */

.links {
    list-style: none;

    display: flex;

    gap: 30px;

    color:
        rgba(255, 255, 255, 0.84);

    font-size: 0.9rem;

    font-weight: 700;
}


.links a {
    position: relative;

    padding: 10px 0;
}


.links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;

    height: 2px;

    background: var(--gold);

    transition: 0.25s;
}


.links a:hover::after,
.links a.active::after {
    width: 100%;
}


/* ================================================================
   09. AÇÕES
   ================================================================ */

.actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.round {
    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    color: #ffffff;

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

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    font-weight: 800;
}


.menu {
    display: none;
}


/* ================================================================
   10. MENU MOBILE
   ================================================================ */

.mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 200;

    padding: 28px;

    color: #ffffff;

    background: var(--navy);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-10px);

    transition: 0.3s;
}


.mobile-menu.show {
    opacity: 1;

    visibility: visible;

    transform: none;
}


.mobile-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.mobile-links {
    list-style: none;

    display: grid;

    gap: 22px;

    margin-top: 65px;

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

    font-size:
        clamp(
            1.6rem,
            7vw,
            2.6rem
        );
}


.mobile-links a {
    display: block;

    padding-bottom: 13px;

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


/* ================================================================
   11. HERO
   ================================================================ */

.hero {
    position: relative;

    min-height: 690px;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: #ffffff;

    background: var(--navy);
}


/*
   A fotografia NÃO fica como background.
   O fundo serve apenas como decoração.
*/

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 82% 28%,
            rgba(198, 162, 95, 0.13),
            transparent 34%
        ),

        linear-gradient(
            120deg,
            #061725 0%,
            #071d2d 58%,
            #0b2940 100%
        );
}


/* ================================================================
   12. GRID DO HERO
   ================================================================ */

.hero-grid {
    position: absolute;

    inset: 0;

    opacity: 0.10;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.10) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.10) 1px,
            transparent 1px
        );

    background-size:
        88px 88px;
}


/* ================================================================
   13. HERO LAYOUT
   Texto à esquerda + imagem à direita
   ================================================================ */

.hero-layout {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.92fr);

    align-items: center;

    gap: 70px;

    padding-top: 105px;

    padding-bottom: 72px;
}


.hero-content {
    min-width: 0;
}


/* ================================================================
   14. EYEBROW
   ================================================================ */

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 16px;

    color: var(--gold);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.eyebrow::before {
    content: "";

    width: 38px;

    height: 2px;

    background: var(--gold);
}


/* ================================================================
   15. TEXTO DO HERO
   ================================================================ */

.hero h1 {
    max-width: 760px;

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

    font-size:
        clamp(
            3.1rem,
            6.1vw,
            6rem
        );

    line-height: 0.94;

    letter-spacing: -0.06em;
}


.hero h1 span {
    color: var(--gold-light);
}


.hero .lead {
    max-width: 690px;

    margin-top: 28px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 1.06rem;

    line-height: 1.8;
}


.hero .description {
    max-width: 720px;

    margin-top: 14px;

    color:
        rgba(255, 255, 255, 0.58);

    line-height: 1.8;
}


/* ================================================================
   16. FOTO PRINCIPAL DO GRUPO
   Sempre do lado direito
   ================================================================ */

.hero-photo {
    position: relative;

    min-height: 460px;

    overflow: hidden;

    border-radius:
        30px 8px
        30px 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    box-shadow:
        0 32px 80px
        rgba(0, 0, 0, 0.28);

    background:
        rgba(255, 255, 255, 0.06);
}


.hero-photo::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 58%,
            rgba(4, 19, 31, 0.20)
        );
}


.hero-photo img {
    width: 100%;

    height: 100%;

    min-height: 460px;

    object-fit: cover;

    object-position: center;
}


/* ================================================================
   17. EMPRESAS
   ================================================================ */

.companies {
    padding: 110px 0;

    background: var(--cream);
}


.companies-heading {
    max-width: 800px;

    margin-bottom: 55px;
}


.companies-heading h2 {
    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            2.2rem,
            4.5vw,
            4rem
        );

    line-height: 1.02;

    letter-spacing: -0.05em;
}


.companies-heading p {
    margin-top: 18px;

    color: var(--muted);
}


.companies-list {
    display: grid;

    gap: 24px;
}


/* ================================================================
   18. CARD DA EMPRESA
   ================================================================ */

.company-card {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    min-height: 440px;

    background: #ffffff;

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

    box-shadow:
        0 12px 35px
        rgba(6, 23, 37, 0.035);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.company-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 24px 55px
        rgba(6, 23, 37, 0.10);
}


/* ================================================================
   19. TEXTO DAS EMPRESAS
   ================================================================ */

.company-copy {
    position: relative;

    padding: 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.company-number {
    position: absolute;

    top: 24px;

    right: 30px;

    color:
        rgba(198, 162, 95, 0.18);

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

    font-size: 5.2rem;

    font-weight: 800;

    line-height: 1;
}


.company-tag {
    color: var(--gold);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.company-copy h3 {
    margin-top: 12px;

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

    font-size:
        clamp(
            2rem,
            3.5vw,
            3.4rem
        );

    letter-spacing: -0.05em;
}


.company-copy p {
    max-width: 650px;

    margin-top: 20px;

    color: var(--muted);

    line-height: 1.82;
}


/* ================================================================
   20. IMAGENS DAS EMPRESAS
   ================================================================ */

.company-image-link {
    position: relative;

    min-height: 440px;

    overflow: hidden;

    background: var(--navy);
}


.company-image-link img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.55s ease,
        opacity 0.35s ease;
}


.company-image-link::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(4, 19, 31, 0.72),
            transparent 55%
        );

    opacity: 0.75;

    transition:
        opacity 0.35s ease;
}


.company-image-link:hover img {
    transform:
        scale(1.045);
}


.company-image-link:hover::after {
    opacity: 0.9;
}


/* ================================================================
   21. VISITAR WEBSITE
   ================================================================ */

.visit {
    position: absolute;

    z-index: 2;

    left: 28px;

    bottom: 26px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 17px;

    color: #ffffff;

    /*
       Mais escuro para melhorar
       a nitidez das letras.
    */
    background:
        rgba(4, 19, 31, 0.92);

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    /*
       Retirado o blur.
    */
    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    font-size: 0.8rem;

    font-weight: 800;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.visit:hover {
    color: var(--navy);

    background: var(--gold);

    transform:
        translateY(-2px);
}


/* ================================================================
   22. POSIÇÃO ALTERNADA
   ================================================================ */

.reverse .company-copy {
    order: 2;
}


.reverse .company-image-link {
    order: 1;
}


/* ================================================================
   23. CTA FINAL
   ================================================================ */

.legacy {
    padding: 105px 0;

    color: #ffffff;

    /*
       O fundo foi ligeiramente escurecido
       para melhorar a leitura.
    */
    background:

        linear-gradient(
            90deg,
            rgba(4, 19, 34, 0.98),
            rgba(4, 19, 34, 0.88)
        ),

        url(
            "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=2000&q=84"
        )
        center / cover
        no-repeat;
}


/* ================================================================
   24. CTA GRID
   ================================================================ */

.legacy-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    align-items: center;

    gap: 70px;
}


.legacy h2 {
    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.9rem
        );

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.legacy p {
    margin-top: 18px;

    color:
        rgba(255, 255, 255, 0.72);
}


/* ================================================================
   25. CONTACTOS
   ================================================================ */

.contact-data {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}


/* ================================================================
   26. CAIXAS DE CONTACTO
   CORRECÇÃO DE BRILHO E DESFOQUE
   ================================================================ */

.contact-item {
    display: grid;

    grid-template-columns:
        48px 1fr;

    align-items: center;

    gap: 14px;

    padding: 20px 22px;

    /*
       Fundo escuro em vez do fundo
       branco/transparente anterior.
    */
    background:
        rgba(4, 19, 31, 0.78);

    /*
       Borda mais discreta.
    */
    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    /*
       IMPORTANTE:
       retirado o blur.
    */
    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    /*
       Sombra muito suave.
    */
    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


/* ================================================================
   27. HOVER DOS CONTACTOS
   ================================================================ */

.contact-item:hover {
    transform:
        translateY(-2px);

    background:
        rgba(4, 19, 31, 0.92);

    border-color:
        rgba(198, 162, 95, 0.32);
}


/* ================================================================
   28. ÍCONES DOS CONTACTOS
   ================================================================ */

.contact-item > i {
    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    background:
        rgba(198, 162, 95, 0.10);

    border:
        1px solid
        rgba(198, 162, 95, 0.15);

    border-radius: 50%;

    font-size: 1rem;

    text-shadow: none;
}


/* ================================================================
   29. EMAIL / LOCALIZAÇÃO / EMPRESA / CONTACTO
   ================================================================ */

.contact-item small {
    display: block;

    color: var(--gold-light);

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: 0.10em;

    line-height: 1.3;

    text-transform: uppercase;

    opacity: 1;

    text-shadow: none;
}


/* ================================================================
   30. INFORMAÇÃO DOS CONTACTOS
   ================================================================ */

.contact-item strong {
    display: block;

    margin-top: 6px;

    /*
       Branco forte para ficar bem
       legível sobre o azul.
    */
    color: #ffffff;

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

    font-size: 0.91rem;

    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 0;

    opacity: 1;

    text-shadow: none;

    -webkit-font-smoothing:
        antialiased;

    -moz-osx-font-smoothing:
        grayscale;
}


/* ================================================================
   31. FOOTER
   ================================================================ */

footer {
    padding: 28px 0;

    color:
        rgba(255, 255, 255, 0.45);

    background: var(--navy-dark);

    font-size: 0.76rem;
}


.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.footer-bottom a {
    color: var(--gold-light);
}


/* ================================================================
   32. ANIMAÇÕES
   ================================================================ */

.reveal {
    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;

    transform: none;
}


/* ================================================================
   33. TABLET
   ================================================================ */

@media (max-width: 900px) {

    .links {
        display: none;
    }


    .menu {
        display: grid;
    }


    /* HERO */

    .hero-layout {
        grid-template-columns:
            1fr;

        gap: 38px;

        padding-top: 120px;
    }


    .hero-photo {
        min-height: 390px;
    }


    .hero-photo img {
        min-height: 390px;
    }


    /* EMPRESAS */

    .company-card {
        grid-template-columns:
            1fr;
    }


    .company-copy,
    .reverse .company-copy {
        order: 1;
    }


    .company-image-link,
    .reverse .company-image-link {
        order: 2;

        min-height: 360px;
    }


    /* CTA */

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


    .contact-data {
        max-width: 700px;
    }

}


/* ================================================================
   34. MOBILE
   ================================================================ */

@media (max-width: 680px) {

    :root {
        --container:
            min(
                100% - 28px,
                1200px
            );
    }


    /* TOPBAR */

    .topbar {
        display: none;
    }


    /* HEADER */

    header {
        top: 0;
    }


    .nav {
        min-height: 76px;
    }


    /* LOGO */

    .logo-img {
        height: 46px !important;

        max-width: 135px !important;
    }


    /* HERO */

    .hero {
        min-height: auto;
    }


    .hero-layout {
        padding-top: 105px;

        padding-bottom: 58px;

        gap: 30px;
    }


    .hero-content {
        padding-top: 0;
    }


    .hero-photo {
        min-height: 280px;

        border-radius:
            22px 6px
            22px 6px;
    }


    .hero-photo img {
        min-height: 280px;
    }


    /* EMPRESAS */

    .companies {
        padding: 75px 0;
    }


    .company-copy {
        padding:
            38px 24px;
    }


    .company-number {
        font-size: 4rem;
    }


    .company-image-link {
        min-height: 260px;
    }


    /* CONTACTOS */

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


    .contact-item {
        grid-template-columns:
            44px 1fr;

        gap: 12px;

        padding: 18px;

        background:
            rgba(4, 19, 31, 0.82);
    }


    .contact-item > i {
        width: 38px;

        height: 38px;
    }


    .contact-item strong {
        font-size: 0.86rem;
    }


    /* FOOTER */

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }


    /* CTA */

    .legacy {
        padding: 80px 0;
    }

}