/* Global styles for the replicated Gerke Law website */
html, body {
    font-family: 'Poppins', sans-serif !important;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #ffffff;
}

/* Set scroll margins for elements when navigated via anchors */
section, div[id] {
    scroll-margin-top: 130px;
}

/* Custom Typography & Spacing details mimicking the live site's Divi setup */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
    color: #080028; /* Live site's deep navy color */
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f4f6fc;
}
::-webkit-scrollbar-thumb {
    background: #4a6fa5;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #255379;
}

/* Steel Blue top contact bar style */
.top-contact-bar {
    background: linear-gradient(90deg, #255379 0%, #3d6d95 100%) !important;
}

/* Primary buttons with Coral/Red color matching Divi styling */
.coral-button {
    background-color: #df5152 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}
.coral-button:hover {
    background-color: #c93d3d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 81, 82, 0.3) !important;
}

/* Secondary outline button style */
.outline-white-button {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border-radius: 4px !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}
.outline-white-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Active navigation item */
.active-nav-link {
    color: #df5152 !important;
    font-weight: 700 !important;
}

/* Styled lists for Lawyer Bio and Practice Areas */
.bio-list, .practice-list {
    list-style: none !important;
    padding-left: 0 !important;
}
.bio-list li, .practice-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}
.bio-list li::before, .practice-list li::before {
    content: "•";
    color: #df5152;
    font-size: 20px;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* Section specific backgrounds */
.bg-light-blue {
    background-color: #f3f6fd !important;
}
.bg-dark-blue {
    background-color: #255379 !important;
}

/* Custom Footer elements */
.footer-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 16px;
    border-bottom: 2px solid #3d6d95;
    padding-bottom: 8px;
    display: inline-block;
}

/* Blazor error boundary styles */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3LjgyOSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA5Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An unhandled error has occurred."
}
h1:focus {
    outline: none;
}

/* Premium Navigation Button Hover Style */
.nav-menu-btn {
    color: #255379 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-menu-btn:hover {
    color: #df5152 !important;
    background-color: rgba(223, 81, 82, 0.05) !important;
}

/* Premium Social Icon Buttons */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon-btn:hover {
    background-color: #df5152;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.social-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Footer Social Icon Buttons */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #3d6d95;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-btn:hover {
    background-color: #df5152;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.footer-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Body Content Area */
.body-content-area {
    width: 100%;
    padding-top: 121px;
    min-height: 60vh;
}

/* Responsive adjustments for Top Contact Bar and Navigation Bar on mobile */
@media (max-width: 959.98px) {
    /* Make top contact bar flow naturally instead of being fixed, so it doesn't overlap the app bar */
    .top-contact-bar {
        position: static !important;
        padding: 10px 0 !important;
    }
    
    /* Make app bar sticky at top: 0 on mobile, so it stays fixed but starts below the contact bar */
    .mud-appbar {
        position: sticky !important;
        top: 0 !important;
    }
    
    /* Remove the top padding from the body area since headers are in the normal document flow on mobile */
    .body-content-area {
        padding-top: 0 !important;
    }
}

/* Mobile menu popover styling - ensures it sits above the sticky appbar and contact bar */
.mobile-menu-popover {
    z-index: 1500 !important;
}