/* Componentes reutilizáveis */

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glow-text {
    background: linear-gradient(135deg, var(--brand-violet-light), var(--brand-pink), var(--bf-gold), var(--brand-violet-light));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 4s ease infinite;
}

.glass-card {
    border-radius: var(--glass-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        border-color: var(--glass-border-hover);
        transform: translateY(-4px);
        box-shadow: 0 24px 48px rgba(139, 92, 246, 0.1);
    }
}

/* Eyebrow & headings */
.landing-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.08);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-violet-light);
}

.landing-eyebrow--promo {
    border-color: var(--bf-gold-border);
    background: var(--bf-gold-muted);
    color: var(--bf-gold);
}

.landing-heading {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.landing-heading--sm {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.landing-lead {
    margin: 0.75rem 0 0;
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 52rem;
}

.landing-lead--wide {
    max-width: none;
}

.landing-section {
    padding: clamp(4rem, 8vw, 6.25rem) 0;
}

.landing-section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.landing-section-head--center {
    text-align: center;
}

.landing-section-head--center .landing-lead {
    margin-inline: auto;
}

.landing-section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

/* Buttons */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.75rem;
    border-radius: 9999px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--brand-shadow);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
    transform: translateY(-2px);
}

.btn-brand--promo {
    background: var(--bf-gradient);
    color: #1a1208;
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.75rem;
    border-radius: 9999px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Feature grid */
.feature-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.landing-card {
    height: 100%;
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

.landing-card__title {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.landing-card__text {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.75;
    color: var(--text-muted);
}

.value-pillar {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.value-pillar__title {
    margin: 0 0 0.65rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.value-pillar__text {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.75;
    color: var(--text-muted);
}

/* Depoimentos */
.depo-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .depo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.depo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.depo-card__stars {
    color: #f59e0b;
    letter-spacing: 0.2em;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.depo-card__quote {
    flex: 1;
    margin: 0 0 1.5rem;
    font-size: var(--font-size-sm);
    font-style: italic;
    line-height: 1.65;
    color: #ffffff;
}

.depo-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.depo-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}

.depo-card__name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.depo-card__role {
    font-size: var(--font-size-xs);
    color: var(--text-faint);
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        align-items: start;
    }
}

.faq-item {
    padding: 1.125rem 1.25rem;
}

.faq-item summary,
.faq-item h3 {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    list-style: none;
}

.faq-item h3 {
    cursor: default;
    margin: 0 0 0.35rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0.75rem 0 0;
    font-size: var(--font-size-sm);
    line-height: 1.65;
    color: var(--text-muted);
}

.faq-item a {
    color: var(--brand-violet-light);
    text-decoration: underline;
}

.faq-grid--auto {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .faq-grid--auto {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    }
}

/* Corpo editorial glass — global (SEO, segmentos, utilitárias) */
.article-glass {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.article-glass--spaced {
    margin-top: 2.5rem;
}

.article-section + .article-section {
    margin-top: 2rem;
}

.article-section__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.article-glass h2:not(.article-section__title) {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.article-glass h2:first-child {
    margin-top: 0;
}

.article-glass h3 {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.article-glass p,
.article-glass li {
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--text-muted);
}

.article-glass p + p,
.article-glass ul + p,
.article-glass p + ul,
.article-glass p + ol {
    margin-top: 0.75rem;
}

.article-glass strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-glass ul,
.article-glass ol {
    margin: 0.75rem 0 0;
    padding-left: 1.35rem;
}

.article-glass li + li {
    margin-top: 0.35rem;
}

.article-glass a {
    color: var(--brand-violet-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-glass a:hover {
    color: #ddd6fe;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.article-meta {
    margin: 1rem 0 0;
    font-size: var(--font-size-xs);
    color: var(--text-faint);
}

.zero-markup-callout {
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.15rem, 2.5vw, 1.5rem);
    border-radius: var(--glass-radius);
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(139, 92, 246, 0.05));
}

.zero-markup-callout__badge {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(52, 211, 153, 0.95);
}

.zero-markup-callout__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.zero-markup-callout__text {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--text-muted);
}

.zero-markup-callout__link {
    margin: 0.75rem 0 0;
    font-size: var(--font-size-sm);
}

.zero-markup-callout__link a {
    font-weight: 600;
    color: #6ee7b7;
    text-decoration: underline;
}

.zero-markup-callout__link a:hover {
    color: #a7f3d0;
}

/* Agendamentos destaque — global (home, segmentos, funcionalidades) */
.agendamentos-block {
    position: relative;
    overflow: hidden;
    border-radius: var(--glass-radius);
    border: 1px solid var(--bf-gold-border);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(139, 92, 246, 0.04));
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.agendamentos-block__grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .agendamentos-block__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
        gap: clamp(2rem, 4vw, 2.5rem);
    }
}

.agendamentos-block__copy {
    min-width: 0;
}

.agendamentos-block__badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--bf-gold-border);
    background: var(--bf-gold-muted);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bf-gold);
}

.agendamentos-block__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.agendamentos-block__lead {
    margin: 0 0 1.25rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.65;
    color: #fff;
}

.agendamentos-block__lead strong {
    color: #fff;
    font-weight: 700;
}

.agendamentos-block__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.agendamentos-block__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: clamp(0.8125rem, 2.2vw, 0.875rem);
    line-height: 1.45;
    color: #fff;
}

.agendamentos-block__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: var(--bf-gold-muted);
    color: var(--bf-gold);
    font-size: 0.65rem;
    font-weight: 700;
}

.agendamentos-block__panel {
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.agendamentos-block__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.agendamentos-block__panel-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bf-gold);
}

.agendamentos-block__panel-meta {
    font-size: 0.75rem;
    color: #fff;
}

.agendamentos-block__appts {
    display: grid;
    gap: 0.65rem;
}

.agendamentos-appt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.35rem 0.75rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.agendamentos-appt--gold {
    border-color: var(--bf-gold-border);
}

.agendamentos-appt--violet {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.08);
}

.agendamentos-appt__time {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.agendamentos-appt__time--green {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.agendamentos-appt__time--gold {
    background: var(--bf-gold-muted);
    color: var(--bf-gold);
}

.agendamentos-appt__time--violet {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 1rem;
}

.agendamentos-appt__body {
    min-width: 0;
}

.agendamentos-appt__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agendamentos-appt__meta {
    margin: 0.15rem 0 0;
    font-size: 0.625rem;
    line-height: 1.35;
    color: #fff;
}

.agendamentos-appt__status {
    grid-column: 2;
    justify-self: start;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
}

.agendamentos-appt__status--green { color: #34d399; }
.agendamentos-appt__status--gold { color: var(--bf-gold); }
.agendamentos-appt__status--violet { color: #c4b5fd; }

@media (min-width: 480px) {
    .agendamentos-appt {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 0.75rem;
    }

    .agendamentos-appt__time {
        grid-row: auto;
    }

    .agendamentos-appt__status {
        grid-column: auto;
        justify-self: end;
        white-space: nowrap;
    }
}

/* Modal de lead — global (base.html) */
.lead-modal {
    background: rgba(4, 4, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lead-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 26rem;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
    border: 1px solid var(--glass-border);
    background: var(--bg-elevated);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
    .lead-modal__dialog {
        border-radius: var(--glass-radius);
        max-height: none;
    }
}

.lead-modal__banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, rgba(26, 18, 8, 0.95) 0%, rgba(124, 94, 18, 0.85) 50%, rgba(26, 18, 8, 0.95) 100%);
    border-bottom: 1px solid var(--bf-gold-border);
}

.lead-modal__banner-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bf-gold);
}

.lead-modal__banner-off {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.lead-modal__body {
    position: relative;
    padding: 1.25rem 1.25rem 1.5rem;
    padding-top: 2.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

@media (min-width: 640px) {
    .lead-modal__body {
        padding: 2rem 2rem 2.25rem;
        padding-top: 2rem;
    }
}

.lead-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.lead-modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.lead-modal__title {
    margin: 0;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    padding-right: 2rem;
}

.lead-modal__subtitle {
    margin: 0.5rem 0 0;
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    line-height: 1.5;
    color: #fff;
}

.lead-modal__alert {
    margin: 1rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.lead-modal__alert--error {
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
}

.lead-modal__alert--success {
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.lead-modal__form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

#lead-modal label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

#lead-modal input[type="text"],
#lead-modal input[type="tel"],
#lead-modal select {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 0.65rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lead-modal input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#lead-modal input:focus,
#lead-modal select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

#lead-modal .lead-phone-ddi {
    padding-left: 0.45rem;
    padding-right: 0.35rem;
    font-size: 0.875rem;
}

.lead-modal__submit {
    width: 100%;
    min-height: 3rem;
    margin-top: 0.25rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1208;
    background: var(--bf-gradient);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.lead-modal__submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

#lead-modal .lead-field-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #fca5a5;
}

@supports (padding: env(safe-area-inset-bottom)) {
    .lead-modal__body {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}
