/* =================================================================
   Reset e Variáveis
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - evitando roxo conforme solicitado */
    --primary-color: #2c5f7d;
    --primary-dark: #1a3f56;
    --primary-light: #3d7a9f;
    --secondary-color: #d4af37;
    --accent-color: #e67e22;

    /* Cores neutras */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Transições */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* =================================================================
   Header & Navigation
   ================================================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

.logo .subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    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::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-cta-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-cta-nav::after {
    display: none;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* =================================================================
   Hero Section
   ================================================================= */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(44, 95, 125, 0.9), rgba(29, 62, 86, 0.8)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-light);
    text-align: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #c89f2a);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

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

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

/* =================================================================
   Section Styles
   ================================================================= */
section {
    padding: 80px 0;
}

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

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

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================
   Sobre Section
   ================================================================= */
.sobre {
    background: var(--bg-white);
}

.sobre-content {
    display: grid;
    gap: 60px;
}

.sobre-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-text .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.sobre-text p {
    margin-bottom: 15px;
}

.missao-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
}

.missao-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.missao-box i {
    color: var(--secondary-color);
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* =================================================================
   Projetos Section
   ================================================================= */
.projetos {
    background: var(--bg-light);
}

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

.projeto-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.projeto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.projeto-card:hover .projeto-image img {
    transform: scale(1.1);
}

.projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 95, 125, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.projeto-card:hover .projeto-overlay {
    opacity: 1;
}

.projeto-overlay i {
    font-size: 4rem;
    color: var(--text-light);
}

.projeto-content {
    padding: 30px;
}

.projeto-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.projeto-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.projeto-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.projeto-details h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.projeto-details ul {
    list-style: none;
}

.projeto-details ul li {
    padding: 8px 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.projeto-details ul li i {
    color: var(--primary-color);
}

/* =================================================================
   Bazar Section
   ================================================================= */
.bazar {
    background: var(--bg-white);
}

.bazar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-box {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.info-box i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.info-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.categorias-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.categorias-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.categorias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.categoria-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

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

.categoria-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.categoria-item span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.bazar-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.bazar-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bazar-form > p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* =================================================================
   Forms
   ================================================================= */
.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 125, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.mensagem-form {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.mensagem-form.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensagem-form.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* =================================================================
   Contato Section
   ================================================================= */
.contato {
    background: var(--bg-light);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contato-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.info-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

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

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contato-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contato-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-cnpj {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.footer-links h4,
.footer-projetos h4,
.footer-contato h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul,
.footer-projetos ul {
    list-style: none;
}

.footer-links ul li,
.footer-projetos ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-projetos ul li {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contato p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

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

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-dev i {
    color: var(--secondary-color);
}

/* =================================================================
   Back to Top Button
   ================================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* =================================================================
   Responsive Design
   ================================================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .bazar-content,
    .contato-content {
        grid-template-columns: 1fr;
    }

    .categorias {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo .subtitle {
        font-size: 0.65rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .sobre-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .categorias {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 10px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo .subtitle {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .sobre-stats {
        grid-template-columns: 1fr;
    }

    .bazar-form,
    .contato-form {
        padding: 25px;
    }
}
