/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    
    /* Cores neutras */
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --white: #ffffff;
    --bg-light: #f9fafb;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transições */
    --transition: all 0.3s ease;
    
    /* Tamanhos */
    --header-height: 80px;
    --section-padding: 80px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* ============================================
   HERO / SLIDER
   ============================================ */
.hero {
    margin-top: var(--header-height);
    position: relative;
}

.slider-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.slide-content {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-text {
    font-size: 20px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--dark);
    transition: var(--transition);
    z-index: 20;
}

.slider-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

.hero-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 30px 0;
    text-align: center;
    z-index: 20;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SOBRE
   ============================================ */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-content p {
    margin-bottom: 20px;
    color: var(--dark-light);
    line-height: 1.8;
    font-size: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--gray);
}

.sobre-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SERVIÇOS
   ============================================ */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.servico-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.servico-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.servico-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.servico-card:hover .servico-image img {
    transform: scale(1.1);
}

.servico-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.servico-card:hover .servico-overlay {
    opacity: 1;
}

.servico-overlay i {
    font-size: 48px;
    color: var(--white);
}

.servico-content {
    padding: 30px;
}

.servico-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.servico-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.servico-features {
    list-style: none;
}

.servico-features li {
    color: var(--dark-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.servico-features i {
    color: var(--accent-color);
    font-size: 14px;
}

/* ============================================
   VÍDEOS
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-card:hover .video-play {
    background: var(--primary-color);
    color: var(--white);
}

.video-play i {
    font-size: 32px;
    color: var(--primary-color);
    margin-left: 5px;
    transition: var(--transition);
}

.video-card:hover .video-play i {
    color: var(--white);
}

.video-card h3 {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   BLOG
   ============================================ */
.blog-carousel-container {
    position: relative;
}

.blog-carousel {
    overflow: hidden;
    padding: 10px 0;
}

.blog-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.blog-card {
    min-width: 350px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.blog-carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.blog-carousel-btn.prev {
    left: -25px;
}

.blog-carousel-btn.next {
    right: -25px;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.depoimentos-carousel {
    overflow: hidden;
    padding: 20px 0;
}

.depoimento-track {
    display: flex;
    transition: transform 0.5s ease;
}

.depoimento-card {
    min-width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.depoimento-rating {
    margin-bottom: 20px;
}

.depoimento-rating i {
    color: var(--secondary-color);
    font-size: 20px;
    margin: 0 2px;
}

.depoimento-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-light);
    font-style: italic;
    margin-bottom: 30px;
}

.depoimento-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.depoimento-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.depoimento-author h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.depoimento-author span {
    font-size: 14px;
    color: var(--gray);
}

.depoimento-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.depoimento-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.depoimento-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   CONTATO
   ============================================ */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
    line-height: 1.6;
}

.contato-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    margin-bottom: 15px;
}

.footer p {
    color: var(--light-gray);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    margin: 0;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 32px;
    color: var(--white);
}

.whatsapp-bubble {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.whatsapp-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   POPUPS
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--primary-color);
}

/* Video Popup */
.video-popup {
    width: 90%;
    max-width: 1000px;
    padding: 0;
    background: transparent;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Popup */
.image-popup {
    max-width: 1000px;
    padding: 20px;
}

.image-popup img {
    width: 100%;
    border-radius: 10px;
}

#popupImageCaption {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

/* Blog Popup */
.blog-popup {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.blog-popup-content {
    padding: 50px 40px;
}

.blog-popup-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-popup-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    margin: 30px 0 15px;
}

.blog-popup-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin: 25px 0 12px;
}

.blog-popup-content p {
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.blog-popup-content ul,
.blog-popup-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-popup-content li {
    color: var(--dark-light);
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-popup-content strong {
    color: var(--dark);
    font-weight: 600;
}

.blog-popup-content .highlight {
    background: #fef3c7;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    margin: 25px 0;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .sobre-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-text {
        font-size: 16px;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .servicos-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        min-width: 300px;
    }
    
    .blog-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .blog-carousel-btn.prev {
        left: -20px;
    }
    
    .blog-carousel-btn.next {
        right: -20px;
    }
    
    .whatsapp-bubble {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .blog-popup-content {
        padding: 30px 20px;
    }
    
    .blog-popup-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 180px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .blog-card {
        min-width: 280px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }
}