/* Shared header and footer refinements for the Razor site shell. */

#DA_Nav .nav-link[type="button"],
.site-footer .nav-link[type="button"] {
    border: 0;
    background: transparent;
}

#DA_Nav .navbar-toggler {
    border-color: rgba(13, 27, 42, 0.28);
    color: var(--da-ink);
}

#DA_Nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 63, 179, 0.22);
}

#DA_Nav .navbar-toggler-icon {
    position: relative;
    width: 1.55rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    background-image: none;
}

#DA_Nav .navbar-toggler-icon::before,
#DA_Nav .navbar-toggler-icon::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

#DA_Nav .navbar-toggler-icon::before {
    top: -7px;
}

#DA_Nav .navbar-toggler-icon::after {
    top: 7px;
}

.da-main .da-button-primary,
.da-main .da-button-primary:focus,
.da-main .da-button-primary:hover {
    color: #ffffff !important;
}

.da-main .da-button-outline,
.da-main .da-button-outline:focus,
.da-main .da-button-outline:hover {
    color: #ffffff !important;
}

section.rescue-section {
    padding-block: 32px;
}

section.rescue-section .btn-gold {
    width: 100%;
    max-width: none;
    min-height: 60px;
    padding-inline: 34px;
    font-size: 1.15rem;
}

header.content-section .container > .row {
    padding-block: 24px;
}

header.content-section .hero-visual {
    padding-bottom: 48px;
}

header.content-section .hero-visual svg {
    height: calc(100% - 48px);
}

header.content-section .hero-caption {
    right: auto;
    left: 50%;
    bottom: 0;
    display: flex;
    width: min(440px, calc(100% - 36px));
    padding: 9px 14px;
    gap: 2px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.8rem;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
}

header.content-section .hero-caption strong,
header.content-section .hero-caption span {
    display: block;
    margin: 0;
    text-align: center;
}

header.content-section .hero-caption strong::after {
    content: "";
}

section.solutions-section .solution-card {
    min-height: 210px;
    padding: 22px 30px;
}

section.solutions-section .solution-card h3 {
    margin: 24px 0 10px;
}

section.what-section .metric {
    min-height: 88px;
    padding: 16px 24px;
}

section.blog-section .home-blog-swiper .swiper-slide {
    height: 520px !important;
}

section.blog-section .home-blog-swiper .post-card {
    height: 100%;
}

section.blog-section .swiper-button-next .btn,
section.blog-section .swiper-button-prev .btn {
    border: 0;
    background: var(--da-ink, #0d1b2a);
    color: #ffffff;
}

.swiper-nav-standalone button.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

body.case-study-detail-page section.rescue-section .container,
body.blog-detail-page section.rescue-section .container {
    width: min(1180px, calc(100% - 44px));
    max-width: none;
    padding-inline: 0;
    justify-content: flex-start;
}

.site-footer {
    padding-block: 26px !important;
    border-top: 1px solid #dce7ee;
    background-color: rgba(247, 243, 233, 0.95) !important;
    color: var(--da-ink);
}

.site-footer > .container {
    display: grid;
    gap: 22px;
}

.site-footer-top,
.site-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.site-footer-navigation {
    display: flex;
    justify-content: center;
}

.site-footer .footer-menu {
    justify-content: center;
    gap: 12px 28px;
}

.site-footer .footer-menu .nav-link {
    padding: 0;
    color: var(--da-ink);
}

.site-footer .footer-menu .nav-link.active,
.site-footer .footer-menu .nav-link:focus-visible,
.site-footer .footer-menu .nav-link:hover,
.site-footer .footer-social-link:focus-visible,
.site-footer .footer-social-link:hover,
.site-footer .footer-contact a:focus-visible,
.site-footer .footer-contact a:hover {
    color: var(--da-action);
}

.site-footer .dropdown-menu {
    border-color: rgba(13, 27, 42, 0.14);
    background: var(--da-white);
    box-shadow: 0 14px 36px rgba(13, 27, 42, 0.12);
}

.site-footer .dropdown-item {
    color: var(--da-ink);
}

.site-footer .dropdown-item.active,
.site-footer .dropdown-item:active,
.site-footer .dropdown-item:focus,
.site-footer .dropdown-item:hover {
    background: var(--da-ice);
    color: var(--da-action);
}

.site-footer .footer-cta-group {
    justify-content: center;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    color: var(--da-ink);
    font-size: 1.35rem;
    transition: color 0.2s ease;
}

.site-footer-divider {
    border-top: 1px solid rgba(13, 27, 42, 0.14);
}

.site-footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
}

.site-footer .footer-contact a {
    margin: 0;
    color: var(--da-ink);
}

.site-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    color: var(--da-ink);
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer-top,
    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .site-footer-navigation,
    .site-footer .footer-menu {
        justify-content: flex-end;
    }

    .site-footer .footer-cta-group {
        justify-content: flex-start;
    }

    .site-footer .footer-contact {
        align-items: flex-start;
    }

    .site-footer-meta {
        align-items: flex-end;
        text-align: right;
    }
}

@media (max-width: 575.98px) {
    #DA_Nav .navbar-brand {
        max-width: calc(100% - 64px);
        margin-right: 0;
    }

    #DA_Nav .navbar-brand img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    #DA_Nav .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-footer .footer-menu {
        flex-direction: column;
        align-items: center;
    }

    section.rescue-section {
        padding-block: 28px;
    }

    section.rescue-section .btn-gold {
        min-height: 56px;
        padding-inline: 24px;
        font-size: 1.05rem;
    }

    body.case-study-detail-page section.rescue-section .container,
    body.blog-detail-page section.rescue-section .container {
        width: calc(100% - 28px);
    }
}

@media (max-width: 991.98px) {
    #DA_Nav .navbar-collapse {
        align-items: flex-end;
        text-align: right;
    }

    #DA_Nav .navbar-nav {
        width: auto;
        margin-right: 0;
        margin-left: auto !important;
        align-items: flex-end;
    }

    #DA_Nav .navbar-nav .dropdown-menu {
        right: 0;
        left: auto;
        max-width: calc(100vw - 24px);
        text-align: right;
    }

    #DA_Nav .navbar-nav .dropdown-item {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #DA_Nav .header-cta {
        align-self: flex-end;
    }
}

@media (max-width: 1080px) {
    header.content-section .hero-visual {
        padding-bottom: 0;
    }

    header.content-section .hero-visual svg {
        height: 300px;
    }

    header.content-section .hero-caption {
        right: auto;
        left: auto;
        width: min(440px, 100%);
        margin-top: 8px;
        margin-inline: auto;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    header.content-section .container > .row {
        padding-block: 22px;
    }

    header.content-section .hero-caption {
        width: calc(100% - 20px);
    }

    section.solutions-section .solution-card {
        min-height: 0;
        padding: 20px 24px;
    }

    section.what-section .metric {
        min-height: 0;
        padding: 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-social-link {
        transition: none;
    }
}
