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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Principal */
.main-header {
    background: #f1ece4;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    width: 200px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}


/* Navegação Principal */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #ea1917;
    background: #f3f4f6;
}

/* Header Text */
.header-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #dc2626;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.header-text:hover {
    opacity: 0.8;
}

.location-icon {
    width: 18px;
    height: 18px;
    color: #dc2626;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Header de Contato */
.contact-header {
    background: #dbd6ca;
    padding: 20px 0;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    z-index: 999;
}

.contact-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    padding: 8px 0;
}

.phone-icon {
    width: 16px;
    height: 16px;
    color: #374151;
    flex-shrink: 0;
}

.phone-number {
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.3px;
    margin-left: 4px;
}

.contact-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 1px solid #4b5563;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ea1917;
    border-color: #ea1917;
    color: white;
}

.btn-primary {
    background: #ea1917;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #d41715;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 25, 23, 0.3);
}

.chat-icon {
    width: 16px;
    height: 16px;
    color: #374151;
    flex-shrink: 0;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('public/bannerfinal.jpg') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 320px 0 80px 0;
    margin-top: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-left h1 {
    font-size: 3.2em;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 1.3em;
    color: white;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 18px;
}

/* Appointment Form */
.appointment-form {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.appointment-form h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.radio-label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.btn-schedule {
    width: 100%;
    background: #ea1917;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-schedule:hover {
    background: #d41715;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 25, 23, 0.3);
}

.privacy-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.privacy-link {
    color: #ea1917;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #dbd6ca;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #ea1917;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Glossary Section */
.glossary-section {
    padding: 80px 0;
    background: #e5e0d5;
    border-top: 1px solid #e5e7eb;
}

.glossary-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 15px;
}

.glossary-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

#glossarySearch {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

#glossarySearch::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: #ea1917;
    color: white;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #d41715;
}

.filter-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.filter-container select {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-container select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-results {
    max-width: 900px;
    margin: 0 auto;
}

.results-count {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 14px;
}

.glossary-results {
    display: grid;
    gap: 20px;
}

.glossary-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glossary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.glossary-item.active {
    border-color: #ea1917;
}

.glossary-question {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.question-icon {
    color: #ea1917;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.glossary-item.active .question-icon {
    transform: rotate(90deg);
}

.glossary-answer {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #ea1917;
    animation: slideDown 0.3s ease;
}

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

.glossary-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.category-tag {
    background: #ea1917;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.model-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.model-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.no-results h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 25px;
}

.popular-searches {
    margin-top: 50px;
    text-align: center;
}

.popular-searches h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.popular-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #ea1917;
    color: white;
    transform: translateY(-1px);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #ea1917;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Glossary */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #ea1917;
}

.modal-title {
    color: #ea1917;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.modal-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.modal-step-number {
    background: #ea1917;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.modal-step-content {
    flex: 1;
}

.modal-step-content p {
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.6;
}

.modal-highlight {
    color: #ea1917;
    font-weight: 600;
    margin-top: 15px;
}

/* Privacy Policy Modal Specific Styles */
.modal-privacy {
    max-width: 800px;
}

.privacy-content {
    text-align: left;
}

.privacy-section {
    margin-bottom: 25px;
}

.privacy-section h3 {
    color: #ea1917;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.privacy-section p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 10px;
}

.privacy-section ul {
    margin: 10px 0 10px 25px;
    color: #333;
}

.privacy-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-section strong {
    color: #ea1917;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-privacy {
        max-width: 95%;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .modal-step {
        gap: 15px;
    }

    .modal-step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    .privacy-section h3 {
        font-size: 16px;
    }

    .glossary-section {
        padding: 60px 0;
    }
    
    .glossary-section h2 {
        font-size: 2em;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-container select {
        width: 100%;
    }
    
    .glossary-item {
        padding: 20px;
    }
    
    .glossary-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .popular-tags {
        gap: 8px;
    }
    
    .tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Conteúdo Principal */
.main-content {
    padding: 60px 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 0;
}

.faq-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 15px;
}

.faq-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #dee2e6;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-item h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #6b7280;
    transition: all 0.3s ease;
    margin-left: 20px;
    user-select: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #3B82F6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-header .container {
        position: relative;
    }
    
    .nav-toggle {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #4b5563;
        z-index: 1001;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 0 0 12px 12px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 15px 0;
        border-radius: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 2.5em;
    }
    
    .hero-left p {
        font-size: 1.1em;
    }
    
    .appointment-form {
        padding: 30px 20px;
    }
    
    .contact-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-actions {
        justify-content: center;
    }
    
    .hero-banner {
        padding: 240px 0 60px 0;
        min-height: 500px;
        margin-top: 0;
    }

    .hero-left h1 {
        font-size: 2em;
    }

    .hero-left p {
        font-size: 1em;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn-container {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s ease-out;
}

.floating-message {
    background: white;
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn-container:hover .floating-message {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.message-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.message-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.phone-btn {
    background: #ea1917;
    color: white;
}

.phone-btn:hover {
    background: #d41715;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.whatsapp-btn:hover {
    background: #20BA5A;
}

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

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-message {
        min-width: 180px;
        padding: 10px 12px;
    }
    
    .message-text {
        font-size: 13px;
    }
    
    .message-subtitle {
        font-size: 11px;
    }
}