/* ==========================================================================
   ProHealth mobile homepage (<= 900px)
   Source of truth: ProHealth Mobile reference HTML + mockup (Sept 2026)
   Prefix: ph-*   Loaded after styles.css from layouts/public.blade.php
   ========================================================================== */

.ph-top, .ph-home { display: none; }

@media (min-width: 901px) {
  .ph-top, .ph-home { display: none !important; }
}

@media (max-width: 900px) {

  /* ---- tokens ---- */
  :root {
    --ph-navy: #123764;
    --ph-navy2: #0b2f5b;
    --ph-cyan: #18b7d2;
    --ph-cyan2: #0da9c5;
    --ph-muted: #5a6b83;
    --ph-line: #dfe8f0;
    --ph-pale: #edf8fd;
    --ph-shadow: 0 10px 28px rgba(25,59,91,.08);
  }

  /* ---- page shell overrides (old mobile chrome off) ---- */
  body { background: #fff; padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  .trust-bar,
  .mob-header,
  .mob-bottom-nav,
  .floating-chat,
  .m-hero, .m-areas, .m-act-cards, .m-rating-cta { display: none !important; }
  .site-header { position: relative !important; top: auto; background: transparent !important; border-bottom: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  .ph-top, .ph-home { display: block; color: var(--ph-navy); }
  .ph-top *, .ph-home * { box-sizing: border-box; }
  .ph-wrap { width: 100%; max-width: 440px; margin: 0 auto; }

  /* ======================================================================
     HEADER  (logo row + search + quick nav)
     ====================================================================== */
  .ph-top {
    background:
      radial-gradient(120% 60% at 85% 0%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 60%),
      linear-gradient(180deg, #dcf0fb 0%, #e8f6fd 46%, #f6fbfe 82%, #fff 100%);
  }
  .ph-header { padding: 10px 17px 6px; position: relative; }
  .ph-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ph-logo { display: block; flex: 0 1 auto; min-width: 0; }
  .ph-logo img { width: 170px; max-width: 100%; height: auto; display: block; }

  .ph-actions { display: flex; gap: 6px; flex: none; }
  .ph-round {
    width: 44px; height: 44px; min-width: 44px; flex: none; border-radius: 50%;
    background: rgba(255,255,255,.86);
    display: grid; place-items: center; position: relative;
    box-shadow: 0 8px 18px rgba(35,77,120,.10);
    border: 0; padding: 0; cursor: pointer; color: var(--ph-navy2);
  }
  .ph-round svg { width: 20px; height: 20px; }
  .ph-dot { position: absolute; right: 9px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff3d45; box-shadow: 0 0 0 2px #fff; }
  .ph-badge {
    position: absolute; right: -3px; top: -4px;
    min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
    background: var(--ph-cyan-600); color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
    display: grid; place-items: center; box-shadow: 0 0 0 2px #fff;
  }

  .ph-search {
    margin-top: 10px; height: 52px; border-radius: 16px; background: #fff;
    box-shadow: var(--ph-shadow); border: 1px solid rgba(20,65,100,.05);
    display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px;
  }
  .ph-search__icon { width: 24px; height: 24px; stroke: #0aa8c4; fill: none; stroke-width: 2; flex: none; }
  .ph-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 15px; color: var(--ph-navy); padding: 0; height: 100%;
    text-overflow: ellipsis;
  }
  .ph-search input::placeholder { color: var(--ph-placeholder); opacity: 1; }
  .ph-scan { flex: none; width: 44px; height: 44px; margin-right: -6px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
  .ph-scan svg { width: 24px; height: 24px; stroke: var(--ph-navy); fill: none; stroke-width: 2; }

  .ph-quicknav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 2px 10px 6px;
  }
  .ph-q {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center; font-size: 12px; line-height: 1.2; font-weight: 800;
    color: var(--ph-navy2); min-width: 0; padding: 4px 2px 0;
  }
  .ph-q:not(:last-child) { border-right: 1px solid #dfe9f1; }
  .ph-qicon {
    width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.92);
    display: grid; place-items: center; box-shadow: 0 6px 16px rgba(35,77,120,.08);
  }
  .ph-qicon svg { width: 23px; height: 23px; }

  /* ======================================================================
     HERO
     ====================================================================== */
  .ph-hero {
    margin: 6px 17px 0; border-radius: 22px; min-height: 472px;
    position: relative; overflow: hidden; isolation: isolate;
    background:
      linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 40%, rgba(255,255,255,.55) 56%, rgba(255,255,255,.08) 78%, rgba(255,255,255,0) 100%),
      url('assets/hero-rock.jpg') 62% center / cover no-repeat;
    box-shadow: 0 12px 30px rgba(25,59,91,.08);
  }
  .ph-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(199,232,251,.15), rgba(216,244,255,.10));
  }
  .ph-hero__inner { position: relative; z-index: 2; padding: 24px 20px 148px; width: 76%; }
  .ph-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.92); border: 1px solid #b9e7dc; border-radius: 999px;
    padding: 5px 11px 5px 5px; font-size: 12px; font-weight: 600; color: #3f5f55;
    box-shadow: 0 5px 15px rgba(15,74,99,.05); white-space: nowrap;
  }
  .ph-lockdot { width: 22px; height: 22px; border-radius: 50%; background: #d7faef; display: grid; place-items: center; flex: none; }
  .ph-lockdot svg { width: 12px; height: 12px; fill: #0ea178; }
  .ph-hero h1 {
    font-size: clamp(22px, 6.9vw, 30px); line-height: 1.04; letter-spacing: -.6px;
    margin: 20px 0 16px; color: #103866; font-weight: 900; white-space: nowrap;
  }
  .ph-hero p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #163d68; font-weight: 500; width: 250px; max-width: 100%; }

  .ph-trustrow {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
    background: rgba(240,250,255,.90); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    padding: 14px 5px; border-top: 1px solid rgba(15,76,110,.05);
    border-radius: 0 0 22px 22px;
  }
  .ph-trust { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px; min-width: 0; }
  .ph-trust:not(:last-child) { border-right: 1px solid #dbe8f1; }
  .ph-ticon { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(30,76,108,.06); }
  .ph-ticon svg { width: 17px; height: 17px; }
  .ph-trust br { display: none; }
  .ph-trust > span:last-child { font-size: 12px; line-height: 1.2; font-weight: 700; color: #163f68; white-space: normal; letter-spacing: 0; }

  /* ======================================================================
     BROWSE BY HEALTH AREA
     ====================================================================== */
  .ph-section { padding: 20px 17px 0; }
  .ph-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
  .ph-section__head h2 { font-size: 18px; margin: 0; font-weight: 900; color: #123762; letter-spacing: -.2px; }
  .ph-view { font-size: 13px; color: var(--ph-text-muted); padding: 12px 4px; margin: -12px -4px; display: flex; gap: 6px; align-items: center; font-weight: 600; }
  .ph-view svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }

  .ph-cats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 17px; margin: 0 -17px; padding: 2px 17px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ph-cats::-webkit-scrollbar { display: none; }
  .ph-cat {
    flex: 0 0 104px; scroll-snap-align: start; border-radius: 16px; padding: 16px 6px 12px; text-align: center; min-height: 158px;
    display: flex; flex-direction: column; align-items: center; color: #123762;
  }
  .ph-cat--men     { background: #e9f4ff; }
  .ph-cat--women   { background: #ffeef1; }
  .ph-cat--chronic { background: #e5f8f0; }
  .ph-cat--general { background: #efeeff; }
  .ph-cat--travel  { background: #fff4e5; }
  .ph-cat--sexual  { background: #e8f8ee; }
  .ph-cat--weight  { background: #fff0e2; }
  .ph-cat--nad     { background: #f1ebff; }
  .ph-cat__icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 9px; }
  .ph-cat__icon svg { width: 32px; height: 32px; }
  .ph-cat b { font-size: 14px; line-height: 1.2; font-weight: 800; min-height: 34px; letter-spacing: -.1px; }
  .ph-arrow {
    margin-top: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; box-shadow: 0 5px 10px rgba(0,0,0,.05);
  }
  .ph-arrow svg { width: 14px; height: 14px; stroke: #123762; fill: none; stroke-width: 2.4; }

  /* ======================================================================
     ACTION CARDS
     ====================================================================== */
  .ph-actcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 17px 0; }
  .ph-act {
    border-radius: 18px; min-height: 190px; padding: 16px 14px 56px; position: relative; overflow: hidden;
    display: block; color: #123762;
  }
  .ph-act--consult { background: linear-gradient(135deg, #e8f9ff, #dcf2fb); }
  .ph-act--browse  { background: linear-gradient(135deg, #e7fbf5, #dbf5e8); }
  .ph-act__waves {
    position: absolute; left: 0; right: 0; bottom: 0; height: 52%; opacity: .38; pointer-events: none;
    background:
      radial-gradient(120% 80% at 10% 100%, #99dff2 0 30%, transparent 31%),
      radial-gradient(120% 80% at 70% 100%, #b4efe1 0 30%, transparent 31%);
  }
  .ph-act__top { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; }
  .ph-act__body { position: relative; z-index: 2; }
  .ph-aicon { width: 40px; height: 40px; border-radius: 50%; background: #d4f1fa; display: grid; place-items: center; flex: none; }
  .ph-act--browse .ph-aicon { background: #cff1e4; }
  .ph-aicon svg { width: 22px; height: 22px; stroke: #0ba8c4; fill: none; stroke-width: 2; }
  .ph-act--browse .ph-aicon svg { stroke: #149f86; }
  .ph-act h3 { margin: 0; font-size: 15px; line-height: 1.2; font-weight: 800; color: #123762; }
  .ph-act p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: #4f6178; padding-right: 0; }
  .ph-go {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.5);
    display: grid; place-items: center;
  }
  .ph-go svg { width: 16px; height: 16px; stroke: #0aa6bd; fill: none; stroke-width: 2.2; }

  /* ======================================================================
     RATING + CTAs
     ====================================================================== */
  .ph-rating { margin: 14px 17px 0; background: #edf7fc; border-radius: 14px; padding: 12px 10px 11px; text-align: center; }
  .ph-rating__line { display: flex; align-items: center; justify-content: center; gap: 7px; }
  .ph-stars { display: inline-flex; gap: 1px; }
  .ph-stars svg { width: 17px; height: 17px; fill: #ffb100; }
  .ph-rating strong { font-size: 14px; color: #123762; font-weight: 800; }
  .ph-rating small { display: block; margin-top: 3px; color: var(--ph-text-muted); font-size: 12px; }

  .ph-ctas { padding: 8px 17px 20px; display: grid; gap: 10px; }
  .ph-btn {
    height: 58px; border-radius: 30px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; position: relative;
  }
  .ph-btn--primary { background: var(--ph-cyan-600); color: #fff; box-shadow: 0 10px 22px rgba(10,127,168,.25); }
  .ph-btn--secondary { border: 1.6px solid #143e6b; color: #123762; background: #fff; }
  .ph-btn__circle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
  .ph-btn__circle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  .ph-btn--primary .ph-btn__circle { border: 1px solid rgba(255,255,255,.85); }
  .ph-btn--secondary .ph-btn__circle { background: #e3eef6; color: #123762; }


  /* ======================================================================
     LIVE SEARCH (mobile placement; card styles in live-search.css)
     ====================================================================== */
  .ph-search__clear {
    flex: none; width: 36px; height: 36px; border: 0; background: none; padding: 0;
    display: grid; place-items: center; cursor: pointer; color: #1f2a37;
  }
  .ph-search__clear[hidden], .ph-scan[hidden] { display: none; }
  .ph-search__clear svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.2; }
  .ph-search input::-webkit-search-cancel-button,
  .ph-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
  .ph-search.is-open { border-color: #c7d2dc; box-shadow: 0 6px 18px rgba(25,59,91,.10); }
  .ph-header .ph-sd { left: 17px; right: 17px; margin-top: 12px; }
  .ph-header .ph-sd::before { right: 20px; }

  /* press feedback + hit areas */
  .ph-btn, .ph-cat, .ph-act, .ph-round, .ph-art { transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
  .ph-btn:active, .ph-cat:active, .ph-act:active, .ph-round:active, .ph-art:active { transform: scale(.98); }
  .ph-go { width: 44px; height: 44px; right: 8px; bottom: 8px; }

  /* HOW IT WORKS / HEALTH HUB / REVIEWS (compact mobile versions) */
  .ph-steps { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: s; }
  .ph-steps::before { content: ""; position: absolute; left: 14px; top: 14px; bottom: 26px; width: 2px; background: linear-gradient(#7fd0e8, #b9e6f3); border-radius: 2px; }
  .ph-step { position: relative; display: block; padding: 0 0 16px 46px; background: none; border-radius: 0; }
  .ph-step:last-child { padding-bottom: 0; }
  .ph-step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ph-cyan-600); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
  .ph-step h3 { margin: 0; padding-top: 4px; font-size: 15px; line-height: 1.25; font-weight: 800; color: #123762; }
  .ph-step p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--ph-text-muted); }
  .ph-lede { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--ph-text-muted); }
  .ph-hub, .ph-revs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 17px; padding: 2px 17px 8px; margin: 0 -17px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ph-hub::-webkit-scrollbar, .ph-revs::-webkit-scrollbar { display: none; }
  .ph-art { flex: 0 0 80%; scroll-snap-align: start; background: #fff; border: 1px solid var(--ph-line); border-radius: 16px; overflow: hidden; box-shadow: var(--ph-shadow); display: block; color: inherit; }
  .ph-art__img { display: block; aspect-ratio: 16 / 9; background: #e6f2fa; overflow: hidden; }
  .ph-art__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ph-art__body { display: block; padding: 12px 14px 14px; }
  .ph-art__tag { font-size: 12px; font-weight: 800; color: var(--ph-blue-600); letter-spacing: .06em; text-transform: uppercase; }
  .ph-art h3 { margin: 4px 0 6px; font-size: 15px; line-height: 1.3; font-weight: 800; color: #123762; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ph-art p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ph-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ph-empty { background: #f3f9fd; border-radius: 16px; padding: 18px; font-size: 14px; line-height: 1.5; color: var(--ph-text-muted); }
  .ph-empty a { display: inline-block; margin-top: 4px; padding: 12px 0; font-weight: 800; color: var(--ph-cyan-600); }
  .ph-revs { margin-top: 0; }
  .ph-rev { flex: 0 0 86%; scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--ph-line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--ph-shadow); }
  .ph-rev blockquote { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #24405f; }
  .ph-rev figcaption { font-size: 13px; color: var(--ph-text-muted); }
  .ph-rev figcaption strong { color: #123762; margin-right: 6px; }
}

/* small phones */
@media (max-width: 370px) {
  .ph-header { padding-left: 12px; padding-right: 12px; }
  .ph-logo img { width: 148px; }
  .ph-round { width: 44px; height: 44px; }
  .ph-actions { gap: 7px; }
  .ph-q { font-size: 12px; }
  .ph-qicon { width: 44px; height: 44px; }
  .ph-hero { margin-left: 12px; margin-right: 12px; }
  .ph-hero__inner { width: 80%; padding-left: 16px; }
  .ph-section, .ph-actcards, .ph-ctas { padding-left: 12px; padding-right: 12px; }
  .ph-rating { margin-left: 12px; margin-right: 12px; }
  .ph-cats { gap: 8px; }
  .ph-cat b { font-size: 13.5px; }
    }

@media (max-width: 900px) {
  .ph-reviews { padding-bottom: 4px; }
  .ph-revhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  .ph-revhead h2 { margin: 0; font-size: 18px; font-weight: 900; color: #123762; letter-spacing: -.2px; }
  .ph-revscore { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ph-text-muted); }
  .ph-revscore strong { color: #123762; font-size: 14px; font-weight: 800; }
  .ph-revscore .ph-stars svg { width: 14px; height: 14px; }
  .ph-section { padding-top: 24px; }
}
