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

:root {
    --primary-color: #c9a227;      /* dourado */
    --secondary-color: #e8d9a8;    /* dourado claro */
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(
        160deg,
        #f8f2dc 0%,
        #eaf5ff 60%,
        #ffffff 100%
    );
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gradient-bg {
    background: linear-gradient(
        160deg,
        #f8f2dc 0%,
        #eaf5ff 60%,
        #ffffff 100%
    );
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0 60px;
    color: var(--text-dark);
    animation: slideDown 0.6s ease-out;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* 404 Illustration */
.illustration {
    margin-bottom: 40px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(#c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

.error-title {
    color: var(--text-dark);
}

.error-subtitle {
    color: #5f6b7a;
}

.section-title {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Search Section */
.search-section {
    width: 100%;
    max-width: 600px;
    margin: 40px 0;
    animation: slideUp 0.6s ease-out 0.2s both;
}

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

.search-container {
    display: flex;
    gap: 10px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 15px 35px rgba(201, 162, 39, 0.4);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: #c9a227;
    color: var(--bg-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* Categories Section */
.categories-section {
    width: 100%;
    margin: 50px 0;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: inline-block;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--bg-white);
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: #c9a227;
    color: #fff;
    border-color: #c9a227;
}

.btn-secondary {
    color: #c9a227;
    border-color: #c9a227;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(201,162,39,.08);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.result-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.result-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success-color);
    color: var(--bg-white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    display: none;
}

.toast.show {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Content Sections (Custom for the pages) */
.content-box {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 40px;
    animation: slideUp 0.6s ease-out both;
}

.section-h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.section-h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.highlight-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    margin: 20px 0;
    color: var(--text-dark);
}

.divider-gold {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-subtitle {
        font-size: 14px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        max-height: 90vh;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0 40px;
    }

    .logo {
        font-size: 24px;
    }

    .error-code {
        font-size: 60px;
    }

    .error-title {
        font-size: 20px;
    }

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

    .section-title {
        font-size: 16px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
    margin-left: 5px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================================
   CONTACT FORM — form-field styles
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.form-label span {
    color: var(--primary-color);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-control:hover:not(:focus) {
    border-color: #cbd5e0;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d4a828, #c9a227);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.submit-btn.loading .btn-spinner { display: inline-block; }
.submit-btn.loading .btn-text { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-alert.success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.form-alert.error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.contact-info-value {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    background: var(--bg-white);
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Scroll behavior */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
