/* ===== BASE RESETS ===== */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===== HERO SECTIONS ===== */
.hero-section {
    background: linear-gradient(135deg, #0A2463 0%, #0F172A 50%, #0A2463 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(62, 146, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-page {
    background: linear-gradient(135deg, #0A2463 0%, #132852 100%);
    position: relative;
}

.hero-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #3E92CC 50%, #F97316 100%);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 25%,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.03) 25.5%
    );
    pointer-events: none;
}

/* ===== CARD EFFECTS ===== */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 36, 99, 0.12) !important;
}

.card-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.1) !important;
    border-color: #E2E8F0;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background: linear-gradient(135deg, #0A2463 0%, #1A3A7A 50%, #3E92CC 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.08);
    pointer-events: none;
}

/* ===== SECTION BACKGROUNDS ===== */
.section-alt {
    background-color: #F1F5F9;
}

.accent-border-left {
    border-left: 4px solid #F97316;
}

.accent-border-top {
    border-top: 3px solid #F97316;
}

/* ===== STAT CARDS ===== */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s ease;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card-primary::before { background: #0A2463; }
.stat-card-success::before { background: #16A34A; }
.stat-card-warning::before { background: #F59E0B; }
.stat-card-info::before { background: #3E92CC; }
.stat-card-error::before { background: #DC2626; }
.stat-card-secondary::before { background: #F97316; }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-primary { background: rgba(10, 36, 99, 0.08); color: #0A2463; }
.stat-icon-success { background: rgba(22, 163, 74, 0.08); color: #16A34A; }
.stat-icon-warning { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.stat-icon-info { background: rgba(62, 146, 204, 0.08); color: #3E92CC; }
.stat-icon-error { background: rgba(220, 38, 38, 0.08); color: #DC2626; }
.stat-icon-secondary { background: rgba(249, 115, 22, 0.08); color: #F97316; }

/* ===== ADMIN LAYOUT ===== */
.admin-sidebar {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
}

.admin-content {
    background-color: #F1F5F9;
    min-height: calc(100vh - 48px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
}

.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #F97316 !important;
}

/* ===== VALUE CARDS ===== */
.value-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid transparent;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 36, 99, 0.12) !important;
}

.value-card-primary:hover { border-top-color: #0A2463; }
.value-card-secondary:hover { border-top-color: #F97316; }
.value-card-tertiary:hover { border-top-color: #3E92CC; }

/* ===== FEATURE GRID ITEMS ===== */
.feature-item {
    padding: 1.5rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.feature-item:hover {
    background-color: #F8FAFC;
}

/* ===== GENERAL UTILITIES ===== */
.h-100 {
    height: 100%;
}

.divider-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #FB923C);
    border-radius: 2px;
    margin: 0 auto;
}

.divider-accent-left {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #FB923C);
    border-radius: 2px;
}

/* ===== PHOTO HERO SECTIONS ===== */
.hero-section-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.88) 0%, rgba(15, 23, 42, 0.92) 50%, rgba(10, 36, 99, 0.85) 100%);
    pointer-events: none;
}

.hero-section-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #3E92CC 50%, #F97316 100%);
}

.hero-section-photo .hero-content {
    position: relative;
    z-index: 1;
}

.hero-page-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-page-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(19, 40, 82, 0.85) 100%);
    pointer-events: none;
}

.hero-page-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #3E92CC 50%, #F97316 100%);
}

/* ===== PHOTO DIVIDER ===== */
.photo-divider {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.photo-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.85) 0%, rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
}

/* ===== CTA WITH PHOTO ===== */
.cta-section-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.cta-section-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(26, 58, 122, 0.85) 50%, rgba(62, 146, 204, 0.8) 100%);
    pointer-events: none;
}

.cta-section-photo::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.08);
    pointer-events: none;
}

/* ===== HOME HERO PHOTO (directional overlay) ===== */
.hero-home-photo {
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-home-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 36, 99, 0.95) 0%,
        rgba(10, 36, 99, 0.82) 40%,
        rgba(10, 36, 99, 0.48) 70%,
        rgba(10, 36, 99, 0.28) 100%
    );
    pointer-events: none;
}

.hero-home-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #3E92CC 50%, #F97316 100%);
}

.hero-home-photo .hero-content {
    position: relative;
    z-index: 1;
}

/* ===== FACILITY PHOTO STRIP (parallax divider) ===== */
.facility-photo-strip {
    background-image: url('/images/hero-preheater.jpg');
    background-size: cover;
    background-position: center 58%;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.facility-photo-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 36, 99, 0.86) 0%,
        rgba(15, 23, 42, 0.78) 100%
    );
    pointer-events: none;
}

.facility-photo-strip .strip-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-section,
    .hero-section-photo,
    .hero-home-photo {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .facility-photo-strip {
        background-attachment: scroll;
    }
}
