:root {
    --bg: #faf9f7;
    --bg-alt: #f3f1ed;
    --bg-warm: #f7f4ef;
    --text: #3d3c3a;
    --text-light: #5e5d5a;
    --text-muted: #7a7875;
    --heading: #2c2b28;
    --accent-brown: #8b7b6b;
    --accent-green: #5f7b6e;
    --accent-gold: #b8956a;
    --accent-gold-light: #d4bc96;
    --border-subtle: #e0dcd5;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.09);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --max-width: 1100px;
    --header-height: 72px;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 500; }

.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.text-large { font-size: 1.15rem; line-height: 1.8; }
.text-muted { color: var(--text-muted); }

.highlight {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--accent-brown);
    line-height: 1.5;
    letter-spacing: 0.01em;
    border-left: 3px solid var(--accent-gold-light);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    display: block;
}

.highlight-center {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--accent-brown);
    line-height: 1.5;
    text-align: center;
    max-width: 650px;
    margin: 1.5rem auto;
    display: block;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

a { color: var(--accent-brown); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-green); }

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border: 1.5px solid transparent;
    text-decoration: none;
    line-height: 1.3;
}

.btn-primary { background-color: var(--accent-brown); color: #fff; border-color: var(--accent-brown); }
.btn-primary:hover { background-color: #7a6b5c; border-color: #7a6b5c; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background-color: transparent; color: var(--accent-brown); border-color: var(--accent-brown); }
.btn-outline:hover { background-color: var(--accent-brown); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold { background-color: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }
.btn-gold:hover { background-color: #a6845a; border-color: #a6845a; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition);
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--heading);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.brand-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    border-radius: 50px;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-brown);
    background-color: rgba(139, 123, 107, 0.07);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--heading);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

main { flex: 1; }

.section { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; width: 100%; margin-bottom: 2rem; }
.section-alt { background-color: var(--bg-alt); }
.section-warm { background-color: var(--bg-warm); }
.section-narrow { max-width: 780px; margin: 0 auto; text-align: center; }

.section-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 2rem auto; max-width: 200px; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-image-area { display: flex; justify-content: center; align-items: center; }

.hero-text-area { display: flex; flex-direction: column; gap: 1rem; }
.hero-text-area h1 { margin-bottom: 0.3rem; }
.hero-text-area .subtitle { font-size: 1.1rem; line-height: 1.6; margin-bottom: 0.5rem; }
.hero-text-area .brief { font-style: italic; color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 0.5rem; }

.book-cover {
    display: block;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg), 0 20px 50px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.book-cover-hero { max-width: 340px; }
.book-cover-small { max-width: 200px; }
.book-cover-large { max-width: 280px; }

.author-photo {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.author-photo-resumo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.author-photo-pagina {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-center { text-align: center; }

.gaiola-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem;
}
.gaiola-illustration img {
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* Conteúdo expansível */
.expandable-content {
    display: none;
    text-align: left;
}

.expandable-content.expanded {
    display: block;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; max-width: 550px; margin: 2rem auto 0; text-align: left; }
.contact-form label { font-weight: 500; font-size: 0.9rem; color: var(--text-light); letter-spacing: 0.02em; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background-color: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(139, 123, 107, 0.1);
}
.contact-form textarea { min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; font-style: italic; }

.site-footer { background-color: #eae6df; padding: 3rem 1.5rem 2rem; text-align: center; border-top: 1px solid var(--border-subtle); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--heading); margin-bottom: 0.3rem; }
.footer-tagline { font-style: italic; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; list-style: none; margin-bottom: 1.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-brown); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-image-area { order: -1; }
    .book-cover-hero { max-width: 240px; }
    .hero-text-area { align-items: center; }
    .highlight {
        border-left: none;
        border-top: 3px solid var(--accent-gold-light);
        padding-left: 0;
        padding-top: 1rem;
        text-align: center;
    }
    .section { padding: 3.5rem 1.2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #faf9f7;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 0.8rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s ease;
        z-index: 100;
        border-left: 1px solid var(--border-subtle);
    }
    .nav-menu.open { right: 0; }
    .nav-menu a { font-size: 1.1rem; padding: 0.6rem 0; width: 100%; border-radius: 0; border-bottom: 1px solid var(--border-subtle); }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .hero-text-area h1 { font-size: 1.6rem; }
    .hero-text-area .subtitle { font-size: 0.95rem; }
    .btn { padding: 0.7rem 1.6rem; font-size: 0.9rem; }
    .card { padding: 1.8rem; }
    .section { padding: 2.5rem 1rem; }
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: opacity var(--transition);
}

.menu-overlay.active { display: block; }
.project-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1.5rem;
    max-width: 500px;
    border-left: 3px solid var(--accent-gold-light);
    padding-left: 1rem;
    font-style: normal;
}