/* Small Business Institute &ndash; Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#form1 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Custom Properties */
:root {
    --sbi-navy: #1C3172;
    --sbi-navy-dark: #12204F;
    --sbi-sky: #5BB8E8;
    --sbi-white: #ffffff;
    --sbi-light: #F8FAFF;
    --sbi-border: #dee2e6;
    --sbi-footer-muted: rgba(255, 255, 255, 0.55);
    --sbi-transition: 0.2s ease-in-out;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--sbi-navy);
    color: var(--sbi-white);
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    outline: 3px solid var(--sbi-sky);
    outline-offset: 0;
    color: var(--sbi-white);
}

/* Focus Visibility */
*:focus-visible {
    outline: 3px solid var(--sbi-sky);
    outline-offset: 2px;
}

/* Site Header */
.site-header {
    background-color: var(--sbi-navy);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--sbi-white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    transition: opacity var(--sbi-transition);
}

.site-brand:hover,
.site-brand:focus {
    color: var(--sbi-white);
    opacity: 0.85;
    text-decoration: none;
}

.site-brand__bar {
    display: inline-block;
    width: 3px;
    height: 2em;
    background-color: var(--sbi-sky);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    background-color: var(--sbi-light);
    display: flex;
    flex: 1;
    align-items: center;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-block;
    background-color: var(--sbi-navy);
    color: var(--sbi-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--sbi-sky);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: hero-entry 0.5s ease-out 0.1s both;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    margin-top: 0.25rem;
    background: linear-gradient(
        110deg,
        var(--sbi-navy)  0%,
        var(--sbi-navy)  20%,
        #3d6fbf          30%,
        #5bb8e8          38%,
        #c2e8f9          44%,
        #ffffff          48%,
        #c2e8f9          52%,
        #5bb8e8          58%,
        var(--sbi-sky)   63%,
        var(--sbi-navy)  73%,
        var(--sbi-navy)  100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: title-shimmer 4s ease-in-out infinite, hero-entry 0.5s ease-out 0.25s both;
}

@keyframes title-shimmer {
    0%   { background-position: 140% center; }
    100% { background-position: -40% center; }
}

@keyframes hero-entry {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    color: #212529;
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-top: 1.5rem;
    animation: hero-entry 0.5s ease-out 0.4s both;
}

.hero-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background-color: var(--sbi-sky);
    border-radius: 2px;
}

.hero-description {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
    animation: hero-entry 0.5s ease-out 0.55s both;
}

/* Site Footer */
.site-footer {
    background-color: var(--sbi-navy);
    color: var(--sbi-white);
    padding: 2rem 0;
}

.site-footer .fw-semibold {
    color: var(--sbi-white);
}

.footer-muted {
    color: var(--sbi-footer-muted);
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--sbi-transition);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--sbi-sky);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title {
        background: none;
        color: var(--sbi-navy);
        -webkit-text-fill-color: var(--sbi-navy);
        animation: none;
    }


    .hero-badge,
    .hero-tagline,
    .hero-description {
        animation: none;
    }
}

/* Print */
@media print {
    .site-header,
    .skip-link {
        display: none;
    }

    body,
    #form1,
    main {
        display: block;
        min-height: 0;
    }

    .hero-section {
        padding: 2rem 0;
    }
}
