/* ============================================
   ESTILOS GERAIS - SITE LEVE E RESPONSIVO
   ============================================ */

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

:root {
    /* CORES - Clássicas e Elegantes com Dourado Amarelado */
    --primary: #d4a530;      /* Dourado Amarelado */
    --primary-dark: #b8860b;
    --secondary: #3e3e3e;    /* Marrom escuro */
    --dark: #2a2a2a;
    --light: #f8f7f4;        /* Branco quente */
    --gray: #6b6b6b;
    --border: #e8c547;       /* Dourado Amarelado suave */

    /* ESPAÇAMENTO */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* FONTES */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* TRANSIÇÕES */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

.header {
    background: linear-gradient(90deg, #ffffff 0%, #fffef8 100%);
    box-shadow: 0 2px 12px rgba(212, 165, 48, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-md);
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.company-name {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   SEÇÃO HERO
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 600px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    border: 2px dashed var(--border);
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

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

/* ============================================
   SEÇÃO FEATURES
   ============================================ */

.features {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   PROJETOS RECENTES
   ============================================ */

.recent-projects {
    padding: var(--spacing-xl) var(--spacing-md);
}

.recent-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.project-card h3 {
    padding: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--dark);
}

.project-card p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--gray);
    font-size: 0.9rem;
}

.see-all {
    text-align: center;
}

/* ============================================
   CONTATO RÁPIDO
   ============================================ */

.contact-quick {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.contact-quick h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.contact-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}

.contact-btn .icon {
    font-size: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #d4a530 0%, #e8c547 100%);
    color: #1f2937;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-top: 3px solid var(--primary);
    font-weight: 500;
}

.footer p {
    margin: var(--spacing-sm) 0;
    font-size: 0.95rem;
}

.seo-text {
    color: #555555;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVO - TABLETS
   ============================================ */

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

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

    .features h2,
    .recent-projects h2 {
        font-size: 2rem;
    }
}

/* ============================================
   RESPONSIVO - CELULARES
   ============================================ */

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
    }

    .header .container {
        height: 60px;
        padding: var(--spacing-sm);
    }

    .logo {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features h2,
    .recent-projects h2,
    .contact-quick h2 {
        font-size: 1.5rem;
    }

    .features-grid,
    .projects-preview {
        grid-template-columns: 1fr;
    }

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

    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   OTIMIZAÇÕES DE PERFORMANCE
   ============================================ */

/* Reduz animações em modo economia de energia */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
