/* --- Base e Variáveis --- */
html {
    scroll-behavior: smooth;
}

:root {
    --dark-navy: #060026;
    --accent-green: #00f2b1;
}

body {
    background-color: var(--dark-navy);
    color: white;
    font-family: 'Source Sans 3', sans-serif;
    overflow-x: hidden;
}

/* --- Tipografia e Navegação Topo --- */
.navbar-brand {
    font-family: "Domine", serif !important;
    font-weight: 800;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0em;
    transition: all 0.3s ease;
}

.nav-link {
    font-size: 0.95rem;
    text-transform: lowercase;
    position: relative;
}

.nav-x {
    display: none;
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 5px;
}

.nav-link.active .nav-x,
#floating-nav a.active .nav-x {
    display: inline-block !important;
}

/* --- Menu Flutuante Lateral (Desktop) --- */
#floating-nav {
    position: fixed;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

#floating-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}

#floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#floating-nav a {
    color: var(--dark-navy) !important;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-weight: 600;
    text-transform: lowercase;
}

/* O X começa invisível por defeito */
#floating-nav .nav-x {
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    color: var(--accent-green);
    margin-right: 6px;
    transition: all 0.2s ease;
}

/* ESTADO DE HOVER: O texto fica verde quando o rato passa por cima */
#floating-nav a:hover {
    color: var(--accent-green) !important;
}

/* ESTADO ATIVO (SCROLL): Ativado via JS quando passamos na secção */
/* Apenas o X aparece e fica verde. O texto do link mantém-se dark-navy */
#floating-nav li.section-active .nav-x {
    opacity: 1 !important;
    visibility: visible !important;
}

#floating-nav li.section-active a {
    color: var(--dark-navy) !important;
    /* Mantém o texto "desligado" da cor ativa */
}


/* --- Hero Section --- */
.hero-section {
    min-height: 75vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 10%;
}

.hero-claim-img {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateX(-7%);
}

.hero-subtitle-img {
    max-width: 23%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-claim-wrapper {
    margin-top: clamp(10px, 4vh, 90px) !important;
}

/* --- Info Bar --- */
.info-bar {
    background-color: var(--accent-green);
    color: var(--dark-navy);
    padding: 30px 0 !important;
    position: relative;
    z-index: 10;
}

.info-text-wrapper {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 0.9;
    text-align: left;
}

.line-1 {
    display: block;
    transform: translateX(-40px);
}

.line-2 {
    display: block;
    padding-left: 20%;
    white-space: nowrap;
}

.info-bar i,
.font-serif-custom {
    font-family: "Domine", serif !important;
    font-weight: 700;
    font-style: italic;
}

/* --- Logos Bar --- */
.logos-bar {
    background-color: var(--dark-navy);
    padding: 30px 0;
}

.logo-img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* --- Section Works (Fundo Branco) --- */
#works {
    background-color: #ffffff;
    color: var(--dark-navy);
    padding: 80px 0;
}

#works .text-green {
    color: var(--accent-green) !important;
}

.work-item {
    display: block;
    color: var(--dark-navy);
    transition: color 0.3s ease;
}

.work-img-container {
    background-color: #f0f0f0;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-title {
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    font-family: "Domine", serif;
    margin-bottom: 2px;
}

.work-title span {
    font-weight: 400;
}

.work-tags {
    font-size: 0.85rem;
    opacity: 0.7;
}

.work-item:hover .work-img {
    transform: scale(1.05);
}

.work-item:hover .work-title {
    color: var(--accent-green);
}

/* --- Background Decor --- */
.hero-bg-r,
.hero-bg-circle,
.hero-bg-slash,
.hero-bg-x,
.hero-bg-dots {
    position: absolute;
    z-index: 0;
}

.hero-bg-r {
    left: -2%;
    top: 10%;
    width: 30%;
    opacity: 0.5;
}

.hero-bg-circle {
    right: 8%;
    top: 4%;
    width: 15%;
    opacity: 0.8;
    scale: 40%;
}

.hero-bg-slash {
    right: 5%;
    top: 0%;
    width: 8%;
    opacity: 0.8;
    scale: 40%;
}

.hero-bg-x {
    right: 8%;
    top: 50%;
    width: 6%;
    opacity: 0.8;
}

.hero-bg-dots {
    top: 25%;
    width: 25%;
    opacity: 1;
}

.hero-bg-circle {
    position: absolute;
    right: 8%;
    top: 4%;
    width: 15%;
    opacity: 0.8;
    scale: 40%;
}

.hero-bg-slash {
    position: absolute;
    right: 5%;
    top: 0%;
    width: 8%;
    opacity: 0.8;
    scale: 40%;
}

.hero-bg-x {
    position: absolute;
    right: 8%;
    top: 50%;
    width: 6%;
    opacity: 0.8;
}

.hero-bg-dots {
    position: absolute;
    top: 25%;
    width: 25%;
    opacity: 1;
}

.hero-seta {
    width: 30px;
    animation: bounce-paused 5s infinite;
}

.hero-bg-car {
    position: absolute;
    right: 8%;
    top: 50%;
    width: 17%;
    opacity: 0.8;
}

.hero-bg-apple {
    position: absolute;
    right: 8%;
    top: 50%;
    width: 10%;
    opacity: 0.8;
}

@keyframes bounce-paused {

    0%,
    8%,
    20%,
    32%,
    40% {
        transform: translateY(0);
    }

    16% {
        transform: translateY(-10px);
    }

    24% {
        transform: translateY(-5px);
    }

    40.1%,
    100% {
        transform: translateY(0);
    }
}

/* --- Footer Section v2 (Base Desktop) --- */
.footer-section {
    background-color: var(--accent-green);
    color: var(--dark-navy);
    position: relative;
    z-index: 10;
}

.footer-heading {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    color: var(--dark-navy);
}

.footer-heading .text-green {
    color: #fff !important;
    /* Sinal '+' em Branco para contraste */
    margin-right: 5px;
}

/* Estilo do Ícone RS à Direita */
.footer-rs-icon-large {
    height: clamp(60px, 7vw, 85px);
    /* Escala aumentada conforme solicitado */
    width: auto;
    filter: brightness(0);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.footer-rs-icon-large:hover {
    transform: scale(1.05);
}

.footer-email {
    color: var(--dark-navy) !important;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.6;
}

.footer-socials-v2 {
    display: flex;
    gap: 20px;
}

.social-link-v2 {
    color: var(--dark-navy) !important;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link-v2:hover {
    opacity: 0.6;
    transform: translateY(-3px);
}

.footer-copy-row {
    border-top: 1px solid rgba(6, 0, 38, 0.1);
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-navy);
    opacity: 0.7;
    text-transform: lowercase;
}

/* --- Componentes Globais de Artigos --- */
.section-white-bg {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
}

.section-separator-title {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(6, 0, 38, 0.1);
    padding-bottom: 15px;
}

.section-separator-title .accent-plus {
    color: var(--accent-green);
    margin-right: 5px;
}

/* Estilo estendido do work-item para artigos */
.article-item .work-img-container {
    aspect-ratio: 16/9 !important;
}

.article-title {
    font-size: 1.3rem !important;
    line-height: 1.2;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.meta-tag {
    color: var(--accent-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 8px;
}

.article-meta-footer {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
}

.author-badge {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    color: #666;
    margin-right: 15px;
}

.read-time {
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------
   ADAPTAÇÕES RESPONSIVAS
----------------------------------------------------------- */

/* Tablets e Desktops Pequenos */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh !important;
        padding-top: 100px;
    }

    .navbar-brand {
        font-size: 1.4rem !important;
    }

    .navbar-collapse {
        background: var(--dark-navy);
        padding: 2rem;
        border-radius: 15px;
        margin-top: 1rem;
    }

    .hero-claim-img {
        max-width: 85% !important;
        transform: translateX(0);
    }

    .hero-subtitle-img {
        max-width: 70% !important;
        margin-top: 1rem;
    }

    .info-bar {
        padding: 30px 20px !important;
    }

    .info-text-wrapper {
        font-size: 1.1rem !important;
        text-align: center;
        display: block;
    }

    .line-1,
    .line-2 {
        transform: translateX(0) !important;
        padding-left: 0 !important;
        white-space: normal !important;
        margin: 5px 0;
    }

    .logo-img {
        height: 15px !important;
    }

    #floating-nav {
        display: none !important;
    }

    .work-item {
        margin-bottom: 2.5rem;
        text-align: center;
    }
}

/* Ajuste Específico para o Layout de 3 Colunas do Footer */
@media (min-width: 768px) {
    .footer-col-icon {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }
}

/* Mobile (Footer Específico) */
@media (max-width: 767.98px) {
    .footer-heading {
        text-align: center;
        font-size: 1.2rem;
    }

    .footer-col-info,
    .footer-col-social,
    .footer-col-icon {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.5rem;
    }

    .footer-rs-icon-large {
        height: 60px;
        margin-bottom: 10px;
    }

    .footer-socials-v2 {
        justify-content: center;
        width: 100%;
    }

    .footer-copy {
        text-align: center;
    }
}