/* =========================================================
   NORTH BLACK LIMOUSINE
   FOOTER STYLES (refreshed)
   Same class names as before, so footer.php needs no changes.
========================================================= */

:root {
    --footer-bg: #121010;
    --footer-bg-2: #1B1716;
    --footer-brown: #3A302E;
    --footer-white: #FFFFFF;
    --footer-text: #E9E3DC;
    --footer-muted: #A39A92;
    --footer-faint: #7A726C;
    --footer-gold: #F6C777;
    --footer-gold-hover: #FFD58D;
    --footer-line: rgba(246, 199, 119, 0.14);
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-max-width: 1240px;
}


/* =========================================================
   RESET
========================================================= */

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}


/* =========================================================
   FOOTER SHELL
========================================================= */

.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(ellipse 60% 70% at 0% 0%, rgba(90, 73, 63, 0.45), transparent 70%),
        radial-gradient(ellipse 40% 50% at 100% 100%, rgba(246, 199, 119, 0.05), transparent 70%),
        linear-gradient(180deg, var(--footer-bg-2) 0%, var(--footer-bg) 100%);
    color: var(--footer-text);
    font-family: inherit;
}

/* Thin gold line across the top edge */

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(246, 199, 119, 0.7) 50%, transparent 100%);
}


/* =========================================================
   MAIN AREA
========================================================= */

.footer-main {
    width: 100%;
    padding: 84px 0 64px;
    background: transparent;
}

.footer-container {
    width: min(var(--footer-max-width), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    /* About | Quick Links | Policies | Contact */
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    column-gap: 64px;
    row-gap: 48px;
    align-items: start;
}

.footer-column {
    min-width: 0;
}


/* =========================================================
   HEADINGS
========================================================= */

.footer-heading {
    position: relative;
    margin: 0 0 28px;
    padding: 0 0 14px;
    color: var(--footer-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--footer-gold);
    border-radius: 2px;
}


/* =========================================================
   ABOUT COLUMN
========================================================= */

.footer-about {
    padding-right: 10px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-logo img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-description {
    max-width: 340px;
    margin: 0 0 24px;
    color: var(--footer-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   LINK LISTS
========================================================= */

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

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 12px;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--footer-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Small gold dash slides in on hover */

.footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--footer-gold);
    transition: width 0.25s ease;
}

.footer-links a:hover {
    color: var(--footer-gold);
    padding-left: 18px;
}

.footer-links a:hover::before {
    width: 10px;
}


/* =========================================================
   CONTACT COLUMN
========================================================= */

.footer-contact {
    padding-left: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    color: var(--footer-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    background: rgba(246, 199, 119, 0.06);
    color: var(--footer-gold);
    font-size: 15px;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    overflow-wrap: anywhere;
}

a.footer-contact-item:hover,
a.footer-contact-item:hover .footer-contact-text {
    color: var(--footer-gold);
}

a.footer-contact-item:hover .footer-contact-icon {
    background: var(--footer-gold);
    border-color: var(--footer-gold);
    color: #171414;
}


/* =========================================================
   BOTTOM BAR
========================================================= */

.footer-bottom {
    width: 100%;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
}

.footer-bottom-container {
    width: min(var(--footer-max-width), calc(100% - 80px));
    min-height: 72px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copyright {
    margin: 0;
    color: var(--footer-faint);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.footer-copyright a {
    color: var(--footer-muted);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: var(--footer-gold);
}


/* =========================================================
   PAYMENT METHODS
========================================================= */

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.payment-card {
    width: 44px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    background: #FFFFFF;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    color: #171414;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.payment-card:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.payment-card i {
    font-size: 18px;
    line-height: 1;
}

.payment-card.visa {
    color: #1A4B9B;
    font-size: 11px;
    font-style: italic;
    font-weight: 900;
}

.payment-card.mastercard i {
    color: #171414;
    font-size: 20px;
}

.payment-card.amex {
    background: #2874A6;
    color: #FFFFFF;
    font-size: 8px;
    font-weight: 900;
}

.payment-card.paypal i {
    color: #1266A8;
    font-size: 19px;
}

.payment-card:last-child i {
    color: #171414;
    font-size: 20px;
}


/* =========================================================
   KEYBOARD FOCUS
========================================================= */

.footer-links a:focus-visible,
.footer-logo:focus-visible,
.footer-contact-item:focus-visible,
.footer-copyright a:focus-visible {
    outline: 2px solid var(--footer-gold);
    outline-offset: 4px;
    border-radius: 3px;
}


/* =========================================================
   LAPTOP  (≤ 1200px)
========================================================= */

@media (max-width: 1200px) {

    .footer-container {
        width: calc(100% - 64px);
        column-gap: 40px;
    }

    .footer-bottom-container {
        width: calc(100% - 64px);
    }
}


/* =========================================================
   TABLET  (≤ 992px): 2 columns
========================================================= */

@media (max-width: 992px) {

    .footer-main {
        padding: 64px 0 52px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
        row-gap: 44px;
    }

    .footer-description {
        max-width: 380px;
    }
}


/* =========================================================
   MOBILE  (≤ 600px): 1 column, centered bottom bar
========================================================= */

@media (max-width: 600px) {

    .footer-main {
        padding: 54px 0 42px;
    }

    .footer-container,
    .footer-bottom-container {
        width: calc(100% - 40px);
    }

    .footer-container {
        grid-template-columns: 1fr;
        row-gap: 38px;
    }

    .footer-about {
        padding-right: 0;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-description {
        max-width: none;
        font-size: 14.5px;
    }

    .footer-heading {
        font-size: 19px;
        margin-bottom: 22px;
    }

    /* Two short link columns sit side by side on phones */
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
    }

    .footer-links li + li {
        margin-top: 0;
    }

    .footer-links a,
    .footer-contact-item {
        font-size: 14.5px;
    }

    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 22px 0;
        text-align: center;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-payments {
        justify-content: center;
    }
}

@media (max-width: 360px) {

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-contact-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-links a,
    .footer-links a::before,
    .footer-logo,
    .footer-contact-item,
    .footer-contact-icon,
    .payment-card {
        transition: none !important;
    }

    .payment-card:hover {
        transform: none;
    }
}

/* Site-by credit (inline in the copyright line) */
.footer-site-by { white-space: nowrap; }
.footer-site-by a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-site-by a:hover { color: var(--footer-gold); }

/* Proudly Canadian line */
.footer-canadian {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-gold);
}
.footer-canadian .canadian-leaf { display: block; flex-shrink: 0; }


/* =========================================================
   LATEST FROM THE JOURNAL (footer cluster, 12 newest posts)
========================================================= */

.footer-journal {
    width: 100%;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-journal-container {
    width: min(var(--footer-max-width), calc(100% - 80px));
    margin: 0 auto;
}

.footer-journal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-journal-title {
    margin: 0;
    color: var(--footer-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.footer-journal-all {
    flex-shrink: 0;
    color: var(--footer-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-journal-all:hover { color: var(--footer-gold-hover); }

.footer-journal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-journal-grid li {
    border-top: 1px solid var(--footer-border);
}

.footer-journal-grid a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 18px 0 20px;
    text-decoration: none;
}

.footer-journal-cat {
    color: var(--footer-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-journal-link {
    color: var(--footer-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.25s ease;
}

.footer-journal-date {
    margin-top: auto;
    color: var(--footer-faint);
    font-size: 12.5px;
    line-height: 1.2;
}

.footer-journal-grid a:hover .footer-journal-link,
.footer-journal-grid a:focus-visible .footer-journal-link {
    color: var(--footer-gold);
}

@media (max-width: 1024px) {
    .footer-journal { padding: 52px 0 44px; }
    .footer-journal-container { width: calc(100% - 64px); }
    .footer-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .footer-journal-container { width: calc(100% - 40px); }
    .footer-journal-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-journal-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   BACK TO TOP (bottom-left, so it never overlaps the contact button)
========================================================= */

.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999998;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #171414;
    color: #F6C777;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover { background: #2A2321; }

.back-to-top:focus-visible {
    outline: 3px solid #F6C777;
    outline-offset: 3px;
}

.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top-track,
.back-to-top-progress {
    fill: none;
    stroke-width: 2.5;
}

.back-to-top-track { stroke: rgba(246, 199, 119, 0.18); }

.back-to-top-progress {
    stroke: #F6C777;
    stroke-linecap: round;
}

.back-to-top-arrow {
    position: relative;
    display: block;
    transition: transform 0.25s ease;
}

.back-to-top:hover .back-to-top-arrow { transform: translateY(-2px); }

@media (max-width: 575px) {
    .back-to-top { left: 16px; bottom: 18px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top-arrow { transition: none; }
}
