/* 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;
}

.hero-rule,
.section-rule {
    width: 100%;
    height: 3px;
    background: var(--da-gold, #d4af37);
}

.hero-rule {
    order: 2;
    margin: 0 0 20px;
}

.section-rule {
    margin: 0 0 20px;
    border: 0;
    flex: none;
    opacity: 1;
}

section.solutions-section > .container > h2,
section.what-section > .container > h2,
section.how-section > .container > h2 {
    margin-bottom: 14px;
}

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

header.content-section .container > .row > [class*="col"]:first-child > .text-center {
    display: flex;
    flex-direction: column;
}

header.content-section h1#MainHeading {
    order: 1;
    margin: 0 0 16px !important;
    font-size: clamp(2.6rem, 4.2vw, 3.8rem);
    line-height: 1.04;
}

header.content-section .lead {
    order: 3;
}

header.content-section .hero-caption-mobile {
    display: none;
    order: 4;
}

header.content-section .actions {
    order: 5;
}

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: 0;
    padding: 22px 30px;
}

section.solutions-section .solution-card-heading {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 2px solid var(--da-gold, #d4af37);
    font-family: Jost, Arial, Helvetica, sans-serif;
    font-size: 1.72rem;
    line-height: 1.18;
}

section.solutions-section .solution-card-heading .card-number {
    display: inline;
    flex: 0 0 auto;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: -0.035em;
}

section.solutions-section .solution-card-heading .card-number::after {
    display: none;
}

section.solutions-section .solution-card-heading h3 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

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

section.who-section h2#Projects,
section.blog-section h2#Projects-1 {
    margin: 0 0 14px;
    color: var(--da-ink, #0d1b2a);
    font-family: Jost, Arial, Helvetica, sans-serif;
    font-size: clamp(2.45rem, 4.1vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    text-transform: uppercase;
}

section.how-section .alchemy::before {
    display: none;
}

section.blog-section .text-link,
section.who-section .card-body > a:last-child,
section.who-section .text-link {
    gap: 0;
}

section.blog-section .text-link::after,
section.who-section .card-body > a:last-child::after,
section.who-section .text-link::after {
    content: "\00a0\2192";
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

body.blog-detail-page .da-section {
    padding-top: 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 .footer-social-link-mobile {
    display: none;
}

.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-top {
        align-items: center;
    }

    .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;
    }

    .site-footer .footer-cta-group .footer-social-link {
        display: none;
    }

    .site-footer .footer-social-link-mobile {
        display: inline-flex;
        align-self: center;
        margin-bottom: -8px;
    }

    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;
        width: max-content;
        min-width: 15rem;
        max-width: calc(100vw - 24px);
        text-align: right;
    }

    #DA_Nav .navbar-nav .dropdown-item {
        white-space: nowrap;
    }

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

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

    header.content-section .hero-visual svg {
        width: min(650px, 100%);
        height: 300px;
        margin-right: auto;
    }

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

    header.content-section .hero-caption strong,
    header.content-section .hero-caption span {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    header.content-section .container > .row {
        margin-inline: 0;
        gap: 0;
    }

    header.content-section .container,
    section.solutions-section .container,
    section.what-section .container,
    section.how-section .container,
    section.who-section .container,
    section.blog-section .container {
        padding-inline: 20px;
    }

    header.content-section .hero-visual {
        display: none;
    }

    header.content-section h1#MainHeading {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    header.content-section .hero-caption-mobile {
        display: flex;
        gap: 3px;
        margin: 0 0 22px;
        flex-direction: column;
        color: var(--da-ice, #dce7ee);
        font-size: 0.9rem;
        line-height: 1.45;
    }

    header.content-section .hero-caption-mobile strong {
        color: #ffffff;
        font-size: 0.76rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    header.content-section .actions {
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    header.content-section .actions .btn {
        width: 100% !important;
    }

    section.who-section .row,
    section.blog-section .row {
        margin-inline: 0;
    }
}

@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.solutions-section .solution-card-heading {
        gap: 10px;
        align-items: flex-start;
        font-size: 1.55rem;
    }

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

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