/* ========================================
   RESET & VARIÁVEIS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C41E3A;
    --primary-dark: #A01829;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --white: #ffffff;h
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   TOP BAR
======================================== */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-link {
    color: var(--white);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.top-bar-login {
    padding: 5px 15px;
    background: rgba(196, 30, 58, 0.2);
    border-radius: 3px;
    transition: var(--transition);
}

.top-bar-login:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    opacity: 1;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-contact {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-whatsapp-header {
    padding: 10px 25px;
    background: #25D366;
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp-header:hover {
    background: #1fb855;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    min-height: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    animation: heroSlideDown 60s ease-in-out infinite;
}

@keyframes heroSlideDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(calc(-100% + 600px));
    }
    100% {
        transform: translateY(0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 50%, rgba(196, 30, 58, 0.75) 75%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ========================================
   AREAS SECTION
======================================== */
.areas-section {
    padding: 100px 0;
    background: var(--white);
}

.section-label {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.areas-list li {
    padding: 12px 20px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.areas-list li:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
    padding: 100px 0;
    background: var(--secondary-color);
}

.section-label-white {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.section-title-white {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 60px;
    line-height: 1.2;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    aspect-ratio: 3/4;
    background: #2a2a2a;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(30%);
}

.team-member:hover .team-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.team-info {
    padding: 15px 10px;
    background: var(--primary-color);
    border-radius: 5px;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CLIENTS SECTION
======================================== */
.clients-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title-center {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: var(--bg-light);
    border-radius: 5px;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   PUBLICATIONS SECTION
======================================== */
.publications-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.publication-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.publication-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.publication-card:hover .publication-image img {
    transform: scale(1.1);
}

.publication-content {
    padding: 30px;
}

.publication-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.publication-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.publication-date {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.publication-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.publication-link:hover {
    gap: 10px;
}

.text-center {
    text-align: center;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   WHATSAPP FLUTUANTE
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
======================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   ANIMAÇÕES
======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NOTIFICAÇÕES
======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--white);
    color: var(--text-color);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-info {
    border-left: 4px solid #2196f3;
}

/* ========================================
   LOADING SPINNER
======================================== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(196, 30, 58, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 145px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .btn-whatsapp-header {
        display: none;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title,
    .section-title-white,
    .section-title-center {
        font-size: 32px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .areas-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 500px;
    }

    .hero-title {
        font-size: 28px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
}