/* =========================
   VD · Footer
   ========================= */

.vd-pre-footer {
  --vd-pre-footer-bg: rgba(12, 41, 49, 0.92);
  --vd-pre-footer-text: #ededed;
  --vd-pre-footer-muted: rgba(237, 237, 237, 0.7);
  --vd-pre-footer-accent: #ffb25a;

  background: var(--vd-pre-footer-bg);
  color: var(--vd-pre-footer-text);
  font-family: var(--vd-font-stack);
  padding: clamp(48px, 8vw, 72px) 0;
}

.vd-pre-footer-shell {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 32px);
}

.vd-pre-footer-card {
  display: grid;
  gap: 12px;
}

.vd-pre-footer-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: var(--vd-pre-footer-text);
}

.vd-pre-footer-card p {
  margin: 0;
  color: var(--vd-pre-footer-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  max-width: 42ch;
}

.vd-pre-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vd-pre-footer-text);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
  position: relative;
  width: fit-content;
}

.vd-pre-footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--vd-footer-accent, #ff810a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.vd-pre-footer-link:hover::after,
.vd-pre-footer-link:focus-visible::after {
  transform: scaleX(1);
}

.vd-pre-footer-link:focus-visible {
  outline: 2px solid var(--vd-footer-accent, #ff810a);
  outline-offset: 2px;
  border-radius: 4px;
}

.vd-footer {
  --vd-footer-bg: #0c2931;
  --vd-footer-text: #ededed;
  --vd-footer-muted: rgba(237, 237, 237, 0.68);
  --vd-footer-accent: #ff810a;
  --vd-footer-border: rgba(237, 237, 237, 0.12);

  font-family: var(--vd-font-stack);
  background: var(--vd-footer-bg);
  color: var(--vd-footer-text);
  padding: clamp(48px, 8vw, 80px) 0 clamp(24px, 5vw, 40px);
  border-top: 1px solid var(--vd-footer-border);
}

.vd-footer-shell {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.vd-footer-inner {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

@media (min-width: 960px) {
  .vd-footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    align-items: start;
  }
}

.vd-footer-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  color: var(--vd-footer-muted);
  margin: 0 0 12px;
}

.vd-footer-name {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vd-footer-tagline {
  margin: 0 0 22px;
  color: var(--vd-footer-muted);
  line-height: 1.65;
  max-width: 42ch;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.vd-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--vd-footer-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.vd-footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vd-footer-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.vd-footer-cta:hover {
  color: #0c2931;
  border-color: var(--vd-footer-accent);
}

.vd-footer-cta:hover::before {
  transform: scaleX(1);
}

.vd-footer-cta:focus-visible {
  outline: 2px solid var(--vd-footer-accent);
  outline-offset: 3px;
}

.vd-footer-columns {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vd-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.vd-footer-title {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--vd-footer-muted);
}

.vd-footer-column a {
  color: var(--vd-footer-text);
  text-decoration: none;
  text-decoration-color: var(--vd-footer-accent);
  text-decoration-thickness: 2px;
  font-size: 0.98rem;
  transition: opacity 0.2s ease;
  position: relative;
  width: fit-content;
}

.vd-footer-column a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--vd-footer-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.vd-footer-column a:hover::after,
.vd-footer-column a:focus-visible::after {
  transform: scaleX(1);
}

.vd-footer-column a:focus-visible {
  outline: 2px solid var(--vd-footer-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.vd-footer-bottom {
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--vd-footer-border);
  font-size: 0.85rem;
  color: var(--vd-footer-muted);
}

.vd-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.vd-footer-bottom p {
  margin: 0;
}

.vd-footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.vd-footer-legal-link {
  color: var(--vd-footer-muted);
  text-decoration: none;
}

.vd-footer-legal-link:hover,
.vd-footer-legal-link:focus-visible {
  color: #ededed;
}

.vd-footer-social {
  display: inline-flex;
  gap: 12px;
}

.vd-footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 237, 237, 0.12);
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.vd-footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--vd-footer-text);
}

.vd-footer-social-link:hover {
  background: rgba(237, 237, 237, 0.24);
  transform: translateY(-2px);
}

.vd-footer-home {
  color: var(--vd-footer-text);
  text-decoration: none;
  font-weight: 600;
}

.vd-footer-home:hover {
  color: var(--vd-footer-muted);
}

.vd-footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
}

.vd-footer-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.vd-footer-logo img,
.vd-footer-logo svg {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.vd-footer-logo svg {
  fill: var(--vd-footer-text);
}

@media (min-width: 960px) {
  .vd-pre-footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vd-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
