/* ═══════════════════════════════════════════════════════════
   PRIORI BPO FINANCEIRO — Design System
   ═══════════════════════════════════════════════════════════ */
:root {
    --navy:    #0f2749;
    --navy2:   #1a3a5c;
    --blue:    #1d60c8;
    --blue2:   #2563eb;
    --gold:    #f59e0b;
    --gold2:   #d97706;
    --green:   #10b981;
    --red:     #ef4444;
    --bg:      #f1f5f9;
    --white:   #ffffff;
    --gray1:   #f8fafc;
    --gray2:   #e2e8f0;
    --gray3:   #94a3b8;
    --gray4:   #475569;
    --text:    #1e293b;
    --radius:  10px;
    --shadow:  0 4px 24px rgba(15,39,73,.10);
    --shadow2: 0 2px 8px rgba(15,39,73,.08);
    --transition: .22s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 780px; }
.container--md { max-width: 960px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-size: .95rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.35); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--blue { background: var(--blue2); color: #fff; }
.btn--blue:hover { background: var(--blue); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--danger { background: var(--red); color: #fff; }
.btn--success { background: var(--green); color: #fff; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray4); margin-bottom: .4rem; }
.form-control {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid var(--gray2); border-radius: var(--radius);
    font-size: .95rem; color: var(--text); background: var(--white);
    transition: border var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control::placeholder { color: var(--gray3); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }

/* ─── Alerts ─── */
.alert {
    padding: .9rem 1.2rem; border-radius: var(--radius);
    font-size: .9rem; margin-bottom: 1.2rem;
    display: flex; align-items: flex-start; gap: .6rem;
}
.alert--success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--green); }
.alert--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--red); }
.alert--info    { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--blue2); }
.alert--warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--gold); }

/* ─── Badges ─── */
.badge {
    display: inline-flex; align-items: center;
    padding: .2rem .65rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge--green  { background: #d1fae5; color: #065f46; }
.badge--blue   { background: #dbeafe; color: #1e40af; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--red    { background: #fee2e2; color: #991b1b; }
.badge--gray   { background: var(--gray2); color: var(--gray4); }

/* ─── Cards ─── */
.card {
    background: var(--white); border-radius: 14px;
    box-shadow: var(--shadow2); overflow: hidden;
}
.card__body { padding: 1.6rem; }
.card__header { padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--gray2); }
.card__footer { padding: 1rem 1.6rem; border-top: 1px solid var(--gray2); background: var(--gray1); }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,39,73,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 0;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }
.nav__links {
    display: flex; align-items: center; gap: 2rem;
}
.nav__links a {
    color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500;
    transition: color var(--transition); position: relative;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav__toggle span {
    display: block; width: 22px; height: 2px; background: #fff;
    margin: 4px 0; transition: all .25s;
}
@media (max-width: 900px) {
    .nav__links { display: none; }
    .nav__actions .btn:not(.btn--primary) { display: none; }
    .nav__toggle { display: block; }
    .nav__links.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); padding: 1.5rem 1.5rem;
        gap: 1.2rem; border-top: 1px solid rgba(255,255,255,.1);
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, #0d2240 100%);
    display: flex; align-items: center;
    padding-top: 80px; overflow: hidden; position: relative;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Ccircle cx='40' cy='40' r='1' fill='%23ffffff' opacity='.04'/%3E%3C/svg%3E");
}
.hero__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 4rem; padding: 5rem 0;
    position: relative;
}
@media(max-width:768px) { .hero__grid { grid-template-columns:1fr; gap:2rem; padding:3rem 0; } }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
    color: var(--gold); padding: .35rem .9rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
    color: #fff; line-height: 1.18; margin-bottom: 1.4rem;
}
.hero__title span { color: var(--gold); }
.hero__desc { color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__img-wrap { position: relative; display: flex; justify-content: center; }
.hero__img-wrap img { border-radius: 20px; max-height: 500px; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(0,0,0,.4)); }
.hero__float-card {
    position: absolute; background: var(--white); border-radius: 12px;
    padding: .8rem 1.2rem; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .7rem;
    font-size: .82rem; font-weight: 600; color: var(--navy);
}
.hero__float-card--1 { bottom: 10%; left: -2rem; }
.hero__float-card--2 { top: 12%; right: -1rem; }
.hero__float-card .icon { font-size: 1.4rem; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 5rem 0; }
.section--dark { background: var(--navy); }
.section--navy2 { background: var(--navy2); }
.section--white { background: var(--white); }
.section--gray { background: var(--bg); }
.section__label {
    font-size: .75rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.section__title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.25;
    margin-bottom: 1rem;
}
.section__title--light { color: #fff; }
.section__subtitle { color: var(--gray4); font-size: 1.05rem; line-height: 1.75; max-width: 580px; }
.section__subtitle--light { color: rgba(255,255,255,.7); }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__head .section__subtitle { margin: 0 auto; }

/* ─── Serviços Grid ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white); border-radius: 14px;
    padding: 1.8rem; border: 1.5px solid var(--gray2);
    transition: all var(--transition); cursor: default;
}
.service-card:hover {
    border-color: var(--gold); transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,39,73,.12);
}
.service-card__icon {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1rem;
}
.service-card__cat {
    font-size: .68rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold); margin-bottom: .4rem;
}
.service-card__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.service-card__desc { font-size: .88rem; color: var(--gray4); line-height: 1.65; }

/* ─── Stats ─── */
.stats-row {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1px; background: rgba(255,255,255,.08);
}
@media(max-width:640px) { .stats-row { grid-template-columns: repeat(2,1fr); } }
.stat-item {
    background: rgba(255,255,255,.04); padding: 2.4rem 1.5rem;
    text-align: center;
}
.stat-item__num {
    font-size: 2.6rem; font-weight: 900; color: var(--gold);
    line-height: 1; margin-bottom: .4rem;
}
.stat-item__label { font-size: .8rem; color: rgba(255,255,255,.6); letter-spacing: .06em; }

/* ─── How it works ─── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:768px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: var(--white); border-radius: 14px;
    padding: 2rem 1.5rem; text-align: center;
    box-shadow: var(--shadow2); position: relative;
}
.step__num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--blue2));
    color: #fff; font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.step__icon { font-size: 2rem; margin-bottom: .8rem; }
.step__title { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.step__desc { font-size: .86rem; color: var(--gray4); line-height: 1.6; }

/* ─── Depoimentos / CTA ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media(max-width:900px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 1.8rem;
}
.testimonial-card__stars { color: var(--gold); font-size: 1rem; margin-bottom: .8rem; }
.testimonial-card__text { color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.7; margin-bottom: 1.2rem; font-style: italic; }
.testimonial-card__author { font-weight: 700; color: #fff; font-size: .88rem; }
.testimonial-card__role { font-size: .78rem; color: var(--gold); }

.cta-banner {
    background: linear-gradient(135deg, var(--blue2) 0%, var(--navy2) 100%);
    border-radius: 20px; padding: 4rem 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    flex-wrap: wrap;
}
.cta-banner__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: .6rem; }
.cta-banner__text p { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: #060f1c; color: rgba(255,255,255,.65);
    padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col__logo img { height: 40px; margin-bottom: 1rem; }
.footer-col__desc { font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.5); }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .82rem; color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    background-image: linear-gradient(135deg, var(--navy) 0%, #0d2240 100%);
}
.auth-card {
    background: var(--white); border-radius: 20px;
    width: 100%; max-width: 460px;
    padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-card__logo { text-align: center; margin-bottom: 2rem; }
.auth-card__logo img { height: 48px; margin: 0 auto; }
.auth-card__title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.auth-card__subtitle { font-size: .9rem; color: var(--gray3); margin-bottom: 2rem; }
.auth-divider { text-align: center; margin: 1.5rem 0; color: var(--gray3); font-size: .82rem; position: relative; }
.auth-divider::before, .auth-divider::after {
    content: ''; display: inline-block; width: 40%; height: 1px;
    background: var(--gray2); vertical-align: middle; margin: 0 .5rem;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN / ÁREA CLIENTE — DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.dashboard-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--navy); color: #fff;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
    transition: transform .25s;
}
.sidebar__logo {
    padding: 1.4rem 1.6rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__logo img { height: 38px; }
.sidebar__nav { flex: 1; padding: 1.2rem 0; overflow-y: auto; }
.sidebar__nav-label {
    font-size: .65rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.35);
    padding: .8rem 1.6rem .3rem;
}
.sidebar__nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1.6rem; color: rgba(255,255,255,.65);
    font-size: .9rem; font-weight: 500; transition: all var(--transition);
    border-left: 3px solid transparent;
}
.sidebar__nav a:hover { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--gold); }
.sidebar__nav a.active { color: #fff; background: rgba(255,255,255,.09); border-left-color: var(--gold); }
.sidebar__nav a .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar__footer {
    padding: 1.2rem 1.6rem; border-top: 1px solid rgba(255,255,255,.07);
    font-size: .82rem; color: rgba(255,255,255,.45);
}
.sidebar__footer a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.sidebar__footer a:hover { color: var(--gold); }
@media(max-width:900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
}

/* Main content */
.dashboard-main {
    margin-left: 260px; flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}
@media(max-width:900px) { .dashboard-main { margin-left: 0; } }

/* Top bar */
.topbar {
    background: var(--white); border-bottom: 1px solid var(--gray2);
    padding: 1rem 1.8rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow2);
}
.topbar__left { display: flex; align-items: center; gap: 1rem; }
.topbar__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.topbar__user {
    display: flex; align-items: center; gap: .6rem;
    font-size: .88rem; color: var(--gray4);
}
.topbar__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--blue2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
}
.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: var(--navy);
}
@media(max-width:900px) { .menu-toggle { display: block; } }

/* Dashboard page content */
.dashboard-content { padding: 2rem 1.8rem; flex: 1; }
.page-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 1.8rem; }

/* Stat cards row */
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-bottom: 2rem; }
@media(max-width:900px) { .kpi-row { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi-card {
    background: var(--white); border-radius: 14px; padding: 1.4rem;
    box-shadow: var(--shadow2); display: flex; align-items: flex-start; gap: 1rem;
    border-left: 4px solid transparent;
}
.kpi-card--blue   { border-left-color: var(--blue2); }
.kpi-card--gold   { border-left-color: var(--gold); }
.kpi-card--green  { border-left-color: var(--green); }
.kpi-card--navy   { border-left-color: var(--navy); }
.kpi-card__icon {
    width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kpi-card--blue  .kpi-card__icon { background: #dbeafe; }
.kpi-card--gold  .kpi-card__icon { background: #fef3c7; }
.kpi-card--green .kpi-card__icon { background: #d1fae5; }
.kpi-card--navy  .kpi-card__icon { background: #e0e7ff; }
.kpi-card__val { font-size: 1.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.kpi-card__label { font-size: .78rem; color: var(--gray3); margin-top: .2rem; }

/* Table */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%; border-collapse: collapse; font-size: .9rem;
}
.table th {
    background: var(--gray1); color: var(--gray4);
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray2);
}
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--gray2); color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray1); }

/* Overlay */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150;
}
.sidebar-overlay.open { display: block; }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .4rem; }
.mt-2 { margin-top: .8rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .4rem; }
.mb-2 { margin-bottom: .8rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.flex  { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }

/* Whatsapp float */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 1.8rem; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 6px 24px rgba(37,211,102,.4);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }
