/* ============================================================
   faq.css — FAQ page styles
   Converted from FAQPage.jsx styled-components
   ============================================================ */

/* Page wrapper */
.faq-page {
  min-height: 100vh;
  background-color: #B4C0BE;
  display: flex;
  flex-direction: column;
}

/* ---- Hero ---- */
.faq-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  background: #000;
}

.faq-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 50%, rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .faq-hero__overlay {
    padding: 3rem 4rem;
  }
}

.faq-hero__title-block {
  margin: 0 0 4rem 4rem;
}

@media (min-width: 768px) {
  .faq-hero__title-block {
    margin: 0 0 5rem 6rem;
  }
}

@media (min-width: 1024px) {
  .faq-hero__title-block {
    margin: 0 0 6rem 9rem;
  }
}

.faq-hero__title-small {
  display: block;
  font-family: 'Muli', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.faq-hero__title-large {
  font-family: 'IvyJournal', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.2;
  color: rgb(255, 255, 255);
  margin: 0;
  letter-spacing: -0.02em;
}

/* ---- Main content ---- */
.faq-main {
  flex: 1;
  width: 100%;
  background-color: #F2F3F4;
  padding: 2rem 1.5rem 3rem;
}

.faq-main-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Section wrapper ---- */
.faq-section {
  margin-bottom: 2rem;
}

/* ---- Section titles ---- */
.faq-section-title {
  font-family: 'IvyJournal', serif;
  font-weight: 600;
  color: rgb(0, 68, 57);
  font-size: 34px;
  line-height: 51px;
  margin: 0 0 1rem;
}

@media (max-width: 600px) {
  .faq-section-title {
    font-size: clamp(1.25rem, 6vw, 34px);
    line-height: 1.5;
  }
}

/* ---- Sub-headings (h3) ---- */
.faq-subtitle {
  font-family: 'IvyJournal', serif;
  font-weight: 600;
  color: rgb(0, 68, 57);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
}

/* ---- Body text ---- */
.faq-text {
  font-family: 'Muli', serif;
  font-weight: 400;
  color: rgb(41, 41, 41);
  font-size: 20px;
  line-height: 34px;
  margin: 0 0 1rem;
}

/* ---- Rule lists ---- */
.faq-rule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-rule-item {
  font-family: 'Muli', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 34px;
  color: rgb(41, 41, 41);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

/* ---- FAQ accordion section title ---- */
.faq-faq-section-title {
  font-family: 'IvyJournal', serif;
  font-weight: 600;
  color: rgb(0, 68, 57);
  font-size: 34px;
  line-height: 51px;
  margin: 0 0 0.5rem;
}

@media (max-width: 600px) {
  .faq-faq-section-title {
    font-size: clamp(1.25rem, 6vw, 34px);
    line-height: 1.5;
  }
}

/* ---- FAQ category heading ---- */
.faq-category {
  font-family: 'IvyJournal', serif;
  font-weight: 600;
  color: rgb(0, 68, 57);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

/* ---- Accordion list container ---- */
.faq-accordion-list {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 2.5rem;
}

.faq-accordion-list:last-of-type {
  margin-bottom: 0;
}

/* ---- Accordion item ---- */
.faq-accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* ---- Accordion trigger button ---- */
.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Muli', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: rgb(41, 41, 41);
}

.faq-accordion-trigger:hover {
  color: rgb(0, 68, 57);
}

/* ---- Accordion chevron ---- */
.faq-accordion-chevron {
  width: 12px;
  height: 7px;
  flex-shrink: 0;
  /* default: pointing down (closed) = rotated 180deg from source default (0deg = up) */
  transform: rotate(180deg);
  transition: transform 0.2s ease;
  filter: brightness(0) saturate(100%) invert(18%) sepia(98%) saturate(500%) hue-rotate(115deg) brightness(0.95) contrast(90%);
}

/* When open: chevron points up (0deg) */
.faq-accordion-item.is-open .faq-accordion-chevron {
  transform: rotate(0deg);
}

/* ---- Accordion panel (hidden by default) ---- */
.faq-accordion-panel {
  display: none;
  padding-bottom: 1rem;
  padding-right: 1.5rem;
}

.faq-accordion-item.is-open .faq-accordion-panel {
  display: block;
}

/* ---- Accordion answer text ---- */
.faq-accordion-answer {
  font-family: 'Muli', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 34px;
  color: rgb(41, 41, 41);
  margin: 0;
}
