/* ==========================================================================
   FAQ (Views/Home/Faq.cshtml) - Blush & Berry help centre, light only.
   Loaded after the shared base (_BrandPageHead: landing.css, landing-pink.css,
   brand-page.css). Rules are `.fq .x` so they outrank mypariva.css.
   Behaviour (search, categories, accordion, deep links) lives in wwwroot/js/faq/.
   ========================================================================== */

.fq .fq-label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-madder); }
.fq .fq-label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.fq a:not(.lp-btn) { color: var(--lp-madder); }
.fq mark { padding: 0 2px; border-radius: 3px; background: rgba(var(--lp-turmeric-rgb), .7); color: var(--lp-ink); }

/* ==========================================================================
   HERO + SEARCH (compact: questions start within the first screen)
   ========================================================================== */
.fq .fq-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, var(--lp-paper-deep) 0%, var(--lp-paper) 100%); }
.fq .fq-hero__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.fq .fq-hero h1 { margin-top: 16px; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.034em; }
.fq .fq-hero h1 em { color: var(--lp-madder); font-weight: 400; }
.fq .fq-hero__lede { margin-top: 16px; font-size: 16.5px; max-width: 40ch; }
.fq .fq-hero__lede a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fq .fq-hero__lede a:hover { color: var(--lp-madder-deep); }

.fq .fq-search__label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-soft); }
.fq .fq-search__field { position: relative; display: flex; align-items: center; height: 64px; border-radius: 16px; background: var(--lp-surface); border: 1px solid var(--lp-line-strong); box-shadow: var(--lp-shadow-paper); transition: border-color .3s var(--lp-ease), box-shadow .3s var(--lp-ease); }
.fq .fq-search__field:hover { border-color: var(--lp-ink-soft); }
.fq .fq-search__field:focus-within { border-color: var(--lp-madder); box-shadow: 0 0 0 4px rgba(var(--lp-madder-rgb), .14), var(--lp-shadow-paper); }
.fq .fq-search__icon { position: absolute; left: 20px; color: var(--lp-ink-soft); pointer-events: none; }
.fq .fq-search__field input { flex: 1; min-width: 0; height: 100%; padding: 0 56px 0 54px; border: 0; background: transparent; font-size: 17px; color: var(--lp-ink); outline: none; -webkit-appearance: none; appearance: none; }
.fq .fq-search__field input::placeholder { color: var(--lp-ink-faint); }
.fq .fq-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fq .fq-search__clear { position: absolute; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--lp-ink-soft); cursor: pointer; transition: background-color .3s var(--lp-ease), color .3s var(--lp-ease); }
.fq .fq-search__clear:hover { background: rgba(var(--lp-madder-rgb), .08); color: var(--lp-madder); }

.fq .fq-quick { margin-top: 22px; }
.fq .fq-quick__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-soft); }
.fq .fq-quick__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 8px; border-top: 1px solid var(--lp-line); }
.fq .fq-quick__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 2px; border-bottom: 1px solid var(--lp-line); font-size: 15px; font-weight: 500; color: var(--lp-ink); text-decoration: none; transition: color .3s var(--lp-ease), padding-left .3s var(--lp-ease); }
.fq .fq-quick__list a svg { flex: 0 0 auto; color: var(--lp-madder); transition: transform .3s var(--lp-ease); }
.fq .fq-quick__list a:hover { color: var(--lp-madder); padding-left: 6px; }
.fq .fq-quick__list a:hover svg { transform: translateX(3px); }

@media (max-width: 960px) { .fq .fq-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.fq .fq-hero__search, .fq .fq-hero__copy { min-width: 0; }
@media (max-width: 600px) {
  /* Small screens: quick answers become one swipeable row so the questions stay close to the search. */
  .fq .fq-quick__list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; border-top: 0; margin-top: 8px; padding-bottom: 4px; }
  .fq .fq-quick__list::-webkit-scrollbar { display: none; }
  .fq .fq-quick__list li { flex: 0 0 auto; scroll-snap-align: start; }
  .fq .fq-quick__list a { min-height: 44px; padding: 8px 14px; border: 1px solid var(--lp-line-strong); border-radius: 999px; background: var(--lp-surface); font-size: 14px; white-space: nowrap; }
  .fq .fq-quick__list a:hover { padding-left: 14px; }
  .fq .fq-search__field { height: 58px; }
  .fq .fq-search__field input { font-size: 16px; }
}

/* ==========================================================================
   BROWSE: categories + results
   ========================================================================== */
.fq .fq-browse { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.fq .fq-browse__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.fq .fq-cats { position: sticky; top: calc(var(--mp-nav-h, 96px) + 20px); }
.fq .fq-cats__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-soft); margin-bottom: 10px; }
.fq .fq-cats__list { display: flex; flex-direction: column; gap: 2px; }
.fq .fq-cat { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 12px 0 16px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 15px; font-weight: 500; color: var(--lp-ink-soft); cursor: pointer; transition: background-color .3s var(--lp-ease), color .3s var(--lp-ease); }
.fq .fq-cat::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--lp-madder); transform: scaleY(0); transition: transform .35s var(--lp-ease); }
.fq .fq-cat:hover { background: rgba(var(--lp-madder-rgb), .05); color: var(--lp-ink); }
.fq .fq-cat[aria-pressed="true"] { background: var(--lp-surface); color: var(--lp-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(var(--lp-ink-rgb), .06), 0 8px 18px -14px rgba(var(--lp-ink-rgb), .4); }
.fq .fq-cat[aria-pressed="true"]::before { transform: scaleY(1); }
.fq .fq-cat__n { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--lp-ink-rgb), .06); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--lp-ink-soft); font-variant-numeric: tabular-nums; }
.fq .fq-cat[aria-pressed="true"] .fq-cat__n { background: var(--lp-madder); color: var(--lp-surface); }
.fq .fq-cat.is-zero .fq-cat__n { opacity: .5; }

.fq .fq-results__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-bottom: 8px; }
.fq .fq-status { font-size: 14.5px; font-weight: 600; color: var(--lp-ink); }
.fq .fq-status em { font-style: normal; color: var(--lp-madder); }
.fq .fq-toggle-all { min-height: 40px; padding: 0 14px; border: 1px solid var(--lp-line-strong); border-radius: 10px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--lp-ink); cursor: pointer; transition: border-color .3s var(--lp-ease), color .3s var(--lp-ease); }
.fq .fq-toggle-all:hover { border-color: var(--lp-madder); color: var(--lp-madder); }

.fq .fq-group + .fq-group { margin-top: 36px; }
.fq .fq-group__title { padding: 16px 0 12px; border-top: 2px solid var(--lp-ink); font-size: clamp(22px, 2vw, 28px); }
.fq .fq-list { border-top: 1px solid var(--lp-line); }

.fq .fq-item { border-bottom: 1px solid var(--lp-line); scroll-margin-top: calc(var(--mp-nav-h, 96px) + 24px); }
.fq .fq-item__h { margin: 0; font-size: inherit; }
.fq .fq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px; padding: 14px 8px 14px 4px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 8px; transition: background-color .3s var(--lp-ease); }
.fq .fq-item__q:hover { background: rgba(var(--lp-madder-rgb), .04); }
.fq .fq-item__text { font-family: var(--lp-serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; color: var(--lp-ink); }
.fq .fq-item__icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--lp-line-strong); color: var(--lp-ink); transition: transform .4s var(--lp-ease), background-color .3s var(--lp-ease), color .3s var(--lp-ease), border-color .3s var(--lp-ease); }
.fq .fq-item__q:hover .fq-item__icon { border-color: var(--lp-madder); color: var(--lp-madder); }
.fq .fq-item.is-open .fq-item__icon { transform: rotate(45deg); background: var(--lp-madder); border-color: var(--lp-madder); color: var(--lp-surface); }
.fq .fq-item.is-open .fq-item__text { color: var(--lp-madder-deep); }

/* Expand/collapse without measuring heights: the panel animates grid rows 0fr -> 1fr.
   Without JavaScript every answer stays open and readable. */
.fq .fq-item__panel { display: grid; grid-template-rows: 1fr; }
.js .fq .fq-item__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--lp-ease), visibility 0s linear .4s; }
.js .fq .fq-item.is-open .fq-item__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--lp-ease), visibility 0s; }
.fq .fq-item__inner { min-height: 0; overflow: hidden; }
.fq .fq-item__answer { padding: 0 52px 4px 4px; max-width: 72ch; }
.fq .fq-item__answer p { font-size: 16.5px; line-height: 1.7; color: var(--lp-ink-soft); }
.fq .fq-item__answer p + p { margin-top: 12px; }
.fq .fq-item__answer strong { color: var(--lp-ink); font-weight: 600; }
.fq .fq-item__answer a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fq .fq-item__answer a:hover { color: var(--lp-madder-deep); }
.fq .fq-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 4px 22px; }
.fq .fq-item__related { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: rgba(var(--lp-madder-rgb), .08); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .3s var(--lp-ease); }
.fq .fq-item__related:hover { background: rgba(var(--lp-madder-rgb), .14); }
.fq .fq-item__related svg { transition: transform .3s var(--lp-ease); }
.fq .fq-item__related:hover svg { transform: translateX(3px); }
.fq .fq-item__copy { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--lp-ink-soft); cursor: pointer; transition: color .3s var(--lp-ease), background-color .3s var(--lp-ease); }
.fq .fq-item__copy:hover { color: var(--lp-madder); background: rgba(var(--lp-madder-rgb), .06); }
.fq .fq-item__copy.is-done { color: var(--lp-neem-ink); }
.fq .fq-item.is-target .fq-item__q { background: rgba(var(--lp-madder-rgb), .07); }

.fq .fq-empty { margin-top: 8px; padding: 32px; border: 1.5px dashed var(--lp-line-strong); border-radius: 18px; text-align: center; }
.fq .fq-empty__title { font-family: var(--lp-serif); font-size: 24px; color: var(--lp-ink); }
.fq .fq-empty__text { margin-top: 8px; font-size: 16px; }
.fq .fq-empty__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fq .fq-empty__act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 20px; }
.fq .fq-empty__clear { min-height: 44px; padding: 0 16px; border: 1px solid var(--lp-line-strong); border-radius: 4px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--lp-ink); cursor: pointer; }
.fq .fq-empty__clear:hover { border-color: var(--lp-madder); color: var(--lp-madder); }

@media (max-width: 900px) {
  .fq .fq-browse__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fq .fq-cats { position: sticky; top: calc(var(--mp-nav-h, 80px) - 4px); z-index: 5; margin: 0 calc(var(--lp-gutter) * -1); padding: 10px var(--lp-gutter); background: rgba(var(--lp-paper-rgb), .96); border-bottom: 1px solid var(--lp-line); }
  .fq .fq-cats__title { display: none; }
  .fq .fq-cats__list { flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .fq .fq-cats__list::-webkit-scrollbar { display: none; }
  .fq .fq-cat { flex: 0 0 auto; min-height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--lp-line-strong); border-radius: 999px; scroll-snap-align: start; }
  .fq .fq-cat::before { display: none; }
  .fq .fq-cat[aria-pressed="true"] { border-color: var(--lp-madder); }
  .fq .fq-item__answer { padding-right: 4px; }
}

/* ==========================================================================
   SUPPORT (compact)
   ========================================================================== */
.fq .fq-support { padding: 0 0 clamp(64px, 8vw, 112px); }
.fq .fq-support__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: linear-gradient(135deg, var(--lp-clay-soft) 0%, var(--lp-paper-deep) 70%); border: 1px solid var(--lp-line); }
.fq .fq-support__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lp-surface); color: var(--lp-madder); box-shadow: 0 8px 18px -12px rgba(var(--lp-ink-rgb), .5); }
.fq .fq-support h2 { font-size: clamp(24px, 2.4vw, 32px); }
.fq .fq-support__copy p { margin-top: 6px; font-size: 16px; }
@media (max-width: 640px) { .fq .fq-support__inner { grid-template-columns: 1fr; text-align: left; } .fq .fq-support .lp-btn { width: 100%; } }
