/* ============================================================
   RR WEB SERVICES — rr-footer.css
   Global site footer — dark theme
   Loaded on: all pages (via rr_enqueue_assets)
   ============================================================ */

/* ── FOOTER WRAPPER ── */
.footer {
  background: var(--text-primary);
  color: rgba(244,245,247,0.85);
}

/* ── TOP BAND ── */
.footer-topband {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px var(--gutter);
  border-bottom: 1px solid rgba(244,245,247,0.08);
}
.footer-toptext {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #FFFFFF;
  line-height: 1.1;
}
.footer-toptext em {
  font-style: italic;
  font-weight: 300;
  color: rgba(212,184,130,0.85);
}
.footer-topctas {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Footer CTA buttons — inverted colours */
.footer .btn-p {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: none;
}
.footer .btn-p:hover {
  background: var(--canvas);
  box-shadow: none;
}
.footer .btn-g {
  color: white;
  font-weight: 600;
  border-color: rgba(244,245,247,0.25);
}
.footer .btn-g:hover {
  color: #FFFFFF;
  border-color: rgba(244,245,247,0.55);
  background: rgba(244,245,247,0.07);
}

/* ── MAIN COLUMNS GRID ── */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding: 56px var(--gutter);
  border-bottom: 1px solid rgba(244,245,247,0.08);
}

/* ── BRAND COLUMN ── */
.f-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.f-logo span { color: rgba(212,184,130,0.85); }
.f-tagline {
  font-size: 13px;
  color: rgba(244,245,247,0.55);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 22px;
  max-width: 300px;
}
.f-auds {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}
.f-aud {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(244,245,247,0.50);
}
.f-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.f-social {
  display: flex;
  gap: 10px;
}
.f-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(244,245,247,0.14);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(244,245,247,0.50);
  text-decoration: none;
  transition: all .2s;
}
.f-social a:hover {
  border-color: rgba(244,245,247,0.35);
  color: #FFFFFF;
  background: rgba(244,245,247,0.06);
}

/* ── LINK COLUMNS ── */
.f-col { }

/* Column header — rendered as <div> on desktop, styled as plain uppercase label */
/* On mobile JS wraps this in a button; we only style the text, never the button chrome */
.f-col-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(244,245,247,0.38);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Hard reset — neutralise any GP button inheritance */
  all: unset;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(244,245,247,0.38);
  margin-bottom: 18px;
  width: 100%;
  cursor: default;
}

/* Mobile-only toggle button wrapper */
.f-col-btn {
  /* all: unset used on mobile to strip button chrome */
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: 16px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(244,245,247,0.38);
}

.f-col-arr {
  display: none;
  font-size: 18px;
  font-weight: 300;
  color: rgba(244,245,247,0.30);
  transition: transform .3s;
  line-height: 1;
}

/* Links */
.f-col-body,
.f-col-body ul {
  list-style: none;
}
.f-col-body a {
  display: block;
  font-size: 13.5px;
  color: rgba(244,245,247,0.60);
  padding: 6px 0;
  transition: color .2s;
  text-decoration: none;
}
.f-col-body a:hover { color: #FFFFFF; }
.f-col-body li { padding: 0; }

/* Contact column details */
.f-ci {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.f-cl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(244,245,247,0.30);
  font-weight: 600;
}
.f-cv {
  font-size: 13.5px;
  color: rgba(244,245,247,0.65);
  text-decoration: none;
  transition: color .2s;
}
a.f-cv:hover { color: #FFFFFF; }

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(244,245,247,0.30);
  font-weight: 400;
}
.f-bdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: rr-pulse 3s ease-in-out infinite;
}
@keyframes rr-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ── BOTTOM BAR ── */
.footer-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  flex-wrap: wrap;
}
.f-copy {
  font-size: 12px;
  color: rgba(244,245,247,0.28);
}
.f-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.f-legal a {
  font-size: 12px;
  color: rgba(244,245,247,0.30);
  text-decoration: none;
  transition: color .2s;
}
.f-legal a:hover { color: rgba(244,245,247,0.65); }

/* ── RESPONSIVE ── */

/* Tablet — 2-col footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .f-brand { grid-column: 1 / -1; }
}

/* Mobile — single col, accordion */
@media (max-width: 900px) {
  .footer-topband { flex-direction: column; align-items: flex-start; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px var(--gutter);
  }
  .f-brand { margin-bottom: 32px; }

  /* Each column gets a border top, no gap */
  .f-col {
    border-top: 1px solid rgba(244,245,247,0.08);
  }

  /* On mobile: heading acts as the accordion toggle */
  .f-col-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 0;
    cursor: pointer;
    width: 100%;
  }
  .f-col-arr { display: block; }

  /* Body hidden by default, animated open */
  .f-col-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s var(--ease);
  }
  .f-col-body.open {
    max-height: 400px;
    padding-bottom: 16px;
  }

  /* Arrow rotates when open */
  .f-col-heading[aria-expanded="true"] .f-col-arr {
    transform: rotate(45deg);
  }

  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-topband { padding: 32px var(--gutter); }
  .footer-main    { padding: 28px var(--gutter); }
}
