/**
 * Backyard Butchers - Header & Footer Styles
 * Author: Team Tenbit Solution
 * Website: tenbitsol.com
 */

/* Promo Announcement Banner */
.promo-banner {
  background-color: var(--brand-red);
  color: #ffffff;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  text-align: center;
}

.promo-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.promo-text {
  margin: 0;
  letter-spacing: 0.01em;
}

.promo-text strong {
  font-weight: 800;
  text-transform: uppercase;
  color: #fffb8f;
}

.promo-cta {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  border-bottom: 1.5px solid #ffffff;
  padding-bottom: 1px;
}

.promo-cta:hover {
  opacity: 0.85;
}

/* Site Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.logo-emblem {
  background-color: var(--brand-red);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 10px rgba(201, 24, 24, 0.35);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-main);
}

.logo-text span {
  color: var(--brand-red);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-top: 2px;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f2937;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a {
  color: var(--brand-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--brand-red);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-links li.current-menu-item > a::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.header-action-btn:hover {
  background-color: #e5e7eb;
  color: var(--brand-red);
  border-color: #cbd5e1;
}

.cart-btn-wrap {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--brand-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #1f2937;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Menu Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  backdrop-filter: blur(4px);
}

.mobile-drawer-backdrop.active {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  z-index: 10001;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
  font-size: 1.75rem;
  color: #1f2937;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827;
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--brand-red);
}

/* Site Footer */
.site-footer {
  background-color: #0c0d0f;
  color: #ffffff;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid #22242a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-desc {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem 0;
  max-width: 320px;
}

.social-links-row {
  display: flex;
  gap: 0.65rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: #9ca3af;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.footer-contact-item svg {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #ffffff;
  font-weight: 700;
}

.footer-contact-item a:hover {
  color: var(--brand-red);
}

.footer-bottom-bar {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #9ca3af;
}

.footer-legal-links a:hover {
  color: #ffffff;
}
