/* =============================================
   EMERSON SOUZA — ESTILOS CUSTOMIZADOS
   Adicionar em: Elementor > Site Settings > Custom CSS
   ou Aparência > Personalizar > CSS Adicional
   ============================================= */

/* === VARIÁVEIS GLOBAIS === */
:root {
    --es-black:   #0D0D0D;
    --es-white:   #F5F2EE;
    --es-accent:  #C9A84C;
    --es-mid:     #3A3A3A;
    --es-rule:    #D4CFC8;
    --es-ink:     #1A1A1A;
    --es-bg-alt:  #EDEAE5;
    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body:    'DM Sans', system-ui, sans-serif;
    --ff-mono:    'DM Mono', 'Courier New', monospace;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
    background: var(--es-white);
    color: var(--es-ink);
    font-family: var(--ff-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === TIPOGRAFIA GLOBAL === */
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    line-height: 1.15;
    color: var(--es-black);
}
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; }
p  { font-size: 1.05rem; color: var(--es-mid); }

.es-label {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--es-accent);
    display: block;
    margin-bottom: 16px;
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94),
                transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* === DIVISOR === */
.es-divider { width: 100%; height: 1px; background: var(--es-rule); margin: 0; }

/* =============================================
   NAVBAR
============================================= */
#es-navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 8px 5vw;
    transition: background 0.4s, box-shadow 0.4s;
}
.es-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.es-logo,
.es-nav-logo img {
    height: 100px !important;
    width: auto !important;
    display: block !important;
    flex-shrink: 0;
}
.es-navbar-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}
.es-nav-list, .es-nav-links {
    display: flex; gap: 36px; list-style: none; margin: 0; padding: 0;
}
.es-nav-list a, .es-nav-links a {
    font-family: var(--ff-mono);
    font-size: 0.75rem; letter-spacing: 0.15em;
    text-transform: uppercase; text-decoration: none;
    color: var(--es-mid); position: relative; padding-bottom: 3px;
}
.es-nav-list a::after, .es-nav-links a::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--es-accent); transition: width 0.3s ease;
}
.es-nav-list a:hover::after, .es-nav-links a:hover::after { width: 100%; }
.es-nav-list a:hover, .es-nav-links a:hover { color: var(--es-black); }

.es-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
}
.es-hamburger span {
    width: 24px; height: 1.5px;
    background: var(--es-black); display: block; transition: 0.3s;
}

@media (max-width: 768px) {
    .es-nav-list, .es-nav-links {
        display: none; flex-direction: column;
        position: fixed; top: 0; right: 0; bottom: 0; width: 70%;
        background: var(--es-white); padding: 100px 40px; gap: 28px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    .es-nav-list.open, .es-nav-links.open { display: flex; }
    .es-nav-list a, .es-nav-links a { font-size: 1rem; }
    .es-hamburger { display: flex; }
}

/* =============================================
   BOTÕES GLOBAIS
============================================= */
.es-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-mono);
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    text-decoration: none; padding: 14px 28px;
    border: 1.5px solid var(--es-black);
    color: var(--es-black); background: transparent;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border-radius: 0 !important;
}
.es-btn:hover { background: var(--es-black); color: var(--es-white); }
.es-btn-accent {
    background: var(--es-black); color: var(--es-white) !important;
    border-color: var(--es-black);
}
.es-btn-accent:hover { background: var(--es-accent) !important; border-color: var(--es-accent); }

/* Elementor Button Override */
.elementor-button {
    font-family: var(--ff-mono) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

/* =============================================
   HERO
============================================= */
.es-hero-section.elementor-section {
    padding: 0 !important;
    min-height: 100vh;
}
.es-hero-section > .elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.es-hero-section .elementor-row,
.es-hero-section .elementor-container { min-height: 100vh; }

.es-hero-col-text {
    padding: 120px 5vw 120px calc((100vw - 1200px) / 2 + 5vw);
    position: relative; z-index: 2;
}

.es-hero-title { margin-bottom: 28px; }
.es-hero-title em { font-style: italic; color: var(--es-accent); }

.es-hero-sub {
    font-size: 1.1rem; color: var(--es-mid);
    margin-bottom: 48px; line-height: 1.8; max-width: 48ch;
}

.es-hero-col-image {
    position: relative; overflow: hidden;
}
.es-hero-col-image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    filter: grayscale(15%); transition: filter 0.6s;
}
.es-hero-col-image:hover img { filter: grayscale(0%); }
.es-hero-col-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, var(--es-white) 0%, transparent 30%);
    pointer-events: none;
}

.es-hero-rule {
    position: absolute; left: 0; top: 15%; bottom: 15%;
    width: 1px; background: var(--es-accent); opacity: 0.5; z-index: 2;
}
.es-hero-year {
    position: absolute; bottom: 40px; left: 5vw;
    font-family: var(--ff-mono); font-size: 0.7rem;
    letter-spacing: 0.2em; color: var(--es-rule);
    writing-mode: vertical-rl; z-index: 3;
}

@media (max-width: 900px) {
    .es-hero-col-image { min-height: 60vw; max-height: 480px; }
    .es-hero-col-image::after {
        background: linear-gradient(to bottom, var(--es-white) 0%, transparent 30%);
    }
    .es-hero-col-text { padding: 60px 5vw; }
}

/* =============================================
   SOBRE
============================================= */
.es-sobre-section { background: var(--es-white); }

.es-sobre-sidebar { position: sticky; top: 120px; }

.es-accent-line {
    width: 48px; height: 2px;
    background: var(--es-accent); margin-bottom: 32px;
}

.es-sobre-tags { display: flex; flex-direction: column; gap: 8px; }
.es-sobre-tags span {
    font-family: var(--ff-mono); font-size: 0.7rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--es-mid); padding: 8px 0;
    border-top: 1px solid var(--es-rule);
    display: block;
}

.es-sobre-body p {
    font-size: 1.1rem; line-height: 1.9;
    color: var(--es-mid); margin-bottom: 24px;
}
.es-sobre-body .es-lead {
    font-family: var(--ff-display); font-size: 1.4rem;
    font-style: italic; color: var(--es-black); line-height: 1.6;
}

.es-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px; margin-top: 56px;
    border: 1px solid var(--es-rule);
}
.es-stat {
    padding: 32px 24px; border-right: 1px solid var(--es-rule);
    text-align: center;
}
.es-stat:last-child { border-right: none; }
.es-stat-num {
    font-family: var(--ff-display); font-size: 2.8rem;
    font-weight: 700; color: var(--es-black); display: block;
}
.es-stat-label {
    font-family: var(--ff-mono); font-size: 0.65rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--es-mid); margin-top: 6px; display: block;
}

@media (max-width: 768px) {
    .es-sobre-sidebar { position: static; }
    .es-stats-grid { grid-template-columns: 1fr; }
    .es-stat { border-right: none; border-bottom: 1px solid var(--es-rule); }
}

/* =============================================
   ENTREVISTAS
============================================= */
.es-entrevistas-section.elementor-section { background: var(--es-black) !important; }
.es-entrevistas-section h2,
.es-entrevistas-section .es-label { color: var(--es-white) !important; }
.es-entrevistas-section p { color: rgba(245,242,238,0.6) !important; }

.es-card {
    background: #161616; padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
    height: 100%;
}
.es-card::before {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--es-accent);
    transform: scaleX(0); transition: transform 0.3s;
}
.es-card:hover { background: #1e1e1e; transform: translateY(-4px); }
.es-card:hover::before { transform: scaleX(1); }

.es-card-num {
    font-family: var(--ff-display); font-size: 3.5rem;
    font-weight: 900; color: rgba(201, 168, 76, 0.15);
    line-height: 1; margin-bottom: 16px;
}
.es-card-title {
    font-family: var(--ff-display); font-size: 1.1rem;
    color: var(--es-white); margin-bottom: 12px; line-height: 1.4;
}
.es-card-desc {
    font-size: 0.88rem; color: rgba(245,242,238,0.5);
    margin-bottom: 24px;
}
.es-card-link {
    font-family: var(--ff-mono); font-size: 0.68rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--es-accent); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.es-card-link:hover { opacity: 0.7; }

.es-entrevistas-btn {
    border-color: rgba(255,255,255,0.2) !important;
    color: var(--es-white) !important;
}

/* =============================================
   OBRA / LIVRO
============================================= */
.es-obra-section.elementor-section { background: var(--es-bg-alt) !important; }

.es-livro-cover { position: relative; }
.es-livro-cover img {
    width: 100%; max-width: 480px;
    box-shadow: 24px 24px 0 var(--es-rule), 48px 48px 0 rgba(201,168,76,0.12);
    transition: transform 0.4s, box-shadow 0.4s;
}
.es-livro-cover:hover img {
    transform: translate(-6px, -6px);
    box-shadow: 30px 30px 0 var(--es-rule), 54px 54px 0 rgba(201,168,76,0.18);
}
.es-livro-badge {
    position: absolute; bottom: -20px; right: 20px;
    background: var(--es-black); color: var(--es-white);
    font-family: var(--ff-mono); font-size: 0.65rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    padding: 10px 18px;
}

.es-obra-subtitle {
    font-family: var(--ff-display); font-style: italic;
    font-size: 1.1rem; color: var(--es-accent);
    margin-bottom: 32px; display: block;
}

.es-pub-info {
    display: flex; gap: 32px; margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--es-rule);
    border-bottom: 1px solid var(--es-rule);
    flex-wrap: wrap;
}
.es-pub-item { display: flex; flex-direction: column; gap: 4px; }
.es-pub-key {
    font-family: var(--ff-mono); font-size: 0.65rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--es-accent);
}
.es-pub-val {
    font-family: var(--ff-display); font-size: 1rem; color: var(--es-black);
}

@media (max-width: 768px) {
    .es-livro-cover img { max-width: 320px; }
}

/* =============================================
   INSTAGRAM
============================================= */
.es-instagram-header { text-align: center; margin-bottom: 56px; }

.es-instagram-info {
    background: var(--es-bg-alt); border: 1px solid var(--es-rule);
    padding: 48px; max-width: 720px; margin: 0 auto;
}
.es-instagram-info h3 {
    font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: 16px;
}
.es-instagram-info p { font-size: 0.95rem; margin-bottom: 16px; }

/* Feed (Smash Balloon / outro plugin) */
#instagram-feed-container { margin-top: 48px; }

/* =============================================
   CONTATO
============================================= */
.es-contato-section.elementor-section { background: var(--es-black) !important; }
.es-contato-section h2,
.es-contato-section .es-label { color: var(--es-white) !important; }
.es-contato-section p { color: rgba(245,242,238,0.6) !important; }

.es-social-links { display: flex; flex-direction: column; }
.es-social-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-decoration: none; color: var(--es-white); transition: color 0.2s;
}
.es-social-link:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.es-social-link:hover { color: var(--es-accent); }
.es-social-link-name { font-family: var(--ff-display); font-size: 1.3rem; }
.es-social-link-handle {
    font-family: var(--ff-mono); font-size: 0.7rem;
    letter-spacing: 0.1em; color: rgba(245,242,238,0.35);
}
.es-social-link:hover .es-social-link-handle { color: var(--es-accent); }

.es-form-box {
    background: #161616; padding: 48px;
    border: 1px solid rgba(255,255,255,0.06);
}
.es-form-box h3 {
    font-family: var(--ff-display); font-size: 1.2rem;
    color: var(--es-white); margin-bottom: 8px;
}
.es-form-box .es-form-sub {
    font-size: 0.9rem; color: rgba(245,242,238,0.5); margin-bottom: 32px;
}

/* === Contact Form 7 / WPForms — Estilização === */
.es-form-box .wpcf7-form-control-wrap,
.es-form-box .wpforms-field { margin-bottom: 20px; }

.es-form-box .wpcf7-form label,
.es-form-box .wpforms-field label,
.es-form-box label {
    display: block !important;
    font-family: var(--ff-mono) !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(245,242,238,0.4) !important;
    margin-bottom: 8px !important;
}

.es-form-box .wpcf7-form input[type="text"],
.es-form-box .wpcf7-form input[type="email"],
.es-form-box .wpcf7-form textarea,
.es-form-box .wpforms-field input,
.es-form-box .wpforms-field textarea {
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--es-white) !important;
    padding: 14px 16px !important;
    font-family: var(--ff-body) !important;
    font-size: 0.95rem !important;
    border-radius: 0 !important;
    outline: none !important;
    transition: border-color 0.3s !important;
    box-shadow: none !important;
}

.es-form-box .wpcf7-form input:focus,
.es-form-box .wpcf7-form textarea:focus {
    border-color: var(--es-accent) !important;
}

.es-form-box .wpcf7-form textarea,
.es-form-box .wpforms-field textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.es-form-box .wpcf7-submit,
.es-form-box .wpforms-submit {
    width: 100% !important;
    background: var(--es-accent) !important;
    color: var(--es-black) !important;
    border: none !important;
    padding: 16px !important;
    font-family: var(--ff-mono) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    transition: opacity 0.3s !important;
    cursor: pointer;
}
.es-form-box .wpcf7-submit:hover,
.es-form-box .wpforms-submit:hover { opacity: 0.85; }

/* Spinner CF7 */
.es-form-box .wpcf7-spinner { margin-left: 12px; }

/* =============================================
   FOOTER
============================================= */
.es-footer.elementor-section { 
    background: #090909 !important; 
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.es-footer-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 48px 5vw !important;
    gap: 24px !important;
}
.es-footer-logo {
    flex: 0 0 auto !important;
    height: 48px !important;
    width: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: opacity 0.3s;
}
.es-footer-logo:hover {
    opacity: 1;
}
.es-footer-container p {
    font-family: var(--ff-mono) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.12em !important;
    color: rgba(245,242,238,0.2) !important;
    margin: 0 !important;
    padding: 0 !important;
}
.es-footer-container p:nth-of-type(1) {
    flex: 1 !important;
    text-align: center !important;
}
.es-footer-container p:nth-of-type(2) {
    flex: 0 0 auto !important;
    text-align: right !important;
}

@media (max-width: 768px) {
    .es-footer-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 32px 5vw !important;
    }
    .es-footer-logo {
        margin-bottom: 18px !important;
    }
    .es-footer-container p:nth-of-type(1),
    .es-footer-container p:nth-of-type(2) {
        flex: none !important;
        width: 100%;
        text-align: center !important;
    }
    .es-footer-container p:nth-of-type(2) {
        margin-top: 8px !important;
    }
}

/* =============================================
   SCROLL TO TOP
============================================= */
#es-scroll-top {
    position: fixed; bottom: 36px; right: 36px;
    width: 44px; height: 44px;
    background: var(--es-black); border: 1px solid var(--es-rule);
    color: var(--es-white);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, background 0.3s;
    z-index: 999; text-decoration: none;
}
#es-scroll-top.visible { opacity: 1; pointer-events: auto; }
#es-scroll-top:hover { background: var(--es-accent); border-color: var(--es-accent); }
