/* ================================================
   pages.css — Páginas individuais: Orçamento + Ebook
   ================================================ */

/* ---------- Hero das páginas ---------- */
.page-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    background: #0d1117 url('/img/bg-orcamento.jpg') center/cover no-repeat;
    overflow: hidden;
}

.page-hero--ebook {
    background-image: url('/img/bg-ebook.jpg');
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,15,25,0.92) 0%, rgba(20,30,50,0.80) 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: #ffcf1f;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.page-hero h1 em {
    font-style: normal;
    color: #ffcf1f;
}

.page-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- Body da página ---------- */
.page-body {
    background: #f4f6f8;
    padding: 3.5rem 1.5rem 5rem;
}

.page-grid {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.page-grid--ebook {
    grid-template-columns: 1fr 360px;
}

/* ---------- Formulário ---------- */
.page-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.page-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.page-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.page-form-group--full {
    grid-column: 1 / -1;
}

.page-form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-form-group label span {
    color: #ffcf1f;
}

.page-form-group input,
.page-form-group select,
.page-form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.page-form-group input:focus,
.page-form-group select:focus,
.page-form-group textarea:focus {
    border-color: #ffcf1f;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
    background: #fff;
}

.page-form-error {
    font-size: 0.78rem;
    color: #ffcf1f;
}

.page-form-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.btn-page-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #ffcf1f;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}

.btn-page-submit--ebook {
    background: #ffcf1f;
}

.btn-page-submit--ebook:hover {
    background: #162c47;
}

.btn-page-submit:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-page-submit:active {
    transform: translateY(0);
}

.page-form-note {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

/* ---------- Alert de sucesso ---------- */
.page-alert {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.page-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.page-alert span {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.page-alert strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.page-alert p {
    font-size: 0.88rem;
    margin: 0 0 0.5rem;
    opacity: 0.85;
}

.btn-download-inline {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-download-inline:hover {
    background: #15803d;
}

/* ---------- Sidebar ---------- */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.page-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ffcf1f;
    display: inline-block;
}

.page-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.page-sidebar-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.sidebar-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.3;
}

.page-sidebar-list strong {
    display: block;
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 700;
}

.page-sidebar-list p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.15rem 0 0;
    line-height: 1.5;
}

.page-sidebar-card--dark {
    background: #0d1117;
    text-align: center;
}

.sidebar-wpp-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 1rem;
}

.sidebar-wpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}

.sidebar-wpp-btn:hover {
    background: #1ebe5d;
}

/* ---------- Ebook: topics list ---------- */
.ebook-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ebook-topics li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.4;
}

.ebook-topics li span {
    background: #ffcf1f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Ebook: mock cover ---------- */
.ebook-preview-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.ebook-cover-mock {
    background: #020202;
    border-radius: 6px;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cover-logo {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
}

.cover-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    text-align: left;
}

.cover-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #ffcf1f;
}

.ebook-preview-card p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

/* ---------- Ebook page intro ---------- */
.ebook-page-intro {
    margin-bottom: 1.75rem;
}

.ebook-page-badge {
    display: inline-block;
    background: #fef2f2;
    color: #ffcf1f;
    border: 1px solid #fecaca;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.ebook-page-intro h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.4rem;
}

.ebook-page-intro p {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}
/* ─── WHATSAPP FLUTUANTE ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: wpp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float svg { width: 32px; height: 32px; color: #fff; }

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,0.6);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #020202;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #020202;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes wpp-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .page-grid,
    .page-grid--ebook {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        order: -1;
    }

    .page-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-form-wrap {
        padding: 1.5rem 1rem;
    }

    .page-hero {
        padding: 3.5rem 1.25rem 3rem;
    }
}