/* ==========================================================================
   Billease - Vendor Management System
   Custom theme layered on top of Bootstrap 5
   ========================================================================== */

:root {
    --brand-primary: #2563eb;
    --brand-accent: #0ea5e9;
    --brand-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #334155;
}

/* Reusable brand gradient */
.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
}

.text-brand {
    color: var(--brand-primary) !important;
}

/* Brand / logo mark */
.brand-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

/* Hero + inner-page banner backgrounds */
.hero,
.page-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

/* Feature / info icon badge */
.icon-box {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: #dbeafe;
    color: var(--brand-primary);
    font-size: 1.5rem;
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

/* Lift cards on hover — animated background, glow shadow & icon pop */
.card-hover {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.015);
    background: linear-gradient(160deg, #ffffff 0%, #eaf2ff 100%) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 22px 45px -14px rgba(37, 99, 235, 0.40),
                0 12px 24px -8px rgba(15, 23, 42, 0.10) !important;
}

/* The icon reacts when its card is hovered */
.card-hover:hover .icon-box {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.card-hover:hover .icon-circle {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

/* Modern card: gradient accent bar across the top */
.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transition: height 0.35s ease;
}

.card-accent.card-hover:hover::before {
    height: 7px;
}

/* Gradient circular icon for modern cards */
.icon-circle {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Testimonial helpers */
.rating {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    flex-shrink: 0;
}

/* Soft brand badge */
.badge-soft {
    background-color: #dbeafe;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Stat numbers */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

/* Team avatars */
.team-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

/* Media / quote box */
.media-box {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 1rem;
    min-height: 340px;
    display: grid;
    place-items: center;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

/* Timeline (not a Bootstrap component) */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.timeline-year {
    font-weight: 800;
    color: var(--brand-primary);
}

/* Deel-style dark navy/purple navbar */
.navbar-deel {
    background: linear-gradient(100deg, #1b1248 0%, #2a1a5e 60%, #32206e 100%);
}

/* Keep the wordmark fully white on the dark bar */
.navbar-deel .navbar-brand,
.navbar-deel .navbar-brand .text-brand {
    color: #fff !important;
}

/* Active link stands out in white on the dark bar */
.navbar-deel .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* Map */
.map-embed {
    border: 0;
    width: 100%;
    height: 320px;
    border-radius: 1rem;
}

/* Page loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: #ffffff;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.page-loader-inner {
    position: relative;
    display: grid;
    place-items: center;
}

.page-loader .loader-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
}

.page-loader .loader-spinner {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 86px;
    height: 86px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: pageLoaderSpin 0.8s linear infinite;
}

@keyframes pageLoaderSpin {
    to { transform: rotate(360deg); }
}

/* Stylish form page background with soft decorative blobs */
.form-hero {
    position: relative;
    background: linear-gradient(135deg, #eef5ff 0%, #eff9ff 45%, #f5f0ff 100%);
    overflow: hidden;
}

.form-hero::before,
.form-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.form-hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
    top: -160px;
    right: -120px;
}

.form-hero::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 68%);
    bottom: -160px;
    left: -120px;
}

.form-hero > .container {
    position: relative;
    z-index: 1;
}

/* Key Features (light card / blue icon-tile style) */
.key-features {
    background: #f6f7fb;
}

.kf-badge {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f6ef7, #3b82f6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(59, 102, 246, 0.35);
}

.kf-badge svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.kf-card {
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.kf-card:hover,
.kf-card--featured {
    transform: translateY(-8px);
    background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(59, 102, 246, 0.18);
}

.kf-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #e9edfb;
    color: #4f6ef7;
    margin-bottom: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.kf-card:hover .kf-ico,
.kf-card--featured .kf-ico {
    background: linear-gradient(135deg, #4f6ef7, #3b82f6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(59, 102, 246, 0.40);
}

.kf-ico svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kf-card h3 {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: #1f2430;
}

.kf-card p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

.imported-home-section {
    background: #ffffff;
}

.imported-home-frame {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
}
