/* =========================================
   1. Variáveis e Reset 
   ========================================= */
:root {
    --bg-paper: #f9f7f2;
    --bg-white: #ffffff;
    --text-ink: #2c2c2c;
    --accent-gold: #c5a059;
    --gray-light: #e0e0e0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-paper);
    color: var(--text-ink);
    line-height: 1.8;
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

section {
    scroll-margin-top: 80px;
}

/* =========================================
   2. Header
   ========================================= */
#main-header {
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 50px;
}

#brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-ink);
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--accent-gold);
}

#navbar ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

#navbar a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

#navbar a:hover {
    color: var(--accent-gold);
}

.btn-nav {
    border: 1px solid var(--text-ink);
    padding: 10px 25px;
    border-radius: 0;
    font-weight: bold;
    color: var(--text-ink) !important;
    font-size: 0.8rem !important;
}

.btn-nav:hover {
    background: var(--text-ink);
    color: #fff !important;
}

#mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-ink);
}

/* =========================================
   3. Hero Section
   ========================================= */
#lancamento {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 50px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.book-cover {
    flex: 1;
    position: relative;
    max-width: 450px;
}

.book-cover img {
    width: 100%;
    border-radius: 2px 5px 5px 2px;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-15deg);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.book-cover:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.02) translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

.hero-text {
    flex: 1.2;
}

.tagline {
    display: block;
    font-family: var(--font-body);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-ink);
}

.text-italic {
    font-style: italic;
    color: #555;
    font-weight: 400;
}

.synopsis {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 25px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-cta {
    background: var(--text-ink);
    color: #fff;
    padding: 18px 45px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

.retailers {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

.retailers i {
    font-size: 1.6rem;
    color: var(--text-ink);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
}

.retailers i:hover {
    color: var(--accent-gold);
    opacity: 1;
    transform: scale(1.1);
}

/* =========================================
   4. Sobre
   ========================================= */
#bio {
    padding: 100px 0;
    background: #fff;
}

.bio-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.bio-img img {
    width: 100%;
    max-width: 450px;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
    border-radius: 2px;
}

.bio-img img:hover {
    filter: grayscale(0%);
}

.bio-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.bio-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

/* =========================================
   5. Livros
   ========================================= */
#livros {
    padding: 120px 0;
    background-color: var(--bg-paper);
}

.section-title.center {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 70px;
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.book-card {
    background: #fff;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.3);
}

.card-img {
    background: #fdfbf7;
    padding: 40px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card-img img {
    height: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: 0.4s;
}

.book-card:hover .card-img img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-info {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text-ink);
}

.genre {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.btn-book {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #ddd;
    color: var(--text-ink);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    transition: 0.3s;
    margin-top: auto;
}

.btn-book:hover {
    background: var(--text-ink);
    color: #fff;
    border-color: var(--text-ink);
}

/* =========================================
   6. Contato
   ========================================= */
#contato {
    background: #fff;
    color: var(--text-ink);
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#contato .section-title {
    color: var(--text-ink);
}

#contato .section-subtitle {
    color: #888;
    margin-bottom: 60px;
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    padding: 40px;
    border: 1px solid #eee;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: block;
}

.contact-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--text-ink);
}

.contact-item a {
    color: #666;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.contact-item a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* =========================================
   7. Footer
   ========================================= */
footer {
    background: var(--bg-paper);
    padding: 25px 0;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

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

.developer a {
    color: var(--text-ink);
    font-weight: 700;
    border-bottom: 1px solid transparent;
}

.developer a:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* =========================================
   8. Mobile
   ========================================= */
@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block;
    }

    #main-header .container {
        padding: 0 20px;
    }

    #navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    #navbar.active {
        display: block;
    }

    #navbar ul {
        flex-direction: column;
        padding: 40px;
        gap: 25px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .book-cover {
        margin-bottom: 20px;
        max-width: 280px;
    }

    .synopsis {
        border-left: none;
        padding-left: 0;
    }

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

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .retailers {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .bio-content {
        flex-direction: column;
        gap: 40px;
    }

    .bio-img img {
        max-width: 100%;
    }

    .books-grid {
        gap: 30px;
    }

    .card-img img {
        height: 220px;
    }

    .contact-box {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item {
        width: 100%;
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}