/* Blueaxis Logistics — premium single-page */

:root {
    --bx-navy: #0f172a;
    --bx-blue: #1e40af;
    --bx-blue-dark: #1e3a8a;
    --bx-accent: #2563eb;
    --bx-sky: #38bdf8;
    --bx-slate: #64748b;
    --bx-light: #f8fafc;
    --bx-white: #ffffff;
    --bx-radius: 1rem;
    --bx-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

html {
    scroll-behavior: smooth;
}

body.bx-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--bx-navy);
    background: var(--bx-light);
}

.bx-font-display {
    font-family: 'DM Sans', 'Plus Jakarta Sans', sans-serif;
}

/* Header */
.bx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.bx-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.bx-header:not(.is-scrolled) .bx-nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.bx-header:not(.is-scrolled) .bx-nav-link:hover {
    color: #fff;
}

.bx-header.is-scrolled .bx-nav-link {
    color: var(--bx-slate);
}

.bx-header.is-scrolled .bx-nav-link:hover {
    color: var(--bx-blue);
}

.bx-logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bx-logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--bx-accent), var(--bx-sky));
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* Hero */
.bx-hero {
    min-height: 92vh;
    background: linear-gradient(145deg, var(--bx-navy) 0%, var(--bx-blue-dark) 45%, var(--bx-blue) 100%);
    position: relative;
    overflow: hidden;
}

.bx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(56, 189, 248, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(37, 99, 235, 0.2), transparent);
    pointer-events: none;
}

.bx-hero-grid {
    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: 48px 48px;
    mask-image: linear-gradient(to bottom, black 30%, transparent);
}

.bx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bx-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--bx-white);
    color: var(--bx-blue);
    font-weight: 700;
    border-radius: 9999px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.bx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bx-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: background 0.2s, border-color 0.2s;
}

.bx-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Stats */
.bx-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--bx-radius);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
}

/* Sections */
.bx-section {
    padding: 5rem 0;
}

.bx-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bx-navy);
}

.bx-section-lead {
    color: var(--bx-slate);
    font-size: 1.125rem;
    max-width: 42rem;
}

/* Services */
.bx-service-card {
    background: var(--bx-white);
    border-radius: var(--bx-radius);
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.bx-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bx-shadow);
}

.bx-service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--bx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Products */
.bx-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.bx-product-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--bx-slate);
    cursor: pointer;
    transition: all 0.2s;
}

.bx-product-tab.active,
.bx-product-tab:hover {
    background: var(--bx-blue);
    border-color: var(--bx-blue);
    color: white;
}

.bx-product-panel {
    display: none;
    animation: bxFadeIn 0.35s ease;
}

.bx-product-panel.active {
    display: block;
}

@keyframes bxFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bx-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.bx-product-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bx-product-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.bx-product-item__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
}

.bx-product-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bx-product-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bx-slate);
    background: linear-gradient(145deg, #eff6ff, #f8fafc);
}

.bx-product-item__placeholder i {
    font-size: 2rem;
    color: var(--bx-accent);
    opacity: 0.7;
}

.bx-product-item__body {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1rem;
}

.bx-product-item__check {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.bx-product-item input:checked ~ .bx-product-label,
.bx-product-item:has(input:checked) .bx-product-label {
    color: var(--bx-blue);
}

.bx-product-item:has(input:checked) {
    border-color: var(--bx-accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.bx-product-item:has(input:checked) .bx-product-item__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
}

/* Locations */
.bx-location-card {
    background: white;
    border-radius: var(--bx-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.bx-location-head {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bx-blue), var(--bx-accent));
    color: white;
}

/* Quote form */
.bx-quote-section {
    background: linear-gradient(180deg, #eff6ff 0%, var(--bx-light) 100%);
    scroll-margin-top: 5.5rem;
}

.bx-btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--bx-blue), var(--bx-accent));
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.bx-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.bx-btn-continue.is-pulse {
    animation: bxContinuePulse 2s ease-in-out infinite;
}

@keyframes bxContinuePulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(37, 99, 235, 0.55), 0 0 0 4px rgba(37, 99, 235, 0.12); }
}

.bx-catalog-actions.is-ready .bx-btn-continue {
    animation: none;
}

.bx-selected-summary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--bx-navy);
}

.bx-selected-summary.hidden {
    display: none;
}

.bx-selected-summary strong {
    color: var(--bx-blue);
}

.bx-selected-summary ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.bx-quote-form.bx-form-highlight {
    animation: bxFormHighlight 1.2s ease;
}

@keyframes bxFormHighlight {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    40% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15); }
    100% { box-shadow: var(--bx-shadow); }
}

/* Sticky quote bar */
.bx-quote-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.bx-quote-sticky.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.bx-quote-sticky.is-visible {
    pointer-events: auto;
}

.bx-quote-sticky__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bx-quote-sticky__text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bx-navy);
    margin: 0;
}

.bx-quote-sticky__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: var(--bx-blue);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bx-quote-sticky__btn:hover {
    background: var(--bx-blue-dark);
    transform: translateY(-1px);
}

body.bx-sticky-active {
    padding-bottom: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bx-quote-sticky,
    .bx-btn-continue,
    .bx-quote-form.bx-form-highlight {
        animation: none !important;
        transition: none !important;
    }
}

.bx-quote-form {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--bx-shadow);
    border: 1px solid #e2e8f0;
}

.bx-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bx-input:focus {
    outline: none;
    border-color: var(--bx-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bx-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bx-navy);
    margin-bottom: 0.35rem;
}

.bx-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.bx-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.bx-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.bx-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Footer */
.bx-footer {
    background: var(--bx-navy);
    color: #94a3b8;
}

.bx-footer a:hover {
    color: white;
}

/* Mobile nav */
.bx-mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .bx-nav-desktop {
        display: none;
    }

    .bx-mobile-nav.is-open {
        display: block;
        position: fixed;
        inset: 0;
        top: 4rem;
        background: white;
        z-index: 40;
        padding: 1.5rem;
        border-top: 1px solid #e2e8f0;
    }

    .bx-mobile-nav a {
        display: block;
        padding: 0.75rem 0;
        font-weight: 600;
        color: var(--bx-navy);
        border-bottom: 1px solid #f1f5f9;
    }
}
