/* =============================================================
   FieldCRM — Global Stylesheet  |  Light Theme
   Font: Poppins  |  Colors: Blue #1D4ED8 + Orange #F97316
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
    /* ── Brand Palette ── */
    --blue: #1D4ED8;
    --blue-dark: #1E3A8A;
    --blue-mid: #2563EB;
    --blue-light: #DBEAFE;
    --blue-xlight: #EFF6FF;
    --orange: #F97316;
    --orange-dark: #EA580C;
    --orange-light: #FED7AA;
    --orange-xlight: #FFF7ED;

    /* ── Neutrals ── */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* ── Semantic ── */
    --clr-bg: var(--white);
    --clr-surface: var(--gray-50);
    --clr-surface-2: var(--gray-100);
    --clr-border: var(--gray-200);
    --clr-text: var(--gray-700);
    --clr-heading: var(--gray-900);
    --clr-muted: var(--gray-500);
    --clr-accent: var(--orange);
    --clr-primary: var(--blue);

    /* ── Type ── */
    --font: 'Poppins', sans-serif;

    /* ── Radii ── */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --r-2xl: 40px;

    /* ── Shadows ── */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .07);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);
    --shadow-blue: 0 8px 32px rgba(29, 78, 216, .25);
    --shadow-orng: 0 8px 32px rgba(249, 115, 22, .3);

    --transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    color: var(--clr-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 99px;
}

/* ─────────────────────────────────────────
      NAVBAR
   ───────────────────────────────────────── */
#mainNav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--clr-border);
    padding: .9rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    padding: .55rem 0;
    box-shadow: var(--shadow-sm);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 1rem;
}

.brand-name {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--orange);
}

.navbar-nav .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: .45rem .85rem !important;
    border-radius: var(--r-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--blue) !important;
    background: var(--blue-xlight);
}

/* Buttons */
.btn-nav-login {
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: var(--r-sm);
    padding: .42rem 1.1rem;
    transition: var(--transition);
    background: transparent;
}

.btn-nav-login:hover {
    background: var(--blue);
    color: #fff;
}

.btn-nav-cta {
    font-size: .85rem;
    font-weight: 600;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: .45rem 1.2rem;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: var(--orange-dark);
    color: #fff;
    box-shadow: var(--shadow-orng);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────
      SECTION UTILITIES
   ───────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-xlight);
    border: 1.5px solid var(--orange-light);
    padding: 4px 13px;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gray-900);
    margin-bottom: .75rem;
}

.section-title span.accent {
    color: var(--orange);
}

.section-title span.primary {
    color: var(--blue);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--clr-muted);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 400;
}

/* ─────────────────────────────────────────
      CARDS
   ───────────────────────────────────────── */
.feature-card {
    background: var(--white);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-blue);
    transform: translateY(-5px);
}

.feature-card:hover .feat-icon-wrap {
    background: var(--blue);
    color: #fff;
}

.feat-icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--blue-xlight);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 1.1rem;
    transition: var(--transition);
}

/* ─────────────────────────────────────────
      BUTTONS (general)
   ───────────────────────────────────────── */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--blue-dark);
    color: #fff;
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.btn-orange-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-orange-custom:hover {
    background: var(--orange-dark);
    color: #fff;
    box-shadow: var(--shadow-orng);
    transform: translateY(-2px);
}

.btn-outline-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .95rem;
    padding: .73rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-blue:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────
      DIVIDER
   ───────────────────────────────────────── */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
    border: none;
    margin: 0;
}

/* ─────────────────────────────────────────
      FOOTER
   ───────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
}

.footer-brand-name .accent {
    color: var(--orange);
}

.footer-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--orange);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 1rem;
}

.footer-desc {
    font-size: .875rem;
    color: var(--gray-500);
    max-width: 280px;
    line-height: 1.65;
}

.footer-heading {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .55rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: .875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-sm);
    color: var(--gray-400);
    font-size: .95rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .82rem;
    color: var(--gray-500);
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--gray-500);
}

/* ─────────────────────────────────────────
      ANIMATIONS
   ───────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp .65s cubic-bezier(.22, 1, .36, 1) both;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .4s;
}

.delay-5 {
    animation-delay: .55s;
}

/* ─────────────────────────────────────────
      BADGE
   ───────────────────────────────────────── */
.badge-blue {
    background: var(--blue-xlight);
    color: var(--blue);
    border: 1px solid var(--blue-light);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
}

.badge-orange {
    background: var(--orange-xlight);
    color: var(--orange-dark);
    border: 1px solid var(--orange-light);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
}

/* ─────────────────────────────────────────
      RESPONSIVE — MOBILE NAV
   ───────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Dropdown panel */
    #navMenu {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--r-lg);
        padding: .5rem .5rem .75rem;
        margin-top: .5rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    }

    /* Nav link items */
    #navMenu .navbar-nav {
        gap: 2px !important;
    }

    #navMenu .nav-link {
        display: block;
        padding: .7rem 1rem !important;
        font-size: .9rem !important;
        border-radius: var(--r-sm);
        color: var(--gray-700) !important;
    }

    #navMenu .nav-link.active,
    #navMenu .nav-link:hover {
        background: var(--blue-xlight) !important;
        color: var(--blue) !important;
    }

    /* Separator before buttons */
    #navMenu .nav-item.ms-lg-2 {
        border-top: 1px solid var(--gray-200);
        padding-top: .5rem;
        margin-top: .25rem !important;
    }

    #navMenu .nav-item.ms-lg-1 {
        margin: 0 !important;
    }

    /* Full-width buttons */
    .btn-nav-login {
        display: block;
        width: 100%;
        text-align: center;
        padding: .65rem 1rem;
        border-radius: var(--r-sm);
        font-size: .88rem;
        margin-bottom: .4rem;
    }

    .btn-nav-cta {
        display: block;
        width: 100%;
        text-align: center;
        padding: .7rem 1rem;
        border-radius: var(--r-sm);
        font-size: .88rem;
    }
}