/**
 * Golden Eagle GS — Global Site Footer.
 * Priority 2 (Performance), Task 4.
 *
 * Extracted verbatim from `home-part4.css`'s "3. FOOTER" section — the
 * `.ge-footer` structure (DESIGN_SYSTEM.md §2 / the Phase 3 spec's
 * §0.2) was originally shipped inside the Homepage's Stage 5 Part 4
 * file, then sitewide-loaded from there via `functions.php` once
 * `footer.php` (Stage 6 Part 1) started rendering it on every page —
 * a documented, Project-Director-scheduled tradeoff (see
 * `CORE_PLATFORM.md` §6, `PROJECT_STATE.md`'s Stage 6A Part 5 record)
 * to avoid sitewide-loading that file's unrelated Partner-grid/Blog-
 * card rules too. This file is that scheduled cleanup: `.ge-footer`
 * now loads sitewide on its own, and `home-part4.css` (Partner grid +
 * Blog card, still Homepage/archive/search-only) is smaller and no
 * longer pulled in on pages that don't render those sections.
 *
 * No rule below was changed from its original `home-part4.css` form —
 * this is a pure relocation.
 *
 * LOADING: registered and enqueued sitewide — see functions.php's
 * `ge_child_conditional_assets()` — because `footer.php` calls
 * `ge_home_footer_markup()` unconditionally on every page.
 */

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

/* MOBILE TOP SPACING (v16, 2026-10-04). --ge-space-9 (128px) was applied
   at every width; measured on a 375px viewport that is a third of the
   screen height in dead space before any footer content. Reduced below
   768px only — the desktop value is unchanged. Spacing only: no colour,
   no structure, no URL and no business information is touched. */
@media (max-width: 767px) {
  .ge-footer {
    padding-top: var(--ge-space-7);
  }
}

.ge-footer {
  background: var(--ge-color-navy-950);
  padding-top: var(--ge-space-9);
}

.ge-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ge-space-6);
  padding-bottom: var(--ge-space-6);
}

.ge-footer__column--brand {
  display: flex;
  flex-direction: column;
  gap: var(--ge-space-3);
}

.ge-footer__logo-image {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  /* ASPECT-RATIO FIX (v8, 2026-08-19). The parent
     `.ge-footer__column--brand` is `display:flex; flex-direction:column`,
     whose default `align-items: stretch` makes this img — a flex item —
     stretch to the column's full cross-size. `width: auto` then resolves
     to that stretched width rather than to the intrinsic ratio, so the
     450x326 circular emblem rendered at 448x48 (9.3:1) — a flat ellipse.
     Measured live before the fix; correct box is 66x48.
     `align-self: flex-start` opts this one item out of the stretch so
     `width: auto` resolves from the intrinsic aspect ratio again;
     `object-fit: contain` guarantees the ratio is preserved even if a
     future container rule constrains both axes. The header logo never
     showed this because its parent is `inline-flex; row` (cross axis is
     vertical there, and its height is what's fixed). */
  align-self: flex-start;
  object-fit: contain;
}

.ge-footer__brand-name {
  /* No font-family override — per every other component in this
     library, typography inherits Elementor's Global Fonts rather than
     declaring a CSS-level font stack; Georgia (components-core.css's
     testimonial quote-mark) is the sole, deliberate exception for a
     decorative glyph, not a precedent for body/heading text. */
  font-size: 20px;
  font-weight: 700;
  color: var(--ge-color-gold-300);
  margin: 0;
}

.ge-footer__brand-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ge-color-text-muted);
  margin: 0;
  max-width: 32em;
}

/* Registration / legal identity lines (v10 — approved Copy Deck §3).
   Deliberately quieter than the tagline: these are compliance details,
   not positioning. Each line is independently value-gated in PHP, so
   any combination of them may be present or absent. */
.ge-footer__brand-legal-name,
.ge-footer__brand-registration,
.ge-footer__brand-address {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ge-color-text-muted);
  margin: var(--ge-space-2) 0 0;
  max-width: 32em;
}

.ge-footer__contact-list {
  list-style: none;
  margin: var(--ge-space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ge-space-1);
}

.ge-footer__contact-list a {
  color: var(--ge-color-text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.ge-footer__contact-list a:hover,
.ge-footer__contact-list a:focus-visible {
  color: var(--ge-color-gold-300);
}

.ge-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ge-space-2);
}

.ge-footer__contact-link .ge-icon {
  flex-shrink: 0;
  color: var(--ge-color-gold-300);
}

/* Icon row (social links + WhatsApp) — previously had no dedicated
   styling at all (default browser rendering only); this gives all of
   them one consistent size, spacing, and hover treatment, matching the
   same muted-to-gold hover pattern already used by
   .ge-footer__contact-list / .ge-footer__links. */
.ge-footer__social {
  list-style: none;
  margin: var(--ge-space-3) 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--ge-space-2);
}

.ge-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ge-color-text-muted);
  transition: color var(--ge-duration-fast) var(--ge-ease-standard);
}

.ge-footer__social a:hover,
.ge-footer__social a:focus-visible {
  color: var(--ge-color-gold-300);
}

.ge-footer__heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ge-color-text-primary);
  margin: 0 0 var(--ge-space-3);
}

.ge-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ge-space-2);
}

.ge-footer__links a {
  color: var(--ge-color-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--ge-duration-fast) var(--ge-ease-standard);
}

.ge-footer__links a:hover,
.ge-footer__links a:focus-visible {
  color: var(--ge-color-gold-300);
}

.ge-footer__license {
  font-size: 13px;
  color: var(--ge-color-text-muted);
  margin: 0;
}

.ge-footer__legal {
  border-top: 1px solid var(--ge-color-border-subtle);
  padding: var(--ge-space-4) 0;
}

.ge-footer__legal-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.ge-footer__legal-inner p {
  font-size: 13px;
  color: var(--ge-color-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .ge-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ge-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .ge-footer__legal-inner {
    justify-content: space-between;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ge-footer__links a,
  .ge-footer__social a {
    transition: none;
  }
}
