/* =========================================================
   Marston Robing – desktop top bar, footer and back-to-top.
   Markup lives in Layout/MainLayout.razor.
   ========================================================= */

.mr-topbar,
.mr-footer,
.btn-back-to-top {
    --mr-navy: #002557;
    --mr-navy-900: #001a3f;
    --mr-gold: #b69d74;
    --mr-gold-300: #d6c4a3;
}

/* ---------------------------------------------------------
   Top bar (desktop only; the Theme hides it below 992px)
   --------------------------------------------------------- */
.mr-topbar.top-bar {
    height: 40px;
    background: var(--mr-navy-900);
}

.mr-topbar .mr-topbar__promo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, .85);
}

.mr-topbar .mr-topbar__promo i {
    font-size: 17px;
    color: var(--mr-gold);
}

.mr-topbar .mr-topbar__promo strong {
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-weight: normal;
    color: var(--mr-gold-300);
}

.mr-topbar .mr-topbar__links {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.mr-topbar .mr-topbar__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: color .2s, background-color .2s;
}

.mr-topbar .mr-topbar__links a:first-child {
    border-left: 0;
}

.mr-topbar .mr-topbar__links a:last-child {
    padding-right: 0;
}

.mr-topbar .mr-topbar__links i {
    font-size: 15px;
    color: var(--mr-gold);
}

.mr-topbar .mr-topbar__links a:hover {
    color: #fff;
}

.mr-topbar a:focus-visible {
    outline: 2px solid var(--mr-gold);
    outline-offset: -2px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.mr-footer {
    background: var(--mr-navy);
    border-top: 3px solid var(--mr-gold);
    color: rgba(255, 255, 255, .78);
    font-family: Poppins-Regular, Arial, sans-serif;
}

.mr-footer .mr-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 64px 0 48px;
}

.mr-footer .mr-footer__logo,
.mr-footer .mr-footer__logo span {
    font-family: PlayfairDisplay-Bold, Georgia, serif;
}

.mr-footer .mr-footer__logo {
    font-size: 26px;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
}

.mr-footer .mr-footer__logo span {
    color: var(--mr-gold);
}

.mr-footer .mr-footer__tagline {
    max-width: 340px;
    margin: 14px 0 22px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}

.mr-footer .mr-footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mr-footer .mr-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.55;
}

.mr-footer .mr-footer__contact i {
    width: 16px;
    margin-top: 3px;
    font-size: 16px;
    text-align: center;
    color: var(--mr-gold);
}

.mr-footer .mr-footer__heading {
    margin: 4px 0 18px;
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mr-gold-300);
}

.mr-footer .mr-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mr-footer .mr-footer__col li {
    padding: 5px 0;
}

.mr-footer a {
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .2s;
}

.mr-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mr-footer .mr-footer__logo:hover {
    color: #fff;
    text-decoration: none;
}

.mr-footer a:focus-visible {
    outline: 2px solid var(--mr-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.mr-footer .mr-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.mr-footer .mr-footer__pay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    order: 2;
}

.mr-footer .mr-footer__pay img {
    display: block;
    height: 24px;
    width: auto;
    border-radius: 4px;
}

.mr-footer .mr-footer__legal {
    order: 1;
    flex: 1 1 420px;
}

.mr-footer .mr-footer__legal p {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .6);
}

.mr-footer .mr-footer__legal p:first-child {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.mr-footer .mr-footer__credit,
.mr-footer .mr-footer__credit a {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

/* ---------------------------------------------------------
   Back-to-top button (shown by the Theme script)
   --------------------------------------------------------- */
.btn-back-to-top {
    width: 44px;
    height: 44px;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
    background: var(--mr-navy);
    border: 2px solid var(--mr-gold);
    box-shadow: 0 10px 24px -10px rgba(0, 26, 63, .6);
    opacity: .9;
    transition: opacity .2s, background-color .2s;
}

.btn-back-to-top:hover {
    opacity: 1;
    background: var(--mr-gold);
}

.btn-back-to-top .symbol-btn-back-to-top {
    font-size: 24px;
    color: #fff;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
    .mr-topbar .mr-topbar__links a { padding: 0 12px; }
}

@media (max-width: 991px) {
    .mr-footer .mr-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
        padding: 48px 0 36px;
    }

    .mr-footer .mr-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .mr-footer .mr-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mr-footer .mr-footer__col:last-child { grid-column: 1 / -1; }
    .mr-footer .mr-footer__pay { order: 0; }
    .mr-footer .mr-footer__legal { flex-basis: 100%; }
    .btn-back-to-top { right: 16px; bottom: 16px; }
}

/* The site stylesheet (css/main.css) puts Ubuntu on p and a; restate the brand font on footer text */
.mr-footer :is(p, a, span, li):not(.mr-footer__logo):not(.mr-footer__logo span) {
    font-family: Poppins-Regular, Arial, sans-serif;
}
