/* ===========================================================================
   Shared site footer (templates/partials/footer.html)
   Night mode is the default. Light mode is switched on by:
     data-ft="navbar" -> body.light-mode      (pages that load navbar.js)
     data-ft="class"  -> html without .dark   (pages that toggle <html class="dark"> themselves)
   All colours are CSS variables, so changing the look = changing a few lines here.
   =========================================================================== */
.site-footer {
    --ft-bg: #FFFFFF;
    --ft-border: #E2E8F0;
    --ft-text: #475569;
    --ft-strong: #111827;
    --ft-hover: #0F766E;
    --ft-card: #FFFFFF;
    --ft-card-border: #D1FAE5;
    --ft-card-glow: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 100%);
    --ft-icon-bg: #F8FAFC;
    --ft-icon-border: #CBD5E1;
    --ft-btn: #0F766E;
    --ft-btn-hover: #115E59;
    --ft-btn-text: #FFFFFF;
    --ft-ghost-border: #CBD5E1;
    --ft-ring: #0F766E;
    --ft-star: #D97706;
    --ft-link-accent: #0F766E;
    --ft-heart: #DC2626;
    --ft-global: #0F766E;

    position: relative;
    z-index: 10;
    background: var(--ft-bg);
    color: var(--ft-text);
    border-top: 1px solid var(--ft-border);
    padding: 3.5rem 0 2rem;
    line-height: 1.6;
    font-size: .95rem;
    text-align: left;
}

.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.site-footer a { color: inherit; text-decoration: none; }
:where(.site-footer) ul { list-style: none; margin: 0; padding: 0; }
:where(.site-footer) p { margin: 0; }   /* :where() = zero specificity, so the .ft-* margins below still win */
.site-footer :focus-visible { outline: 2px solid var(--ft-ring); outline-offset: 3px; border-radius: 6px; }

.ft-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }

/* ---------- review call-to-action ---------- */
.ft-review {
    display: flex; flex-direction: column; gap: 1.25rem;
    padding: 1.4rem 1.5rem; margin-bottom: 3rem;
    border: 1px solid var(--ft-card-border); border-radius: 1.1rem;
    background: var(--ft-card-glow), var(--ft-card);
}
.ft-stars { color: var(--ft-star); font-size: .85rem; letter-spacing: .15rem; margin-bottom: .35rem; }
.ft-review-title { color: var(--ft-strong); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.ft-review-sub { margin-top: .25rem; }
.ft-review-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.ft-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .6rem 1.25rem; border-radius: .75rem;
    background: var(--ft-btn); color: var(--ft-btn-text) !important;
    font-weight: 700; font-size: .9rem; border: 1px solid transparent; cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ft-btn:hover { background: var(--ft-btn-hover); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.ft-btn-ghost { background: transparent; color: var(--ft-strong) !important; border-color: var(--ft-ghost-border); }
.ft-btn-ghost:hover { background: transparent; border-color: var(--ft-hover); color: var(--ft-hover) !important; box-shadow: none; }

/* ---------- link grid ---------- */
.ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-bottom: 2.5rem; }
.ft-brand { grid-column: 1 / -1; }
.ft-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ft-logo img { height: 2.75rem; width: auto; }
.ft-name { color: var(--ft-strong); font-size: 1.6rem; font-weight: 800; letter-spacing: .03em; }
.ft-name span { color: var(--ft-link-accent); }
.ft-tagline { max-width: 28rem; margin-bottom: 1.25rem; }

.ft-social { display: flex; gap: .75rem; }
.ft-social-link {
    width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ft-icon-bg); border: 1px solid var(--ft-icon-border); color: var(--ft-text);
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.ft-social-link:hover { transform: translateY(-2px); }
.ft-ig:hover { color: #db2777; border-color: #db2777; }
.ft-fb:hover { color: #2563eb; border-color: #2563eb; }
.ft-in:hover { color: #0a66c2; border-color: #0a66c2; }

.ft-title { color: var(--ft-strong); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.ft-col li { margin-bottom: .15rem; }
.ft-col a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; transition: color .2s ease, transform .2s ease; }
.ft-col a::before { content: "\203A"; font-weight: 700; color: var(--ft-link-accent); opacity: .85; transition: transform .2s ease; }
.ft-col a:hover { color: var(--ft-hover); }
.ft-col a:hover::before { transform: translateX(3px); }

/* ---------- bottom bar ---------- */
.ft-bottom {
    display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center;
    border-top: 1px solid var(--ft-border); padding-top: 1.75rem; font-size: .875rem;
}
.ft-made { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; }
.ft-made a { color: var(--ft-link-accent); font-weight: 700; }
.ft-made a:hover { text-decoration: underline; }
.ft-heart { color: var(--ft-heart); margin: 0 .15rem; }
.ft-global { color: var(--ft-global); display: inline-flex; align-items: center; gap: .4rem; }
.ft-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .ft-heart { animation: ft-pulse 1.6s ease-in-out infinite; } }
@keyframes ft-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
    .ft-review { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 768px) {
    .ft-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .ft-brand { grid-column: auto; }
    .ft-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .ft-made { justify-content: flex-end; }
}
/* pages have a fixed bottom navigation bar on phones: keep the footer text clear of it */
@media (max-width: 767px) { .site-footer { padding-bottom: 6rem; } }
@media print { .site-footer { display: none; } }

/* ===========================================================================
   Hardening: some pages still have generic light-mode rules such as `body.light-mode p { color: ... }`
   or `body.light-mode footer { background: ... }`. These !important rules make the footer look the same everywhere.
   =========================================================================== */
html body footer.site-footer { background: var(--ft-bg) !important; color: var(--ft-text) !important; border-top-color: var(--ft-border) !important; }
html body footer.site-footer p, html body footer.site-footer span, html body footer.site-footer li { color: var(--ft-text) !important; }
html body footer.site-footer .ft-title, html body footer.site-footer .ft-review-title, html body footer.site-footer .ft-name { color: var(--ft-strong) !important; }
html body footer.site-footer .ft-name span, html body footer.site-footer .ft-made a { color: var(--ft-link-accent) !important; }
html body footer.site-footer .ft-global { color: var(--ft-global) !important; }
html body footer.site-footer .ft-stars, html body footer.site-footer .ft-stars i { color: var(--ft-star) !important; }
html body footer.site-footer .ft-heart { color: var(--ft-heart) !important; }
html body footer.site-footer .ft-col a { color: var(--ft-text) !important; }
html body footer.site-footer .ft-col a:hover { color: var(--ft-hover) !important; }
html body footer.site-footer .ft-social-link { color: var(--ft-text) !important; background: var(--ft-icon-bg) !important; border-color: var(--ft-icon-border) !important; }
html body footer.site-footer .ft-ig:hover { color: #db2777 !important; } html body footer.site-footer .ft-fb:hover { color: #2563eb !important; } html body footer.site-footer .ft-in:hover { color: #0a66c2 !important; }
html body footer.site-footer .ft-btn, html body footer.site-footer .ft-btn i { color: var(--ft-btn-text) !important; background-color: var(--ft-btn) !important; }
html body footer.site-footer .ft-btn:hover { background-color: var(--ft-btn-hover) !important; }
html body footer.site-footer .ft-btn-ghost, html body footer.site-footer .ft-btn-ghost i { color: var(--ft-strong) !important; background-color: transparent !important; }
html body footer.site-footer .ft-btn-ghost:hover { color: var(--ft-hover) !important; }
