/* ==========================================================================
   FOOTER — modern "contact hub": brand + social buttons, and a glass card per
   branch (call / WhatsApp buttons, address, hours, map). Loaded after style.css
   and only overrides the footer. Roll back by removing this file's <link> and
   restoring the old footer markup from the backup folder.
   ========================================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    padding: 68px 0 26px;
    color: #b7c6d9;
    border-radius: 40px 40px 0 0;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 90, 54, 0.2), transparent 60%),
        radial-gradient(70% 90% at 0% 100%, rgba(0, 170, 190, 0.22), transparent 65%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 14px, rgba(255, 255, 255, 0) 14px 34px),
        linear-gradient(160deg, #06182f 0%, #0a1f3b 55%, #0c2d4a 100%);
}
/* a thin moving colour line along the top edge */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffa41c, #ff5a36, #1ec6d8, #ffa41c);
    background-size: 200% 100%;
    animation: footer-line 9s linear infinite;
}
@keyframes footer-line { to { background-position: -200% 0; } }
.site-footer > .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 44px;
    margin-bottom: 40px;
    align-items: start;
}

/* ---------- brand + social ---------- */
.footer-brand__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.site-footer .footer-col__title { margin: 0; font-size: 24px; font-weight: 900; color: #fff; }
.site-footer .footer-brand__desc { margin: 0 0 20px; font-size: 14px; line-height: 1.8; color: #a9bdd1; }
.site-footer .footer-brand__follow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-citrus);
}
.footer-social { display: flex; gap: 10px; margin-bottom: 14px; }
.site-footer .footer-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.site-footer .footer-social__btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.site-footer .footer-social__btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.site-footer .footer-social__btn--ig:hover { background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf); border-color: transparent; }
.site-footer .footer-social__btn--mail:hover { background: var(--color-accent); border-color: var(--color-accent); }
.site-footer .footer-social__btn:focus-visible, .fb-btn:focus-visible, .footer-branch__maps:focus-visible { outline: 3px solid var(--color-citrus); outline-offset: 3px; }
.site-footer .footer-mail { display: inline-block; margin: 0; font-size: 14px; font-weight: 700; color: #d6e4f2; direction: ltr; unicode-bidi: isolate; }
.site-footer .footer-mail:hover { color: #fff; text-decoration: underline; }

/* ---------- icons ---------- */
.fi { flex: none; width: 17px; height: 17px; }
.fi--lg { width: 22px; height: 22px; }

/* ---------- branch cards ---------- */
.site-footer .footer-branches {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.site-footer .footer-branch {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.site-footer .footer-branch--current {
    border-color: rgba(255, 164, 28, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 164, 28, 0.25), 0 12px 34px rgba(255, 164, 28, 0.16);
}
.footer-branch__head { display: flex; align-items: center; gap: 10px; }
.footer-branch__pin {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-citrus), var(--color-accent));
    box-shadow: 0 4px 12px rgba(255, 90, 54, 0.4);
}
.footer-branch__pin .fi { width: 20px; height: 20px; }
.site-footer .footer-branch__name { margin: 0; font-size: 19px; font-weight: 900; color: #fff; }
.site-footer .footer-branch--current .footer-branch__name { color: #fff; }
.footer-branch__tag {
    margin-inline-start: auto;
    padding: 3px 10px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    color: #0c2340;
    background: linear-gradient(135deg, #ffd166, var(--color-citrus));
    border-radius: 999px;
}

/* call + WhatsApp buttons */
.footer-branch__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site-footer .fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.site-footer .fb-btn span { direction: ltr; unicode-bidi: isolate; }
.site-footer .fb-btn--call { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); }
.site-footer .fb-btn--wa { background: linear-gradient(135deg, #25d366, #0e7c3f); box-shadow: 0 6px 16px rgba(20, 165, 83, 0.35); }
.site-footer .fb-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }

/* address + hours lines */
.site-footer .footer-branch__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #c3d3e3;
}
.site-footer .footer-branch__line .fi { margin-top: 4px; color: var(--color-citrus); }

.site-footer .footer-map {
    width: 100%;
    height: 150px;
    margin: 2px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    filter: grayscale(0.15) contrast(1.05);
}
.site-footer .footer-branch__maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.45);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.site-footer .footer-branch__maps:hover { color: #0c2340; background: #ffd166; transform: translateY(-2px); }

/* ---------- bottom line ---------- */
.site-footer .footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 13px;
    color: #8da3ba;
}

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { text-align: center; }
    .footer-brand__head, .footer-social { justify-content: center; }
}
@media (max-width: 680px) {
    .site-footer { margin-top: 56px; padding: 52px 0 22px; border-radius: 28px 28px 0 0; }
    .site-footer .footer-branches { grid-template-columns: 1fr; }
    .site-footer .footer-grid { text-align: initial; }
    .footer-brand { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer::before { animation: none; }
    .footer-social__btn, .site-footer .fb-btn, .site-footer .footer-branch__maps { transition: none; }
}

/* ---------- aligned cards: address and hours always get room for two lines ---------- */
.site-footer .footer-branch__line { min-height: calc(2 * 1.7em); }
.footer-branch__ph { display: block; min-height: 0; }

/* On two-column layouts the cards also share their row heights, so every row lines up
   exactly even when an address wraps onto three lines (the 2-line room above is the fallback). */
@media (min-width: 681px) {
    @supports (grid-template-rows: subgrid) {
        .site-footer .footer-branches { row-gap: 0; align-items: stretch; }
        .site-footer .footer-branch {
            display: grid;
            grid-row: span 6;
            grid-template-rows: subgrid;
            row-gap: 12px;
        }
    }
}

/* ---------- credit line in the bottom bar ---------- */
.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
}
.site-footer .footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    color: #a9bdd1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .footer-credit__name {
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #ffd166;
    direction: ltr;
    unicode-bidi: isolate;
}
