﻿/* ==========================================================================
   theme.css — High-Density B2B Typography, Base Layout & Navbar overrides
   ========================================================================== */

html {
    font-size: 14px; /* Reduced from 18px to instantly compress all document architecture */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5; /* Tightened from 1.7 for higher screen data density */
    color: var(--text-main);
    background: var(--bg-main);
}

.layout-root {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.layout-wrapper {
    flex: 1;
}

/* --- High-Contrast, Compact Corporate Headings --- */
h1, .title.is-1 {
    font-size: 2.15rem; /* Down from 3rem */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Tight letter tracking for technical crispness */
    margin-bottom: var(--space-sm);
    color: var(--text-light) !important;
}

h2, .title.is-2 {
    font-size: 1.75rem; /* Down from 2.4rem */
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--text-light) !important;
}

h3, .title.is-3 {
    font-size: 1.4rem; /* Down from 1.9rem */
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
    color: var(--text-light) !important;
}

h4, .title.is-4 {
    font-size: 1.15rem; /* Down from 1.5rem */
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-light) !important;
}

h5, .title.is-5 {
    font-size: 1rem; /* Down from 1.25rem */
    font-weight: 600;
    margin-bottom: calc(var(--space-xs) / 2);
    color: var(--text-light) !important;
}

h6, .title.is-6 {
    font-size: 0.9rem; /* Down from 1.1rem */
    font-weight: 600;
    margin-bottom: calc(var(--space-xs) / 2);
    color: var(--text-light) !important;
}

/* --- Compact Paragraph Layouts --- */
p {
    font-size: 1rem; /* Reduced from 1.125rem */
    line-height: 1.5;
    margin-bottom: var(--space-sm); /* Drastically pulled tighter */
    color: var(--text-main);
}

    p.lead {
        font-size: 1.15rem; /* Reduced from 1.35rem */
        color: var(--text-muted);
    }

    p.image-paragraph {
        color: var(--color-text-on-image);
    }

strong {
    color: var(--primary-vibrant);
}

/* --- Hyperlinks --- */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

    a:hover {
        color: var(--primary-dark);
    }

/* --- Premium Blurred Translucent Navbar --- */
.navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(15, 17, 21, 0.85) !important; /* Semi-transparent obsidian layer */
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-xs) 0;
}

    .navbar .navbar-item {
        font-weight: 500;
        color: var(--text-main) !important;
    }

    .navbar a.navbar-item:hover {
        background-color: rgba(255, 255, 255, 0.03) !important;
        color: var(--primary) !important;
    }

.navbar-item.is-active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ==========================================================================
   HERO SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero With Image
   -------------------------------------------------------------------------- */

.hero.has-image {
    /*    background-size: cover;
*/
    background-position: center;
    position: relative;
    padding: var(--space-xl) var(--space-md);
    background-repeat: no-repeat;
}

    .hero.has-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(15, 17, 21, var(--hero-overlay-strength));
    }

    .hero.has-image .hero-body {
        position: relative;
        z-index: 2;
    }

/* --------------------------------------------------------------------------
   Hero Without Image
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Hero Without Image
   -------------------------------------------------------------------------- */
.hero:not(.has-image) {
    min-height: 50px;
}

    .hero:not(.has-image) .hero-body {
        padding: 0;
    }

    .hero:not(.has-image) .hero-text-overlay {
        display: none;
    }

/*.hero:not(.has-image) {
    display: none;
}*/

/* --------------------------------------------------------------------------
   Shared Hero Text
   -------------------------------------------------------------------------- */

.hero-text-overlay {
    background: rgba(22, 26, 34, 0.75);
    border: 1px solid var(--border-light);
    padding: var(--space-md);
    border-radius: var(--radius-large);
    color: var(--hero-text-color);
    text-shadow: var(--hero-text-shadow);
    max-width: 760px;
    margin: 0;
}

    .hero-text-overlay h1 {
        margin-bottom: var(--space-sm);
    }

    .hero-text-overlay p {
        margin-bottom: 0;
    }


/* --- Premium B2B Footer --- */
footer.footer {
    padding: var(--space-lg) 0 var(--space-sm);
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

/* --- Global Clean Utilities --- */
.text-muted,
.has-text-grey {
    color: var(--text-muted) !important;
}
