/* ==========================================================================
   Subpages — shared "simple page" pieces (FAQ, Privacidad y cookies, and
   future pages built the same way: dark intro banner + white content
   sections). Figma source: node 92:437 (FAQ) and 97:3 (Privacidad y
   cookies), both on the "Matsuri Barcelona — Tone & Manner" file — these
   two pages were not on either of the file's main pages/canvases, so the
   user supplied direct frame links for both (2026-09-04).
   ========================================================================== */

/* ------------------------------- Page intro ------------------------------
   Dark banner reused as-is by both pages: kicker, JP subtitle, H1, lead
   body, and (Privacidad only) two pill jump-links. Figma's H1 here is a
   fixed 48px — NOT the site's generic .h1 (clamp up to 72px), which is
   sized for the homepage Hero's much bigger display text. */
.page-intro {
  background: var(--ink);
  /* Horizontal padding + the 1440px cap both come from .container below
     (used unmodified, same as every homepage section) — only the
     vertical padding is page-intro's own, since it doesn't match the
     generic .section's symmetric 96px. */
  padding-block: 80px 64px;
}

.page-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.page-intro__jp {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.page-intro__title {
  font-family: var(--font-sans);
  font-weight: 700; /* bold page title, per the user, 2026-11-03 */
  font-size: 3rem;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

.page-intro__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body-text);
  max-width: 640px;
  margin: 0;
}

.page-intro__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-intro__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.page-intro__nav a:hover,
.page-intro__nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 782px) {
  .page-intro {
    padding-block: 56px 40px;
  }

  .page-intro__title {
    font-size: 2.25rem;
  }

  /* Same fix as content-pages.css's .content-intro__lead, same reason —
     per the user, 2026-10-29, the SP lead-hiding fix only reached the 6
     content-intro.php pages (Artistas/Paradas/Programa/Zona infantil/
     Acerca de/Colabora); FAQ/Contacto/Privacidad use this separate,
     older .page-intro banner instead (see this file's own doc comment),
     so their lead paragraph was still showing on SP. */
  .page-intro__lead {
    display: none;
  }
}

/* ---------------------------------- FAQ ----------------------------------- */
.faq-page {
  background: var(--white);
  padding-block: 80px 96px;
}

.faq-page__groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-list {
  border-bottom: 1px solid rgba(34, 28, 67, 0.12);
}

.faq-item {
  border-top: 1px solid rgba(34, 28, 67, 0.12);
  padding: 28px 0;
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item__header::-webkit-details-marker,
.faq-item__header::marker {
  display: none;
  content: '';
}

.faq-item__header:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 4px;
}

.faq-item__question {
  flex: 1;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}

/* Toggle — a circle with a horizontal bar always, plus a vertical bar
   that's hidden once the <details> is open, so "+" becomes "−". Sizes
   (32px circle, 13.44px bars) are exact Figma values, not rounded. */
.faq-item__toggle {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 28, 67, 0.06);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(34, 28, 67, 0.75);
  border-radius: 1px;
}

.faq-item__toggle::before {
  width: 13.44px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 13.44px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__toggle::after {
  display: none;
}

.faq-item__answer {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a453d;
}

.faq-item__answer :where(p) {
  margin: 0 0 12px;
}

.faq-item__answer :where(p:last-child) {
  margin-bottom: 0;
}

.faq-item__answer a {
  color: var(--vermillion);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 782px) {
  .faq-page {
    padding-block: 56px 64px;
  }

  .faq-item__question {
    font-size: 1rem;
  }
}

/* ------------------------- Legal (Privacidad/Cookies) --------------------
   Both clause lists are free-form WYSIWYG content (H3 + P pairs), not
   per-clause fields — see inc/acf-fields.php. This gives that flat HTML
   stream the same bordered "list item" look as the FAQ accordion (and
   as Figma's "Component — List item" block), without needing markup
   per clause: every H3 gets a top border via its own padding, and the
   whole block gets a closing bottom border since nothing else follows
   the last paragraph. */
.legal-section {
  background: var(--white);
  padding-block: 80px 40px;
}

.legal-section:last-of-type {
  padding-top: 0;
  padding-bottom: 96px;
}

.legal-section .kicker {
  display: block;
  margin-bottom: 32px;
}

.legal-content {
  border-bottom: 1px solid rgba(34, 28, 67, 0.12);
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  padding-top: 28px;
  padding-bottom: 10px;
  border-top: 1px solid rgba(34, 28, 67, 0.12);
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a453d;
  margin: 0 0 28px;
}

.legal-content a {
  color: var(--vermillion);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 782px) {
  .legal-section {
    padding-block: 56px 32px;
  }

  .legal-section:last-of-type {
    padding-top: 0;
    padding-bottom: 56px;
  }
}

/* --------------------------------- Contacto -------------------------------
   Figma node 96:37 ("Section — Info"): contact-details column (flex:1) +
   a fixed 560×480 map panel, gap 96px — .section already gives the
   symmetric 96px vertical padding this section uses, so only the layout
   itself is custom here. */
.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 96px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex: 1 1 0%;
  min-width: 0;
}

/* Callout — "Antes de escribirnos, consulta la FAQ" (Figma 416:142 desktop
   / 423:142 "Contacto — SP" mobile, designed 2026-09-06). Sits first in
   .contact-details, before EMAIL — an amber top bar + tinted background +
   border makes it read as a distinct notice against the plain white
   Section — Info, rather than blending in with the other detail blocks. */
.contact-notice {
  width: 100%;
  border-radius: var(--radius-sm);
  /* Was a translucent gold wash (border rgba(206,134,29,0.45) / background
     rgba(206,134,29,0.16)) — read fine as a soft warm tint against the
     site's old warm-beige page background, but against the new cool
     blue-grey --paper (#eaeaf4, 2026-10-29) the same wash reads as a
     muddy, harder-to-read yellow patch (reported by the user the same
     day). Solid white card + a plain border instead — the gold top bar
     and "!" icon below still carry the accent color, just without
     tinting the whole card. */
  border: 1px solid var(--ink-10);
  background: var(--white);
  overflow: hidden;
}

.contact-notice__bar {
  height: 4px;
  background: var(--amber);
}

.contact-notice__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
}

.contact-notice__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.contact-notice__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.contact-notice__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-70, rgba(34, 28, 67, 0.72));
  /* The "ONG / voluntariado" notice's body is 3 short paragraphs
     (separated by a blank line in its ACF textarea) rather than this
     callout's original single line of text — pre-line keeps those blank
     lines without needing separate <p> tags per paragraph. A no-op for
     the FAQ notice's own single-line body. */
  white-space: pre-line;
}

.contact-notice__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vermillion);
  text-decoration: none;
}

.contact-notice__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 782px) {
  .contact-notice__body {
    padding: 16px;
    gap: 8px;
  }

  .contact-notice__icon {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .contact-notice__title {
    font-size: 0.9375rem;
  }

  .contact-notice__text,
  .contact-notice__link {
    font-size: 0.8125rem;
  }
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Same vermillion/uppercase treatment as .kicker, but a tighter 0.12em
   tracking (Figma: 1.44px on 12px type, vs .kicker's 1.92px/0.16em) —
   confirmed via get_design_context, not a guess. */
.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermillion);
}

.contact-detail__value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Figma renders the email as plain ink-colored text, no underline — it's
   only a <a href="mailto:..."> for functionality, not styled as a link. */
.contact-detail__value a {
  color: var(--ink);
  text-decoration: none;
}

.contact-detail__value a:hover {
  color: var(--vermillion);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-detail__social {
  display: flex;
  gap: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-detail__social a {
  color: var(--ink);
}

.contact-detail__social a:hover {
  color: var(--vermillion);
}

.contact-cta {
  margin-top: 8px;
}

.contact-map {
  flex: 0 0 560px;
  width: 560px;
  height: 480px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xs);
}

.contact-map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  border: 1.5px dashed rgba(34, 28, 67, 0.25);
  border-radius: var(--radius-xs);
  box-sizing: border-box;
}

.contact-map__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(34, 28, 67, 0.5);
}

.contact-map__caption {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(34, 28, 67, 0.35);
}

@media (max-width: 900px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-map {
    flex-basis: auto;
    width: 100%;
    max-width: 560px;
    height: 360px;
  }
}

@media (max-width: 782px) {
  .contact-details {
    gap: 32px;
  }
}
