/* ==========================================================================
   MSI GuaranteedWeather — Custom Design System
   Modern Blazor WASM site styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    --color-navy:           #0d2137;
    --color-navy-dark:      #091929;
    --color-navy-light:     #1a3a5c;
    --color-teal:           #00b4d8;
    --color-teal-dark:      #0096b4;
    --color-teal-light:     #e0f7fa;
    --color-blue:           #1565C0;
    --color-text:           #1a1a2e;
    --color-text-secondary: #4b5563;
    --color-text-muted:     #9ca3af;
    --color-bg-light:       #f8fafc;
    --color-bg-section:     #f0f4f8;
    --color-border:         #e2e8f0;
    --font-heading:         'Poppins', sans-serif;
    --font-body:            'Inter', sans-serif;
    --shadow-sm:            0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:            0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:            0 10px 40px rgba(0,0,0,0.14);
    --shadow-xl:            0 20px 60px rgba(0,0,0,0.18);
    --radius-sm:            8px;
    --radius-md:            12px;
    --radius-lg:            20px;
    --radius-xl:            100px;
    --transition:           0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height:           72px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin-top: 0;
    line-height: 1.2;
    border: none;
}

p { line-height: 1.75; margin-top: 0; }

a { color: var(--color-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-teal-dark); }

img { max-width: 100%; height: auto; }

/* Site layout */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* --------------------------------------------------------------------------
   Loading Splash
   -------------------------------------------------------------------------- */
.blazor-splash {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--color-navy-dark);
    display: flex; align-items: center; justify-content: center;
}
.blazor-splash-inner {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.blazor-splash-inner img { height: 60px; filter: brightness(2); }
.blazor-splash-inner p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }
.blazor-splash-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(0,180,216,0.3);
    border-top-color: var(--color-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 25, 41, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow var(--transition);
}
.site-nav.nav-shadow { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img { height: 44px; display: block; }
.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    max-width: 130px;
}

/* Desktop Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li { position: relative; }

.nav-link {
    display: flex; align-items: center; gap: 0.3rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: none; background: transparent;
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-teal);
    background: rgba(0,180,216,0.1);
    text-decoration: none;
}
.nav-link.active { color: var(--color-teal); }

/* Dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.22s ease;
    z-index: 200;
    border: 1px solid var(--color-border);
}
.nav-links li:hover .nav-dropdown-menu,
.nav-links li:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.55rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-dropdown-item:hover {
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    text-decoration: none;
    padding-left: 1.125rem;
}

/* Nav CTA */
.nav-link-cta {
    background: var(--color-teal) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}
.nav-link-cta:hover {
    background: var(--color-teal-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,180,216,0.45) !important;
}

/* Mobile toggle */
.nav-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.nav-mobile-toggle:hover { background: rgba(255,255,255,0.1); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: var(--color-navy);
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-header img { height: 40px; }
.mobile-close-btn {
    background: transparent; border: none; cursor: pointer;
    color: white; padding: 0.5rem; border-radius: var(--radius-sm);
    display: flex; align-items: center;
    font-size: 1.5rem;
    transition: background var(--transition);
}
.mobile-close-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none; background: transparent; width: 100%; text-align: left;
}
.mobile-menu-link:hover {
    color: var(--color-teal);
    background: rgba(0,180,216,0.1);
    text-decoration: none;
}
.mobile-submenu {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin-bottom: 0.25rem;
}
.mobile-submenu a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: block;
}
.mobile-submenu a:hover { color: var(--color-teal); background: rgba(0,180,216,0.08); }
.mobile-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0.5rem 0; }

/* --------------------------------------------------------------------------
   Hero Sections
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        rgba(9,25,41,0.93) 0%,
        rgba(9,25,41,0.75) 55%,
        rgba(9,25,41,0.35) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 680px;
    padding: 5rem 2rem 5rem 8%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,180,216,0.18);
    border: 1px solid rgba(0,180,216,0.4);
    color: var(--color-teal);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    border: none;
}
.hero-title .accent { color: var(--color-teal); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Page Hero (smaller) */
.page-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-light) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    position: relative;
}
.page-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}
.breadcrumb-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    position: relative;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.65); }
.breadcrumb-nav a:hover { color: var(--color-teal); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--color-teal);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.975rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid var(--color-teal);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,180,216,0.4);
    color: #fff;
    text-decoration: none;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.975rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid rgba(255,255,255,0.45);
    cursor: pointer;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}
.btn-outline-navy {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent;
    color: var(--color-navy);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid var(--color-navy);
    cursor: pointer;
}
.btn-outline-navy:hover {
    background: var(--color-navy);
    color: #fff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section Containers
   -------------------------------------------------------------------------- */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.section-white { background: #fff; }
.section-light { background: var(--color-bg-light); }
.section-dark {
    background: var(--color-navy);
    color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-gradient {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-light) 100%);
    color: #fff;
}
.section-gradient h2, .section-gradient h3 { color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
    display: inline-block;
    color: var(--color-teal);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}
.section-dark .section-title,
.section-gradient .section-title { color: #fff; }
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}
.section-dark .section-subtitle,
.section-gradient .section-subtitle { color: rgba(255,255,255,0.7); }

/* --------------------------------------------------------------------------
   Stats Strip
   -------------------------------------------------------------------------- */
.stats-strip { background: var(--color-navy); padding: 2.5rem 1.5rem; }
.stats-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}
.stat-item {
    padding: 1.5rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-teal);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.4rem;
    display: block;
}
.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* --------------------------------------------------------------------------
   Solution Cards (Home & Hub)
   -------------------------------------------------------------------------- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
}
.solution-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-teal);
}
.solution-card-img {
    height: 195px;
    overflow: hidden;
    background: var(--color-bg-section);
}
.solution-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.solution-card:hover .solution-card-img img { transform: scale(1.06); }
.solution-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.solution-card-icon {
    width: 44px; height: 44px;
    background: var(--color-teal-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--color-teal-dark);
}
.solution-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}
.solution-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}
.solution-card-link {
    color: var(--color-teal);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    margin-top: auto;
}
.solution-card-link:hover { gap: 0.6rem; color: var(--color-teal-dark); }

/* --------------------------------------------------------------------------
   About / Two-column layouts
   -------------------------------------------------------------------------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }
.two-col-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.two-col-img img { width: 100%; display: block; }
.two-col-content h2 { margin-bottom: 1rem; }
.two-col-content p { color: var(--color-text-secondary); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Timeline (Company History)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-teal), var(--color-navy));
}
.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px; top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-teal);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0,180,216,0.3);
    z-index: 1;
}
.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.timeline-content h4 {
    color: var(--color-navy);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.timeline-content p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.partner-item { text-align: center; }
.partner-logo {
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.65;
    transition: all 0.35s ease;
}
.partner-logo:hover { filter: grayscale(0%) brightness(1); opacity: 1; }
.partner-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-light) 60%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner::before {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    position: relative;
}
.cta-banner p {
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.cta-banner .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* --------------------------------------------------------------------------
   Solution Page Layout (with sidebar)
   -------------------------------------------------------------------------- */
.solution-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 2.5rem;
    align-items: start;
}
.solution-content { min-width: 0; }
.solution-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}
.solution-content p { color: var(--color-text-secondary); line-height: 1.8; }
.solution-content img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}
.solution-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); align-self: start; }
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}
.sidebar-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-teal-light);
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 0.2rem;
}
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    text-decoration: none;
    padding-left: 1rem;
}
.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(0,180,216,0.15) 0%, rgba(0,180,216,0.05) 100%);
    color: var(--color-teal-dark);
    font-weight: 600;
    border-left: 3px solid var(--color-teal);
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}
.sidebar-cta h4 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.sidebar-cta p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Coverage Cards
   -------------------------------------------------------------------------- */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}
.coverage-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 1.375rem;
    border-left: 4px solid var(--color-teal);
    transition: all var(--transition);
}
.coverage-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}
.coverage-card h4 {
    color: var(--color-navy);
    font-size: 0.975rem;
    margin-bottom: 0.4rem;
}
.coverage-card p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* Use case tags */
.tags-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }
.tag {
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    border: 1px solid rgba(0,180,216,0.3);
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0,180,216,0.2);
}
.highlight-box h3 { color: var(--color-teal); font-size: 1.15rem; margin-bottom: 0.75rem; }
.highlight-box p { color: rgba(255,255,255,0.82); line-height: 1.75; margin: 0; font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Features Grid
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    width: 48px; min-width: 48px; height: 48px;
    background: var(--color-teal-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-teal-dark);
    flex-shrink: 0;
}
.feature-text h4 { color: var(--color-navy); font-size: 1rem; margin-bottom: 0.3rem; }
.feature-text p { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.65; margin: 0; }

/* --------------------------------------------------------------------------
   Team Cards
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.team-photo {
    height: 270px;
    overflow: hidden;
    background: var(--color-bg-section);
}
.team-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info {
    padding: 1.5rem;
    text-align: center;
}
.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.2rem;
}
.team-title {
    color: var(--color-teal-dark);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.team-contact { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.7; }
.team-contact a { color: var(--color-teal); }

/* --------------------------------------------------------------------------
   Contact Info Cards
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.contact-card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--color-teal-light) 0%, rgba(0,180,216,0.08) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--color-teal-dark);
}
.contact-card h3 { color: var(--color-navy); font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-card p, .contact-card a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.contact-card a:hover { color: var(--color-teal); }

/* --------------------------------------------------------------------------
   Prose (Privacy Policy, etc.)
   -------------------------------------------------------------------------- */
.prose {
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    line-height: 1.85;
    font-size: 1rem;
}
.prose h2 {
    color: var(--color-navy);
    font-size: 1.45rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-bg-section);
}
.prose h3 { color: var(--color-navy); font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.prose p { margin-bottom: 1.2rem; }
.prose strong { color: var(--color-navy); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.65);
    padding: 4.5rem 1.5rem 0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand img { height: 44px; margin-bottom: 1.25rem; display: block; }
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    max-width: 280px;
}
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--color-teal); color: #fff; }
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-teal); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 0.875rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.55); }
.footer-contact-item a:hover { color: var(--color-teal); }
.footer-contact-icon { color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--color-teal); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .two-col-reverse { direction: ltr; }
    .solution-page-wrap { grid-template-columns: 1fr; }
    .solution-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    /* Ensure the hamburger is always reachable — logo must not crowd it out */
    .nav-container {
        gap: 0.5rem;
    }
    .nav-logo {
        flex: 1 1 auto;
        min-width: 0;          /* allow logo to shrink on very narrow screens */
        overflow: hidden;
    }
    .nav-logo img {
        height: 44px;
        max-width: 100%;       /* fills available space but never overflows its container */
        object-fit: contain;
        object-position: left center;
    }
    .nav-mobile-toggle {
        display: flex !important;
        flex-shrink: 0;        /* always gets its full 40px — never squeezed */
        margin-left: 0.75rem;
    }
    .hero-content { padding: 4rem 1.5rem; margin: 0 auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:nth-child(even) { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .solutions-grid { grid-template-columns: 1fr; }
    .coverage-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .cta-banner .actions { flex-direction: column; align-items: center; }
}

/* --------------------------------------------------------------------------
   Blazor Error UI
   -------------------------------------------------------------------------- */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0; left: 0; right: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    display: none;
    padding: 0.75rem 1.25rem;
    position: fixed;
    z-index: 2000;
    font-size: 0.9rem;
    color: #664d03;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; margin-left: 1rem; font-weight: 700; }
.blazor-error-boundary {
    background: #f8d7da;
    color: #842029;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border-radius: var(--radius-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23842029' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.5rem;
}
.blazor-error-boundary::after { content: "An error has occurred."; }
