/* Estilos gerais */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --background-color: #F7F9FC;
    --text-color: #2D3748;
    --accent-color: #FFD166;
    --white: #FFFFFF;
    --light-gray: #E2E8F0;
    --medium-gray: #A0AEC0;
    --dark-gray: #4A5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--dark-gray);
}

/* Botões */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background-color: #3dbdb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-tertiary:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cart-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/pattern.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Como Funciona */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Opções de Livros */
.book-options {
    padding: 5rem 0;
    background-color: var(--white);
}

.options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.option-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.option-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.option-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

.option-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features {
    margin-bottom: 2rem;
}

.features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Exemplos */
.examples {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.example-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.example-item {
    flex: 1;
    min-width: 280px;
}

.example-before-after {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.example-before, .example-after {
    position: relative;
}

.example-before img, .example-after img {
    width: 100%;
    border-radius: var(--border-radius);
}

.label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Depoimentos */
.testimonials {
    padding: 5rem 0;
    background-color: var(--white);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial {
    flex: 1;
    min-width: 280px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Criar Livro */
.create-book {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.create-steps {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.create-step {
    padding: 2rem;
    display: none;
}

.create-step.active {
    display: block;
}

.create-step h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.options-select {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-select {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.option-select input[type="radio"] {
    display: none;
}

.option-select label {
    display: block;
    padding: 1.5rem;
    background-color: var(--background-color);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-select input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
}

.option-select label h4 {
    margin-bottom: 0.5rem;
}

.upload-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.uploaded-photos {
    margin-bottom: 2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

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

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.order-summary {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: none;
    margin-top: 1rem;
}

.production-info {
    background-color: rgba(78, 205, 196, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin-top: 2rem;
}

/* Sobre Nós */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

/* CTA */
.cta {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 2;
    min-width: 250px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Responsividade */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    nav {
        display: none;
    }
    
    .option-card.featured {
        transform: none;
    }
    
    .option-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .step, .option-card, .testimonial {
        min-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}
