/* ══════════════════════════════════════════
   BARKHOUSE CREATIVE CO. — SITE EXTRAS
   Loaded after style.css on every page.
   Additions + corrections; can be folded
   into style.css whenever convenient.
   ══════════════════════════════════════════ */

/* ── DOCK: container must not swallow clicks ──
   The dock is a fixed flex column containing a hidden panel, so its
   bounding box covers a large area of the viewport even when closed.
   Without this, that invisible box intercepts every click behind it. */
.bh-dock { pointer-events: none; }
.bh-dock > * { pointer-events: auto; }

/* ── NAV: six items, and never allowed to overflow off-screen ──
   Without min-width:0 the list refuses to shrink, so on narrower
   windows the last tabs (About, Contact) slid past the right edge
   and became unclickable. */
.nav ul {
  gap: 26px;
  row-gap: 10px;
  min-width: 0;
  justify-content: flex-end;
}
@media (max-width: 1080px) { .nav ul { gap: 18px; } }
@media (max-width: 860px)  { .nav ul { gap: 14px; } }

/* ── TIER: add-on pointer under the Essential "not included" list ── */
.tier .addon-note {
  margin-top: 12px;
  margin-bottom: 30px;
  font-size: 0.78rem;
}
.tier ul.not li a { color: var(--kelp); }

/* ── FOOTER: centre the info lines ──
   Paragraphs inherit max-width:640px from the base p rule, which left
   them as a narrow box pinned to the left edge of a centred footer. */
footer p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER: Instagram + legal links ── */
footer .social { margin-bottom: 16px; }
footer .social a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelp);
  text-decoration: none;
  border-bottom: 1px solid var(--amberline);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
footer .social a:hover { color: var(--copper); border-color: var(--copper); }

footer .legal-links {
  margin-top: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
footer .legal-links a {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.25s;
}
footer .legal-links a:hover { color: var(--kelp); }

/* ── LEGAL & FAQ DOCUMENTS ── */
.legal-doc { text-align: left; }
.legal-doc .updated {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 34px;
  display: block;
}
.legal-doc h2 {
  margin-top: 56px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.legal-doc h2:first-of-type { margin-top: 8px; }
.legal-doc h3 {
  margin-top: 34px;
  margin-bottom: 10px;
}
.legal-doc p { max-width: none; }
.legal-doc p, .legal-doc li {
  font-size: 0.94rem;
  line-height: 1.85;
}
.legal-doc ul {
  margin: 16px 0 0 22px;
  list-style: disc;
}
.legal-doc li { margin-bottom: 9px; }
.legal-doc a { color: var(--kelp); }
.legal-doc a:hover { color: var(--copper); }

/* ── DOWNLOADS: per-product headings in the "Inside the Library" section ── */
.dl-heading {
  margin-top: 54px;
  margin-bottom: 4px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}
.section-head + .dl-heading { margin-top: 8px; }
.dl-heading .dl-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 10px;
  vertical-align: middle;
}


/* ── FOOTER: social row separator ── */
footer .social-sep {
  color: var(--line);
  margin: 0 14px;
  font-size: 0.72rem;
}

/* ── DOWNLOADS: formula line + closing note ── */
.dl-formula {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--dusk);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warm);
  padding: 16px 22px;
  margin: 18px 0 6px;
  max-width: none;
  line-height: 1.5;
}
.dl-formula span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--warm);
  margin: 0 4px;
}
.dl-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--soft);
  font-style: italic;
  max-width: 720px;
}

/* ══════════════════════════════════════════
   FAQ — accordion
   ══════════════════════════════════════════ */
.faq-doc { text-align: left; }

.faq-hint {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 40px;
}

.faq-group + .faq-group { margin-top: 52px; }

.faq-cat {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--kelp); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--dusk);
  transition: color 0.2s;
}

/* plus / minus built from two bars */
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 5px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--warm);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.faq-icon::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq-icon::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item[open] .faq-q { color: var(--kelp); }

.faq-a {
  padding: 0 4px 24px;
  animation: faqIn 0.26s ease;
}
.faq-a p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 640px;
}
.faq-a p + p { margin-top: 12px; }
.faq-a a { color: var(--kelp); border-bottom: 1px solid var(--amberline); text-decoration: none; }
.faq-a a:hover { color: var(--copper); border-color: var(--copper); }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ── DOWNLOADS: buy + preview action row ── */
.product .product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.product .product-actions .btn { margin-top: 0; }

.preview-link {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelp);
  text-decoration: none;
  border-bottom: 1px solid var(--amberline);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.preview-link:hover { color: var(--copper); border-color: var(--copper); }
.preview-link.muted {
  color: var(--soft);
  border-bottom: none;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}
