/* ==========================================================================
   Truzen Consulting – Global Styles
   Shared across all pages
   Requires: Bootstrap 5.x
   ========================================================================== */

/* Root color system (adjust here centrally) */
:root {
    --tz-primary: #1b3b73;        /* Deep governance blue */
    --tz-primary-soft: #e6edf9;
    --tz-accent: #16a3b8;         /* Modern cyan accent */
    --tz-accent-soft: #e4f6f9;
    --tz-dark: #111827;
    --tz-muted: #4b5563;          /* Slightly darker for better contrast */
    --tz-border: #e5e7eb;
    --tz-bg: #f9fafb;
    --tz-bg-alt: #f3f4f6;
    --tz-radius-md: 0.75rem;
    --tz-radius-lg: 1.25rem;
    --tz-shadow-soft: 0 14px 45px rgba(15, 23, 42, 0.08);
    --tz-transition-fast: 0.18s ease-out;
}

/* Base typography & body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: var(--tz-dark);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Section helpers */
.tz-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.tz-section--alt {
    background-color: var(--tz-bg);
}

.tz-section__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--tz-muted);
    margin-bottom: 0.35rem;
}

.tz-section__title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.navbar-brand span {
    color: var(--tz-primary);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tz-muted);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--tz-primary);
}

.nav-link.tz-nav-active {
    color: var(--tz-primary);
    font-weight: 600;
}

.nav-link.tz-nav-active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 999px;
    background-color: var(--tz-primary);
}

/* Primary buttons */
.btn-primary {
    background-color: var(--tz-primary);
    border-color: var(--tz-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #132b54;
    border-color: #132b54;
}

.btn-outline-primary {
    color: var(--tz-primary);
    border-color: var(--tz-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--tz-primary-soft);
    color: var(--tz-primary);
    border-color: var(--tz-primary);
}

/* Accent badges & pills */
.tz-badge-soft {
    background-color: var(--tz-primary-soft);
    color: var(--tz-primary);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Generic accent link style */
.tz-accent-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--tz-primary);
}

.tz-accent-link:hover {
    color: var(--tz-accent);
    text-decoration: underline;
}

/* Pill list */
.tz-pill-list span {
    display: inline-block;
    margin: 0.2rem 0.25rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--tz-border);
    font-size: 0.78rem;
    color: var(--tz-muted);
}

/* Hero pattern */
.tz-hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, #f3f4ff 0, #ffffff 40%, #f4f5f7 100%);
}

.tz-hero__tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--tz-primary);
}

.tz-hero__content {
    max-width: 640px;
}

/* Hero illustration */
.tz-hero-illustration {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.tz-card {
    border-radius: var(--tz-radius-md);
    border: 1px solid var(--tz-border);
    box-shadow: none;
    transition:
        transform var(--tz-transition-fast),
        box-shadow var(--tz-transition-fast),
        border-color var(--tz-transition-fast);
}

.tz-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tz-shadow-soft);
    border-color: rgba(37, 99, 235, 0.25);
}

.tz-card .card-body {
    padding: 1.1rem 1.1rem;
}

.tz-card--soft {
    background-color: var(--tz-bg-alt);
    border: none;
}

/* Footer */
.tz-footer {
    border-top: 1px solid var(--tz-border);
    background-color: #ffffff;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    font-size: 0.88rem;
}

.tz-footer__brand {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-footer a {
    color: var(--tz-muted);
    text-decoration: none;
}

.tz-footer a:hover {
    color: var(--tz-primary);
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.8rem;
}

.breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--tz-muted);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--tz-primary);
}

/* Utility helpers */
.tz-muted {
    color: var(--tz-muted) !important;
}

.tz-text-small {
    font-size: 0.85rem;
}

.tz-radius-lg {
    border-radius: var(--tz-radius-lg);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .tz-hero {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .nav-link.tz-nav-active::after {
        display: none; /* avoid underline misalignment on collapsed menu */
    }
}
