/* ═══════════════════════════════════════════════════════════════
   NuruTeck — Digital Canopy Theme (Dark)
   Palette: Deep Forest Ink · Signal Green · Teal — sampled from the
   NuruTeck logo mark. Site-wide dark mode: every surface token below
   is dark-first, not just the hero/nav band.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand — sampled from static/images/logo-transparent.png */
    --brand-ink: #070D0B;
    --brand-ink-2: #0C1815;
    --brand-ink-3: #12211C;
    --brand-green: #22C55E;
    --brand-green-dark: #16A34A;
    --brand-green-light: #4ADE80;
    --brand-teal: #14B8A6;
    --brand-teal-dark: #0F766E;
    --brand-teal-light: #2DD4BF;

    /* Legacy brand aliases — keep old variable names working so existing
       component classes (.text-accent, .btn-primary, .feature-card__icon--gold, …)
       automatically pick up the new palette without renaming every usage. */
    --brand-midnight: var(--brand-ink);
    --brand-navy: var(--brand-ink-2);
    --brand-navy-light: var(--brand-ink-3);
    --brand-indigo: var(--brand-teal);
    --brand-indigo-dark: var(--brand-teal-dark);
    --brand-indigo-light: var(--brand-teal-light);
    --brand-gold: var(--brand-green);
    --brand-gold-light: var(--brand-green-light);
    --brand-gold-dark: var(--brand-green-dark);

    /* Surfaces — dark-first, three-step elevation ramp */
    --surface-base: #0A1512;
    --surface-raised: #14241F;
    --surface-muted: #0F1E1A;
    --surface-dark: var(--brand-ink);

    /* Text */
    --text-primary: #EAF3EF;
    --text-secondary: #A2B8B1;
    --text-muted: #6C837C;
    --text-inverse: #06110D;

    /* Borders & shadows */
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-medium: rgba(255, 255, 255, 0.17);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.28);
    --shadow-gold: 0 8px 24px rgba(34, 197, 94, 0.3);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease-out);

    /* Bootstrap overrides */
    --bs-primary: var(--brand-teal);
    --bs-primary-rgb: 20, 184, 166;
    --bs-success: var(--brand-green);
    --bs-success-rgb: 34, 197, 94;
    --bs-body-bg: var(--surface-base);
    --bs-body-color: var(--text-primary);
    --bs-emphasis-color: var(--text-primary);
    --bs-border-color: var(--border-subtle);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
    --bs-link-color: var(--brand-teal);
    --bs-link-hover-color: var(--brand-teal-light);
    --bs-secondary-color: rgba(234, 243, 239, 0.68);
    --bs-secondary-bg: var(--surface-raised);
    --bs-tertiary-color: rgba(234, 243, 239, 0.5);
    --bs-tertiary-bg: var(--surface-muted);
    /* .bg-white / .bg-light / .text-dark are treated by Bootstrap as fixed,
       theme-independent utilities — redirect them here since this theme has
       no light surfaces left. */
    --bs-white: #14241F;
    --bs-white-rgb: 20, 36, 31;
    --bs-light: #14241F;
    --bs-light-rgb: 20, 36, 31;
    --bs-light-bg-subtle: var(--surface-muted);
    --bs-light-border-subtle: var(--border-subtle);
    --bs-light-text-emphasis: var(--text-secondary);

    /* Semantic "subtle" pairs (Bootstrap 5.3) — re-tuned for dark surfaces */
    --bs-primary-bg-subtle: rgba(20, 184, 166, 0.14);
    --bs-primary-border-subtle: rgba(20, 184, 166, 0.3);
    --bs-primary-text-emphasis: var(--brand-teal-light);
    --bs-success-bg-subtle: rgba(34, 197, 94, 0.14);
    --bs-success-border-subtle: rgba(34, 197, 94, 0.3);
    --bs-success-text-emphasis: var(--brand-green-light);
    --bs-secondary-bg-subtle: rgba(255, 255, 255, 0.06);
    --bs-secondary-border-subtle: var(--border-subtle);
    --bs-secondary-text-emphasis: var(--text-secondary);
    --bs-info-bg-subtle: rgba(56, 189, 248, 0.14);
    --bs-info-border-subtle: rgba(56, 189, 248, 0.3);
    --bs-info-text-emphasis: #7DD3FC;
    --bs-warning-bg-subtle: rgba(245, 158, 11, 0.16);
    --bs-warning-border-subtle: rgba(245, 158, 11, 0.32);
    --bs-warning-text-emphasis: #FBBF24;
    --bs-danger-bg-subtle: rgba(239, 68, 68, 0.16);
    --bs-danger-border-subtle: rgba(239, 68, 68, 0.32);
    --bs-danger-text-emphasis: #FCA5A5;

    /* Legacy aliases */
    --nuru-green: var(--brand-teal);
    --nuru-green-dark: var(--brand-teal-dark);
    --nuru-green-deep: var(--brand-teal-dark);
    --nuru-dark: var(--text-primary);
    --nuru-body-bg: var(--surface-base);
    --nuru-radius-sm: var(--radius-md);
    --nuru-radius-md: var(--radius-lg);
    --nuru-radius-lg: var(--radius-xl);
    --nuru-radius-xl: var(--radius-2xl);
    --nuru-shadow-sm: var(--shadow-sm);
    --nuru-shadow-md: var(--shadow-md);
    --nuru-shadow-lg: var(--shadow-lg);
    --nuru-transition: var(--transition);

    /* Tells the browser this whole site is dark, so native/OS-rendered
       widgets it draws itself (a <select>'s open option list, scrollbars,
       form controls) default to a dark popup instead of a stark white one
       that Bootstrap's CSS can't reach. Without this, dropdown text was
       unreadable — the popup stayed white while we forced light text. */
    color-scheme: dark;
}

/* ─── Native form widgets (Bootstrap can't restyle these) ─────────────── */
select, select.form-select, select.form-control {
    color-scheme: dark;
}
option {
    background-color: var(--surface-raised);
    color: var(--text-primary);
}

/* ─── Bootstrap dropdown menus — themed everywhere, not just inside a
   dashboard shell (body.nuru-dashboard has its own, more specific rules
   in dashboard.css; this is the fallback for landing/public pages). ─── */
.dropdown-menu {
    background-color: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}
.dropdown-menu .dropdown-header { color: var(--text-muted); }
.dropdown-item {
    color: var(--text-secondary);
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--brand-teal-light);
}
.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    background-color: rgba(239, 68, 68, 0.1) !important;
}
.dropdown-divider { border-color: var(--border-subtle); }

/* ─── Utilities Bootstrap treats as theme-independent, remapped for dark ───
   Scoped to the app shells (not :root) so django-admin and any future
   light-mode surface never gets pulled dark accidentally. */
body.nuru-landing .text-dark,
body.nuru-dashboard .text-dark {
    color: var(--text-primary) !important;
}
/* Amber/warning chips must keep dark text for contrast even though
   .text-dark was just remapped light above. */
body.nuru-landing .bg-warning.text-dark,
body.nuru-dashboard .bg-warning.text-dark,
body.nuru-landing .btn-warning.text-dark,
body.nuru-dashboard .btn-warning.text-dark {
    color: #201700 !important;
}

/* .text-secondary uses Bootstrap's fixed gray-600 theme color, not the
   dark-aware body-secondary var — on our dark surfaces that reads as
   low-contrast (this was already fixed for dashboards; landing pages,
   e.g. the contact form labels, were missing the same fix). */
body.nuru-landing .text-secondary {
    color: var(--text-secondary) !important;
}

/* ─── Base Overrides to Stop Over-Sliding ─── */
/* ─── Base Overrides (Fixed Sticky Context) ─── */
html {
    scroll-behavior: smooth;
    /* Removed overflow-x here to allow sticky positioning to find the viewport context */
}

body.nuru-landing {
    width: 100%;
    max-width: 100%;
    /* Changing overflow-x to clip prevents over-sliding without breaking position: sticky */
    overflow-x: clip; 
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background: var(--surface-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: -0.02em;
    overflow-wrap: break-word; 
    word-wrap: break-word; /* Safe tracking for lengthy continuous strings on small widths */
}

/* Fix Bootstrap row bleeding edges */
.row {
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* ─── Theme utilities ─── */
.text-accent { color: var(--brand-indigo) !important; }
.text-gold { color: var(--brand-gold) !important; }

.brand-accent {
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-brand-dark { background: var(--brand-midnight) !important; }
.bg-brand-navy { background: var(--brand-navy) !important; }
.bg-surface { background: var(--surface-base) !important; }
.bg-surface-muted { background: var(--surface-muted) !important; }

.text-success,
a.text-success { color: var(--brand-indigo) !important; }

.bg-success { background-color: var(--brand-indigo) !important; }
.btn-success {
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, var(--brand-indigo-dark) 0%, #4338CA 100%);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-outline-success {
    color: var(--brand-indigo-light);
    border-color: var(--brand-indigo);
    /* A soft brand-tinted fill instead of a bare, transparent ghost
       button — reads as an intentional secondary CTA rather than an
       unstyled outline next to a bold filled .btn-primary. */
    background: rgba(20, 184, 166, 0.1);
    font-weight: 600;
}
.btn-outline-success:hover {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #fff;
}

/* Bootstrap's .btn-outline-dark is dark text on a dark border/transparent
   background by design — on a light page that reads fine, but this whole
   theme has no light surfaces left, so it was rendering as effectively
   invisible text (services page "Get a Quote", Google sign-in buttons,
   registration links, etc.). Same fix as .btn-outline-brand above. */
.btn-outline-dark {
    color: var(--text-primary);
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.03);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    border: none;
    color: var(--brand-midnight);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 100%);
    color: var(--brand-midnight);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-nuru {
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn-nuru:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-brand {
    /* Was var(--text-inverse) — near-black text on a transparent button
       over the dark hero, i.e. effectively invisible. This theme has no
       light surfaces for it to sit on anymore. */
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-outline-brand:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Every hero/CTA button across the landing pages combined Bootstrap's own
   .btn-lg (0.5rem 1rem padding, 1.25rem font) with a px-5 utility (3rem
   each side) — stacking into buttons that read as noticeably thicker and
   bigger than everything else on the page, and inconsistently so since
   some paired it with px-4 and some with no size utility at all. One
   normalized size here (this file loads after Bootstrap, so it wins over
   both .btn-lg and any px-* utility at equal specificity) instead of
   hunting every template for the combination. */
.btn-lg {
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--brand-indigo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.section-badge--gold {
    background: rgba(34, 197, 94, 0.12);
    color: var(--brand-gold-dark);
    border-color: rgba(34, 197, 94, 0.25);
}

.section-heading {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subheading {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Navbar ─── */
.nuru-navbar {
    position: sticky;     /* Keeps the navbar locked at the top of the viewport */
    top: 0;              /* Fastens it to the exact top edge */
    z-index: 1020;       /* Places it above landing elements, but safely below standard modals */
    background: rgba(10, 15, 28, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 0;
    transition: all var(--transition);
}

.nuru-navbar.scrolled {
    background: rgba(10, 15, 28, 0.97) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    padding: 0.65rem 0;
}

.nuru-navbar .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: #fff !important;
}

.nuru-navbar .navbar-brand span.brand-accent {
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nuru-navbar .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition);
}

.nuru-navbar .nav-link:hover,
.nuru-navbar .nav-link.active {
    color: #fff !important;
}

.nuru-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-gold));
    transition: width var(--transition), left var(--transition);
    border-radius: 2px;
}

.nuru-navbar .nav-link:hover::after,
.nuru-navbar .nav-link.active::after {
    width: 50%;
    left: 25%;
}

.nuru-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
}
.nuru-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.nuru-navbar .btn-nav-cta {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: var(--brand-midnight) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition);
}
.nuru-navbar .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
    color: var(--brand-midnight) !important;
}

/* "Support NuruTeck" — previously a bare .nav-link with no custom style
   at all (no color, no shape, just plain text). A secondary action next
   to the gold primary CTA, so it gets brand teal instead of gold, same
   pill shape and exact same padding/font-size as .btn-nav-cta so the two
   sit at matching visual weight rather than one looking bigger. */
.nuru-navbar .bmc-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20, 184, 166, 0.12);
    color: var(--brand-teal-light) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(20, 184, 166, 0.35);
    transition: all var(--transition);
}
.nuru-navbar .bmc-trigger-btn:hover {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(20, 184, 166, 0.6);
    transform: translateY(-1px);
    color: var(--brand-teal-light) !important;
}

@media (max-width: 991px) {
    .nuru-navbar .bmc-trigger-btn {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .nuru-navbar .navbar-collapse {
        background: var(--brand-navy);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nuru-navbar .nav-link {
        padding: 0.75rem 0.5rem !important;
    }
    .nuru-navbar .nav-link::after {
        display: none;
    }
    .nuru-navbar .btn-nav-cta {
        display: block;
        text-align: center;
        margin-top: 0.75rem;
        width: 100%;
    }
}

/* ─── Hero (Strict Overflow Blocking) ─── */
.hero-section {
    position: relative;
    background: var(--brand-midnight);
    overflow: hidden !important; /* Critical to lock absolute child gradients internally */
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 8rem);
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(20, 184, 166, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 197, 94, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand-indigo-light), var(--brand-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat__value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--brand-gold-light);
    line-height: 1;
}

.hero-stat__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ─── Feature cards ─── */
.feature-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 4vw, 2rem);
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(20, 184, 166, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

/* A little life in the icon itself on hover — a soft bouncy pop, not
   just the card lifting underneath it. */
.feature-card:hover .feature-card__icon {
    transform: scale(1.12) rotate(-6deg);
}

/* Solutions section only: a slow ambient bob so the icons feel alive
   even before the visitor hovers, staggered per card so they don't
   all move in lockstep. */
#solutions .feature-card__icon {
    animation: valueIconBob 3.6s ease-in-out infinite;
}
#solutions .row > div:nth-child(1) .feature-card__icon { animation-delay: 0s; }
#solutions .row > div:nth-child(2) .feature-card__icon { animation-delay: 0.3s; }
#solutions .row > div:nth-child(3) .feature-card__icon { animation-delay: 0.6s; }
#solutions .row > div:nth-child(4) .feature-card__icon { animation-delay: 0.9s; }
#solutions .row > div:nth-child(5) .feature-card__icon { animation-delay: 1.2s; }
#solutions .row > div:nth-child(6) .feature-card__icon { animation-delay: 1.5s; }
#solutions .feature-card:hover .feature-card__icon { animation-play-state: paused; }

.feature-card__icon--indigo {
    background: rgba(20, 184, 166, 0.1);
    color: var(--brand-indigo);
}

.feature-card__icon--gold {
    background: rgba(34, 197, 94, 0.1);
    color: var(--brand-gold-dark);
}

.feature-card__icon--teal {
    background: rgba(20, 184, 166, 0.1);
    color: #0D9488;
}

.pillar-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition);
}

.pillar-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pillar-card img {
    height: clamp(180px, 25vw, 220px);
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-card:hover img { transform: scale(1.05); }

.pillar-card__body { padding: clamp(1.25rem, 3vw, 1.75rem); }

.pillar-card__link {
    color: var(--brand-indigo);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    display: inline-block;
    transition: color var(--transition);
}
.pillar-card__link:hover { color: var(--brand-indigo-dark); }

/* ─── CTA banner ─── */
.cta-banner {
    /* Was navy→midnight — nearly the same near-black tone as the section
       it sits in, so the card had almost no visual separation. A brand
       teal→green gradient makes it read as an actual highlighted promo. */
    background: linear-gradient(135deg, var(--brand-teal-dark) 0%, var(--brand-ink) 100%);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    position: relative;
    overflow: hidden !important;
    box-shadow: 0 12px 36px rgba(20, 184, 166, 0.18);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner__icon {
    font-size: 5rem;
    color: var(--brand-green-light);
    opacity: 0.25;
}

/* ─── Course cards ─── */
.course-landing-card {
    position: relative;
    z-index: 1;
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-2xl) !important;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    overflow: hidden;
}

.course-landing-card img {
    height: clamp(180px, 25vw, 220px);
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-landing-card:hover {
    z-index: 2;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
    border-color: rgba(20, 184, 166, 0.25) !important;
}

.course-landing-card:hover img { transform: scale(1.06); }

.card-title-hover { transition: color 0.3s ease; }
.course-landing-card:hover .card-title-hover { color: var(--brand-indigo) !important; }

.badge-glass {
    background: rgba(10, 15, 28, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.line-clamp-landing {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.extra-small { font-size: 0.75rem; letter-spacing: 0.04em; }

/* ─── Search ─── */
.search-container-parent,
[style*="z-index: 9999"] { isolation: isolate; }

.row.g-4 { position: relative; z-index: 1; }

#suggestionsBox {
    overflow: hidden;
    animation: nuruSlideDown 0.3s ease-out;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999 !important;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg) !important;
    background: var(--surface-raised) !important;
}

.search-container-parent { position: relative; z-index: 10000; }

.search-bar {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.search-bar:focus-within {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(20, 184, 166, 0.12);
    border-color: var(--brand-indigo-light);
}

.list-group-item-action {
    border: none !important;
    padding: 14px 20px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: var(--surface-raised);
}

.list-group-item-action:hover {
    background: rgba(20, 184, 166, 0.06) !important;
    color: var(--brand-indigo) !important;
    padding-left: 24px !important;
    border-left: 3px solid var(--brand-indigo) !important;
}

.suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 14px;
    flex-shrink: 0;
}

/* ─── Team cards ─── */
.team-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 4vw, 2rem) 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-subtle);
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}

.team-card:hover img { border-color: var(--brand-indigo-light); }

.team-card__role {
    color: var(--brand-indigo);
    font-size: 0.8rem;
    font-weight: 600;
}

.team-card__social a {
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.team-card__social a:hover {
    background: var(--brand-indigo);
    color: #fff;
}

/* ─── Contact section ─── */
.contact-panel {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.contact-panel__info {
    background: linear-gradient(160deg, var(--brand-midnight) 0%, var(--brand-navy) 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    color: #fff;
    position: relative;
    overflow: hidden !important;
}

.contact-panel__info::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-indigo-light);
    flex-shrink: 0;
}

/* ─── Values section ─── */
.values-section {
    /* Second pass: the first fix (ink-3 → midnight) was still two near-
       black tones blending into the page around it — same underlying
       problem as .auth-panel/.cta-banner before those were fixed with an
       actual color, not just a lighter shade of black. Same fix here:
       a real teal tone blended toward ink, so the block reads as its own
       distinct surface and the text sitting on it has real contrast. */
    background: linear-gradient(160deg, var(--brand-teal-dark) 0%, var(--brand-ink) 100%);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: var(--radius-2xl);
    margin: 0 1rem;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    position: relative;
    overflow: hidden !important;
}

.values-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
}

.value-item {
    transition: transform 0.35s ease;
}
.value-item:hover { transform: translateY(-6px); }

.value-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-indigo-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: valueIconBob 3.6s ease-in-out infinite;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* A pulsing ring that breathes outward from each icon, like a soft
   radar ping — reads as "alive" without being distracting. */
.value-item__icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.4);
    animation: valueRingPulse 2.6s ease-out infinite;
}

.value-item:hover .value-item__icon {
    background: rgba(20, 184, 166, 0.28);
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.08);
}

.value-item:nth-child(1) .value-item__icon { animation-delay: 0s; }
.value-item:nth-child(1) .value-item__icon::after { animation-delay: 0.2s; }
.value-item:nth-child(2) .value-item__icon { animation-delay: 0.4s; }
.value-item:nth-child(2) .value-item__icon::after { animation-delay: 0.6s; }
.value-item:nth-child(3) .value-item__icon { animation-delay: 0.8s; }
.value-item:nth-child(3) .value-item__icon::after { animation-delay: 1s; }
.value-item:nth-child(4) .value-item__icon { animation-delay: 1.2s; }
.value-item:nth-child(4) .value-item__icon::after { animation-delay: 1.4s; }

@keyframes valueIconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes valueRingPulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .value-item__icon,
    .value-item__icon::after,
    #solutions .feature-card__icon {
        animation: none !important;
    }
}

/* The description text under each value used Bootstrap's .text-white-50
   (50% opacity white) — legible in isolation, but too dim once it landed
   on this very dark custom background; same problem hit the contact
   panel's address/phone lines. Bump the effective contrast without
   losing the "muted/secondary" visual hierarchy the class is going for. */
.values-section .text-white-50,
.contact-panel__info .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* ─── Footer ─── */
.nuru-footer {
    background: var(--brand-midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

.nuru-footer .footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.nuru-footer h6 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.nuru-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.nuru-footer a:hover { color: var(--brand-gold-light) !important; }

/* Base .social-link — usable anywhere (contact panels, etc.), not just
   the footer, which previously left it unstyled outside .nuru-footer.
   The .nuru-footer selector beats the footer's generic `.nuru-footer a`
   (inline-block + padding), which pushed the icons off-centre. */
.social-link,
.nuru-footer .social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
    transition: all var(--transition);
}

.social-link i { display: block; line-height: 1; }

.social-link:hover {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    border-color: var(--brand-teal);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.nuru-footer hr {
    border-color: rgba(255, 255, 255, 0.08);
}

.nuru-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
}
.nuru-footer .newsletter-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.nuru-footer .newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    color: #fff;
}

.nuru-footer .btn-newsletter {
    background: var(--brand-gold);
    color: var(--brand-midnight);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
}

/* Bootstrap gives .modal-body `position: relative` by default. In a
   modal that skips .modal-header and instead floats a bare .btn-close
   as a direct child of .modal-content (e.g. the newsletter modal),
   .modal-body sits later in DOM order than that button — and among
   sibling positioned elements with z-index:auto, later DOM order wins
   the paint order. .modal-body's much larger box then covers the
   button entirely, silently swallowing every click aimed at it. Give
   the button an explicit stack level so it always wins. */
.modal-content > .btn-close {
    z-index: 5;
}

/* ─── FAQ ─── */
.faq-section {
    background: var(--surface-muted);
    border-top: 1px solid var(--border-subtle);
}

#faqAccordion {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--surface-raised);
}

#faqAccordion .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: var(--surface-raised);
    color: var(--text-primary);
}

#faqAccordion .accordion-button:not(.collapsed) {
    background: rgba(20, 184, 166, 0.06);
    color: var(--brand-indigo);
    box-shadow: none;
}

#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

#faqAccordion .accordion-body {
    color: var(--text-secondary);
    padding: 0 1.5rem 1.25rem;
}

/* ─── Auth pages ─── */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--surface-base);
    padding: clamp(1.5rem, 5vw, 3rem) 0;
}

.auth-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-raised);
}

.auth-panel {
    /* Was navy→midnight — the same low-contrast near-black-on-near-black
       pattern fixed elsewhere (cta-banner, values-section): the panel
       barely read as distinct from the page, and its 75%-opacity white
       copy looked washed out sitting on it. Brand teal→green instead. */
    background: linear-gradient(160deg, var(--brand-teal-dark) 0%, var(--brand-ink) 100%);
    position: relative;
    overflow: hidden !important;
}

.auth-panel__content p {
    color: rgba(255, 255, 255, 0.88) !important;
}

.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.auth-panel__content { position: relative; z-index: 2; }

.bg-circle-1, .bg-circle-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s infinite ease-in-out;
}
.bg-circle-1 { top: -50px; right: -50px; width: 200px; height: 200px; }
.bg-circle-2 { bottom: -30px; left: -30px; width: 150px; height: 150px; animation-direction: reverse; animation-duration: 8s; }

/* ─── Error pages ─── */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.error-page__code {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-indigo-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.error-page__icon--warning { background: rgba(245, 158, 11, 0.12); color: #FBBF24; }
.error-page__icon--danger { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.error-page__icon--info { background: rgba(20, 184, 166, 0.12); color: var(--brand-indigo); }

/* ─── Payment ─── */
.payment-status-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    background: var(--surface-raised);
    max-width: 440px;
    width: 100%;
}

.payment-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.payment-status-icon--success { background: rgba(20, 184, 166, 0.1); color: var(--brand-indigo); }
.payment-status-icon--error { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

.payment-loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-bottom-color: var(--brand-indigo);
    border-radius: 50%;
    animation: nuruSpin 0.8s linear infinite;
}

/* ─── Forms ─── */
.nuru-form-control:focus,
.form-control:focus {
    border-color: var(--brand-indigo) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12) !important;
}

/* ─── Alerts ─── */
.alert {
    border: none;
    border-radius: var(--radius-lg);
}

/* ─── Back to top ─── */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-indigo);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--brand-indigo-dark); transform: translateY(-3px); }

/* ─── Skip link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--brand-indigo);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ─── Cards generic ─── */
.nuru-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    background: var(--surface-raised);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}
.nuru-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ─── Animations ─── */
@keyframes nuruSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nuruSpin { to { transform: rotate(360deg); } }
@keyframes nuruFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, 12px); }
}

.animate-fade-in { animation: nuruFadeIn 1.2s ease-out; }
.z-index-10 { z-index: 10; }
.transition-all { transition: all 0.3s ease; }

lottie-player { margin: 0 auto; filter: hue-rotate(135deg) saturate(0.95) brightness(1.05); }

/* ─── Responsive & Hard-Stopping Over-Sliding ─── */
@media (max-width: 768px) {
    .display-5 { font-size: 2rem; }
    .course-landing-card img { height: 180px; }
    #suggestionsBox { left: 0; right: 0; width: 100%; }
    #backToTop { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
    .values-section { margin: 0; border-radius: 0; } 
    
    .nuru-footer .btn-newsletter,
    .nuru-footer .newsletter-input {
        width: 100%;
        text-align: center;
    }
    .nuru-footer .btn-newsletter {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Converts inline button arrays to vertical blocks to avoid breaking parent layout container scopes */
    .hero-content .btn,
    .cta-banner .btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
    .hero-content .btn:last-child,
    .cta-banner .btn:last-child {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
