/* ═══════════════════════════════════════════════════════════════════════════
   GRUPO ESSENZA — PÁGINA INICIAL
   Face e Medicina da Mulher
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:     #9A623D;
    --brand-d:   #7A4A2C;
    --brand-dd:  #5E3A23;
    --brand-l:   #B8835E;
    --brand-ll:  #D4AE8E;
    --ivory:     #FBF7F3;
    --sand:      #F3E6DB;
    --ink:       #2E2018;
    --muted:     #9A8B80;
    --line:      rgba(154, 98, 61, .18);
    --ease-out:  cubic-bezier(.16, 1, .3, 1);
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --sans:      'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

html, body { min-height: 100%; }
body {
    font-family: var(--sans);
    font-weight: 400;
    background: var(--ivory);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--brand-ll); color: #fff; }

/* ─── PALCO ───────────────────────────────────────────────────────────────── */
.es-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 96px;
    overflow: hidden;
    isolation: isolate;
}

.es-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 620px at 50% 38%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #FBF7F3 0%, #F6ECE3 100%);
}

.es-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}
.es-orb--1 { width: 520px; height: 520px; left: -160px; top: -140px; background: rgba(212, 174, 142, .55); animation: drift 22s ease-in-out infinite; }
.es-orb--2 { width: 600px; height: 600px; right: -200px; bottom: -220px; background: rgba(226, 185, 197, .40); animation: drift 26s ease-in-out infinite reverse; }

.es-ring {
    position: absolute;
    left: 50%; top: 46%;
    border-radius: 50%;
    border: 1px solid var(--line);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ringIn 2.4s var(--ease-out) forwards, breathe 12s ease-in-out infinite 2.4s;
}
.es-ring--1 { width: min(560px, 120vw); height: min(560px, 120vw); animation-delay: .2s, 2.6s; }
.es-ring--2 { width: min(820px, 170vw); height: min(820px, 170vw); animation-delay: .45s, 2.85s; border-color: rgba(154, 98, 61, .11); }
.es-ring--3 { width: min(1100px, 230vw); height: min(1100px, 230vw); animation-delay: .7s, 3.1s; border-color: rgba(154, 98, 61, .07); }

/* ─── CONTEÚDO ────────────────────────────────────────────────────────────── */
.es-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    width: 100%;
}

.es-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--brand-l);
    margin-bottom: 34px;
    padding-left: .42em;
    opacity: 0;
    animation: rise 1.2s var(--ease-out) .25s forwards;
}

.es-mark { line-height: 0; margin-bottom: 34px; }
.es-logo {
    width: clamp(260px, 56vw, 520px);
    height: auto;
    opacity: 0;
    filter: blur(8px);
    animation: reveal 1.8s var(--ease-out) .4s forwards;
}

.es-lead {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.25;
    color: var(--brand-dd);
    opacity: 0;
    animation: rise 1.3s var(--ease-out) .9s forwards;
}
.es-lead em { font-style: italic; color: var(--brand); }

.es-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0 38px;
    color: var(--brand-ll);
    font-size: 7px;
    opacity: 0;
    animation: rise 1.2s var(--ease-out) 1.1s forwards;
}
.es-divider::before,
.es-divider::after {
    content: '';
    width: 56px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-ll));
}
.es-divider::after { transform: scaleX(-1); }

/* ─── CONTATOS ────────────────────────────────────────────────────────────── */
.es-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 620px;
}

.es-contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-align: left;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(237, 228, 220, .95);
    color: var(--ink);
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(74, 46, 29, .04), 0 18px 40px -26px rgba(74, 46, 29, .35);
    overflow: hidden;
    opacity: 0;
    animation: rise 1.2s var(--ease-out) forwards;
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.es-contact:nth-child(1) { animation-delay: 1.25s; }
.es-contact:nth-child(2) { animation-delay: 1.4s; }

.es-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 1s var(--ease-out);
    pointer-events: none;
}
.es-contact:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 131, 94, .45);
    background: #fff;
    box-shadow: 0 2px 4px rgba(74, 46, 29, .04), 0 26px 50px -24px rgba(74, 46, 29, .45);
}
.es-contact:hover::before { transform: translateX(120%); }

.es-contact-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brand);
    background: var(--ivory);
    border: 1px solid rgba(154, 98, 61, .14);
    transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease-out);
}
.es-contact:hover .es-contact-icon { transform: scale(1.06); }

.es-contact--primary .es-contact-icon {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-l), var(--brand) 55%, var(--brand-d));
    box-shadow: 0 10px 20px -10px rgba(122, 74, 44, .8);
}

.es-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.es-contact-text small {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.es-contact-arrow {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--brand-ll);
    transform: translateX(-4px);
    opacity: .6;
    transition: transform .6s var(--ease-out), opacity .4s var(--ease), color .4s var(--ease);
}
.es-contact:hover .es-contact-arrow { transform: translateX(2px); opacity: 1; color: var(--brand); }

/* ─── RODAPÉ ──────────────────────────────────────────────────────────────── */
.es-footer {
    position: absolute;
    left: 0; right: 0; bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 24px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: rise 1.2s var(--ease-out) 1.7s forwards;
}
.es-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brand-ll); }

/* ─── ANIMAÇÕES ───────────────────────────────────────────────────────────── */
@keyframes rise   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; filter: blur(8px); transform: scale(.985); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes ringIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.025); } }
@keyframes drift  { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }

/* ─── RESPONSIVO ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .es-stage { padding: 48px 18px 110px; }
    .es-eyebrow { margin-bottom: 26px; }
    .es-mark { margin-bottom: 26px; }
    .es-contacts { grid-template-columns: 1fr; gap: 12px; }
    .es-divider { margin: 28px 0 30px; }
    .es-footer { bottom: 22px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
    .es-eyebrow, .es-logo, .es-lead, .es-divider, .es-contact, .es-footer, .es-ring { opacity: 1; filter: none; }
}
