/* ------------------------------------------------------------------
   Site footer — real fantasy-landscape artwork as a full-bleed
   background (no <img>, no card/panel), with real HTML content
   (clickable links) placed over the image's own light, open middle.
------------------------------------------------------------------ */

.site-footer {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FBF3FA;
    padding: 64px 0 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .footer-grid {
        /* Stage 7.35: auto-fit (not a fixed repeat(2, 1fr)/repeat(3, 1fr))
           so the grid re-balances itself whenever the contact column is
           hidden (no phone/email/social configured) — 2 real columns
           share the row evenly instead of leaving a 3rd column's worth
           of empty space. */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        gap: 24px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #E8A93C;
    flex-shrink: 0;
}

.footer-brand__icon .icon {
    width: 19px;
    height: 19px;
}

.footer-brand strong {
    color: var(--blue-900);
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-desc {
    color: var(--blue-900);
    opacity: 0.78;
    font-size: 0.86rem;
    line-height: 1.8;
    max-width: 30ch;
}

.footer-heading {
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    position: relative;
    display: inline-block;
    color: var(--blue-900);
    opacity: 0.82;
    font-size: 0.87rem;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
    color: var(--pink-600);
    opacity: 1;
    transform: translateX(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--blue-900);
    opacity: 0.82;
    font-size: 0.85rem;
}

/* Stage 7.35: phone/email became real tel:/mailto: links (previously
   plain text) — match the same visual style as before, with the same
   hover affordance already used by .footer-links a. */
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--pink-600);
}

.footer-contact .icon {
    width: 15px;
    height: 15px;
    color: var(--pink-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--blue-700);
    transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
    color: var(--pink-600);
}

.footer-social .icon {
    width: 15px;
    height: 15px;
}

.footer-bottom {
    margin-top: 32px;
    padding: 14px 0;
    text-align: center;
    font-size: 0.76rem;
    color: var(--blue-900);
    opacity: 0.7;
}

/* Stage 7.48.2: the footer's top padding and inter-column gap were tuned
   for the multi-column tablet/desktop grid — on the single-column mobile
   stack the same values read as oversized gaps between brand/links/
   contact. Tightened for mobile only; tablet/desktop (the grid-column
   breakpoints above) are untouched. */
@media (max-width: 767px) {
    .site-footer {
        padding-top: 44px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-bottom {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .footer-links a,
    .footer-social a {
        will-change: transform;
    }
}
