/* =========================================================
   HOME 09: FAQ
   File: /assets/css/faq-home.css
   Native details/summary accordion, no JavaScript required.
   ========================================================= */

:root {
  --faq-blue: #083E7F;
  --faq-blue-dark: #052F61;
  --faq-green: #00A86B;
  --faq-green-dark: #008959;
  --faq-ink: #172238;
  --faq-text: #606B79;
  --faq-line: #E5EBF2;
  --faq-soft: #F7F9FC;
  --faq-white: #FFFFFF;
  --faq-max: 1220px;
}

.emark-faq {
  position: relative;
  overflow: hidden;
  padding: 100px 0 106px;
  background:
    linear-gradient(180deg, #F7F9FC 0%, #F4F8FC 100%);
  border-bottom: 1px solid var(--faq-line);
}

.emark-faq::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -190px;
  bottom: -190px;
  border: 1px solid rgba(8, 62, 127, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.emark-faq__container {
  width: min(calc(100% - 40px), var(--faq-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(560px, 1.25fr);
  gap: 86px;
  align-items: start;
}

.emark-faq__intro {
  max-width: 490px;
  position: sticky;
  top: 120px;
}

.emark-faq__eyebrow {
  margin: 0 0 13px;
  color: var(--faq-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.emark-faq h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.emark-faq__lead {
  max-width: 470px;
  margin: 25px 0 0;
  color: var(--faq-text);
  font-size: 0.98rem;
  line-height: 1.76;
}

.emark-faq__list {
  border-top: 1px solid var(--faq-line);
}

.emark-faq__item {
  border-bottom: 1px solid var(--faq-line);
}

.emark-faq__item summary {
  min-height: 82px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 22px;
  align-items: center;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
}

.emark-faq__item summary::-webkit-details-marker {
  display: none;
}

.emark-faq__question {
  color: var(--faq-ink);
  font-size: 1.08rem;
  font-weight: 740;
  line-height: 1.4;
  transition: color 150ms ease;
}

.emark-faq__toggle {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  background: var(--faq-white);
  border: 1px solid rgba(8, 62, 127, 0.10);
  border-radius: 10px;
}

.emark-faq__toggle::before,
.emark-faq__toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: var(--faq-blue);
  border-radius: 999px;
  transition: transform 170ms ease;
}

.emark-faq__toggle::after {
  transform: rotate(90deg);
}

.emark-faq__item[open] .emark-faq__toggle::after {
  transform: rotate(0deg);
}

.emark-faq__item[open] .emark-faq__question {
  color: var(--faq-blue);
}

.emark-faq__answer {
  max-width: 670px;
  padding: 0 58px 23px 4px;
}

.emark-faq__answer p {
  margin: 0;
  color: var(--faq-text);
  font-size: 0.92rem;
  line-height: 1.72;
}

.emark-faq__item summary:hover .emark-faq__question {
  color: var(--faq-blue);
}

.emark-faq summary:focus-visible {
  outline: 3px solid rgba(0, 168, 107, 0.24);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .emark-faq__container {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .emark-faq__intro {
    max-width: 700px;
    position: static;
  }

  .emark-faq h2 {
    max-width: 14ch;
  }
}

@media (max-width: 600px) {
  .emark-faq {
    padding: 74px 0 80px;
  }

  .emark-faq__container {
    width: min(calc(100% - 28px), var(--faq-max));
    gap: 34px;
  }

 .emark-faq h2 {
  max-width: 100%;
  font-size: clamp(1.9rem, 8.8vw, 2.5rem);
  line-height: 1.06;
}

  .emark-faq__lead {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .emark-faq__item summary {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 15px;
    padding: 15px 0;
  }

  .emark-faq__question {
    font-size: 0.98rem;
  }

  .emark-faq__toggle {
    width: 32px;
    height: 32px;
  }

  .emark-faq__answer {
    padding: 0 44px 20px 0;
  }

  .emark-faq__answer p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emark-faq__toggle::before,
  .emark-faq__toggle::after,
  .emark-faq__question {
    transition-duration: 0.01ms !important;
  }
}
