﻿/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* FIX: Prevent horizontal scroll */
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* FIX: Prevent horizontal scroll */
    width: 100%; /* Ensure body doesn't stretch */
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent-text);
    text-underline-offset: 3px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.container {
    max-width: 1320px;
    padding-inline: 20px;
    margin-inline: auto;
}

@media (max-width: 575.98px) {
    .container {
        padding-inline: 16px;
    }
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .82rem;
}

.hint {
    font-size: .75rem;
    color: var(--muted);
    margin: 8px 0 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 300;
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    text-decoration: none;
    font-weight: 600;
    transition: top .2s;
}

    .skip-link:focus {
        top: 12px;
    }

/* ============================================================
   BUTTONS & BADGES
   ============================================================ */
.u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
    white-space: nowrap;
}

    .u-btn:hover {
        background: var(--accent-hover);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    .u-btn:active {
        transform: translateY(0);
    }

.u-btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

    .u-btn--secondary:hover {
        background: var(--surface);
        color: var(--accent-text);
        border-color: var(--accent);
        box-shadow: var(--shadow-sm);
    }

.u-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

    .u-btn--ghost:hover {
        background: var(--surface-2);
        color: var(--accent-text);
        border-color: var(--accent);
    }

.u-btn--sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: .82rem;
    border-radius: 8px;
}

.u-btn--block {
    width: 100%;
}

.u-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
}

.u-badge--accent {
    background: var(--accent-soft);
    color: var(--accent-text);
    border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.u-badge--demo {
    background: color-mix(in srgb, var(--warning) 14%, transparent);
    color: var(--warning-text);
    border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}

.icon-tile {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 1.2rem;
}

.u-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.u-card--hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

/* ============================================================
   HEADER & NAVIGATION (Desktop & Mobile)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: 0 6px 16px -8px var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

    /* Target both normal links and the dropdown button */
    .main-nav a,
    .nav-dropdown .dropdown-trigger {
        color: var(--muted);
        text-decoration: none;
        font-size: .85rem;
        font-weight: 500;
        padding: 8px 10px;
        border-radius: 8px;
        white-space: nowrap;
        transition: color .15s, background .15s;
        background: transparent;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        font-family: inherit; /* This fixes the font */
    }

        .main-nav a:hover,
        .nav-dropdown .dropdown-trigger:hover,
        .main-nav a[aria-current="page"],
        .nav-dropdown .dropdown-trigger.active {
            color: var(--accent-text);
            background: var(--accent-soft);
        }
/* ============================================================
   DESKTOP DROPDOWN NAVIGATION
   ============================================================ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* The clickable button */
.dropdown-trigger {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Rotate the arrow when open or hovered */
.nav-dropdown:hover .dropdown-trigger i,
.nav-dropdown.is-open .dropdown-trigger i {
    transform: rotate(180deg);
}

/* The dropdown menu box */
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    /* THESE ARE THE FIXES */
    display: block; /* Overrides Bootstrap's display: none */
    margin-top: 4px; /* Small gap to prevent accidental closing */

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
    margin: 0;
    z-index: 100;
}

/* Show on hover or when clicked via JS */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

    .nav-dropdown .dropdown-menu a:hover,
    .nav-dropdown .dropdown-menu a.active {
        background: var(--accent-soft);
        color: var(--accent-text);
        font-weight: 600;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.theme-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.accent-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--dot);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border);
    transition: transform .15s, box-shadow .15s;
}

    .accent-dot:hover {
        transform: scale(1.08);
    }

    .accent-dot[aria-pressed="true"] {
        box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--dot);
    }

.accent-dot--red {
    --dot: #DC2626;
}

.accent-dot--green {
    --dot: #15803D;
}

.accent-dot--blue {
    --dot: #2563EB;
}

.mode-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .15s, color .15s;
}

    .mode-toggle:hover {
        border-color: var(--accent);
        color: var(--accent-text);
    }

    .mode-toggle .bi-moon-stars {
        display: none;
    }

[data-theme="dark"] .mode-toggle .bi-sun {
    display: none;
}

[data-theme="dark"] .mode-toggle .bi-moon-stars {
    display: inline-block;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    place-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s;
}

    .menu-toggle:hover {
        background: var(--surface);
        color: var(--accent-text);
    }

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

    .mobile-menu.is-open {
        max-height: calc(100vh - 76px);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

.mobile-menu-inner {
    padding: 16px 20px 24px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

    .mobile-nav > a, .mobile-dropdown-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
        font-size: 1rem;
        background: var(--surface-2);
        border: 1px solid transparent;
        transition: all 0.2s;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

        .mobile-nav > a:hover, .mobile-nav > a.active, .mobile-dropdown-btn:hover, .mobile-dropdown-btn.active {
            background: var(--accent-soft);
            color: var(--accent-text);
            border-color: color-mix(in srgb, var(--accent) 20%, transparent);
        }

.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    margin-top: 4px;
    gap: 4px;
}

.mobile-dropdown.is-open .mobile-dropdown-content {
    display: flex;
}

.mobile-dropdown.is-open .mobile-dropdown-btn i {
    transform: rotate(180deg);
}

.mobile-dropdown-content a {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    background: transparent;
    border-bottom: 1px solid var(--border);
}

    .mobile-dropdown-content a:last-child {
        border-bottom: none;
    }

    .mobile-dropdown-content a:hover, .mobile-dropdown-content a.active {
        background: var(--surface-2);
        color: var(--accent-text);
    }

.mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

.mobile-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Responsive Breakpoint */
@media (max-width: 1199.98px) {
    .main-nav, .header-cta {
        display: none !important;
    }

    .menu-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: auto;
    }

        .header-actions .theme-cluster, .header-actions [data-mode-toggle] {
            display: none !important;
        }
}

@media (min-width: 1200px) {
    .mobile-menu {
        display: none !important;
    }
}

body.nav-open {
    overflow: hidden;
}

/* ============================================================
   HOMEPAGE SECTIONS & LAYOUTS
   ============================================================ */
.section {
    padding-block: clamp(56px, 8vw, 100px);
}

.section--surface {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.section-head-copy {
    max-width: 700px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    margin: .35rem 0 .5rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-text);
}

    .eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--accent);
    }

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 92px);
    background-color: var(--bg);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: -25% -12% auto auto;
        width: 680px;
        height: 680px;
        background: radial-gradient(circle, var(--accent-soft), transparent 66%);
        pointer-events: none;
        z-index: 0;
    }

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

    .hero-grid > * {
        min-width: 0;
    }

@media (max-width: 991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 14px 0 18px;
}

.hl {
    background: linear-gradient(transparent 64%, var(--accent-soft) 64%);
    padding: 0 .05em;
    border-radius: 3px;
}

.hero-lead {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--muted);
}

    .hero-facts span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .hero-facts i {
        color: var(--success-text);
    }

.cap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    height: 100%;
}

    .cap h3 {
        font-size: .95rem;
        margin: 0 0 3px;
    }

    .cap p {
        font-size: .82rem;
        color: var(--muted);
        margin: 0;
    }

.service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-text);
}

    .service-link:hover i {
        transform: translateX(3px);
    }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991.98px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-text);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .82rem;
    margin-bottom: 12px;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

    .field label {
        font-size: .78rem;
        font-weight: 600;
    }

.input, .select, .textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: .88rem;
}

    .input:focus, .select:focus, .textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

.textarea {
    min-height: 110px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

@media (max-width: 575.98px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .input, .select, .textarea {
        font-size: 16px !important;
        min-height: 48px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 10px;
}

.footer-link {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    font-size: .85rem;
    background: none;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

    .footer-link:hover {
        color: var(--accent-text);
    }

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding: 18px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .76rem;
    color: var(--muted);
}

.footer-contact {
    display: grid;
    gap: 8px;
    font-size: .82rem;
    color: var(--muted);
}

    .footer-contact span {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .footer-contact i {
        color: var(--accent-text);
    }

/* ============================================================
   FAQ & MISC
   ============================================================ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 10px;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    background: transparent;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

    .faq-q i {
        color: var(--muted);
        transition: transform .2s;
    }

    .faq-q[aria-expanded="true"] i {
        transform: rotate(180deg);
        color: var(--accent-text);
    }

.faq-a {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: .88rem;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, var(--surface) 30%, rgba(255,255,255,0)), linear-gradient(to right, rgba(255,255,255,0), var(--surface) 70%) 0 100%, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.2), rgba(0,0,0,0)), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/*footer Style for*/
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--muted);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-legal-links a,
    .footer-credit a {
        color: var(--muted);
        text-decoration: none;
        transition: color .2s ease;
    }

        .footer-legal-links a:hover,
        .footer-credit a:hover {
            color: var(--primary);
        }

.footer-credit a {
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-legal-links {
        justify-content: center;
    }
}



