/* =============================================
   FOOTER.CSS — Dot Rad Plus
   Industrial-Luxury · Dark-Tech · Sharp Edges
   4-column structure: About · Contact · Map · Social
   ============================================= */

/* ══════════════════════════════════════════════
   GLOW SEPARATOR — fades from center → edges
   ══════════════════════════════════════════════ */
.footer-sep {
    position: relative;
    height: 1px;
    width: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 5;
}

.footer-sep::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 1px at 50% 50%,
        rgba(245, 184, 0, 0.7) 0%,
        rgba(245, 184, 0, 0.3) 35%,
        transparent 75%
    );
    box-shadow:
        0 0 10px rgba(245, 184, 0, 0.25),
        0 0 24px rgba(245, 184, 0, 0.08);
}

/* ══════════════════════════════════════════════
   FOOTER SECTION — visual identity preserved
   ══════════════════════════════════════════════ */
.site-footer {
    position: relative;
    background: #05070f;
    overflow: hidden;
    border-top: 1px solid rgba(245, 184, 0, 0.06);
}

/* Engineering grid background — subtle */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse 60% 50% at 15% 100%, rgba(245, 184, 0, 0.06) 0%, transparent 70%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════
   MAIN GRID — 4 columns · About / Contact / Map / Social
   ══════════════════════════════════════════════ */
.footer-main {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 0.85fr;
    gap: 48px;
    padding: 80px 0 64px;
    align-items: flex-start;
}

/* ══════════════════════════════════════════════
   COLUMN HEADINGS (shared)
   ══════════════════════════════════════════════ */
.footer-col__title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 14px;
    position: relative;
}

.footer-col__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(245, 184, 0, 0.4);
}

/* ══════════════════════════════════════════════
   LEFT — ABOUT US COLUMN
   ══════════════════════════════════════════════ */
.footer-brand__logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 22px;
    line-height: 1;
}

.footer-brand__logo--accent { color: var(--accent); }

.footer-brand__eyebrow {
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand__eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(245, 184, 0, 0.4);
    flex-shrink: 0;
}

.footer-brand__desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #bfbfbf;
    max-width: 340px;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   MAP COLUMN — responsive Google Maps preview
   ══════════════════════════════════════════════ */
.footer-col--map {
    display: flex;
    flex-direction: column;
}

.footer-map {
    position: relative;
    width: 100%;
    /* responsive 16:9 ratio container */
    aspect-ratio: 16 / 11;
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    background: var(--bg-panel);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-map:hover {
    border-color: var(--accent-border);
    box-shadow: 0 0 16px rgba(245, 184, 0, 0.14);
}

.footer-map__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* dim the map to match the dark-tech palette;
       grayscale + brightness keeps it subtle until hover */
    filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.9);
    transition: filter 0.35s ease;
}

.footer-map:hover .footer-map__iframe {
    filter: grayscale(0.4) invert(0.9) contrast(0.95) brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {
    .footer-map,
    .footer-map__iframe { transition: none; }
}

/* ══════════════════════════════════════════════
   CENTER — SOCIAL COLUMN
   ══════════════════════════════════════════════ */
.footer-col--social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col--social .footer-col__title {
    text-align: center;
}

.footer-col--social .footer-col__title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Social row */
.footer-social {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition:
        color        0.25s ease,
        border-color 0.25s ease,
        box-shadow    0.25s ease,
        background    0.25s ease,
        transform     0.25s ease;
}

.footer-social__link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(245, 184, 0, 0.08);
    transform: translateY(-2px);
    box-shadow:
        0 0 14px rgba(245, 184, 0, 0.4),
        0 0 32px rgba(245, 184, 0, 0.14);
}

.footer-social__sub {
    margin-top: 20px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════
   RIGHT — CONTACT COLUMN
   ══════════════════════════════════════════════ */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.footer-contact__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-contact__label {
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-contact__value {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #bfbfbf;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact__value:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   BOTTOM BAR
   ══════════════════════════════════════════════ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.footer-copy strong {
    color: var(--accent);
    font-weight: 700;
}

.footer-credit {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px) → 2 columns
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
        padding: 64px 0 48px;
    }
    .footer-brand__desc { max-width: none; }

    /* Map spans full width on tablet for legibility */
    .footer-col--map {
        grid-column: 1 / -1;
    }
    .footer-map { aspect-ratio: 21 / 9; max-height: 280px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px) → single column
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 0 40px;
        text-align: center;
    }
    /* On mobile, About column centers for clean stacked rhythm */
    .footer-col--about {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .footer-col--about .footer-brand__eyebrow::before { display: none; }

    .footer-col__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col__title { text-align: center; }

    /* Contact: keep left-aligned items, but center the column */
    .footer-contact { align-items: center; }
    .footer-contact__item { width: 100%; max-width: 320px; }

    /* Map: constrain width and center like other columns */
    .footer-map { max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 3; }

    .footer-bottom__inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-social__link,
    .footer-contact__value {
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════
   REVEAL ANIMATION (footer.js)
   ══════════════════════════════════════════════ */
.footer-col-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .footer-col-reveal { opacity: 1; transform: none; transition: none; }
}
