/* ===========================
   Variables & Reset
   =========================== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #0f3460;
    --accent-color: #e94560;
    --accent-hover: #d63651;
    --gold-accent: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    border: 2px solid var(--text-white);
    border-radius: 4px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 26, 46, 1);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-white);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.9) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===========================
   Sobre Section
   =========================== */
.sobre {
    padding: 100px 20px;
    background: var(--text-white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
}

.sobre-intro {
    font-size: 1.25rem !important;
    color: var(--text-dark) !important;
    font-weight: 500;
}

.sobre-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===========================
   Soluções Section
   =========================== */
.solucoes {
    padding: 100px 20px;
    background: var(--bg-light);
}

.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solucao-card {
    background: var(--text-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.solucao-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.solucao-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.solucao-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solucao-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===========================
   Projetos Section
   =========================== */
.projetos {
    padding: 100px 20px;
    background: var(--text-white);
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.projeto-image {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.projeto-image-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.projeto-image-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.projeto-image-4 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.projeto-image-5 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.projeto-image-6 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.4);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
}

.projeto-tag {
    background: var(--accent-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.projeto-content {
    padding: 2rem;
}

.projeto-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.projeto-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===========================
   Diferenciais Section
   =========================== */
.diferenciais {
    padding: 100px 20px;
    background: var(--primary-color);
    color: var(--text-white);
}

.diferenciais .section-tag {
    color: var(--gold-accent);
}

.diferenciais .section-title {
    color: var(--text-white);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.diferencial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.diferencial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.diferencial-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-accent);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.diferencial-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.diferencial-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    padding: 100px 20px;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--text-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.faq-question i {
    transition: var(--transition);
    color: var(--accent-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   CTA Final Section
   =========================== */
.cta-final {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
}

.cta-final .btn-primary {
    background: var(--text-white);
    color: var(--accent-color);
}

.cta-final .btn-primary:hover {
    background: var(--bg-light);
}

/* ===========================
   Contato Section
   =========================== */
.contato {
    padding: 100px 20px;
    background: var(--text-white);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contato-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Form Styles */
.contato-form {
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-message i {
    font-size: 1.5rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mapa */
.mapa-container {
    margin-top: 4rem;
}

.mapa-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mapa {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-legal {
    margin-bottom: 1.5rem;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links-bottom {
    margin-bottom: 1.5rem;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--accent-color);
}

.footer-links-bottom span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px 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 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--text-white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .header-content .btn-primary {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary-color);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .contato-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .solucoes-grid,
    .projetos-grid {
        grid-template-columns: 1fr;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
}