/* =========================================================
   RECOLOCA PRO — style.css
   Design: Navy Blue (#0D2B55) + Laranja (#F7931E)
   Fonte: Nunito (Google Fonts)
   ========================================================= */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #0D2B55;
    --navy-mid:    #1A4080;
    --navy-light:  #E8EEF7;
    --orange:      #F7931E;
    --orange-dark: #D97B0E;
    --orange-soft: #FFF3E0;
    --white:       #FFFFFF;
    --gray-50:     #F8F9FA;
    --gray-100:    #F0F2F5;
    --gray-200:    #E2E6EA;
    --gray-400:    #9AA5B4;
    --gray-600:    #4A5568;
    --gray-800:    #1A202C;
    --success:     #22C55E;
    --error:       #EF4444;
    --warning:     #FBBF24;

    --font-main:   'Nunito', sans-serif;
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   32px;
    --shadow-sm:   0 1px 4px rgba(13,43,85,.08);
    --shadow-md:   0 4px 20px rgba(13,43,85,.12);
    --shadow-lg:   0 12px 40px rgba(13,43,85,.18);
    --transition:  .25s ease;
    --max-width:   1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul  { list-style: none; }

/* ── Tipografia ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--gray-600); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-navy   { color: var(--navy) !important; }
.text-orange { color: var(--orange) !important; }

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section {
    padding: 5rem 0;
}
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); }
.section--orange-soft { background: var(--orange-soft); }

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: .6rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc  { max-width: 560px; margin: 0 auto 3rem; color: var(--gray-600); }

/* ── Botões ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: .95rem;
    border-radius: 50px;
    padding: .75rem 1.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247,147,30,.35);
}
.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: var(--shadow-md);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.navbar__logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.navbar__logo-mark {
    width: 38px; height: 38px;
    background: var(--orange);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}
.navbar__logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.02em;
}
.navbar__logo-text span { color: var(--orange); }
.navbar__nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.navbar__nav a {
    color: rgba(255,255,255,.8);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem .9rem;
    border-radius: 50px;
    transition: all var(--transition);
    text-decoration: none;
}
.navbar__nav a:hover,
.navbar__nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}
.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    flex-direction: column;
    gap: 5px;
}
.navbar__toggle span {
    display: block;
    width: 25px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1E5FAD 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}
.hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 55vw; height: 110%;
    background: radial-gradient(ellipse at 70% 40%, rgba(247,147,30,.18) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -5%; left: 10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(247,147,30,.15);
    border: 1px solid rgba(247,147,30,.3);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.25rem;
}
.hero__title { color: var(--white); margin-bottom: 1.25rem; }
.hero__title em {
    font-style: normal;
    color: var(--orange);
    position: relative;
}
.hero__desc {
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-num {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}
.hero__stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-top: .2rem;
}
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero__card-mock {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 360px;
}
.hero__card-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.hero__card-name { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.hero__card-role { color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 1.25rem; }
.hero__card-tag {
    display: inline-block;
    background: rgba(247,147,30,.2);
    color: var(--orange);
    border-radius: 50px;
    padding: .25rem .8rem;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.hero__card-progress { margin-top: 1rem; }
.hero__card-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .4rem;
}
.hero__card-bar {
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
}
.hero__card-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--orange), #FFB347);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(247,147,30,.2);
}
.card__icon {
    width: 54px; height: 54px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}
.card__icon--orange { background: var(--orange-soft); }
.card__icon--navy   { background: var(--navy-light); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Formulários ────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.25rem;
}
.form-group label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--navy);
}
.form-group label .req { color: var(--orange); margin-left: .15rem; }
.form-control {
    font-family: var(--font-main);
    font-size: .95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    transition: all var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--navy-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,64,128,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--error); }
.form-hint  { font-size: .8rem; color: var(--gray-400); }
.form-error { font-size: .8rem; color: var(--error); font-weight: 600; }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-panel--brand {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-panel--brand::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(247,147,30,.12);
}
.auth-panel--form {
    background: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-box { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-box h2 { margin-bottom: .4rem; }
.auth-box .auth-sub { color: var(--gray-400); margin-bottom: 2rem; font-size: .9rem; }
.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: .82rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Dashboard / Área Logada ────────────────────────────── */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}
.sidebar__logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1.5rem;
}
.sidebar__nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    color: rgba(255,255,255,.65);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.sidebar__nav a:hover,
.sidebar__nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.07);
    border-left-color: var(--orange);
}
.sidebar__nav a .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar__section-label {
    padding: 1rem 1.5rem .4rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
}
.sidebar__footer {
    margin-top: auto;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar__user {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sidebar__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--orange);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--white);
    font-size: .95rem;
    flex-shrink: 0;
}
.sidebar__user-name { font-size: .85rem; font-weight: 700; color: var(--white); }
.sidebar__user-email { font-size: .72rem; color: rgba(255,255,255,.45); }
.dashboard-main {
    flex: 1;
    background: var(--gray-100);
    padding: 2rem;
    overflow-x: hidden;
}
.dashboard-header {
    margin-bottom: 2rem;
}
.dashboard-header h1 { font-size: 1.6rem; }
.dashboard-header p { color: var(--gray-400); font-size: .9rem; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}
.stat-card__label { font-size: .8rem; color: var(--gray-400); font-weight: 600; margin-bottom: .5rem; }
.stat-card__value { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-card__sub { font-size: .78rem; color: var(--success); font-weight: 700; margin-top: .3rem; }

/* ── Alertas / Flash Messages ───────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.alert--success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert--info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert--warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer__brand-desc { font-size: .9rem; line-height: 1.7; margin-top: .75rem; }
.footer__title {
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--orange); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
}
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}
.footer__social a:hover {
    background: var(--orange);
    color: var(--white);
}

/* ── Badges e Tags ──────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
}
.badge--orange  { background: var(--orange-soft); color: var(--orange-dark); }
.badge--navy    { background: var(--navy-light);  color: var(--navy); }
.badge--success { background: #D1FAE5; color: #065F46; }
.badge--warning { background: #FEF3C7; color: #92400E; }

/* ── Upload Area ────────────────────────────────────────── */
.upload-area {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
}
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--orange);
    background: var(--orange-soft);
}
.upload-area__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-area__text { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.upload-area__hint { font-size: .82rem; color: var(--gray-400); }

/* ── Currículo Gerado (ATS) ─────────────────────────────── */
.cv-preview {
    font-family: 'Times New Roman', serif;
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    color: #111;
    font-size: 11pt;
    line-height: 1.5;
}
.cv-preview h1 { font-size: 18pt; text-align: center; margin-bottom: .25rem; font-family: Arial, sans-serif; }
.cv-preview .cv-contact { text-align: center; font-size: 9.5pt; color: #444; margin-bottom: 1.5rem; }
.cv-preview h2 { font-size: 11.5pt; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1.5px solid #111; padding-bottom: .25rem; margin: 1.2rem 0 .6rem; font-family: Arial, sans-serif; }
.cv-preview .cv-job-title { font-weight: bold; }
.cv-preview .cv-job-company { font-style: italic; color: #444; }
.cv-preview .cv-date { float: right; color: #555; font-size: 9pt; }
.cv-preview ul { padding-left: 1.5rem; list-style: disc; }
.cv-preview ul li { margin-bottom: .25rem; }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: auto; padding: 3rem 0; }
    .hero__visual { display: none; }
    .hero__actions { flex-direction: column; }
    .hero__stats { gap: 1.25rem; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-panel--brand { display: none; }
    .auth-panel--form { padding: 2rem 1.5rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .navbar__nav, .navbar__actions .btn-secondary { display: none; }
    .navbar__toggle { display: flex; }
    .navbar__actions .btn-primary { font-size: .82rem; padding: .6rem 1.2rem; }
    .section { padding: 3.5rem 0; }
    .dashboard-wrapper { flex-direction: column; }
    .sidebar { width: 100%; min-height: auto; position: relative; }
    .dashboard-main { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .cv-preview { padding: 1.5rem; }
    .grid-4 { grid-template-columns: 1fr; }
}

/* ── Mobile Nav Aberto ──────────────────────────────────── */
.navbar.nav-open .navbar__nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
}
.navbar { position: relative; }

/* ── Print (para o currículo) ───────────────────────────── */
@media print {
    .navbar, .footer, .sidebar, .btn, .dashboard-header { display: none !important; }
    .dashboard-main { padding: 0; background: white; }
    .cv-preview { box-shadow: none; padding: 0; }
}
