/* STONE TRUST FINANCE — site layout shell */

.el-site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    --el-topbar-height: 2.35rem;
    --el-nav-height: 4.25rem;
    --el-header-total: calc(var(--el-topbar-height) + var(--el-nav-height));
}

.el-site-main {
    flex: 1;
}

/* Top utility bar */
.el-topbar {
    background: #060d18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
}

.el-topbar-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.el-topbar-left,
.el-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .el-topbar-right {
        flex-wrap: nowrap;
    }
}

.el-topbar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.el-topbar a:hover {
    color: #7eb8e8;
}

.el-topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #7eb8e8;
    font-weight: 600;
}

/* Main navigation */
.el-nav-main {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 19, 36, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.el-nav-main.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}

.el-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
    gap: 1rem;
}

.el-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.el-nav-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #1e4a7a, #3b7ab8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(30, 74, 122, 0.35);
}

.el-nav-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s;
}

.el-nav-main.scrolled .el-nav-brand-text {
    color: #0f172a;
}

.el-nav-pills {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.el-nav-main.scrolled .el-nav-pills {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

@media (min-width: 1024px) {
    .el-nav-pills {
        display: flex;
    }
}

.el-nav-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s;
}

.el-nav-pill:hover,
.el-nav-pill.active {
    color: #fff;
    background: rgba(30, 74, 122, 0.55);
}

.el-nav-main.scrolled .el-nav-pill {
    color: #64748b;
}

.el-nav-main.scrolled .el-nav-pill:hover,
.el-nav-main.scrolled .el-nav-pill.active {
    color: #1e4a7a;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.el-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.el-nav-login {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7eb8e8;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.el-nav-main.scrolled .el-nav-login {
    color: #1e4a7a;
}

@media (min-width: 768px) {
    .el-nav-login {
        display: inline-flex;
    }
}

/* Section layout */
.el-section {
    padding: 5rem 0;
}

.el-section--alt {
    background: #f4f7fb;
}

.el-section--dark {
    background: linear-gradient(160deg, #0b1324 0%, #141f33 100%);
    color: #fff;
}

.el-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.el-section-head {
    max-width: 42rem;
    margin-bottom: 3rem;
}

.el-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Floating stats band below hero */
.el-stats-band {
    position: relative;
    z-index: 20;
    margin-top: -4rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.el-stats-band-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.el-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.18);
}

@media (min-width: 768px) {
    .el-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 2rem 2.5rem;
    }
}

.el-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.el-stat-item strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1e4a7a;
    line-height: 1.1;
}

.el-stat-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 0.35rem;
}

/* Bento services grid */
.el-bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .el-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .el-bento-card--featured {
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .el-bento {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .el-bento-card--featured {
        grid-row: span 2;
    }
}

.el-bento-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
    min-height: 100%;
}

.el-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -16px rgba(30, 74, 122, 0.15);
}

.el-bento-card--featured {
    background: linear-gradient(155deg, #0b1324 0%, #1e4a7a 100%);
    color: #fff;
    border-color: transparent;
}

.el-bento-card--featured p {
    color: rgba(255, 255, 255, 0.75);
}

.el-bento-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    background: #eff6ff;
    color: #1e4a7a;
}

.el-bento-card--featured .el-bento-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #7eb8e8;
}

/* Split panels */
.el-split {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .el-split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .el-split--60-40 {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Feature list (horizontal rows) */
.el-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.el-feature-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.el-feature-row:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px -12px rgba(30, 74, 122, 0.12);
}

.el-feature-row-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #1e4a7a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Process timeline horizontal */
.el-timeline {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .el-timeline {
        grid-template-columns: repeat(4, 1fr);
        position: relative;
    }

    .el-timeline::before {
        content: '';
        position: absolute;
        top: 1.75rem;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, #1e4a7a, #5b9fd4);
        opacity: 0.25;
        z-index: 0;
    }
}

.el-timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Contact layout */
.el-contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .el-contact-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

.el-contact-aside {
    background: linear-gradient(160deg, #0b1324, #1e4a7a);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
}

/* Footer v2 */
.el-footer-v2 {
    background: #060d18;
    color: rgba(255, 255, 255, 0.65);
    margin-top: auto;
}

.el-footer-cta {
    background: linear-gradient(135deg, #1e4a7a 0%, #0b1324 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.el-footer-cta-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .el-footer-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.el-footer-cta h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.el-footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.el-footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .el-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.el-footer-v2 h4 {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.el-footer-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.el-footer-v2 li {
    margin-bottom: 0.65rem;
}

.el-footer-v2 a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.el-footer-v2 a:hover {
    color: #7eb8e8;
}

.el-footer-bottom-v2 {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Featured bento link + scrolled mobile nav */
.el-bento-card--featured a {
    color: #7eb8e8;
}

.el-nav-main.scrolled .el-mobile-btn {
    color: #0f172a;
}

.el-nav-main.scrolled .el-mobile-btn:hover {
    background: #f1f5f9;
}

.el-nav-main.scrolled #mobile-menu {
    background: #fff;
    border-color: #e2e8f0;
}

.el-nav-main.scrolled #mobile-menu a {
    color: #475569;
}

.el-nav-main.scrolled #mobile-menu a:hover {
    background: #f8fafc;
    color: #1e4a7a;
}
