/* ============================================================
   FULANI HAIR GRO — Responsive Fix
   Target: fulanihairsecrets.com
   Mobile-first: base = 375px, tablet = 768px, desktop = 1024px
   ============================================================ */

/* ── 1. GLOBAL RESET ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── 2. TRUST BAR — MARQUEE ON MOBILE, STATIC ON DESKTOP ───── */

/* Hide the static trust bar on mobile */
.trust-bar,
[class*="trust-bar"],
[class*="announcement-bar"],
[class*="top-bar"] {
  overflow: hidden;
}

/* ── MARQUEE WRAPPER — mobile only ── */
@media (max-width: 767px) {

  /* Force the trust bar to be a single-line ticker */
  .trust-bar,
  [class*="trust-bar"],
  [class*="announcement-bar"],
  [class*="top-bar"] {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding: 0;
    height: 40px;           /* Fixed height — no wrapping */
  }

  /* Hide any original inner flex/grid layout that causes wrapping */
  .trust-bar > *,
  [class*="trust-bar"] > *,
  [class*="announcement-bar"] > *,
  [class*="top-bar"] > * {
    display: none !important;
  }

  /* Inject the scrolling ticker via a pseudo element.
     Replace the content string below with your actual trust items. */
  .trust-bar::after,
  [class*="trust-bar"]::after,
  [class*="announcement-bar"]::after,
  [class*="top-bar"]::after {
    content: "♥ 100,000+ Happy Customers   🚚 Payment On Delivery   🛡 Money-Back Guarantee   📢 Not Sold in Stores   ♥ 100,000+ Happy Customers   🚚 Payment On Delivery   🛡 Money-Back Guarantee   📢 Not Sold in Stores";
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;             /* adjust to match brand */
    padding-left: 100%;      /* start offscreen right */
    animation: trustTicker 20s linear infinite;
  }
}

/* ── MARQUEE KEYFRAMES ── */
@keyframes trustTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
  /* -50% because content is doubled to create seamless loop */
}

/* Pause on hover/focus for accessibility */
.trust-bar:hover::after,
[class*="trust-bar"]:hover::after {
  animation-play-state: paused;
}


/* ── 3. DESKTOP — Keep trust bar static (no ticker) ─────────── */
@media (min-width: 768px) {

  .trust-bar,
  [class*="trust-bar"],
  [class*="announcement-bar"],
  [class*="top-bar"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 8px 24px;
  }

  /* Restore children visibility */
  .trust-bar > *,
  [class*="trust-bar"] > *,
  [class*="announcement-bar"] > *,
  [class*="top-bar"] > * {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Remove pseudo-element ticker on desktop */
  .trust-bar::after,
  [class*="trust-bar"]::after,
  [class*="announcement-bar"]::after,
  [class*="top-bar"]::after {
    content: none;
  }
}


/* ── 4. NAVIGATION BAR ───────────────────────────────────────── */

/* Mobile nav: logo left, CTA right, vertically centred */
@media (max-width: 767px) {
  nav,
  header nav,
  [class*="navbar"],
  [class*="nav-bar"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 56px;
  }

  /* Prevent CTA button clipping on small screens */
  nav a[class*="btn"],
  nav button,
  [class*="navbar"] a[class*="btn"],
  [class*="navbar"] button {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}


/* ── 5. HERO SECTION ─────────────────────────────────────────── */

@media (max-width: 767px) {

  /* Stack hero content vertically */
  [class*="hero"],
  [class*="banner"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 16px;
  }

  /* Woman photo: full width, on top */
  [class*="hero"] img:first-of-type,
  [class*="banner"] img:first-of-type {
    width: 100%;
    max-width: 360px;
    height: auto;
    order: 1;
  }

  /* Product bottles: full width, below photo */
  [class*="hero"] img:last-of-type,
  [class*="banner"] img:last-of-type {
    width: 100%;
    max-width: 360px;
    height: auto;
    order: 2;
  }

  /* Benefit callout text — prevent overflow/clipping */
  [class*="hero"] [class*="callout"],
  [class*="hero"] [class*="benefit"],
  [class*="hero"] [class*="label"] {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    max-width: 120px;
  }
}


/* ── 6. STICKY BOTTOM CTA BAR ───────────────────────────────── */

@media (max-width: 767px) {

  [class*="sticky-bar"],
  [class*="sticky-cta"],
  [class*="bottom-bar"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* Product name + subtext block */
  [class*="sticky-bar"] [class*="text"],
  [class*="sticky-bar"] [class*="info"],
  [class*="sticky-bar"] p,
  [class*="sticky-bar"] span {
    font-size: 12px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  /* CTA button — never shrinks or clips */
  [class*="sticky-bar"] a,
  [class*="sticky-bar"] button {
    flex-shrink: 0;
    font-size: 13px;
    padding: 10px 16px;
    white-space: nowrap;
  }
}


/* ── 7. IMAGES — Prevent overflow globally ──────────────────── */

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ── 8. TABLET OVERRIDES (768px+) ──────────────────────────── */

@media (min-width: 768px) {

  [class*="hero"],
  [class*="banner"] {
    flex-direction: row;
    text-align: left;
  }
}


/* ── 9. DESKTOP OVERRIDES (1024px+) ────────────────────────── */

@media (min-width: 1024px) {

  [class*="hero"],
  [class*="banner"] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
  }
}
