/*
Theme Name: FirmaPro - CRM - Gestiune afacere
Theme URI: https://firmapro.ro
Author: FirmaPro
Description: Temă dedicată platformei FirmaPro - CRM și gestiune afacere: landing page de prezentare și autentificare clienți.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: firmapro
*/

:root {
    --fp-navy: #0f2a5c;
    --fp-navy-dark: #0a1e42;
    --fp-blue: #1d4ed8;
    --fp-blue-light: #3b82f6;
    --fp-blue-pale: #eff6ff;
    --fp-text: #1e293b;
    --fp-text-muted: #64748b;
    --fp-border: #e2e8f0;
    --fp-bg: #ffffff;
    --fp-bg-alt: #f8fafc;
    --fp-radius: 12px;
    --fp-shadow: 0 4px 24px rgba(15, 42, 92, 0.08);
    --fp-shadow-lg: 0 12px 40px rgba(15, 42, 92, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fp-text);
    background: var(--fp-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--fp-blue); text-decoration: none; }

.fp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.fp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fp-border);
}

.fp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.fp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--fp-navy);
    letter-spacing: -0.5px;
}

.fp-logo svg { flex-shrink: 0; }

.fp-logo-text { white-space: nowrap; }

.fp-logo-pro { color: var(--fp-blue); }

.fp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.fp-nav a {
    color: var(--fp-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.fp-nav a:hover { color: var(--fp-blue); }

.fp-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.fp-btn-primary {
    background: var(--fp-blue);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.fp-btn-primary:hover {
    background: var(--fp-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
}

.fp-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.fp-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fp-btn-sm { padding: 9px 20px; font-size: 14px; }

/* ===== Hero ===== */
.fp-hero {
    background: linear-gradient(135deg, var(--fp-navy-dark) 0%, var(--fp-navy) 55%, #1e3a8a 100%);
    color: #fff;
    padding: 96px 0 110px;
    position: relative;
    overflow: hidden;
}

.fp-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.fp-hero::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

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

.fp-hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.fp-hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.fp-hero h1 em {
    font-style: normal;
    color: #60a5fa;
}

.fp-hero p {
    font-size: 19px;
    color: #cbd5e1;
    margin-bottom: 36px;
}

.fp-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Stats bar ===== */
.fp-stats {
    background: var(--fp-bg);
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.fp-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--fp-border);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: var(--fp-shadow-lg);
}

.fp-stat {
    background: #fff;
    padding: 28px 20px;
    text-align: center;
}

.fp-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--fp-navy);
    letter-spacing: -0.5px;
}

.fp-stat span {
    font-size: 14px;
    color: var(--fp-text-muted);
}

/* ===== Sections ===== */
.fp-section { padding: 88px 0; }
.fp-section-alt { background: var(--fp-bg-alt); }

.fp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.fp-section-head .fp-eyebrow {
    color: var(--fp-blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.fp-section-head h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--fp-navy);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.fp-section-head p {
    color: var(--fp-text-muted);
    font-size: 17px;
}

/* ===== Feature cards ===== */
.fp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fp-card {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 30px 26px;
    transition: all 0.25s;
}

.fp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-lg);
    border-color: var(--fp-blue-light);
}

.fp-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--fp-blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.fp-card-icon svg { width: 26px; height: 26px; stroke: var(--fp-blue); }

.fp-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-navy);
    margin-bottom: 8px;
}

.fp-card p {
    font-size: 15px;
    color: var(--fp-text-muted);
    line-height: 1.55;
}

/* ===== About / split ===== */
.fp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.fp-split h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--fp-navy);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.fp-split > div > p {
    color: var(--fp-text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.fp-checklist { list-style: none; }

.fp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15.5px;
    color: var(--fp-text);
}

.fp-checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--fp-blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

.fp-mock {
    background: linear-gradient(135deg, var(--fp-navy-dark), var(--fp-navy));
    border-radius: var(--fp-radius);
    padding: 28px;
    box-shadow: var(--fp-shadow-lg);
}

.fp-mock-window {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fp-mock-bar {
    background: #f1f5f9;
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-mock-bar i {
    width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1; display: block;
}
.fp-mock-bar i:first-child { background: #f87171; }
.fp-mock-bar i:nth-child(2) { background: #fbbf24; }
.fp-mock-bar i:nth-child(3) { background: #34d399; }

.fp-mock-body { padding: 20px; }

.fp-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.fp-mock-row:last-child { border-bottom: none; }
.fp-mock-row b { color: var(--fp-navy); }

.fp-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.fp-pill-green { background: #dcfce7; color: #15803d; }
.fp-pill-amber { background: #fef3c7; color: #b45309; }
.fp-pill-blue  { background: var(--fp-blue-pale); color: var(--fp-blue); }

/* ===== Steps ===== */
.fp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.fp-step { text-align: center; padding: 0 12px; }

.fp-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--fp-blue);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}

.fp-step h3 { font-size: 18px; color: var(--fp-navy); margin-bottom: 8px; }
.fp-step p { font-size: 15px; color: var(--fp-text-muted); }

/* ===== CTA ===== */
.fp-cta {
    background: linear-gradient(135deg, var(--fp-navy-dark) 0%, var(--fp-navy) 60%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 64px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.fp-cta::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
}

.fp-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
}

.fp-cta p {
    color: #cbd5e1;
    font-size: 17px;
    margin-bottom: 32px;
    position: relative;
}

/* ===== Footer ===== */
.fp-footer {
    background: var(--fp-navy-dark);
    color: #94a3b8;
    padding: 56px 0 28px;
    margin-top: 88px;
}

.fp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.fp-footer .fp-logo { color: #fff; margin-bottom: 14px; }
.fp-footer .fp-logo-pro { color: #60a5fa; }

.fp-footer p { font-size: 14.5px; max-width: 340px; }

.fp-footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.fp-footer ul { list-style: none; }
.fp-footer ul li { margin-bottom: 10px; }
.fp-footer ul a { color: #94a3b8; font-size: 14.5px; transition: color 0.2s; }
.fp-footer ul a:hover { color: #fff; }

.fp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13.5px;
}

/* ===== Login page ===== */
.fp-login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.fp-login-brand {
    background: linear-gradient(160deg, var(--fp-navy-dark) 0%, var(--fp-navy) 60%, #1e3a8a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    position: relative;
    overflow: hidden;
}

.fp-login-brand::before {
    content: "";
    position: absolute;
    top: -140px; right: -140px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
}

.fp-login-brand .fp-logo { color: #fff; font-size: 26px; margin-bottom: 40px; }
.fp-login-brand .fp-logo-pro { color: #60a5fa; }

.fp-login-brand h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
}

.fp-login-brand > p {
    color: #cbd5e1;
    font-size: 16.5px;
    max-width: 400px;
    position: relative;
}

.fp-login-brand .fp-checklist { margin-top: 32px; position: relative; }
.fp-login-brand .fp-checklist li { color: #e2e8f0; }
.fp-login-brand .fp-checklist li::before {
    background-color: rgba(59,130,246,0.25);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.fp-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--fp-bg-alt);
}

.fp-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--fp-shadow);
}

.fp-login-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--fp-navy);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.fp-login-card > p {
    color: var(--fp-text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.fp-login-card form p { margin-bottom: 18px; }

.fp-login-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text);
    margin-bottom: 6px;
}

.fp-login-card input[type="text"],
.fp-login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--fp-text);
}

.fp-login-card input[type="text"]:focus,
.fp-login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--fp-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.fp-login-card .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-login-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0;
    color: var(--fp-text-muted);
}

.fp-login-card input[type="submit"] {
    width: 100%;
    padding: 13px;
    background: var(--fp-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.fp-login-card input[type="submit"]:hover { background: var(--fp-navy); }

.fp-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.fp-login-info {
    background: var(--fp-blue-pale);
    border: 1px solid #bfdbfe;
    color: var(--fp-navy);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.fp-login-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.fp-login-links a { color: var(--fp-text-muted); }
.fp-login-links a:hover { color: var(--fp-blue); }

.fp-login-back {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

/* ===== Page hero (subpagini) ===== */
.fp-page-hero {
    background: linear-gradient(135deg, var(--fp-navy-dark) 0%, var(--fp-navy) 55%, #1e3a8a 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.fp-page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 14px 0 8px;
}

.fp-page-hero p { color: #cbd5e1; font-size: 17px; }

/* ===== Info cards (date societate / contact) ===== */
.fp-info-card {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 26px 28px;
    box-shadow: var(--fp-shadow);
    margin-bottom: 24px;
}

.fp-info-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--fp-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 0;
    font-size: 14.5px;
}

.fp-info-row span { color: var(--fp-text-muted); flex-shrink: 0; }
.fp-info-row b { color: var(--fp-navy); text-align: right; font-weight: 600; }
.fp-info-row b a { color: var(--fp-blue); }

/* ===== Prose (text lung, descriere platformă) ===== */
.fp-prose {
    max-width: 820px;
    margin: 0 auto;
}

.fp-prose p {
    color: var(--fp-text);
    font-size: 16px;
    margin-bottom: 18px;
}

.fp-prose h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--fp-navy);
    margin: 36px 0 14px;
}

.fp-module-list {
    list-style: none;
    margin-bottom: 8px;
}

.fp-module-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    border-bottom: 1px solid var(--fp-border);
    font-size: 15.5px;
    color: var(--fp-text-muted);
    line-height: 1.55;
}

.fp-module-list li:last-child { border-bottom: none; }

.fp-module-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--fp-blue);
}

.fp-module-list li b { color: var(--fp-navy); font-weight: 700; }

/* ===== Generic content page ===== */
.fp-page-content {
    padding: 64px 0 88px;
    max-width: 780px;
    margin: 0 auto;
}

.fp-page-content h1 {
    font-size: 36px;
    color: var(--fp-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

.fp-page-content h2 { color: var(--fp-navy); margin: 32px 0 12px; }
.fp-page-content p { margin-bottom: 16px; color: var(--fp-text); }
.fp-page-content ul, .fp-page-content ol { margin: 0 0 16px 24px; }

/* ===== Mobile nav ===== */
.fp-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.fp-nav-toggle svg { width: 26px; height: 26px; stroke: var(--fp-navy); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .fp-features { grid-template-columns: repeat(2, 1fr); }
    .fp-split { grid-template-columns: 1fr; gap: 40px; }
    .fp-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .fp-login-wrap { grid-template-columns: 1fr; }
    .fp-login-brand { padding: 48px 32px; min-height: 0; }
    .fp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .fp-hero h1 { font-size: 34px; }
    .fp-hero { padding: 64px 0 90px; }
    .fp-hero p { font-size: 17px; }
    .fp-section { padding: 60px 0; }
    .fp-section-head h2 { font-size: 27px; }
    .fp-features { grid-template-columns: 1fr; }
    .fp-steps { grid-template-columns: 1fr; }
    .fp-cta { padding: 48px 24px; }
    .fp-cta h2 { font-size: 26px; }
    .fp-footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .fp-nav-toggle { display: block; }
    .fp-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--fp-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        box-shadow: var(--fp-shadow);
        align-items: flex-start;
    }
    .fp-nav.is-open { display: flex; }

    .fp-page-hero { padding: 48px 0; }
    .fp-page-hero h1 { font-size: 30px; }

    .fp-info-row {
        flex-direction: column;
        gap: 2px;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .fp-info-row:last-child { border-bottom: none; }
    .fp-info-row span { font-size: 13px; }
    .fp-info-row b { text-align: left; }
}
