/* Capital Assured - Modern Site Styles */
/* Consolidated CSS for semantic HTML structure */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #000;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== SITE HEADER ===== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 100;
}

.site-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    height: 60px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid #333;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
    border-color: #007cba;
    color: #007cba;
    outline: none;
}

.nav-toggle[aria-expanded="true"] {
    border-color: #007cba;
    color: #007cba;
}

.site-nav {
    position: static;
    background: transparent;
}

.site-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.site-nav__item {
    margin: 0;
}

.site-nav__link {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: #007cba;
    border-bottom-color: #007cba;
    outline: none;
}

.site-nav__link[aria-current="page"] {
    color: #007cba;
    font-weight: 600;
    border-bottom-color: #007cba;
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px); /* Account for header/footer */
}

/* ===== HERO SECTIONS ===== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}

.hero__title {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* ===== CONTENT SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section--white {
    background-color: #fff;
}

.section--gray {
    background-color: #f8f9fa;
}

.section--dark {
    background-color: #2c3e50;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__title {
    font-size: 2rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: inherit;
}

.section__subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HOME COLUMNS ===== */
.home-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.home-column {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-column img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.home-column__title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.home-column__text {
    color: #666;
    line-height: 1.6;
}

.home-column__link {
    display: inline-block;
    margin-top: 15px;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.home-column__link:hover {
    color: #005a87;
}

/* ===== CONTENT STYLING ===== */
.content {
    max-width: 800px;
    margin: 0 auto;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: #2c3e50;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.2;
}

.content h1 { font-size: 2.5rem; }
.content h2 { font-size: 2rem; }
.content h3 { font-size: 1.5rem; }
.content h4 { font-size: 1.25rem; }

.content p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.content ul,
.content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.content li {
    margin-bottom: 0.5em;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.content a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px 0;
    margin-top: auto;
}

.site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer__brand {
    text-align: center;
    margin-bottom: 40px;
}

.site-footer__brand img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.site-footer__brand p {
    max-width: 600px;
    margin: 0 auto 15px auto;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.site-footer__nav {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.site-footer__nav a:hover {
    opacity: 0.8;
}

.site-footer__contact {
    text-align: center;
    margin-bottom: 40px;
}

.site-footer__contact h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: white;
}

.site-footer__contact p {
    margin: 0;
    opacity: 0.9;
}

.site-footer__back-to-top {
    display: block;
    margin: 0 auto 20px auto;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.site-footer__back-to-top:hover,
.site-footer__back-to-top:focus {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.site-footer__legal {
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .site-header__container {
        padding: 0 15px;
    }

    .site-header__logo img {
        height: 50px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .site-nav--open {
        left: 0;
    }

    .site-nav__list {
        flex-direction: column;
        padding: 80px 0 20px 0;
    }

    .site-nav__link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        color: #333;
    }

    .site-nav__link:hover,
    .site-nav__link:focus {
        background-color: #f5f5f5;
        border-bottom-color: #007cba;
    }

    /* Overlay */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Hero content adjustments */
    .hero__content {
        padding: 20px;
        width: 95%;
    }

    .hero__title {
        font-size: 2rem;
    }

    /* Home columns */
    .home-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-column {
        padding: 20px;
    }

    /* Footer */
    .site-footer__nav a {
        display: block;
        margin: 10px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-toggle,
    .site-footer__back-to-top {
        display: none !important;
    }

    .site-nav {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .site-nav__list {
        display: block !important;
    }

    .site-nav__link {
        color: black !important;
        border: none !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FOCUS VISIBLE ===== */
.site-nav__link:focus-visible,
.nav-toggle:focus-visible,
.site-footer__back-to-top:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}