/**
 * EHI Footer widget — modern dark luxury footer.
 */

.ehi-footer {
  --ehi-footer-accent: #c41e2a;
  position: relative;
  width: 100%;
  background: #0d0d0d;
  color: #ffffff;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
}

.ehi-footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(196, 30, 42, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    );
}

.ehi-footer-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 48px) clamp(40px, 5vw, 56px);
  text-align: center;
}

/* ---------- Brand block ---------- */

.ehi-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ehi-footer-brand-title {
  margin: 0;
  font-family: "Bebas Neue", "Base Neue", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.ehi-footer-tagline {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
}

.ehi-footer-subtext {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  max-width: 720px;
}

/* Red accent divider — used in multiple places */
.ehi-footer-divider {
  display: block;
  width: 56px;
  height: 3px;
  margin: 24px auto 0;
  background: var(--ehi-footer-accent);
  border-radius: 2px;
}

/* ---------- Shuttle / CTA block ---------- */

.ehi-footer-shuttle {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ehi-footer-shuttle .ehi-footer-divider {
  margin: 0 auto 28px;
}

.ehi-footer-shuttle-title {
  margin: 0;
  font-family: "Bebas Neue", "Base Neue", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.ehi-footer-shuttle-text {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.ehi-footer-buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ehi-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.ehi-footer-btn--ghost {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.ehi-footer-btn--ghost:hover {
  border-color: var(--ehi-footer-accent);
  background: rgba(196, 30, 42, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.ehi-footer-btn--solid {
  color: #ffffff;
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.06);
}

.ehi-footer-btn--solid:hover {
  background: #2a2a2a;
  border-color: rgba(196, 30, 42, 0.5);
  transform: translateY(-1px);
}

.ehi-footer-btn--primary {
  color: #ffffff;
  background: var(--ehi-footer-accent);
  border-color: var(--ehi-footer-accent);
}

.ehi-footer-btn--primary:hover {
  background: #a8101b;
  border-color: #a8101b;
  transform: translateY(-1px);
}

/* ---------- Bottom bar ---------- */

.ehi-footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #000000;
}

.ehi-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.ehi-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.ehi-footer-copy,
.ehi-footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.ehi-footer-credit-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.ehi-footer-credit-link:hover {
  color: var(--ehi-footer-accent);
  text-decoration-color: var(--ehi-footer-accent);
}

/* ---------- Scroll-top arrow ---------- */

.ehi-footer-scroll-top {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.ehi-footer-scroll-top svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ehi-footer-scroll-top::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--ehi-footer-accent);
  transition: width 0.3s ease;
}

.ehi-footer-scroll-top:hover {
  transform: translateY(-3px);
  color: #ffffff;
}

.ehi-footer-scroll-top:hover::after {
  width: 36px;
}

.ehi-footer-scroll-top:focus-visible {
  outline: 2px solid var(--ehi-footer-accent);
  outline-offset: 4px;
}

/* ---------- Social icons ---------- */

.ehi-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
  justify-self: end;
}

.ehi-footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.ehi-footer-social a i,
.ehi-footer-social a svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.ehi-footer-social a:hover {
  background: var(--ehi-footer-accent);
  border-color: var(--ehi-footer-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.ehi-footer-social a:focus-visible {
  outline: 2px solid var(--ehi-footer-accent);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .ehi-footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }

  .ehi-footer-meta {
    align-items: center;
    order: 1;
  }

  .ehi-footer-scroll-top {
    order: 0;
  }

  .ehi-footer-social {
    justify-self: center;
    order: 2;
  }
}

@media (max-width: 480px) {
  .ehi-footer-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .ehi-footer-btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ehi-footer-btn,
  .ehi-footer-btn:hover,
  .ehi-footer-scroll-top,
  .ehi-footer-scroll-top:hover,
  .ehi-footer-social a,
  .ehi-footer-social a:hover {
    transition: none !important;
    transform: none !important;
  }
}
