/* Variáveis de Cores e Fontes */
:root {
    --primary: #FB695B;
    --secondary: #FF6584;
    --dark: #2F2E41;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-muted: #666;
    --border-radius: 20px;
    --brown: #786770;
    --green: #4D9088;
    --blue: #E3F2FD;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

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

/* Navegação */
nav {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.social-nav{
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 15px;
}

.social-nav a {
    color: var(--primary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
}

.text-feature{
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links ul {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Botões */
button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-large {
    background: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* banner Section */
.banner {
    padding: 40px 0;
    background-color: var(--blue);
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--dark);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.banner-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.banner-text p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.banner-image img {
    width: 100%;
}

/* Seções */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

/* Cards de Passos */
.grid-3 {
    display: grid;
    /* Ajustado para minmax 250px para evitar overflow em mobiles pequenos */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

.card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-radius: 100%;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* CATALOG SLIDER STYLES */
.catalog-section {
    background-color: var(--light);
    overflow: hidden; 
}

.catalog-slider {
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 50px; 
}

.catalog-slider .catalog-item {
    display: grid !important; 
    grid-template-columns: 300px 1fr;
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 10px; 
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    outline: none;
}

.catalog-image {
    height: 350px;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.slick-prev:before, .slick-next:before {
    color: var(--primary) !important;
    font-size: 30px;
    opacity: 1;
}

.slick-prev { left: -40px; }
.slick-next { right: -40px; }

.slick-dots li button:before {
    font-size: 12px;
    color: var(--primary);
}

.slick-dots li.slick-active button:before {
    color: var(--primary);
}

/* HOW IT WORKS */
#how-it-works { background-color: var(--blue); }
#how-it-works .card { background-color: var(--white); }

/* FAQ */
.faq-section {
    background-color: var(--green);
    color: var(--white);
}

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

.faq-list li {
    margin-bottom: 20px;
    color: var(--dark);
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-list h3 {
    color: var(--green);
    margin-bottom: 10px;
}

/* Preços */
.pricing {
    background: var(--brown);
    color: var(--white);
    text-align: center;
}

.price-card {
    padding: 50px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--dark);
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-card.featured {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    z-index: 2;
}

.price-card.featured p { color: rgba(255,255,255,0.9); }
.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0;
    color: var(--primary);
}

.featured .price { color: var(--white); }

.price-btn {
    display: inline-block;
    max-width: 400px;
    margin-top: 50px;
    background: var(--white);
    color: var(--primary);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
}

/* FORMULÁRIO MODAL */
.cta-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cta-form.show { display: flex; }

.cta-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;  
    animation: fadeIn 0.3s ease;
}

.form-success {
    text-align: center;
    padding: 20px 10px;
    animation: scaleIn 0.5s ease-out;
}

.form-success .step-header h1 {
    color: var(--green);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-success .step-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.success-icon-wrapper {
    margin: 30px auto;
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.success-message {
    background: var(--light);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    margin-top: 25px;
}

.success-message p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
}

.success-message b { color: var(--primary); }

.qrcode-btn {
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

/* Inputs */
.input-field {
    margin-bottom: 15px;
    text-align: left;
}

.input-field label, .field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.input-field input, .input-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
}

.input-field input:focus, .input-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 105, 91, 0.1);
}

/* Multi-step */
.form-step { display: none; }
.form-step.step-active { display: block; }
.step-header { text-align: center; margin-bottom: 20px; }

.progress-container {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 33%;
    transition: width 0.4s ease;
}

.form-navigation {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.prev-step {
    background: #eee;
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
}

.prev-step:hover { background: #e0e0e0; }
.next-step, .form-navigation .btn-primary { flex: 2; }

/* Footer */
footer {
    padding: 10px 0;
    color: var(--white);
    background: var(--dark);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Seleção de Histórias */
.story-list-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.story-list-selection li {
    border: 2px solid #eee; 
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.story-list-selection li img {
    border-radius: 8px;
    object-fit: cover;
}

.story-list-selection li:hover {
    border-color: #ddd;
    background-color: var(--light);
}

.story-list-selection li.selected {
    border-color: var(--primary);
    background-color: rgba(251, 105, 91, 0.05); 
    box-shadow: 0 4px 12px rgba(251, 105, 91, 0.1);
}

/* Custom Upload */
.upload-section { margin-bottom: 20px; text-align: left; }

.custom-upload-container input[type="file"] {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); border: 0;
}

.upload-trigger {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; width: 100%; min-height: 120px;
    border: 2px dashed #ddd; border-radius: 15px;
    background-color: var(--light); cursor: pointer;
    transition: all 0.3s ease; padding: 20px; text-align: center;
}

.upload-trigger:hover {
    border-color: var(--primary);
    background-color: rgba(251, 105, 91, 0.03);
}

.upload-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.7; }
.upload-text { font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.upload-filename { font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }
.upload-trigger.hidden { display: none; }

/* Photo Preview */
.preview-container {
    display: none; position: relative; width: 150px; height: 150px;
    margin: 0 auto; border-radius: 16px; border: 5px solid var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); overflow: hidden;
}

.preview-container.show {
    display: block; animation: scaleIn 0.3s ease;
}

.preview-img { width: 100%; height: 100%; object-fit: cover; }

.remove-preview {
    position: absolute; top: 5px; right: 5px;
    background: rgba(255, 255, 255, 0.9); color: var(--primary);
    border-radius: 50%; width: 25px; height: 25px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: bold; cursor: pointer; border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: all 0.2s;
}

.remove-preview:hover { background: var(--white); transform: scale(1.1); }


/* =========================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================= */

@media (max-width: 992px) {
    .banner-text h1 { font-size: 2.5rem; }
    .banner-grid { gap: 30px; }
    .social-nav {
        display: none;
    }
    /* Esconde os links, mas mantém a nav para alinhar Logo + Botão Principal */
    .nav-links ul { display: none; }
}

@media (max-width: 768px) {
    
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0px;
    }
    
    .banner-image { order: -1; margin-bottom: -15px; }
    .section-header h2 { font-size: 2rem; }
    
    .footer-content {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    /* Slider responsivo */
    .catalog-slider .catalog-item {
        grid-template-columns: 1fr;
    }
    
    .catalog-image { height: 200px; }
    
    .catalog-content {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

    .catalog-slider { padding: 0 10px 40px 10px; }

    /* Evitar que o cartão em destaque estoure a tela em celulares */
    .price-card.featured {
        transform: scale(1);
        border: 2px solid var(--primary);
    }
}

@media (max-width: 480px) {
    /* Ajustes refinados para telas bem pequenas */
    .banner-text h1 { font-size: 1.9rem; }
    .banner-text p { font-size: 1.1rem; }
    
    .nav-links .btn-primary { 
        padding: 8px 15px; 
        font-size: 0.9rem; 
    }

    /* Ajuste do Modal para não ficar colado nas bordas */
    .cta-container { 
        padding: 25px 20px; 
        width: 95%; 
    }

    .step-header h1 { font-size: 1.6rem; }

    /* Deixar lista de contos em 1 coluna para não quebrar o texto */
    .story-list-selection {
        grid-template-columns: 1fr;
    }
}