:root {
    --primary: #9E1B32;
    --primary-dark: #6B0D1F;
    --bg-light: #FDF6F7;
    --text: #1A202C;
    --text-muted: #4A5568;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg-light); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* ================= HEADER & MENU MODERNO ================= */
.main-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(158, 27, 50, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    padding: 0.6rem 0;
}

.header-container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
}

.logo-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px;
    transition: var(--transition);
}
.logo-link:hover { opacity: 0.9; transform: translateY(-1px); }
.site-logo { max-height: 42px; width: auto; }

/* Menu Desktop */
.main-nav ul {
    display: flex; flex-direction: row; align-items: center; gap: 2rem;
    list-style: none; margin: 0; padding: 0;
}

.main-nav a {
    position: relative;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.main-nav a:hover { color: var(--white); }

/* Indicador ativo moderno */
.main-nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--white); border-radius: 2px; transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--white); font-weight: 600; }

/* Toggle Mobile */
.mobile-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 1001;
}
.mobile-menu-toggle span {
    display: block; width: 26px; height: 2px; background: var(--white);
    margin: 5px 0; transition: var(--transition); border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================= LAYOUTS PRINCIPAIS ================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white); padding: 5rem 0; text-align: center; margin-bottom: 3rem;
}
.hero h2 { font-size: 2.6rem; margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.5px; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.95; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.8rem; border-radius: 8px; text-decoration: none;
    font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: #f8f9fa; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Grid Lado a Lado (Home & Sobre) */
.alternate-sections { margin: 3rem auto; }
.alt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.alt-row:last-child { margin-bottom: 0; }

/* Inverte ordem nas linhas pares */
.alt-row:nth-child(even) .alt-img { order: 2; }
.alt-row:nth-child(even) .alt-text { order: 1; }

.alt-img img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.alt-text h3 { color: var(--primary); font-size: 1.9rem; margin-bottom: 0.8rem; letter-spacing: -0.3px; }
.alt-text p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; }

/* Sobre */
.sobre-layout {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; margin: 3rem 0 4rem;
}
.sobre-text h2 { color: var(--primary); margin-bottom: 1.2rem; font-size: 2.1rem; }
.sobre-text p { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1rem; }
.sobre-img img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; margin: 2rem 0; }
.contact-info h3, .contact-form h3 { color: var(--primary); margin-bottom: 1.2rem; font-size: 1.5rem; }
.contact-item { margin-bottom: 1.2rem; }
.contact-item strong { display: block; color: var(--text); margin-bottom: 0.3rem; font-weight: 600; }
.contact-item ul { list-style: disc; padding-left: 1.2rem; color: var(--text-muted); }
.contact-item li { margin-bottom: 0.4rem; }

.contact-form {
    background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow);
}
.contact-form .form-group { margin-bottom: 1.3rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 1rem; font-family: inherit; transition: var(--transition); background: #fafafa;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary); background: var(--white);
    box-shadow: 0 0 0 4px rgba(158,27,50,0.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.flash-message { padding: 1rem; margin-bottom: 1.5rem; border-radius: 8px; text-align: center; font-weight: 500; }
.flash-success { background: #DEF7EC; color: #276749; border: 1px solid #C6F6D5; }
.flash-error { background: #FED7D7; color: #C53030; border: 1px solid #FEB2B2; }

/* Footer */
.main-footer { background: #1A202C; color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    color: rgba(255,255,255,0.7); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border-radius: 50%; transition: var(--transition);
}
.social-icons a:hover { color: var(--white); background: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.9rem; }

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
    .alt-row, .sobre-layout, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .alt-row:nth-child(even) .alt-img, .alt-row:nth-child(even) .alt-text { order: unset; }
    .hero h2 { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--primary-dark); padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: var(--transition); z-index: 1000;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .main-nav a { display: block; padding: 0.8rem 0; font-size: 1.1rem; width: 100%; }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--white); padding-left: 1rem; border-left: 3px solid var(--white); }
    
    .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
    .overlay.active { display: block; }
}
