/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --vinho-escuro: #4C0000;
    --vinho-medio: #800000;
    --rosa-suave: #F5E6E8;
    --rosa-claro: #FFF5F7;
    --preto-suave: #2C2C2C;
    --cinza: #E8E8E8;
    --cinza-medio: #B0B0B0;
    --branco: #FFFFFF;
    --off-white: #FAFAFA;
    --vermelho-vibrante: #DC143C;
    --dourado: #D4AF37;
    --dourado-suave: #F0E5C8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--preto-suave);
    background-color: var(--off-white);
    line-height: 1.6;
}

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

/* ========================================
   HEADER
   ======================================== */
.header {
    background-color: var(--branco);
    color: var(--preto-suave);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--cinza);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo {
    color: var(--vinho-escuro);
}

.logo i {
    font-size: 1.8rem;
    color: var(--vinho-escuro);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--preto-suave);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--vinho-escuro);
}

.btn-login {
    background-color: var(--dourado);
    color: var(--vinho-escuro);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background-color: var(--branco);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--preto-suave);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--branco);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--cinza);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--preto-suave);
    text-decoration: none;
    padding: 0.5rem;
    font-weight: 500;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--dourado-suave) 100%);
    color: var(--preto-suave);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15rem;
    opacity: 0.3;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--dourado);
    color: var(--vinho-escuro);
}

.btn-primary:hover {
    background-color: var(--branco);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
}

.btn-secondary:hover {
    background-color: var(--branco);
    color: var(--vinho-escuro);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 4rem 0;
    background-color: var(--branco);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--vinho-escuro);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--vinho-escuro);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--rosa-suave), var(--dourado-suave));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vinho-escuro);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--vinho-escuro);
}

.feature-card p {
    color: var(--preto-suave);
    opacity: 0.8;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    padding: 4rem 0;
    background-color: var(--off-white);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--vinho-escuro);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--branco);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vinho-escuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--off-white);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--preto-suave);
    line-height: 1.8;
}

/* FAQ Suggestion Form */
.faq-suggestion-form {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: var(--branco);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 2px solid var(--rosa-suave);
}

.faq-suggestion-form h3 {
    color: var(--vinho-escuro);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-suggestion-form h3 i {
    color: var(--dourado);
}

.faq-suggestion-subtitle {
    color: var(--preto-suave);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.faq-suggestion-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--cinza);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 100px;
}

.faq-suggestion-form textarea:focus {
    outline: none;
    border-color: var(--vinho-escuro);
}

.faq-suggestion-form small {
    display: block;
    text-align: right;
    color: var(--cinza-medio);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.success-message {
    background-color: #e6ffe6;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #4caf50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 1.2rem;
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.download {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--rosa-suave) 0%, var(--dourado-suave) 100%);
    color: var(--preto-suave);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-download {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-download:hover {
    transform: scale(1.05);
}

.btn-download img {
    height: 80px;
}

.btn-download-fallback {
    background-color: var(--branco);
    color: var(--vinho-escuro);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.btn-download-fallback i {
    font-size: 2.5rem;
}

.btn-download-fallback div {
    text-align: left;
}

.btn-download-fallback small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
}

.btn-download-fallback strong {
    display: block;
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--preto-suave);
    color: var(--branco);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--dourado);
}

.footer-section a {
    display: block;
    color: var(--cinza);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--dourado);
}

.footer-section p {
    color: var(--cinza);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cinza);
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cinza);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--vinho-escuro);
}

.modal-content h2 {
    color: var(--vinho-escuro);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-subtitle {
    color: var(--preto-suave);
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--vinho-escuro);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--cinza);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--vinho-escuro);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--preto-suave);
    opacity: 0.7;
    font-size: 0.9rem;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: var(--vinho-escuro);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #ffe6e6;
    color: var(--vermelho-vibrante);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--vermelho-vibrante);
}

/* ========================================
   LOADING
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--branco);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--dourado);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 0.8rem 0;
        position: static;
        box-shadow: none;
    }

    .nav {
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .phone-mockup {
        font-size: 8rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features */
    .features,
    .faq,
    .download {
        padding: 3rem 0;
    }

    .features h2,
    .faq h2,
    .download h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1.2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previne zoom no iOS */
    }
}

@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 0.7rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .phone-mockup {
        font-size: 6rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .features,
    .faq,
    .download {
        padding: 2rem 0;
    }

    .features h2,
    .faq h2,
    .download h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    /* Download */
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    /* Modals */
    .modal-content {
        padding: 1.2rem;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .modal-close {
        font-size: 1.8rem;
    }
}
