/* ══════════════════════════════════════════════════════════════
   SERVIÇOS PAGE — Design System v2
   ══════════════════════════════════════════════════════════════ */

main { display: block; } /* Ensure sticky works correctly by overriding base.css flex */

/* ── Page Hero blobs ─────────────────────────────────────────── */
.page-hero__blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle at 40% 40%, var(--sage-100), transparent 70%);
    top: -140px; right: -120px;
    opacity: 0.7;
}

.page-hero__blob-2 {
    width: 260px; height: 260px;
    background: var(--clay-100);
    bottom: -100px; left: 15%;
    opacity: 0.3;
}

/* ── Page Hero adjustments ────────────────────────────────── */
.page-hero { padding-bottom: 48px; }

/* ── Mode switcher sticky bar ───────────────────────────────── */
.mode-switcher-bar {
    position: sticky;
    top: calc(var(--header-h) - 1px);
    z-index: 90;
    background: var(--bg);
    padding: 16px 0;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color var(--dur-base), background-color var(--dur-base), backdrop-filter var(--dur-base);
    text-align: center;
}

.mode-switcher-bar.is-stuck {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mode-switcher {
    display: inline-flex;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.mode-switcher__pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--dur-fast);
}

.mode-switcher__pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
    flex-shrink: 0;
    transition: background var(--dur-fast), opacity var(--dur-fast);
}

.mode-switcher__pill:hover {
    color: var(--text);
}

.mode-switcher__pill.is-active {
    background: var(--primary);
    color: #ffffff;
}

.mode-switcher__pill.is-active::before {
    background: #ffffff;
    opacity: 1;
}

/* ── Responsive adjustments for mode-switcher ───────────────── */
@media (max-width: 768px) {
    .mode-switcher-bar {
        padding: 12px 0;
    }
    .mode-switcher {
        display: flex;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        border-radius: var(--radius-lg);
        margin-top: 0;
    }
    .mode-switcher::-webkit-scrollbar {
        display: none;
    }
    .mode-switcher__pill {
        flex: 1 0 auto;
        padding: 10px 16px;
        font-size: 0.78rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mode-switcher {
        margin-top: 0;
    }
    .mode-switcher__pill {
        padding: 8px 12px;
        gap: 6px;
    }
}

/* ── Tab panels ─────────────────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── Consult sections (online / presencial) ─────────────────── */
.consult { padding: 64px 0; background: var(--cream-50); }
.consult__head { text-align: center; margin-bottom: 56px; }
.consult__head .eyebrow { margin-bottom: 14px; }

.consult__head h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-top: 14px;
}

.consult__head p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--text-body);
    line-height: 1.75;
}

.consult__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: stretch;
    max-width: 1040px;
    margin: 0 auto;
}

/* ── Price cards ────────────────────────────────────────────── */
.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--dur-base);
}

.price-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.price-card__label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.price-card__price {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    margin-top: 6px;
}

.price-card__price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 2px;
    font-weight: 400;
}

.price-card__duration { font-size: 0.82rem; color: var(--text-body); }

/* ── Perks panel ────────────────────────────────────────────── */
.perks {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.perks__label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
}

.perks ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.perks li {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}

.perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 1px;
    background: var(--primary);
}

/* ── Online Consultas plans grid ─────────────────────────────── */
.plans { padding: 40px 0 0; }

.plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    position: relative;
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.plan:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.plan--highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}
.plan--highlighted:hover {
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.plan__name {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.plan__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.6;
}

.plan__price {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan__price small {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 6px;
    letter-spacing: 0;
}

.plan__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.plan__feat {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan__feat li {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}

.plan__feat li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 1px;
    background: var(--primary);
}

.plan__cta { margin-top: auto; }

.plan__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Packages sub-section ───────────────────────────────────── */
.packages {
    margin-top: 88px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
}

.packages__head { text-align: center; margin-bottom: 48px; }

.packages__head h3 {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-top: 14px;
}

.packages__head p { margin-top: 14px; color: var(--text-body); }

.packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.pack {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: all var(--dur-base);
}

.pack:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pack--highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}
.pack--highlighted:hover {
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.pack__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pack__name {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
}

.dur {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 6px;
}

.pack__desc {
    margin-top: 16px;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.65;
    min-height: 72px;
}

.pack__price-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    position: relative;
    padding-bottom: 24px;
}

.pack__save {
    position: absolute;
    top: -12px;
    left: 0;
    background: var(--sage-50);
    color: var(--sage-700);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.pack__price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pack__old-price {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 300;
}

.pack__price {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.pack__price-note {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pack__cta { margin-top: auto; }

/* ── Presencial section ─────────────────────────────────────── */
.presencial { background: var(--cream-50); padding: 64px 0; }

/* ── How it works section ───────────────────────────────────── */
.how { padding: 64px 0; background: var(--cream-100); }

.how__head {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
}

.how__head h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.how__head p { font-size: 1rem; color: var(--text-body); line-height: 1.75; }

.how__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.how__step-num {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
}

.how__step h4 { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.how__step p { margin-top: 8px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Communities section (kept) ─────────────────────────────── */
.communities-section {
    padding: 64px 0;
    background: var(--cream-50);
}

.community-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 860px;
    margin: 48px auto 0;
}

.community-card {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.community-card--highlight {
    border-color: var(--sage-500);
    box-shadow: 0 0 0 1px var(--sage-500);
}

.community-card__lock {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--cream-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.community-card--highlight .community-card__lock {
    background: var(--sage-50);
    color: var(--sage-700);
}

.community-card__title { font-size: 1.25rem; font-weight: 400; color: var(--text); }

.community-card__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-body);
    flex: 1;
    white-space: pre-line;
}

/* ── Challenges section (kept) ──────────────────────────────── */
.challenges-section {
    padding: 112px 0;
    background: var(--surface);
}

.challenges-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.challenges-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-body);
    margin: 16px 0 32px;
    white-space: pre-line;
}

.challenge-form { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.challenge-form-row { display: flex; gap: 12px; width: 100%; max-width: 480px; }

.challenge-input {
    flex: 1;
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    outline: none;
}

.challenge-input::placeholder { color: var(--text-muted); }

.challenge-input:focus {
    border-color: var(--sage-500);
    box-shadow: 0 0 0 4px rgba(139, 154, 91, 0.12);
}

.challenge-submit { white-space: nowrap; flex-shrink: 0; }

.challenge-result {
    font-size: 0.875rem;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    text-align: center;
    line-height: 1.4;
}

.challenge-result--success {
    background: color-mix(in srgb, var(--sage-500) 15%, transparent);
    color: var(--sage-700);
    border: 1px solid color-mix(in srgb, var(--sage-500) 40%, transparent);
}

.challenge-result--error {
    background: color-mix(in srgb, var(--terra-500) 8%, transparent);
    color: var(--terra-700);
    border: 1px solid color-mix(in srgb, var(--terra-500) 25%, transparent);
}

/* ── CTA Banner (identical pattern to About page) ────────────── */
.about-cta {
    padding: 64px 0;
    text-align: center;
}

.about-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 48px;
    background: var(--terra-500);
    color: #fff;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.about-cta__inner::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-blob);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.about-cta__inner > * { position: relative; z-index: 1; }

.about-cta .eyebrow { color: rgba(255,255,255,0.7); }

.about-cta h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 14px;
}

.about-cta p {
    color: rgba(255,255,255,0.82);
    margin: 18px auto 32px;
    max-width: 480px;
}

.about-cta .btn--primary {
    background: #fff;
    color: var(--terra-700);
    border-color: #fff;
}

.about-cta .btn--primary:hover {
    background: var(--cream-100);
    border-color: var(--cream-100);
}

.about-cta .btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}

.about-cta .btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
    .consult__grid { grid-template-columns: 1fr; gap: 40px; }
    .packages__grid, .packs { grid-template-columns: 1fr; }
    .plans__grid { grid-template-columns: 1fr; }
    .how__head { grid-template-columns: 1fr; gap: 24px; }
    .how__grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 720px) {
    .about-cta { padding: 80px 0; }
    .about-cta__inner { padding: 48px 28px; border-radius: var(--radius-lg); }
    .clinics-grid { grid-template-columns: 1fr; }

    .community-cards { grid-template-columns: 1fr; }
    .price-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .how__grid { grid-template-columns: 1fr; }
    .price-cards { grid-template-columns: 1fr; }
    .challenge-form-row { flex-direction: column; }
    .challenge-submit { width: 100%; }
}
