/* ========================================
   BASE STYLES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap');

:root {
    --kelson-dark: #1a2a3a;
    --kelson-navy: #1a1f2e;
    --kelson-gold: #c9a227;
    --kelson-white: #ffffff;
    --kelson-muted: rgba(255, 255, 255, 0.7);
    --kelson-text: #333;
    --font-body: 'Avenir Light', 'Avenir', 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--font-body);
    font-weight: 300;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgN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2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
header {
    background: #1a1f2e;
}

nav.navbar.navbar-kelson {
    background: #1a1f2e !important;
    border-bottom: 3px solid #2a3f5f;
    padding: 0.5rem 0;
}

.navbar-kelson .container {
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.navbar-kelson .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 0;
    padding: 0;
}

.navbar-kelson .brand-icon {
    height: 70px;
    width: auto;
}

.navbar-kelson .navbar-collapse {
    justify-content: flex-start !important;
    flex-grow: 0;
}

.navbar-kelson .navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-kelson .nav-item {
    display: flex;
    align-items: center;
    padding-bottom: 0 !important;
}

    .navbar-kelson .nav-item:last-of-type {
        padding-bottom: 0 !important;
    }

/* Dropdown Menu Styles */
.navbar-kelson .dropdown-menu-kelson {
    background-color: #5a7a8a;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 200px;
}

    .navbar-kelson .dropdown-menu-kelson .dropdown-item {
        font-family: var(--font-body);
        font-size: 0.9rem;
        font-weight: 300;
        color: var(--kelson-white);
        padding: 0.5rem 1.25rem;
        transition: background-color 0.3s ease;
    }

        .navbar-kelson .dropdown-menu-kelson .dropdown-item:hover,
        .navbar-kelson .dropdown-menu-kelson .dropdown-item:focus {
            background-color: #4a6a7a;
            color: var(--kelson-white);
        }

.navbar-kelson .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.navbar-kelson .nav-link {
    color: var(--kelson-white) !important;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
}

    .navbar-kelson .nav-link:hover,
    .navbar-kelson .nav-link.active {
        color: var(--kelson-gold) !important;
    }

    .navbar-kelson .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1rem;
        right: 1rem;
        height: 1px;
        background-color: var(--kelson-gold);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .navbar-kelson .nav-link:hover::after {
        transform: scaleX(1);
    }

.navbar-kelson .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-kelson .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 83px);
    overflow: hidden;
    background-color: var(--kelson-dark);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 40, 0.4);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 0 3rem;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kelson-gold);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
    max-width: 800px;
}

.hero-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--kelson-white);
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

    .hero-title em {
        font-style: italic;
        color: var(--kelson-gold);
    }

/* ========================================
   FOOTER STYLES
   ======================================== */
.footer-kelson {
    background-color: var(--kelson-white);
    padding: 3rem 0 1.5rem;
    text-align: center;
}

    .footer-kelson .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 3rem;
    }

.footer-logo {
    margin-bottom: 2rem;
}

    .footer-logo img {
        height: 80px;
        width: auto;
    }

.footer-contact-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kelson-gold);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-info {
    display: flex;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    padding: 1.5rem 2rem;
    text-align: left;
}

    .footer-column:first-child {
        border-right: 1px solid #ddd;
    }

    .footer-column h4 {
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--kelson-dark);
        letter-spacing: 0.1em;
        margin: 0 0 1rem 0;
    }

    .footer-column p {
        font-family: var(--font-body);
        font-size: 0.9rem;
        font-weight: 300;
        color: #4a7c9b;
        margin: 0 0 0.25rem 0;
        line-height: 1.6;
    }

    .footer-column a {
        color: #4a7c9b;
        text-decoration: none;
    }

        .footer-column a:hover {
            text-decoration: underline;
        }

.footer-disclaimer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

    .footer-disclaimer p {
        font-family: var(--font-body);
        font-size: 0.8rem;
        font-weight: 300;
        color: #666;
        margin: 0;
    }

    .footer-disclaimer a {
        color: #4a7c9b;
        text-decoration: underline;
    }

        .footer-disclaimer a:hover {
            color: var(--kelson-dark);
        }

/* ========================================
   INNER PAGE STYLES
   ======================================== */
.page-content {
    background-color: var(--kelson-white);
    padding: 4rem 0;
    min-height: calc(100vh - 83px - 80px);
}

    .page-content .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 3rem;
    }

.content-section {
    margin-bottom: 3rem;
}

    .content-section:last-child {
        margin-bottom: 0;
    }

    .content-section h2 {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 2.5rem;
        font-weight: 400;
        font-style: italic;
        color: var(--kelson-gold);
        margin: 0 0 1.5rem 0;
    }

    .content-section p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--kelson-text);
        margin: 0 0 1.5rem 0;
    }

        .content-section p:last-child {
            margin-bottom: 0;
        }

/* ========================================
   OFFERINGS PAGE STYLES
   ======================================== */
.offerings-hero {
    width: 100%;
    min-height: 250px;
    background-color: var(--kelson-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offerings-hero-content {
    padding: 4rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

    .offerings-hero-content .hero-label {
        margin-left: 0;
        max-width: none;
        width: auto;
    }

.hero-title-small {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--kelson-white);
    line-height: 1.4;
    margin: 0;
}

.offerings-content {
    background-color: var(--kelson-white);
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.offerings-row {
    display: flex;
    gap: 4rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid #ddd;
}

    .offerings-row:last-child {
        border-bottom: none;
    }

.offerings-label {
    flex: 0 0 180px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kelson-dark);
    letter-spacing: 0.15em;
    line-height: 1.6;
}

.offerings-text {
    flex: 1;
}

    .offerings-text p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--kelson-text);
        margin: 0 0 1rem 0;
    }

        .offerings-text p:last-child {
            margin-bottom: 0;
        }

    .offerings-text .styled-list {
        margin: 0.5rem 0 0 0;
    }

        .offerings-text .styled-list li {
            font-size: 0.9rem;
            line-height: 1.6;
        }

/* Strategies Section (Dark) */
.strategies-section {
    background-color: #3d5a6f;
    padding: 4rem;
}

.strategies-container {
    max-width: 1000px;
    margin: 0 auto;
}

.strategies-row {
    display: flex;
    gap: 4rem;
}

.strategies-label {
    flex: 0 0 180px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kelson-white);
    letter-spacing: 0.15em;
    line-height: 1.6;
}

.strategies-text {
    flex: 1;
}

    .strategies-text p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--kelson-muted);
        margin: 0 0 1.5rem 0;
    }

    .strategies-text h4 {
        font-family: var(--font-body);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--kelson-white);
        margin: 1.5rem 0 0.5rem 0;
    }

.strategies-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

    .strategies-list li {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--kelson-muted);
        padding-left: 1.25rem;
        position: relative;
    }

        .strategies-list li::before {
            content: "\2022";
            position: absolute;
            left: 0;
            color: var(--kelson-muted);
        }

.strategies-closing {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--kelson-muted);
    margin: 3rem 0 0 0;
    padding-top: 2rem;
}

.page-intro {
    margin-bottom: 3rem;
}

    .page-intro h1 {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 2.5rem;
        font-weight: 400;
        font-style: italic;
        color: var(--kelson-gold);
        margin: 0 0 0.5rem 0;
    }

    .page-intro .intro-text {
        font-family: var(--font-body);
        font-size: 1.1rem;
        font-weight: 300;
        font-style: italic;
        color: var(--kelson-text);
        margin: 0;
    }

/* ========================================
   PAGE INTRO STYLES
   ======================================== */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

    .styled-list li {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 1rem;
        line-height: 1.8;
        color: var(--kelson-text);
        padding-left: 1.5rem;
        position: relative;
        margin-bottom: 0.25rem;
    }

        .styled-list li::before {
            content: "\25CB";
            position: absolute;
            left: 0;
            color: var(--kelson-gold);
        }

/* ========================================
   STYLED LIST
   ======================================== */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.strategy-category h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--kelson-dark);
    margin: 0 0 0.75rem 0;
}

.strategy-category .styled-list {
    margin: 0;
}

    .strategy-category .styled-list li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-layout {
    display: flex;
    flex-direction: row !important;
    gap: 4rem;
    align-items: flex-start;
    max-width: 900px;
    width: 100%;
}

.contact-info,
.contact-map {
    order: 0 !important;
}

.contact-info {
    width: 250px;
    flex-shrink: 0;
}

.contact-map {
    flex: 1;
    min-width: 0;
    height: 320px;
}

    .contact-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
}

.contact-card h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--kelson-gold);
    margin: 0 0 1rem 0;
}

.contact-card p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--kelson-text);
    margin: 0 0 0.25rem 0;
}

.contact-card a {
    color: var(--kelson-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .contact-card a:hover {
        color: var(--kelson-gold);
    }

/* ========================================
   TEAM PAGE STYLES
   ======================================== */
.team-member {
    margin-bottom: 3rem;
    overflow: hidden;
}

    .team-member:last-child {
        margin-bottom: 0;
    }

.team-member-photo {
    float: left;
    width: 250px;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

    .team-member-photo img {
        width: 100%;
        height: auto;
        display: block;
    }

.team-member-info {
    overflow: hidden;
}

    .team-member-info h2 {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 2.25rem;
        font-weight: 400;
        font-style: italic;
        color: var(--kelson-gold);
        margin: 0 0 0.25rem 0;
    }

    .team-member-info h3 {
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        color: var(--kelson-dark);
        margin: 0 0 1.25rem 0;
    }

.team-member > p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--kelson-text);
    margin: 0 0 1rem 0;
}

    .team-member > p:last-child {
        margin-bottom: 0;
    }

/* ========================================
   ERROR UI
   ======================================== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991px) {
    .navbar-kelson {
        background-color: #1a1f2e !important;
    }

        .navbar-kelson .navbar-collapse {
            padding: 1rem 0;
        }

        .navbar-kelson .nav-link {
            padding: 0.75rem 0 !important;
        }

            .navbar-kelson .nav-link::after {
                left: 0;
                right: 0;
            }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .navbar-kelson .brand-icon {
        height: 50px;
    }

    .footer-info {
        flex-direction: column;
    }

    .footer-column:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .footer-logo img {
        height: 60px;
    }

    .team-member {
        overflow: visible;
    }

    .team-member-photo {
        float: none;
        width: 200px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .team-member-info h2 {
        font-size: 1.75rem;
    }

    .strategies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-intro h1 {
        font-size: 2rem;
    }

    .offerings-hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title-small {
        font-size: 1.75rem;
    }

    .offerings-content {
        padding: 2rem 1.5rem;
    }

    .offerings-row {
        flex-direction: column;
        gap: 1rem;
    }

    .offerings-label {
        flex: none;
    }

    .strategies-section {
        padding: 2rem 1.5rem;
    }

    .strategies-row {
        flex-direction: column;
        gap: 1rem;
    }

    .strategies-label {
        flex: none;
    }

    /* Contact page mobile */
    .contact-container {
        padding: 0;
    }

    .contact-layout {
        flex-direction: column !important;
        gap: 2rem;
        align-items: stretch;
    }

    .contact-info {
        width: 100% !important;
        padding: 0 1rem;
        order: 2 !important;
    }

    .contact-map {
        width: 100% !important;
        height: 300px;
        order: 1 !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
