/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --primary-blue: #0ea5e9;
    --secondary-blue: #2563eb;
    --cyan: #0284c7;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --glow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--secondary-blue));
    color: #fff;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #f8fafc;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5% 0;
    position: relative;
    background: url('/assets/images/hero.jpg') no-repeat center center/cover;
}

/* Light overlay to ensure text is readable */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    top: 0;
    left: 0;
    z-index: 0;
}

/* Gradient fade at the bottom to blend with the light theme */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, var(--bg-dark) 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a1a2e; /* Dark text */
}

.hero p {
    font-size: 1.2rem;
    color: #374151; /* Dark muted text */
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero .highlight {
    color: transparent;
    background: linear-gradient(90deg, #2563eb, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: var(--glow);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 50px; }
.mb-3 { margin-bottom: 30px; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    font-size: 1.5rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}
.mobile-toggle:hover {
    background: var(--primary-blue);
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.glass { animation: fadeInUp 0.5s ease forwards; }

/* Images lazy load placeholder */
img { max-width: 100%; height: auto; }
img[loading="lazy"] { background: rgba(255,255,255,0.03); }

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1rem; }
    .container { padding: 0 4%; }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
}

/* Service Cards (servicos.php) */
.service-card {
    background: #ffffff;
    padding: 50px;
    margin-bottom: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.service-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-header-text h2 {
    color: var(--text-main);
    font-size: 2rem;
    margin: 0;
}
.service-header-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 5px;
    max-width: 600px;
}
.service-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.service-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}
.service-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Reduz espaço no mobile */
    }
    
    .stats-grid > div:last-child {
        grid-column: 1 / -1; /* O terceiro item ocupa as duas colunas e fica centralizado */
    }
    
    .stat-number {
        font-size: 2.2rem; /* Fonte um pouco menor para caberem 2 lado a lado */
    }
    
    /* Service Cards Mobile Adjustments */
    .service-card {
        padding: 30px 20px;
    }
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .service-header-text h2 {
        font-size: 1.6rem;
    }
    .service-header-text p {
        font-size: 1rem;
    }
    .service-body {
        gap: 30px;
        margin-top: 30px;
    }
    .service-footer {
        text-align: center;
    }
    .service-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-toggle { display: block; }

    .navbar {
        flex-wrap: wrap;
        padding: 15px 5% !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hero { min-height: 70vh !important; padding: 100px 5% 40px; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 15px;
    }

    .hero::before { width: 300px; height: 300px; }

    /* CRM layout adjustments */
    .chat-layout { flex-direction: column !important; height: auto !important; }
    .chat-sidebar { width: 100% !important; max-height: 200px; }
    .chat-messages { max-height: 400px !important; }

    .kanban-board { flex-direction: column !important; }
    .kanban-column { min-width: 100% !important; }

    table { font-size: 0.85rem; }
    table th, table td { padding: 8px 5px !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .stat-card .stat-number, .glass h2 { font-size: 1.8rem !important; }
}
