/**
 * AAH Footer — Dark navy, premium consultancy aesthetic.
 * Fully editable, responsive to content, independent logo.
 */

/* ── Footer shell ──────────────────────────────────────────────────── */
.aah-footer {
  background: var(--navy-2);
  color: #fff;
  padding: 64px 0 0;
  border-top: 1px solid var(--line-gold);
  position: relative;
}

/* ── Inner container ────────────────────────────────────────────────── */
.aah-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Top row ────────────────────────────────────────────────────────── */
.aah-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 36px;
}

/* ── Brand block (left) ────────────────────────────────────────────── */
.aah-footer__brand {
  max-width: 320px;
  flex: 0 0 auto;
}

.aah-footer__brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* ── Footer logo (INDEPENDENT from header) ─────────────────────────── */
.aah-footer__logo {
  display: block;
  max-width: 180px;
  width: auto;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1024px) {
  .aah-footer__logo {
    max-width: 160px;
    max-height: 50px;
  }
}

@media (max-width: 767px) {
  .aah-footer__logo {
    max-width: 140px;
    max-height: 45px;
  }
}

/* ── Brand wordmark (when no logo) ─────────────────────────────────── */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1.5px;
}

.brand-accent { color: var(--gold); }

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-pale);
  margin: 10px 0 0;
}

/* ── Columns (flexible grid) ───────────────────────────────────────── */
.aah-footer__columns {
  display: flex;
  gap: 54px;
  flex-wrap: wrap;
}

/* ── Column titles ──────────────────────────────────────────────────── */
.aah-footer__col h4,
.aah-footer__col-title {
  font-family: var(--aah-font-body, Inter, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  line-height: 1;
}

/* ── Column content ─────────────────────────────────────────────────── */
.aah-footer__col ul { list-style: none; margin: 0; padding: 0; }

.aah-footer__col li,
.aah-footer__col p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-navy);
  margin: 0 0 9px;
}

.aah-footer__col a {
  color: var(--muted-navy);
  text-decoration: none;
  transition: color .3s var(--ease);
  display: block;
  margin: 0 0 9px;
}

.aah-footer__col a:hover { color: #fff; }

.aah-footer__regions {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--gold);
}

/* ── Social Media ───────────────────────────────────────────────────── */
.aah-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.aah-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--muted-navy);
  text-decoration: none;
  transition: all .3s var(--ease);
  border: 1px solid rgba(255,255,255,.08);
}

.aah-footer__social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.aah-footer__social-link:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.aah-footer__social-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.aah-footer__social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Divider ────────────────────────────────────────────────────────── */
.aah-footer__divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 0;
  border: 0;
}

/* ── Bottom row ─────────────────────────────────────────────────────── */
.aah-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 30px;
  font-size: 11.5px;
  color: #5d6f82;
}

.aah-footer__copyright { margin: 0; }

.aah-footer__disclaimer {
  max-width: 64ch;
  margin: 0;
  line-height: 1.55;
}

/* ── Back to top button ─────────────────────────────────────────────── */
.aah-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s var(--ease);
  box-shadow: 0 4px 16px rgba(198,161,91,.3);
}

.aah-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aah-back-to-top:hover {
  background: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(198,161,91,.4);
}

.aah-back-to-top:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aah-footer__inner { padding-left: 24px; padding-right: 24px; }
  .aah-footer__top { flex-direction: column; }
  .aah-footer__columns { gap: 32px; }
}

@media (max-width: 767px) {
  .aah-footer__inner { padding: 0 16px; }
  .aah-footer__columns { flex-direction: column; gap: 28px; }
  .aah-footer__bottom { flex-direction: column; gap: 12px; }
  .aah-footer__social { gap: 12px; }
  .aah-back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media print { .aah-footer { background: #fff !important; color: #000 !important; } }
