/*
  REVALYTICS — SITE FOOTER
  Identical across all pages. Navy background, 6-column grid desktop.
*/

/* ─── Outer wrapper ──────────────────────────────────── */
.site-footer {
  background: var(--rev-navy-900);
  padding: 80px 0 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  color: #fff;
}

/* ─── Inner grid ─────────────────────────────────────── */
.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
  padding: 0 clamp(24px, 5vw, 100px) 70px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ─── Brand column ───────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logomark {
  width: 175px;
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
}

.footer-tagline {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff !important;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.footer-tagline span {
  color: var(--rev-blue-300) !important;
}

.footer-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rev-blue);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--rev-radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.footer-demo-btn:hover { background: #0048c8; }

.footer-demo-btn svg {
  width: 16px;
  height: 16px;
}

/* ─── Column headings ────────────────────────────────── */
.footer-col-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  margin-bottom: 24px;
  opacity: 0.8;
}

/* ─── Nav link lists ─────────────────────────────────── */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s;
}

.footer-nav-list a:hover { color: #fff; }

/* ─── Chevron link lists ─────────────────────────────── */
.footer-chevron-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-chevron-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s;
}

.footer-chevron-list li a::before {
  content: '›';
  font-size: 18px;
  color: var(--rev-blue);
  line-height: 1;
}

.footer-chevron-list li a:hover { color: #fff; }

/* ─── Contact column ─────────────────────────────────── */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.footer-contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.966);
}

.footer-contact-val {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s;
}

a.footer-contact-val:hover { color: #fff; }

/* ─── Social column ──────────────────────────────────── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s;
}

.footer-social a:hover { color: #fff; }

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}

.footer-social a:hover .footer-social-icon {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ─── Bottom legal bar ───────────────────────────────── */
.footer-bottom {
  padding: 16px clamp(28px, 5vw, 80px) 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
}

.footer-legal {
  flex: 1;
  font-family: var(--rev-font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-policy-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-spacer {
  flex: 1;
  display: block;
}

.footer-policy-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s;
  letter-spacing: 0.03em;
}

.footer-policy-links a:hover { color: #fff; }

/* ─── Tablet overrides (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .site-footer {
    padding: 56px 0 36px !important;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 60px 40px !important;
  }

  .footer-brand {
    grid-column: span 2 !important;
    margin-bottom: 20px !important;
  }

  .footer-col-head {
    font-size: 17px !important;
    margin-bottom: 24px !important;
  }

  .footer-chevron-list li a {
    font-size: 18px !important;
  }

  .footer-contact-val   { font-size: 18px !important; }
  .footer-contact-label { font-size: 12px !important; }
  .footer-social a      { font-size: 18px !important; }

  .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 40px 0 !important;
  }

  .footer-legal {
    text-align: left !important;
    font-family: var(--rev-font-mono) !important;
    font-size: 11px !important;
    color: var(--rev-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding-left: 40px !important;
  }

  .footer-policy-links {
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    white-space: nowrap !important;
  }
}

/* ─── Tablet 992px footer grid ───────────────────────── */
@media (max-width: 992px) {
  .site-footer .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px 20px !important;
  }

  .site-footer .footer-inner > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-footer .footer-inner > .footer-brand {
    grid-column: 1 / -1 !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }

  .site-footer .footer-brand .footer-tagline {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-footer .footer-brand .footer-demo-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .site-footer .footer-chevron-list {
    padding-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .site-footer .footer-chevron-list li {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .site-footer .footer-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .site-footer .footer-contact-item {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .site-footer .footer-social {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .site-footer .footer-social a {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .site-footer .footer-legal {
    text-align: left !important;
    padding-left: 0 !important;
  }

  .site-footer .footer-bottom {
    padding-bottom: 60px !important;
  }
}

/* ─── Mobile overrides (≤640px) ──────────────────────── */
@media (max-width: 640px) {
  .site-footer {
    padding: 40px 0 0 !important;
    margin-top: 10% !important;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .footer-tagline { font-size: 24px !important; }

  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 16px 10px 100px !important;
  }

  .site-footer .footer-legal {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    opacity: 0.85 !important;
    text-align: center !important;
    width: 100% !important;
    position: static !important;
    padding-left: 0 !important;
    min-height: auto !important;
    white-space: nowrap !important;
  }

  .footer-policy-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    text-align: center !important;
  }

  .footer-legal-links {
    position: static !important;
    transform: none !important;
    left: auto !important;
    white-space: normal !important;
    justify-content: center !important;
  }

  .footer-spacer { display: none !important; }

  .footer-col-head      { font-size: 15px !important; margin-bottom: 20px !important; }
  .footer-chevron-list li a { font-size: 16px !important; }
  .footer-contact-val   { font-size: 16px !important; }
  .footer-contact-label { font-size: 11px !important; }
  .footer-social a      { font-size: 16px !important; }

  .footer-inner > div {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

/* ─── Extra-small phones (≤400px) ────────────────────── */
@media (max-width: 400px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 0 16px 48px !important;
  }

  .footer-inner > div {
    min-width: 0 !important;
  }

  .footer-bottom {
    padding: 16px 16px 80px !important;
  }
}
