/* ==========================================================================
   Staff Mitr — Editorial Design Direction (Executive Blue)
   Aesthetics: Established Business Publication + Sophisticated Workforce SaaS
   Proportions: 65-70% light backgrounds, 20-25% navy/blues, 5-10% soft accents
   ========================================================================== */

:root {
    /* Executive Blue Palette */
    --sm-primary-navy: #153B5B;       /* Primary brand, bold headings, primary CTA */
    --sm-corporate-blue: #24577D;     /* Hover states, secondary structure, borders */
    --sm-steel-blue: #477493;         /* Eyebrows, icons, step numbers */
    --sm-soft-blue: #A8BDCE;          /* Subdued borders, table headers, dividers */
    --sm-ice-blue: #EAF0F5;           /* Soft highlights, badge backgrounds, pill fills */
    --sm-background: #F5F7F9;         /* Editorial canvas background */
    --sm-surface: #FFFFFF;            /* Cards, tables, clean editorial sheets */
    --sm-surface-alt: #F8FAFC;        /* Subtle alternate table/panel surface */
    --sm-text: #283746;               /* High-contrast, publication-grade reading text */
    --sm-text-secondary: #516273;     /* Descriptive paragraphs, captions */
    --sm-text-muted: #7E90A2;         /* Metadata, fine print */
    --sm-border: #E0E7ED;             /* Architectural borders */
    --sm-border-light: #EEF3F7;       /* Hairline dividers */

    /* Operational System States */
    --sm-success: #1B7A4B;
    --sm-success-bg: #E8F5EE;
    --sm-warning: #B8781B;
    --sm-warning-bg: #FEF6E9;
    --sm-danger: #C0392B;
    --sm-danger-bg: #FDEDEC;

    /* Typographic Families */
    --sm-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Editorial Shadows & Radii */
    --sm-shadow-subtle: 0 1px 3px rgba(21, 59, 91, 0.04);
    --sm-shadow-card: 0 4px 20px -2px rgba(21, 59, 91, 0.06);
    --sm-shadow-elevated: 0 16px 40px -4px rgba(21, 59, 91, 0.1);
    
    --sm-radius-sm: 6px;
    --sm-radius-md: 10px;
    --sm-radius-lg: 14px;
    --sm-radius-xl: 18px;
}

/* Base Editorial Setup */
body {
    background-color: var(--sm-background);
    color: var(--sm-text);
    font-family: var(--sm-font-body);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Headings: Manrope */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--sm-font-heading);
    color: var(--sm-primary-navy);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.25;
}

/* Typography Utilities */
.text-navy { color: var(--sm-primary-navy) !important; }
.text-corporate { color: var(--sm-corporate-blue) !important; }
.text-steel { color: var(--sm-steel-blue) !important; }
.text-editorial { color: var(--sm-text) !important; }
.text-secondary-ed { color: var(--sm-text-secondary) !important; }
.text-muted-ed { color: var(--sm-text-muted) !important; }

/* Sticky Publication Navbar */
.sm-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sm-border);
    padding: 0.9rem 0;
    transition: all 0.2s ease;
    z-index: 1020;
}

.sm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sm-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sm-primary-navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sm-brand img {
    height: 32px;
    width: auto;
}

.sm-nav-link {
    font-family: var(--sm-font-body);
    color: var(--sm-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sm-nav-link:hover {
    color: var(--sm-primary-navy);
}

/* Button Component System */
.btn-sm-primary {
    background-color: var(--sm-primary-navy);
    color: #FFFFFF !important;
    font-family: var(--sm-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-primary-navy);
    box-shadow: 0 2px 6px rgba(21, 59, 91, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm-primary:hover {
    background-color: var(--sm-corporate-blue);
    border-color: var(--sm-corporate-blue);
    box-shadow: 0 4px 14px rgba(21, 59, 91, 0.28);
    transform: translateY(-1px);
}

.btn-sm-secondary {
    background-color: #FFFFFF;
    color: var(--sm-primary-navy) !important;
    font-family: var(--sm-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border);
    box-shadow: var(--sm-shadow-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm-secondary:hover {
    background-color: var(--sm-ice-blue);
    border-color: var(--sm-soft-blue);
    color: var(--sm-primary-navy) !important;
}

/* Editorial Sections */
.sm-section {
    padding: 5.5rem 0;
}

.sm-section-white {
    background-color: var(--sm-surface);
    border-top: 1px solid var(--sm-border);
    border-bottom: 1px solid var(--sm-border);
}

.sm-section-soft {
    background-color: var(--sm-background);
}

.sm-eyebrow {
    font-family: var(--sm-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--sm-steel-blue);
    margin-bottom: 0.85rem;
    display: inline-block;
}

.sm-section-heading {
    font-family: var(--sm-font-heading);
    font-size: clamp(2.1rem, 3.4vw, 2.85rem);
    font-weight: 800;
    color: var(--sm-primary-navy);
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.sm-section-desc {
    font-size: 1.125rem;
    color: var(--sm-text-secondary);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 2.75rem;
}

/* Editorial Cards */
.sm-card {
    background-color: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-card);
    padding: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-card:hover {
    border-color: var(--sm-soft-blue);
    box-shadow: var(--sm-shadow-elevated);
}

.sm-card-flat {
    background-color: var(--sm-ice-blue);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    padding: 1.5rem;
}

/* Editorial Step Process (Vertical & Clean) */
.editorial-process-step {
    border-left: 2px solid var(--sm-border);
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.editorial-process-step:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.editorial-step-bullet {
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--sm-steel-blue);
    color: var(--sm-primary-navy);
    font-family: var(--sm-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Editorial Product Showcase Frame */
.dashboard-frame {
    background: #FFFFFF;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-elevated);
    overflow: hidden;
}

.dashboard-frame-header {
    background: #F8FAFC;
    border-bottom: 1px solid var(--sm-border);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
}

/* Badges */
.sm-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sm-badge-navy {
    background-color: var(--sm-ice-blue);
    color: var(--sm-primary-navy);
    border: 1px solid rgba(21, 59, 91, 0.15);
}

.sm-badge-success {
    background-color: var(--sm-success-bg);
    color: var(--sm-success);
    border: 1px solid rgba(27, 122, 75, 0.2);
}

.sm-badge-warning {
    background-color: var(--sm-warning-bg);
    color: var(--sm-warning);
    border: 1px solid rgba(184, 120, 27, 0.25);
}

.sm-badge-danger {
    background-color: var(--sm-danger-bg);
    color: var(--sm-danger);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* Comparison Table */
.sm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    overflow: hidden;
}

.sm-table th, .sm-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sm-border);
    font-size: 0.9375rem;
}

.sm-table th {
    background: #F8FAFC;
    font-family: var(--sm-font-heading);
    color: var(--sm-primary-navy);
    font-weight: 700;
}

.sm-table tr:last-child td {
    border-bottom: none;
}

/* Editorial Footer */
.sm-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--sm-border);
    padding: 4.5rem 0 2.5rem;
    color: var(--sm-text-secondary);
}

.sm-footer-heading {
    font-family: var(--sm-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sm-primary-navy);
    margin-bottom: 1.25rem;
}

.sm-footer-link {
    display: block;
    color: var(--sm-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 0.65rem;
    transition: color 0.15s ease;
}

.sm-footer-link:hover {
    color: var(--sm-primary-navy);
}

/* Subpage Compatibility Rules */
.content-section, .hero-section {
    background-color: var(--sm-background);
}

.content-section h1.text-white,
.content-section h2.text-white,
.content-section h3.text-white,
.content-section h4.text-white,
.hero-section h1.text-white,
.hero-section h2.text-white,
.card-modern h1.text-white,
.card-modern h2.text-white,
.card-modern h3.text-white,
.card-modern h4.text-white,
.card-modern .h2.text-white,
.card-modern .h3.text-white,
.card-modern .h4.text-white,
.faq-box h1.text-white,
.faq-box h2.text-white,
.faq-box h3.text-white,
.faq-box h4.text-white,
.faq-box h5.text-white {
    color: var(--sm-primary-navy) !important;
}

.card-modern, .bg-card {
    background-color: var(--sm-surface) !important;
    border: 1px solid var(--sm-border) !important;
    color: var(--sm-text) !important;
    box-shadow: var(--sm-shadow-card) !important;
}

.text-muted, .text-secondary {
    color: var(--sm-text-secondary) !important;
}

.border-white, .border-secondary {
    border-color: var(--sm-border) !important;
}

@media (max-width: 991.98px) {
    .sm-section {
        padding: 3.5rem 0;
    }
    .sm-section-heading {
        font-size: 2rem;
    }
}
