/* ==========================================================================
   XPERT AC PARTS — INDUSTRIAL BLUEPRINT DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Bungee+Inline&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* ── Palette ─────────────────────────────────────────────────── */
    --xpert-primary: #1F4E79;
    --xpert-deep:    #0F2D47;
    --xpert-ink:     #08182B;
    --xpert-bg:      #F0F6FB;
    --xpert-cream:   #FAF7F2;
    --xpert-paper:   #FFFFFF;
    --xpert-text:    #1A1A1A;
    --xpert-muted:   #5B6B7C;
    --xpert-border:  #E2E8EE;
    --xpert-border-strong: #B6C2CE;
    --xpert-accent:  #FF6B1A;
    --xpert-accent-deep: #E55610;
    --xpert-cyan:    #06B6D4;
    --xpert-success: #10B981;
    --xpert-warning: #F59E0B;
    --xpert-wa-green: #25D366;

    /* ── Typography ──────────────────────────────────────────────── */
    --font-display: 'Big Shoulders Display', 'Impact', 'Arial Narrow Bold', sans-serif;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', 'SF Mono', Consolas, monospace;

    /* ── Layout ──────────────────────────────────────────────────── */
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 4px;
    --radius-lg: 8px;

    /* ── Effects ─────────────────────────────────────────────────── */
    --shadow-sm: 0 1px 2px rgba(15, 45, 71, .05);
    --shadow:    0 6px 20px rgba(15, 45, 71, .08);
    --shadow-lg: 0 24px 60px rgba(15, 45, 71, .14);

    --grid-color: rgba(31, 78, 121, .06);
}

/* ── Reset / base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.xpert-themed {
    font-family: var(--font-body);
    color: var(--xpert-text);
    background: var(--xpert-paper);
    margin: 0;
    line-height: 1.55;
    font-size: 16px;
    font-feature-settings: "ss01", "cv01";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.xpert-themed a { color: var(--xpert-primary); text-decoration: none; }
body.xpert-themed a:hover { color: var(--xpert-accent); }
body.xpert-themed img { max-width: 100%; height: auto; display: block; }

body.xpert-themed h1, body.xpert-themed h2, body.xpert-themed h3,
body.xpert-themed h4, body.xpert-themed h5, body.xpert-themed h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--xpert-deep);
    margin: 0 0 .5em;
}
body.xpert-themed p { margin: 0 0 1em; }

.xpert-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Mono micro-label used for technical/spec accents */
.xpert-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--xpert-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.xpert-label::before {
    content: '';
    width: 18px; height: 1px;
    background: currentColor;
    display: inline-block;
}
.xpert-label--light { color: rgba(255, 255, 255, .7); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.xpert-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 14px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}
.xpert-btn svg { width: 16px; height: 16px; }
.xpert-btn--primary {
    background: var(--xpert-accent);
    color: #fff !important;
    border-color: var(--xpert-accent);
}
.xpert-btn--primary:hover {
    background: var(--xpert-accent-deep);
    border-color: var(--xpert-accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 107, 26, .25);
}
.xpert-btn--dark {
    background: var(--xpert-deep);
    color: #fff !important;
    border-color: var(--xpert-deep);
}
.xpert-btn--dark:hover {
    background: var(--xpert-ink);
}
.xpert-btn--outline {
    background: transparent;
    color: var(--xpert-deep) !important;
    border-color: var(--xpert-deep);
}
.xpert-btn--outline:hover {
    background: var(--xpert-deep);
    color: #fff !important;
}
.xpert-btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    border-color: rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}
.xpert-btn--ghost:hover {
    background: #fff;
    color: var(--xpert-deep) !important;
}
.xpert-btn--small { padding: 10px 16px; font-size: 12px; }
.xpert-btn--block { width: 100%; justify-content: center; }
.xpert-btn--wa {
    background: var(--xpert-wa-green);
    color: #fff !important;
    border-color: var(--xpert-wa-green);
}
.xpert-btn--wa:hover { background: #1ebe57; }

/* ── Top utility bar ──────────────────────────────────────────────── */
.xpert-utility-bar {
    background: var(--xpert-ink);
    color: #FFFFFF;
    font-size: 12.5px;
    padding: 10px 0;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.xpert-utility-bar,
.xpert-utility-bar * { color: #FFFFFF; }
.xpert-utility-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.xpert-utility-bar__left,
.xpert-utility-bar__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.xpert-utility-bar a,
body.xpert-themed .xpert-utility-bar a {
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    opacity: .9;
    transition: opacity .15s ease, color .15s ease;
}
.xpert-utility-bar a:hover,
body.xpert-themed .xpert-utility-bar a:hover {
    color: var(--xpert-accent) !important;
    opacity: 1;
}
.xpert-utility-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.xpert-utility-bar svg {
    width: 14px;
    height: 14px;
    color: var(--xpert-accent);
    flex-shrink: 0;
}
.xpert-utility-bar a svg { color: var(--xpert-accent); }
.xpert-utility-bar__flash {
    color: var(--xpert-accent) !important;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 600;
}

/* ── Header / nav ─────────────────────────────────────────────────── */
.xpert-header {
    background: #fff;
    border-bottom: 1px solid var(--xpert-border);
    position: sticky;
    top: 0;
    z-index: 800;
    transition: box-shadow .2s ease;
}
.xpert-header.is-scrolled { box-shadow: var(--shadow); }

.xpert-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
}

.xpert-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}

/* SVG wordmark sizes */
.xpert-brand-logo {
    height: 46px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.xpert-drawer .xpert-brand-logo { height: 40px; }
.xpert-logo--footer .xpert-brand-logo { height: 54px; }

.xpert-logo__tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .22em;
    color: var(--xpert-muted);
    text-transform: uppercase;
    padding-left: 14px;
    margin-left: 2px;
    border-left: 1px solid var(--xpert-border);
    line-height: 1.3;
    max-width: 100px;
}
.xpert-logo--footer .xpert-logo__tag {
    color: rgba(255, 255, 255, .55);
    border-left-color: rgba(255, 255, 255, .15);
}

@media (max-width: 720px) {
    .xpert-brand-logo { height: 38px; }
    .xpert-logo__tag { display: none; }
}

.xpert-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.xpert-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--xpert-deep) !important;
    padding: 10px 14px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.xpert-nav__link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--xpert-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.xpert-nav__link:hover::after,
.xpert-nav__link.is-active::after { transform: scaleX(1); }

.xpert-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xpert-icon-btn {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    background: var(--xpert-bg);
    color: var(--xpert-deep) !important;
    display: grid; place-items: center;
    border: 1px solid var(--xpert-border);
    position: relative;
    transition: all .15s ease;
}
.xpert-icon-btn:hover {
    background: var(--xpert-deep);
    color: #fff !important;
    border-color: var(--xpert-deep);
}
.xpert-icon-btn svg { width: 18px; height: 18px; }
.xpert-icon-btn__count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    background: var(--xpert-accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    border-radius: 999px;
    display: grid; place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

.xpert-burger {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--xpert-border);
    background: var(--xpert-bg);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    color: var(--xpert-deep);
}
.xpert-burger svg { width: 20px; height: 20px; margin: auto; }

/* ── Mobile drawer ────────────────────────────────────────────────── */
.xpert-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.xpert-drawer.is-open { transform: translateX(0); }
.xpert-drawer__backdrop {
    position: fixed; inset: 0;
    background: rgba(8, 24, 43, .45);
    z-index: 1050;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.xpert-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }
.xpert-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--xpert-border);
}
.xpert-drawer__close {
    width: 36px; height: 36px;
    background: var(--xpert-bg);
    border: 0;
    border-radius: var(--radius);
    color: var(--xpert-deep);
    cursor: pointer;
    display: grid; place-items: center;
}
.xpert-drawer__nav {
    display: flex; flex-direction: column;
    padding: 12px 0;
}
.xpert-drawer__nav a {
    padding: 14px 22px;
    color: var(--xpert-deep) !important;
    font-weight: 500;
    border-bottom: 1px solid var(--xpert-border);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 14px;
}
.xpert-drawer__cta { padding: 22px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.xpert-footer {
    background: var(--xpert-ink);
    color: rgba(255, 255, 255, .78);
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
}
.xpert-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.xpert-footer__inner { position: relative; z-index: 1; }
.xpert-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.xpert-footer__brand .xpert-logo__name { color: #fff; }
.xpert-footer__brand .xpert-logo__tag { color: rgba(255,255,255,.5); }
.xpert-footer__about {
    margin-top: 18px;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    max-width: 380px;
}
.xpert-footer__social {
    margin-top: 22px;
    display: flex;
    gap: 8px;
}
.xpert-footer__social a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff !important;
    display: grid; place-items: center;
    border-radius: var(--radius);
    transition: all .2s ease;
}
.xpert-footer__social a:hover {
    background: var(--xpert-accent);
    border-color: var(--xpert-accent);
}
.xpert-footer__social svg { width: 16px; height: 16px; }

.xpert-footer__col h4 {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.xpert-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.xpert-footer__col a {
    color: rgba(255,255,255,.7) !important;
    font-size: 14px;
}
.xpert-footer__col a:hover {
    color: var(--xpert-accent) !important;
}
.xpert-footer__contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}
.xpert-footer__contact-item svg {
    flex-shrink: 0;
    width: 16px; height: 16px;
    color: var(--xpert-accent);
    margin-top: 2px;
}
.xpert-footer__contact { display: flex; flex-direction: column; gap: 14px; }

.xpert-footer__bottom {
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12.5px;
    font-family: var(--font-mono);
    color: rgba(255,255,255,.5);
}
.xpert-footer__legal {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.xpert-footer__legal a { color: rgba(255,255,255,.5) !important; }
.xpert-footer__legal a:hover { color: var(--xpert-accent) !important; }

.xpert-pay-icons {
    display: flex;
    gap: 8px;
}
.xpert-pay-icons span {
    padding: 4px 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Generic page wrapper ─────────────────────────────────────────── */
.xpert-page-hero {
    background: var(--xpert-deep);
    color: #fff;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}
.xpert-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 107, 26, .12), transparent 50%),
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    pointer-events: none;
}
.xpert-page-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;
}
.xpert-page-hero h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 78px);
    text-transform: uppercase;
    margin: 12px 0 0;
}
.xpert-page-hero__crumbs {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,.6);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.xpert-page-hero__crumbs a { color: rgba(255,255,255,.6) !important; }
.xpert-page-hero__crumbs a:hover { color: #fff !important; }

.xpert-page-body {
    padding: 60px 0 90px;
}
.xpert-page-body .xpert-prose {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16.5px;
    line-height: 1.7;
}
.xpert-prose h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-top: 1.5em;
    margin-bottom: .6em;
    border-left: 5px solid var(--xpert-accent);
    padding-left: 16px;
}
.xpert-prose h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin-top: 1.4em;
    color: var(--xpert-primary);
}
.xpert-prose ul, .xpert-prose ol { padding-left: 22px; }
.xpert-prose li { margin-bottom: .5em; }
.xpert-prose blockquote {
    margin: 1.5em 0;
    padding: 20px 26px;
    border-left: 5px solid var(--xpert-accent);
    background: var(--xpert-bg);
    font-style: italic;
    color: var(--xpert-deep);
}
.xpert-prose code {
    font-family: var(--font-mono);
    background: var(--xpert-bg);
    padding: 2px 6px;
    font-size: 14px;
}

/* ── Blueprint dot grid (subtle) ──────────────────────────────────── */
.xpert-grid-bg {
    background-image:
        radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Spinner ──────────────────────────────────────────────────────── */
.xpert-spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--xpert-border);
    border-top-color: var(--xpert-accent);
    border-radius: 50%;
    animation: xpert-spin .7s linear infinite;
    display: inline-block;
}
@keyframes xpert-spin { to { transform: rotate(360deg); } }

/* ── Form base ────────────────────────────────────────────────────── */
.xpert-input, .xpert-select, .xpert-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    background: #fff;
    color: var(--xpert-text);
    border: 1.5px solid var(--xpert-border);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.xpert-input:focus, .xpert-select:focus, .xpert-textarea:focus {
    outline: none;
    border-color: var(--xpert-primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, .12);
}
.xpert-textarea { min-height: 130px; resize: vertical; }
label.xpert-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
label.xpert-field > span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--xpert-muted);
    font-family: var(--font-mono);
}

/* ── Pulled-up cards / category tiles ─────────────────────────────── */
.xpert-tile {
    background: #fff;
    border: 1px solid var(--xpert-border);
    padding: 24px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit !important;
}
.xpert-tile:hover {
    border-color: var(--xpert-deep);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .xpert-header__inner { grid-template-columns: auto auto; }
    .xpert-nav { display: none; }
    .xpert-burger { display: grid; }
    .xpert-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
    .xpert-utility-bar { font-size: 11px; }
    .xpert-utility-bar__inner { justify-content: center; }
    .xpert-utility-bar__left { display: none; }
    .xpert-header__actions .xpert-icon-btn:not(.xpert-icon-btn--cart) { display: none; }
    .xpert-footer__top { grid-template-columns: 1fr; }
    .xpert-footer__bottom { flex-direction: column; align-items: flex-start; }
    .xpert-page-hero__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ── Override Hello Elementor defaults ────────────────────────────── */
body.xpert-themed.elementor-default,
body.xpert-themed {
    background: var(--xpert-paper);
}
body.xpert-themed .site-header,
body.xpert-themed .site-footer { display: none !important; }
