/* FONTE ALOJADA NO PRÓPRIO SITE (sem pedidos ao Google, conforme RGPD) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DESIGN SYSTEM INOVADOR */
:root {
    --primary: #070C2B;
    --primary-light: #101A57;
    --accent: #D8A83C;
    --accent-hover: #C99A3A;
    --white: #ffffff;
    --text-main: #f0f4f8;
    --text-muted: #B9BED6;
    --glass: rgba(16, 26, 87, 0.4);
    --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* TIPOGRAFIA E GRADIENTES */
h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BOTÕES PREMIUM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #070C2B;
    padding: 14px 32px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(216, 168, 60, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 32px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* CABEÇALHO */
.main-header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(7, 12, 43, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 44px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

/* HERO SECTION ASSIMÉTRICA */
.hero-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 90% 10%, #1E2C78 0%, var(--primary) 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust-indicators {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    color: var(--accent);
}

/* COMPOSIÇÃO VISUAL (COLUNA DIREITA) */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    width: 100%;
    max-width: 440px;
    height: 540px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image-frame:hover .hero-main-img {
    transform: scale(1.05);
}

.geometric-shape {
    position: absolute;
    width: 120%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    opacity: 0.08;
    filter: blur(40px);
    z-index: 1;
    transform: rotate(-10deg);
}

/* CARTÃO FLUTUANTE PREMIUM */
.experience-card {
    position: absolute;
    top: 40px;
    left: -30px;
    background: rgba(16, 26, 87, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 28px;
    border-radius: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

/* GRELHA GLASSMORPHISM DE SERVIÇOS */
.services-showcase {
    padding: 60px 0 120px 0;
}

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

.service-premium-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-premium-card:hover {
    background: rgba(16, 26, 87, 0.9);
    border-color: rgba(216, 168, 60, 0.3);
    transform: translateY(-8px);
}

.card-icon-box {
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
}

.service-premium-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-premium-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ANIMAÇÕES */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}


/* Sobre Nós */

/* SECÇÃO SOBRE NÓS - VERSÃO BRANCO PREMIUM */
.about-section.section-white {
    padding: 140px 0;
    background-color: #ffffff; /* Fundo totalmente branco */
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: center;
}

/* COMPOSIÇÃO DE IMAGENS ASSIMÉTRICA */
.about-visual-side {
    position: relative;
    width: 100%;
}

.about-image-collage {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
}

/* Moldura Principal (Traseira) */
.img-frame-main {
    width: 78%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); /* Sombra mais suave para fundo claro */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-img-parallax {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Moldura Secundária (Frente / Flutuante) */
.img-frame-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffffff; /* Moldura branca espessa para destacar da foto de trás */
    z-index: 2;
}

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

/* Distintivo com Efeito Frosted Glass Adaptado para Fundo Claro */
.about-glass-badge {
    position: absolute;
    top: 10px;
    left: -20px;
    width: 64px;
    height: 64px;
    background: rgba(7, 12, 43, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(7, 12, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about-glass-badge .badge-text {
    color: #070C2B; /* Texto escuro no badge */
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.about-visual-side:hover .about-img-parallax {
    transform: scale(1.04);
}

/* CONTEÚDO E TEXTOS ESCUROS */
.about-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #101A57; /* Azul escuro corporativo */
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #070C2B; /* Quase preto para máxima leitura */
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

/* Gradiente Escuro Elegante para o Título */
.text-gradient-dark {
    background: linear-gradient(135deg, #070C2B 40%, #1E2C78 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description p {
    color: #4B5270; /* Cinzento escuro confortável para leitura */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* GRELHA DE MINI CARDS EM FUNDO CLARO */
.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.about-mini-card {
    background: #FFFFFF; /* Fundo cinzento claro texturizado */
    border: 1px solid #E4DCC8; /* Linha de contorno fina */
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-mini-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #101A57; /* Borda destaca-se em azul ao passar o rato */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-icon-wrapper {
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.03);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-text h4 {
    color: #070C2B;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-text p {
    color: #4B5270; /* Cinzento intermédio para descrição menor */
    font-size: 0.85rem;
    line-height: 1.4;
}

/* INFRAESTRUTURA DE ANIMAÇÃO COM CSS (GATILHO VIA JS) */
.reveal-element {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-element.fade-right { transform: translateX(-50px); }
.reveal-element.fade-left { transform: translateX(50px); }

.reveal-element.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* RESPONSIVIDADE ADAPTATIVA */
@media (max-width: 1024px) {
    .about-container { grid-template-columns: 1fr; gap: 60px; }
    .about-image-collage { height: 480px; }
    .img-frame-main { width: 100%; height: 420px; }
    .img-frame-sub { display: none; }
    .about-title { font-size: 2.3rem; }
}

@media (max-width: 640px) {
    .about-cards-grid { grid-template-columns: 1fr; }
    .about-image-collage { height: 320px; }
    .img-frame-main { height: 300px; }
    .about-glass-badge { left: 10px; }
}


/* Nossos Serviços*/

/* ESTILIZAÇÃO THE ENGINEERED GRID (FUNDO CINZENTO-SUAVE ORIGINAL) */
.services-section {
    padding: 140px 0;
    background-color: #FAF7F0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ESTRUTURA DA GRELHA PRINCIPAL EM 3 COLUNAS MESTRAS */
.services-engineered-grid {
    display: grid;
    grid-template-columns: 0.9fr 2fr; /* Coluna da esquerda (Texto+Imagem) e coluna da direita (Grelha de cards) */
    gap: 40px;
    align-items: start;
}

/* COLUNA DA ESQUERDA (MEGA SHOWCASE) */
.services-mega-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.services-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C99A3A; /* Ouro corporativo */
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.services-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #070C2B;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.services-lead {
    color: #4B5270;
    font-size: 1rem;
    line-height: 1.65;
}

/* IMAGEM VERTICAL INTEGRADA */
.services-showcase-image-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1; /* Faz a imagem esticar para acompanhar exatamente a altura dos cartões ao lado */
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.services-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.services-mega-showcase:hover .services-showcase-img {
    transform: scale(1.03);
}

/* Selo flutuante discreto na foto */
.image-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(7, 12, 43, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* SUBGRELHA DA DIREITA (2 COLUNAS X 2 LINHAS PARA OS 4 CARDS) */
.services-cards-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ESTILO DO CARTÃO DE SERVIÇO */
.service-photo-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(7, 12, 43, 0.08);
}

.card-image-box {
    width: 100%;
    height: 160px; /* Ligeiramente menor para equilibrar a proporção da subgrid */
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-body-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-photo-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #070C2B;
    margin-bottom: 10px;
}

.card-desc {
    color: #4B5270;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-list {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid #EFE8D8;
}

.card-list li {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4B5270;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-list li:last-child { margin-bottom: 0; }
.arrow-gold { color: #C99A3A; font-size: 1.2rem; }

/* CLASSES DE ANIMAÇÃO DO SCROLL (JS) */
.id-reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.id-reveal-element.id-fade-right { transform: translateX(-40px); }
.id-reveal-element.id-fade-left { transform: translateX(40px); }
.id-reveal-element.is-visible { opacity: 1; transform: translateX(0) translateY(0); }

/* RESPONSIVIDADE EM CASCATA */
@media (max-width: 1200px) {
    .services-engineered-grid { grid-template-columns: 1fr; gap: 50px; } /* Desfaz a coluna mestre */
    .services-showcase-image-wrapper { height: 300px; min-height: auto; }
}

@media (max-width: 768px) {
    .services-cards-subgrid { grid-template-columns: 1fr; gap: 24px; } /* Cartões ficam em 1 coluna vertical */
    .services-title { font-size: 2.3rem; }
}
/* DESIGN DA SECÇÃO COM ADAPTAÇÃO ASSIMÉTRICA */
.sectors-section {
    padding: 140px 0;
    background-color: #070C2B; /* Preserva o azul-escuro profundo exato da imagem */
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

/* CABEÇALHO EM LAYOUT ASSIMÉTRICO LADO A LADO */
.sectors-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 80px;
    margin-bottom: 80px;
}

.sectors-header-left { flex: 1.2; }
.sectors-header-right { flex: 0.8; }

.sectors-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C99A3A; /* Ouro corporativo */
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.sectors-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1.5px;
}

/* Gradiente de Destaque no Título */
.text-gradient-gold {
    background: linear-gradient(135deg, #ffffff 40%, #C99A3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sectors-lead {
    color: #B9BED6; /* Cinzento suave de alta legibilidade */
    font-size: 1.05rem;
    line-height: 1.7;
}

/* GRELHA DO NOVO LAYOUT (5 COLUNAS MAIS ESPAÇADAS) */
.sectors-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* CARTÃO COM MOLDURA INTELIGENTE */
.sector-premium-card {
    position: relative;
    background-color: rgba(16, 26, 87, 0.35); /* Transparência sutil da imagem original */
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Camada interna do Cartão */
.sector-card-inner {
    padding: 45px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

/* Linha dourada discreta no fundo do cartão que se expande no Hover */
.card-glow-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: all 0.4s ease;
}

/* COMPORTAMENTO INTERATIVO (HOVER) */
.sector-premium-card:hover {
    transform: translateY(-8px);
    background-color: rgba(16, 26, 87, 0.7);
    border-color: rgba(216, 168, 60, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.sector-premium-card:hover .card-glow-border {
    background-color: #C99A3A; /* Ativa a luz dourada inferior */
}

/* Contentor do Ícone */
.sector-icon-wrapper {
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.02);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.sector-premium-card:hover .sector-icon-wrapper {
    transform: scale(1.08);
    background: rgba(216, 168, 60, 0.05);
}

.sector-geo-icon {
    font-size: 1.3rem;
    color: #C99A3A;
    line-height: 1;
}

.sector-card-inner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.sector-card-inner p {
    color: #B9BED6;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ESTRUTURA PARA ANIMAÇÕES VIA JS (COMPATÍVEL COM O ANTERIOR) */
.id-reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.id-reveal-element.id-fade-right { transform: translateX(-40px); }
.id-reveal-element.id-fade-left { transform: translateX(40px); }
.id-reveal-element.is-visible { opacity: 1; transform: translateX(0) translateY(0); }

/* RESPONSIVIDADE EM CASCATA */
@media (max-width: 1200px) {
    .sectors-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 50px; }
    .sectors-title { font-size: 2.8rem; }
    .sectors-premium-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } /* Ajusta para ecrãs médios */
}

@media (max-width: 768px) {
    .sectors-premium-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-title { font-size: 2.3rem; }
}

@media (max-width: 480px) {
    .sectors-premium-grid { grid-template-columns: 1fr; }
    .sector-card-inner { padding: 35px 24px; }
}

/* DESIGN DA GALERIA DE PORTFÓLIO PREMIUM */
.projects-section {
    padding: 140px 0;
    background-color: #ffffff; /* Fundo branco limpo idêntico à imagem de referência */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* CABEÇALHO LADO A LADO */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 70px;
}

.projects-header-left { flex: 1.1; }
.projects-header-right { flex: 0.9; }

.projects-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C99A3A; /* Ouro corporativo */
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.projects-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #070C2B; /* Azul profundo nos títulos escuros */
    letter-spacing: -1px;
}

.projects-lead {
    color: #4B5270;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 500px;
}

/* GRELHA DO NOVO LAYOUT 2X2 */
.projects-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas grandes colunas paralelas */
    gap: 32px; /* Espaçamento generoso e limpo */
}

/* CARTÃO LINK DO PORTFÓLIO */
.project-portfolio-card {
    position: relative;
    height: 440px; /* Altura ideal fixa para dar imponência às fotografias */
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px;
    text-decoration: none; /* Remove sublinhado de link */
    box-shadow: 0 15px 35px rgba(7, 12, 43, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Contentor Protetor da Imagem de Fundo */
.project-image-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Degradê Escuro Inteligente para dar leitura perfeita aos textos brancos */
.project-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 12, 43, 0.2) 0%, rgba(7, 12, 43, 0.85) 90%);
    transition: opacity 0.4s ease;
}

/* TOPO DO CARD: Crachá */
.project-card-header {
    position: relative;
    z-index: 2;
}

.project-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* BASE DO CARD: Conteúdos descritivos */
.project-card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-portfolio-card h3 {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-portfolio-card p {
    color: #D5CCB7; /* Cinzento claro suave legível sobre fundo escuro */
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 440px;
}

/* Link interno decorativo "Ver mais" */
.project-readmore {
    color: #C99A3A;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0; /* Invisível por padrão, aparece apenas no Hover */
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* EFEITOS INTERATIVOS DINÂMICOS (HOVER) */
.project-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(7, 12, 43, 0.2);
}

.project-portfolio-card:hover .project-bg-img {
    transform: scale(1.05); /* Efeito Zoom na fotografia real */
}

.project-portfolio-card:hover .project-badge {
    background: #C99A3A; /* O crachá acende em dourado corporativo */
    border-color: #C99A3A;
    color: #070C2B;
}

.project-portfolio-card:hover .project-readmore {
    opacity: 1; /* Revela o texto de ação */
    transform: translateX(0);
}

/* SISTEMA REVEAL DE ENTRADA (JS) */
.id-reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.id-reveal-element.id-fade-right { transform: translateX(-40px); }
.id-reveal-element.id-fade-left { transform: translateX(40px); }
.id-reveal-element.is-visible { opacity: 1; transform: translateX(0) translateY(0); }

/* RESPONSIVIDADE ADAPTATIVA */
@media (max-width: 1024px) {
    .projects-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 50px; }
    .projects-title { font-size: 2.6rem; }
    .projects-premium-grid { grid-template-columns: 1fr; gap: 24px; } /* Vira 1 coluna vertical completa */
    .project-portfolio-card { height: 380px; }
}

@media (max-width: 640px) {
    .projects-title { font-size: 2.1rem; }
    .project-portfolio-card { height: 340px; padding: 25px; }
    .project-portfolio-card h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   MÓDULO PROTEGIDO: FORMULÁRIO DE PEDIDO DE ORÇAMENTO ELEGANTE
   ========================================================================== */

.borc-section,
.borc-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.borc-section {
    padding: 100px 0;
    background-color: #FAF7F0; /* Fundo cinzento-suave idêntico à imagem de fundo */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.borc-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* CONTENTOR DO CARTÃO PRINCIPAL */
.borc-card-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Divisão assimétrica exata */
    background-color: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(7, 12, 43, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* PAINEL AZUL ESQUERDO */
.borc-info-panel {
    background-color: #101A57; /* Azul escuro profundo e sólido */
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
}

.borc-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #C99A3A; /* Ouro corporativo texturizado */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.borc-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.borc-lead-text {
    color: #B9BED6; /* Cinzento desvanecido para leitura suave */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* LISTA DE ETAPAS */
.borc-steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: auto; /* Alinha os passos na base do painel azul */
}

.borc-step-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.borc-step-number {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Círculo discreto */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B9BED6;
    font-size: 0.85rem;
    font-weight: 600;
}

.borc-step-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* PAINEL DO FORMULÁRIO BRANCO */
.borc-form-panel {
    padding: 60px 50px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.borc-form {
    width: 100%;
}

.borc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Alinhamento lado a lado perfeito */
    gap: 24px;
    margin-bottom: 24px;
}

/* GRUPOS DE CAMPOS */
.borc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.borc-form-group.borc-full-width {
    grid-column: span 2;
    margin-bottom: 30px;
}

.borc-form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #070C2B; /* Títulos dos campos escuros */
}

.borc-form-group input,
.borc-form-group select,
.borc-form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: #ffffff;
    border: 1px solid #E4DCC8; /* Borda cinzenta suave arredondada */
    border-radius: 12px;
    color: #070C2B;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Estados de foco e escrita */
.borc-form-group input:focus,
.borc-form-group select:focus,
.borc-form-group textarea:focus {
    outline: none;
    border-color: #101A57;
    box-shadow: 0 0 0 3px rgba(16, 26, 87, 0.04);
}

/* Customização sutil do select */
.borc-select-wrapper {
    position: relative;
    width: 100%;
}

.borc-form-group textarea {
    resize: vertical;
}

/* BOTÃO DE SUBMISSÃO E TEXTO DE CONSENTIMENTO */
.borc-form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.borc-submit-btn {
    background-color: #C99A3A; /* Tom ouro idêntico ao botão */
    color: #070C2B;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.borc-submit-btn:hover {
    background-color: #B8903C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(216, 168, 60, 0.2);
}

.borc-disclaimer {
    color: #B9BED6; /* Texto explicativo em cinzento claro inferior */
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 500;
}

/* ALERTAS SUCESSO / ERRO */
.borc-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.borc-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.borc-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* RESPONSIVIDADE COMPLETA */
@media (max-width: 992px) {
    .borc-card-wrapper {
        grid-template-columns: 1fr; /* Empilha os blocos verticalmente em ecrãs menores */
    }
    
    .borc-info-panel {
        padding: 50px 35px;
    }
    
    .borc-lead-text {
        margin-bottom: 35px;
    }
    
    .borc-form-panel {
        padding: 50px 35px;
    }
}

@media (max-width: 640px) {
    .borc-form-grid {
        grid-template-columns: 1fr; /* Inputs passam de 2 colunas para lista vertical única no telemóvel */
    }
    
    .borc-form-group.borc-full-width {
        grid-column: span 1;
    }
    
    .borc-main-title {
        font-size: 2.1rem;
    }
    
    .borc-submit-btn {
        width: 100%; /* Botão expande-se a 100% da largura em telemóveis para facilitar o clique */
    }
}
/* ==========================================================================
   MÓDULO PROTEGIDO: SECÇÃO DE CONTACTOS PREMIUM
   ========================================================================== */

.cttc-section,
.cttc-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cttc-section {
    padding: 120px 0;
    background-color: #ffffff; /* Fundo puramente branco como na imagem */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cttc-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* GRELHA MESTRE (DIVISÃO DO TOPO) */
.cttc-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Lado esquerdo de texto e lado direito de cartões */
    gap: 80px;
    align-items: flex-start;
}

/* COLUNA DA ESQUERDA (TEXTOS) */
.cttc-text-side {
    max-width: 460px;
}

.cttc-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C99A3A; /* Ouro corporativo rigoroso */
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

.cttc-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #070C2B; /* Azul escuro profundo */
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.cttc-lead {
    color: #4B5270; /* Cinzento médio suave confortável */
    font-size: 1.05rem;
    line-height: 1.65;
}

/* COLUNA DA DIREITA (GRELHA INTERNA DOS CARTÕES) */
.cttc-cards-side {
    width: 100%;
}

.cttc-cards-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide os cartões superiores lado a lado */
    gap: 24px;
}

/* CARTÃO PADRÃO CLARO (TELEFONE & E-MAIL) */
.cttc-info-card {
    background-color: #FFFFFF; /* Fundo cinzento ultra-claro sutil */
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #E4DCC8;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.cttc-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 12, 43, 0.05);
}

/* Contentor do Ícone */
.cttc-icon-box {
    margin-bottom: 28px;
    display: inline-flex;
}

.cttc-geo-icon {
    font-size: 1.2rem;
    color: #C99A3A; /* Ícones geométricos em tom ouro */
    line-height: 1;
}

.cttc-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #B9BED6; /* Etiqueta superior cinzenta */
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cttc-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #070C2B;
    text-decoration: none; /* Remove sublinhado de link */
    transition: color 0.2s ease;
}

.cttc-card-value:hover {
    color: #C99A3A; /* Efeito interativo link dourado */
}

/* CARTÃO ESCURO (ÁREA DE INTERVENÇÃO) */
.cttc-info-card.cttc-card-dark {
    grid-column: span 2; /* Ocupa as duas colunas inteiras da grelha de baixo */
    background-color: #070C2B; /* Azul escuro profundo e sólido como na imagem */
    border-color: rgba(255, 255, 255, 0.02);
    padding: 40px;
}

.cttc-info-card.cttc-card-dark:hover {
    box-shadow: 0 25px 50px rgba(7, 12, 43, 0.2);
}

.cttc-card-value-static {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff; /* Texto do país puramente branco */
    margin-bottom: 12px;
}

.cttc-card-desc {
    color: #B9BED6; /* Descrição explicativa clara sobre fundo escuro */
    font-size: 0.9rem;
    line-height: 1.5;
}

/* RESPONSIVIDADE ADAPTATIVA EM CASCATA */
@media (max-width: 1024px) {
    .cttc-main-grid {
        grid-template-columns: 1fr; /* Desfaz as duas grandes colunas em tablets/telemóveis */
        gap: 50px;
    }
    
    .cttc-text-side {
        max-width: 100%;
        text-align: center; /* Centraliza o texto explicativo em ecrãs móveis */
    }
    
    .cttc-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .cttc-cards-subgrid {
        grid-template-columns: 1fr; /* Transforma os cartões superiores em lista vertical única no telemóvel */
        gap: 20px;
    }
    
    .cttc-info-card.cttc-card-dark {
        grid-column: span 1; /* Ocupa largura simples adaptada à nova coluna única */
    }
    
    .cttc-title {
        font-size: 2.3rem;
    }
    
    .cttc-info-card {
        padding: 30px 24px;
    }
}

/* APRESENTAÇÃO DO PROJETO 01 NA GALERIA */

/* ==========================================================================
   MÓDULO ISOLADO: APRESENTAÇÃO DE PROJETO (NÃO AFETA CABEÇALHO/FOOTER)
   ========================================================================== */

/* Limpeza de margens exclusiva para este bloco */
.pdet-section, 
.pdet-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pdet-section { 
    padding: 80px 0 120px 0; 
    background-color: #ffffff;
}

/* CONTAINER COMPATÍVEL COM O SEU SITE */
.pdet-container { 
    width: 92%; 
    max-width: 1240px; 
    margin: 0 auto; 
}

/* BOTÃO VOLTAR */
.pdet-btn-back { 
    display: inline-block; 
    color: #4B5270; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem; 
    margin-bottom: 30px; 
    transition: color 0.3s ease; 
}

.pdet-btn-back:hover { 
    color: #070C2B; /* Cor de foco escura */
}

/* HEADER INTERNO DO PROJETO */
.pdet-header { 
    margin-bottom: 50px; 
}

.pdet-cat-tag { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #C99A3A; /* Dourado do projeto */
    letter-spacing: 2px; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 12px; 
}

.pdet-main-title { 
    font-size: 2.8rem; 
    font-weight: 800; 
    color: #070C2B; 
    letter-spacing: -1px; 
    line-height: 1.2;
}

/* GRELHA EM DUAS COLUNAS ASIMÉTRICAS */
.pdet-layout-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 60px; 
    align-items: start; 
}

/* Sem isto, a galeria horizontal estica a grelha e a página fica mais larga do que o telemóvel */
.pdet-layout-grid > * { min-width: 0; }

.pdet-narrative-text h3 { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: #070C2B; 
    margin-bottom: 12px; 
    margin-top: 30px; 
}

.pdet-narrative-text h3:first-child { 
    margin-top: 0; 
}

.pdet-narrative-text p { 
    color: #4B5270; 
    font-size: 1.05rem; 
    margin-bottom: 20px; 
    line-height: 1.6;
}

/* CARROSSEL HORIZONTAL DE 20 MINIATURAS */
.pdet-gallery-wrapper {
    margin-top: 50px;
    width: 100%;
}

.pdet-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; 
}

/* Estilização da barra de scroll inferior */
.pdet-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.pdet-scroll-container::-webkit-scrollbar-track {
    background: #EFE8D8;
    border-radius: 10px;
}
.pdet-scroll-container::-webkit-scrollbar-thumb {
    background: #D5CCB7;
    border-radius: 10px;
}
.pdet-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #B9BED6;
}

/* MINIATURA INDIVIDUAL (140X140PX FIXOS) */
.pdet-thumb-item {
    flex: 0 0 140px; 
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(7, 12, 43, 0.04);
    border: 1px solid #E4DCC8;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.pdet-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pdet-thumb-item:hover {
    transform: translateY(-4px);
    border-color: #C99A3A;
}

.pdet-thumb-item:hover img {
    transform: scale(1.04);
}

.pdet-scroll-indicator {
    text-align: center;
    margin-top: 14px;
}

.pdet-indicator-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #B9BED6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* FICHA TÉCNICA LATERAL (STICKY) */
.pdet-sidebar-specs { 
    position: sticky; 
    top: 120px; /* Ajuste este valor baseado na altura do seu cabeçalho fixo */
}

.pdet-specs-card { 
    background-color: #FFFFFF; 
    border-radius: 24px; 
    padding: 40px 30px; 
    border: 1px solid #E4DCC8; 
}

.pdet-specs-card h4 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #070C2B; 
    margin-bottom: 24px; 
}

.pdet-spec-row { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    padding: 16px 0; 
    border-bottom: 1px solid #E4DCC8; 
}

.pdet-spec-row:last-of-type { 
    border-bottom: none; 
    margin-bottom: 15px; 
}

.pdet-label { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #B9BED6; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.pdet-value { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: #070C2B; 
}

.pdet-gold-text { 
    color: #87650F; 
}

.pdet-btn-cta { 
    display: block; 
    width: 100%; 
    background-color: #070C2B; 
    color: #ffffff; 
    text-decoration: none; 
    padding: 16px; 
    border-radius: 50px; 
    text-align: center; 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin-top: 15px; 
    transition: all 0.3s ease; 
}

.pdet-btn-cta:hover { 
    background-color: #1E2C78; 
    transform: translateY(-2px); 
}

/* SISTEMA LIGHTBOX (MODAL PRETO COMPLETO) */
.pdet-lightbox { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(7, 12, 43, 0.98); 
    z-index: 9999; /* Fica acima de qualquer cabeçalho fixo */
    display: none; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.pdet-lightbox.pdet-active { 
    display: flex; 
    opacity: 1; 
}

.pdet-lightbox-box { 
    max-width: 85%; 
    max-height: 80%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative; 
}

.pdet-lightbox-box img { 
    max-width: 100%; 
    max-height: 75vh; 
    border-radius: 8px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    object-fit: contain; 
}

.pdet-lightbox-caption { 
    color: #D5CCB7; 
    font-size: 0.95rem; 
    margin-top: 15px; 
    text-align: center; 
    font-family: sans-serif;
}

.pdet-lightbox-close { 
    position: absolute; 
    top: 40px; 
    right: 40px; 
    background: none; 
    border: none; 
    color: #ffffff; 
    font-size: 3rem; 
    cursor: pointer; 
    line-height: 1; 
    transition: color 0.2s; 
}

.pdet-lightbox-close:hover { 
    color: #C99A3A; 
}

/* RESPONSIVIDADE EM CASCATA */
@media (max-width: 1024px) {
    .pdet-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .pdet-sidebar-specs { position: relative; top: 0; }
    .pdet-main-title { font-size: 2.3rem; }
}

@media (max-width: 640px) {
    .pdet-thumb-item { flex: 0 0 110px; height: 110px; }
    .pdet-lightbox-close { top: 20px; right: 20px; font-size: 2.5rem; }
}

/* RODAPÉ */
.main-footer {
    background-color: #050920;
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 24px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-container h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-nav a, .footer-contacts a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 14px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-nav a:hover, .footer-contacts a:hover {
    color: var(--white);
}

.footer-contacts .gold-link {
    color: var(--accent);
}

.footer-credits {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
}

/* RESPONSIVIDADE EXTREMA */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero-container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust-indicators { justify-content: center; }
    .services-glass-grid { grid-template-columns: 1fr 1fr; }
    .hero-image-frame { height: 460px; }
    .experience-card { left: 20px; }
}

@media (max-width: 640px) {
    h1 { font-size: 2.3rem; }
    .services-glass-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}

/* ==========================================================================
   AJUSTES GLOBAIS: CABEÇALHO, MENU MOBILE, FORMULÁRIO E PÁGINAS LEGAIS
   ========================================================================== */

/* Cabeçalho compacto ao fazer scroll (classe aplicada pelo JS) */
.main-header {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.main-header.is-scrolled {
    padding: 16px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Âncoras não ficam escondidas por baixo do cabeçalho fixo */
[id] {
    scroll-margin-top: 110px;
}

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botão do menu mobile (escondido no desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Ícones SVG ajustam-se ao tamanho das caixas existentes */
.icon-wrapper, .card-icon-wrapper, .trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.card-icon-wrapper {
    color: #101A57;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 12px 4%;
        background: rgba(7, 12, 43, 0.98);
        border-bottom: 1px solid var(--glass-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

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

    .nav-menu .nav-link {
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu .nav-link:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
    .header-cta { display: none; }
}

/* Formulário: campo anti-spam e consentimento */
.borc-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.borc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    color: #4B5270;
    font-size: 0.82rem;
    line-height: 1.5;
    cursor: pointer;
}

.borc-consent input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #C99A3A;
}

.borc-consent a {
    color: #101A57;
    font-weight: 600;
}

.borc-submit-btn:disabled {
    cursor: wait;
}

/* Rodapé: ligações legais */
.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-legal span {
    margin: 0 8px;
}

/* Página de Política de Privacidade */
.legal-section {
    padding: 170px 0 100px;
    background: #FAF7F0;
    color: #3F4566;
}

.legal-container {
    max-width: 820px;
}

.legal-subtitle {
    color: #b8901f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.legal-title {
    color: #070C2B;
    font-size: 2.6rem;
    margin: 12px 0 40px;
}

.legal-section h2 {
    color: #070C2B;
    font-size: 1.2rem;
    margin: 32px 0 10px;
}

.legal-section p {
    line-height: 1.75;
}

.legal-section a {
    color: #101A57;
    font-weight: 600;
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-element, .id-reveal-element {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Primeira secção das subpáginas começa abaixo do cabeçalho fixo */
.main-header + .borc-section { padding-top: 160px; }
.main-header + .pdet-section { padding-top: 140px; }

/* ==========================================================================
   BOTÕES UNIFORMES E NOVAS SECÇÕES
   ========================================================================== */

/* Todos os botões alinham texto e ícone da mesma forma */
.btn, .pdet-btn-cta, .borc-submit-btn {
    gap: 10px;
}

.btn svg, .pdet-btn-cta svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn:hover svg, .pdet-btn-cta:hover svg {
    transform: translateX(3px);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1rem;
}

.btn-dark {
    background-color: #070C2B;
    color: var(--white);
    padding: 14px 30px;
}

.btn-dark:hover {
    background-color: #1E2C78;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(7, 12, 43, 0.25);
}

.btn-outline-dark {
    background: transparent;
    color: #070C2B;
    border: 1.5px solid rgba(7, 12, 43, 0.35);
    padding: 14px 30px;
}

.btn-outline-dark:hover {
    border-color: #070C2B;
    background: rgba(7, 12, 43, 0.06);
    transform: translateY(-3px);
}

.pdet-btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cartões de projeto sem página de detalhe não fingem ser clicáveis */
.project-portfolio-card.is-static {
    cursor: default;
}

/* Em ecrãs táteis não há "hover": mostrar sempre a ligação do projeto */
@media (hover: none) {
    .project-readmore {
        opacity: 1;
        transform: none;
    }
}

/* Ícones SVG nos cartões de contacto e setores */
.cttc-geo-icon, .sector-geo-icon {
    display: inline-flex;
    font-size: 1.4rem;
}

/* Pré-visualização de projetos na página inicial */
.projects-preview {
    background-color: #FAF7F0;
}

.projects-preview .projects-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Números da empresa */
.stats-section {
    padding: 70px 0;
    background: var(--primary-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testemunhos */
.testimonials-section {
    padding: 120px 0;
    background: var(--primary);
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-quote {
    color: var(--accent);
    font-size: 2rem;
    display: inline-flex;
}

.testimonial-card blockquote {
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.7;
    flex: 1;
}

.testimonial-card figcaption strong {
    display: block;
    color: var(--white);
}

.testimonial-card figcaption span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Faixa de marcas e certificações */
.trust-strip {
    padding: 50px 0;
    background: #ffffff;
    border-top: 1px solid #E4DCC8;
}

.trust-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trust-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

.trust-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #B9BED6;
    min-width: 190px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #FAF7F0;
    color: #101A57;
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-brand {
    color: #3F4566;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

/* Chamada para ação final */
.cta-band {
    background: linear-gradient(135deg, var(--accent) 0%, #C99A3A 100%);
    padding: 80px 0;
    color: #070C2B;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-band h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.cta-band p {
    font-size: 1.05rem;
    color: rgba(7, 12, 43, 0.75);
    max-width: 560px;
}

.cta-band-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .cta-band h2 { font-size: 1.8rem; }
    .section-heading { font-size: 1.9rem; }
}

@media (max-width: 640px) {
    .cta-band-actions { flex-direction: column; width: 100%; }
    .trust-group-label { min-width: 100%; }
}

/* Contacto direto no painel do formulário */
.borc-quick-contacts {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.borc-quick-label {
    color: #B9BED6;
    font-size: 0.8rem;
    font-weight: 600;
}

.borc-quick-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.borc-quick-contacts a svg {
    color: #C99A3A;
    font-size: 1.1rem;
}

.borc-quick-contacts a:hover {
    color: #C99A3A;
}

/* Zonas de intervenção */
.cttc-zones {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.cttc-zones li {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E4DCC8;
    font-size: 0.85rem;
}

/* Redes sociais no rodapé */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.footer-social a {
    display: inline;
    margin-bottom: 0;
}

/* Botão flutuante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

@media (max-width: 640px) {
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.7rem; }
}

/* Página 404 */
.notfound-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    text-align: center;
}

.notfound-inner {
    max-width: 640px;
}

.notfound-code {
    display: block;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 20px;
}

.notfound-section h1 {
    font-size: 2.4rem;
}

.notfound-section p {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   NÍVEL PREMIUM: TIPOGRAFIA FLUIDA, ACESSIBILIDADE E RESPONSIVE
   ========================================================================== */

:root {
    --gold-text: #87650f;      /* Dourado legível sobre fundos claros (contraste 5,4:1) */
    --muted-light: #4B5270;    /* Cinzento legível sobre fundos claros (contraste 5,4:1) */
    --section-y: clamp(72px, 9vw, 140px);
    --radius-lg: 24px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--accent);
    color: #070C2B;
}

/* Foco visível para quem navega com teclado */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--accent);
    color: #070C2B;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* --- Cabeçalho --- */
.logo-img { height: 44px; width: auto; }
.footer-logo { height: 52px; width: auto; }

.nav-link {
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-menu-cta { display: none; }

/* --- Tipografia fluida (adapta-se a qualquer largura de ecrã) --- */
.hero-content h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.about-title, .services-title, .borc-main-title, .pdet-main-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sectors-title, .cttc-title, .projects-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-heading { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; }

/* --- Espaçamento vertical fluido e consistente --- */
.about-section.section-white,
.services-section,
.sectors-section,
.projects-section,
.cttc-section,
.process-section,
.values-section,
.testimonials-section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.borc-section { padding: var(--section-y) 0; }

/* A primeira secção do projeto começa abaixo do cabeçalho fixo */
#conteudo + .pdet-section { padding-top: 140px; }

/* --- Contraste corrigido (WCAG AA) --- */
.services-subtitle, .projects-subtitle, .cttc-subtitle, .pdet-cat-tag,
.legal-subtitle, .about-subtitle, .projects-preview .projects-subtitle {
    color: var(--gold-text);
}

.process-section .section-kicker, .values-section .section-kicker {
    color: var(--gold-text);
}

.cttc-card-label, .pdet-label, .pdet-indicator-text, .trust-group-label, .card-text p {
    color: var(--muted-light);
}

.footer-credits, .footer-credits p {
    color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.cttc-card-value {
    overflow-wrap: anywhere;
}

/* --- Cabeçalho das subpáginas --- */
.page-hero {
    position: relative;
    padding: clamp(140px, 16vw, 190px) 0 clamp(56px, 7vw, 96px);
    background:
        radial-gradient(circle at 85% 0%, rgba(216, 168, 60, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 100%, #1E2C78 0%, transparent 55%),
        var(--primary);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.page-hero-inner {
    max-width: 1240px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

.page-hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 18px;
}

.page-hero-title {
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 22px;
}

.page-hero-lead {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    max-width: 640px;
}

/* --- Página inicial --- */
.about-more {
    margin-top: 36px;
}

/* --- Sobre: como trabalhamos --- */
.process-section {
    background: #FAF7F0;
    color: #070C2B;
}

.section-intro {
    max-width: 640px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.process-section .section-heading, .values-section .section-heading {
    color: #070C2B;
    margin-bottom: 16px;
}

.section-lead {
    color: var(--muted-light);
    font-size: 1.05rem;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: passos;
}

.process-step {
    position: relative;
    background: #ffffff;
    border: 1px solid #E4DCC8;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(135, 101, 15, 0.35);
    box-shadow: 0 20px 40px rgba(7, 12, 43, 0.08);
}

.process-number {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #EFE8D8;
}

.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #070C2B;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--muted-light);
    font-size: 0.93rem;
}

/* --- Sobre: valores --- */
.values-section {
    background: #ffffff;
    color: #070C2B;
}

.values-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.values-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    box-shadow: 0 30px 60px rgba(7, 12, 43, 0.12);
}

.values-list {
    display: grid;
    gap: 18px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid #E4DCC8;
    background: #FFFFFF;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.value-item:hover {
    background: #ffffff;
    border-color: #101A57;
}

.value-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(216, 168, 60, 0.16);
    color: var(--gold-text);
    font-size: 1.2rem;
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.value-item p {
    color: var(--muted-light);
    font-size: 0.95rem;
}

/* --- Barra de ações no telemóvel --- */
.mobile-actions { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .values-grid { grid-template-columns: 1fr; }
    .values-img { height: 300px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-about { grid-column: 1 / -1; }
    .experience-card { left: 12px; top: 20px; }
}

@media (max-width: 900px) {
    /* Menu mobile ocupa o ecrã abaixo do cabeçalho */
    .nav-menu {
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        padding: 24px 6% 40px;
        overflow-y: auto;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        padding: 18px 0;
        color: var(--text-main);
    }

    .nav-menu .nav-link::after { display: none; }
    .nav-menu .nav-link.active { color: var(--accent); }

    body.menu-open { overflow: hidden; }

    .nav-menu-cta {
        display: inline-flex;
        margin-top: 28px;
        align-self: stretch;
        padding: 16px 28px;
    }

    .main-header { padding: 16px 0; }
    .main-header.is-scrolled { padding: 12px 0; }
    .logo-img { height: 40px; }
}

@media (max-width: 768px) {
    /* Barra fixa com as três ações principais; substitui o botão flutuante */
    .mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(7, 12, 43, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--glass-border);
    }

    .mobile-actions a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 52px;
        border-radius: 14px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-actions a svg { font-size: 1.25rem; color: var(--accent); }
    .mobile-actions .mobile-actions-primary { background: var(--accent); color: #070C2B; }
    .mobile-actions .mobile-actions-primary svg { color: #070C2B; }

    .whatsapp-float { display: none; }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

    /* Serviços da página inicial em grelha 2x2 compacta */
    .services-glass-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .service-premium-card { padding: 26px 20px; border-radius: 20px; }
    .card-icon-box { margin-bottom: 18px; width: 44px; height: 44px; }
    .service-premium-card h3 { font-size: 1.05rem; }
    .service-premium-card p { font-size: 0.85rem; }
    .services-showcase { padding: 32px 0 72px; }

    .services-cards-subgrid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .card-image-box { height: 130px; }
    .card-body-content { padding: 20px 18px; }

    .hero-image-frame { height: clamp(320px, 90vw, 420px); }
    .hero-section { padding: 130px 0 70px; }
    .exp-number { font-size: 2rem; }
    .experience-card { padding: 14px 20px; border-radius: 18px; }

    .borc-info-panel, .borc-form-panel { padding: 36px 24px; }
    .borc-card-wrapper { border-radius: 24px; }
    .cttc-text-side { text-align: left; }
}

@media (max-width: 640px) {
    .process-steps { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .cta-band { padding: 56px 0; }
    .page-hero-title { letter-spacing: -0.8px; }
    .about-more { width: 100%; }
    .projects-preview .projects-header-right { align-items: stretch; }
    .hero-trust-indicators { flex-direction: column; align-items: center; gap: 12px; }
    .sectors-premium-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .sector-card-inner { padding: 28px 20px; }
    .sector-icon-wrapper { margin-bottom: 20px; }
    .value-item { padding: 22px 20px; }
}

@media (max-width: 480px) {
    .services-cards-subgrid { grid-template-columns: 1fr; }
    .card-image-box { height: 170px; }
}

@media (max-width: 340px) {
    .services-glass-grid, .sectors-premium-grid { grid-template-columns: 1fr; }
}

/* Em ecrãs táteis não há "hover": evita cartões presos no estado elevado */
@media (hover: none) {
    .service-premium-card:hover, .service-photo-card:hover, .sector-premium-card:hover,
    .project-portfolio-card:hover, .process-step:hover, .about-mini-card:hover {
        transform: none;
    }
}

/* No telemóvel as animações de entrada sobem em vez de deslizar de lado
   (deslizar na horizontal empurra o conteúdo para fora do ecrã estreito) */
@media (max-width: 768px) {
    .reveal-element.fade-right, .reveal-element.fade-left,
    .id-reveal-element.id-fade-right, .id-reveal-element.id-fade-left {
        transform: translateY(28px);
    }
}

/* ==========================================================================
   SELO REAL — identidade derivada do logótipo (azul real + ouro metálico)
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/playfair-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/playfair-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #070C2B;
    --royal: #101A57;
    --royal-mid: #1E2C78;
    --gold: #D8A83C;
    --gold-light: #E7C766;
    --gold-grad: linear-gradient(135deg, #C99A3A 0%, #F0D86C 50%, #D8A83C 100%);
    --ivory: #FAF7F0;
    --line: #E4DCC8;
    --slate: #4B5270;
    --on-dark: #B9BED6;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --radius: 14px;
}

/* --- Títulos em serifa clássica, como o monograma EZ --- */
h1, h2, .page-hero-title, .about-title, .services-title, .sectors-title, .projects-title,
.cttc-title, .borc-main-title, .pdet-main-title, .section-heading, .cta-band h2,
.service-premium-card h3, .service-photo-card h3, .sector-card-inner h3, .project-portfolio-card h3,
.process-step h3, .value-item h3, .notfound-section h1, .legal-section h2 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.process-number, .stat-value, .exp-number, .notfound-code, .seal-mono {
    font-family: var(--serif);
}

/* Destaques dos títulos: itálico dourado em vez de gradiente */
.text-gradient, .text-gradient-gold {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--gold-light);
    font-style: italic;
}

.text-gradient-dark {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--royal);
    font-style: italic;
}

/* --- Botões: cantos arquitetónicos e ouro metálico --- */
.btn, .borc-submit-btn, .pdet-btn-cta, .nav-menu-cta {
    border-radius: 12px;
}

.btn-primary, .borc-submit-btn, .nav-menu-cta {
    background: var(--gold-grad);
    color: var(--ink);
    font-weight: 700;
}

.btn-primary:hover, .borc-submit-btn:hover {
    background: var(--gold-grad);
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(216, 168, 60, 0.28);
}

.btn-secondary {
    border: 1px solid rgba(250, 247, 240, 0.4);
    color: var(--ivory);
}

.btn-dark { background: var(--royal); }
.btn-dark:hover { background: var(--royal-mid); }
.btn-outline-dark { border-color: var(--royal); color: var(--royal); }

/* --- Cabeçalho --- */
.main-header {
    background: rgba(7, 12, 43, 0.9);
    border-bottom: 1px solid rgba(216, 168, 60, 0.22);
}

/* --- Página inicial: fotografia com véu leve (a foto fica visível) --- */
.hero-seal {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    padding: clamp(150px, 15vw, 200px) 0 clamp(90px, 10vw, 140px);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 12, 43, 0.9) 0%, rgba(7, 12, 43, 0.72) 42%, rgba(16, 26, 87, 0.28) 72%, rgba(16, 26, 87, 0.12) 100%);
}

.hero-seal .hero-container {
    position: relative;
    z-index: 1;
    grid-template-columns: 1.25fr 0.75fr;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 26px;
}

.kicker-line {
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.hero-seal h1 {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.05;
    color: var(--ivory);
    max-width: 760px;
}

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

.hero-seal .hero-lead {
    color: #D9DCEA;
    margin-left: 0;
    text-shadow: 0 1px 12px rgba(7, 12, 43, 0.4);
}

.hero-seal .hero-actions { justify-content: flex-start; }

.hero-seal .hero-trust-indicators {
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(216, 168, 60, 0.28);
    justify-content: flex-start;
}

.trust-item { color: var(--ivory); font-size: 0.95rem; }

.trust-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Selo dourado com anéis, inspirado no círculo do logótipo */
.hero-seal-badge {
    display: flex;
    justify-content: center;
}

.seal-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(216, 168, 60, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-inner {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(216, 168, 60, 0.35);
    background: rgba(16, 26, 87, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.seal-mono {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-light);
}

.seal-caption {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--on-dark);
}

/* --- Cabeçalhos das subpáginas com fotografia semitransparente --- */
.page-hero.has-photo {
    background: var(--ink);
}

.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.page-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 12, 43, 0.88) 0%, rgba(7, 12, 43, 0.66) 45%, rgba(16, 26, 87, 0.25) 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-lead { color: #D9DCEA; }
.breadcrumb, .breadcrumb a { color: #D0D3E4; }

/* --- Secções claras em marfim, títulos em tinta --- */
.section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-text);
    margin-bottom: 14px;
}

.testimonials-section .section-kicker { color: var(--gold); }

.section-row-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 40px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.section-row-head .section-heading {
    margin-bottom: 0;
    max-width: 640px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--royal);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold-text);
}

.link-arrow:hover { color: var(--gold-text); }

/* --- Serviços da página inicial: cartões com fotografia --- */
.services-showcase {
    background: var(--ivory);
    color: var(--ink);
    padding: var(--section-y) 0;
}

.services-showcase .section-heading { color: var(--ink); }

.services-showcase .services-glass-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-showcase .service-premium-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: none;
    color: var(--ink);
    text-decoration: none;
}

.services-showcase .service-premium-card:hover {
    background: #FFFFFF;
    border-color: rgba(216, 168, 60, 0.6);
    box-shadow: 0 24px 50px rgba(7, 12, 43, 0.1);
}

.service-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.service-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services-showcase .service-premium-card h3 {
    font-size: 1.45rem;
    margin: 0;
    color: var(--ink);
}

.services-showcase .service-premium-card p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Cartões e ícones em anel dourado --- */
.card-icon-wrapper, .process-icon, .value-icon, .sector-icon-wrapper, .cttc-icon-box {
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
}

.card-icon-wrapper, .value-icon { color: var(--gold-text); }
.cttc-icon-box { width: 48px; height: 48px; align-items: center; justify-content: center; }

.about-mini-card, .value-item, .service-photo-card, .cttc-info-card, .pdet-specs-card {
    border-radius: var(--radius);
}

.about-mini-card:hover, .value-item:hover { border-color: var(--gold); }

.img-frame-main, .img-frame-sub, .values-img, .services-showcase-image-wrapper,
.project-portfolio-card, .borc-card-wrapper, .sector-premium-card, .testimonial-card {
    border-radius: var(--radius);
}

/* --- Projetos (página inicial) em azul real --- */
.projects-preview {
    background: var(--royal);
}

.projects-preview .projects-title { color: var(--ivory); }
.projects-preview .projects-subtitle { color: var(--gold); }
.projects-preview .projects-lead { color: var(--on-dark); }
.projects-preview .btn-dark {
    background: transparent;
    border: 1px solid rgba(250, 247, 240, 0.4);
}
.projects-preview .btn-dark:hover { border-color: var(--gold); }
.project-badge { border-radius: 8px; }
.project-portfolio-card:hover .project-badge { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Fotografias dos projetos mais visíveis: véu só na parte do texto */
.project-dark-overlay {
    background: linear-gradient(180deg, rgba(7, 12, 43, 0) 30%, rgba(7, 12, 43, 0.35) 55%, rgba(7, 12, 43, 0.9) 100%);
}

/* --- Sobre: processo em azul real com numeração dourada --- */
.process-section { background: var(--royal); color: var(--ivory); }
.process-section .section-heading { color: var(--ivory); }
.process-section .section-kicker { color: var(--gold); }
.process-section .section-lead { color: var(--on-dark); }

.process-step {
    background: rgba(250, 247, 240, 0.04);
    border: 1px solid rgba(216, 168, 60, 0.25);
}

.process-step:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(7, 12, 43, 0.35);
}

.process-step h3 { color: var(--ivory); }
.process-step p { color: var(--on-dark); }
.process-number { color: var(--gold-light); font-size: 2.4rem; font-weight: 600; }
.process-icon { color: var(--gold); }

/* --- Setores (serviços) --- */
.sectors-section { background: var(--royal); }
.sector-premium-card { background: rgba(250, 247, 240, 0.04); border-color: rgba(216, 168, 60, 0.18); }
.sector-premium-card:hover { background: rgba(250, 247, 240, 0.07); }
.sectors-subtitle, .services-subtitle { letter-spacing: 3px; }

/* --- Chamada final em tinta com filete dourado --- */
.cta-band {
    background: var(--ink);
    color: var(--ivory);
    border-top: 1px solid rgba(216, 168, 60, 0.3);
}

.cta-band h2 { color: var(--ivory); }
.cta-band p { color: var(--on-dark); }

/* --- Formulário e contactos --- */
.borc-section, .cttc-section { background: var(--ivory); }
.borc-info-panel { background: var(--royal); }
.borc-step-number { border-color: rgba(216, 168, 60, 0.5); color: var(--gold); }
.cttc-info-card { background: #FFFFFF; }
.cttc-info-card.cttc-card-dark { background: var(--royal); }

/* --- Rodapé --- */
.main-footer {
    background: var(--ink);
    border-top: 1px solid rgba(216, 168, 60, 0.25);
}

.footer-container h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Barra de ações no telemóvel --- */
.mobile-actions .mobile-actions-primary { background: var(--gold-grad); }
.mobile-actions { border-top-color: rgba(216, 168, 60, 0.3); }

/* --- Responsive do Selo Real --- */
@media (max-width: 1024px) {
    .hero-seal .hero-container { grid-template-columns: 1fr; text-align: left; }
    .hero-seal-badge { display: none; }
    .services-showcase .services-glass-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* No telemóvel o texto ocupa a largura toda: véu vertical, foto visível em cima */
    .hero-veil {
        background: linear-gradient(180deg, rgba(7, 12, 43, 0.45) 0%, rgba(7, 12, 43, 0.78) 45%, rgba(7, 12, 43, 0.92) 100%);
    }
    .page-hero-veil {
        background: linear-gradient(180deg, rgba(7, 12, 43, 0.55) 0%, rgba(7, 12, 43, 0.85) 100%);
    }
    .hero-seal { padding: 130px 0 70px; }
    .hero-seal .hero-actions { flex-direction: column; }
    .hero-seal .hero-trust-indicators { flex-direction: column; align-items: flex-start; }
    .services-showcase .services-glass-grid { gap: 14px; }
    .services-showcase .service-premium-card { padding: 0; border-radius: 12px; }
    .service-card-img { height: 120px; }
    .service-card-body { padding: 16px 14px 18px; }
    .services-showcase .service-premium-card h3 { font-size: 1.15rem; }
    .services-showcase .service-premium-card p { font-size: 0.85rem; }
}

@media (max-width: 340px) {
    .services-showcase .services-glass-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MARFIM REAL (versão B) — site claro; o azul só em blocos contidos,
   como o círculo azul do logótipo rodeado de dourado
   ========================================================================== */

body {
    background: var(--ivory);
    color: var(--ink);
}

/* --- Cabeçalho claro com o nome da marca --- */
.main-header {
    background: rgba(250, 247, 240, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.main-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(7, 12, 43, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img { height: 52px; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text strong {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--royal);
}

.logo-text span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--gold-text);
}

.nav-link { color: var(--slate); }
.nav-link:hover, .nav-link.active { color: var(--royal); }
.nav-link.active { font-weight: 700; }

.header-cta {
    background: var(--royal);
    color: var(--ivory);
}

.header-cta:hover {
    background: var(--royal-mid);
    filter: none;
    box-shadow: 0 12px 26px rgba(16, 26, 87, 0.25);
}

.menu-toggle { border-color: var(--line); }
.menu-toggle span { background: var(--royal); }

/* --- Página inicial: texto sobre marfim e fotografia nítida --- */
.hero-ivory {
    background: var(--ivory);
    padding: clamp(130px, 13vw, 170px) 0 clamp(70px, 8vw, 110px);
}

.hero-ivory .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
    text-align: left;
}

.hero-ivory .hero-kicker { color: var(--gold-text); }
.hero-ivory .kicker-line { background: var(--gold-text); }

.hero-ivory h1 {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.05;
    color: var(--royal);
}

.hero-ivory h1 em {
    font-style: italic;
    color: var(--gold-text);
}

.hero-ivory .hero-lead {
    color: var(--slate);
    margin-left: 0;
}

.hero-ivory .hero-actions { justify-content: flex-start; }

.hero-ivory .hero-trust-indicators {
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
}

.hero-ivory .trust-item { color: var(--ink); }
.hero-ivory .trust-ring { border-color: var(--gold); color: var(--gold-text); }

.hero-photo { position: relative; }

.hero-photo-img {
    display: block;
    width: 100%;
    height: clamp(380px, 44vw, 560px);
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(7, 12, 43, 0.14);
}

/* Selo azul redondo sobre a foto: o único bloco azul da abertura */
.hero-seal-stamp {
    position: absolute;
    left: -40px;
    bottom: 40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--royal);
    border: 4px solid var(--ivory);
    box-shadow: 0 20px 45px rgba(7, 12, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-ring {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.stamp-mono {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-light);
}

.stamp-caption {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--on-dark);
}

/* --- Cabeçalhos das subpáginas: claros, com fotografia ao lado --- */
.page-hero, .page-hero.has-photo {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: clamp(130px, 14vw, 170px) 0 clamp(48px, 6vw, 80px);
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.page-hero:not(.has-photo) .page-hero-inner { grid-template-columns: 1fr; }

.page-hero-title { color: var(--royal); }
.page-hero-kicker { color: var(--gold-text); }
.page-hero-lead { color: var(--slate); }
.breadcrumb, .breadcrumb a { color: var(--slate); }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: var(--royal); }

.page-hero-img {
    position: static;
    display: block;
    width: 100%;
    height: clamp(240px, 26vw, 340px);
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(7, 12, 43, 0.12);
}

/* Destaques dos títulos em latão sobre fundos claros */
.text-gradient, .text-gradient-gold { color: var(--gold-text); }

/* --- Secções claras alternadas (marfim / branco) --- */
.services-showcase, .services-section, .projects-section, .projects-preview,
.process-section, .cttc-section {
    background: #FFFFFF;
}

.about-section.section-white, .values-section, .sectors-section, .borc-section {
    background: var(--ivory);
}

.section-heading, .about-title, .services-title, .projects-title, .sectors-title,
.cttc-title, .process-section .section-heading, .projects-preview .projects-title {
    color: var(--royal);
}

.projects-preview .projects-subtitle, .sectors-subtitle, .process-section .section-kicker {
    color: var(--gold-text);
}

.projects-preview .projects-lead, .sectors-lead, .process-section .section-lead { color: var(--slate); }

/* Serviços: fotografia e texto, sem caixa à volta */
.services-showcase .service-premium-card {
    background: transparent;
    border: 0;
    overflow: visible;
}

.services-showcase .service-premium-card:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.services-showcase .service-card-img {
    height: 220px;
    border-radius: var(--radius);
}

.service-card-body { padding: 18px 2px 0; }
.services-showcase .service-premium-card h3 { color: var(--royal); }
.services-showcase .service-premium-card:hover h3 { color: var(--gold-text); }

/* Projetos: foto inteira visível, legenda num painel marfim */
.project-dark-overlay { background: none; }

.project-portfolio-card { padding: 20px; justify-content: space-between; }

.project-card-footer {
    background: rgba(250, 247, 240, 0.95);
    border-radius: 12px;
    padding: 18px 20px;
    gap: 6px;
}

.project-portfolio-card h3 { color: var(--royal); font-size: 1.35rem; }
.project-portfolio-card p { color: var(--slate); }
.project-readmore { color: var(--gold-text); }

.project-badge {
    background: rgba(250, 247, 240, 0.92);
    border-color: transparent;
    color: var(--royal);
    backdrop-filter: none;
}

.projects-preview .btn-dark {
    background: transparent;
    border: 1px solid var(--royal);
    color: var(--royal);
}

.projects-preview .btn-dark:hover { background: var(--royal); color: var(--ivory); }

/* Sobre: processo com filete dourado e numeração em latão */
.process-section { color: var(--ink); }

.process-step {
    background: transparent;
    border: 0;
    border-top: 2px solid var(--gold);
    border-radius: 0;
    padding: 24px 0 0;
}

.process-step:hover { transform: none; box-shadow: none; border-color: var(--gold-text); }
.process-step h3 { color: var(--royal); }
.process-step p { color: var(--slate); }
.process-number { position: static; display: block; margin-bottom: 14px; color: var(--gold-text); }
.process-icon { display: none; }

/* Serviços: setores em cartões claros */
.sector-premium-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.sector-premium-card:hover {
    background: #FFFFFF;
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(7, 12, 43, 0.08);
}

.sector-card-inner h3 { color: var(--royal); }
.sector-card-inner p { color: var(--slate); }
.sector-geo-icon { color: var(--gold-text); }
.sector-icon-wrapper { background: transparent; }

/* Chamada final: cartão azul contido, com anéis champanhe */
.cta-band {
    background: var(--ivory);
    border-top: 0;
    padding: var(--section-y) 0;
}

.cta-band-inner {
    position: relative;
    overflow: hidden;
    background: var(--royal);
    border-radius: 24px;
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
}

.cta-band-inner::before, .cta-band-inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-band-inner::before {
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(216, 168, 60, 0.45);
}

.cta-band-inner::after {
    right: -40px;
    top: -40px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(216, 168, 60, 0.25);
}

.cta-band-inner > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: var(--on-dark); }

/* --- Página 404 e secções escuras que restam --- */
.notfound-section h1 { color: var(--royal); }
.notfound-section p { color: var(--slate); }
.notfound-section .btn-secondary { border-color: var(--royal); color: var(--royal); }
.testimonials-section { color: var(--ivory); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-ivory .hero-container { grid-template-columns: 1fr; }
    .hero-seal-stamp { left: 16px; bottom: -30px; width: 120px; height: 120px; }
    .stamp-ring { width: 98px; height: 98px; }
    .stamp-mono { font-size: 2rem; }
    .hero-ivory { padding-bottom: 90px; }
}

@media (max-width: 900px) {
    .page-hero-inner { grid-template-columns: 1fr; }

    .nav-menu { background: rgba(250, 247, 240, 0.99); border-bottom-color: var(--line); }
    .nav-menu .nav-link { color: var(--ink); border-bottom-color: var(--line); }
    .nav-menu .nav-link.active { color: var(--gold-text); }
    .logo-img { height: 44px; }
}

@media (max-width: 768px) {
    .hero-ivory { padding: 110px 0 80px; }
    .hero-ivory .hero-actions { flex-direction: column; }
    .hero-ivory .hero-trust-indicators { flex-direction: column; align-items: flex-start; }
    .services-showcase .service-card-img { height: 130px; }
    .service-card-body { padding: 12px 2px 0; }
    .project-portfolio-card { padding: 14px; }
    .project-card-footer { padding: 14px 16px; }
}

@media (max-width: 420px) {
    .logo-text span { display: none; }
    .logo-text strong { font-size: 1.05rem; }
}

/* Sem espaço duplo quando a chamada final segue uma secção do mesmo tom marfim */
.sectors-section + .cta-band,
.values-section + .cta-band,
.about-section + .cta-band {
    padding-top: 0;
}

/* --- Seletor de idioma --- */
.lang-switch {
    position: relative;
}

.lang-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--royal);
    cursor: pointer;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.lang-switch[open] summary { border-color: var(--gold); }

.lang-switch ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1100;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(7, 12, 43, 0.12);
}

.lang-switch li a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.lang-switch li a span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-text);
    width: 22px;
}

.lang-switch li a:hover { background: var(--ivory); }
.lang-switch li a[aria-current] { background: var(--ivory); font-weight: 700; color: var(--royal); }

/* ==========================================================================
   PÁGINAS DE CADA SERVIÇO
   ========================================================================== */

.service-intro-photo {
    width: 100%;
    height: clamp(320px, 38vw, 480px);
}

.service-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.service-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.service-benefits .trust-ring { border-color: var(--gold); color: var(--gold-text); margin-top: 1px; }

.service-offer {
    background: #FFFFFF;
    padding: var(--section-y) 0;
}

.service-offer .section-heading { color: var(--royal); }

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

.service-offer-item {
    padding-top: 24px;
    border-top: 2px solid var(--gold);
}

.service-offer-item h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--royal);
    margin-bottom: 10px;
}

.service-offer-item p { color: var(--slate); font-size: 0.95rem; }

.service-faq {
    background: var(--ivory);
    padding: var(--section-y) 0;
}

.service-faq-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.service-faq .section-heading { color: var(--royal); }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

.faq-item[open] { border-color: var(--gold); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    min-height: 44px;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--royal);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 24px 22px;
    color: var(--slate);
    line-height: 1.7;
}

.service-others {
    background: #FFFFFF;
    padding: clamp(56px, 7vw, 90px) 0 0;
}

.service-others + .cta-band { background: #FFFFFF; }

.service-others-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 6px;
}

.service-other-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ivory);
    color: var(--royal);
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-other-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.service-other-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.service-other-name {
    flex: 1;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.2rem;
}

.service-other-arrow { color: var(--gold-text); display: inline-flex; }

/* Página de serviços: ligação para a página de cada serviço */
.service-card-link { color: inherit; text-decoration: none; }
.service-card-link:hover { color: var(--gold-text); }
.service-more { margin-top: 18px; align-self: flex-start; }

@media (max-width: 1024px) {
    .service-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-faq-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .service-others-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .service-offer-grid, .service-benefits { grid-template-columns: 1fr; }
    .faq-item summary { padding: 18px; font-size: 0.98rem; }
    .faq-item p { padding: 0 18px 18px; }
}

/* Ícones das redes sociais no rodapé */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(216, 168, 60, 0.45);
    color: var(--gold);
    font-size: 1.15rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--ink);
}

/* Política de Privacidade: o cabeçalho de página já dá o espaço superior */
.page-hero + .legal-section {
    padding-top: clamp(48px, 6vw, 80px);
}
