:root {
    --nx-navy: #14213d;
    --nx-navy-deep: #0d162b;
    --nx-blue: #3457a6;
    --nx-gold: #d7a100;
    --nx-gold-light: #d9ad3f;
    --nx-gold-soft: #f5e9c9;
    --nx-bg: #ffffff;
    --nx-cream: #faf8f4;
    --nx-white: #ffffff;
    --nx-text: #2b2b2b;
    --nx-muted: #767676;
    --nx-border: #ece7dc;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(20,33,61,0.06);
    --shadow-lg: 0 24px 60px rgba(20,33,61,0.12);
}

* { box-sizing: border-box; }

body {
    background: var(--nx-white);
    color: var(--nx-text);
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
    color: var(--nx-navy);
    font-weight: 700;
    font-family: 'Playfair Display', 'Poppins', serif;
}

/* ---------- Navbar ---------- */
.nx-navbar {
    background: var(--nx-white);
    border-bottom: 1px solid var(--nx-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nx-logo { font-weight: 700; font-size: 1.6rem; color: var(--nx-navy); letter-spacing: -0.3px; font-family: 'Playfair Display', serif; }
.nx-logo span { color: var(--nx-gold); }
.nx-navbar .nav-link { color: var(--nx-text); font-weight: 500; font-size: .95rem; }
.nx-navbar .nav-link:hover, .nx-navbar .nav-link.active { color: var(--nx-gold); }

.btn-gold {
    background: var(--nx-gold);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    letter-spacing: .2px;
}
.btn-gold:hover { background: #a1770a; color: #fff; }

.btn-outline-gold {
    border: 1.5px solid var(--nx-navy);
    color: var(--nx-navy);
    border-radius: 6px;
    font-weight: 600;
    background: transparent;
}
.btn-outline-gold:hover { background: var(--nx-navy); color: #fff; }

.btn-navy {
    background: var(--nx-navy);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
}
.btn-navy:hover { background: var(--nx-navy-deep); color: #fff; }

/* ---------- Hero (ivory, editorial, premium — not a heavy color block) ---------- */
.nx-hero {
    background: linear-gradient(180deg, var(--nx-cream) 0%, #ffffff 100%);
    padding: 90px 0 130px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nx-border);
}
.nx-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(184,134,11,0.06) 0%, transparent 40%),
                       radial-gradient(circle at 85% 80%, rgba(20,33,61,0.05) 0%, transparent 40%);
}
.nx-hero .container { position: relative; z-index: 1; }
.nx-hero h1 { color: var(--nx-navy); font-weight: 700; }
.nx-hero .accent { color: var(--nx-gold); font-style: italic; }
.nx-hero p.lead { color: var(--nx-muted); font-family: 'Poppins', sans-serif; }
.nx-hero-tagline {
    color: var(--nx-gold);
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 600;
}

.nx-search-card {
    background: var(--nx-white);
    border: 1px solid var(--nx-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    margin-top: -70px;
    position: relative;
    z-index: 5;
}
.nx-search-card .form-control, .nx-search-card .form-select {
    background: var(--nx-white);
    border: 1px solid var(--nx-border);
    color: var(--nx-text);
    border-radius: 6px;
}
.nx-search-card .form-control:focus, .nx-search-card .form-select:focus {
    border-color: var(--nx-gold);
    box-shadow: 0 0 0 0.15rem rgba(184,134,11,0.15);
}
.nx-search-card label { color: var(--nx-muted); font-size: .78rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 4px; }

/* Page header band (About/Services/Contact) — ivory, not solid navy */
.nx-page-header {
    background: var(--nx-cream);
    padding: 64px 0;
    border-bottom: 1px solid var(--nx-border);
    text-align: center;
}
.nx-page-header h1 { color: var(--nx-navy); margin-bottom: 6px; }
.nx-page-header p { color: var(--nx-gold); font-style: italic; margin: 0; letter-spacing: .5px; }

/* ---------- Section ---------- */
.nx-section { padding: 72px 0; }
.nx-section-title { font-weight: 700; }
.nx-section-title .accent { color: var(--nx-gold); font-style: italic; }
.nx-section-sub { color: var(--nx-muted); font-family: 'Poppins', sans-serif; }
.nx-muted { color: var(--nx-muted); }
.nx-section-alt { background: var(--nx-cream); }
.nx-eyebrow { color: var(--nx-gold); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; }

/* ---------- Generic Card ---------- */
.nx-card {
    background: var(--nx-white);
    border: 1px solid var(--nx-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    /*height: 100%;*/
    box-shadow: var(--shadow);
}
.nx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Property Card ---------- */
.nx-property-card { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.nx-property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.nx-property-card img { width: 100%; height: 190px; object-fit: cover; }
.nx-property-card .badge-status { font-weight: 600; font-size: .7rem; border-radius: 4px; padding: 5px 10px; letter-spacing: .3px; }
.nx-property-card .price { color: var(--nx-navy); font-weight: 700; font-size: 1.2rem; font-family: 'Playfair Display', serif; }
.nx-property-card .body { padding: 18px; }
.nx-property-card .meta { color: var(--nx-muted); font-size: .85rem; }
.badge-sale { background: #eef3ea; color: #3d7a3d; }
.badge-rent { background: var(--nx-gold-soft); color: var(--nx-gold); }

/* ---------- Stat blocks (muted premium tones, not bright candy colors) ---------- */
.nx-stat-block { border-radius: var(--radius); padding: 24px; color: #fff; position: relative; overflow: hidden; min-height: 110px; }
.nx-stat-block .num { font-size: 2rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.nx-stat-block .label { font-size: .82rem; opacity: .85; letter-spacing: .3px; }
.stat-green { background: #3d6b52; }
.stat-orange { background: #a3712f; }
.stat-navy { background: var(--nx-navy); }
.stat-pink { background: #8a3b52; }
.stat-purple { background: #5c4b8a; }
.stat-blue { background: var(--nx-blue); }

/* ---------- Achievement numbers (on white/cream, not a navy band) ---------- */
.nx-achieve-num { font-size: 2.6rem; font-weight: 700; color: var(--nx-navy); font-family: 'Playfair Display', serif; }
.nx-achieve-label { color: var(--nx-gold); font-weight: 500; font-size: .85rem; letter-spacing: .3px; text-transform: uppercase; }

/* ---------- Team card ---------- */
.nx-team-card { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.nx-team-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 3px solid var(--nx-gold-soft); }
.nx-team-card .role { color: var(--nx-gold); font-size: .82rem; margin-bottom: 10px; font-style: italic; }
.nx-team-card .socials a { color: var(--nx-muted); margin: 0 6px; }
.nx-team-card .socials a:hover { color: var(--nx-gold); }

/* ---------- Testimonial card ---------- */
.nx-testimonial-card { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; text-align: center; position: relative; }
.nx-testimonial-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.nx-testimonial-card .quote-badge {
    width: 30px; height: 30px; border-radius: 50%; background: var(--nx-gold); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
    position: relative; top: -14px; left: 20px;
}

/* ---------- Forms / Auth ---------- */
.nx-auth-card {
    max-width: 460px;
    margin: 60px auto;
    background: var(--nx-white);
    border: 1px solid var(--nx-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px;
}
.form-control, .form-select, textarea {
    background: var(--nx-white) !important;
    border: 1px solid var(--nx-border) !important;
    color: var(--nx-text) !important;
    border-radius: 6px !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--nx-gold) !important;
    box-shadow: 0 0 0 0.15rem rgba(184,134,11,0.15) !important;
}
label { color: var(--nx-navy); font-size: .82rem; font-weight: 600; margin-bottom: 5px; }

/* ---------- Footer (kept dark for editorial contrast against a white site) ---------- */
.nx-footer {
    background: var(--nx-navy-deep);
    padding: 56px 0 20px;
    color: rgba(255,255,255,0.6);
}
.nx-footer h6 { color: #fff; font-family: 'Poppins', sans-serif; text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; }
.nx-footer a { color: rgba(255,255,255,0.6); }
.nx-footer a:hover { color: var(--nx-gold-light); }
.nx-footer .nx-logo { color: #fff; }

/* ---------- Alerts ---------- */
.alert-nx-success { background: #eef3ea; border: 1px solid #3d7a3d; color: #2c5c2c; border-radius: 8px; }
.alert-nx-error { background: #fbeceb; border: 1px solid #b3453c; color: #8a2e27; border-radius: 8px; }

/* ---------- Dashboard shell ---------- */
.nx-dash-sidebar { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 0; }
.nx-dash-sidebar .avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--nx-gold), var(--nx-navy)); }
.nx-dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 28px; color: var(--nx-navy); font-weight: 500; font-size: .93rem; }
.nx-dash-sidebar a:hover, .nx-dash-sidebar a.active { background: var(--nx-gold-soft); color: var(--nx-gold); border-right: 3px solid var(--nx-gold); }
.nx-dash-sidebar a.text-danger:hover { background: #fbeceb; }
.nx-dash-panel { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* ---------- Badges (verified/superagent style) ---------- */
.badge-verified { background: #3d7a3d; color: #fff; font-weight: 600; }
.badge-superagent { background: #5c4b8a; color: #fff; font-weight: 600; }
.badge-new { background: #8a3b52; color: #fff; font-weight: 600; }

/* ---------- CTA band (soft ivory card with gold border, not a heavy gradient) ---------- */
.nx-cta-band { background: var(--nx-navy); padding: 44px 0; }
.nx-cta-band h4 { color: #fff; }
.nx-cta-band p { color: rgba(255,255,255,0.75); }

/* ---------- Admin (kept dark for internal-tool contrast) ---------- */
.nx-admin-sidebar { background: var(--nx-navy-deep); min-height: 100vh; }
.nx-admin-sidebar a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.6); font-weight: 500; }
.nx-admin-sidebar a:hover, .nx-admin-sidebar a.active { background: rgba(184,134,11,0.15); color: var(--nx-gold-light); }
.nx-stat-card { background: var(--nx-white); border: 1px solid var(--nx-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.nx-stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--nx-navy); font-family: 'Playfair Display', serif; }
.nx-stat-card .label { color: var(--nx-muted); font-size: .85rem; }
