/* ==========================================================================
   RESET & VARIÁVEIS GLOBAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
}

:root {
    --bg-body: #ffffff;
    --bg-secoes: linear-gradient(135deg, #b9b4b4 0%, #b2b1b3 50%, #F0E6FA 100%);
    --bg-contato: linear-gradient(135deg, #F9F3FF 0%, #F0E6FA 100%);
    --text-principal: #2D1B3D;
    --text-suave: #6B4B8A;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #F9F3FF 100%);
    --box-shadow-color: rgba(0, 0, 0, 0.08);
    --form-bg: #ffffff;
    --form-border: #e5e7eb;
    --primary: #230433;
    --primary-dark: #4A1D63;
    --primary-light: #9B4DCA;
    --primary-soft: #E8D5F5;
    --secondary: #F3E8FF;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6B2D8C 0%, #4A1D63 100%);
    --gradient-secondary: linear-gradient(135deg, #E8D5F5 0%, #D4B8E8 100%);
    --gradient-dark: linear-gradient(135deg, #2D1B3D 0%, #1A0F26 100%);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
}

html[data-theme="dark"] {
    --bg-body: #120A1C;
    --bg-secoes: linear-gradient(135deg, #120A1C 0%, #1A0F26 50%, #251433 100%);
    --bg-contato: linear-gradient(135deg, #1A0F26 0%, #120A1C 100%);
    --text-principal: #F3E8FF;
    --text-suave: #C0A9D4;
    --card-bg: linear-gradient(135deg, #1A0F26 0%, #251433 100%);
    --box-shadow-color: rgba(0, 0, 0, 0.4);
    --form-bg: #1A0F26;
    --form-border: #4A2E66;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--text-principal);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   NAVBAR COMPACTA & PADRONIZADA
   ========================================================================== */
header {
    background: var(--primary);
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--primary-soft);
    margin: 4px 0 0 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.02rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-soft); 
}

/* Cor do link ao passar o mouse (hover) e quando estiver ativo */
.nav-links a:hover,
.nav-links a.active {
    color: #8a2be2; /* Substitua pelo código exato do roxo do seu site */
    transition: color 0.3s ease;
}

/* Opcional: caso você use um indicador visual embaixo (como uma linha ou sublinhado) */
.nav-links a.active::after {
    width: 100%;
}

/* ==========================================================================
   THEME TOGGLE & MOBILE
   ========================================================================== */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    transition: all 0.3s;
    margin-left: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- BOTÃO DE LOGIN NA NAVBAR (à direita do botão de tema) --- */
.btn-login-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 45, 140, 0.35);
}

.btn-login-nav i {
    font-size: 0.85rem;
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(107, 45, 140, 0.5);
    opacity: 0.95;
}

.theme-toggle .moon-icon { 
    opacity: 0; 
    transform: scale(0.5) rotate(-45deg);
}

.theme-toggle .sun-icon { 
    opacity: 1;
    transform: scale(1) rotate(0);
}

html[data-theme="dark"] .theme-toggle .moon-icon { 
    opacity: 1;
    transform: scale(1) rotate(0);
}

html[data-theme="dark"] .theme-toggle .sun-icon { 
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.menu-mobile {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-mobile span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Anima o ícone de hambúrguer para um X ao abrir o menu mobile */
.menu-mobile.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-mobile.active span:nth-child(2) { opacity: 0; }
.menu-mobile.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO: VÍDEO ATÉ O TOPO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 100px;
    background: #000;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(18, 10, 28, 0.7) 0%, rgba(18, 10, 28, 0.5) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    color: var(--white);
    padding: 80px 0;
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--primary-soft);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SERVIÇOS (CARD STACK)
   ========================================================================== */
.servicos {
    background: var(--bg-secoes);
    padding: 1rem 0 5rem 0;
    transition: background 0.3s;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 30px; 
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="dark"] .section-header h2 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ffffff;
}

.section-header p {
    color: var(--text-suave);
}

.card-stack-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stage {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    perspective: 1100px; 
    outline: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.spotlight {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 200px;
    background: rgba(145, 43, 203, 0.15);
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}

.card-service {
    position: absolute;
    bottom: 0;
    width: 460px;
    height: 280px;
    border-radius: 16px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 35px var(--box-shadow-color);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    color: #ffffff; 
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.card-service.changing {
    transform: scale(0.85) translateY(30px) !important;
    opacity: 0.6;
}

.card-service-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-service img, .card-service video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.card-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 10, 28, 0.95) 0%, rgba(18, 10, 28, 0.2) 60%, transparent 100%);
    pointer-events: none;
}

.card-service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--white);
    z-index: 10;
}

.card-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #ffffff 0%, #E8D5F5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-service-description {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-service.active {
    border-color: rgba(145, 43, 203, 0.4);
    box-shadow: 0 25px 50px rgba(107, 45, 140, 0.3);
}

.card-service.active:hover {
    border-color: #912bcb;
    cursor: pointer;
    box-shadow: 0 25px 50px rgba(145, 43, 203, 0.45);
}

.dots-container {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.dots-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-arrow {
    background: rgba(145, 43, 203, 0.1);
    border: 1.5px solid rgba(145, 43, 203, 0.25);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-arrow:hover {
    background: #912bcb;
    color: var(--white);
    border-color: #912bcb;
    box-shadow: 0 4px 12px rgba(145, 43, 203, 0.3);
}

.nav-arrow.prev:hover svg { transform: translateX(-2px); }
.nav-arrow.next:hover svg { transform: translateX(2px); }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.dot:hover:not(.active) { opacity: 0.7; }

/* Ajustes para Tema Claro */
html:not([data-theme="dark"]) .card-service { background-color: #fcfaff; }
html:not([data-theme="dark"]) .nav-arrow { color: #8a2be2; border: 1px solid rgba(138, 43, 226, 0.4); background: rgba(138, 43, 226, 0.05); }
html:not([data-theme="dark"]) .nav-arrow:hover { background: rgba(138, 43, 226, 0.15); color: #fff; }
html:not([data-theme="dark"]) .dot { background-color: rgba(138, 43, 226, 0.3); }
html:not([data-theme="dark"]) .dot.active { background-color: #8a2be2; box-shadow: 0 0 8px rgba(138, 43, 226, 0.4); }

/* ==========================================================================
   PORTFÓLIO
   ========================================================================== */
#portfolio {
    background: var(--bg-secoes);
    padding: 2rem 0 5rem 0;
    transition: background 0.3s;
}

#portfolio .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header-portfolio {
    text-align: center;
    margin-bottom: 15px;
}

.section-header-portfolio h2 {
    font-size: 2.5rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

html[data-theme="dark"] .section-header-portfolio h2 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ffffff;
}

.pa-inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 420px;
}

.pa-left {
    flex: 0 0 50%;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pa-left .eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #912bcb;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.pa-left .dyn-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-principal);
    line-height: 1.2;
    min-height: 5.3rem;
    margin: 0;
}

.pa-left .dyn-cat {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #912bcb;
    margin-top: 0.5rem;
}

.pa-left .dyn-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    color: var(--text-suave);
    line-height: 1.65;
    margin-top: 0.5rem;
    min-height: 3rem;
}

.pa-left .divider {
    width: 36px;
    height: 2px;
    background: #912bcb;
    margin-top: 1rem;
    border-radius: 2px;
}

.pa-left .view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #912bcb;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid #912bcb;
    background: none;
    padding: 8px 18px;
    border-radius: 4px;
    width: fit-content;
    transition: background 0.2s, color 0.2s, gap 0.2s;
}

.pa-left .view-btn:hover {
    background: #912bcb;
    color: #fff;
    gap: 10px;
}

.fade-swap { transition: opacity 0.22s ease; }
.fade-swap.fading { opacity: 0; }

.pa-right {
    flex: 0 0 50%;
    display: flex;
    gap: 5px;
    height: 360px;
}

.pa-card {
    position: relative;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.52s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 38px;
}

.pa-card.active { flex: 4; }

.pa-card img, .pa-card video, .portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.pa-card:hover .portfolio-video {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.pa-card.active img {
    filter: brightness(0.78);
    transform: scale(1.04);
}

.pa-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(145,43,203,0.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.pa-card.active .pa-card-overlay { opacity: 1; }

.pa-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.9rem 0.9rem;
    z-index: 2;
}

.pa-card-label .lbl-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s 0.12s ease, transform 0.3s 0.12s ease;
}

.pa-card.active .lbl-name { opacity: 1; transform: translateY(0); }
.pa-card-label .lbl-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    writing-mode: vertical-rl;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.pa-card.active .lbl-num { opacity: 0; }

.pa-card-label .lbl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #912bcb;
    display: block;
    margin-bottom: 4px;
    opacity: 0;
    transition: opacity 0.3s 0.18s ease;
}

.pa-card.active .lbl-dot { opacity: 1; }

html:not([data-theme="dark"]) #portfolio {
    background-color: #f5f5f5;
}

/* ==========================================================================
   BOTÕES & PARCEIROS GRID
   ========================================================================== */
.btn-primary {
    background: white;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--primary-soft);
}

.parceiros {
    background: var(--bg-body);
    padding: 3rem 0 5rem 0;
    transition: background 0.3s;
    border-top: 1px solid var(--form-border);
}

.parceiros-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 50px;
    align-items: center;
    justify-items: center;
    margin: 35px auto 0 auto;
    max-width: 1000px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.brand-item img {
    max-width: 75%;
    max-height: 55px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-item[href*="braintech.co.mz"] img {
    filter: grayscale(100%) brightness(0.2) opacity(100%);
}

html[data-theme="dark"] .brand-item img { filter: none; opacity: 1; }
html[data-theme="dark"] .brand-item .dark-invert { filter: brightness(1.3) contrast(1.1); }
html[data-theme="dark"] .brand-item[href*="braintech.co.mz"] img { filter: none; }
.brand-item:hover { transform: scale(1.05); }

/* ==========================================================================
   PARCEIROS CAROUSEL INFINITO
   ========================================================================== */
.partners-section {
    background-color: #230433;
    padding: 50px 0 20px 0; 
    text-align: center;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(138, 43, 226, 0.2); 
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 0;
}

.partners-section h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px; 
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    transition: color 0.3s ease;
}

.partners-carousel { 
    overflow: hidden; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    padding: 15px 0;
}

.partners-track { 
    display: flex; 
    width: max-content; 
    gap: 30px; 
    animation: scrollInfinite 30s linear infinite; 
}

.partner-logo { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 170px; 
    height: 65px; 
    opacity: 0.85; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

.partner-logo-braintech {
    width: 210px;
    height: 85px;
}

.partner-logo a { 
    display: flex; 
    width: 100%; 
    height: 100%; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
}

.partner-logo img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    pointer-events: none;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { 
    background: #14031f; 
    color: #bfa6d1; 
    padding: 40px 0 35px;
    font-size: 0.95rem;
}

.footer-content { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr; 
    gap: 40px; 
    margin-bottom: 15px;
}

.footer-column h4 { 
    color: var(--white); 
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-logo img { 
    width: 60px; 
    filter: brightness(0) invert(1); 
    margin-bottom: 15px;
}

.brand-info p { line-height: 1.5; margin-bottom: 20px; font-size: 0.9rem; color: #bfa6d1; }
.footer-socials { display: flex; gap: 20px; align-items: center; }
.footer-socials a { color: var(--white); font-size: 1.3rem; text-decoration: none; transition: transform 0.2s, color 0.2s; }
.footer-socials a:hover { color: var(--primary-soft); transform: translateY(-2px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; cursor: pointer; line-height: 1.4; }
.footer-contact-item.no-click,
.footer-contact-item.schedule-item { cursor: default; color: #bfa6d1; }
.footer-icon-fa { color: var(--white); font-size: 1.05rem; width: 20px; margin-top: 3px; text-align: center; }
.footer-column a { color: #bfa6d1; text-decoration: none; display: block; margin-bottom: 12px; transition: color 0.2s; }
.footer-column a:hover { color: var(--white); }

.footer-bottom { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    padding-top: 12px; 
    font-size: 0.85rem; 
}

.footer-credits-link { text-decoration: none; transition: transform 0.2s ease; }
.footer-credits-link:hover { transform: translateY(-2px); }
.footer-credits { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-credits span { font-size: 0.65rem; letter-spacing: 1px; color: rgba(255, 255, 255, 0.6); }
.credits-logo { display: flex; align-items: center; }
.credits-logo img { height: 24px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; transition: opacity 0.2s; }
.footer-credits-link:hover .credits-logo img { opacity: 1; }

/* ==========================================================================
   ELEMENTOS FLUTUANTES & ANIMAÇÕES
   ========================================================================== */
.whatsapp-btn {
    position: fixed; 
    bottom: 25px; 
    right: 25px;
    background: #25D366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 100; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
}

.whatsapp-img { width: 30px; height: 30px; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top:hover { transform: translateY(-3px); background: var(--primary-light); }

.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.6s ease forwards; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 968px) {
    .parceiros-brand-grid { grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
}

@media (max-width: 900px) {
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-credits { align-items: center; }
}

@media (max-width: 768px) {
    /* Navbar mais compacta em ecrãs pequenos (o cabeçalho fixo fica mais baixo) */
    nav { padding: 14px 0; }
    .logo { gap: 10px; }
    .logo img { width: 42px; height: 42px; }
    .logo-text h1 { font-size: 1.15rem; }
    .logo-text p { font-size: 0.65rem; }
    .nav-right { gap: 14px; }
    .theme-toggle { width: 38px; height: 38px; }
    .theme-toggle svg { width: 16px; height: 16px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active { display: flex; }
    .menu-mobile { display: flex; }
    .theme-toggle { margin-left: auto; }

    .btn-login-nav span { display: none; }
    .btn-login-nav { padding: 8px 11px; }

    .hero { padding-top: 82px; min-height: 80vh; }
    .hero-content { padding: 40px 0; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }

    .pa-inner { flex-direction: column; gap: 2rem; min-height: auto; }
    .pa-left { flex: none; width: 100%; padding-right: 0; }
    .pa-right { flex: none; width: 100%; height: 260px; }
    
    .card-stack-container { max-width: 100%; overflow: hidden; padding: 10px 0; }
}

@media (max-width: 640px) {
    .stage { height: 280px; }
    .card-service { width: 90vw; height: 220px; }
    .card-service-title { font-size: 1.15rem; }
    .card-service-description { font-size: 0.85rem; }
}

@media (max-width: 600px) {
    .parceiros-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .brand-item { height: 70px; }
    .brand-item img { max-width: 85%; max-height: 45px; }
}

@media (max-width: 500px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PÁGINA DE SERVIÇO (servico.html) — Hero + Cards
   ========================================================================== */
.hero-premium {
    position: relative;
    min-height: 440px;
    padding: 108px 20px 40px;
    color: #ffffff;
    overflow: hidden;
    text-align: left;
    background: var(--gradient-dark);
}

.hero-premium-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-premium-media img,
.hero-premium-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-premium-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.78) 100%);
}

.hero-premium .container-main {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-voltar:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateX(-3px);
}

.hero-premium .hero-content {
    max-width: 650px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-main {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-glow {
    background: var(--primary-light, #9B4DCA);
    color: #ffffff !important;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-details {
    padding: 45px 20px 70px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
    align-items: start;
}

.main-article h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.main-article p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--form-border);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary-light);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0;
    opacity: 0.85;
}

.process-box {
    margin-top: 35px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.step-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--form-border);
    padding: 16px;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.step-card:hover {
    border-color: var(--primary-light);
}

.step-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-light);
    background: rgba(107, 45, 140, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card h4 {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.sidebar-outros-servicos {
    position: sticky;
    top: 120px;
}

.sidebar-outros-servicos h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.outros-servicos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.outro-servico-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--form-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.outro-servico-item:hover {
    border-color: var(--primary-light);
    transform: translateX(3px);
}

.outro-servico-item span {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.outro-servico-item i {
    color: var(--primary-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar-outros-servicos { position: static; }
    .hero-premium { min-height: 380px; padding: 96px 20px 30px; }
}

/* ==========================================================================
   PÁGINA DE DETALHE DO PORTFÓLIO (/portfolio/{id})
   ========================================================================== */
.pd-categoria {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d9a6f5;
    margin-bottom: 8px;
}

.pd-empty {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.pd-not-found {
    text-align: center;
    padding: 40px 0;
}

.pd-not-found h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pd-not-found p {
    opacity: 0.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   PÁGINA CONTACTO (contato.html) — paleta e secções próprias,
   isoladas em .pg-contato para não afetar as restantes páginas.
   ========================================================================== */
.pg-contato {
    --primary-light: #6B2D8C;
    --gradient-primary: linear-gradient(135deg, #160221 0%, #230433 100%);
    --gradient-secondary: linear-gradient(135deg, #F8F4FC 0%, #F1E8F7 100%);
    --bg-body: #e1e2e3;
    --bg-card: #ffffff;
    --bg-card-hover: #fcf9fe;
    --text-dark: #2D1B3D;
    --text-light: #6B4B8A;
    --border-color: #e5dcf0;

    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

html[data-theme="dark"] .pg-contato {
    --bg-body: #110219;
    --bg-card: #1c0729;
    --bg-card-hover: #250a36;
    --text-dark: #f1e6fa;
    --text-light: #b393cd;
    --border-color: #2e1242;
    --gradient-secondary: linear-gradient(135deg, #14031f 0%, #110219 100%);
    --secondary: #2a0c3b;
}

.hero-contato-novo {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('caminho-da-sua-imagem.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 115px;
}

.hero-overlay-camada {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content-relative {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: left;
    width: 100%;
}

.hero-contato-novo h1 {
    font-size: 3.2rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--white);
    max-width: 850px;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-contato-novo p {
    color: #f0f0f0;
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.contato-corpo {
    padding: 80px 0;
    background: var(--gradient-secondary);
    transition: background 0.3s ease;
}

.grid-contato-novo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.coluna-informacao {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-info-linha {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px -5px rgba(35, 4, 51, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

a.card-info-linha {
    cursor: pointer;
}

.card-info-linha:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    box-shadow: 0 18px 35px -5px rgba(35, 4, 51, 0.14), 0 8px 15px -3px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .card-info-linha {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .card-info-linha:hover {
    box-shadow: 0 18px 35px -5px rgba(0, 0, 0, 0.6), 0 8px 15px -3px rgba(0, 0, 0, 0.3);
}

.pg-contato .icon-box {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .pg-contato .icon-box {
    background: rgba(107, 45, 140, 0.2);
    color: var(--primary-soft);
}

.card-info-texto span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-info-texto p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.coluna-formulario {
    display: flex;
    width: 100%;
}

.formulario-card-novo {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: none;
    box-shadow: 0 12px 30px -5px rgba(35, 4, 51, 0.09), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .formulario-card-novo {
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}

.form-contato-novo .form-grupo {
    margin-bottom: 22px;
}

.form-contato-novo .form-linha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-contato-novo .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-contato-novo .form-label .obrigatorio {
    color: var(--primary-light);
    margin-left: 2px;
}

.form-contato-novo .form-input,
.form-contato-novo .form-textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-contato-novo .form-input::placeholder,
.form-contato-novo .form-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.form-contato-novo .form-input:focus,
.form-contato-novo .form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(155, 77, 202, 0.15);
}

.form-contato-novo .form-textarea {
    min-height: 110px;
    resize: vertical;
}

.btn-enviar-form {
    width: 100%;
    padding: 15px 28px;
    border: none;
    border-radius: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(74, 29, 99, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-enviar-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(74, 29, 99, 0.5);
}

@media (max-width: 768px) {
    .grid-contato-novo { grid-template-columns: 1fr; gap: 40px; }
    .hero-contato-novo h1 { font-size: 2.2rem; }
    .hero-contato-novo p { font-size: 1rem; }
    .formulario-card-novo { padding: 28px; }
    .form-contato-novo .form-linha { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PÁGINA SOBRE NÓS (sobre.html) — paleta e secções próprias,
   isoladas em .pg-sobre para não afetar as restantes páginas.
   ========================================================================== */
.pg-sobre {
    --primary-light: #6B2D8C;
    --bg-body: #e1e2e3;
    --bg-card: #6B2D8C;
    --text-dark: #2D1B3D;
    --text-light: #000000;
    --border-line: #eeeeee;
    --circle-bg: #F4EDFA;

    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .pg-sobre {
    --bg-body: #110219;
    --bg-card: #230433;
    --text-dark: #f1e6fa;
    --text-light: #ffffff;
    --border-line: #2e1242;
    --circle-bg: #2a0c3b;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid var(--primary-light);
    margin-bottom: 20px;
}

.about-hero .section-badge,
html[data-theme="dark"] .section-badge {
    border-left-color: var(--primary-soft);
    color: var(--white);
}

.about-hero {
    position: relative;
    min-height: 480px;
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
    padding: 120px 0 40px;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.25);
}

.about-hero .hero-overlay {
    display: none;
}

.about-hero .hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: left;
    margin: 0 auto;
    width: 100%;
}

.about-hero .hero-content h2 {
    font-size: 3rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.15;
    color: var(--white);
}

.about-hero .hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
    max-width: 650px;
    color: var(--primary-soft);
}

.braintech-layout {
    margin-top: 80px;
    margin-bottom: 100px;
}

.about-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.brand-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.brand-text-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0;
}

.info-blocks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.info-card {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.info-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

html[data-theme="dark"] .info-card {
    background-color: var(--bg-card);
    border-color: var(--border-line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .info-card:hover {
    border-color: var(--primary-soft);
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.valores-grid ul {
    list-style: none;
}

.valores-grid li {
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
}

.valores-grid li::before {
    content: "•";
    color: var(--primary-light);
    font-weight: bold;
    position: absolute;
    left: 0;
}

html[data-theme="dark"] .valores-grid li::before {
    color: var(--primary-soft);
}

@media (max-width: 900px) {
    .brand-text-grid { grid-template-columns: 1fr; gap: 20px; }
    .info-blocks-row { grid-template-columns: 1fr; gap: 30px; }
    .valores-grid { grid-template-columns: 1fr; gap: 5px; }
    .about-hero .hero-content h2 { font-size: 2.2rem; }
    .about-hero .hero-content p { font-size: 1.1rem; }
}

/* ==========================================================================
   PÁGINA SERVIÇOS - GRID (servicos.html) — paleta e secções próprias,
   isoladas em .pg-servicos para não afetar as restantes páginas.
   ========================================================================== */
.pg-servicos {
    --primary-light: #6B2D8C;
    --secondary: #F4F7FA;
    --bg-body: #e1e2e3;
    --bg-card: #ffffff;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --border-color: #E2E8F0;

    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

html[data-theme="dark"] .pg-servicos {
    --bg-body: #0E0214;
    --bg-card: #180622;
    --text-dark: #F1E6FA;
    --text-light: #94A3B8;
    --border-color: #2D0F3F;
    --secondary: #12031A;
}

.hero-techno-v2 {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 200px 0 110px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1600&auto=format&fit=crop') center center / cover no-repeat;
    color: var(--white);
}

.hero-techno-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(23, 3, 35, 0.95) 0%, rgba(9, 1, 15, 0.88) 100%);
    z-index: 1;
}

.hero-v2-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.hero-techno-v2 h2 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.hero-techno-v2 p {
    font-size: 1.2rem;
    max-width: 680px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
}

.servicos-v2-grid-section { padding: 80px 0; }

.servicos-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-modern {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(35, 4, 51, 0.12);
}

.card-modern-media {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.card-modern-media img,
.card-modern-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-media-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.card-media-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.card-media-dots .dot.active {
    width: 18px;
    border-radius: 10px;
    background: var(--white);
}

.card-modern-content {
    padding: 18px 8px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-modern-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.category-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.card-modern-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 54px;
}

.card-modern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
}

.pill-tag {
    background: var(--secondary);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.card-modern-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern-btn:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 15px rgba(107, 45, 140, 0.3);
    transform: translateY(-2px);
}

html[data-theme="dark"] .category-badge { background: var(--primary-light); }
html[data-theme="dark"] .pill-tag { background: rgba(255, 255, 255, 0.05); color: var(--text-dark); }
html[data-theme="dark"] .card-modern-btn { background: var(--primary-light); }
html[data-theme="dark"] .card-modern-btn:hover { background: #8037a8; }

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .servicos-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .hero-techno-v2 { min-height: auto; padding: 170px 0 80px; }
    .hero-techno-v2 h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .servicos-modern-grid { grid-template-columns: 1fr; }
    .hero-techno-v2 { padding: 150px 0 60px; }
    .hero-techno-v2 h2 { font-size: 2.2rem; letter-spacing: -0.5px; }
    .hero-techno-v2 p { font-size: 1rem; }
}

/* ==========================================================================
   PÁGINA GESTÃO DE MARCAS (gest.html) — paleta e secções próprias,
   isoladas em .pg-gest para não afetar as restantes páginas.
   ========================================================================== */
.pg-gest {
    --primary: #4a154b;
    --primary-soft: #ba55d3;
    --purple-main: #8a2be2;
    --purple-gradient: linear-gradient(135deg, #8a2be2, #ba55d3);
    --bg-site: #f4effc;
    --card-bg: #ffffff;
    --card-border: #8a2be2;
    --text-title: #2b144d;
    --text-body: #333333;

    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-site);
    color: var(--text-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 115px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html[data-theme="dark"] .pg-gest {
    --primary: #230433;
    --bg-site: #0E0214;
    --card-bg: #120924;
    --text-title: #ffffff;
    --text-body: #e0d5ed;
}

/* Briantech inverte para preto no modo claro */
html:not([data-theme="dark"]) .pg-gest img.briantech-img {
    filter: brightness(0);
    transition: filter 0.3s ease;
}

.pg-gest main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-gest footer { margin-top: auto; }

.page-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: var(--text-title);
    text-align: center;
}

.main-cards-container {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.network-card {
    display: flex;
    align-items: center;
    gap: 25px;
}

.card-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.info-box {
    flex-grow: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.info-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.info-box h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-title);
}

.info-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.info-box li {
    font-size: 0.95rem;
    color: var(--text-body);
}

.card-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.card-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-soft);
    text-decoration: none;
    background: rgba(138, 43, 226, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.card-socials a:hover {
    background: var(--purple-main);
    color: var(--white);
}

@media (max-width: 768px) {
    .network-card { flex-direction: column; text-align: center; }
    .info-box ul { list-style-position: inside; padding-left: 0; }
    .card-socials { justify-content: center; }
}

/* ==========================================================================
   PÁGINA GALERIA (galeria.html) — paleta e secções próprias,
   isoladas em .pg-galeria para não afetar as restantes páginas.
   Cabeçalho e rodapé mudam de cor com o tema (diferente das outras páginas).
   ========================================================================== */
.pg-galeria {
    --primary: #4a154b;
    --primary-soft: #ba55d3;
    --purple-main: #8a2be2;
    --purple-gradient: linear-gradient(135deg, #8a2be2, #ba55d3);
    --bg-gallery: #f4effc;
    --bg-card: #ffffff;
    --text-title: #2b144d;
    --text-sub: #5a4175;
    --footer-bg: #2b144d;
    --footer-text: #e0d5ed;

    background-color: var(--bg-gallery);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 100px;
}

html[data-theme="dark"] .pg-galeria {
    --primary: #230433;
    --bg-gallery: #0E0214;
    --bg-card: #120924;
    --text-title: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.7);
    --footer-bg: #14031f;
    --footer-text: #bfa6d1;
}

.pg-galeria header {
    background: var(--primary);
}

.gallery-section {
    padding: 25px 20px 60px 20px;
    min-height: calc(100vh - 100px);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    color: var(--text-title);
    font-size: 2.8rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.gallery-subtitle {
    color: var(--text-sub);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--purple-main);
    color: var(--purple-main);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--purple-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 9, 36, 0.4), rgba(138, 43, 226, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--purple-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .play-btn-circle {
    transform: scale(1.1);
}

.play-btn-circle i {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-left: 4px;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 5, 26, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    display: flex;
    justify-content: center;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--purple-main);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item.show {
    animation: fadeIn 0.4s ease forwards;
}

.gallery-item.hide {
    display: none;
}

/* Rodapé desta página muda de cor com o tema (as outras têm rodapé fixo) */
.pg-galeria footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pg-galeria .footer-column h4 { color: var(--white); }
.pg-galeria .footer-logo img { filter: none; }
.pg-galeria .brand-info p { color: var(--footer-text); }
.pg-galeria .footer-socials a { color: var(--white); }
.pg-galeria .footer-socials a:hover { color: var(--primary-soft); }
.pg-galeria .footer-contact-item.no-click,
.pg-galeria .footer-contact-item.schedule-item { color: var(--footer-text); }
.pg-galeria .footer-icon-fa { color: var(--white); }
.pg-galeria .footer-column a { color: var(--footer-text); }
.pg-galeria .footer-column a:hover { color: var(--white); }
.pg-galeria .credits-logo img { filter: none; }

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-title { font-size: 2.2rem; }
}