/*
Theme Name: Afribrothers Child
Theme URI: https://afribrothers.com/
Description: Commercial African Food Export Marketplace (Nigeria to the United Kingdom).
Author: Afribrothers Studio
Template: twentytwentyfive
Version: 5.3.0
Text Domain: afribrothers-child
*/

/* 1. CORE RESETS & DEFAULTS */
html, body {
  margin: 0;
  padding: 0;
  background-color: #F4F6F9;
  color: #0D1726;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
}

#afri-root {
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.afri-lock-scroll {
  overflow: hidden;
}

.wp-site-blocks, 
header.wp-block-template-part,
.entry-header,
.wp-block-post-title {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, .afri-heading {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 2. GLOBAL STANDARD CONTAINER (STOPS STRETCHING ACROSS HUGE SCREENS) */
.afri-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .afri-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* 3. LOCKED STICKY HEADER */
.afri-master-sticky-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0, 18, 38, 0.08);
}

.afri-desktop-header-wrap {
  display: block;
}

.afri-mobile-header-wrap {
  display: none;
}

@media (max-width: 992px) {
  .afri-desktop-header-wrap {
    display: none;
  }
  .afri-mobile-header-wrap {
    display: block;
  }
}

/* Custom Logo */
.custom-logo-link {
  display: inline-block;
  text-decoration: none;
}

.custom-logo-link img.custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 992px) {
  .custom-logo-link img.custom-logo {
    max-height: 32px;
  }
}

/* 4. BUTTONS & UI ACTIONS */
.btn-gold-action {
  background: #D99426;
  color: #001226;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid #F5B041;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 148, 38, 0.35);
}

.btn-gold-action:hover {
  background: #F5B041;
  color: #000000;
}

.btn-ghost-action {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
}

.btn-navy-action {
  background-color: #002146;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid #002B5C;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* 5. RADAR BLIP */
.radar-blip {
  width: 8px;
  height: 8px;
  background-color: #D99426;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(217, 148, 38, 0.8);
  animation: radarPulse 2s infinite ease-out;
  flex-shrink: 0;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 148, 38, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(217, 148, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 148, 38, 0); }
}

/* 6. MODALS & APP DRAWERS */
.afri-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 18, 38, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
}

.afri-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.afri-app-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  z-index: 10001;
  box-shadow: 10px 0 40px rgba(0, 18, 38, 0.4);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.afri-app-drawer.open {
  left: 0;
}

/* 7. MOBILE BOTTOM APP DOCK */
.afri-mobile-dock {
  display: none;
}

@media (max-width: 992px) {
  body {
    padding-bottom: 64px;
  }

  .afri-mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid #DCE3EC;
    box-shadow: 0 -4px 20px rgba(0, 18, 38, 0.08);
    z-index: 9990;
    justify-content: space-around;
    align-items: center;
  }

  .afri-dock-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #536377;
    font-size: 10px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
  }

  .afri-dock-tab.active,
  .afri-dock-tab:hover {
    color: #002146;
  }

  .afri-dock-icon {
    font-size: 18px;
    line-height: 1;
  }
}

/* 8. CINEMATIC FULL-PAGE HERO */
.afri-cinematic-stage {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #001226;
  color: #FFFFFF;
}

.cinematic-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
  z-index: 1;
}

.cinematic-slide-bg.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cinematic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cinematicSlowPan 18s infinite alternate ease-in-out;
}

@keyframes cinematicSlowPan {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.cinematic-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 33, 70, 0.52) 0%, rgba(0, 18, 38, 0.86) 85%);
  z-index: 3;
}

.cinematic-content-box {
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

.cinematic-headline {
  color: #FFFFFF;
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cinematic-gold-text {
  color: #F5B041;
  display: inline-block;
  text-shadow: 0 0 25px rgba(245, 176, 65, 0.35);
}

.cinematic-subtext {
  font-size: 16px;
  line-height: 1.65;
  color: #FFFFFF;
  opacity: 0.92;
  max-width: 660px;
  margin: 0 auto 30px auto;
  font-weight: 500;
}

.cinematic-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.cinematic-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 10px 24px;
}

.cinematic-slider-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cinematic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}

.cinematic-dot.active {
  width: 26px;
  border-radius: 8px;
  background: #F5B041;
}

.scroll-cue-indicator {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

@media (max-width: 768px) {
  .afri-cinematic-stage {
    min-height: 80vh;
  }

  .cinematic-headline {
    font-size: 30px;
    line-height: 1.15;
  }

  .cinematic-subtext {
    font-size: 13.5px;
  }

  .cinematic-btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .cinematic-btn-group .btn-gold-action,
  .cinematic-btn-group .btn-ghost-action {
    width: 100%;
  }

  .cinematic-glass-pill {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 10px 6px;
    border-radius: 8px;
  }

  .scroll-cue-indicator,
  .footer-consignment-tag {
    display: none;
  }

  .cinematic-slider-footer {
    justify-content: center;
    bottom: 12px;
  }
}

/* ==========================================================================
   9. CATEGORIES (TRUE 2-COL MOBILE, 3-COL TABLET, 4-COL DESKTOP)
   ========================================================================== */
/* 9. CATEGORIES STAGE */
.afri-categories-stage {
  padding: 60px 0 50px;
  background-color: #F4F6F9;
  border-bottom: 1px solid #DCE3EC;
  width: 100%;
}

@media (min-width: 992px) {
  .afri-categories-stage {
    padding: 85px 0 70px;
  }
}
.categories-header-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.provenance-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D99426;
  display: inline-block;
}

/* Category Grid Container */
.categories-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

/* MOBILE DEFAULT: EXACTLY 2 EQUAL COLUMNS (Side by Side) */
.category-luxury-card {
  width: calc(50% - 6px);
  flex: 0 0 calc(50% - 6px);
  max-width: calc(50% - 6px);
  background: #FFFFFF;
  border: 1px solid #DCE3EC;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-luxury-card:hover {
  border-color: #002146;
  box-shadow: 0 10px 24px rgba(0, 33, 70, 0.1);
}

.category-card-img-wrap {
  width: 100%;
  height: 130px;
  overflow: hidden;
  position: relative;
  background: #001226;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-batch-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 18, 38, 0.85);
  color: #F5B041;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
}

.category-card-content {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.category-card-title {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #002146;
  margin: 4px 0 2px;
  line-height: 1.25;
}

.category-card-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #536377;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-cta {
  font-size: 11px;
  font-weight: 800;
  color: #D99426;
  display: inline-block;
}

/* TABLET (600px - 1024px): EXACTLY 3 COLUMNS */
@media (min-width: 600px) and (max-width: 1024px) {
  .categories-card-grid {
    gap: 16px;
  }
  .category-luxury-card {
    width: calc(33.333% - 11px);
    flex: 0 0 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
  .category-card-img-wrap {
    height: 170px;
  }
  .category-card-content {
    padding: 16px;
  }
  .category-card-title {
    font-size: 15px;
  }
}

/* DESKTOP (> 1024px): EXACTLY 4 COLUMNS */
@media (min-width: 1025px) {
  .categories-card-grid {
    gap: 20px;
  }
  .category-luxury-card {
    width: calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
  .category-card-img-wrap {
    height: 200px;
  }
  .category-card-content {
    padding: 20px;
  }
  .category-card-title {
    font-size: 17px;
  }
  .category-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }
  .category-card-cta {
    color: #002146;
  }
  .category-luxury-card:hover .category-card-cta {
    color: #D99426;
  }
}

/* 10. HEADER NAVIGATION */
.afri-nav-item {
  color: #0D1726;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.afri-nav-item:hover,
.afri-nav-item.active {
  color: #002146;
}

.afri-pill-account {
  background-color: #002146;
  color: #FFFFFF;
  border: 1px solid #002B5C;
  border-radius: 4px;
  padding: 9px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.afri-pill-account:hover {
  background-color: #001226;
  border-color: #D99426;
}

.afri-pill-basket {
  background: #D99426;
  color: #001226;
  border: 1px solid #F5B041;
  border-radius: 4px;
  padding: 9px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 148, 38, 0.25);
}

.afri-pill-basket:hover {
  background: #F5B041;
}

.afri-basket-counter {
  background-color: #001226;
  color: #FFFFFF;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
}