/* ═══════════════════════════════════════════════════════════════════════════
   SERVIÇOS — Estilos específicos da página de serviços
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. HERO ────────────────────────────────────────────────────────────── */
.services-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.services-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services-hero__glow {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    pointer-events: none;
}

.services-hero__glow--1 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(124, 58, 237, .2), transparent 70%);
    top: -20%;
    left: -10%;
    animation: services-glow-1 14s ease-in-out infinite alternate;
}

.services-hero__glow--2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(201, 168, 76, .12), transparent 70%);
    bottom: -10%;
    right: 5%;
    animation: services-glow-2 18s ease-in-out infinite alternate;
}

@keyframes services-glow-1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(4%, 6%) scale(1.1);
    }
}

@keyframes services-glow-2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-5%, -4%) scale(1.08);
    }
}

.services-hero__inner {
    position: relative;
    z-index: 2;
    padding-block: var(--space-5xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.services-hero__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.6;
    padding-inline: 0.04em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero__title em {
    font-style: italic;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    padding-inline-end: 0.06em;
}

.services-hero__subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-style: italic;
    color: var(--text-secondary);
    max-width: 58ch;
    line-height: 1.7;
}

/* Âncoras rápidas */
.services-hero__anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.services-hero__anchor {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(124, 58, 237, .3);
    background: rgba(124, 58, 237, .07);
    font-family: var(--font-elegant);
    font-size: .95rem;
    color: var(--text-secondary);
    transition:
        color var(--duration-fast),
        border-color var(--duration-fast),
        background var(--duration-fast),
        transform var(--duration-fast) var(--ease-spring);
}

.services-hero__anchor:hover {
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, .6);
    background: rgba(124, 58, 237, .15);
    transform: translateY(-2px);
}

.services-hero__anchor span {
    color: var(--color-gold);
    font-size: 1rem;
}


/* ── TEMA ESPAÇO — Hero dos Serviços ─────────────────────────────────────── */
.services-hero--stars {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(196, 168, 245, 0.15);
}

.services-hero--stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/back-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    pointer-events: none;
}

.services-hero--stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(13 6 20 / 75%) 0%, rgba(13, 6, 20, 0.3) 50%, rgb(13 6 20 / 64%) 100%);
    z-index: -1;
    pointer-events: none;
}

@media (min-width: 901px) {
    .services-hero--stars::after {
        inset: auto;
        top: 50%;
        left: 50%;
        width: 150vmax;
        height: 150vmax;
        transform: translate(-50%, -50%) rotate(90deg);
        background-attachment: scroll;
        background-size: contain;
    }

    .services-hero--stars::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgb(13 6 20 / 79%) 0%, rgb(13 6 20 / 76%) 50%, rgb(13 6 20 / 81%) 100%);
        z-index: -1;
        pointer-events: none;
    }
}




/* ── 2. SEÇÕES DE sessões ───────────────────────────────────────────────── */
.service-section {
    padding-block: var(--space-3xl);
    /* era 5xl (8rem) — reduzido para 4rem */
    position: relative;
    overflow: hidden;
}

/* Fundo alternado nas seções pares — contraste perceptível */
.service-section--alt {
    background: linear-gradient(180deg,
            rgba(10, 5, 28, .55) 0%,
            rgba(14, 8, 38, .7) 30%,
            rgba(14, 8, 38, .7) 70%,
            rgba(10, 5, 28, .55) 100%);
    border-top: 1px solid rgba(155, 114, 232, .1);
    border-bottom: 1px solid rgba(155, 114, 232, .1);
    box-shadow:
        inset 0 1px 0 rgba(155, 114, 232, .06),
        inset 0 -1px 0 rgba(155, 114, 232, .06);
}

/* Constelação Familiar — fundo levemente mais escuro */
#constelacao-familiar {
    background: linear-gradient(180deg,
            rgba(8, 4, 22, .5) 0%,
            rgba(12, 6, 30, .65) 30%,
            rgba(12, 6, 30, .65) 70%,
            rgba(8, 4, 22, .5) 100%);
}

/* Psicoterapia — fundo levemente mais escuro */
#psicoterapia {
    background: linear-gradient(180deg,
            rgba(8, 4, 22, .5) 0%,
            rgba(12, 6, 30, .65) 30%,
            rgba(12, 6, 30, .65) 70%,
            rgba(8, 4, 22, .5) 100%);
}

.service-section__inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    /* [visual] [conteúdo] */
    align-items: center;
    gap: var(--space-4xl);
    min-width: 0;
}

/*
 * Nas seções alternadas, inverte a posição usando order + colunas trocadas.
 * Isso mantém o texto sempre alinhado à esquerda (sem o efeito colateral
 * de herança de direction:rtl que desalinhava o conteúdo interno).
 */
.service-section--alt .service-section__inner {
    grid-template-columns: 1.6fr 1fr;
    /* [conteúdo] [visual] */
}

.service-section--alt .service-section__visual {
    order: 2;
    /* move o ícone para a direita */
}

.service-section--alt .service-section__content {
    order: 1;
    /* mantém o conteúdo à esquerda */
}

/* Coluna visual — ícone com anéis */
.service-section__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-section__icon-frame {
    position: relative;
    width: clamp(180px, 22vw, 280px);
    height: clamp(180px, 22vw, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-section__icon {
    font-size: clamp(4rem, 8vw, 7rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: icon-breathe 4s ease-in-out infinite;
}

@keyframes icon-breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.service-section__ring {
    position: absolute;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    animation: ring-spin linear infinite;
}

.service-section__ring--1 {
    inset: 0;
    border-color: rgba(124, 58, 237, .3);
    animation-duration: 18s;
}

.service-section__ring--2 {
    inset: -20px;
    border-color: rgba(201, 168, 76, .15);
    animation-duration: 28s;
    animation-direction: reverse;
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Coluna de conteúdo */
.service-section__title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e8d9fe, var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.service-section__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: var(--space-xl);
    max-width: 58ch;
}

/* Lista de incluso */
.service-section__includes {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    background: rgba(22, 15, 51, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(124, 58, 237, .15),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transition:
        border-color var(--duration-base),
        box-shadow var(--duration-base),
        transform var(--duration-base) var(--ease-spring);
}

/* Borda iridescente animada */
.service-section__includes::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-iridescent);
    background-size: 300% 300%;
    animation: iridescent-shift 6s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Linha de brilho no topo */
.service-section__includes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-iridescent);
    background-size: 300% 300%;
    animation: iridescent-shift 6s ease infinite;
    box-shadow: 0 0 12px rgba(196, 168, 245, .4);
}

.service-section__includes:hover {
    box-shadow:
        0 12px 40px rgba(124, 58, 237, .25),
        0 0 20px rgba(196, 168, 245, .1),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

.service-section__includes-label {
    font-family: var(--font-elegant);
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.service-section__includes-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: .95rem;
    padding-block: .45rem;
    transition: color var(--duration-fast);
}

.service-section__includes-item:hover {
    color: var(--text-primary);
}

.service-section__includes-item span {
    background: var(--gradient-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent-shift 6s ease infinite;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .1rem;
    filter: drop-shadow(0 0 4px rgba(216, 180, 254, .4));
}

/* Metadados — preço / duração / formato */
.service-section__meta {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-xl);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(22, 15, 51, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    box-shadow:
        0 8px 32px rgba(124, 58, 237, .15),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transition:
        box-shadow var(--duration-base),
        transform var(--duration-base) var(--ease-spring);
}

/* Borda iridescente animada */
.service-section__meta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-iridescent);
    background-size: 300% 300%;
    animation: iridescent-shift 6s ease infinite;
    animation-delay: -3s;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.service-section__meta:hover {
    box-shadow:
        0 12px 40px rgba(124, 58, 237, .25),
        0 0 20px rgba(196, 168, 245, .1),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

.service-section__meta-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: var(--space-md) var(--space-lg);
    flex: 1;
}

.service-section__meta-sep {
    width: 1px;
    background: var(--gradient-iridescent);
    background-size: 100% 300%;
    animation: iridescent-shift 6s ease infinite;
    flex-shrink: 0;
    opacity: .4;
}

.service-section__meta-label {
    font-family: var(--font-elegant);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.service-section__meta-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-gold-light);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(237, 216, 152, .35);
}

.service-section__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}


/* ── 3. PSICOTERAPIA — Pacotes ──────────────────────────────────────────── */
.packages__label {
    font-family: var(--font-elegant);
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.packages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.package-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: rgba(32, 20, 60, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-clip: padding-box;
    position: relative;
    box-shadow:
        0 8px 32px rgba(124, 58, 237, .15),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transition:
        transform var(--duration-base) var(--ease-spring),
        box-shadow var(--duration-base);
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: rgba(124, 58, 237, .3);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background var(--duration-base);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(124, 58, 237, .25),
        0 0 20px rgba(196, 168, 245, .1),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.package-card:hover::before {
    background: var(--gradient-iridescent);
    background-size: 300% 300%;
    animation: iridescent-shift 6s ease infinite;
}

/* Card em destaque — 10 sessões */
.package-card--featured {
    background: rgba(201, 168, 76, .12);
    box-shadow:
        0 8px 32px rgba(201, 168, 76, .15),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.package-card--featured::before {
    background: var(--gradient-gold);
    padding: 2px;
}

.package-card--featured:hover {
    box-shadow:
        0 12px 40px rgba(201, 168, 76, .3),
        0 0 20px rgba(212, 175, 112, .2),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.package-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--color-void);
    font-family: var(--font-elegant);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.package-card__header {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.package-card__label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(245, 238, 255, .3);
}

.package-card__savings {
    font-family: var(--font-elegant);
    font-size: .85rem;
    font-style: italic;
    color: var(--color-teal);
    text-shadow: 0 0 6px rgba(216, 180, 254, .4);
}

.package-card__price {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
}

.package-card__original {
    font-family: var(--font-elegant);
    font-size: .9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.package-card__value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold-light);
    line-height: 1;
    text-shadow: 0 0 10px rgba(237, 216, 152, .35);
}

.package-card__per-session {
    font-family: var(--font-elegant);
    font-size: .85rem;
    font-style: italic;
    color: var(--text-secondary);
}


/* ── 4. CTA BAND ────────────────────────────────────────────────────────── */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-5xl);
    border-top: 1px solid rgba(124, 58, 237, .15);
    border-bottom: 1px solid rgba(124, 58, 237, .15);
}

.cta-band__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-band__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124, 58, 237, .12), transparent);
}

.cta-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-3xl);
    position: relative;
    z-index: 2;
}

.cta-band__title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-block: var(--space-md);
    line-height: 1.5;
}

.cta-band__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-band__action {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex-shrink: 0;
}


/* ── RESPONSIVIDADE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .packages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .service-section__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Impede que filhos do grid ultrapassem a largura da tela */
    .service-section__content {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .service-section__title {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* No mobile, reseta o order para empilhar visual acima do conteúdo */
    .service-section--alt .service-section__visual,
    .service-section--alt .service-section__content {
        order: unset;
    }

    .service-section__visual {
        order: -1;
    }

    .service-section__desc {
        margin-inline: auto;
        max-width: 100%;
    }

    .service-section__meta {
        justify-content: center;
    }

    .service-section__cta {
        justify-content: center;
    }

    .service-section__includes {
        text-align: left;
        max-width: 100%;
    }

    .cta-band__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-band__action {
        align-items: center;
    }

    .services-hero__title {
        font-size: 1.7rem;
        line-height: 1.6;
    }

    .service-section__title {
        font-size: 1.8rem;
        line-height: 1.7;
    }
}

@media (max-width: 600px) {
    .packages__grid {
        grid-template-columns: 1fr;
    }

    .services-hero__anchors {
        gap: var(--space-xs);
    }

    .service-section__meta {
        flex-direction: column;
    }

    .service-section__meta-sep {
        width: 100%;
        height: 1px;
    }
}