/* Lumina CMS - High Performance Public Stylesheet */
:root {
    --lumina-primary: #2563eb;
    --lumina-primary-hover: #1d4ed8;
    --lumina-dark: #0f172a;
    --lumina-slate: #1e293b;
    --lumina-border: #e2e8f0;
    --lumina-bg-subtle: #f8fafc;
    --lumina-accent: #06b6d4;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.navbar {
    border-bottom: 1px solid var(--lumina-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Keep navigation menus above sticky product purchase panels. Bootstrap's
   default sticky z-index ties with .sticky-top cards lower in the document. */
.navbar.sticky-top { z-index: 1030; }

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--lumina-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--lumina-primary) !important;
}

/* Sub-menu (dropdown) navigation */
.navbar-nav .nav-item.dropdown {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item.dropdown > .nav-link {
    padding-right: 0.35rem;
}

.navbar-nav .dropdown .dropdown-menu {
    margin-top: 0.35rem;
    min-width: 220px;
    border-radius: 0.6rem;
}

/* Hover bridge: fills the margin gap so moving the mouse from the
   toggle to the menu never leaves the dropdown (prevents flicker/vanish). */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown {
        position: relative;
    }

    .navbar-nav .dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
        pointer-events: none;
    }

    .navbar-nav .dropdown .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }

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

.navbar-nav .dropdown-item:active {
    background-color: var(--lumina-primary);
}

button.submenu-caret {
    border: 0;
    background: transparent;
    padding: 0.5rem 0.6rem 0.5rem 0.1rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

button.submenu-caret i {
    font-size: 0.72rem;
    transition: transform 0.15s ease;
}

button.submenu-caret[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.btn-primary {
    background-color: var(--lumina-primary);
    border-color: var(--lumina-primary);
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--lumina-primary-hover);
    border-color: var(--lumina-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline-primary {
    color: var(--lumina-primary);
    border-color: var(--lumina-border);
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--lumina-primary);
    border-color: var(--lumina-primary);
    color: #fff;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    background-color: #eff6ff;
    color: var(--lumina-primary);
    border: 1px solid #bfdbfe;
}

.hero-section {
    background: radial-gradient(120% 120% at 50% 10%, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--lumina-border);
    padding: 5rem 0 4.5rem;
}

.product-card {
    border: 1px solid var(--lumina-border);
    border-radius: 0.85rem;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.post-card {
    border: 1px solid var(--lumina-border);
    border-radius: 0.85rem;
    background: #ffffff;
    transition: all 0.2s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.06);
}

.post-card .post-img {
    height: 190px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--lumina-border);
    border-radius: 2rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}

.category-pill:hover, .category-pill.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--lumina-primary);
}

.footer {
    background-color: #0f172a;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.footer h6 {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: #ffffff;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lumina-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--lumina-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.post-content pre {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--lumina-primary);
    padding-left: 1.25rem;
    font-style: italic;
    color: #475569;
    margin: 1.5rem 0;
}

/* Storefront homepage introduction */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
    background: radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, .14), transparent 38%), linear-gradient(135deg, #f8faff 0%, #fff 54%, #f5f3ff 100%);
}
.home-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(99,102,241,.09); right: -220px; bottom: -340px; pointer-events: none; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: 3rem; position: relative; z-index: 1; }
.home-hero-copy { max-width: 700px; }
.home-eyebrow { display: inline-flex; align-items: center; padding: .55rem .9rem; border: 1px solid #e0e7ff; border-radius: 999px; color: #4338ca; background: rgba(255,255,255,.78); font-size: .82rem; font-weight: 700; margin-bottom: 1.35rem; }
.home-hero h1 { max-width: 760px; color: #111827; font-size: clamp(2.7rem, 5.5vw, 4.8rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.06; margin: 0 0 1.35rem; }
.home-hero-copy > p { max-width: 620px; color: #64748b; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; margin-bottom: 1.8rem; }
.home-hero .btn { border-radius: .8rem; font-size: .98rem; font-weight: 700; }
.home-trust-row { display: flex; flex-wrap: wrap; gap: .85rem 1.5rem; border-top: 1px solid #e5e7eb; margin-top: 2.4rem; padding-top: 1.3rem; }
.home-trust-row span { color: #475569; display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; }
.home-trust-row i { color: #4f46e5; font-size: 1rem; }
.home-hero-art { min-height: 350px; display: grid; place-items: center; position: relative; }
.hero-art-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(99,102,241,.14); border-radius: 50%; }
.orbit-two { width: 390px; height: 390px; border-style: dashed; border-color: rgba(99,102,241,.11); }
.hero-art-card { position: relative; z-index: 2; width: min(290px, 80vw); padding: 1.5rem; border: 1px solid rgba(255,255,255,.9); border-radius: 1.3rem; background: rgba(255,255,255,.88); box-shadow: 0 30px 80px rgba(51,65,120,.16); transform: rotate(-5deg); }
.hero-art-icon { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: linear-gradient(145deg,#6366f1,#8b5cf6); border-radius: 1rem; font-size: 1.5rem; margin-bottom: 1.5rem; }
.hero-art-line { display: block; width: 62%; height: 9px; background: #e2e8f0; border-radius: 8px; margin-top: 11px; }
.hero-art-line.line-long { width: 90%; height: 12px; background: #c7d2fe; }
.hero-art-bottom { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; color: #4f46e5; font-size: .82rem; font-weight: 700; }
.hero-art-spark { position: absolute; z-index: 3; color: #f59e0b; font-size: 2rem; }
.spark-one { top: 12%; right: 16%; }.spark-two { bottom: 13%; left: 10%; color: #8b5cf6; }
@media (max-width: 767.98px) { .home-hero-inner { grid-template-columns: 1fr; gap: 1rem; } .home-hero-art { min-height: 270px; } .orbit-two { width: 300px; height: 300px; } .orbit-one { width: 230px; height: 230px; } .home-trust-row { gap: .75rem 1rem; } }
