/* ============================================================
   MOI FAQ — Shared FAQ Component (Base44-matched)
   Include: <link rel="stylesheet" href="/assets/css/moi-faq.css">
   ============================================================ */

/* --- Section container --- */
.moi-faq {
  padding: 140px 0 120px;
  background: #fff;
}

.moi-faq-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

/* --- Two-column layout (desktop) --- */
.moi-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 120px;
  align-items: start;
}

/* --- Left column: heading --- */
.moi-faq-heading {
  font-family: var(--font, 'Inter', sans-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #000;
  position: sticky;
  top: 120px;
}

/* --- Right column: items list --- */
.moi-faq-list {
  display: flex;
  flex-direction: column;
}

/* --- Individual item --- */
.moi-faq-item {
  border-top: 1px solid #d1d1d1;
}
.moi-faq-item:last-child {
  border-bottom: 1px solid #d1d1d1;
}

/* --- Question row --- */
.moi-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

/* --- Icon (+/x) --- */
.moi-faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.moi-faq-icon::before,
.moi-faq-icon::after {
  content: '';
  position: absolute;
  background: #000;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Horizontal bar */
.moi-faq-icon::before {
  width: 26px;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
/* Vertical bar */
.moi-faq-icon::after {
  width: 2px;
  height: 26px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Open state: + becomes x */
.moi-faq-item.open .moi-faq-icon {
  transform: rotate(45deg);
}

/* --- Answer panel --- */
.moi-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.moi-faq-item.open .moi-faq-a {
  max-height: 500px;
}

.moi-faq-a-inner {
  padding: 0 0 36px;
  font-family: inherit;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: #000;
}
.moi-faq-a-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.moi-faq-a-inner a:hover {
  color: #555;
}

/* ============================================================
   Dark background variant
   Usage: <section class="moi-faq moi-faq--dark">
   ============================================================ */
.moi-faq--dark {
  background: #111;
}
.moi-faq--dark .moi-faq-heading {
  color: #fff;
}
.moi-faq--dark .moi-faq-item {
  border-color: rgba(255,255,255,0.15);
}
.moi-faq--dark .moi-faq-q {
  color: #fff;
}
.moi-faq--dark .moi-faq-icon::before,
.moi-faq--dark .moi-faq-icon::after {
  background: #aaa;
}
.moi-faq--dark .moi-faq-a-inner {
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .moi-faq {
    padding: 80px 0;
  }
  .moi-faq-inner {
    padding: 0 32px;
  }
  .moi-faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .moi-faq-heading {
    position: static;
    font-size: 2.5rem;
  }
  .moi-faq-q {
    padding: 30px 0;
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .moi-faq {
    padding: 60px 0;
  }
  .moi-faq-inner {
    padding: 0 20px;
  }
  .moi-faq-grid {
    gap: 32px;
  }
  .moi-faq-heading {
    font-size: 2rem;
  }
  .moi-faq-q {
    padding: 24px 0;
    font-size: 1.1rem;
  }
  .moi-faq-a-inner {
    padding-bottom: 24px;
    font-size: 1rem;
  }
  .moi-faq-icon {
    width: 22px;
    height: 22px;
  }
  .moi-faq-icon::before {
    width: 22px;
  }
  .moi-faq-icon::after {
    height: 22px;
  }
}
