/* Fontes servidas pelo próprio site (antes vinham do Google Fonts e atrasavam o telemóvel).
   Outfit é variável (300 a 800). Licença SIL OFL 1.1: fonts/OFL-*.txt */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-v15-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: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-v15-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: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne-v24-700-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: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne-v24-700-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;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Menu Flutuante Específico */
.glass-nav-floating {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: #ffca00;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(255, 202, 0, 0.1);
}

/* Stats Card specific styling */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 202, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

/* Glow Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
}

/* Marquee for logos */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    animation: marquee-left 40s linear infinite;
}

.marquee-row-reverse {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    animation: marquee-right 40s linear infinite;
}

/* Logo sizing.
   Os arquivos foram recortados (sem margem transparente), entao a altura abaixo
   e calculada por normalizacao optica: altura = 40px * (2.6 / aspecto) ^ 0.4.
   Isso iguala a AREA aparente de cada logo — normalizar so pela altura faz
   wordmarks largos parecerem enormes e marcas quadradas parecerem pequenas.
   Sobrescreve o h-10 do Tailwind por especificidade. */
.marquee-row img,
.marquee-row-reverse img {
    flex: 0 0 auto;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.marquee-row img[src="images/logos-edu/speaksy.webp"],
.marquee-row-reverse img[src="images/logos-edu/speaksy.webp"] { height: 38px; }
.marquee-row img[src="images/logos-edu/sumare.webp"],
.marquee-row-reverse img[src="images/logos-edu/sumare.webp"] { height: 35px; }
.marquee-row img[src="images/logos-edu/pos.webp"],
.marquee-row-reverse img[src="images/logos-edu/pos.webp"] { height: 48px; }
.marquee-row img[src="images/logos-edu/logosofico.webp"],
.marquee-row-reverse img[src="images/logos-edu/logosofico.webp"] { height: 32px; }
.marquee-row img[src="images/logos-edu/letsvibe.webp"],
.marquee-row-reverse img[src="images/logos-edu/letsvibe.webp"] { height: 42px; }
.marquee-row img[src="images/logos-edu/next.webp"],
.marquee-row-reverse img[src="images/logos-edu/next.webp"] { height: 44px; }
.marquee-row img[src="images/logos-edu/unimax.webp"],
.marquee-row-reverse img[src="images/logos-edu/unimax.webp"] { height: 36px; }
.marquee-row img[src="images/logos-edu/abaco.webp"],
.marquee-row-reverse img[src="images/logos-edu/abaco.webp"] { height: 50px; }
.marquee-row img[src="images/logos-edu/access.webp"],
.marquee-row-reverse img[src="images/logos-edu/access.webp"] { height: 38px; }
.marquee-row img[src="images/logos-edu/tb.webp"],
.marquee-row-reverse img[src="images/logos-edu/tb.webp"] { height: 35px; }
.marquee-row img[src="images/logos-edu/ipep.png"],
.marquee-row-reverse img[src="images/logos-edu/ipep.png"] { height: 41px; }
.marquee-row img[src="images/logos-edu/oxford.webp"],
.marquee-row-reverse img[src="images/logos-edu/oxford.webp"] { height: 33px; }
.marquee-row img[src="images/logos-edu/sh.webp"],
.marquee-row-reverse img[src="images/logos-edu/sh.webp"] { height: 38px; }
.marquee-row img[src="images/logos-edu/china.webp"],
.marquee-row-reverse img[src="images/logos-edu/china.webp"] { height: 38px; }
.marquee-row img[src="images/logos-edu/youraccess.webp"],
.marquee-row-reverse img[src="images/logos-edu/youraccess.webp"] { height: 43px; }
.marquee-row img[src="images/logos-edu/changemaker.webp"],
.marquee-row-reverse img[src="images/logos-edu/changemaker.webp"] { height: 24px; }
.marquee-row img[src="images/logos-edu/unifaj.webp"],
.marquee-row-reverse img[src="images/logos-edu/unifaj.webp"] { height: 38px; }
.marquee-row img[src="images/logos-edu/ies.svg"],
.marquee-row-reverse img[src="images/logos-edu/ies.svg"] { height: 50px; }
.marquee-row img[src="images/logos-edu/tomorrow.webp"],
.marquee-row-reverse img[src="images/logos-edu/tomorrow.webp"] { height: 42px; }
.marquee-row img[src="images/logos-edu/gdv.webp"],
.marquee-row-reverse img[src="images/logos-edu/gdv.webp"] { height: 47px; }
.marquee-row img[src="images/logos-edu/dental.webp"],
.marquee-row-reverse img[src="images/logos-edu/dental.webp"] { height: 45px; }
.marquee-row img[src="images/logos-edu/unicap.webp"],
.marquee-row-reverse img[src="images/logos-edu/unicap.webp"] { height: 41px; }
.marquee-row img[src="images/logos-edu/dream.webp"],
.marquee-row-reverse img[src="images/logos-edu/dream.webp"] { height: 40px; }
.marquee-row img[src="images/logos-edu/nex.webp"],
.marquee-row-reverse img[src="images/logos-edu/nex.webp"] { height: 41px; }
.marquee-row img[src="images/logos-edu/prime.webp"],
.marquee-row-reverse img[src="images/logos-edu/prime.webp"] { height: 39px; }
.marquee-row img[src="images/logos-edu/gaspari.webp"],
.marquee-row-reverse img[src="images/logos-edu/gaspari.webp"] { height: 36px; }
.marquee-row img[src="images/logos-edu/sebrae.webp"],
.marquee-row-reverse img[src="images/logos-edu/sebrae.webp"] { height: 44px; }
.marquee-row img[src="images/logos-edu/cna.webp"],
.marquee-row-reverse img[src="images/logos-edu/cna.webp"] { height: 45px; }

/* Each row is duplicated side by side, so a full -100% shift loops seamlessly */
@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffca00;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #ccc;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 202, 0, 0.1);
    color: #ffca00;
}

/* Wide Dropdown for Services */
.dropdown-menu-wide {
    min-width: 750px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 24px;
}

.dropdown-menu-wide::before {
    /* Inherits default centering from .dropdown-menu::before */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 1280px) {
    .dropdown-menu-wide {
        min-width: 650px;
    }
}

/* =============================================
   LIGHT (YELLOW) THEME OVERRIDES
   ============================================= */

body.light-theme {
    background-color: #ffca00;
    color: #000000;
}

/* Navigation */
body.light-theme .glass-nav-floating {
    background: rgba(255, 202, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .glass-nav-floating a,
body.light-theme .glass-nav-floating span,
body.light-theme .glass-nav-floating button {
    color: #000;
}

body.light-theme .glass-nav-floating .text-brand-yellow {
    color: #000 !important;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.light-theme .glass-nav-floating .hover\:text-brand-yellow:hover {
    color: #333 !important;
}

body.light-theme .glass-nav-floating .text-gray-300,
body.light-theme .glass-nav-floating .text-gray-400 {
    color: #000;
}

body.light-theme .glass-nav-floating .text-white\/30 {
    color: rgba(0, 0, 0, 0.3);
}

body.light-theme .glass-nav-floating .bg-brand-yellow {
    background-color: #ff8b00;
    color: #fff;
}

body.light-theme .glass-nav-floating .bg-brand-yellow:hover {
    background-color: #e67a00;
}

body.light-theme .glass-nav-floating .shadow-\[0_0_15px_rgba\(255\,202\,0\,0\.3\)\] {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Logo invert in light theme */
body.light-theme .nav-logo-img {
    filter: brightness(0);
}

body.light-theme footer .nav-logo-img {
    filter: none;
}

/* Dropdown */
body.light-theme .dropdown-menu {
    background: rgba(255, 202, 0, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .dropdown-menu::before {
    background: rgba(255, 202, 0, 0.97);
    border-top-color: rgba(0, 0, 0, 0.1);
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-item {
    color: #333;
}

body.light-theme .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

body.light-theme .dropdown-item.text-brand-yellow {
    color: #000 !important;
    font-weight: 700;
}

/* Mobile Menu */
body.light-theme #mobileMenu {
    background: rgba(255, 202, 0, 0.98);
}

body.light-theme #mobileMenu a,
body.light-theme #mobileMenu span {
    color: #000;
}

body.light-theme #mobileMenu .text-brand-yellow {
    color: #000 !important;
    font-weight: 800;
}

body.light-theme #mobileMenu .text-gray-400 {
    color: #333;
}

body.light-theme #mobileMenu .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme #mobileMenu .bg-brand-yellow {
    background-color: #ff8b00;
    color: #fff;
}

/* Glass Panels */
body.light-theme .glass-panel {
    background: rgba(255, 139, 0, 0.08);
    border-color: rgba(255, 139, 0, 0.15);
    box-shadow: 0 4px 30px rgba(255, 139, 0, 0.08);
}

/* Glass Cards */
body.light-theme .glass-card {
    background: linear-gradient(145deg, rgba(255, 139, 0, 0.08) 0%, rgba(255, 139, 0, 0.03) 100%);
    border-color: rgba(255, 139, 0, 0.15);
}

body.light-theme .glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 139, 0, 0.12) 0%, rgba(255, 139, 0, 0.04) 100%);
    border-color: #ff8b00;
    box-shadow: 0 10px 40px -10px rgba(255, 139, 0, 0.2);
}

/* Glow Orbs - hide on light theme */
body.light-theme .glow-orb {
    opacity: 0.08;
}

/* Telemóvel: cada brilho é uma camada enorme com desfoque de 100px e animação sem fim, que pesa
   muito no Safari do iPhone. No tema amarelo quase não se vê (8%), por isso sai; no preto fica parado. */
@media (max-width: 1023px) {
    body.light-theme .glow-orb {
        display: none;
    }

    .glow-orb {
        animation: none;
    }
}

/* Text Color Overrides */
body.light-theme .text-white {
    color: #000 !important;
}

body.light-theme .text-gray-300 {
    color: #222 !important;
}

body.light-theme .text-gray-400 {
    color: #333 !important;
}

body.light-theme .text-gray-500 {
    color: #444 !important;
}

body.light-theme .text-gray-600 {
    color: #555 !important;
}

body.light-theme .text-brand-yellow {
    color: #ff8b00 !important;
}

/* Background overrides */
body.light-theme .bg-black {
    background-color: #ffca00 !important;
}

body.light-theme .bg-brand-dark {
    background-color: #ffca00 !important;
}

body.light-theme .bg-brand-gray {
    background-color: #ffca00 !important;
}

body.light-theme .bg-black\/95 {
    background-color: #ffca00 !important;
}

body.light-theme .bg-brand-dark\/50 {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .bg-white\/\[0\.02\] {
    background-color: transparent !important;
}

body.light-theme .bg-white\/5 {
    background-color: rgba(255, 139, 0, 0.06) !important;
}

body.light-theme .bg-white\/10 {
    background-color: rgba(255, 139, 0, 0.1) !important;
}

body.light-theme .bg-brand-yellow\/10 {
    background-color: rgba(255, 139, 0, 0.12) !important;
}

body.light-theme .bg-brand-yellow\/20 {
    background-color: rgba(255, 139, 0, 0.18) !important;
}

body.light-theme .bg-brand-yellow\/5 {
    background-color: rgba(255, 139, 0, 0.06) !important;
}

/* Border overrides */
body.light-theme .border-white\/10 {
    border-color: rgba(255, 139, 0, 0.15) !important;
}

body.light-theme .border-white\/5 {
    border-color: rgba(255, 139, 0, 0.08) !important;
}

body.light-theme .border-brand-yellow\/20 {
    border-color: rgba(255, 139, 0, 0.25) !important;
}

body.light-theme .border-brand-yellow\/30 {
    border-color: rgba(255, 139, 0, 0.35) !important;
}

/* Brand yellow elements - use orange in light theme */
body.light-theme .bg-brand-yellow {
    background-color: #ff8b00 !important;
    color: #fff !important;
}

body.light-theme .bg-brand-yellow:hover {
    background-color: #e67a00 !important;
}

/* VS Comparison Cards - Light Theme */
body.light-theme .vs-card-other {
    background: rgba(0, 0, 0, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .vs-card-other .text-white,
body.light-theme .vs-card-other h3 {
    color: #fff !important;
}

body.light-theme .vs-card-other .text-gray-400 {
    color: #aaa !important;
}

body.light-theme .vs-card-other .border-white\/5 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .vs-card-resultz {
    background: rgba(255, 202, 0, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .vs-card-resultz .text-gray-300 {
    color: #1a1a1a !important;
}

body.light-theme .vs-card-resultz .text-white {
    color: #000 !important;
}

body.light-theme .vs-card-resultz .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .vs-card-resultz .bg-brand-yellow {
    background-color: transparent !important;
}

body.light-theme .vs-card-resultz .bg-brand-yellow i {
    color: #000 !important;
}

body.light-theme .vs-card-resultz .border-brand-yellow\/30 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .vs-card-resultz .bg-brand-yellow\/30 {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Hero Funnel Card - Light Theme */
body.light-theme .hero-funnel-card {
    background: rgba(0, 0, 0, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px);
}

body.light-theme .hero-funnel-card .text-white,
body.light-theme .hero-funnel-card .text-gray-300,
body.light-theme .hero-funnel-card h3 {
    color: #fff !important;
}

body.light-theme .hero-funnel-card .text-gray-400 {
    color: #aaa !important;
}

body.light-theme .hero-funnel-card .text-gray-500 {
    color: #888 !important;
}

body.light-theme .hero-funnel-card .text-brand-yellow {
    color: #ffca00 !important;
}

body.light-theme .hero-funnel-card .text-green-400 {
    color: #4ade80 !important;
}

body.light-theme .hero-funnel-card .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .hero-funnel-card .bg-brand-yellow\/60,
body.light-theme .hero-funnel-card .bg-brand-yellow\/70,
body.light-theme .hero-funnel-card .bg-brand-yellow\/80,
body.light-theme .hero-funnel-card .bg-brand-yellow\/90 {
    background-color: rgba(255, 202, 0, 0.7) !important;
}

body.light-theme .hero-funnel-card .bg-brand-yellow {
    background-color: #ffca00 !important;
    color: #000 !important;
}

body.light-theme .hero-funnel-card .bg-green-500\/20 {
    background-color: rgba(74, 222, 128, 0.2) !important;
}

body.light-theme .hero-funnel-card .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .hero-funnel-card .border-t {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .hero-funnel-badge {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 202, 0, 0.5) !important;
}

body.light-theme .hero-funnel-badge .text-brand-yellow {
    color: #ffca00 !important;
}

body.light-theme .hero-funnel-badge .text-gray-400,
body.light-theme .hero-funnel-badge .text-\[10px\] {
    color: #aaa !important;
}

/* CTA buttons */
body.light-theme .hover\:bg-white:hover {
    background-color: #ff8b00 !important;
    color: #fff !important;
}

/* WhatsApp button */
body.light-theme .fixed.bottom-6.right-6 {
    background-color: #ff8b00 !important;
    color: #fff !important;
}

body.light-theme .fixed.bottom-6.right-6 svg {
    color: #fff !important;
}

/* Scrollbar */
body.light-theme::-webkit-scrollbar-track {
    background: #ffca00;
}

body.light-theme::-webkit-scrollbar-thumb {
    background: rgba(255, 139, 0, 0.4);
}

body.light-theme::-webkit-scrollbar-thumb:hover {
    background: #ff8b00;
}

/* Footer - light theme */
body.light-theme footer {
    background-color: #ffca00 !important;
}

body.light-theme footer .text-white {
    color: #000 !important;
}

body.light-theme footer .text-gray-500 {
    color: #333 !important;
}

body.light-theme footer .text-gray-600 {
    color: #444 !important;
}

body.light-theme footer .text-brand-yellow {
    color: #000 !important;
}

body.light-theme footer .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme footer .hover\:text-brand-yellow:hover {
    color: #333 !important;
}

body.light-theme footer .border-brand-yellow\/30 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme footer .glass-panel {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme footer .bg-brand-yellow {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #000 !important;
}

body.light-theme footer .border-brand-yellow {
    border-color: #000 !important;
}

body.light-theme footer svg,
body.light-theme footer i {
    color: #000 !important;
}

body.light-theme footer a:hover svg,
body.light-theme footer a:hover i,
body.light-theme footer button:hover svg,
body.light-theme footer button:hover i {
    color: #fff !important;
}

body.light-theme footer .hover\:bg-brand-yellow:hover {
    background-color: #000 !important;
    color: #ffca00 !important;
}

body.light-theme footer .nav-logo-img {
    filter: brightness(0) !important;
}

/* Nav Contact CTA button - fix text color */
body.light-theme .glass-nav-floating .bg-brand-yellow.text-black,
body.light-theme .glass-nav-floating .bg-brand-yellow.text-black * {
    background-color: #ff8b00 !important;
    color: #fff !important;
}

body.light-theme .glass-nav-floating .bg-brand-yellow.text-black * {
    background-color: transparent !important;
}

/* Nav Contact CTA button - hover state */
body.light-theme .glass-nav-floating .bg-brand-yellow.text-black:hover,
body.light-theme .glass-nav-floating .bg-brand-yellow.text-black:hover * {
    background-color: #000 !important;
    color: #ffca00 !important;
}

body.light-theme .glass-nav-floating .bg-brand-yellow.text-black:hover * {
    background-color: transparent !important;
}

/* Gradient text override - orange gradient in light theme */
body.light-theme .bg-clip-text.text-transparent {
    background-image: linear-gradient(to right, #ff8b00, #e05a00) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Quote icons - make visible on yellow background */
body.light-theme .text-brand-yellow\/30 {
    color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .text-brand-yellow\/20 {
    color: rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .text-brand-yellow\/10 {
    color: rgba(0, 0, 0, 0.08) !important;
}

/* Logo-row invert in light theme */
body.light-theme .filter.brightness-0.invert {
    filter: brightness(0) !important;
}

/* Contact Modal */
body.light-theme #contactModal .glass-panel {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #contactModal .bg-\[\#0a0a0a\] {
    background-color: #fff !important;
}

body.light-theme #contactModal .text-white {
    color: #000 !important;
}

body.light-theme #contactModal .text-gray-400 {
    color: #555 !important;
}

body.light-theme #contactModal .text-gray-300 {
    color: #333 !important;
}

body.light-theme #contactModal input,
body.light-theme #contactModal textarea {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
}

body.light-theme #contactModal input::placeholder,
body.light-theme #contactModal textarea::placeholder {
    color: #999 !important;
}

/* Marquee logos */
body.light-theme .marquee-row img,
body.light-theme .marquee-row-reverse img {
    filter: brightness(0) opacity(0.5);
}

body.light-theme .marquee-row img:hover,
body.light-theme .marquee-row-reverse img:hover {
    filter: brightness(0) opacity(0.8);
}

/* Selection */
body.light-theme::selection,
body.light-theme *::selection {
    background: #000;
    color: #ffca00;
}

/* Theme toggle button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    border-color: #ffca00;
    background: rgba(255, 202, 0, 0.1);
}

body.light-theme .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .theme-toggle-btn:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.1);
}

/* Smooth transition for theme change */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.glass-nav-floating,
.glass-panel,
.glass-card,
.dropdown-menu,
#mobileMenu {
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

/* Video Carousel */
.video-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.video-carousel-track {
    display: flex;
    gap: 1rem;
    animation: video-scroll 40s linear infinite;
    width: max-content;
}

.video-card {
    flex-shrink: 0;
    width: 280px;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.video-card:hover {
    border-color: rgba(255, 202, 0, 0.5);
    transform: scale(1.03);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes video-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .video-card {
        width: 200px;
        height: 360px;
    }
}

/* Creative Image Carousel */
.creative-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.creative-carousel-track {
    display: flex;
    gap: 1rem;
    animation: video-scroll 50s linear infinite;
    width: max-content;
}

.creative-card {
    flex-shrink: 0;
    width: 240px;
    height: 420px;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.creative-card:hover {
    border-color: rgba(255, 202, 0, 0.5);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .creative-card {
        width: 180px;
        height: 320px;
    }
}

/* Raio-X Stories Grid */
.stories-grid-raio {
    top: -4rem;
    right: -4rem;
    transform: rotate(-15deg);
    flex-direction: row;
}

/* Raio-X Card - Light Theme */
body.light-theme .raio-x-card {
    background: #000 !important;
    border-color: rgba(255, 202, 0, 0.2) !important;
}

body.light-theme .raio-x-card .text-white,
body.light-theme .raio-x-card h2 {
    color: #fff !important;
}

body.light-theme .raio-x-card .text-gray-400 {
    color: #aaa !important;
}

body.light-theme .raio-x-card .text-gray-500 {
    color: #888 !important;
}

body.light-theme .raio-x-card .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.light-theme .raio-x-card .bg-brand-yellow {
    background-color: #ffca00 !important;
    color: #000 !important;
}

/* Office Cards - Light Theme */
body.light-theme .office-card {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .office-card .text-brand-yellow {
    color: #000 !important;
    font-weight: 700;
}

body.light-theme .office-card .bg-brand-yellow {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #000 !important;
}

body.light-theme .office-card .bg-brand-yellow i,
body.light-theme .office-card .bg-brand-yellow svg {
    color: #000 !important;
}

/* Mobile floating nav: fit logo, theme toggle, language switcher, and hamburger */
@media (max-width: 640px) {
    .glass-nav-floating {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .glass-nav-floating > a {
        flex-shrink: 1;
        min-width: 0;
    }

    .glass-nav-floating .nav-logo-img {
        height: 2.5rem;
    }

    .glass-nav-floating > div:last-child {
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .glass-nav-floating .theme-toggle-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 380px) {
    .glass-nav-floating {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .glass-nav-floating .nav-logo-img {
        height: 2.25rem;
    }

    .glass-nav-floating > div:last-child {
        gap: 0.5rem;
    }
}

/* =============================================
   COOKIE BANNER (js/cookies.js)
   Mesmo visual nos dois temas: painel escuro, contraste alto sobre o amarelo e sobre o preto.
   "Rejeitar" e "Aceitar todos" têm o mesmo destaque.
   ============================================= */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 95;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #0a0a0a;
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-banner-title {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 6px;
}

.cookie-banner-text a {
    color: #ffca00;
    text-decoration: underline;
}

.cookie-options {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.cookie-options[hidden] {
    display: none;
}

.cookie-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.cookie-option input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: #ffca00;
    flex-shrink: 0;
}

.cookie-option strong {
    color: #ffffff;
}

.cookie-banner-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    min-width: 140px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    background: #ffca00;
    color: #000000;
    border: 1px solid #ffca00;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.cookie-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#cookieCustomize,
#cookieSave {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

#cookieCustomize:hover,
#cookieSave:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        padding: 18px;
    }

    .cookie-btn {
        flex: 1 1 100%;
    }
}

.cookie-link {
    text-decoration: underline;
    font-weight: 600;
}
