/* Copyright 2026 Renofy Ltd. All rights reserved. */
/* FAQ Page Styles - Mobile First */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

@media (display-mode: standalone) {
  .faq-container {
    margin-bottom: 4rem;
  }
}

.faq-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-header h1 {
  margin: 0 0 0.5rem 0;
  font-weight: var(--font-weight-semibold);
}

.faq-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-mid);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

.faq-section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 2rem 0 1rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

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

/* Chevron icon */
.faq-item summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-right: 1.5rem;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.faq-item p {
  line-height: 1.6;
  margin: 0;
  color: var(--color-text-mid);
  font-weight: var(--font-weight-medium);
  font-size: 16px; /* Override to ensure readability on mobile devices */
}

.faq-item p:last-child {
  margin-bottom: 1.5rem;
}

.faq-item p + p {
  margin-top: 0.75rem;
}

@media (min-width: 821px) {
  .faq-container {
    padding: 0 0 4rem 0;
  }

  .faq-header {
    margin-bottom: 4rem;
  }

  .faq-item summary::before {
    width: 8px;
    height: 8px;
  }
}
