﻿/*
    Public site refresh (FGS-15): brick red brand color, solid black nav bar, cleaner cards,
    buttons, type and focus states. Loaded by Views/Shared/_Layout.cshtml after the layoutMain
    bundle, and linked directly (not bundled) because the bundle minifier can't handle CSS
    custom properties. Bump the ?v= in _Layout.cshtml when this file changes.
*/
:root {
    --fg-red: #9b1c1f;          /* white text on it: 8.1:1 */
    --fg-red-dark: #7a1518;     /* hover */
    --fg-red-darker: #5e1013;   /* active / pressed */
    --fg-red-tint: #fbeaea;
    --fg-red-on-dark: #f4a3a5;  /* red text or rings on black: 9.6:1 */
    --fg-ink: #1f2328;
    --fg-ink-soft: #4b5563;
    --fg-page: #f3f4f6;
    --fg-line: #e5e7eb;
    --fg-radius: 12px;
    --fg-radius-sm: 8px;
    --fg-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 6px 16px rgba(17, 24, 39, 0.06);
    --fg-shadow-hover: 0 2px 4px rgba(17, 24, 39, 0.08), 0 12px 28px rgba(17, 24, 39, 0.10);
    --fg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base and type ---------- */

body {
    background-color: var(--fg-page);
    color: var(--fg-ink);
    font-family: var(--fg-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* The old stylesheets set Calibri (and a few display fonts) class by class; one modern stack instead. */
body *:not(.glyphicon):not(.caret) {
    font-family: var(--fg-font);
}

.fence-body a:not(.btn):hover {
    color: var(--fg-red);
}

.fg-point-title,
.feat-title {
    font-size: clamp(26px, 4.2vw, 38px) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--fg-ink);
}

.feat-title.wb {
    background-color: transparent;
    padding: 8px 0 4px;
}

.mid-three a h2 {
    font-size: clamp(20px, 3.4vw, 28px) !important;
}

/* ---------- Focus rings (personal-3.css removed outlines) ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--fg-red) !important;
    outline-offset: 2px;
    box-shadow: none;
}

.fence-nav a:focus-visible,
.fence-nav button:focus-visible,
.under-bar a:focus-visible,
#menu a:focus-visible,
.fence-foot a:focus-visible,
.fence-foot input:focus-visible,
.fence-foot textarea:focus-visible {
    outline-color: var(--fg-red-on-dark) !important;
}

/* ---------- Nav bar: solid black ---------- */

.navbar-inverse.fence-nav,
.fence-nav {
    background-color: #000 !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fence-nav .logo {
    display: block;
    width: 500px;
    height: 70px;
    margin: 0 10px 0 0;
    overflow: hidden;
    line-height: 0;
}

    .fence-nav .logo img {
        display: block;
        width: 100%;
        height: auto;
        margin-top: -3px;
    }

.fence-drop-btn {
    margin-top: 12px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--fg-radius-sm);
    background-color: transparent !important;
    transition: background-color .15s, border-color .15s;
}

    .fence-drop-btn:hover,
    .fence-drop-btn:focus {
        background-color: #1a1a1a !important;
        border-color: #fff !important;
    }

    .fence-drop-btn:active {
        background-color: var(--fg-red) !important;
        border-color: var(--fg-red) !important;
    }

    .fence-drop-btn .fg-glyph {
        width: 22px;
        height: 22px;
    }

.menu-label {
    font-size: 20px;
    font-weight: 600;
    margin-top: 22px;
    width: auto;
    padding: 0 12px;
}

.fence-toplink {
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--fg-radius-sm);
}

    .fence-toplink:hover,
    .fence-toplink:focus {
        background-color: #1f1f1f !important;
        color: #fff !important;
    }

.fence-nav .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--fg-red);
    border-radius: 0 0 var(--fg-radius-sm) var(--fg-radius-sm);
    box-shadow: var(--fg-shadow-hover);
    padding: 6px 0;
}

    .fence-nav .dropdown-menu > li > a {
        padding: 7px 18px;
    }

        .fence-nav .dropdown-menu > li > a:hover,
        .fence-nav .dropdown-menu > li > a:focus {
            background-color: var(--fg-red);
            color: #fff;
        }

.dropdown-header {
    color: var(--fg-red-dark) !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Bar under the nav (Register / Login, or cart and quotes) */
.under-bar {
    /* Frosted deep-red glass (#6e1014 at 88%): the page shows through with a Gaussian blur. Over a
       white page it reads as about #7f2d30; white text on it stays at 9:1 or better (AA needs 4.5). */
    background-color: rgba(110, 16, 20, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    /* 38px tall with the links centered (the icons used to sit on the bar's bottom edge).
       Things placed under the bar use 108px: the slide-out menu, the cart panel, #foot-form. */
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

    .under-bar .call-bar {
        width: 100%;
        padding: 0;
    }

.sub-nav-bar {
    float: none;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

    .sub-nav-bar li,
    .sub-nav-bar li:hover {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0 8px;
        opacity: 1;
    }

        .sub-nav-bar li a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 38px; /* tap target */
            line-height: 1.2;
        }

        .sub-nav-bar li #logoutForm {
            margin: 0;
        }

    .sub-nav-bar .fg-glyph {
        width: 22px;
        height: 22px;
        flex: none;
    }

#cartmod-btn .badge {
    margin-top: 0;
}

#cartmod-menu {
    margin-top: 108px;
}

/* Browsers without backdrop blur get a nearly solid bar instead */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .under-bar {
        background-color: rgba(110, 16, 20, 0.97);
    }
}

.sub-nav-bar li {
    font-size: 15px;
    font-weight: 600;
}

    .sub-nav-bar li a:hover {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

#cartmod-btn .badge {
    color: var(--fg-red);
}

/* Logo by screen size: the full (seasonal) logo scales down, then switches to the compact
   mascot (a <picture> source in Views/Home/Nav.cshtml) on the narrowest phones. */
@media (max-width: 710px) {
    .fence-nav .logo {
        width: min(300px, calc(100vw - 92px));
        height: 70px;
        margin-left: 0;
    }

        .fence-nav .logo img {
            margin-top: 2px;
        }

    .fence-nav {
        padding-left: 6px !important;
        padding-right: 12px !important;
    }

    .menu-label {
        display: none !important;
    }
}

@media (max-width: 359px) {
    .fence-nav .logo {
        width: 96px;
    }

        .fence-nav .logo img {
            width: auto;
            height: 64px;
            margin-top: 3px;
        }
}

/* ---------- Slide-out phone menu ---------- */

/* Views/Home/MenuSide.cshtml. Slideout.js slides the page left by the menu's width (280px, set in _Layout). */
#menu.fg-side-menu {
    width: 280px;
    margin-top: 0;
    top: 108px; /* below the nav bar (70px) and the red bar (38px) */
    display: none;
    flex-direction: column;
    background-color: #0d0d0d;
    color: #fff;
    border-left: 1px solid #262626;
    overscroll-behavior: contain;
}

.slideout-open #menu.fg-side-menu {
    display: flex;
}

#menu .fg-sm-list,
#menu .fg-sm-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu .fg-sm-list {
    flex: 1 0 auto;
    padding: 8px 0 16px;
}

.fg-sm-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

    .fg-sm-link:hover,
    .fg-sm-link:focus {
        background-color: #1c1c1c;
        border-left-color: var(--fg-red);
    }

    .fg-sm-link .glyphicon-home {
        font-size: 15px;
        top: 0;
    }

.fg-sm-chev {
    margin-left: auto;
    font-size: 12px;
    color: #a3a3a3;
    transition: transform .2s;
}

.fg-sm-toggle:not(.collapsed) {
    background-color: #161616;
    border-left-color: var(--fg-red);
}

    .fg-sm-toggle:not(.collapsed) .fg-sm-chev {
        transform: rotate(180deg);
        color: #fff;
    }

#menu .fg-sm-sub {
    background-color: #161616;
    padding: 2px 0 10px;
}

.fg-sm-subhead {
    padding: 14px 20px 4px 32px;
    color: var(--fg-red-on-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fg-sm-sublink {
    display: block;
    min-height: 42px;
    padding: 10px 20px 10px 32px;
    border-left: 3px solid transparent;
    color: #e5e5e5 !important;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none !important;
}

    .fg-sm-sublink:hover,
    .fg-sm-sublink:focus {
        background-color: #232323;
        color: #fff !important;
    }

.fg-sm-all {
    color: #fff !important;
    font-weight: 600;
}

    .fg-sm-all::after {
        content: " \203A";
    }

/* The page you're on */
#menu a[aria-current="page"] {
    border-left-color: var(--fg-red-on-dark);
    background-color: #1f1f1f;
    color: #fff !important;
}

/* Call and estimate buttons stay in view at the bottom of the menu */
.fg-sm-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 18px;
    background-color: #0d0d0d;
    border-top: 1px solid #262626;
}

    .fg-sm-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none !important;
        transition: background-color .15s, border-color .15s;
    }

.fg-sm-call {
    background-color: var(--fg-red);
    color: #fff !important;
}

    .fg-sm-call:hover,
    .fg-sm-call:focus {
        background-color: var(--fg-red-dark);
    }

    .fg-sm-call:active {
        background-color: var(--fg-red-darker);
    }

.fg-sm-quote {
    border: 1px solid #525252;
    color: #fff !important;
}

    .fg-sm-quote:hover,
    .fg-sm-quote:focus {
        border-color: #fff;
        background-color: #1c1c1c;
    }

/* While the menu is open, dim the page beside it (tapping it closes the menu) and turn the menu button into a close button */
/* Opening animation (timing matches slideout.js in _Layout: 380ms, same curve).
   fg-layout.js adds .fg-menu-ready a frame before the slide starts (menu laid out, page layer
   prepared) and .fg-menu-open for the slide itself, so these fade instead of popping. */
#panel {
    background-color: var(--fg-page); /* opaque, so the menu is uncovered by the slide rather than showing through gaps */
}

    #panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 50;
        transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 380ms;
    }

.fg-menu-open #panel::after {
    opacity: 1;
    visibility: visible;
    transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.fg-menu-ready #menu.fg-side-menu {
    display: flex;
}

#menu.fg-side-menu > * {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 260ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fg-menu-open #menu.fg-side-menu > * {
    opacity: 1;
    transform: none;
}

.fg-menu-open #menu.fg-side-menu > .fg-sm-actions {
    transition-delay: 60ms;
}

.fence-drop-btn.is-open .fg-glyph {
    display: none;
}

.fence-drop-btn.is-open::after {
    content: "\00d7";
    display: block;
    color: #fff;
    font-size: 30px;
    line-height: 42px;
    animation: fg-pop-in 220ms ease-out;
}

@keyframes fg-pop-in {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(.6);
    }
}

/* ---------- Cards ---------- */

.fg-point-well,
.mid-three.wb,
.prod-page,
#fence-promotionbox,
.fence-body .card,
.right-one,
.left-three,
.fg-card {
    border: 0;
    border-radius: var(--fg-radius) !important;
    box-shadow: var(--fg-shadow);
    overflow: hidden;
}

.fg-point-well {
    margin: 0 0 20px;
    padding: 24px 12px 12px;
}

.mid-three {
    margin: 0 0 20px;
    padding: 28px clamp(16px, 4vw, 40px) 32px;
}

.fg-point-subtitle {
    font-size: 16px;
    color: var(--fg-ink);
}

.fg-point-item {
    padding-bottom: 16px;
}

    .fg-point-item p {
        color: var(--fg-ink-soft);
        font-size: 14px;
        line-height: 1.5;
    }

.fg-prod .fg-point-item {
    border-radius: var(--fg-radius-sm);
    transition: background-color .15s, transform .15s;
}

    .fg-prod .fg-point-item:hover {
        background-color: var(--fg-red-tint);
    }

    .fg-point-item a:hover h3,
    .fg-point-item a:focus h3 {
        color: var(--fg-red-dark);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.fence-body .card {
    transition: box-shadow .15s, transform .15s;
}

    .fence-body .card:hover {
        box-shadow: var(--fg-shadow-hover);
        transform: translateY(-2px);
    }

    .fence-body .card .card-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .fence-body .card .card-text {
        line-height: 1.5;
    }

    .fence-body .card .card-footer .btn-link {
        color: var(--fg-red);
        font-weight: 600;
    }

.right-one h3 {
    border-radius: 0;
}

/* ---------- Home page news box (Views/Home/_NewsBox.cshtml, FGS-18) ---------- */

.fg-news {
    background-color: #fff;
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto 20px;
}

.fg-news-head {
    background-color: #000;
    border-bottom: 3px solid var(--fg-red);
    padding: 14px 16px 12px;
}

    .fg-news-head h2 {
        margin: 0;
        color: #fff;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.3;
    }

    .fg-news-head p {
        margin: 2px 0 0;
        color: #bdbdbd;
        font-size: 13px;
    }

.fg-news-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

    .fg-news-list li {
        padding: 10px 16px;
        border-bottom: 1px solid var(--fg-line);
    }

        .fg-news-list li:last-child {
            border-bottom: 0;
        }

        .fg-news-list li > a {
            display: block;
            color: var(--fg-ink);
            font-size: 15px;
            font-weight: 600;
            line-height: 1.35;
        }

            .fg-news-list li > a:hover,
            .fg-news-list li > a:focus {
                color: var(--fg-red);
                text-decoration: underline;
                text-underline-offset: 3px;
            }

.fg-news-empty {
    margin: 0;
    padding: 14px 16px;
    color: var(--fg-ink-soft);
    font-size: 14px;
}

.fg-news-meta {
    display: block;
    margin-top: 3px;
    color: var(--fg-ink-soft);
    font-size: 12px;
}

.fg-news-cta {
    background-color: var(--fg-red-tint);
    border-top: 1px solid #f1d2d3;
    padding: 14px 16px 16px;
}

    .fg-news-cta p {
        margin: 0 0 8px;
        color: var(--fg-red-dark);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

.fg-news-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

    .fg-news-links a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 4px 12px;
        border: 1px solid #e3b5b7;
        border-radius: 999px;
        background-color: #fff;
        color: var(--fg-red-dark);
        font-size: 14px;
        font-weight: 600;
    }

        .fg-news-links a:hover,
        .fg-news-links a:focus {
            border-color: var(--fg-red);
            color: var(--fg-red-dark) !important;
        }

.fg-news-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    background-color: var(--fg-red);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .15s;
}

    .fg-news-quote:hover,
    .fg-news-quote:focus {
        background-color: var(--fg-red-dark);
        color: #fff !important;
        text-decoration: none;
    }

/* ---------- Buttons ---------- */

.btn {
    border-radius: var(--fg-radius-sm);
    font-weight: 600;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn-primary,
.request-btn,
.searchbar-s {
    background-color: var(--fg-red) !important;
    border-color: var(--fg-red) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .request-btn:hover,
    .request-btn:focus,
    .searchbar-s:hover,
    .searchbar-s:focus {
        background-color: var(--fg-red-dark) !important;
        border-color: var(--fg-red-dark) !important;
        color: #fff !important;
    }

    .btn-primary:active,
    .request-btn:active,
    .searchbar-s:active {
        background-color: var(--fg-red-darker) !important;
        border-color: var(--fg-red-darker) !important;
    }

.btn-link {
    color: var(--fg-red);
}

    .btn-link:hover,
    .btn-link:focus {
        color: var(--fg-red-dark);
    }

.request-btn {
    min-height: 40px;
    border-radius: var(--fg-radius-sm);
    font-weight: 600;
}

/* Home page search */
.searchbar {
    height: 48px;
    width: calc(100% - 60px);
    max-width: 520px;
    border: 1px solid #c7ccd3;
    border-radius: var(--fg-radius-sm);
    padding: 8px 14px;
    font-size: 16px;
    vertical-align: middle;
}

    .searchbar:focus {
        border: 1px solid var(--fg-red);
        box-shadow: 0 0 0 3px rgba(155, 28, 31, 0.15);
    }

.searchbar-s {
    height: 48px;
    width: 52px;
    border-radius: var(--fg-radius-sm);
    vertical-align: middle;
}

/* "Explore our products and services" buttons on the home page (solid, like the other buttons).
   Targets the wrap's child so it holds if the heading tag changes. */
.cat-list-btn-wrap > * {
    background-color: #1f2328 !important;
    color: #fff !important;
    border-radius: var(--fg-radius-sm);
    font-size: 18px !important;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px !important;
    margin: 6px 0 !important;
    transition: background-color .15s;
}

a:hover > .cat-list-btn-wrap > *,
a:focus-visible > .cat-list-btn-wrap > * {
    background-color: var(--fg-red) !important;
}

a:active > .cat-list-btn-wrap > * {
    background-color: var(--fg-red-darker) !important;
}

/* Office hours and contacts card (article and item sidebars): padding keeps its Bootstrap row inside the card. */
.left-two.wb {
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
    padding: 16px 15px;
    margin-bottom: 20px;
}

    .left-two.wb p {
        overflow-wrap: anywhere;
    }

/* ---------- Quote forms (home page sidebar and footer) ---------- */

#quote-form.fte input[type="submit"],
#foot-form.fte input[type="submit"] {
    background: var(--fg-red);
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 17px;
    transition: background-color .15s;
}

    #quote-form.fte input[type="submit"]:hover,
    #foot-form.fte input[type="submit"]:hover,
    #quote-form.fte input[type="submit"]:focus,
    #foot-form.fte input[type="submit"]:focus {
        background: var(--fg-red-dark);
    }

    #quote-form.fte input[type="submit"]:active,
    #foot-form.fte input[type="submit"]:active {
        background: var(--fg-red-darker);
    }

#quote-form.fte input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
#quote-form.fte textarea,
#foot-form.fte input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
#foot-form.fte textarea {
    border-radius: var(--fg-radius-sm);
    border: 1px solid #c7ccd3;
    padding: 12px 14px;
    margin: 6px 0 14px;
    color: var(--fg-ink);
    background-color: #fff;
}

    #quote-form.fte input:focus,
    #quote-form.fte textarea:focus,
    #foot-form.fte input:focus,
    #foot-form.fte textarea:focus {
        border-color: var(--fg-red);
        box-shadow: 0 0 0 3px rgba(155, 28, 31, 0.18);
    }

#quote-form.fte .fte-ckrad input[type="radio"]:checked + label::before,
#foot-form.fte .fte-ckrad input[type="radio"]:checked + label::before {
    background: var(--fg-red);
}

/* Radio buttons are visually hidden, so show focus on their labels instead */
#quote-form.fte .fte-ckrad input[type="radio"]:focus-visible + label::before,
#foot-form.fte .fte-ckrad input[type="radio"]:focus-visible + label::before {
    outline: 3px solid var(--fg-red-on-dark);
    outline-offset: 2px;
}

#foot-form.fte {
    scroll-margin-top: 124px; /* "Request a free estimate" links land below the fixed nav */
    background-color: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px !important;
    padding: 28px clamp(16px, 4vw, 32px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

    #foot-form.fte > p:first-child {
        font-size: clamp(26px, 4vw, 32px) !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em;
        margin: 0 0 4px;
    }

    #foot-form.fte hr {
        border-color: rgba(255, 255, 255, 0.12);
    }

    #foot-form.fte .btn-link {
        color: var(--fg-red-on-dark);
        padding: 0 2px;
        vertical-align: baseline;
        white-space: normal;
        text-align: left;
    }

/* SMS consent stays optional; this only makes the box easier to see and tap. */
#foot-chkBox-textConsent,
#quote-chkBox-textConsent {
    width: 18px !important;
    height: 18px;
    margin: 0 6px 0 0 !important;
    vertical-align: -3px;
    accent-color: var(--fg-red);
    cursor: pointer;
}

#foot-chkBox-textConsent-div {
    font-size: 14px;
    line-height: 1.45;
    color: #d6d6d6;
}

/* ---------- Footer ---------- */

.fence-foot {
    background-color: #0d0d0d;
    border-top: 4px solid var(--fg-red);
    padding: 24px clamp(16px, 3vw, 32px) 32px;
    margin-top: 40px;
    color: #e5e5e5;
}

    .fence-foot p {
        color: #cfcfcf;
        font-size: 14px;
    }

    .fence-foot .btn-link {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.fence-social img {
    width: 48px;
    border: 2px solid transparent;
    transition: border-color .15s, transform .15s;
}

    .fence-social img:hover,
    .fence-social:focus-visible img {
        border-color: var(--fg-red-on-dark);
        transform: translateY(-2px);
    }

/* ---------- Phones ---------- */

@media (max-width: 767px) {
    .fence-body {
        padding: 56px 15px 0; /* matches Bootstrap's -15px row margins, so nothing pokes past the screen */
    }

    .sub-nav-bar li,
    .sub-nav-bar li:hover {
        padding: 0 6px;
    }

    .under-bar {
        padding: 0 15px; /* lines up with the page content's edge */
    }

    .fg-point-well {
        margin-left: 0;
        margin-right: 0;
    }

    .mid-three {
        padding: 22px 16px 26px;
    }

    .fence-foot {
        padding: 16px 12px 28px;
    }

        .fence-foot .row {
            margin: 0;
        }

        .fence-foot .row > [class*="col-"] {
            padding-left: 0;
            padding-right: 0;
        }

    #foot-form.fte {
        margin: 1em 0 !important;
    }
}

/* Google's reCAPTCHA box is a fixed 304px wide; shrink it so it fits the forms on the narrowest phones. */
@media (max-width: 359px) {
    .fte .g-recaptcha {
        transform: scale(0.86);
        transform-origin: 0 0;
        width: 262px;
        height: 68px;
    }
}

/* "Reduce motion" (e.g. Windows animation effects off): no hover lifts or extra movement. The menu
   still slides, but quickly (200ms, set in _Layout), and its contents only fade. */
@media (prefers-reduced-motion: reduce) {
    *:not(#panel):not(.fg-side-menu > *) {
        transition: none !important;
        animation: none !important;
    }

    #menu.fg-side-menu > * {
        transform: none !important;
        transition: opacity 160ms ease !important;
    }

    .fence-body .card:hover,
    .fence-social img:hover {
        transform: none;
    }
}
