:root {
    /* 2026 Institutional Palette */
    --hwb-blue: #2563eb;
    --primary-blue: var(--hwb-blue);
    --hwb-blue-glow: rgba(37, 99, 235, 0.15);
    --hwb-dark: #020617;
    --hwb-slate: #64748b;
    --hwb-glass: rgba(255, 255, 255, 0.85);
    --hwb-border: rgba(226, 232, 240, 0.8);
    --hwb-white: #ffffff;
    --pure-white: var(--hwb-white);
    --hwb-bg: #ffffff;

    /* Standardized Palette (Tailwind-Scale) */
    --brand: #2563eb;
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #00A0FF 100%);
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --white: #ffffff;
    --muted-coral: #f87171;
    
    /* Legacy Mapping (Compatibility) */
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --white: #ffffff;
    --border: #e2e8f0;

    /* Spacing & Layout */
    --container-width: 1300px;
    --global-padding: 2rem;
    --section-gap: 8rem;
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--global-padding);
}

/* Header & Status */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.header-logo {
    height: 80px; /* Increased for the detailed SigmaFidelity mark */
    width: auto;
    display: block;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-cta:hover {
    background-color: var(--accent-hover);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    border-color: var(--text-secondary);
}

/* Beliefs Section */
.beliefs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 6rem 0;
}

.belief-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.belief-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.belief-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.belief-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.belief-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Section */
.services-list {
    padding: 8rem 0;
    background: #ffffff;
    border-radius: 32px;
    margin-bottom: 6rem;
}

.services-list h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.04em;
}

/* --- Institutional Card System (Restored) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--global-padding);
}

.service-card {
    background: var(--hwb-white);
    border: 1px solid var(--hwb-border);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
}

.card-content {
    padding: 2.5rem;
    flex-grow: 1;
}

.card-badge {
    display: inline-block;
    background: var(--hwb-blue);
    color: white !important;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--hwb-dark);
    font-weight: 700;
}

.card-content p {
    font-size: 1rem;
    color: var(--hwb-slate);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Calculator View Fixes */
.calculator-view {
    max-width: 600px;
    margin: 6rem auto;
}

.calc-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    outline-color: var(--accent);
}

/* Results Card (Restored) */
.results-view {
    max-width: 800px;
    margin: 4rem auto;
}

.result-card {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.waste-value {
    font-size: 5rem; /* Large, bombastic number */
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.waste-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-summary {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.citation-link a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.cta-section {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.cta-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* CSI Department Enhancements */
.csi-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.scene-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-secondary);
}

.scene-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scene-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.scene-content {
    display: none;
    position: relative;
    width: 100%;
}

.scene-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csi-view {
    padding: 4rem 0;
}

.scene-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.interactive-scene {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--white);
    background: #000;
}

.scene-image {
    width: 100%;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

/* Hotspots */
.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.pulse-marker {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0.4);
    animation: pulse-csi 2s infinite;
}

.pulse-marker.alarm {
    background: #ef4444; /* Alert Red */
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse-alarm 1.5s infinite;
}

@keyframes pulse-alarm {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hotspot:hover .pulse-marker {
    background: #ef4444;
    transform: scale(1.2);
}

.hotspot .label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s;
    pointer-events: none;
}

.hotspot:hover .label {
    opacity: 1;
    top: -45px;
}

@keyframes pulse-csi {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Tool Panel */
.tool-panel {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.panel-placeholder {
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
}

.report-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.report-content .tag {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.report-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.btn-small {
    display: inline-block;
    background: var(--bg-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* About Us Page */
.about-view {
    padding: 4rem 0;
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
}

.vision-box, .mission-box {
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.vision-box h2, .mission-box h2 {
    margin: 1rem 0 1.5rem;
    font-size: 2rem;
}

.qms-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 6rem;
    background: #0f172a; /* Dark theme for institutional feel */
    color: var(--white);
    border-radius: 40px;
}

.qms-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.qms-intro p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.belief-highlight {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.google-review-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.google-review-cta a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.google-review-cta a:hover {
    text-decoration: underline;
}

.b-item {
    font-size: 0.95rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    text-align: left;
}

/* Services Page */
.services-view {
    padding: 4rem 0;
}

/* --- Global Component Alignment --- */
/* LEGACY HERO OVERRIDE REMOVED FOR INFINITE HORIZON STANDARD */

.detailed-services {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 8rem;
}

.service-category {
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-category:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-category h2 {
    font-size: 2.25rem;
}

.service-category p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.7;
}

.service-category ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-category li {
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 1.5rem;
    position: relative;
}

.service-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.cta-banner {
    background: var(--accent);
    color: var(--white);
    padding: 6rem;
    border-radius: 40px;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-banner .btn-primary {
    background: var(--white);
    color: var(--accent);
}

/* Resources Page */
.resources-view {
    padding: 4rem 0;
}

.resources-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
}

.resource-category h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text-primary);
}

.resource-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resource-links a {
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.resource-links strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.resource-links span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.resource-links a:hover strong {
    text-decoration: underline;
}

/* Industry News */
.industry-news {
    margin-bottom: 8rem;
}

.industry-news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-news .subtitle {
    text-align: center;
    margin-bottom: 4rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-tag.legal { background: #fee2e2; color: #991b1b; }
.news-tag.osha { background: #ffedd5; color: #9a3412; }
.news-tag.trend { background: #dcfce7; color: #166534; }

.news-item h4 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.news-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-item a {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent);
}

.twc-data {
    background: #f8fafc;
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.twc-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Mega-Menu Navigation (CData Style) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem;
    margin-top: 0;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.di-icon {
    font-size: 1.25rem;
    background: #eff6ff;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.di-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.di-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Construction Page */
.construction-view {
    padding: 4rem 0;
}

.construction-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.cleaning-phases {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 8rem;
}

.phase-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.phase-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.phase-card h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.phase-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.phase-card ul {
    list-style: none;
    margin-top: 2rem;
}

.phase-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.phase-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}

.construction-cta {
    margin-bottom: 8rem;
}

.cta-dark {
    background: #0f172a;
    color: var(--white);
    padding: 6rem;
    border-radius: 40px;
    text-align: center;
}

.cta-dark h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-dark p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* Warehouse Page */
.warehouse-view {
    padding: 4rem 0;
}

.warehouse-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 8rem;
}

.warehouse-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.warehouse-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.warehouse-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.warehouse-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.warehouse-card ul {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.warehouse-card li {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.warehouse-cta {
    margin-bottom: 8rem;
}

.cta-blue {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 6rem;
    border-radius: 40px;
    text-align: center;
}

.cta-blue h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-blue p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-blue .btn-primary {
    background: var(--white);
    color: var(--accent);
}

/* Compliance Page */
.compliance-view {
    padding: 4rem 0;
}

.compliance-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 8rem;
}

.osha-box, .sds-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.osha-logo-small {
    height: 30px;
}

.pdf-viewer {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
}

.sds-search {
    margin: 2rem 0;
}

.sds-search input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    outline-color: var(--accent);
}

.sds-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sds-item:hover {
    border-color: var(--accent);
    background: var(--white);
}

.sds-info {
    display: flex;
    flex-direction: column;
}

.sds-info strong {
    color: var(--text-primary);
}

.sds-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-mini {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Admin Dashboard Styles */
.admin-body {
    background: #f1f5f9;
}

.admin-view {
    padding: 4rem 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.admin-form-box, .admin-list-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.form-select {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
}

.inventory-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.inventory-table th {
    padding: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    cursor: pointer;
}

.inventory-table th:hover {
    background: #f8fafc;
}

.inventory-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.hazard-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.hazard-tag.minimal { background: #dcfce7; color: #166534; }
.hazard-tag.low { background: #fef9c3; color: #854d0e; }
.hazard-tag.moderate { background: #ffedd5; color: #9a3412; }
.hazard-tag.high { background: #fee2e2; color: #991b1b; }

.table-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    margin-right: 1rem;
}

.table-link.delete {
    color: #ef4444;
}

/* Office Page */
.office-view {
    padding: 4rem 0;
}

.office-hero {
    text-align: center;
    margin-bottom: 8rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-text {
    direction: ltr;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.rounded-img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.office-cta {
    margin-bottom: 8rem;
}

.cta-white {
    background: var(--white);
    padding: 6rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    text-align: center;
}

.cta-white h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Dashboard Enhancements */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card.blue { border-left: 6px solid var(--accent); }
.stat-card.red { border-left: 6px solid #ef4444; }
.stat-card.green { border-left: 6px solid #10b981; }

.stat-card .stat-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.risk-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.risk-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.risk-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Milestone Styles */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.milestone-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.m-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: #f1f5f9;
}

.complete .m-status { background: #dcfce7; color: #166534; }
.active .m-status { background: #eff6ff; color: var(--accent); border: 1px solid var(--accent); }
.pending .m-status { border: 1px solid var(--border); color: var(--text-secondary); }

.m-text strong {
    display: block;
    font-size: 0.9rem;
}

.mini-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feed-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    margin-top: 4rem;
}

.feed-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Tooltips */
/* Institutional Footer */
.main-footer {
    background-color: var(--white);
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border);
    margin-top: 8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-brand .footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-motto {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Legal Sub-Footer */
.legal-subfooter {
    background-color: #0f172a;
    color: rgba(255,255,255,0.6);
    padding: 2rem 0;
    font-size: 0.8rem;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .legal-container { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Top Utility Bar */
.top-utility-bar {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.top-utility-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

@media (max-width: 768px) {
    .top-utility-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Tablet Breakpoint (768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .feature-row, .phase-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .scene-container {
        grid-template-columns: 1fr;
    }

    .experience-stats {
        grid-template-columns: 1fr;
    }
}

/* Phone Breakpoint (375px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .belief-card, .service-item, .service-category {
        padding: 2rem;
    }

    .cta-banner, .cta-dark, .cta-blue, .qms-intro {
        padding: 3rem 1.5rem;
    }

    .service-category ul {
        grid-template-columns: 1fr;
    }

    /* Mobile Bottom Navigation Mandate (App-like Feel) */
    .mobile-nav-lock {
        display: none; /* Can be enabled for PWA mode */
    }
}
.sigma-form-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sigma-form-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

/* Custom Scrollbar for Form Body */
.sigma-form-body::-webkit-scrollbar { width: 6px; }
.sigma-form-body::-webkit-scrollbar-track { background: transparent; }
.sigma-form-body::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 10px; }

.sigma-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Reduced from 4rem */
}

@media (max-width: 1024px) {
    .sigma-form-section { grid-template-columns: 1fr; gap: 2rem; }
}

.sigma-form-header {
    font-size: 0.85rem;
    color: var(--hwb-blue);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--hwb-blue-glow);
    padding-bottom: 0.75rem;
    display: block;
}

.sigma-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* High-Density */
}

.sigma-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sigma-field label {
    font-size: 0.85rem;
    font-weight: 500; /* Refined Salesforce weight */
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 4px; /* Unitized proximity */
}

.sigma-field label i {
    color: var(--hwb-slate);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.sigma-input {
    width: 100%;
    padding: 0.5rem 0.75rem; /* Max 36-40px height */
    border-radius: 6px; /* Sharp grid-lock */
    border: 1px solid var(--slate-300);
    background: #f8fafc; /* Material Depth */
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-900);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* Instant snap */
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); /* Internal materiality */
}

.sigma-input:focus {
    border-color: var(--brand);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); /* Sharper focus */
}

.sigma-row {
    display: grid;
    gap: 1.5rem;
}

.sigma-row-75-25 { grid-template-columns: 3fr 1fr; }
.sigma-row-60-40 { grid-template-columns: 1.5fr 1fr; }
.sigma-row-50-50 { grid-template-columns: 1fr 1fr; }

.sigma-form-actions {
    margin-top: 1.5rem; /* Liquidated margin debt from 4rem */
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* --- SigmaFidelity™ Gateway Hardening & Transitions (2026) --- */
.vault-background {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Phase 2: High-Density Hardening (Operations Control) --- */

/* Enterprise Tabs */
.sigma-tab-rack {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--slate-200);
    margin-bottom: 1.5rem;
}

.sigma-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--slate-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: -2px; /* Overlap border */
}

.sigma-tab:hover {
    color: var(--slate-800);
}

.sigma-tab.active {
    color: var(--brand);
    border-color: var(--brand);
}

/* Tight-Grid Table */
.sigma-data-grid {
    width: 100%;
    border-collapse: collapse;
}

.sigma-data-grid th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
    white-space: nowrap;
}

.sigma-data-grid td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-800);
    line-height: 1.4;
}

.sigma-data-grid tr:hover td {
    background-color: #f8fafc;
}

/* Muted Status Pills */
.sigma-status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 6px; /* Salesforce Sharp */
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.sigma-status-new { background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }
.sigma-status-active { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.sigma-status-lost { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }
.sigma-status-neutral { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* Compact Utility Menu */
.sigma-utility-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.sigma-utility-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: background 0.2s;
}

.sigma-utility-btn:hover { background: var(--slate-50); color: var(--brand); }

/* View Transitions */
.sigma-view-fade {
    animation: horizontalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes horizontalSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Strict Gutter System */
.sigma-gutter-row { display: flex; gap: 1.5rem; align-items: center; }
.sigma-gutter-grid { display: grid; gap: 1.5rem; }
.sigma-control-rail { margin-bottom: 1rem; }

.ambient-security-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hwb-blue);
    box-shadow: 0 0 15px var(--hwb-blue);
    z-index: 9999;
}

/* Skeleton Loading System */
.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    padding: 3rem 40px;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.skeleton-header { height: 60px; background: #e2e8f0; border-radius: 8px; margin-bottom: 3rem; width: 300px; animation: pulse 1.5s infinite; }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.skeleton-card { height: 160px; background: #e2e8f0; border-radius: 16px; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Logo Merge Keyframes */
@keyframes logoMergeLeft {
    from { transform: translateX(-90px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes logoMergeRight {
    from { transform: translateX(90px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Secure Logout Transition */
.logout-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.logout-fade.active {
    opacity: 1;
    visibility: visible;
}

/* --- SigmaFidelity™ Global Hero Standard (2026) --- */
.services-hero {
    width: 100%;
    padding: 8rem 2rem !important; /* Standard Vertical Handshake */
    margin-bottom: 0 !important;
    border-radius: 0 !important; /* Infinite Horizon Standard */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.services-hero h1 {
    font-size: 2.75rem !important; /* Sophisticated Scale */
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    max-width: 900px;
}

.services-hero .subtitle, .services-hero p {
    font-size: 1.15rem !important;
    color: inherit;
    max-width: 750px !important;
    margin: 0 auto 2.5rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.services-hero .executive-hero-cta, .services-hero .hero-ctas .isc-btn {
    height: 48px !important;
    padding: 0 3rem !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Dark Variant (Standard for Service Pages) */
.services-hero.dark-variant {
    color: white;
}

/* Light Variant (Standard for Home/Marketing) */
.services-hero.light-variant {
    color: var(--hwb-dark);
}

/* --- User Identity System (Option B) --- */
.user-identity-container {
    margin-right: 0.5rem;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.user-trigger:hover {
    background: #f1f5f9;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    background: var(--hwb-blue-glow);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid var(--hwb-blue-glow);
}

.user-full-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-900);
}

.user-dropdown {
    transform: translateY(8px);
}

/* Sigma-Action Standard (Grid Controls) */
/* HWB Standard Warning Box */
.hwb-warning-modal {
    border-top: 4px solid #ef4444 !important;
}

.hwb-warning-header {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

.sigma-action-header {
    text-align: right !important;
    cursor: default !important;
    width: 80px;
}

.sigma-action-cell {
    text-align: right !important;
}

/* Vertical Enterprise Dropdown */
.utility-dropdown {
    width: 280px !important;
    left: auto !important;
    right: 0;
    border-radius: 6px;
    border: 1px solid var(--slate-200) !important;
    padding: 0.5rem 0 !important;
}

/* Footer */
/* --- Institutional Command Dashboard Footer (2026 - Glass Variant) --- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.8); /* 80% opacity for more pronounced glass look */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: white;
    padding: 6rem 0 0;
    margin-top: var(--section-gap);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.social-icon:hover {
    color: var(--hwb-blue);
    transform: translateY(-3px);
}

.top-social {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.top-social a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.top-social a:hover { color: white; }

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    padding-bottom: 6rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-large {
    height: 80px; /* Slightly larger for authority */
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.footer-formula {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    border-left: 2px solid var(--hwb-blue);
    padding-left: 1.5rem;
}

.footer-column h4 {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--hwb-blue);
    transform: translateX(5px);
}

.footer-contact-info {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact-info strong {
    display: block;
    color: white;
    font-size: 1.25rem;
    margin: 1rem 0;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-legal a:hover { color: white; }

/* Institutional Form System (2026 Standard) */
.form-container {
    max-width: 640px;
    margin: var(--section-gap) auto;
    background: var(--hwb-white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hwb-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hwb-dark);
    letter-spacing: 0.02em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--hwb-border);
    background: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--hwb-dark);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--hwb-blue);
    background: white;
    box-shadow: 0 0 0 4px var(--hwb-blue-glow);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    justify-content: center;
}

/* Section Centering Logic */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: var(--section-gap) auto 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--hwb-dark) 0%, var(--hwb-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--hwb-slate);
}


/* --- SigmaFidelity™ Mechanical Instruments --- */
.sigma-range-instrument {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border: 1px solid var(--slate-200);
    border-radius: 2px;
    outline: none;
    margin: 1.5rem 0;
}

.sigma-range-instrument::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 24px;
    background: var(--hwb-blue);
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.15s;
}

.sigma-range-instrument::-webkit-slider-thumb:hover {
    transform: scaleY(1.1);
    background: #1d4ed8;
}

/* --- Global Service Container --- */
.detailed-services {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; /* Standard Gutter Wall */
}

@media (max-width: 768px) {
    .detailed-services { padding: 0 20px; }
}

/* --- SigmaFidelity™ Zero-Crop Image Standard --- */
.sigma-image-frame {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    padding: 1.5rem; /* Floating padding */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.sigma-image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sigma-image-frame:hover img {
    transform: scale(1.03);
}

/* --- RECONSTRUCTED: Institutional Mega-Bar Navigation (2026) --- */
/* Ported from Live Production for 100% Fidelity */

.top-utility-bar {
    background: var(--hwb-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: 100%;
}

header.main-header {
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hwb-border);
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--global-padding);
}

.desktop-nav {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: static; /* Required for full-width mega menu */
}

.nav-item > a {
    text-decoration: none;
    color: var(--hwb-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item:hover > a { color: var(--hwb-blue); }

/* Mega Menu Expansion */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--hwb-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 3rem 0;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 var(--global-padding);
}

.mega-option {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.mega-option:hover {
    background: var(--hwb-blue-glow);
}

.mega-option .title {
    font-weight: 800;
    color: var(--hwb-blue);
    font-size: 1.1rem;
}

.mega-option .desc {
    font-size: 0.85rem;
    color: var(--hwb-slate);
    line-height: 1.5;
}

.desktop-ease-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Toggle Consistency */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1024px) {
    .desktop-nav, .desktop-ease-controls .nav-cta:not(.mobile-nav-cta) {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* --- RECONSTRUCTED: Institutional Mega-Bar Navigation (2026) --- */
/* Ported from Live Production for 100% Fidelity */

.top-utility-bar {
    background: var(--hwb-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: 100%;
}

header.main-header {
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hwb-border);
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.desktop-nav {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    height: 100%;
}

.nav-cta {
    background: var(--hwb-blue);
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--hwb-blue-glow);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--hwb-blue-glow);
}

.services-hero {
    margin-top: -90px; /* Tucking under the glass header */
    padding-top: calc(90px + 8rem) !important;
}

/* --- RECONSTRUCTED: Mobile Overlay System (2026) --- */
/* Ensures the menu is hidden by default and correctly styled for small screens */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    padding: 120px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-overlay-links a {
    text-decoration: none;
    color: var(--hwb-dark);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mobile-overlay-links .sub-link {
    font-size: 1.1rem;
    color: var(--hwb-slate);
    font-weight: 600;
    margin-left: 1.5rem;
}

.mobile-overlay-footer {
    margin-top: auto;
    padding-top: 4rem;
    border-top: 1px solid var(--hwb-border);
}

/* --- RECONSTRUCTED: Institutional CTA & Button System (2026) --- */

.isc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.isc-btn-primary {
    background: var(--hwb-blue);
    color: white !important;
    box-shadow: 0 4px 14px var(--hwb-blue-glow);
}

.isc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--hwb-blue-glow);
    background: #1d4ed8;
}

.isc-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white !important;
}

.isc-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.executive-cta {
    background: linear-gradient(135deg, var(--hwb-dark) 0%, #0f172a 100%);
    color: white;
    padding: 8rem 4rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 0 auto 8rem; 
    max-width: var(--container-width);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.executive-cta h2 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 900; 
    margin-bottom: 1.5rem; 
    color: white; 
    letter-spacing: -0.02em;
}

.executive-cta p { 
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 3.5rem; 
    max-width: 750px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
}

/* --- Utility Bar Hardening (Edge-to-Edge) --- */
.utility-fluid-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
