/* ==========================================
   COMPACT PAGE HEADER — Shared component
   Used on: About Us, Fresh Grabs, Services
   ========================================== */

/* Force navbar into scrolled (white) state on compact-header pages. */
body.has-compact-header #header-main {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08) !important;
}

body.has-compact-header .nav-link {
  color: #333 !important;
}

body.has-compact-header .nav-link:hover,
body.has-compact-header .nav-link.active {
  color: #1a4d2e !important;
}

/* --- Header container ---
   Desktop target: ~120–140px total visible height (after navbar).
   padding-top = navbar offset; padding-bottom = compact content space. */
.compact-page-header {
  position: relative;
  overflow: hidden;
  padding: 92px 0 24px;
  text-align: center;
  background-color: #1a4d2e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* Dark overlay */
.cph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,64,28,0.85) 0%, rgba(13,64,28,0.92) 100%);
  z-index: 0;
}

/* Content sits above overlay */
.cph-content {
  position: relative;
  z-index: 1;
}

/* --- Breadcrumbs --- */
.cph-breadcrumbs {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.55);
}

.cph-breadcrumbs a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cph-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.cph-breadcrumbs-sep {
  margin: 0 6px;
}

.cph-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.cph-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* --- Credibility Row (About page) --- */
.cph-credibility-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 12px 0;
  background: linear-gradient(135deg, #122e1d 0%, #1a4d2e 50%, #153d25 100%);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}

.cph-cred-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.cph-cred-item i {
  color: #c9a227;
  font-size: 0.85rem;
}

/* --- WhatsApp Order Bar --- */
.cph-wa-bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0;
}

.cph-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cph-wa-btn:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.cph-wa-btn i {
  font-size: 1.05rem;
}

/* --- Compact CTA Block --- */
.cph-cta-block {
  background: #f9f9f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cph-cta-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a4d2e;
  margin: 0 0 16px;
}

.cph-cta-block .cph-wa-btn {
  padding: 14px 30px;
  font-size: 0.95rem;
}

/* ==========================================
   SCOPED OVERRIDES — Only on compact-header pages
   ========================================== */

/* P1: Tighten trust strips flush against header */
body.has-compact-header .s-trust-strip,
body.has-compact-header .trust-strip {
  margin-top: 0;
}

/* P1: Services trust strip — tighter padding */
body.has-compact-header .s-trust-strip {
  padding: 16px 0;
}

/* P3: Fresh Grabs — tighter vertical rhythm to products */
body.has-compact-header .s-filters {
  padding: 16px 0 0;
}

body.has-compact-header .s-filters .filters-bar {
  padding-bottom: 14px;
  gap: 14px;
}

body.has-compact-header .s-best-sellers {
  padding: 28px 0 16px;
}

body.has-compact-header .s-best-sellers .section-header {
  margin-bottom: 20px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
  .compact-page-header {
    padding: 80px 0 20px;
  }

  .cph-title {
    font-size: 1.55rem;
  }

  .cph-subtitle {
    font-size: 0.9rem;
  }

  .cph-credibility-row {
    gap: 6px 18px;
    padding: 10px 20px;
  }

  .cph-cred-item {
    font-size: 0.74rem;
  }

  .cph-wa-bar {
    justify-content: stretch;
    padding: 12px 0;
  }

  .cph-wa-btn {
    width: 100%;
    justify-content: center;
  }

  .cph-cta-block {
    padding: 28px 24px;
  }

  .cph-cta-block h3 {
    font-size: 1.15rem;
  }

  body.has-compact-header .s-trust-strip {
    padding: 14px 0;
  }

  body.has-compact-header .s-best-sellers {
    padding: 22px 0 10px;
  }

  body.has-compact-header .s-best-sellers .section-header {
    margin-bottom: 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .cph-breadcrumbs {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .compact-page-header {
    padding: 74px 0 18px;
  }

  .cph-title {
    font-size: 1.35rem;
  }

  .cph-subtitle {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .cph-credibility-row {
    gap: 5px 12px;
    padding: 9px 16px;
  }

  .cph-cred-item {
    font-size: 0.7rem;
    gap: 5px;
  }

  .cph-cta-block {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .cph-cta-block h3 {
    font-size: 1.08rem;
  }

  .cph-cta-block .cph-wa-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  body.has-compact-header .s-trust-strip {
    padding: 12px 0;
  }

  body.has-compact-header .s-filters {
    padding: 12px 0 0;
  }

  body.has-compact-header .s-filters .filters-bar {
    padding-bottom: 12px;
    gap: 10px;
  }

  body.has-compact-header .s-best-sellers {
    padding: 18px 0 8px;
  }

  body.has-compact-header .s-best-sellers .section-header {
    margin-bottom: 14px;
  }
}
