/* =========================================================
   FOOTER STYLES
   Mick Appleby Racing — footer.css
   ========================================================= */

/* ── Site footer wrapper ─────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Footer top grid ─────────────────────────────────────── */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(30px, 4vw, 70px);
  padding: clamp(50px, 6vw, 80px) clamp(24px, 6vw, 80px);
}

/* ── Brand column ────────────────────────────────────────── */
.footer-brand .footer-logo img,
.footer-brand .footer-logo .custom-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-logo-text {
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 270px;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-social-link {
  --brand: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.footer-social-link svg { width: 20px; height: 20px; display: block; position: relative; z-index: 1; }

.footer-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 55%, transparent);
}

/* Instagram gradient */
.footer-social-link--instagram {
  border-color: rgba(255,255,255,0.12);
}
.footer-social-link--instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285AEB 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(214,36,159,0.5);
  color: #fff;
}

/* ── Generic footer column ───────────────────────────────── */
.footer-col-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--white); }

/* ── Contact column ──────────────────────────────────────── */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-contact-icon {
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact-text a:hover { color: var(--white); }

/* ── Footer bottom bar ───────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px clamp(24px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
