:root {
    --primary: #000000;
    --secondary: #0000FF;
    --accent: #888827;
    --light: #f5f5f5;
    --dark: #111111;
    --gray: #666666;
    --sidebar-width: 60px;
    --sidebar-expanded-width: 250px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--main-font);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    text-transform: uppercase;
}

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

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background-color: #f1f1f1;
}

/* Top Bar */
.top-bar {
    background-color: #111;
    color: #ccc;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #222;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 20px;
}

.top-bar span {
    display: flex;
    align-items: center;
}

.top-bar i {
    margin-right: 8px;
    color: var(--secondary);
}

/* Header & Navigation */
header {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    color: var(--secondary);
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--heading-font);
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--secondary);
}

/* Buttons */
.cta-button {
    background-color: var(--secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary);
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    padding: 15px 35px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    border: 2px solid var(--secondary);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 35px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    display: inline-block;
}

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

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--heading-font);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--secondary-hover);
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--heading-font);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-back:hover {
    color: var(--secondary-hover);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary);
    font-family: var(--heading-font);
}

.form-group input, .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--main-font);
    border-radius: 0;
}

.form-group input:focus, .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 5px var(--secondary);
}

.error-message {
    background-color: #fee;
    color: #c00;
    padding: 10px;
    margin-bottom: 20px;
    border-left: 3px solid #c00;
    text-align: left;
    font-size: 0.9rem;
}

/* Login Card */
.login-card {
    background: white;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--secondary);
}

.login-card h2 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 2rem;
}

/* Dashboard Styles */
.sidebar {
    width: var(--sidebar-expanded-width);
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
}

.sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}

.sidebar .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1.4rem;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar .logo-text span {
    display: block;
    font-size: 1.0rem;
    margin-top: 2px;
    color: var(--secondary);
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.user-info > div:last-child {
    display: block;
    opacity: 1;
    transition: opacity 0.2s;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent shrinking */
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    padding: 15px 20px;
    justify-content: flex-start;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.nav-item span {
    display: inline;
    opacity: 1;
    transition: opacity 0.2s;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-left-color: var(--secondary);
}

.nav-item i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

.logout-btn {
    padding: 15px 20px;
    justify-content: flex-start;
    background-color: #1a1a1a;
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
    white-space: nowrap;
}

.logout-btn span {
    display: inline;
    opacity: 1;
    transition: opacity 0.2s;
}

.logout-btn i {
    margin-right: 10px;
}

.logout-btn:hover {
    color: var(--secondary);
}

.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-expanded-width);
    padding: 30px;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
    }
    
    .sidebar.active {
        width: var(--sidebar-expanded-width);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    border-left: 5px solid var(--secondary);
    padding-left: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 3px solid transparent;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary);
}

.card h3 {
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
    color: var(--dark);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Oswald', sans-serif;
}

.welcome-box {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Sections */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1585773690161-7b5cd5cc2b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.services {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 0;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
    border-bottom: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.about {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--secondary);
}

.about-image {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-section {
    padding: 100px 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-top: 5px solid var(--secondary);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: white;
    padding: 70px 0 30px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.contact-info i {
    color: var(--secondary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 2px solid var(--secondary);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background-color: var(--secondary-hover);
}

.btn-cookie-cancel {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #666;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-cookie-cancel:hover {
    border-color: #fff;
    color: #fff;
}

/* Page Content Styles for Text Pages like Saiba Mais */
.page-content {
    background-color: white;
    padding: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary);
    margin-bottom: 60px;
}

.page-content h1 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2.5rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.page-content p {
    margin-bottom: 15px;
    color: #444;
}

.page-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 8px;
    color: #444;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

.footer-simple {
    background-color: #0a0a0a; 
    color: white; 
    padding: 20px 0; 
    text-align: center; 
    margin-top: auto; 
    border-top: 1px solid #333;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .header-container > .cta-button {
        display: none;
    }
}
