/**
 * VT Public UI primitives — shared across all marketing pages (v1.5)
 */

/* ── Buttons ── */
.btn-vt-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    background: var(--vt-gradient, linear-gradient(135deg, #1668B2, #1B9E77, #37B54A));
    box-shadow: 0 10px 28px rgba(22, 104, 178, 0.28);
    transition: transform var(--duration-normal, 0.28s) ease, box-shadow var(--duration-normal, 0.28s) ease;
}

.btn-vt-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 104, 178, 0.38);
}

.btn-vt-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    color: var(--vt-blue, #1668B2) !important;
    border: 2px solid var(--vt-blue, #1668B2);
    background: transparent;
    transition: background var(--duration-normal, 0.28s) ease, color var(--duration-normal, 0.28s) ease;
}

.btn-vt-ghost:hover {
    background: rgba(22, 104, 178, 0.08);
}

/* ── Section headers (listing pages) ── */
.vt-section-hero {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.vt-section-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vt-blue, #1668B2);
    margin-bottom: 1rem;
}

.vt-section-hero__title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-text, #0f172a);
}

.vt-section-hero__lead {
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-text-muted, #64748b);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Gradient text utilities ── */
.text-gradient-vt {
    display: inline-block;
    line-height: 1.22;
    padding-bottom: 0.1em;
    background: var(--vt-gradient, linear-gradient(135deg, #1668B2, #1B9E77, #37B54A));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Cookie banner ── */
.vt-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.vt-cookie-banner.is-visible {
    transform: translateY(0);
}

.vt-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vt-cookie-banner__text {
    flex: 1;
    min-width: 200px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.vt-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vt-cookie-banner__btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    min-height: 44px;
}

.vt-cookie-banner__btn--accept {
    background: var(--vt-gradient, linear-gradient(135deg, #1668B2, #37B54A));
    color: #fff;
}

.vt-cookie-banner__btn--decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Mobile TOC drawer (article shell) ── */
.article-mobile-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-mobile-toc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
}

/* ── CMS generic page prose ── */
.vt-cms-page {
    padding: var(--space-section, 4rem) 0;
}

.vt-cms-page .cms-content {
    max-width: 72ch;
    margin: 0 auto;
    line-height: 1.75;
}

.vt-cms-page .cms-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* ── CMS dynamic page header (pages/show) ── */
.cms-page-header {
    padding: 80px 0 60px;
}

.cms-page-header .section-header {
    margin-bottom: 0;
    text-align: left;
}

.cms-page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.cms-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.cms-breadcrumb a {
    color: var(--vt-blue, #2563eb);
}

.cms-content-narrow {
    max-width: 800px;
}

.cms-prose {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body, #334155);
}

.cms-empty-state {
    text-align: center;
    padding: 4rem 0;
}

.cms-empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.cms-empty-state p {
    color: var(--text-muted, #64748b);
}

/* ── Cookie preferences modal ── */
.vt-cookie-modal {
    padding: 2rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
}

.vt-cookie-modal h3 {
    margin-top: 0;
}

.vt-cookie-modal__lead {
    color: #6b7280;
    font-size: 0.875rem;
}

.vt-cookie-modal__options {
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.vt-cookie-modal__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 4px;
}

.vt-cookie-modal__option small {
    color: #6b7280;
}

.vt-cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.vt-cookie-banner__link {
    color: #60a5fa;
    text-decoration: underline;
}

.vt-cookie-banner__link--muted {
    color: #fff;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    min-height: 44px;
}

/* ── CMS page builder components ── */
.component-features__title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.component-features__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.component-features .feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card__desc {
    color: var(--color-text-muted);
}

.component-hero {
    position: relative;
    padding: 6rem 0;
    color: #fff;
    overflow: hidden;
}

.component-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.component-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.component-hero .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.component-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.component-hero__sub {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.component-hero__cta {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.component-image-text__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 4rem;
}

.component-image-text__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.component-image-text__headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.component-image-text__prose {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.component-cta-banner__headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.component-cta-banner__btn {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

.component-rich-text .container {
    max-width: 800px;
}

/* ── FAB dock (global) ── */
.vt-fab-dock {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.vt-fab-dock.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.sticky-cta-visible .vt-fab-dock {
    bottom: 5.5rem;
}

@media (min-width: 769px) {
    body.sticky-cta-visible .vt-fab-dock {
        bottom: 1.5rem;
    }
}

.vt-fab-dock__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--vt-blue, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vt-fab-dock__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.vt-fab-dock__btn--whatsapp {
    background: #25d366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.vt-fab-dock__btn--whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.vt-fab-dock__btn--scroll {
    background: var(--vt-blue, #1668B2);
}
