/* ════════════════════════════════════════
   ER STUDIO — index.css (hero + admin)
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "text image"
        "btns image";
    align-content: center;
    padding: 7rem 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-text  { grid-area: text; align-self: end; padding-bottom: 1rem; }
.hero-image { grid-area: image; align-self: center; }
.hero-btns  { grid-area: btns; align-self: start; padding-left: 11rem; margin-top: -2.5rem; position: relative; z-index: 1; }

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 80% 50%, rgba(201, 145, 122, .18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232, 197, 181, .22) 0%, transparent 60%);
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 1;
    padding-left: 8rem;
}

.hero-tag {
    display: inline-block;
    font-size: .77rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1.4rem;
    padding-left: 2rem;
    position: relative;
}

.hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.4rem;
    height: 1px;
    background: var(--rose);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--brown);
    margin-bottom: 1.6rem;
}

.hero-title em {
    display: block;
    font-style: normal;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: .95em;
    color: var(--dourado);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-left: -2.3rem;
}

.hero-sub {
    font-size: .99rem;
    line-height: 1.8;
    color: var(--brown-lt);
    max-width: 38ch;
    margin-bottom: 2.8rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Imagem hero (bolha animada) */
.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-frame {
    width: 510px;
    height: 630px;
    background: linear-gradient(145deg, var(--nude-dk) 0%, var(--rose-lt) 100%);
    border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(107, 76, 59, .18);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
    }

    33% {
        border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    }

    66% {
        border-radius: 45% 55% 60% 40% / 45% 55% 45% 55%;
    }
}

.hero-img-inner {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    opacity: .25;
    color: var(--brown);
    user-select: none;
    font-style: italic;
}

.hero-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 110px;
    height: 110px;
    background: var(--rose);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(201, 145, 122, .4);
    animation: spin-slow 12s linear infinite;
}

.hero-badge-inner {
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    line-height: 1.6;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

/* ════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════ */
#admin {
    background: var(--white);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.4rem;
}

.admin-login-gate {
    background: var(--nude);
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.admin-login-gate h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: .6rem;
}

.admin-login-gate p {
    color: var(--brown-lt);
    font-size: .88rem;
    margin-bottom: 1.8rem;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.stat-card {
    background: var(--nude);
    border-radius: 16px;
    padding: 1.4rem;
    border-left: 3px solid var(--rose);
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    color: var(--brown);
}

.stat-label {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brown-lt);
    margin-top: .2rem;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
}

.agenda-table th {
    text-align: left;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brown-lt);
    padding: .8rem 1rem;
    border-bottom: 1.5px solid var(--nude-dk);
}

.agenda-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--nude-dk);
    font-size: .88rem;
    color: var(--brown);
    vertical-align: middle;
}

.agenda-table tr:hover td {
    background: var(--nude);
}

.badge {
    display: inline-block;
    padding: .25rem .8rem;
    border-radius: 20px;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.badge-confirmed {
    background: rgba(201, 145, 122, .15);
    color: var(--rose);
}

.badge-pending {
    background: rgba(107, 76, 59, .1);
    color: var(--brown-lt);
}

/* ════════════════════════════════════════
   RESPONSIVIDADE INDEX
   ════════════════════════════════════════ */
@media (max-width: 900px) {
    #hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 6rem 2rem 3rem;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-title em {
        display: inline;
        margin-left: 0;
    }

    .hero-badge {
        display: none;
    }

    .hero-text {
        padding-left: 0;
        width: 100%;
        text-align: center;
    }

    .hero-sub {
        font-size: 1.05rem;
        color: var(--brown);
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-image {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-img-frame {
        width: 100%;
        height: 380px;
    }

    .hero-btns {
        justify-content: center;
        padding-left: 0;
        width: 100%;
        display: flex;
        margin-top: 1rem;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
}