:root {
    --primary: #c44536;
    --primary-dark: #a33327;
    --secondary: #2e1e1a;
    --light: #faf3e0;
    --white: #fff;
    --gray: #666;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 16px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--secondary);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.logo span { color: var(--secondary); }
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--primary); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 3rem 0 2rem;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto;
    border-radius: 2px;
}
/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 380px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}
.modal-content h2 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    align-items: center;
    gap: 1rem;
}
.modal-actions a { color: var(--primary); cursor: pointer; }
.close-modal {
    position: absolute;
    top: 1rem; right: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
}
.error-message {
    color: #c44536;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.field-invalid {
    border-color: #c0392b !important;
    background: #fdf0ef;
}
footer {
    text-align: center;
    padding: 2rem;
    background: var(--secondary);
    color: var(--white);
    margin-top: 3rem;
}
@media (max-width: 768px) {
    .nav-links { gap: 1rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .logo { font-size: 1.4rem; }
    .nav-links { gap: 0.6rem; }
    .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
    .section-title { font-size: 1.6rem; margin: 2rem 0 1.5rem; }
    .modal-content { padding: 1.3rem; width: 100%; }
}
