/* Neal's Services, LLC - Client Portal Styles */

:root {
    --ns-bg: #f5f7fb;
    --ns-ink: #142033;
    --ns-muted: #60708a;
    --ns-card: #ffffff;
    --ns-line: #dfe6f0;
    --ns-navy: #111827;
    --ns-blue: #1d4ed8;
    --ns-gold: #c8a24a;
    --ns-gold-dark: #96722c;
    --ns-success: #0f766e;
    --ns-danger: #b91c1c;
    --ns-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
    --ns-radius: 22px;
}

* {
    box-sizing: border-box;
}

body.portal-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(200, 162, 74, 0.18), transparent 30%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
    color: var(--ns-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.portal-topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(223, 230, 240, 0.9);
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.portal-brand {
    color: var(--ns-ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ns-navy), #2f3b55);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 2px rgba(200, 162, 74, 0.35);
}

.portal-brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.15;
}

.portal-brand small {
    display: block;
    color: var(--ns-muted);
    font-size: 0.78rem;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-nav a {
    color: var(--ns-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.portal-nav a:hover {
    color: var(--ns-gold-dark);
}

.portal-main {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto;
}

.portal-hero {
    padding: 52px 42px;
    border-radius: 30px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.91)),
        url('/images/3x/business_consultation.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--ns-shadow);
    position: relative;
    overflow: hidden;
}

.portal-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(200, 162, 74, 0.22);
}

.portal-kicker {
    margin: 0 0 10px;
    color: #f7d982;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
}

.portal-hero h1 {
    max-width: 790px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.portal-hero p {
    max-width: 720px;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.portal-card {
    margin: -28px auto 0;
    position: relative;
    z-index: 2;
    background: var(--ns-card);
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    padding: clamp(22px, 4vw, 38px);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.portal-field label {
    font-weight: 800;
    color: var(--ns-ink);
}

.portal-field input,
.portal-field select {
    width: 100%;
    border: 1px solid #cfd8e6;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 1rem;
    color: var(--ns-ink);
    background: #fff;
    outline: none;
}

.portal-field input:focus,
.portal-field select:focus {
    border-color: var(--ns-gold);
    box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.16);
}

.portal-help {
    color: var(--ns-muted);
    font-size: 0.92rem;
    margin-top: -8px;
}

.portal-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 18px;
}

.portal-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--ns-line);
    border-radius: 14px;
    padding: 11px 12px;
    background: #fbfdff;
    font-weight: 700;
}

.portal-checkbox input {
    margin-top: 5px;
}

.portal-btn,
.portal-btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portal-btn {
    background: linear-gradient(135deg, var(--ns-gold), #e7c96e);
    color: #1c1605;
    box-shadow: 0 12px 26px rgba(150, 114, 44, 0.25);
}

.portal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(150, 114, 44, 0.33);
}

.portal-btn-outline {
    background: #fff;
    color: var(--ns-ink);
    border: 1px solid var(--ns-line);
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.portal-link {
    color: var(--ns-blue);
    font-weight: 800;
    text-decoration: none;
}

.portal-link:hover {
    text-decoration: underline;
}

.portal-alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.portal-alert-error {
    background: #fef2f2;
    color: var(--ns-danger);
    border: 1px solid #fecaca;
}

.portal-alert-success {
    background: #ecfdf5;
    color: var(--ns-success);
    border: 1px solid #a7f3d0;
}

.portal-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.portal-dashboard-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    letter-spacing: -0.02em;
}

.portal-meta {
    color: var(--ns-muted);
    margin: 6px 0 0;
}

.portal-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.portal-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef3fa;
    color: #334155;
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 800;
}

.repository-section {
    margin-top: 24px;
    border-top: 1px solid var(--ns-line);
    padding-top: 24px;
}

.repository-section h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.repository-list {
    display: grid;
    gap: 10px;
}

.repository-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--ns-line);
    border-radius: 16px;
    padding: 14px;
    background: #fbfdff;
}

.repository-name {
    font-weight: 900;
    color: var(--ns-ink);
    overflow-wrap: anywhere;
}

.repository-details {
    color: var(--ns-muted);
    font-size: 0.9rem;
}

.repository-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 18px;
    color: var(--ns-muted);
    background: #fbfdff;
}

.portal-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 20px auto 36px;
    text-align: center;
    color: var(--ns-muted);
    font-size: 0.92rem;
}

.portal-footer p {
    margin: 4px 0;
}

.portal-footer-small {
    font-size: 0.84rem;
}

.consultation-client-access {
    margin: 34px auto;
    width: min(1120px, calc(100% - 32px));
}

.consultation-client-card {
    border-radius: 26px;
    padding: clamp(24px, 4vw, 40px);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.92));
    color: #fff;
    box-shadow: var(--ns-shadow);
    display: grid;
    gap: 10px;
}

.consultation-client-card .eyebrow {
    color: #f7d982;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 900;
    margin: 0;
}

.consultation-client-card h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.consultation-client-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.86);
}

.client-login-btn {
    width: fit-content;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ns-gold), #e7c96e);
    color: #1c1605;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(150, 114, 44, 0.25);
}

@media (max-width: 780px) {
    .portal-topbar {
        border-radius: 24px;
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-nav {
        width: 100%;
        justify-content: space-between;
    }

    .portal-hero {
        padding: 38px 24px;
    }

    .portal-card {
        margin-top: -18px;
    }

    .portal-grid,
    .portal-grid-3,
    .portal-checklist {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-head,
    .repository-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .repository-item .portal-btn-outline {
        width: 100%;
    }
}
