/* Hazmat Site Custom Styles */

:root {
    --hazmat-primary: #c41e3a;        /* Safety Red */
    --hazmat-secondary: #ff8c00;      /* Warning Orange */
    --hazmat-accent: #ffd700;         /* Caution Yellow */
    --hazmat-dark: #1a1a2e;           /* Dark Blue-Gray */
    --hazmat-light: #f4f4f4;          /* Light Gray */
    --hazmat-success: #28a745;        /* Safety Green */
    --hazmat-info: #17a2b8;           /* Info Blue */
    --hazmat-text: #2c3e50;           /* Dark Text */
    --hazmat-border: #dee2e6;         /* Border Gray */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--hazmat-light);
    color: var(--hazmat-text);
}

/* Header and Navigation */
.hazmat-header {
    background: linear-gradient(135deg, var(--hazmat-dark) 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: relative;
}

.hazmat-header-wallpaper {
    background-image: url('/css/hazmat-header-wallpaper.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hazmat-header-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 40px;
    height: 40px;
}

.hazmat-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: inline-block;
}

.hazmat-brand:hover {
    color: var(--hazmat-accent) !important;
}

.hazmat-brand-subtitle {
    font-size: 0.75rem;
    color: var(--hazmat-accent);
    display: block;
}

.hazmat-nav {
    background-color: transparent;
}

.hazmat-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.hazmat-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--hazmat-secondary);
}

.hazmat-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--hazmat-accent);
}

/* Main Content */
.hazmat-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hazmat-page-title {
    color: var(--hazmat-dark);
    border-left: 5px solid var(--hazmat-primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.hazmat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hazmat-card-header {
    background: linear-gradient(135deg, var(--hazmat-primary) 0%, #a01828 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid var(--hazmat-secondary);
}

.hazmat-card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-hazmat-primary {
    background: linear-gradient(135deg, var(--hazmat-primary) 0%, #a01828 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-hazmat-primary:hover {
    background: linear-gradient(135deg, #a01828 0%, var(--hazmat-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    color: white;
}

.btn-hazmat-secondary {
    background-color: var(--hazmat-secondary);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-hazmat-secondary:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    color: white;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--hazmat-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--hazmat-border);
    border-radius: 5px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hazmat-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.form-check-input {
    border: 2px solid var(--hazmat-border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--hazmat-primary);
    border-color: var(--hazmat-primary);
}

.form-check-label {
    cursor: pointer;
}

/* Tables */
.hazmat-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hazmat-table thead {
    background: linear-gradient(135deg, var(--hazmat-dark) 0%, #2c3e50 100%);
    color: white;
}

.hazmat-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.hazmat-table tbody tr {
    transition: all 0.2s ease;
}

.hazmat-table tbody tr:hover {
    background-color: rgba(196, 30, 58, 0.05);
    transform: scale(1.01);
}

.hazmat-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

/* Badges */
.hazmat-badge-danger {
    background-color: var(--hazmat-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hazmat-badge-warning {
    background-color: var(--hazmat-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hazmat-badge-safe {
    background-color: var(--hazmat-success);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Alert Boxes */
.hazmat-alert {
    border-left: 5px solid var(--hazmat-primary);
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hazmat-alert-warning {
    border-left-color: var(--hazmat-secondary);
}

.hazmat-alert-info {
    border-left-color: var(--hazmat-info);
}

/* Lists */
.hazmat-list {
    list-style: none;
    padding-left: 0;
}

.hazmat-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-left: 4px solid var(--hazmat-primary);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.hazmat-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hazmat-list li::before {
    content: "▸";
    color: var(--hazmat-primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Footer */
.hazmat-footer {
    background-color: var(--hazmat-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--hazmat-primary);
}

.hazmat-footer a {
    color: var(--hazmat-accent);
    text-decoration: none;
}

.hazmat-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Info Boxes */
.hazmat-info-box {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hazmat-info-box h4 {
    color: var(--hazmat-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hazmat-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hazmat-page-title {
        font-size: 1.75rem;
    }
}

:root {
    --hazmat-primary: #c8281e;
    --hazmat-secondary: #ffa726;
    --hazmat-accent: #ffa726;
    --hazmat-dark: #14171c;
    --hazmat-light: #f4f3f0;
    --hazmat-success: #2e7d4f;
    --hazmat-info: #3b6b8f;
    --hazmat-text: #2a2d33;
    --hazmat-border: #e2dfd9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--hazmat-light);
    color: var(--hazmat-text);
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hazmat-dark);
    font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
    font-weight: 700;
}

a {
    color: var(--hazmat-primary);
}

.hazmat-header,
.hazmat-header-wallpaper {
    border-bottom: 2px solid var(--hazmat-accent);
    background-color: #14171c;
    background-image: linear-gradient(105deg, rgba(20, 23, 28, .98), rgba(34, 38, 46, .98)),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 167, 38, .08) 22px 23px);
    box-shadow: 0 8px 24px rgba(20, 23, 28, .16);
}

.hazmat-header .navbar {
    padding: .45rem 0;
}

.hazmat-brand {
    padding: .7rem .75rem;
    color: #fff !important;
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.hazmat-header-icon {
    width: 42px;
    height: 42px;
}

.hazmat-brand-subtitle {
    margin-top: .1rem;
    color: #c9c6bf;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hazmat-nav .navbar-nav {
    align-items: center;
    gap: .2rem;
}

.hazmat-nav .nav-link {
    border: 0;
    border-radius: 5px;
    color: rgba(255, 255, 255, .79) !important;
    font-size: .9rem;
    font-weight: 600;
    padding: .62rem .85rem;
    transition: color .18s ease, background-color .18s ease;
}

.hazmat-nav .nav-link:hover,
.hazmat-nav .nav-link.active {
    border: 0;
    background: rgba(255, 167, 38, .12);
    color: #fff !important;
}

.hazmat-nav .nav-link.active {
    box-shadow: inset 0 -2px var(--hazmat-accent);
}

.hazmat-nav .nav-link.btn-outline-light {
    border: 1px solid rgba(255, 167, 38, .62);
    color: var(--hazmat-accent) !important;
}

.hazmat-main {
    min-height: calc(100vh - 210px);
    padding: 2.5rem 0 3.5rem;
}

.hazmat-page-title {
    border-left: 4px solid var(--hazmat-secondary);
    color: var(--hazmat-dark);
    font-size: 2.25rem;
    line-height: 1.16;
    margin-bottom: 1.75rem;
    padding-left: 1rem;
}

.hazmat-card,
.hazmat-info-box,
.hazmat-alert {
    border: 1px solid var(--hazmat-border);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 23, 28, .055);
}

.hazmat-card {
    margin-bottom: 1.5rem;
}

.hazmat-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    background: var(--hazmat-dark);
    color: #fff;
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    letter-spacing: .01em;
}

.hazmat-alert {
    border-left: 4px solid var(--hazmat-secondary);
    padding: 1.25rem 1.5rem;
}

.hazmat-alert h4,
.hazmat-info-box h4 {
    color: var(--hazmat-dark);
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
}

.hazmat-alert-info {
    border-left-color: var(--hazmat-info);
}

.btn-hazmat-primary,
.btn-hazmat-secondary {
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    padding: .72rem 1.15rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn-hazmat-primary {
    background: var(--hazmat-primary);
    color: #fff;
}

.btn-hazmat-primary:hover {
    background: #a01f17;
    box-shadow: 0 8px 18px rgba(200, 40, 30, .2);
    color: #fff;
    transform: translateY(-2px);
}

.btn-hazmat-secondary {
    background: var(--hazmat-secondary);
    color: #fff;
}

.btn-hazmat-secondary:hover {
    background: #e5901a;
    box-shadow: 0 8px 18px rgba(255, 167, 38, .2);
    color: #fff;
    transform: translateY(-2px);
}

.form-label {
    color: var(--hazmat-dark);
}

.form-control,
.form-select {
    border: 1px solid #d3d0ca;
    border-radius: 5px;
    background-color: #fff;
    color: var(--hazmat-text);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--hazmat-primary);
    box-shadow: 0 0 0 .2rem rgba(200, 40, 30, .15);
}

.form-check-input:checked {
    border-color: var(--hazmat-primary);
    background-color: var(--hazmat-primary);
}

.hazmat-table {
    border: 1px solid var(--hazmat-border);
    box-shadow: none;
}

.hazmat-table thead {
    background: var(--hazmat-dark);
}

.hazmat-table tbody tr:hover {
    background: #faf6ee;
    transform: none;
}

.hazmat-list li {
    border: 1px solid var(--hazmat-border);
    border-left: 3px solid var(--hazmat-primary);
    border-radius: 5px;
    box-shadow: none;
}

.hazmat-list li:hover {
    box-shadow: 0 5px 14px rgba(20, 23, 28, .08);
    transform: translateX(3px);
}

.hazmat-list li::before {
    color: var(--hazmat-secondary);
}

.hazmat-info-box {
    padding: 1.5rem;
}

.hazmat-info-box h4 {
    color: var(--hazmat-dark);
}

.hazmat-footer {
    margin-top: 0;
    border-top: 2px solid var(--hazmat-accent);
    background: var(--hazmat-dark);
    color: rgba(255, 255, 255, .75);
}

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


/* Home hero: photo background (wwwroot/images/hazmat-tech-hero.jpg) */
.hazmat-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    min-height: 600px;
    margin: -2.5rem calc((100% - 100vw) / 2) 2.5rem;
    padding: 5rem max(calc((100vw - 1180px) / 2), 1.5rem);
    background-color: #14171c;
    background-image:
        linear-gradient(90deg, rgba(14, 16, 20, .92) 0%, rgba(14, 16, 20, .72) 34%, rgba(14, 16, 20, 0) 62%),
        linear-gradient(0deg, rgba(14, 16, 20, .5) 0%, rgba(14, 16, 20, 0) 30%),
        url('/images/hazmat-tech-hero.jpg');
    background-size: cover;
    background-position: center right;
    color: #fff;
}

.hazmat-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, #c8281e 0 48px, #f4f3f0 48px 96px);
    content: "";
}

.hazmat-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 540px;
}

.hazmat-hero-kicker {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.3rem;
    color: var(--hazmat-accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.hazmat-hero-kicker span {
    width: 28px;
    height: 3px;
    background: var(--hazmat-primary);
}

.hazmat-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 3.6rem;
    line-height: 1.04;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hazmat-hero h1 em {
    color: var(--hazmat-accent);
    font-style: normal;
}

.hazmat-hero-summary {
    max-width: 440px;
    margin: 1.35rem 0 1.8rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hazmat-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
}

.hazmat-hero-actions .btn-hazmat-primary {
    padding: .85rem 1.5rem;
    background: var(--hazmat-primary);
    color: #fff;
}

.hazmat-hero-actions .btn-hazmat-primary:hover {
    background: #a01f17;
    color: #fff;
}

.hazmat-hero-secondary {
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.hazmat-hero-secondary:hover {
    color: var(--hazmat-accent);
}

.hazmat-hero-footnote {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: 2.2rem;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.hazmat-hero-footnote-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 167, 38, .6);
    border-radius: 50%;
    color: var(--hazmat-accent);
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .hazmat-hero {
        min-height: 520px;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .hazmat-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hazmat-main {
        padding-top: 1.5rem;
    }

    .hazmat-header .navbar {
        padding: .3rem 0;
    }

    .hazmat-nav .navbar-nav {
        align-items: stretch;
        padding: .4rem 0 .8rem;
    }

    .hazmat-nav .nav-link {
        padding: .7rem .8rem;
    }

    .hazmat-hero {
        min-height: 0;
        margin-top: -1.5rem;
        padding: 3.5rem 1.25rem 4rem;
        background-image:
            linear-gradient(180deg, rgba(14, 16, 20, .88) 0%, rgba(14, 16, 20, .7) 100%),
            url('/images/hazmat-tech-hero.jpg');
        background-position: 72% center;
    }

    .hazmat-hero h1 {
        font-size: 2.7rem;
    }

    .hazmat-page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 420px) {
    .hazmat-hero h1 {
        font-size: 2.35rem;
    }

    .hazmat-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}