/* ==========================================================================
   DHIVE — shared site theme
   Loaded LAST on every page. Holds design tokens (light + dark), the
   navbar, footer, chat widget, theme toggle, and theme-aware overrides
   for the page-specific stylesheets.
   ========================================================================== */

@font-face {
    font-family: 'Mokoto';
    src: url('/font/mokoto.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --brand: #12e19f;
    --brand-strong: #0bc489;
    --navy: #0b1b32;
    --navy-2: #102644;

    --bg: #ffffff;
    --bg-alt: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f2f5f9;
    --text: #0f1b2d;
    --text-muted: #5a6577;
    --border: #e2e8f0;
    --accent: #06855e;            /* mint that is readable on white */
    --accent-soft: rgba(18, 225, 159, 0.12);
    --link: #06855e;

    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05), 0 6px 20px rgba(15, 27, 45, 0.06);
    --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-h: 72px;

    --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* navbar */
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.97);
    --nav-border: rgba(15, 27, 45, 0.08);
    --nav-link: #3b4658;
    --nav-link-hover: #0f1b2d;
    --nav-link-hover-bg: rgba(15, 27, 45, 0.06);
    --logo-d: #0b1b32;
    --logo-hive: #0bc489;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #08111f;
    --bg-alt: #0c1728;
    --surface: #0f1d32;
    --surface-2: #142540;
    --text: #e7eef7;
    --text-muted: #9cabc0;
    --border: #1f3150;
    --accent: #2ee8ad;
    --accent-soft: rgba(18, 225, 159, 0.14);
    --link: #2ee8ad;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

    --nav-bg: rgba(11, 27, 50, 0.9);
    --nav-bg-scrolled: rgba(8, 17, 31, 0.94);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-link: rgba(255, 255, 255, 0.82);
    --nav-link-hover: #ffffff;
    --nav-link-hover-bg: rgba(255, 255, 255, 0.08);
    --logo-d: #ffffff;
    --logo-hive: #12e19f;
    color-scheme: dark;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body, .card, .navbar, .site-footer, #chatbot-window {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit;
    letter-spacing: -0.01em;
}

a { color: var(--link); }
a:hover { color: var(--accent); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

img { max-width: 100%; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- Bootstrap theme bridges ---------- */
.bg-light { background-color: var(--bg-alt) !important; }
.bg-white { background-color: var(--surface) !important; }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.card {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
hr { border-color: var(--border); }
.blockquote-footer { color: var(--text-muted); }

/* ---------- Shared buttons ---------- */
.btn-brand,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-brand {
    background: var(--brand);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(18, 225, 159, 0.28);
}
.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-strong);
    color: var(--navy);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
}
:root[data-theme="dark"] .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
:root[data-theme="dark"] .btn-ghost:hover,
:root[data-theme="dark"] .btn-ghost:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-nav.navbar {
    min-height: var(--nav-h);
    padding: 0.5rem 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--nav-border);
    font-family: var(--font);
}
.site-nav.navbar.is-scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 10px 30px rgba(15, 27, 45, 0.12);
}
:root[data-theme="dark"] .site-nav.navbar.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }

.site-nav .container {
    position: relative;
}

.brand-logo {
    font-family: 'Mokoto', var(--font);
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.02em;
    order: 1;
}
.brand-logo .d { color: var(--logo-d); }
.brand-logo .hive { color: var(--logo-hive); }
/* the footer is always dark */
.site-footer .brand-logo .d { color: #fff; }
.site-footer .brand-logo .hive { color: var(--brand); }

.site-nav .navbar-collapse { order: 2; }
.site-nav .nav-tools {
    order: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav .navbar-nav .nav-link {
    color: var(--nav-link) !important;
    font-weight: 500;
    font-size: 0.97rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus,
.site-nav .navbar-nav .nav-link[aria-current="page"],
.site-nav .navbar-nav .show > .nav-link {
    color: var(--nav-link-hover) !important;
    background: var(--nav-link-hover-bg);
}

.site-nav .nav-cta {
    background: var(--brand);
    color: var(--navy) !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus {
    background: var(--brand-strong) !important;
    color: var(--navy) !important;
}

.site-nav .dropdown-toggle::after {
    border: 0;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 0.4rem;
    transition: transform 0.2s ease;
}
.site-nav .nav-item.dropdown:hover > .dropdown-toggle::after,
.site-nav .nav-item.dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--nav-border);
    background: var(--nav-link-hover-bg);
    color: var(--nav-link-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.theme-toggle:hover { background: var(--nav-link-hover-bg); border-color: var(--logo-hive); transform: rotate(-12deg); }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; color: #ffd166; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.site-nav .navbar-toggler {
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
}
/* Bootstrap's navbar-dark icon is white; darken it in light mode */
:root:not([data-theme="dark"]) .site-nav .navbar-toggler-icon { filter: invert(1) brightness(0.3); }

/* ---------- Dropdown panels (desktop) ---------- */
.site-nav .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    margin: 0;
}

.site-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: normal;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--accent);
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus,
.site-nav .dropdown-item.is-active {
    background: var(--accent-soft);
    color: var(--text);
}

.solution-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0.75rem;
}
.mega-divider { background: var(--border); }
.mega-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.25rem 0.8rem 0.5rem;
    font-weight: 600;
}
.subcategory-content { display: none; }
.subcategory-content.active { display: block; }

.dropdown-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15rem;
}
.dropdown-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem;
}

@media (min-width: 992px) {
    .site-nav .navbar-collapse { justify-content: center; }
    .site-nav .nav-item.dropdown { position: static; }

    .site-nav .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        width: min(760px, calc(100vw - 32px));
        transform: translate(-50%, 8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .site-nav .dropdown-menu.mega-dropdown { width: min(680px, calc(100vw - 32px)); }

    /* invisible bridge so the menu doesn't close while moving the mouse down */
    .site-nav .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0; right: 0; top: -18px;
        height: 18px;
    }

    .site-nav .nav-item.dropdown:hover > .dropdown-menu,
    .site-nav .nav-item.dropdown:focus-within > .dropdown-menu,
    .site-nav .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }
}

/* ---------- Mobile navbar ---------- */
@media (max-width: 991.98px) {
    /* Bootstrap zeroes the navbar container padding below lg */
    .site-nav.navbar > .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-nav .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .site-nav .navbar-nav { padding: 0.75rem 0 1rem; }
    .site-nav .navbar-nav .nav-link { padding: 0.75rem 0.9rem; }
    .site-nav .nav-cta {
        margin: 0.5rem 0 0;
        justify-content: center;
        text-align: center;
    }

    .site-nav .dropdown-menu {
        position: static;
        float: none;
        display: none;
        background: var(--nav-link-hover-bg);
        border-color: var(--nav-border);
        box-shadow: none;
        margin: 0.25rem 0 0.5rem;
    }
    .site-nav .dropdown-menu.show { display: block; }

    .mega-grid,
    .dropdown-grid-3,
    .dropdown-grid-2 { display: block; }
    .mega-divider,
    .mega-sub,
    .mega-label { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #060d19;
    color: #b6c2d3;
    padding: 4.5rem 0 2rem;
    font-family: var(--font);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18, 225, 159, 0.5), transparent);
}
.site-footer .brand-logo { font-size: 34px; display: inline-block; margin-bottom: 1rem; }
.site-footer p { color: #b6c2d3; }
.site-footer h5 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.site-footer .footer-links li { margin-bottom: 0.6rem; }
.site-footer a { color: #b6c2d3; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--brand); }
.site-footer .footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.site-footer .footer-contact i { color: var(--brand); margin-top: 0.25rem; width: 1rem; }
.site-footer .social-icons { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.site-footer .social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.site-footer .social-icons a:hover {
    background: var(--brand);
    color: var(--navy);
    transform: translateY(-3px);
}
.site-footer .map iframe {
    width: 100%;
    height: 170px;
    border: 0;
    border-radius: var(--radius-sm);
    filter: grayscale(0.3);
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8ca0;
}
.site-footer .footer-bottom p { margin: 0; color: inherit; }

/* ==========================================================================
   Chat widget
   ========================================================================== */
#chat-icon {
    position: fixed;
    bottom: 26px;
    right: 26px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1040;
    font-family: var(--font);
}
.chat-launch-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #12e19f 0%, #0bc489 100%);
    color: var(--navy);
    box-shadow: 0 10px 28px rgba(18, 225, 159, 0.4), 0 2px 6px rgba(11, 27, 50, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-launch-btn::before {
    /* soft breathing halo */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(18, 225, 159, 0.6);
    animation: chat-halo 2.6s ease-out infinite;
}
@keyframes chat-halo {
    0% { transform: scale(1); opacity: 0.9; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}
#chat-icon:hover .chat-launch-btn,
#chat-icon:focus-visible .chat-launch-btn {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 34px rgba(18, 225, 159, 0.5), 0 2px 6px rgba(11, 27, 50, 0.2);
}
.chat-ico {
    position: absolute;
    width: 26px;
    height: 26px;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-ico-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
#chat-icon.is-open .chat-ico-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
#chat-icon.is-open .chat-ico-close { opacity: 1; transform: none; }
#chat-icon.is-open .chat-launch-btn::before { animation: none; opacity: 0; }

.chat-launch-label {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#chat-icon:hover .chat-launch-label,
#chat-icon:focus-visible .chat-launch-label { opacity: 1; transform: none; }
#chat-icon.is-open .chat-launch-label { display: none; }

#chatbot-window {
    position: fixed;
    bottom: 104px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
    font-family: var(--font);
}
#chatbot-window.is-open {
    display: flex;
    animation: chatIn 0.25s ease;
}
@keyframes chatIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

#chat-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-header .chat-title { display: flex; align-items: center; gap: 0.65rem; }
#chat-header .chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(18, 225, 159, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}
#chat-header h2 { font-size: 1rem; margin: 0; color: #fff; font-weight: 600; }
#chat-header small { color: #9cabc0; font-size: 0.78rem; display: flex; align-items: center; gap: 0.35rem; }
#chat-header small::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
/* chat backend offline: red status text and dot */
#chat-header small.is-offline { color: #ff6b6b; font-weight: 600; }
#chat-header small.is-offline::before { background: #ff4d4d; }
#close-chat {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
}
#close-chat:hover { background: rgba(255, 255, 255, 0.18); }

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--bg-alt);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.message {
    max-width: 82%;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.message p, .message ul { margin: 0; }
.message ul { padding-left: 1.1rem; }
.user-message {
    align-self: flex-end;
    background: var(--brand);
    color: var(--navy);
    border-bottom-right-radius: 4px;
}
.ai-message {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.thinking-message { animation: blink 1s infinite; font-style: italic; color: var(--text-muted); }
@keyframes blink { 50% { opacity: 0.4; } }

#chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
#user-input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.95rem;
}
#user-input::placeholder { color: var(--text-muted); }
#user-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
#chat-send {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--brand);
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
#chat-send:hover { background: var(--brand-strong); }

@media (max-width: 600px) {
    #chatbot-window {
        right: 0; bottom: 0;
        width: 100%; max-width: 100%;
        height: 100%; max-height: 100%;
        border-radius: 0;
        border: 0;
    }
    #chat-icon { bottom: 20px; right: 20px; }
    #chatbot-window.is-open ~ #chat-icon,
    body.chat-open #chat-icon { display: none; }
}

/* ==========================================================================
   Inner-page heroes (industries / services)
   ========================================================================== */
#service-home, #automotive-home, #tourism-home, #sw-home, #in-home, #cr-home,
#em-home, #m-home, #bank-home, #health-home, #dm-home, #sale-home,
#logistics-home, #aa-home {
    min-height: 72vh !important;
    height: auto !important;
    padding: 0 !important;
}

.overlay {
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.55) 0%, rgba(8, 17, 31, 0.82) 100%) !important;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem !important;
}
.overlay .section-title {
    color: #fff !important;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.overlay .section-title + br { display: none; }
.overlay .section-subtitle {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 720px;
    font-weight: 400;
    margin-top: 1rem;
}
.overlay .section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 4px;
    background: var(--brand);
}

/* ==========================================================================
   Theme-aware surfaces for page stylesheets
   ========================================================================== */

/* Cards / panels */
.service-card, .use-case-card, .solution-card, .capability-card, .application-card,
.tech-item, .feature-card, .metric-card, .service-card-m,
.principle-card, .attitude-card,
.latest-article, .blog-item, .blog-toc, .blog-post-section .blog-content,
.lumi_feature_card, .lumi_benefit_item,
.bd-benefit-box,
#career .card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text);
    border-radius: var(--radius) !important;
}
.service-card:hover, .use-case-card:hover, .solution-card:hover, .capability-card:hover,
.application-card:hover, .tech-item:hover, .feature-card:hover, .service-card-m:hover,
.principle-card:hover, .attitude-card:hover, .lumi_feature_card:hover,
.lumi_benefit_item:hover, .bd-benefit-box:hover, #career .card:hover {
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(18, 225, 159, 0.45) !important;
}
.bd-solution-card {
    background: var(--surface-2) !important;
    color: var(--text);
    border-radius: var(--radius-sm);
}
.bd-solution-card:hover { background: var(--accent-soft) !important; }

/* Card icons */
.service-card i, .use-case-card i, .solution-card i, .capability-card i, .application-card i,
.tech-item i, .feature-card i, .service-card-m i, .benefit-item i, .card-icon,
.bd-benefit-box__icon, .lumi_benefit_item i {
    color: var(--accent) !important;
}
.step-number { background: var(--brand) !important; color: var(--navy) !important; }
.metric-value, .stat-item span { color: var(--accent) !important; }
.feature-list li { border-color: var(--border) !important; }

/* Pages without a full-bleed hero need room under the fixed navbar */
.blog-section, .blog-post-section, #career {
    padding-top: calc(var(--nav-h) + 2.5rem) !important;
}
.blog-post-section .blog-content section {
    min-height: 0;
    display: block;
    padding: 0;
    text-align: left;
}

/* Lumi product page: its brand-blue headings need a lighter tint in dark mode */
:root[data-theme="dark"] .lumi_feature_card h3 { color: #8cc8ff !important; }

/* Section backgrounds */
.about-section, .attitudes-section, #career, .blog-section, .blog-post-section,
.lumi_video_section, .bd-benefits {
    background: var(--bg-alt) !important;
}
.principles-section, .lumi_body, .lumi_container, .lumi_features, .lumi_benefits,
.bd-solutions {
    background: var(--bg) !important;
}
.indu_image { background-color: var(--surface-2) !important; border-radius: var(--radius) !important; }
.neural-network { background: var(--accent-soft) !important; }

/* Headings & body copy */
.indu_title, .blog-header, .blog-title, .grid-blog-title, .blog-toc h3,
.blog-content h2, .blog-content b, .blog-content li strong,
.lumi_video_section h2, .lumi_benefits h2, .lumi_benefit_item h3,
.bd-section-title, .bd-benefit-box__title,
.section-title, #career h1, #career h2, .card-title {
    color: var(--text) !important;
}
.indu_text, .section-description, .section-text, .section-title p,
.blog-description, .grid-blog-description, .blog-content p, .blog-content li,
.toc-list a, .blog-date, .lumi_body, .lumi_feature_card p, .lumi_feature_list li,
.lumi_benefit_item p, .card-text, #career .lead, blockquote {
    color: var(--text-muted) !important;
}
.indu_highlight { color: var(--accent) !important; font-weight: 600; }
.highlight { color: var(--brand) !important; }
#career .text-primary { color: var(--accent) !important; }
.read-more, .service-link { color: var(--accent) !important; font-weight: 600; }

.toc-list a:hover, .toc-list a.active {
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
    border-left-color: var(--accent) !important;
}
.blog-toc h3, .blog-content h2 { border-color: var(--border) !important; }

/* Tags / pills */
.blog-tag {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    font-weight: 500 !important;
}
.blog-tag:hover {
    background: var(--accent-soft) !important;
    border-color: rgba(18, 225, 159, 0.5) !important;
    color: var(--text) !important;
}

/* Primary CTA buttons on inner pages */
.contact-button, .bd-button, .btn-apply, #career .btn-success {
    background: var(--brand) !important;
    color: var(--navy) !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}
.contact-button:hover, .bd-button:hover, .btn-apply:hover, #career .btn-success:hover {
    background: var(--brand-strong) !important;
    color: var(--navy) !important;
}

/* Tech logo strip (some logos are dark glyphs) */
:root[data-theme="dark"] .tech-img {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
}
.tech-name { color: var(--text-muted); }

/* Coming-soon blog cards */
.is-coming-soon { cursor: default; }
.is-coming-soon .read-more { color: var(--text-muted) !important; }
.is-coming-soon .read-more::after { content: none !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
