/* ==========================================================================
   SPIM Innovations — shared brand layer
   Loaded LAST on every page. Defines the purple brand tokens and restyles the
   shared chrome (header, mobile menu, footer, floating buttons) so every page
   matches. Page-specific CSS files stay in charge of page bodies.
   ========================================================================== */

:root {
    /* Brand purple scale (500 = existing logo/accent purple) */
    --brand-50: #f6f2ff;
    --brand-100: #ece4ff;
    --brand-200: #dacdff;
    --brand-300: #c3acff;
    --brand-400: #a98aff;
    --brand-500: #9065ff;
    --brand-600: #7c4af0;   /* buttons — 5.1:1 with white text */
    --brand-700: #6334d6;
    --brand-800: #4b25a6;
    --brand-900: #2e1668;
    --brand-950: #140a2e;   /* deep purple: header, footer, dark bands */

    --ink-900: #1b1530;     /* headings */
    --ink-700: #3b3354;
    --ink-600: #5b5472;     /* body text on white — 7.1:1 */
    --ink-500: #6b6485;     /* secondary text — 5.5:1 */
    --line: #e7e1f5;
    --surface: #ffffff;
    --surface-alt: #f8f6fd;
    --accent-ok: #0f9d6b;   /* "available" / success cues */

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(27, 21, 48, .06), 0 2px 8px rgba(27, 21, 48, .05);
    --shadow-md: 0 8px 30px rgba(46, 22, 104, .10);
    --shadow-lg: 0 24px 60px rgba(46, 22, 104, .18);
}


/* ==========================================================================
   Base chrome layout (structure). Kept here so the shared header/footer work
   on any page, including ones that no longer load a legacy stylesheet.
   ========================================================================== */
html body header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
html body .header-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
html body .logo-container img { display: block; width: auto; transition: height .3s ease; }
html body .main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
html body .main-nav ul li { position: relative; }
html body .main-nav .submenu {
    position: absolute; display: flex; flex-direction: column; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
html body .main-nav li:hover > .submenu,
html body .main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
html body .main-nav .submenu li { width: 100%; }
html body .header-actions { display: flex; align-items: center; gap: 14px; }
html body .contact-btn { display: inline-block; text-decoration: none; }

html body #hamburger-menu {
    display: none; flex-direction: column; gap: 5px; padding: 6px;
    background: none; border: 0; cursor: pointer; z-index: 1002;
}
html body #hamburger-menu span { display: block; width: 24px; height: 2px; border-radius: 2px; }

html body #side-menu {
    position: fixed; top: 0; right: -110%; height: 100%; padding: 20px; overflow-y: auto;
    z-index: 1001; transition: right .35s cubic-bezier(.23, 1, .32, 1);
}
html body #side-menu.active { right: 0; }
html body #side-menu .side-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 14px; }
html body #close-menu-btn { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0; }
html body #side-menu .side-nav-list, html body #side-menu .submenu-mobile { list-style: none; margin: 0; padding: 0; }
html body #side-menu .side-nav-list li a { display: block; padding: 12px 4px; text-decoration: none; text-transform: uppercase; }
html body #side-menu .submenu-mobile { display: none; padding-left: 16px; margin-bottom: 8px; }
html body #side-menu li.active > .submenu-mobile { display: block; }

html body .footer-menu { list-style: none; margin: 0; padding: 0; }
html body .footer-menu li { margin-bottom: 12px; }
html body .footer-menu a { text-decoration: none; }
html body .company-info p { margin: 0 0 12px; }
html body .footer-title { margin-top: 0; }

html body .glass-content-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 4px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
html body .glass-bottom-bar { padding: 16px 20px; }
html body .glass-copyright { margin: 0; }
html body .glass-icons { display: flex; gap: 8px; }
html body .glass-icons .icon {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    text-decoration: none; transition: color .2s ease, transform .2s ease;
}
html body .glass-icons .icon svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 768px) {
    html body .main-nav { display: none; }
    html body #hamburger-menu { display: flex; }
}

/* ---------- Header ---------- */
html body header {
    padding: 14px 0;
    background: rgba(10, 6, 24, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(169, 138, 255, .16);
    box-shadow: none;
    font-family: var(--font-sans);
}

html body header.scrolled {
    padding: 10px 0;
    background: rgba(10, 6, 24, .9);
    box-shadow: 0 6px 24px rgba(20, 10, 46, .25);
}

html body header .logo-container img { height: 44px; }
html body header.scrolled .logo-container img { height: 38px; }

html body .main-nav ul { gap: 6px; align-items: center; }

html body .main-nav ul li > a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    color: #e4dcff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

html body .main-nav ul li:hover > a,
html body .main-nav ul li > a:focus-visible,
html body .main-nav .active-link {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

html body .main-nav .submenu {
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px;
    background: #1c0f3d;
    border: 1px solid rgba(169, 138, 255, .22);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(10, 4, 28, .55);
}

html body .main-nav .submenu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: #e4dcff;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

html body .main-nav .submenu li a:hover,
html body .main-nav .submenu li a.active-link {
    background: rgba(144, 101, 255, .22);
    color: #fff;
}

html body .contact-btn {
    padding: 10px 20px;
    background: var(--brand-600);
    border: 1px solid var(--brand-600);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(124, 74, 240, .35);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

html body .contact-btn:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    box-shadow: 0 6px 20px rgba(144, 101, 255, .45);
    transform: translateY(-1px);
}

html body #hamburger-menu span { background: #e4dcff; }

/* ---------- Mobile menu ---------- */
html body #side-menu {
    width: min(320px, 86vw);
    background: var(--brand-950);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-left: 1px solid rgba(169, 138, 255, .18);
    font-family: var(--font-sans);
}

html body #side-menu .side-menu-header { border-bottom: 1px solid rgba(169, 138, 255, .18); }
html body #side-menu .side-menu-header h3 { color: #fff; font-size: 1.1rem; font-weight: 600; }
html body #close-menu-btn { color: #e4dcff; }
html body #side-menu .side-nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .06); }

html body #side-menu .side-nav-list li a {
    color: #e4dcff;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
}

html body #side-menu .side-nav-list li a:hover,
html body #side-menu li.active > a { color: #fff; }

html body #side-menu .submenu-mobile li a {
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #cbbcff;
}

/* ---------- Footer ---------- */
html body .footer-section {
    padding: 72px 0 24px;
    background: #0e0722;
    border-top: 1px solid rgba(169, 138, 255, .16);
    font-family: var(--font-sans);
}

html body .footer-section .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr .8fr 1.3fr;
    gap: 40px;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 0;
}

html body .footer-section .footer-col { text-align: left; min-width: 0; }

html body .footer-section .footer-title {
    margin-bottom: 18px;
    color: #cbbcff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body .footer-section .footer-menu a {
    color: #b8aedb;
    font-size: .94rem;
    transition: color .2s ease;
}

html body .footer-section .footer-menu a:hover,
html body .footer-section .footer-menu a.active-link { color: #fff !important; }

html body .footer-section .footer-col img { max-width: 140px; margin-bottom: 18px; }
html body .footer-section .company-info a { color: inherit; text-decoration: none; }
html body .footer-section .company-info a:hover { color: #fff; }
html body .footer-section .company-info { color: #b8aedb; font-size: .92rem; line-height: 1.7; }
html body .footer-section .company-info strong { color: #fff; font-weight: 600; }

html body .glass-bottom-bar {
    background: #090417;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 1px solid rgba(169, 138, 255, .12);
    box-shadow: none;
}

html body .glass-copyright { color: #9a90bd; font-family: var(--font-sans); font-size: .85rem; }
html body .glass-icons .icon { color: #9a90bd; }
html body .glass-icons .icon:hover { color: #fff; }
html body .glass-icons .icon:hover svg { color: #fff; }

/* ---------- Floating buttons ---------- */
html body .progress-wrap svg.progress-circle path { stroke: var(--brand-500); }
html body .progress-wrap .progress-icon { color: var(--brand-500); }

/* ---------- Focus visibility (keyboard users) ---------- */
html body header a:focus-visible,
html body header button:focus-visible,
html body .footer-section a:focus-visible {
    outline: 2px solid var(--brand-300);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    html body .footer-section .footer-columns { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    html body .footer-section .footer-columns { grid-template-columns: 1fr; gap: 30px; }
    html body header { padding: 12px 0; }
    html body .contact-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html body .contact-btn,
    html body .main-nav ul li > a { transition: none; }
}
