/**
 * Nexis Digital Institute — custom theme styles (Bootstrap 5 extension).
 */

:root {
    --nexis-primary: #0d6efd;
    --nexis-secondary: #1f2937;
    --nexis-accent: #22c55e;
    --nexis-bg-soft: #f8fafc;
    --nexis-radius: 14px;
    --nexis-shadow-soft: 0 10px 30px rgba(15, 23, 42, .08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--nexis-primary); }
a:hover { color: var(--nexis-secondary); }

.btn-primary {
    --bs-btn-bg: var(--nexis-primary);
    --bs-btn-border-color: var(--nexis-primary);
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-bg: #0a58ca;
    border-radius: 10px;
    padding: .65rem 1.25rem;
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--nexis-primary);
    --bs-btn-border-color: var(--nexis-primary);
    --bs-btn-hover-bg: var(--nexis-primary);
    border-radius: 10px;
    font-weight: 600;
}

/* Header */
.nexis-header .navbar-brand img { max-height: 44px; width: auto; }
.nexis-header .nav-link {
    font-weight: 500;
    color: var(--nexis-secondary);
    padding-left: 1rem; padding-right: 1rem;
}
.nexis-header .nav-link.active { color: var(--nexis-primary); }

/* Hero */
.nexis-hero {
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(34,197,94,.06));
    padding: 5rem 0 4rem;
}
.nexis-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.nexis-hero .lead { font-size: 1.15rem; color: #475569; }

/* Sections */
.nexis-section { padding: 5rem 0; }
.nexis-section--soft { background: var(--nexis-bg-soft); }
.nexis-section__eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    color: var(--nexis-primary);
    font-weight: 700;
}
.nexis-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

/* Cards */
.nexis-card {
    border: 0;
    border-radius: var(--nexis-radius);
    box-shadow: var(--nexis-shadow-soft);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    background: #fff;
}
.nexis-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.nexis-card .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.nexis-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--nexis-accent); color: #fff;
    font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}

/* Stats */
.nexis-stat {
    text-align: center; padding: 2rem 1rem; background: #fff;
    border-radius: var(--nexis-radius); box-shadow: var(--nexis-shadow-soft);
}
.nexis-stat__value { font-size: 2.5rem; font-weight: 800; color: var(--nexis-primary); }
.nexis-stat__label { color: #475569; font-weight: 500; }

/* Testimonials */
.nexis-testimonial {
    background: #fff; border-radius: var(--nexis-radius);
    padding: 1.5rem; box-shadow: var(--nexis-shadow-soft); height: 100%;
}
.nexis-testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* CTA */
.nexis-cta {
    background: linear-gradient(135deg, var(--nexis-primary), #1e3a8a);
    color: #fff; border-radius: var(--nexis-radius); padding: 3rem;
}
.nexis-cta .btn { background: #fff; color: var(--nexis-primary); border: 0; }
.nexis-cta .btn:hover { background: #f8fafc; }

/* WhatsApp float */
.nexis-whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1050;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(37,211,102,.4);
    transition: transform .2s ease;
}
.nexis-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* Footer */
.nexis-footer .widget-title { color: #fff; }
.nexis-footer a { color: #cbd5e1; text-decoration: none; }
.nexis-footer a:hover { color: #fff; }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; }
.form-control:focus { border-color: var(--nexis-primary); box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }

/* Verify page */
#nexis-verify-result .badge { font-size: .85rem; padding: .45em .8em; }

/* Page content */
.nexis-page-content h2 { margin-top: 1.5rem; }

/* Utilities */
.object-fit-cover { object-fit: cover; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .nexis-hero { padding: 3rem 0; }
    .nexis-section { padding: 3rem 0; }
    .nexis-cta { padding: 2rem; }
}

/* RTL */
html[dir="rtl"] .nexis-whatsapp-float { right: auto; left: 20px; }
