/* ═══════════════════════════════════════════════════════════
   FOOTER — Premium Shared Footer
   Hupp & Fuller Detailing
   ═══════════════════════════════════════════════════════════ */

.hf-footer {
  --ft-gold: #D3AF37;
  --ft-cream: #F6D97B;
  --ft-black: #050409;
  --ft-white: #F0EDE6;
  --ft-muted: rgba(240, 237, 230, 0.45);
  --ft-glass: rgba(8, 8, 16, 0.65);
  --ft-border: rgba(211, 175, 55, 0.08);
  --ft-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ft-max: 1200px;
  --ft-pad: 64px;

  position: relative;
  z-index: 2;
  width: 100%;
  scroll-snap-align: start;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ft-white);
  overflow: hidden;
}

/* ── Top rule ── */
.hf-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, var(--ft-max));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(211, 175, 55, 0.25) 30%,
    rgba(211, 175, 55, 0.4) 50%,
    rgba(211, 175, 55, 0.25) 70%,
    transparent 100%
  );
}

/* ── Ambient glow ── */
.hf-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(211, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════
   INNER CONTAINER
   ═══════════════════════════════════ */

.hf-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ft-max);
  margin: 0 auto;
  padding: var(--ft-pad) 32px 0;
}

/* ═══════════════════════════════════
   MAIN ROW — Logo | Quick Links | Contact
   ═══════════════════════════════════ */

.hf-footer__main {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* ═══════════════════════════════════
   BRAND COLUMN (Left)
   ═══════════════════════════════════ */

.hf-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hf-footer__logo-link {
  display: inline-block;
  width: 180px;
  transition: opacity 300ms ease, filter 300ms ease;
}

.hf-footer__logo-link:hover {
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(211, 175, 55, 0.2));
}

.hf-footer__logo-link:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.hf-footer__logo {
  width: 100%;
  height: auto;
  display: block;
}

.hf-footer__tagline {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ft-muted);
  max-width: 240px;
}

/* ── Social Icons ── */
.hf-footer__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hf-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ft-border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition:
    transform 250ms var(--ft-ease),
    border-color 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease;
}

.hf-footer__social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 175, 55, 0.3);
  background: rgba(211, 175, 55, 0.06);
  box-shadow: 0 4px 16px rgba(211, 175, 55, 0.1);
}

.hf-footer__social-link:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 2px;
}

.hf-footer__social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 250ms ease;
}

.hf-footer__social-link:hover .hf-footer__social-icon {
  opacity: 1;
}

/* ═══════════════════════════════════
   QUICK LINKS COLUMNS (Center)
   ═══════════════════════════════════ */

.hf-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: start;
}

.hf-footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft-gold);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.hf-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ft-gold), transparent);
  border-radius: 2px;
}

.hf-footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hf-footer__link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ft-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 200ms ease,
    transform 200ms var(--ft-ease);
}

.hf-footer__link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--ft-gold);
  transition: width 250ms var(--ft-ease);
  flex-shrink: 0;
}

.hf-footer__link:hover {
  color: var(--ft-white);
  transform: translateX(4px);
  text-shadow: 0 0 12px rgba(211, 175, 55, 0.15);
}

.hf-footer__link:hover::before {
  width: 12px;
}

.hf-footer__link:focus-visible {
  outline: 1px solid var(--ft-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════
   CONTACT COLUMN (Right)
   ═══════════════════════════════════ */

.hf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hf-footer__contact-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft-gold);
  margin-bottom: 0;
  position: relative;
  padding-bottom: 10px;
}

.hf-footer__contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ft-gold), transparent);
  border-radius: 2px;
}

.hf-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--ft-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  transition: color 200ms ease;
}

a.hf-footer__contact-item:hover {
  color: var(--ft-white);
}

a.hf-footer__contact-item:focus-visible {
  outline: 1px solid var(--ft-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.hf-footer__contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ft-gold);
  opacity: 0.75;
}

.hf-footer__contact-icon svg {
  width: 100%;
  height: 100%;
}

.hf-footer__contact-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.3);
  display: block;
  margin-bottom: 2px;
}

.hf-footer__contact-value {
  display: block;
  color: var(--ft-muted);
  transition: color 200ms ease;
}

a.hf-footer__contact-item:hover .hf-footer__contact-value {
  color: var(--ft-white);
}

/* ── CTA Button ── */
.hf-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 48px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--ft-gold) 0%, #C5982F 100%);
  color: var(--ft-black);
  border: 1px solid rgba(211, 175, 55, 0.5);
  box-shadow: 0 2px 12px rgba(211, 175, 55, 0.2);
  transition:
    transform 250ms var(--ft-ease),
    box-shadow 250ms var(--ft-ease);
}

.hf-footer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(211, 175, 55, 0.35);
}

.hf-footer__cta:active {
  transform: translateY(0);
}

.hf-footer__cta:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 3px;
}

.hf-footer__cta-icon {
  width: 14px;
  height: 14px;
}

.hf-footer__cta-icon svg {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════
   BOTTOM BAR
   ═══════════════════════════════════ */

.hf-footer__bottom {
  position: relative;
  z-index: 1;
  max-width: var(--ft-max);
  margin: 0 auto;
  padding: 24px 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(211, 175, 55, 0.06);
}

.hf-footer__copy {
  font-size: 0.68rem;
  color: rgba(240, 237, 230, 0.25);
  letter-spacing: 0.02em;
}

.hf-footer__legal {
  display: flex;
  gap: 20px;
}

.hf-footer__legal-link {
  font-size: 0.66rem;
  color: rgba(240, 237, 230, 0.25);
  text-decoration: none;
  transition: color 200ms ease;
}

.hf-footer__legal-link:hover {
  color: var(--ft-muted);
}

.hf-footer__legal-link:focus-visible {
  outline: 1px solid var(--ft-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ═══════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════ */

.hf-footer__reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ft-ease),
    transform 700ms var(--ft-ease);
}

.hf-footer__reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hf-footer__reveal:nth-child(2) { transition-delay: 80ms; }
.hf-footer__reveal:nth-child(3) { transition-delay: 160ms; }

/* ═══════════════════════════════════
   LOGO SHEEN EFFECT
   ═══════════════════════════════════ */

.hf-footer__logo-sheen {
  position: relative;
  overflow: hidden;
}

.hf-footer__logo-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(211, 175, 55, 0.15) 40%,
    rgba(211, 175, 55, 0.25) 50%,
    rgba(211, 175, 55, 0.15) 60%,
    transparent 100%
  );
  pointer-events: none;
  transition: none;
}

.hf-footer__logo-sheen:hover::after {
  animation: hf-footer-sheen 0.7s var(--ft-ease) forwards;
}

@keyframes hf-footer-sheen {
  to { left: 100%; }
}

/* ═══════════════════════════════════
   LIVE BOOKING CHIP
   ═══════════════════════════════════ */

.hf-footer__booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 100px;
  margin-top: 4px;
}

.hf-footer__booking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: hf-footer-dotPulse 2.5s ease-in-out infinite;
}

@keyframes hf-footer-dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

/* ═══════════════════════════════════
   MINI CTA BAR (above bottom bar)
   ═══════════════════════════════════ */

.hf-footer__mini-cta {
  position: relative;
  z-index: 1;
  max-width: var(--ft-max);
  margin: 0 auto;
  padding: 20px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(211, 175, 55, 0.06);
  border-bottom: 1px solid rgba(211, 175, 55, 0.06);
}

.hf-footer__mini-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240, 237, 230, 0.4);
}

.hf-footer__mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ft-gold);
  text-decoration: none;
  transition: color 200ms ease, gap 200ms var(--ft-ease);
}

.hf-footer__mini-link:hover {
  color: var(--ft-cream);
  gap: 10px;
}

.hf-footer__mini-link:focus-visible {
  outline: 1px solid var(--ft-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.hf-footer__mini-link .hf-footer__cta-icon {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ═══════════════════════════════════ */

@media (max-width: 1024px) {
  .hf-footer {
    --ft-pad: 48px;
  }

  .hf-footer__main {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }

  .hf-footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 20px 32px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(211, 175, 55, 0.06);
  }

  .hf-footer__contact-title {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }

  .hf-footer__cta {
    justify-self: end;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — Mobile (≤ 700px)
   ═══════════════════════════════════ */

@media (max-width: 700px) {
  .hf-footer {
    --ft-pad: 40px;
  }

  .hf-footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hf-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hf-footer__brand {
    align-items: center;
  }

  .hf-footer__logo-link {
    width: 150px;
  }

  .hf-footer__tagline {
    text-align: center;
    max-width: 280px;
  }

  .hf-footer__socials {
    justify-content: center;
  }

  .hf-footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
  }

  .hf-footer__contact {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    border-top: 1px solid rgba(211, 175, 55, 0.06);
    padding-top: 24px;
  }

  .hf-footer__contact-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hf-footer__contact-item {
    justify-content: center;
  }

  .hf-footer__cta {
    justify-self: center;
  }

  .hf-footer__col-title::after {
    /* keep left-aligned in mobile link cols */
  }

  .hf-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hf-footer__mini-cta {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hf-footer__booking-chip {
    align-self: center;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
   ═══════════════════════════════════ */

@media (max-width: 480px) {
  .hf-footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .hf-footer__links > div:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .hf-footer__links > div:nth-child(3) .hf-footer__col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hf-footer__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hf-footer__link,
  .hf-footer__social-link,
  .hf-footer__cta {
    transition-duration: 0.01ms !important;
  }

  .hf-footer__booking-dot {
    animation: none !important;
    opacity: 1 !important;
  }

  .hf-footer__logo-sheen::after {
    display: none;
  }
}
