/* --- NOVAS Variáveis de Cores (Tema Escuro) e Estilos Globais --- */
:root {
    --primary-color: #279eff; /* Azul vibrante (mantido como destaque) */
    --secondary-color: #248eff; /* Azul mais escuro para hover */
    --background-dark: #000000; /* Cor de fundo principal */
    --background-medium: #000000; /* Cor de fundo para seções alternadas */
    --card-background: #1f1f1f; /* Cor de fundo dos cartões e formulários */
    --text-primary: #f0f0f0; /* Cor principal do texto (branco suave) */
    --text-secondary: #ffffff; /* Cor para texto secundário */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

section {
    padding: 80px 0;
}

/* --- Cabeçalho e Navegação --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.header-wrapper {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transform: translateZ(0);
}

.header-hidden {
    transform: translateY(-100%) !important;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    max-width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Seção Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex; /* Adicionado para centralização vertical */
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(to right, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.89) 50%, rgba(0, 0, 0, 0.479) 100%),
        linear-gradient(to top, var(--background-dark) 5%, transparent 40%),
        url('images/redes-pc.jpg') no-repeat center center/cover;
}

.hero .container {
    width: 100%;
}

.hero-content {
    max-width: 55%;
    text-align: left;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-socials {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.hero-socials a {
    color: var(--text-primary);
    font-size: 1.6rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Seção de Serviços --- */
.services {
    background-color: var(--background-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.service-card {
    background-color: var(--card-background);
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Seção de Parceiros --- */
.partners-section {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.partners-title {
    flex-basis: 25%;
    text-align: right;
    color: var(--text-secondary);
}

.partners-title h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

.logo-scroller {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    min-width: 0;
}

.logo-track {
    --scroll-speed: 30s;
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scrollLogos var(--scroll-speed) linear infinite;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-item img {
    height: 100px;
    max-width: 150px;
    border-radius: 10px;
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Seções de Detalhe do Serviço --- */
.service-detail {
    padding: 100px 0;
}
.service-detail.alt-bg {
    background-color: var(--background-medium);
}
.detail-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.detail-text, .detail-image {
    flex: 1;
}
.layout-reverse {
    flex-direction: row-reverse;
}
.detail-text h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.detail-text h2::after {
    display: none;
}
.detail-text h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}
.detail-text ul {
    list-style: none;
    padding-left: 0;
}
.detail-text ul li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.detail-text ul li .fa-check {
    color: var(--primary-color);
    margin-right: 15px;
}
.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- Estilos do Blog --- */
.blog-list-section {
    padding: 80px 0;
    background-color: var(--background-medium);
}
.blog-list-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.blog-list-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.post-card-content {
    padding: 25px;

}
.post-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.post-card-content h3 a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.post-card-content h3 a:hover {
    color: var(--primary-color);
}
.post-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.read-more-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: padding-left 0.3s ease;
}
.read-more-btn:hover {
    padding-left: 5px;
}
.post-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}
.post-section .container {
    max-width: 1100px;
    margin: 0 auto;
}
.post-section h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--text-primary);
}
.post-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0 40px;
}
.post-body {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
}
.post-body p {
    margin-bottom: 20px;
}
.post-body a {
    color: var(--primary-color);
    text-decoration: underline;
}
.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

/* --- Barra Lateral do Blog --- */
.post-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}
.post-main-content {
    flex: 2;
    min-width: 0;
}
.post-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
}
.sidebar-widget {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}
.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.sidebar-widget p {
    line-height: 1.7;
    margin-bottom: 20px;
}
.sidebar-widget .cta-button {
    width: 100%;
}
.sidebar-socials {
    display: flex;
    gap: 20px;
}
.sidebar-socials a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.sidebar-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Rodapé --- */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-secondary);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-column {
    flex: 1;
}
.footer-about {
    flex: 1.5;
    padding-right: 20px;
}
.footer-column h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
}
.footer-logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}
.footer-about p, .footer-links ul, .footer-contact p {
    line-height: 1.7;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.footer-contact p i {
    margin-right: 15px;
    width: 20px;
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--primary-color);
}

/* --- Animações e Outros --- */
.start-animation {
    animation: fadeInDown 1.2s ease-out forwards;
}
.side-dot-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1001;
}
.side-dot-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.side-dot-nav li {
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
}
.side-dot-nav .dot {
    display: block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.side-dot-nav .dot.active, .side-dot-nav .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.6);
}
.side-dot-nav .dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.side-dot-nav .dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- CTA Final --- */
.cta-final {
    padding: 80px 0;
    text-align: center;
}
.cta-final h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.cta-final h2::after {
    content: '';
    display: block;
    margin: 15px auto 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}
.cta-final p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-button.whatsapp-button {
    background-color: #25D366;
}
.cta-button.whatsapp-button:hover {
    background-color: #1DAA53;
}
.cta-button.instagram-button {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.cta-button.instagram-button:hover {
    filter: brightness(1.15);
}

/* --- Padding Dinâmico --- */
main {
    transition: padding-top 0.4s ease-in-out;
}
.header-visible-padding > section:first-of-type {
    padding-top: 90px;
}

/* ====================================================== */
/* CÓDIGO DE RESPONSIVIDADE UNIFICADO E CORRIGIDO       */
/* ====================================================== */

@media (max-width: 992px) {
    .side-dot-nav {
        display: none;
    }
    .hero-content {
        max-width: 80%;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .post-layout {
        flex-direction: column;
    }
    .post-sidebar {
        position: static;
        width: 100%;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
    }
    header #logo {
        margin-bottom: 10px;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
    }
    header nav ul li a {
        padding: 8px 10px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-socials {
        position: static;
        flex-direction: row;
        transform: none;
        justify-content: center;
    }
    .partners-container {
        flex-direction: column;
        gap: 20px;
    }
    .partners-title {
        text-align: center;
        margin-bottom: 10px;
        flex-basis: auto;
    }
    .logo-scroller {
        width: 100%;
    }
    .detail-content, .layout-reverse {
        flex-direction: column;
        text-align: center;
    }
    .detail-text h2 {
        text-align: center;
    }
    .detail-image {
        margin-top: 30px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .cta-button {
        width: 100%;
        max-width: 320px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 30px;
    }
    .footer-contact p {
        justify-content: center;
    }
    .header-visible-padding > section:first-of-type {
        padding-top: 140px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
