/* Daily Reporting System — Welcome page */

.drs-welcome {
    min-height: 100vh;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    color: #102033;
    background: #102033;
}

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

.drs-welcome__hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drs-welcome__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: drs-welcome-kenburns 22s ease-in-out infinite alternate;
}

.drs-welcome__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            rgba(16, 32, 51, 0.88) 0%,
            rgba(16, 32, 51, 0.72) 42%,
            rgba(30, 77, 140, 0.42) 100%
        ),
        linear-gradient(
            to top,
            rgba(16, 32, 51, 0.9) 0%,
            rgba(16, 32, 51, 0.2) 45%,
            rgba(16, 32, 51, 0.35) 100%
        );
}

.drs-welcome__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}

@media (min-width: 768px) {
    .drs-welcome__top {
        padding: 1.75rem 3rem;
    }
}

.drs-welcome__logos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.drs-welcome__logos img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

@media (min-width: 768px) {
    .drs-welcome__logos img {
        width: 3.75rem;
        height: 3.75rem;
    }
}

.drs-welcome__state {
    margin: 0;
    max-width: 14rem;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.drs-welcome__hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .drs-welcome__hero-body {
        padding: 2rem 3rem 5rem;
    }
}

.drs-welcome__hero-copy {
    max-width: 40rem;
    animation: drs-welcome-fadeup 0.9s ease-out both;
}

.drs-welcome__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.drs-welcome__brand {
    margin: 1rem 0 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.drs-welcome__lead {
    margin: 1.25rem 0 0;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.drs-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.drs-welcome__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.drs-welcome__btn:hover {
    transform: translateY(-2px);
}

.drs-welcome__btn--primary {
    background: #fff;
    color: #1e4d8c;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.drs-welcome__btn--primary:hover {
    background: #f8fafc;
}

.drs-welcome__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(6px);
}

.drs-welcome__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
}

.drs-welcome__scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    animation: drs-welcome-fadeup 1.2s ease-out 0.25s both;
}

.drs-welcome__scroll-line {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: drs-welcome-pulse 1.8s ease-in-out infinite;
}

.drs-welcome__portals {
    position: relative;
    background: #f4f7fb;
    padding: 4rem 1.5rem 3rem;
}

@media (min-width: 768px) {
    .drs-welcome__portals {
        padding: 5rem 3rem 4rem;
    }
}

.drs-welcome__portals-inner {
    max-width: 72rem;
    margin: 0 auto;
    animation: drs-welcome-fadeup 0.8s ease-out both;
}

.drs-welcome__portals-head {
    max-width: 36rem;
    margin-bottom: 2rem;
}

.drs-welcome__portals-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1e4d8c;
}

.drs-welcome__portals-title {
    margin: 0.55rem 0 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.2;
    color: #102033;
}

.drs-welcome__portals-copy {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.drs-welcome__portal-list {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .drs-welcome__portal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .drs-welcome__portal-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.drs-welcome__portal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    min-height: 9.5rem;
    padding: 1.25rem 1.3rem;
    border: 1px solid #d7e0ec;
    border-radius: 0.65rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.drs-welcome__portal:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 77, 140, 0.45);
    box-shadow: 0 16px 36px rgba(16, 32, 51, 0.1);
}

.drs-welcome__portal-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #102033;
}

.drs-welcome__portal:hover .drs-welcome__portal-name {
    color: #1e4d8c;
}

.drs-welcome__portal-desc {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.drs-welcome__portal-cta {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1e4d8c;
}

.drs-welcome__footer {
    border-top: 1px solid #dbe4f0;
    background: #fff;
    padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
    .drs-welcome__footer {
        padding: 1.35rem 3rem;
    }
}

.drs-welcome__footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .drs-welcome__footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.drs-welcome__footer strong {
    color: #1e4d8c;
    font-weight: 700;
}

@keyframes drs-welcome-fadeup {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drs-welcome-kenburns {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(-1.5%, -1%, 0);
    }
}

@keyframes drs-welcome-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleY(0.85);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drs-welcome__bg,
    .drs-welcome__hero-copy,
    .drs-welcome__scroll,
    .drs-welcome__portals-inner,
    .drs-welcome__scroll-line {
        animation: none !important;
    }
}
