@import "globals.css";

/* Shared patterns used by the service pages (certificado digital, notificação
   extrajudicial, protesto, parceria contador, pós-pago, consulta veículo). */

/* ---------- Hero split (illustration + copy) ---------- */
.hero {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(135deg, var(--deep) 0%, var(--deep-dark) 100%);
    color: #fff;
    overflow: hidden;
}
.hero.hero-light {
    background: var(--bg);
    color: var(--text);
}
.hero .hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.hero .hero-copy { max-width: 560px; }
.hero .hero-copy h1 {
    font-size: clamp(32px, 4.4vw, 48px);
    margin: 1rem 0 1.25rem;
    color: #fff;
}
.hero.hero-light .hero-copy h1 { color: var(--ink); }
.hero .hero-copy h1 span { color: var(--teal-light); }
.hero.hero-light .hero-copy h1 span { color: var(--deep); }
.hero .hero-copy p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    margin-bottom: 2rem;
}
.hero.hero-light .hero-copy p.lead { color: var(--muted); }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-visual { flex: 0 0 auto; max-width: 460px; width: 100%; }

@media screen and (max-width: 900px) {
    .hero .hero-grid { flex-direction: column; text-align: center; }
    .hero .hero-copy { max-width: 100%; }
    .hero .hero-actions { justify-content: center; }
}

/* ---------- Numbered process steps ---------- */
.step-number {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: var(--deep);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: "Sora", sans-serif;
    font-weight: 700; font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

/* ---------- FIPE / plate lookup (consulta veículo grátis) ---------- */
.plate-input {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-align: center;
}
.plate-examples { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.car-plate {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
}
.car-plate::after {
    content: "BRASIL";
    position: absolute;
    top: -9px; right: 8px;
    background: var(--gold);
    color: #fff;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 2px;
}

.loading-spinner {
    border: 4px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 28px; height: 28px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(6, 42, 54, .55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow);
}
.modal-close {
    position: absolute; top: 1rem; right: 1.25rem;
    font-size: 26px; line-height: 1; color: var(--muted);
    background: none; border: none;
}
.modal-close:hover { color: var(--ink); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media screen and (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } }
.result-card { background: var(--bg); border-left: 4px solid var(--deep); border-radius: 8px; padding: 1rem; }
.result-card .label { font-size: 13px; color: var(--muted); }
.result-card .value { font-weight: 700; color: var(--ink); }

/* ---------- Comparison / pricing table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.table-compare { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 480px; }
table.table-compare thead { background: var(--deep); color: #fff; }
table.table-compare th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 13.5px; }
table.table-compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.table-compare tbody tr:hover { background: var(--bg); }
table.table-compare .price-old { color: var(--muted); }
table.table-compare .price-new { color: var(--deep); font-weight: 700; }
.savings-tag {
    display: inline-block;
    background: var(--green);
    color: #06301A;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}
.table-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; justify-content: center; }
.table-tabs button {
    padding: .55rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}
.table-tabs button[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }

/* ---------- WhatsApp CTA ---------- */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover { background: #1fb855; }

/* ---------- generic float animation for hero SVGs ---------- */
.float-anim { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
    .float-anim, .pulse-hover:hover { animation: none; }
}
