:root {
    --primary: #0a2a43;
    --secondary: #99242d;
    --light: #f4f6f8;
    --dark: #1c1c1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Khuna', Arial, sans-serif;
}

@font-face {
    font-family: 'Khuna';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

html {
    scroll-behavior: smooth;
}

/* ========================
   HEADER
======================== */
.header {
    background: white;
    border-bottom: 1px solid #ddd;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ========================
   MENU PRINCIPAL
======================== */
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav .nav-item {
    position: relative;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: Arial;
}

.nav .nav-item:hover {
    color: var(--secondary);
    background: rgba(0,0,0,0.05);
}

.nav .btn {
    color: white;
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.nav .btn:hover {
    background: darkred;
}

/* ========================
   DROPDOWN
======================== */

/* Menu hamburguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #06042c;
    border-radius: 2px;
}

/* Botão de fechar só aparece quando o menu está ativo */
.close-btn {
    display: none; /* escondido por padrão */
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 300;
    color: #333;
}

.side-nav.active .close-btn {
    display: block; /* aparece apenas quando o menu está aberto */
}
/* ---------- MENU HAMBURGUER ---------- */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 140%; /* logo abaixo do item */
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 4px;
    font-family: Arial;
}

.dropdown-content a:hover {
    color: var(--secondary);
    background: rgba(0,0,0,0.05);
}

/* Mostrar dropdown apenas ao hover do pai */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ========================
   HERO
======================== */
.hero {
    position: relative;
    height: 500px;

    background-image: url("../assets/images/city.png");
    background-size: cover;           /* ocupa toda a área */
    background-position: center;      /* centra a imagem */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* 🔑 efeito estático */

    color: white;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-about {
    position: relative;
    height: 500px;

    background-image: url("../assets/images/about-page.png");
    background-size: cover;           /* ocupa toda a área */
    background-position: center;      /* centra a imagem */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* 🔑 efeito estático */

    color: white;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-contact {
    position: relative;
    height: 300px;

    background-image: url("../assets/images/city.png");
    background-size: cover;           /* ocupa toda a área */
    background-position: center;      /* centra a imagem */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* 🔑 efeito estático */

    color: white;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-privacy {
    position: relative;
    height: 300px;

    background-image: url("../assets/images/city.png");
    background-size: cover;           /* ocupa toda a área */
    background-position: center;      /* centra a imagem */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* 🔑 efeito estático */

    color: white;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero h1 {
    margin-bottom: 2.5rem; /* espaço abaixo do h1 */
    font-weight: normal;
    font-size: 3rem;
}

.hero-about h1 {
    margin-bottom: 2.5rem; /* espaço abaixo do h1 */
    font-weight: normal;
    font-size: 3rem;
}

.hero-contact h1 {
    margin-bottom: 0.5rem; /* espaço abaixo do h1 */
}

.hero-privacy h1 {
    margin-bottom: 0.5rem; /* espaço abaixo do h1 */
}

.hero-about h2 {
    margin-bottom: 2rem; /* espaço abaixo do h1 */
    font-size: 1.6rem;
}

.hero h2 {
    margin-bottom: 2rem; /* espaço abaixo do h1 */
    font-size: 1.6rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
}

.hero .btn-primary:hover {
    background: darkred;
}

.hero-about .btn-primary:hover {
    background: darkred;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* Texto à esquerda */
.hero-text {
    max-width: 800px;
    font-size: 1.05rem;
}

/* Texto à esquerda */
.hero-about-text {
    max-width: 1000px;
    font-size: 1.2rem;
}

/* Imagem à direita */
.hero-image img {
    max-width: 420px;
    width: 100%;
    height: auto;

    /* Animação */
    transform: scale(0.6);
    opacity: 0;
    animation: growLogo 1.2s ease-out forwards;
}

@keyframes growLogo {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.link-personalizado {
    text-decoration: none; /* Retira o sublinhado */
    color: #0a2a43;        /* Cor original */
}

.link-personalizado:hover {
    color: var(--secondary);           /* Cor ao passar o rato */
}


/* ========================
   SEÇÃO CONTENT - INICIO/ABOUT - CARDS
======================== */
.content {
    padding: 2.5rem 0;
    background: var(--light);
}

.content h2 {
    margin-bottom: 2.5rem; /* espaço abaixo do h1 */
    text-align: center;
}

.content .container {
    display: flex;              /* centraliza os cards */
    justify-content: center;
    gap: 2.5rem;                /* espaço entre os cards */
    flex-wrap: wrap;            /* empilha no mobile */
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.card-title i {
    font-size: 1.3rem;
}

.content .card hr {
    border: none;
    height: 3px;
    width: 270px;
    background: var(--primary);
    margin: 0.8rem auto 1.2rem auto;
    border-radius: 2px;
}

.content .card {
    background: white;
    padding: 2rem 2.2rem;              /* maior espaçamento interno */
    border-radius: 8px;
    width: 350px;               /* largura maior */
    max-width: 90%;             /* garante responsividade */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content .card h3 {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

/* ========================
   CLIENTES / LOGÓTIPOS
======================== */
.clients-container {
    margin-top: 4rem;
    text-align: center;
}

.clients-container h3 {
    margin-bottom: 3.5rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    text-align: center;
}

.client-item img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.3s ease;
    margin-bottom: auto; 
    margin-top: auto;
}

.client-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-item span {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: auto;
}

/* ========================
   SEÇÃO CONTENT - SERVICES - CARDS
======================== */

.content-services {
    padding: 2.5rem 0;
    background: var(--white);
}

.content-services h2 {
    margin-bottom: 2.5rem; /* espaço abaixo do h1 */
    text-align: center;
}

.content-services .container {
    display: flex;              /* centraliza os cards */
    justify-content: center;
    gap: 4.5rem;                /* espaço entre os cards */
    flex-wrap: wrap;            /* empilha no mobile */
}

.content-services .card-title {
    display: flex;
    flex-direction: column;   /* coloca o ícone em cima */
    align-items: flex-start;  /* alinha à esquerda */
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.content-services .card-title i {
    font-size: 1.3rem;
}

.content-services .card {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: transparent;   /* remove fundo branco */
    padding: 0;                /* remove espaçamento interno */
    border-radius: 0;          /* remove bordas arredondadas */
    width: 550px;
    max-width: 90%;
    box-shadow: none;          /* remove relevo */
}

.content-services .card.animate {
    opacity: 1;
    transform: translateX(0);
}

.content-services .card h3 {
    margin: 0;
    font-size: 1.1rem;
    text-align: left;   /* muda de center para left */
}


/*
.content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
*/

/*
.content .card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.7rem 0;
    border-radius: 6px;
}
*/

/* ========================
   LISTA DE CLIENTES
======================== */
/*
.client-list {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.client-list li {
    margin-bottom: 0.75rem;
}

.client-list a {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.client-list a:hover {
    color: var(--secondary);
}
*/



/*
.content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
*/

/* =========================
   CONTENT NEWS
========================= */

.content-news {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
}

.content-news h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* WRAPPER */
.news-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* CONTAINER VISÍVEL */
.news-container {
    overflow: hidden;
    width: 100%;
}

/* TRACK */
.news-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* CARD */
.news-card {
    min-width: calc(100% / 3);
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: left;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.news-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
    display: block;
    margin-bottom: 0.8rem;
}

.news-card p {
    line-height: 1.5;
}

/* SETAS */
.news-arrow {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
}

/* DOTS */
.news-dots {
    text-align: center;
    margin-top: 2rem;
}

.news-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.news-dots .active {
    background: var(--primary);
}


/* ========================
   SEÇÃO CONTENT - CONTACT - CARDS
======================== */

.content-contact {
    padding: 4rem 0;
    background: var(--light);
}

.content-contact .container {
    display: flex;
    flex-direction: row;          /* lado a lado */
    justify-content: center;      /* centra horizontalmente */
    align-items: flex-start;      /* alinha pelo topo */
    gap: 3rem;
    flex-wrap: wrap;              /* evita overflow em ecrãs pequenos */
}

/* Primeiro "card" — conteúdo editorial */
.content-contact .card {
    background: transparent;
    box-shadow: none;
    padding: 0 2rem;
    width: 540px;
    max-width: 90%;
}

.content-contact .card h3 {
    margin-top: -0.5em;
    margin-bottom: 0.7em;
    text-align: left;
    font-size: 3rem;
    font-weight: bold;
}

.content-contact .card h4 {
    padding: 0 0 3em;
    text-align: left;
    font-weight: normal;
}

/* Segundo card — formulário / contacto */
.content-contact .card-contact {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    width: 540px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*
.content-contact .card-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
*/

/* Formulário do card-contact */
.card-contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-contact label {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.card-contact input,
.card-contact textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: none;
    box-sizing: border-box;
}

.card-contact textarea {
    min-height: 150px;
}

.btn-submit {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: darkred;
}

#formStatus {
    margin-top: 0.8rem;
    font-weight: bold;
    text-align: center;
}

/* ========================
   SEÇÃO CONTENT - PRIVACY - CARDS
======================== */
.content-privacy {
    padding: 4rem 0;
    background: var(--light);
}

.content-privacy .container {
    display: flex;              /* centraliza os cards */
    justify-content: center;
    flex-direction: column;   /* cards em coluna */
    align-items: center;      /* centrados */
    gap: 2rem;                /* espaço entre os cards */
    flex-wrap: wrap;            /* empilha no mobile */
}

.content-privacy .card {
    background: white;
    padding: 2rem 3rem;              /* maior espaçamento interno */
    border-radius: 8px;
    width: 1000px;               /* largura maior */
    max-width: 90%;             /* garante responsividade */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/*
.content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
*/

.content-privacy .card h3 {
    margin-bottom: 0.7em;
}

/* ========================
   TRUST & CTA
======================== */
.trust, .cta {
    padding: 3rem 0;
    text-align: center;
}

.cta {
    background: var(--primary);
    color: white;
}

.cta .btn-primary:hover {
    background: darkred;
}

/* ========================
   FOOTER
======================== */
.footer {
    background: #06042c;
    color: white;
    padding: 3rem 0 1rem;
}

/* Grid com 4 colunas */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer h4 {
    margin-bottom: 1rem;
}

.footer p {
    font-size: 0.9rem;
}

/* Link LinkedIn */
.footer a {
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}