/* ============================================
   Esthefany Ribeiro — Luxury Minimal Website
   ============================================ */

:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f3f1ed;
    --color-dark: #1a1a2e;
    --color-text: #2c2c3a;
    --color-text-light: #6b6b7b;
    --color-accent: #b8860b;
    --color-accent-light: #d4a843;
    --color-white: #ffffff;
    --color-border: #e2e0db;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

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

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

/* ---- Hero ---- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-border));
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: 32px;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 32px;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover {
    color: var(--color-accent);
}

/* ---- Section Shared ---- */

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

/* ---- Book Section ---- */

.book {
    padding: 140px 0;
    background: var(--color-white);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.book-cover img {
    max-width: 380px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(26, 26, 46, 0.12),
        0 10px 20px rgba(26, 26, 46, 0.08);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.book-cover img:hover {
    transform: translateY(-8px);
    box-shadow:
        0 40px 80px rgba(26, 26, 46, 0.16),
        0 15px 30px rgba(26, 26, 46, 0.1);
}

.book-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.book-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.book-divider {
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 24px;
}

.book-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.book-description:last-of-type {
    margin-bottom: 36px;
}

.book-format {
    margin-bottom: 32px;
}

.book-format:last-child {
    margin-bottom: 0;
}

.format-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.book-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

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

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.2);
}

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

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.2);
}

/* ---- Author Section ---- */

.author {
    padding: 140px 0;
    background: var(--color-bg);
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.author-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.author-divider {
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 24px;
}

.author-bio {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.author-bio em {
    font-style: italic;
    color: var(--color-text);
}

.author-photo img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(26, 26, 46, 0.1),
        0 10px 20px rgba(26, 26, 46, 0.06);
}

/* ---- Contact Section ---- */

.contact {
    padding: 140px 0;
    background: var(--color-white);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 6px;
    margin-bottom: 56px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--color-accent);
}

.contact-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 80px;
    border: 1.5px solid var(--color-dark);
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.35s var(--ease-out);
}

.contact-social a svg {
    flex-shrink: 0;
    display: block;
}

.contact-social a span {
    line-height: 1;
}

.contact-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

/* ---- Footer ---- */

.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .book-grid,
    .author-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .book-cover {
        order: -1;
    }

    .book-cover img {
        max-width: 280px;
    }

    .book-divider,
    .author-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .book-actions {
        justify-content: center;
    }

    .author-photo {
        order: -1;
    }

    .author-photo img {
        max-width: 320px;
    }

    .book,
    .author,
    .contact {
        padding: 100px 0;
    }

}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .btn {
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

}
