/* ------------------------------------------------------------------
   Before you enquire: the question-and-answer section between About and
   Enquire. Plain <details>/<summary> items, so every answer is in the
   page without a script; grouped by topic, two columns on wide screens.

   Each topic sits on a cream card with the walnut double frame used by
   the About photo, a numbered Anton title with a short river-blue bar,
   and questions that open with a river-blue rule beside the answer.
   Colours and type come from the site tokens in base.css.
   ------------------------------------------------------------------ */

.faq-section {
  position: relative;
  background: var(--sand);
  color: var(--ink);
}

.faq-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.faq-section .section-kicker {
  color: var(--walnut-dark);
}

.faq-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.faq-section h2 em {
  margin-left: 0.12em;
  color: var(--walnut);
  font-style: italic;
  font-weight: 500;
}

.faq-intro {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-dark-muted);
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.5;
}

/* Topic cards */
/* Line breaks in the intro are used on phones only (see the 680px block). */
.faq-intro-break {
  display: none;
}

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  counter-reset: faq-group;
}

.faq-group {
  position: relative;
  padding: 30px 32px 22px;
  border-radius: 18px 10px 22px 12px;
  background:
    repeating-linear-gradient(175deg, rgba(168, 98, 42, 0.035) 0 2px, transparent 2px 14px),
    var(--cream);
  box-shadow: 0 10px 26px var(--shadow-card);
  outline: 1px solid var(--walnut);
  outline-offset: -8px;
  counter-increment: faq-group;
}

.faq-group h3 {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
  padding-bottom: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Topic number, in the walnut Anton of the craft film's stage labels. */
.faq-group h3::before {
  flex: 0 0 auto;
  color: var(--walnut);
  content: counter(faq-group, decimal-leading-zero);
  font-size: 0.82em;
  letter-spacing: 0;
}

/* A short river-blue bar over a faint full-width rule. */
.faq-group h3::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background:
    linear-gradient(90deg, var(--river-blue), var(--river-deep)) no-repeat 0 0 / 64px 3px,
    rgba(11, 26, 16, 0.14);
  content: "";
}

/* Questions */
.faq-item {
  border-bottom: 1px solid rgba(11, 26, 16, 0.12);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Walnut ring with a plus that turns into a cross as the answer opens. */
.faq-item summary::after {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--walnut);
  border-radius: 50%;
  color: var(--walnut);
  content: "+";
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 200ms ease,
    color 200ms ease;
}

.faq-item summary:hover {
  color: var(--walnut-dark);
}

.faq-item summary:hover::after,
.faq-item[open] summary::after {
  background: var(--walnut);
  color: var(--cream);
}

.faq-item[open] summary {
  color: var(--walnut-dark);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--river-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Answers: a river-blue rule down the left, easing in as the item opens. */
.faq-answer {
  margin: 2px 0 18px;
  padding: 2px 40px 2px 16px;
  border-left: 3px solid var(--river-blue);
  color: rgba(11, 26, 16, 0.78);
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-item[open] .faq-answer {
  animation: faq-answer-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.faq-answer li {
  margin: 0 0 6px;
}

.faq-answer li::marker {
  color: var(--walnut);
  font-weight: 700;
}

.faq-answer li strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-answer a {
  color: var(--river-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--river-deep);
}

/* "Still curious?" note at the foot of the Enquiries card. Shown by js/faq.js
   only on desktop and only when every question in all four groups is open,
   which is when the Craftsmanship card leaves this space empty. */
.faq-group:last-child {
  display: flex;
  flex-direction: column;
}

.faq-nudge {
  display: none;
  position: relative;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 22px 0 6px;
  padding: 36px 36px 58px;
  overflow: hidden;
  border-radius: 14px 8px 16px 10px;
  background: var(--forest);
  color: var(--cream);
}

.faq-nudge.is-visible {
  display: flex;
  animation: faq-answer-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.faq-nudge-kicker {
  margin: 0 0 12px;
  color: var(--sand);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.faq-nudge-title {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.06;
  text-transform: uppercase;
}

.faq-nudge-title em {
  color: var(--white);
  font-style: italic;
}

.faq-nudge-text {
  max-width: 40ch;
  margin: 16px 0 0;
  color: var(--cream);
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  font-style: italic;
  line-height: 1.42;
}

.faq-nudge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 251, 208, 0.7);
  border-radius: 5px 14px 5px 12px;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.faq-nudge-link span {
  transition: transform 200ms ease;
}

.faq-nudge-link:hover,
.faq-nudge-link:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--forest);
}

.faq-nudge-link:hover span {
  transform: translateX(4px);
}

.faq-nudge-link:focus-visible {
  outline: 2px solid var(--river-blue);
  outline-offset: 3px;
}

.faq-nudge-river {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 22px;
  fill: var(--river-blue);
  pointer-events: none;
}

@media (max-width: 900px) {
  .faq-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .faq-heading {
    margin-bottom: 36px;
  }

  /* Phones: the intro sets as four centred lines, one phrase each. */
  .faq-intro {
    text-align: center;
  }

  .faq-intro-break {
    display: inline;
  }
}

/* The narrowest phones: a touch smaller so each phrase keeps to one line. */
@media (max-width: 359px) {
  .faq-intro {
    font-size: 0.97rem;
  }

  .faq-group {
    padding: 24px 20px 16px;
    outline-offset: -7px;
  }

  .faq-item summary {
    gap: 14px;
    font-size: 0.98rem;
  }

  .faq-item summary::after {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary,
  .faq-item summary::after {
    transition: none;
  }

  .faq-item[open] .faq-answer,
  .faq-nudge.is-visible {
    animation: none;
  }

  .faq-nudge-link,
  .faq-nudge-link span {
    transition: none;
  }
}
