/* ================================================================
   House of Deer — support pages (FAQ + Contact)
   Minimal: type, hairlines and space. No panels, pills or cards.
   Loaded after styles.css on faq.html and contact.html only, so the
   FAQ block on the home page keeps its own look.
   ================================================================ */

/* ---------- FAQ ---------- */
.faq-page {
  background: var(--bg);                 /* plain page — no blue wash */
  padding-top: clamp(120px, 16vh, 176px);
  padding-bottom: clamp(80px, 10vw, 130px);
}
.faq-page .container { max-width: 920px; }

.faq-page-head {
  max-width: none;
  text-align: center;
  margin: 0 auto clamp(34px, 4.5vw, 56px);
}
.faq-page-head .paragraph3 { margin-bottom: 14px; font-size: 0.8rem; }
.faq-page-head .title { margin: 0; }

/* categories: plain words, the active one in white with a hairline under it */
.faq-page .faq-tabs {
  justify-content: safe center;          /* centred when it fits, scrolls when it doesn't */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: clamp(16px, 2.2vw, 26px);
  margin-bottom: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(var(--ink), 0.08);
}
.faq-page .faq-tabs::-webkit-scrollbar { display: none; }
.faq-page .faq-tab {
  flex: none;
  position: relative;
  padding: 6px 0 14px;
  background: none;
  border: 0;
  border-radius: 0;
  color: rgba(var(--ink), 0.46);
  font-size: 0.875rem;          /* same as the blog filters */
  letter-spacing: 0.01em;
}
.faq-page .faq-tab:hover { color: rgba(var(--ink), 0.8); background: none; }
.faq-page .faq-tab.is-active { background: none; color: var(--text); }
.faq-page .faq-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -15px;          /* sits on the row's hairline */
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.faq-page .faq-tab.is-active::after { transform: scaleX(1); }

/* questions sit in one soft rounded box, hairlines between them */
.faq-page .faq-panel {
  background: rgba(var(--ink), 0.04);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.08);
  border-radius: 20px;
  padding: 0 clamp(20px, 3vw, 36px);
}
.faq-page .faq-item { border-top-color: rgba(var(--ink), 0.08); }
.faq-page .faq-q {
  padding: clamp(20px, 2.2vw, 26px) 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}
.faq-page .faq-q:hover { color: var(--text); }
.faq-page .faq-q:hover .faq-icon { color: var(--text); }
.faq-page .faq-icon { width: 13px; height: 13px; color: rgba(var(--ink), 0.4); }
.faq-page .faq-icon::before { width: 12px; height: 1px; }
.faq-page .faq-icon::after  { width: 1px; height: 12px; }
.faq-page .faq-a p {
  padding: 0 0 26px;
  color: rgba(var(--ink), 0.62);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* one quiet line instead of a call-to-action band */
.faq-page-cta {
  display: block;
  max-width: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  border: 0;
  text-align: center;
  color: rgba(var(--ink), 0.5);
  font-size: 0.95rem;
}
.faq-page-cta a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--ink), 0.25);
  padding-bottom: 2px;
  margin-left: 4px;
  transition: border-color 0.25s var(--ease);
}
.faq-page-cta a:hover { border-bottom-color: var(--text); }

@media (max-width: 640px) {
  /* categories scroll sideways on a phone instead of wrapping into a block */
  .faq-page .faq-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -20px; margin-right: -20px;
    padding: 0 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
  }
  .faq-page .faq-tabs::-webkit-scrollbar { display: none; }
  .faq-page .faq-tab { flex: none; }
  .faq-page-cta { flex-direction: row; align-items: center; }
}

/* ---------- CONTACT ----------
   One centred column: title, three fields on hairlines, a send button,
   and a quiet line with the email address. */
.ct-page { padding-top: clamp(120px, 16vh, 176px); padding-bottom: clamp(70px, 9vw, 110px); }
.ct-page .container { max-width: 620px; }

.ct-page .ct-head { margin-bottom: clamp(34px, 4.5vw, 52px); }
.ct-page .ct-eyebrow { font-size: 0.8rem; margin-bottom: 14px; }
.ct-page .ct-title { font-size: clamp(2.4rem, 5.6vw, 3.6rem); margin-bottom: 14px; }
.ct-page .ct-lead { font-size: 1rem; color: rgba(var(--ink), 0.55); }

/* no card — the form sits straight on the page */
.ct-page .ct-form-wrap {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.ct-page .ct-grid { gap: 16px; }

/* fields: rounded boxes, as on the rest of the site */
.ct-page .ct-field textarea { resize: vertical; }

.ct-addorder {
  display: inline-block;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(var(--ink), 0.5);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.ct-addorder:hover { color: var(--text); }

.ct-page .ct-submit { width: 100%; height: 50px; margin-top: 30px; }

/* email + FAQ, one quiet line each */
.ct-alt {
  margin-top: clamp(40px, 5vw, 56px);
  text-align: center;
  color: rgba(var(--ink), 0.5);
  font-size: 0.95rem;
  line-height: 2;
}
.ct-alt p { margin: 0; }
.ct-alt a,
.ct-legal a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--ink), 0.25);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease);
}
.ct-alt a:hover,
.ct-legal a:hover { border-bottom-color: var(--text); }

.ct-legal {
  margin: clamp(48px, 6vw, 70px) 0 0;
  text-align: center;
  color: rgba(var(--ink), 0.3);
  font-size: 0.76rem;
  line-height: 1.7;
}
.ct-legal a { color: rgba(var(--ink), 0.5); border-bottom-color: rgba(var(--ink), 0.15); }

/* success state */
.ct-page .ct-done { text-align: center; padding: 20px 0; }
.ct-back {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--ink), 0.25);
}

@media (max-width: 560px) {
  .ct-page .ct-grid { grid-template-columns: 1fr; gap: 24px; }
}
.ct-page .ct-field[hidden], .ct-addorder[hidden] { display: none; }
.ct-page .ct-eyebrow { display: inline-block; }

/* labels live inside the boxes as placeholders; the real <label> text stays
   for screen readers only */
.ct-page form .ct-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ct-page .ct-field { gap: 0; }
.ct-page .ct-field input::placeholder,
.ct-page .ct-field textarea::placeholder { color: rgba(var(--ink), 0.42); opacity: 1; }

/* ---------- TRACK ORDER ----------
   Same minimal column as Contact; the result keeps a soft rounded box. */
.tk-page .ct-grid { gap: 12px; }
.tk-page .tk-wrap { max-width: none; margin: 0; }
.tk-page .tk-result.ct-form-wrap {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  background: rgba(var(--ink), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.08);
}
.tk-page .ct-alt { margin-top: 28px; }

/* ================================================================
   MOBILE POLISH (audit fixes): readable greys, comfortable tap areas
   ================================================================ */
.ct-legal { color: rgba(var(--ink), 0.5); }
.ct-legal a { color: rgba(var(--ink), 0.7); }
.ct-page .ct-field input::placeholder,
.ct-page .ct-field textarea::placeholder { color: rgba(var(--ink), 0.5); }
.ct-addorder { padding: 12px 0; margin-top: 6px; }
.ct-alt a, .ct-legal a, .faq-page-cta a, .ct-back { position: relative; }
.ct-alt a::after, .ct-legal a::after, .faq-page-cta a::after, .ct-back::after { content: ""; position: absolute; inset: -12px -8px; }
.faq-page .faq-tab { padding-top: 12px; }

/* ================================================================
   CONTACT + TRACK: the page fills the screen and the whole block
   (label, title, form, links) sits in the middle of it
   ================================================================ */
main > .section.ct-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 92px;              /* equal top + bottom, so the block is truly centred; clears the header */
  padding-bottom: 92px;
}
main > .section.ct-page > .container { width: 100%; }
.ct-page .ct-head { margin-bottom: clamp(28px, 4vw, 44px); }
.ct-page .ct-title { margin-bottom: 0; }

/* ================================================================
   FAQ categories: never scroll or swipe — they wrap instead
   (the row could be dragged, which also cut the words off at the top)
   ================================================================ */
.faq-page .faq-tabs {
  overflow: visible;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0;
}
@media (max-width: 640px) {
  .faq-page .faq-tabs {
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 20px;
    margin-left: 0; margin-right: 0;
    padding: 0;
    border-bottom: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .faq-page .faq-tab { padding: 10px 0 9px; }
  .faq-page .faq-tab::after { bottom: 3px; }
}
