/**
 * FAQ page - cinematic guest guide.
 * Built on native details/summary so answers remain usable if JS is unavailable.
 */

body.faq-page {
  background: #fff8ed;
}

.faq-page :focus-visible {
  outline: 3px solid rgba(216, 184, 97, 0.72);
  outline-offset: 4px;
}

.faq-hero {
  position: relative;
  min-height: 88svh;
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + 4.5rem) 4.5rem 5.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  align-items: end;
  gap: 3rem;
  isolation: isolate;
  overflow: hidden;
  color: #fff8ed;
  background: #030202;
}

.faq-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  border-top: 4rem solid rgba(3, 2, 2, 0.94);
  border-bottom: 4rem solid rgba(3, 2, 2, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.faq-hero-media,
.faq-hero-scrim {
  position: absolute;
  inset: 0;
}

.faq-hero-media {
  z-index: -3;
  background: #030202;
}

.faq-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.88;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.035);
  animation: faqHeroDrift 18s ease-in-out infinite alternate;
}

.faq-hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.82), rgba(3, 2, 2, 0.22) 55%, rgba(3, 2, 2, 0.78)),
    linear-gradient(180deg, rgba(3, 2, 2, 0.06), rgba(3, 2, 2, 0.78));
}

.faq-hero-content,
.faq-hero-panel,
.faq-hero-scroll {
  position: relative;
  z-index: 8;
}

.faq-hero-content {
  display: grid;
  gap: 1rem;
  max-width: 66rem;
}

.faq-hero-kicker,
.faq-category-link,
.faq-panel-label,
.faq-stat-label,
.faq-section-subtitle {
  font-family: var(--font-accent);
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-hero-kicker {
  margin: 0;
  color: #d8b861;
  font-size: 0.82rem;
  font-weight: 700;
}

.faq-hero-title {
  width: min(100%, 13ch);
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 5.35rem;
  font-weight: 500;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

.faq-hero-title span {
  display: block;
}

.faq-hero-subtitle {
  width: min(44rem, 100%);
  margin: 0;
  color: rgba(255, 248, 237, 0.78);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.34;
}

.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.faq-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.64rem 0.92rem;
  border: 1px solid rgba(255, 248, 237, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.08);
  color: rgba(255, 248, 237, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.faq-category-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 184, 97, 0.62);
  background: rgba(216, 184, 97, 0.15);
  color: #fff8ed;
}

.faq-hero-panel {
  align-self: end;
  padding: 1.25rem;
  border: 1px solid rgba(216, 184, 97, 0.34);
  border-radius: 8px;
  background: rgba(6, 45, 39, 0.68);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.faq-panel-label {
  margin: 0 0 0.75rem;
  color: #d8b861;
  font-size: 0.76rem;
  font-weight: 700;
}

.faq-panel-title {
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.08;
}

.faq-panel-copy {
  margin: 0.85rem 0 1rem;
  color: rgba(255, 248, 237, 0.72);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.48;
}

.faq-panel-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 248, 237, 0.78);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  list-style: none;
  text-transform: none;
}

.faq-panel-list li {
  display: grid;
  grid-template-columns: 0.48rem 1fr;
  gap: 0.62rem;
  align-items: center;
}

.faq-panel-list li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #d8b861;
}

.faq-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 248, 237, 0.72);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.faq-hero-scroll svg {
  width: 1.15rem;
  height: 1.15rem;
  animation: faqScrollBounce 2.2s ease-in-out infinite;
}

.faq-main {
  position: relative;
  background:
    linear-gradient(180deg, #062d27 0, #062d27 5.5rem, #fff8ed 5.5rem, #fff8ed 100%);
}

.faq-container {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 5.5rem;
}

.faq-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 97, 0.24);
  border-radius: 8px;
  background: rgba(216, 184, 97, 0.24);
  box-shadow: 0 24px 80px rgba(6, 45, 39, 0.22);
}

.faq-stat {
  min-height: 8.75rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.42rem;
  padding: 1rem;
  background: #062d27;
  text-align: center;
}

.faq-stat-number {
  color: #d8b861;
  font-family: "Pinyon Script", var(--font-script);
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 0.78;
}

.faq-stat-label {
  color: rgba(255, 248, 237, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 4.75rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.faq-section-header {
  align-self: start;
  display: grid;
  gap: 1rem;
  padding-top: 0.15rem;
}

.faq-section-index {
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 30, 45, 0.2);
  border-radius: 8px;
  background: #5b1e2d;
  color: #fff8ed;
  font-family: var(--font-accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-section-title {
  margin: 0;
  color: #1d1612;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.02;
}

.faq-section-subtitle {
  margin: 0.58rem 0 0;
  color: #6c5a51;
  font-size: 0.76rem;
  font-weight: 700;
}

.faq-accordion {
  display: grid;
  gap: 0.84rem;
}

.faq-item {
  overflow: clip;
  border: 1px solid rgba(29, 22, 18, 0.1);
  border-left: 3px solid rgba(216, 184, 97, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(29, 22, 18, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(91, 30, 45, 0.22);
  border-left-color: #5b1e2d;
  box-shadow: 0 18px 52px rgba(29, 22, 18, 0.11);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 1.2rem;
  min-height: 5.15rem;
  padding: 1.25rem 1.35rem 1.2rem;
  user-select: none;
}

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

.faq-question::marker {
  content: "";
}

.faq-question-text {
  color: #1d1612;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.28;
}

.faq-question-icon {
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(216, 184, 97, 0.62);
  border-radius: 50%;
  background: #fff8ed;
  color: #5b1e2d;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.faq-question-icon::before,
.faq-question-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.82rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-question-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-question-icon {
  border-color: rgba(91, 30, 45, 0.38);
  background: #5b1e2d;
  color: #fff8ed;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.35rem;
}

.faq-answer-content {
  border-top: 1px solid rgba(29, 22, 18, 0.08);
  padding-top: 1rem;
  color: #54453e;
  font-family: var(--font-primary);
  font-size: 1.08rem;
  line-height: 1.64;
}

.faq-answer-content p {
  margin: 0 0 0.8rem;
}

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

.faq-answer-content a {
  color: #5b1e2d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.faq-answer-content a:hover {
  color: #062d27;
}

.faq-answer-content strong {
  color: #1d1612;
  font-weight: 600;
}

.faq-cta {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  border-radius: 8px;
  background: #062d27;
  color: #fff8ed;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(6, 45, 39, 0.24);
}

.faq-cta::before,
.faq-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.faq-cta::before {
  z-index: -2;
  background: url("/proposal/Positano_5_April-85.jpg?v76db2cb9-wos-20260527135302-wallet-secret-os") center 38% / cover;
  opacity: 0.28;
  filter: saturate(0.8) contrast(1.08);
}

.faq-cta::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 45, 39, 0.96), rgba(6, 45, 39, 0.78)),
    linear-gradient(135deg, rgba(91, 30, 45, 0.62), transparent 58%);
}

.faq-cta-content {
  display: grid;
  justify-items: start;
  gap: 1rem;
  width: min(46rem, 100%);
  padding: 3.5rem;
}

.faq-cta-title {
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 1;
}

.faq-cta-text {
  margin: 0;
  color: rgba(255, 248, 237, 0.76);
  font-family: var(--font-primary);
  font-size: 1.22rem;
  line-height: 1.5;
}

.faq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.45rem;
}

.faq-cta-buttons .btn {
  min-width: 11rem;
}

.faq-page.faq-enhanced .faq-section,
.faq-page.faq-enhanced .reveal {
  opacity: 1;
  transform: none;
}

.faq-page.faq-enhanced .faq-section.visible,
.faq-page.faq-enhanced .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes faqHeroDrift {
  from { transform: scale(1.035) translate3d(-0.4rem, -0.2rem, 0); }
  to { transform: scale(1.07) translate3d(0.5rem, 0.25rem, 0); }
}

@keyframes faqScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.45rem); }
}

@media (max-width: 1040px) {
  .faq-hero {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 1.6rem;
    padding: calc(var(--header-height) + 4rem) 2rem 5.75rem;
  }

  .faq-hero-title {
    font-size: 4.45rem;
  }

  .faq-hero-panel {
    max-width: 34rem;
  }

  .faq-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 4rem;
  }

  .faq-section-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 720px) {
  .faq-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 4rem) 1rem 5rem;
  }

  .faq-hero::after {
    border-top-width: 3.1rem;
    border-bottom-width: 3.1rem;
  }

  .faq-hero-media img {
    object-position: 60% center;
  }

  .faq-hero-title {
    font-size: 3rem;
    line-height: 0.98;
  }

  .faq-hero-subtitle {
    font-size: 1.18rem;
  }

  .faq-category-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-category-link {
    width: 100%;
    padding-inline: 0.65rem;
  }

  .faq-hero-panel {
    padding: 1rem;
  }

  .faq-panel-title {
    font-size: 1.32rem;
  }

  .faq-panel-copy {
    margin-bottom: 0;
  }

  .faq-panel-list {
    display: none;
  }

  .faq-container {
    width: min(100% - 1rem, 1120px);
    padding-bottom: 4rem;
  }

  .faq-stats {
    grid-template-columns: 1fr;
  }

  .faq-stat {
    min-height: 6.75rem;
  }

  .faq-stat-number {
    font-size: 3.2rem;
  }

  .faq-section {
    margin-top: 3.2rem;
  }

  .faq-section-title {
    font-size: 2rem;
  }

  .faq-section-index {
    width: 3.5rem;
    height: 3.5rem;
  }

  .faq-question {
    grid-template-columns: minmax(0, 1fr) 2rem;
    gap: 0.9rem;
    min-height: 4.5rem;
    padding: 1rem;
  }

  .faq-question-text {
    font-size: 1.12rem;
  }

  .faq-question-icon {
    width: 2rem;
    height: 2rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }

  .faq-answer-content {
    font-size: 1rem;
  }

  .faq-cta-content {
    padding: 2.1rem 1rem;
  }

  .faq-cta-title {
    font-size: 2.2rem;
  }

  .faq-cta-text {
    font-size: 1.06rem;
  }

  .faq-cta-buttons,
  .faq-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .faq-hero-title {
    font-size: 2.55rem;
  }

  .faq-category-nav {
    grid-template-columns: 1fr;
  }

  .faq-section-header {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-hero-media img,
  .faq-hero-scroll svg,
  .faq-page.faq-enhanced .faq-section,
  .faq-page.faq-enhanced .reveal,
  .faq-category-link,
  .faq-item,
  .faq-question-icon {
    animation: none;
    transition: none;
  }
}
