/* ==========================================================================
   CESURNES — FAQ page (page-faq.php)
   The page came as a static export styled entirely inline; every declaration
   below is one of those inline styles moved onto a class, so the rendering is
   unchanged. Loaded only on the FAQ page, after sections.css.
   ========================================================================== */

/* The export gives every link on this page a terracotta hover. :where() keeps
   it at the export's a:hover weight, so the .btn hover colours still win. */
:where(.page-faq) a:hover { color: var(--c-terracota); }

/* ==================================================================== hero */
.faq-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 62svh;
  padding: 140px var(--shell-edge) clamp(28px, 4vw, 56px);
  background: var(--c-black);
  color: var(--c-white);
}

.faq-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.faq-hero__head {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
}

.faq-hero__kicker {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.faq-hero__title {
  font-size: clamp(44px, 8.4vw, 120px);
  line-height: .92;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.faq-hero__lead {
  max-width: 34ch;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.3;
  font-weight: 300;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .faq-hero__inner { flex-wrap: nowrap; }

  .faq-hero__head {
    flex: 1 1 auto;
    min-width: 0;
  }

  .faq-hero__title { overflow-wrap: break-word; }

  .faq-hero__lead { flex: 0 1 34ch; }
}

/* =============================================================== questions */
.faq {
  padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 10vw, 160px);
  background: var(--c-white);
  color: var(--c-black);
}

.faq__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px clamp(48px, 8vw, 160px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -- categories ------------------------------------------------------- */
.faq__cats {
  position: sticky;
  top: 40px;
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}

/* On mobile the categories stack above the questions, so they scroll away
   with the page instead of pinning over the list. */
@media (max-width: 767px) {
  .faq__cats { position: static; }
}

.faq__cats-label {
  font-size: 14px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.faq__cats-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(9, 8, 7, .16);
}

.faq-cat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  margin-left: -1px;
  padding: 14px 0 14px 20px;
  border-left: 1px solid transparent;
  color: var(--c-black);
  text-align: left;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}

.faq-cat:hover { color: var(--c-terracota); }

.faq-cat.is-active {
  color: var(--c-terracota);
  border-left-color: var(--c-terracota);
}

.faq-cat__label {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15;
  font-weight: 300;
  text-transform: uppercase;
}

/* -- panels ----------------------------------------------------------- */
.faq__panels {
  flex: 2 1 520px;
  min-width: 0;
}

.faq-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

/* Inactive categories carry the hidden attribute; faq.js swaps them. */
.faq-panel[hidden] { display: none; }

.faq-panel__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.faq-panel__num {
  font-size: 14px;
  line-height: 16px;
  font-weight: 300;
  color: var(--c-terracota);
}

.faq-panel__title {
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1;
  font-weight: 100;
  text-transform: uppercase;
}

.faq-panel__list { border-bottom: 1px solid var(--c-black); }

/* -- one question ----------------------------------------------------- */
.faq-item { border-top: 1px solid var(--c-black); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: clamp(20px, 2vw, 28px) 0;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover { color: var(--c-terracota); }

.faq-q__text {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  font-weight: 300;
  text-wrap: pretty;
}

/* A plus sign drawn from two 1px bars. The vertical bar folds away while the
   answer is open, leaving a minus. */
.faq-q__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.faq-q__icon::before {
  left: 0;
  top: 7.5px;
  width: 16px;
  height: 1px;
}

.faq-q__icon::after {
  left: 7.5px;
  top: 0;
  width: 1px;
  height: 16px;
  transition: transform .35s var(--ease);
}

.faq-item.is-open .faq-q__icon::after { transform: scaleY(0); }

/* The answer slides open through a 0fr → 1fr grid row. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a__clip { overflow: hidden; }

.faq-a__text {
  max-width: 62ch;
  padding: 0 40px clamp(24px, 2.4vw, 32px) 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--c-muted);
  text-wrap: pretty;
}

/* ================================================================ closing */
/* The photo behind the closing band and the footer is one viewport tall
   (.closing__bg). On a tall or zoomed-out window the band and the footer
   together are shorter than that, and the photo showed below the footer,
   without the scrim. The block is at least one viewport tall instead, and
   the band, which carries the scrim, takes the extra height; when the
   content is taller than the viewport nothing changes. */
.page-faq .closing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-faq .closing__bg { flex: none; }

.page-faq .closing-band { flex: 1 0 auto; }
