/*
Theme Name: Njuanda Client Portal
Theme URI: https://njuanda.com
Description: NJUANDA — Life OS · Market Ecosystem. Client portal with registration, protected documents and Calendly integration.
Version: 2.0
Author: Njuanda
Text Domain: njuanda
*/

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

:root {
  --navy:    #0f1b3d;
  --navy2:   #1d1245;
  --navy3:   #2d1b69;
  --purple:  #5c3dbf;
  --purple2: #7c5cbf;
  --accent:  #c4aeff;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,.45);
  --border:  rgba(255,255,255,.12);
  --border2: rgba(255,255,255,.07);
  --r:       8px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; background: var(--navy); color: var(--white); line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* NAVBAR */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(15,27,61,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border2); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar__brand { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .18em; text-transform: uppercase; transition: color .15s; }
.navbar__brand:hover { color: rgba(255,255,255,.75); }
.navbar__actions { display: flex; gap: 10px; align-items: center; }

/* BUTTONS */
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--r); font-size: .85rem; font-weight: 600; cursor: pointer; letter-spacing: .04em; font-family: inherit; border: none; }
.btn-outline { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2); }
.btn-solid   { background: var(--purple); color: rgba(255,255,255,.75); border: 1px solid var(--purple); }

/* HERO */
.hero { min-height: calc(100vh - 64px); background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 32px; }
.hero__logo { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1; margin-bottom: 20px; }
.hero__tagline { font-size: clamp(.78rem, 2vw, .92rem); color: rgba(255,255,255,.32); letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.hero__tagline span { color: rgba(255,255,255,.13); margin: 0 12px; }
.hero__divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); margin: 38px auto; }

/* AUTH PAGES */
.auth-wrap { min-height: calc(100vh - 64px); background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%); display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card { background: rgba(15,27,61,.98); border: 1px solid var(--border); border-radius: 16px; padding: 44px 40px; width: 100%; max-width: 540px; }
.auth-card--narrow { max-width: 420px; }
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.auth-sub { font-size: .88rem; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.form-field input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; color: var(--white); font-family: inherit; outline: none; transition: border-color .15s, background .15s; }
.form-field input::placeholder { color: rgba(255,255,255,.18); }
.form-field input:focus { border-color: var(--purple2); background: rgba(92,61,191,.12); }
.form-submit { margin-top: 20px; }
.auth-hint { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 18px; }
.auth-hint a { color: var(--accent); }

/* DASHBOARD */
.dashboard-header { background: linear-gradient(135deg, var(--navy), var(--navy3)); padding: 44px 0; border-bottom: 1px solid var(--border2); }
.dashboard-welcome { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.dashboard-sub { font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.dashboard-body { padding: 44px 0 80px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-card { background: rgba(255,255,255,.04); border: 1px solid var(--border2); border-radius: 14px; padding: 32px; }
.dash-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border2); }
.dash-card__icon { width: 38px; height: 38px; background: rgba(92,61,191,.3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.dash-card__title { font-size: 1rem; font-weight: 700; color: var(--white); }

.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border2); border-radius: var(--r); margin-bottom: 10px; transition: border-color .15s, background .15s; }
.doc-row:hover { border-color: rgba(124,92,191,.5); background: rgba(92,61,191,.08); }
.doc-row:last-child { margin-bottom: 0; }
.doc-row__icon { width: 32px; height: 32px; background: rgba(92,61,191,.25); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.doc-row__name { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.8); }
.doc-row__meta { font-size: .76rem; color: rgba(255,255,255,.3); margin-top: 1px; }

.calendly-inline-widget { border-radius: var(--r); overflow: hidden; }

/* FOOTER */
.site-footer { background: var(--navy); border-top: 1px solid var(--border2); padding: 28px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.25); }
.site-footer a { color: rgba(255,255,255,.35); }

/* ULTIMATE MEMBER OVERRIDES */
.um-form { margin-top: 0 !important; }
.um .um-field-label { font-weight: 600; color: rgba(255,255,255,.4) !important; font-size: .76rem !important; text-transform: uppercase; letter-spacing: .06em !important; }
.um .um-field input, .um .um-field textarea { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: var(--r) !important; font-size: .9rem !important; padding: 12px 14px !important; color: var(--white) !important; }
.um .um-field input:focus, .um .um-field textarea:focus { border-color: var(--purple2) !important; background: rgba(92,61,191,.12) !important; box-shadow: 0 0 0 3px rgba(92,61,191,.15) !important; outline: none !important; }
.um .um-button { background: var(--purple) !important; border-color: var(--purple) !important; border-radius: var(--r) !important; font-weight: 700 !important; padding: 13px 28px !important; font-size: .95rem !important; width: 100% !important; color: var(--white) !important; }
.um .um-button:hover { background: var(--purple2) !important; border-color: var(--purple2) !important; }

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .dash-card { padding: 22px; }
}

/* ECOSYSTEM SECTIONS */
.eco-section { margin-top: 48px; width: 100%; }
.eco-label-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.eco-frame { width: 100%; border: none; border-top: 1px solid var(--border2); display: block; }
.eco-label { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border2); }
.eco-frame { width: 100%; height: 1800px; border: 1px solid var(--border2); border-radius: 14px; background: transparent; display: block; }
.dash-nav-link { color: rgba(255,255,255,.45); text-decoration: none; display: block !important; transition: color .15s; width: 100%; }
.dash-nav-link:hover { color: var(--white); }
