/**
 * CRAVE Premium Shared Footer CSS
 * Primary source of truth for CRAVE footer design system across all pages.
 */

/* ==========================================================================
   FOOTER BASE & CONTAINER
   ========================================================================== */
.crave-footer,
.premium-footer {
  position: relative;
  background: #08080a;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  border-top: 1px solid rgba(212, 163, 115, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.crave-footer::before,
.premium-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a373, transparent);
  opacity: 0.6;
}

.crave-footer__inner,
.premium-footer__inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 0 0;
}

.crave-footer__container,
.premium-footer__container {
  max-width: 1240px;
  margin: 0 auto 56px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

/* ==========================================================================
   BRAND AREA
   ========================================================================== */
.crave-footer__brand,
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.crave-footer__logo,
.footer-brand__logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(212, 163, 115, 0.25));
}

.crave-footer__tagline,
.footer-brand__tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d4a373;
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
}

.crave-footer__description,
.footer-brand__sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.crave-footer__nav,
.footer-nav {
  display: flex;
  flex-direction: column;
}

.crave-footer__heading,
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

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

.crave-footer__link,
.footer-links a,
.footer-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-block;
}

.crave-footer__link:hover,
.footer-links a:hover,
.footer-link:hover {
  color: #ffd700;
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT AREA
   ========================================================================== */
.crave-footer__contact,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.crave-footer__address,
.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.crave-footer__address-line,
.footer-address__line {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.crave-footer__phone,
.crave-footer__email {
  font-weight: 600 !important;
}

.crave-footer__hours,
.footer-hours {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.crave-footer__hours-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4a373;
  margin-bottom: 4px;
}

.crave-footer__hours-time {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   SOCIAL BUTTONS
   ========================================================================== */
.crave-footer__social,
.footer-social {
  display: flex;
  flex-direction: column;
}

.crave-footer__social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.crave-footer__social-btn,
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 163, 115, 0.25);
  color: #d4a373;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crave-footer__social-btn:hover,
.social-btn:hover {
  background: linear-gradient(135deg, #d4a373 0%, #c49a6c 100%);
  border-color: #d4a373;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.35);
}

/* ==========================================================================
   CONVERSION VIP EXPERIENCE CARD
   ========================================================================== */
.crave-footer__vip-card,
.premium-footer__cta {
  max-width: 1240px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.crave-vip-card__inner,
.premium-footer__cta {
  position: relative;
  background: linear-gradient(145deg, #121218 0%, #0a0a0d 100%);
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.crave-vip-card__inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.crave-vip-card__copy,
.cta-copy {
  display: flex;
  flex-direction: column;
  max-width: 520px;
}

.crave-vip-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d4a373;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.crave-vip-card__title,
.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.crave-vip-card__subtitle,
.cta-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.crave-vip-card__form,
.vip-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
}

.crave-vip-card__input,
.vip-form input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: 30px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.crave-vip-card__input::placeholder,
.vip-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.crave-vip-card__input:focus,
.vip-form input:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.crave-vip-card__btn,
.vip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, #d4a373 0%, #c49a6c 100%);
  color: #111111;
  border: none;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
}

.crave-vip-card__btn:hover,
.vip-cta:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d4a373 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   BOTTOM LEGAL BAR
   ========================================================================== */
.crave-footer__bottom,
.premium-footer__bottom {
  background: #040406;
  border-top: 1px solid rgba(212, 163, 115, 0.12);
  padding: 22px 0;
}

.crave-footer__bottom-container,
.premium-footer__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.crave-footer__copyright,
.footer-copyright {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.crave-footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crave-footer__legal-link {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}

.crave-footer__legal-link:hover {
  color: #ffd700;
}

.crave-footer__legal-dot {
  color: rgba(212, 163, 115, 0.3);
  font-size: 10px;
}

/* ==========================================================================
   COMPACT TRANSACTIONAL FOOTER VARIATION
   ========================================================================== */
.crave-footer--compact {
  padding-top: 0;
}

.crave-footer--compact .crave-footer__inner,
.crave-footer--compact .premium-footer__inner {
  padding-top: 36px;
}

.crave-footer--compact .crave-footer__container,
.crave-footer--compact .premium-footer__container {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}

.crave-footer--compact .crave-footer__vip-card,
.crave-footer--compact .premium-footer__cta {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .crave-footer__container,
  .premium-footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .crave-vip-card__inner,
  .premium-footer__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 28px;
  }

  .crave-vip-card__form,
  .vip-form {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .crave-footer__inner,
  .premium-footer__inner {
    padding-top: 55px;
  }

  .crave-footer__container,
  .premium-footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .crave-vip-card__form,
  .vip-form {
    flex-direction: column;
    align-items: stretch;
  }

  .crave-vip-card__input,
  .vip-form input,
  .crave-vip-card__btn,
  .vip-cta {
    width: 100%;
  }

  .crave-footer__bottom-container,
  .premium-footer__bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .crave-footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Safe Area Padding above Floating Cart (#stickyCartBar) */
  .crave-footer,
  .premium-footer {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crave-footer__link,
  .crave-footer__social-btn,
  .crave-vip-card__btn,
  .crave-vip-card__inner {
    transition: none !important;
    transform: none !important;
  }
}
