/* ===================================================================
   REBESCHINI - DESIGN SYSTEM MODERNO V2.0
   Cores, Tipografia e Componentes Atualizados
   =================================================================== */

/* ===== VARIÁVEIS DE DESIGN ===== */
:root {
    /* Cores Principais - Tema Elegante Marcenaria */
    --primary-black: #1E1E1E;
    --primary-wood: #C49A6C;
    --primary-green: #007B55;
    
    /* Neutros */
    --white: #FFFFFF;
    --gray-50: #F9F9F9;
    --gray-100: #EDEDED;
    --gray-200: #E0E0E0;
    --gray-300: #CFCFCF;
    --gray-400: #ABABAB;
    --gray-500: #707070;
    --gray-600: #4A4A4A;
    --gray-700: #2E2E2E;
    --gray-800: #1E1E1E;
    --gray-900: #121212;
    
    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-copper: #B87333;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --font-display: 'Poppins', var(--font-sans);
    
    /* Espaçamento (8px grid system) */
    --space-1: 0.5rem;    /* 8px */
    --space-2: 1rem;      /* 16px */
    --space-3: 1.5rem;    /* 24px */
    --space-4: 2rem;      /* 32px */
    --space-5: 2.5rem;    /* 40px */
    --space-6: 3rem;      /* 48px */
    --space-7: 4rem;      /* 64px */
    --space-8: 5rem;      /* 80px */
    --space-9: 6rem;      /* 96px */
    --space-10: 8rem;     /* 128px */
    
    /* Bordas Arredondadas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Sombras Elegantes */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.20);
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 1440px;
    --container-padding: 1.5rem;
    --header-height: 80px;
}

/* ===== RESET MODERNO ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TIPOGRAFIA MODERNA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-black);
    margin-bottom: var(--space-3);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h3 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
h4 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); }
h5 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem); }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-wood);
}

/* ===== CONTAINER SYSTEM ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}

/* ===== HEADER MODERNO ===== */
.top-bar {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-1) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.top-bar-info {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--gray-300);
    font-size: 0.875rem;
}

.top-bar-item i {
    color: var(--primary-wood);
    font-size: 0.875rem;
}

.top-bar-actions {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-actions a {
    color: var(--white);
    font-size: 0.875rem;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.top-bar-actions a:hover {
    color: var(--primary-wood);
}

.top-bar-actions .highlight-cta {
    background: linear-gradient(135deg, var(--primary-green), #00a86b);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    color: var(--white) !important;
    font-weight: 700;
    transition: all var(--transition-base);
}

.top-bar-actions .highlight-cta:hover {
    background: linear-gradient(135deg, #006644, #008c5f);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--white) !important;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: var(--space-4);
}

.header-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.header-logo:hover img {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
    justify-content: flex-end;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
}

.nav-menu-list a {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-menu-list a:hover,
.nav-menu-list a.active {
    color: var(--primary-green);
    background: var(--gray-50);
}

.nav-menu-list .highlight-link a {
    background: linear-gradient(135deg, var(--primary-green), #00a86b);
    color: var(--white);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    box-shadow: var(--shadow-sm);
}

.nav-menu-list .highlight-link a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-cta {
    display: flex;
    gap: var(--space-2);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--primary-black);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===== BUTTONS MODERNOS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #006644;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== HERO SECTION MODERNA ===== */
.hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-800) 100%);
    overflow: hidden;
    padding: var(--space-8) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.85) 0%, rgba(30, 30, 30, 0.60) 100%);
    z-index: 2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
}

.hero-content-modern {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.5rem 1rem;
    background: rgba(196, 154, 108, 0.15);
    border: 1px solid rgba(196, 154, 108, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-wood);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    backdrop-filter: blur(8px);
}

.hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-title-modern .highlight {
    background: linear-gradient(135deg, var(--primary-wood), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-modern {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--gray-200);
    margin-bottom: var(--space-5);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: var(--space-9) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--gray-600);
    font-weight: 400;
}

/* ===== CARDS MODERNOS ===== */
.servico-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-wood);
}

.servico-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-wood), var(--accent-gold));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.servico-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: var(--space-2);
    text-align: center;
}

.servico-card p {
    color: var(--gray-700);
    line-height: 1.7;
    text-align: center;
    flex-grow: 1;
}

/* ===== GRID SYSTEMS ===== */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
}

/* ===== FOOTER MODERNO ===== */
.modern-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-8) 0 var(--space-4);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: var(--space-3);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.footer-social-links {
    display: flex;
    gap: var(--space-2);
}

.social-link,
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: all var(--transition-base);
}

.social-link:hover,
.footer-social-link:hover {
    background: var(--primary-wood);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    font-family: var(--font-sans);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-wood);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--gray-400);
}

.footer-contact-item i {
    color: var(--primary-wood);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: 999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu-list {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .section {
        padding: var(--space-7) 0;
    }
    
    .hero-modern {
        min-height: 70vh;
        padding: var(--space-6) 0;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-info,
    .top-bar-actions {
        justify-content: center;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social-links {
        justify-content: center;
    }
}

/* ===== ACESSIBILIDADE ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--primary-green);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 8px;
}

/* ===== PERFORMANCE & ANIMAÇÕES ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Lazy Loading - Removido opacity 0 que impedia imagens de aparecer */
img[loading="lazy"] {
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

