/* ==========================================================================
   Encontro Terapêutico Renascer — página do evento (/renascer/)
   Identidade própria (Fraunces + DM Sans, com modo escuro), seguindo o
   layout da página inicial: contêiner de 1040px, blocos arredondados e grades.
   ========================================================================== */

:root {
    color-scheme: light;
    --bg: #f8f2e8;
    --surface: #efe3d1;
    --ink: #4a3426;
    --muted: #7a6050;
    --line: #dcc9af;
    --soft: #b08968;
    --btn: #7a5238;
    --btn-hover: #66432d;
    --on-btn: #fff8ef;
    --chip: #e8d6be;
    --header-bg: rgba(248, 242, 232, 0.92);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --round: clamp(36px, 7vw, 84px);
    --inset: clamp(8px, 2vw, 24px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #2a1f18;
        --surface: #382a21;
        --ink: #f1e5d6;
        --muted: #c9b29d;
        --line: #5a4331;
        --soft: #c9a27e;
        --btn: #e3b58b;
        --btn-hover: #ecc49f;
        --on-btn: #2e1f16;
        --chip: #44332a;
        --header-bg: rgba(42, 31, 24, 0.92);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #2a1f18;
    --surface: #382a21;
    --ink: #f1e5d6;
    --muted: #c9b29d;
    --line: #5a4331;
    --soft: #c9a27e;
    --btn: #e3b58b;
    --btn-hover: #ecc49f;
    --on-btn: #2e1f16;
    --chip: #44332a;
    --header-bg: rgba(42, 31, 24, 0.92);
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: hidden;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-left, 0px));
}

h1,
h2,
h3 {
    font-family: var(--serif);
    margin: 0;
    line-height: 1.1;
}

h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    max-width: 26ch;
    margin-bottom: 18px;
}

p {
    margin: 0 0 14px;
    max-width: 62ch;
}

a {
    color: inherit;
}

/* Barra de topo (mesmo padrão da página inicial) */
.top {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(44px, 8vw, 96px) 0 clamp(52px, 8vw, 88px);
}

.hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: 6%;
    width: min(52vw, 460px);
    aspect-ratio: 1;
    background: var(--chip);
    border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.kicker {
    font-size: 17px;
    font-weight: 500;
    color: var(--soft);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(56px, 11vw, 112px);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.lead {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.4;
    max-width: 30ch;
    margin-bottom: 26px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.chips li {
    background: var(--chip);
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 500;
    font-size: 16px;
}

/* Quadro de informações do evento (só no desktop; no mobile os chips cumprem esse papel) */
.info {
    display: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 30px 32px;
    box-shadow: 0 10px 30px rgba(74, 52, 38, 0.08);
}

.info dl {
    margin: 0 0 18px;
    display: grid;
    gap: 16px;
}

.info dl div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.info dt {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soft);
}

.info dd {
    margin: 2px 0 0;
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.3;
}

.info p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Botão */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn);
    color: var(--on-btn);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    padding: 16px 28px;
    border-radius: 999px;
    min-height: 48px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.btn.s {
    font-size: 15px;
    padding: 10px 18px;
    min-height: 40px;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--soft);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline-color: var(--ink);
}

/* Seções */
.sec {
    padding: clamp(56px, 8vw, 96px) 0;
}

.alt {
    background: var(--surface);
    border-radius: var(--round);
    margin: 0 var(--inset);
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list li {
    padding: 14px 0 14px 30px;
    border-top: 1px solid var(--line);
    position: relative;
    line-height: 1.4;
}

.list li:last-child {
    border-bottom: 1px solid var(--line);
}

.list.big li {
    font-family: var(--serif);
    font-size: 21px;
}

.list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: calc(14px + 0.7em - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--soft);
}

/* Quem conduz */
.me {
    display: grid;
    gap: 22px;
    align-items: center;
}

.photo {
    width: 180px;
    height: 220px;
    border-radius: 90px 90px 0 0;
    border: 2px solid var(--soft);
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--chip);
}

.card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 22px;
    background: var(--bg);
    margin-top: 22px;
}

.card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card p {
    color: var(--muted);
    margin: 0;
}

/* Depoimentos */
.quote {
    margin: 0 0 16px;
    padding: 20px 22px;
    border-left: 3px solid var(--soft);
    background: var(--surface);
    border-radius: 0 16px 16px 0;
}

.quote blockquote {
    margin: 0;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.5;
}

.quote figcaption {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

/* FAQ */
details {
    border-top: 1px solid var(--line);
}

details:last-of-type {
    border-bottom: 1px solid var(--line);
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 36px 16px 0;
    position: relative;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 28px;
    line-height: 1;
    color: var(--soft);
    font-family: var(--sans);
}

details[open] summary::after {
    content: "−";
}

details p {
    margin: 0 0 18px;
    color: var(--muted);
}

/* CTA final (mesmo bloco arredondado do "final" da página inicial) */
.cta {
    margin: clamp(40px, 6vw, 72px) var(--inset);
    padding: clamp(56px, 8vw, 96px) 0;
    text-align: center;
    background: var(--chip);
    border-radius: var(--round);
}

.cta h2 {
    margin: 0 auto 12px;
}

.cta p {
    max-width: 44ch;
    margin: 0 auto 26px;
    color: var(--muted);
}

/* Rodapé */
footer {
    padding: 32px 0 40px;
    font-size: 15px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

footer p {
    margin: 0 auto 6px;
}

footer a {
    color: var(--ink);
    font-weight: 500;
}

/* Tablet */
@media (min-width: 640px) {
    .me {
        grid-template-columns: 180px 1fr;
        gap: 32px;
    }
}

/* Desktop: aproveita a largura como a página inicial */
@media (min-width: 900px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 56px;
        align-items: center;
    }

    .hero .chips {
        display: none;
    }

    .info {
        display: block;
    }

    /* "O que vamos viver": 3 cartões lado a lado */
    .list.big {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-top: 28px;
        counter-reset: item;
    }

    .list.big li,
    .list.big li:last-child {
        counter-increment: item;
        border: 1px solid var(--line);
        border-radius: 28px;
        background: var(--bg);
        padding: 28px;
        font-size: 22px;
        line-height: 1.3;
    }

    .list.big li::before {
        content: counter(item, decimal-leading-zero);
        position: static;
        display: block;
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        color: var(--soft);
        font-family: var(--sans);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.08em;
        margin-bottom: 12px;
    }

    /* "Pra você se": 2 colunas */
    .list:not(.big) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }

    .list:not(.big) li:nth-last-child(2):nth-child(odd) {
        border-bottom: 1px solid var(--line);
    }

    /* Quem conduz: foto maior + cartão da Gabriella ao lado do texto */
    .me {
        grid-template-columns: 260px 1fr;
        gap: 48px;
        align-items: start;
    }

    .photo {
        width: 260px;
        height: 318px;
        border-radius: 130px 130px 0 0;
    }

    .me + .card {
        margin: 28px 0 0 308px;
    }

    /* Depoimentos: 3 colunas */
    .quotes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-top: 28px;
    }

    .quote {
        margin: 0;
        background: var(--bg);
        border: 1px solid var(--line);
        border-left: 3px solid var(--soft);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Dúvidas: título à esquerda, perguntas à direita */
    .faq {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 56px;
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
