/**
 * FAQs Page Styles
 * Theme: Salkantay Treks Peru
 * Version: 3.0.0
 */

.stp-faqs-page {
  --stp-primary: #418d16;
  --stp-dark: #111827;
  --stp-dark-alt: #1f2937;
  --stp-border-color: #e5e7eb;
  --stp-radius-md: 14px;
  --stp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --stp-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --stp-faq-primary: #418d16;
  --stp-faq-primary-dark: #418d16;
  --stp-faq-primary-soft: rgba(65, 141, 22, 0.079);
  --stp-faq-ink: #1d1d1d;
  --stp-faq-copy: #52605a;
  --stp-faq-muted: #718078;
  --stp-faq-line: #e3e3e3;
  --stp-faq-surface: #ffffff;
  --stp-faq-page: #f8f8f8;
  --stp-faq-gold: #f4c95d;
  --stp-faq-radius: 16px;
  background: var(--stp-faq-page);
  color: var(--stp-faq-copy);
}

.stp-faqs-page ::selection {
  background: rgba(65, 141, 22, 0.266);
  color: #202020;
}

.stp-faqs-page :focus-visible {
  outline: 3px solid rgba(65, 141, 22, 0.32);
  outline-offset: 3px;
}

.stp-faqs-page .stp-page-hero {
  --stp-page-hero-min-height: 390px;
  --stp-page-hero-padding: 4.75rem 0 6.25rem;
}

.stp-faqs-page .stp-page-hero-title {
  max-width: 900px;
  margin-inline: auto;
}

.stp-faqs-page .stp-page-hero-subtitle {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */
.stp-faq-search-wrap {
  position: relative;
  z-index: 10;
  margin-top: -58px;
}

.stp-faq-search-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(360px, 1.35fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1100px;
  min-height: 116px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--stp-faq-surface);
  border-radius: var(--stp-faq-radius);
  box-shadow: 0 18px 46px rgba(65, 141, 22, 0.14);
}

.stp-faq-search-copy {
  min-width: 0;
}

.stp-faq-search-label {
  display: block;
  margin-bottom: 4px;
  color: var(--stp-faq-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.stp-faq-search-copy p {
  margin: 0;
  color: var(--stp-faq-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.stp-faq-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 8px 0 18px;
  background: #fafafa;
  border: 1px solid var(--stp-faq-line);
  border-radius: 12px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.stp-faq-search-box:focus-within {
  background: #ffffff;
  border-color: var(--stp-faq-primary);
  outline: 3px solid rgba(65, 141, 22, 0.14);
  outline-offset: 2px;
}

.stp-faq-search-icon {
  flex: 0 0 auto;
  color: var(--stp-faq-primary);
  font-size: 1rem;
}

.stp-faq-search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stp-faq-ink);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
}

.stp-faq-search-input::-webkit-search-cancel-button {
  display: none;
}

.stp-faq-search-input::placeholder {
  color: #77857e;
  font-weight: 500;
  opacity: 1;
}

.stp-faq-search-clear {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stp-faq-muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.stp-faq-search-clear:hover {
  background: var(--stp-faq-primary-soft);
  color: var(--stp-faq-primary-dark);
}

.stp-faq-results-status {
  display: flex;
  min-width: 94px;
  flex-direction: column;
  justify-content: center;
  padding-left: 26px;
  border-left: 1px solid var(--stp-faq-line);
  color: var(--stp-faq-muted);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.stp-faq-results-status strong {
  color: var(--stp-faq-primary-dark);
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stp-faq-results-status span {
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Category navigation
   -------------------------------------------------------------------------- */
.stp-faq-nav-wrap {
  margin: 32px 0 0;
  overflow-x: auto;
  padding: 0 0 6px;
  scrollbar-width: thin;
  scrollbar-color: #c4c4c4 transparent;
}

.stp-faq-nav-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stp-faq-nav-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--stp-faq-line);
  border-radius: 999px;
  background: #ffffff;
  color: #4a4a4a;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.stp-faq-nav-btn:hover {
  border-color: #418d16;
  color: var(--stp-faq-primary-dark);
}

.stp-faq-nav-btn.active {
  border-color: var(--stp-faq-primary-dark);
  background: var(--stp-faq-primary-dark);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Main FAQ content
   -------------------------------------------------------------------------- */
.stp-faq-main-section {
  padding: 58px 0 80px;
  background: var(--stp-faq-page);
}

.stp-faq-content-header {
  max-width: 700px;
  margin-bottom: 32px;
}

.stp-faq-content-header h2 {
  margin: 0 0 10px;
  color: var(--stp-faq-ink);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.stp-faq-content-header p {
  max-width: 65ch;
  margin: 0;
  color: var(--stp-faq-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.stp-faq-intro {
  max-width: 75ch;
  margin-bottom: 30px !important;
  padding: 0 0 0 18px;
  border-left: 1px solid #b2b2b2;
  color: var(--stp-faq-copy) !important;
  line-height: 1.75;
}

.stp-faq-category-block {
  margin-bottom: 56px;
  scroll-margin-top: 110px;
}

.stp-faq-category-block:last-child {
  margin-bottom: 0;
}

.stp-faq-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stp-faq-line);
}

.stp-faq-cat-icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--stp-faq-primary-soft);
  color: var(--stp-faq-primary);
  font-size: 1rem;
}

.stp-faq-cat-title {
  margin: 0;
  color: var(--stp-faq-ink);
  font-size: 1.42rem;
  font-weight: 820;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.stp-faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stp-faq-item[hidden],
.stp-faq-category-block[hidden],
.stp-faq-search-clear[hidden] {
  display: none !important;
}

.stp-faq-accordion .accordion-item {
  border: 1px solid var(--stp-border-color);
  border-radius: var(--stp-radius-md) !important;
  margin-bottom: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--stp-shadow-sm);
}

.stp-faq-accordion .accordion-button {
  min-height: 76px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--stp-dark);
  padding: 20px 24px;
  background-color: #ffffff;
  box-shadow: none;
  transition: var(--stp-transition);
}

.stp-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--stp-primary);
  background-color: rgba(65, 141, 22, 0.04);
}

.stp-faq-accordion .accordion-button::after {
  background-size: 1.1rem;
  transition: transform 0.3s ease;
}

.stp-faq-accordion .accordion-body {
  padding: 10px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--stp-dark-alt);
}

.stp-faq-accordion .accordion-body > :last-child {
  margin-bottom: 0;
}

#stpFaqNoResults {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--stp-faq-copy);
}

#stpFaqNoResults h4 {
  color: var(--stp-faq-ink);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Direct support
   -------------------------------------------------------------------------- */
.stp-faq-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  align-items: center;
  gap: 44px;
  max-width: 1100px;
  margin: 68px auto 0;
  padding: 34px 38px;
  border-radius: var(--stp-faq-radius);
  background: linear-gradient(130deg, #418d16 0%, #418d16 100%);
  box-shadow: 0 20px 42px rgba(65, 141, 22, 0.2);
  color: #ffffff;
}

.stp-faq-support-content {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 20px;
}

.stp-faq-support-icon {
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--stp-faq-gold);
  font-size: 1.25rem;
}

.stp-faq-support-title {
  max-width: 640px;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.stp-faq-support-desc {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: 0.97rem;
  line-height: 1.65;
}

.stp-support-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stp-btn-gold,
.stp-btn-whatsapp-lg {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.stp-btn-gold {
  border: 1px solid var(--stp-faq-gold);
  background: var(--stp-faq-gold);
  color: #2a2a2a !important;
}

.stp-btn-gold:hover {
  border-color: #ffda79;
  background: #ffda79;
  color: #212121 !important;
  transform: translateY(-1px);
}

.stp-btn-whatsapp-lg {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff !important;
}

.stp-btn-whatsapp-lg:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .stp-faqs-page .stp-page-hero {
    --stp-page-hero-min-height: 360px;
  }

  .stp-faq-search-panel {
    grid-template-areas:
      "copy status"
      "search search";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
  }

  .stp-faq-search-copy {
    grid-area: copy;
  }

  .stp-faq-search-box {
    grid-area: search;
  }

  .stp-faq-results-status {
    grid-area: status;
  }

  .stp-faq-main-section {
    padding-top: 50px;
  }

  .stp-faq-support-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .stp-support-btns {
    flex-direction: row;
  }

  .stp-support-btns > * {
    flex: 1;
  }
}

@media (max-width: 767.98px) {
  .stp-faqs-page .stp-page-hero {
    --stp-page-hero-min-height: 320px;
    --stp-page-hero-padding: 3.5rem 0 5.25rem;
  }

  .stp-faq-search-wrap {
    margin-top: -44px;
  }

  .stp-faq-search-panel {
    padding: 20px;
  }

  .stp-faq-nav-pills {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .stp-faq-main-section {
    padding: 42px 0 58px;
  }

  .stp-faq-content-header {
    margin-bottom: 24px;
  }

  .stp-faq-support-card {
    margin-top: 50px;
    padding: 28px 24px;
  }

  .stp-faq-support-content {
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  .stp-faq-search-panel {
    grid-template-areas:
      "copy"
      "search"
      "status";
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .stp-faq-results-status {
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 7px;
    padding: 15px 0 0;
    border-top: 1px solid var(--stp-faq-line);
    border-left: 0;
  }

  .stp-faq-results-status strong {
    font-size: 1.25rem;
  }

  .stp-faq-results-status span {
    margin-top: 0;
  }

  .stp-faq-support-card {
    padding: 26px 20px;
  }

  .stp-faq-support-content {
    display: block;
  }

  .stp-faq-support-icon {
    margin-bottom: 18px;
  }

  .stp-support-btns {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stp-faq-search-box,
  .stp-faq-search-clear,
  .stp-faq-nav-btn,
  .stp-faq-accordion .accordion-item,
  .stp-faq-accordion .accordion-button,
  .stp-faq-accordion .accordion-button::after,
  .stp-btn-gold,
  .stp-btn-whatsapp-lg {
    transition: none;
  }
}
