/*
|--------------------------------------------------------------------------
| Perguntas Frequentes — MotoKids Moz
|--------------------------------------------------------------------------
*/

.faqs-page {
  --faqs-red: #d71919;
  --faqs-red-dark: #a80f0f;
  --faqs-yellow: #f5c400;
  --faqs-black: #090909;
  --faqs-text: #202124;
  --faqs-muted: #68707a;
  --faqs-border: #e5e7eb;
  --faqs-background: #f7f7f7;
  --faqs-white: #ffffff;

  overflow: hidden;
  background: var(--faqs-white);
  color: var(--faqs-text);
}

.faqs-page *,
.faqs-page *::before,
.faqs-page *::after {
  box-sizing: border-box;
}

.faqs-page button,
.faqs-page input {
  font: inherit;
}

.faqs-page .eyebrow {
  margin: 0 0 8px;
  color: var(--faqs-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.faqs-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
  color: #ffffff;
}

.faqs-hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 44%;

  pointer-events: none;
  user-select: none;
}

.faqs-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.99) 0%,
      rgba(0, 0, 0, 0.95) 31%,
      rgba(0, 0, 0, 0.77) 48%,
      rgba(0, 0, 0, 0.34) 68%,
      rgba(0, 0, 0, 0.05) 100%
    );
}

.faqs-hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  min-height: 360px;
  align-items: center;

  padding-top: 52px;
  padding-bottom: 52px;
}

.faqs-hero-copy {
  width: min(100%, 610px);
}

.faqs-hero-copy .eyebrow {
  color: var(--faqs-red);
}

.faqs-hero-copy h1 {
  margin: 0 0 18px;
  color: #ffffff;

  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;

  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.55);
}

.faqs-hero-copy h1 strong {
  display: block;
  color: var(--faqs-yellow);
  font: inherit;
}

.faqs-hero-copy > p:last-child {
  max-width: 570px;
  margin: 0;

  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.65;

  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

/*
|--------------------------------------------------------------------------
| Introdução
|--------------------------------------------------------------------------
*/

.faqs-introduction {
  padding: 54px 0 0;
  background: #ffffff;
}

.faqs-introduction-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: flex-start;

  padding: 25px;

  border: 1px solid var(--faqs-border);
  border-radius: 12px;

  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.faqs-introduction-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;

  border: 2px solid var(--faqs-red);
  border-radius: 12px;

  color: var(--faqs-red);
}

.faqs-introduction-icon svg {
  width: 29px;
  height: 29px;
}

.faqs-introduction-card h2 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 1.35rem;
}

.faqs-introduction-card p {
  margin: 0;
  color: var(--faqs-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.faqs-introduction-note {
  margin-top: 12px !important;
  padding: 11px 13px;

  border-left: 3px solid var(--faqs-yellow);
  border-radius: 0 6px 6px 0;

  background: #fff9dd;
  color: #5d4c00 !important;
}

/*
|--------------------------------------------------------------------------
| Secção principal
|--------------------------------------------------------------------------
*/

.faqs-main-section {
  padding: 60px 0 72px;
  background: #ffffff;
}

.faqs-section-heading {
  margin-bottom: 28px;
}

.faqs-section-heading h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.1;
}

/*
|--------------------------------------------------------------------------
| Pesquisa e contador
|--------------------------------------------------------------------------
*/

.faqs-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.faqs-search-wrapper {
  position: relative;
  max-width: 760px;
}

.faqs-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;

  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;

  color: var(--faqs-red);
  transform: translateY(-50%);
  pointer-events: none;
}

.faqs-search-icon svg {
  width: 21px;
  height: 21px;
}

.faqs-search-input {
  width: 100%;
  min-height: 58px;

  padding: 13px 52px;

  border: 1px solid var(--faqs-border);
  border-radius: 12px;

  background: #ffffff;
  color: var(--faqs-text);

  font-size: 0.9rem;

  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faqs-search-input:focus {
  border-color: rgba(215, 25, 25, 0.6);
  box-shadow:
    0 0 0 4px rgba(215, 25, 25, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.05);
}

.faqs-search-input::placeholder {
  color: #9aa0a6;
}

.faqs-search-clear {
  position: absolute;
  top: 50%;
  right: 13px;

  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: #f1f1f1;
  color: #555555;

  font-size: 1.2rem;
  line-height: 1;

  cursor: pointer;
  transform: translateY(-50%);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.faqs-search-clear:hover {
  background: #e7e7e7;
  color: var(--faqs-red);
}

.faqs-result-count {
  display: flex;
  align-items: baseline;
  gap: 6px;

  white-space: nowrap;
  color: var(--faqs-muted);
  font-size: 0.75rem;
}

.faqs-result-count strong {
  color: var(--faqs-red);
  font-size: 1.1rem;
}

/*
|--------------------------------------------------------------------------
| Filtros
|--------------------------------------------------------------------------
*/

.faqs-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 29px;
}

.faqs-category-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 43px;
  padding: 8px 13px;

  border: 1px solid var(--faqs-border);
  border-radius: 999px;

  background: #ffffff;
  color: #444444;

  font-size: 0.73rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.faqs-category-button:hover {
  border-color: rgba(215, 25, 25, 0.4);
  color: var(--faqs-red);
  transform: translateY(-1px);
}

.faqs-category-button.is-active {
  border-color: var(--faqs-red);
  background: var(--faqs-red);
  color: #ffffff;
}

.faqs-category-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.faqs-category-icon svg {
  width: 18px;
  height: 18px;
}

/*
|--------------------------------------------------------------------------
| Lista de perguntas
|--------------------------------------------------------------------------
*/

.faqs-list {
  display: grid;
  max-width: 1000px;
  gap: 11px;
}

.faq-item {
  overflow: hidden;

  border: 1px solid var(--faqs-border);
  border-radius: 11px;

  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.035);
}

.faq-item[hidden] {
  display: none !important;
}

.faq-question-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;

  width: 100%;
  min-height: 72px;
  padding: 14px 17px;

  border: 0;

  background: #ffffff;
  color: #111111;

  text-align: left;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.faq-question-button:hover {
  background: #fafafa;
}

.faq-question-button[aria-expanded="true"] {
  background: #fffafa;
}

.faq-question-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  border-radius: 10px;

  background: rgba(215, 25, 25, 0.08);
  color: var(--faqs-red);

  font-size: 0.72rem;
  font-weight: 900;
}

.faq-question-text {
  color: #151515;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.4;
}

.faq-question-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;

  color: var(--faqs-red);
}

.faq-question-arrow svg {
  width: 19px;
  height: 19px;

  transition: transform 0.2s ease;
}

.faq-question-button[aria-expanded="true"]
.faq-question-arrow svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 21px 77px;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0;
  color: var(--faqs-muted);
  font-size: 0.79rem;
  line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Estado sem resultados
|--------------------------------------------------------------------------
*/

.faqs-empty-state {
  max-width: 620px;
  margin: 35px auto 0;
  padding: 38px 25px;

  border: 1px dashed #d4d4d4;
  border-radius: 14px;

  background: var(--faqs-background);
  text-align: center;
}

.faqs-empty-state[hidden] {
  display: none;
}

.faqs-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;

  border-radius: 50%;

  background: rgba(215, 25, 25, 0.09);
  color: var(--faqs-red);
}

.faqs-empty-icon svg {
  width: 27px;
  height: 27px;
}

.faqs-empty-state h3 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 1.15rem;
}

.faqs-empty-state p {
  margin: 0 auto 18px;
  color: var(--faqs-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.faqs-reset-button {
  min-height: 42px;
  padding: 8px 16px;

  border: 0;
  border-radius: 8px;

  background: var(--faqs-red);
  color: #ffffff;

  font-size: 0.76rem;
  font-weight: 900;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.faqs-reset-button:hover {
  background: var(--faqs-red-dark);
  transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| Contacto
|--------------------------------------------------------------------------
*/

.faqs-contact-section {
  position: relative;
  overflow: hidden;

  padding: 76px 0;

  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(215, 25, 25, 0.18),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #070707 0%,
      #111111 55%,
      #090909 100%
    );

  color: #ffffff;
}

.faqs-contact-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;

  width: 330px;
  height: 330px;

  border: 2px solid rgba(215, 25, 25, 0.16);
  border-radius: 50%;
}

.faqs-contact-wrapper {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(430px, 1.25fr);

  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.faqs-contact-copy {
  min-width: 0;
  max-width: 560px;
}

.faqs-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 18px;
  padding: 8px 13px;

  border: 1px solid rgba(245, 196, 0, 0.28);
  border-radius: 999px;

  background: rgba(245, 196, 0, 0.08);
  color: var(--faqs-yellow);

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faqs-contact-badge svg {
  width: 17px;
  height: 17px;
}

.faqs-contact-copy h2 {
  max-width: 470px;
  margin: 0 0 17px;

  color: #ffffff;

  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;

  overflow-wrap: break-word;
}

.faqs-contact-copy > p {
  max-width: 525px;
  margin: 0;

  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.72;
}

.faqs-contact-panel {
  display: grid;
  gap: 10px;

  min-width: 0;
  padding: 24px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    );

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);
}

.faqs-contact-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: center;

  min-height: 70px;
  padding: 11px 14px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;

  text-decoration: none;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.faqs-contact-link:hover {
  transform: translateX(5px);
  border-color: rgba(245, 196, 0, 0.48);
  background: rgba(255, 255, 255, 0.085);
}

.faqs-contact-link-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;

  border: 1px solid rgba(215, 25, 25, 0.45);
  border-radius: 10px;

  background: rgba(215, 25, 25, 0.12);
  color: #ff4747;
}

.faqs-contact-link-icon svg {
  width: 23px;
  height: 23px;
}

.faqs-contact-whatsapp
.faqs-contact-link-icon {
  border-color: rgba(37, 211, 102, 0.42);
  background: rgba(37, 211, 102, 0.12);
  color: #38dc75;
}

.faqs-contact-link > span:nth-child(2) {
  min-width: 0;
}

.faqs-contact-link small,
.faqs-contact-link strong {
  display: block;
}

.faqs-contact-link small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.faqs-contact-link strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.81rem;
}

.faqs-contact-link > svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.42);
}

/*
|--------------------------------------------------------------------------
| Destaques
|--------------------------------------------------------------------------
*/

.faqs-highlights-section {
  padding: 60px 0;
  background: var(--faqs-background);
}

.faqs-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faqs-highlight-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;

  padding: 22px;

  border: 1px solid var(--faqs-border);
  border-radius: 12px;

  background: #ffffff;
}

.faqs-highlight-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;

  border-radius: 10px;

  background: rgba(215, 25, 25, 0.08);
  color: var(--faqs-red);
}

.faqs-highlight-icon svg {
  width: 25px;
  height: 25px;
}

.faqs-highlight-card h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.faqs-highlight-card p {
  margin: 0;
  color: var(--faqs-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Acessibilidade
|--------------------------------------------------------------------------
*/

.faqs-page button:focus-visible,
.faqs-page a:focus-visible,
.faqs-page input:focus-visible {
  outline: 3px solid rgba(245, 196, 0, 0.75);
  outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {
  .faqs-highlights-grid {
    grid-template-columns: 1fr;
  }

  .faqs-contact-wrapper {
    grid-template-columns: 1fr;
  }

  .faqs-contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .faqs-hero {
    min-height: 440px;
  }

  .faqs-hero-background {
    object-position: 68% center;
  }

  .faqs-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.9) 52%,
        rgba(0, 0, 0, 0.48) 78%,
        rgba(0, 0, 0, 0.1) 100%
      );
  }

  .faqs-hero-content {
    min-height: 440px;
    align-items: flex-start;
    padding-top: 45px;
    padding-bottom: 150px;
  }

  .faqs-introduction-card {
    grid-template-columns: 1fr;
  }

  .faqs-toolbar {
    grid-template-columns: 1fr;
  }

  .faqs-result-count {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .faqs-hero {
    min-height: 500px;
  }

  .faqs-hero-background {
    object-position: 70% center;
  }

  .faqs-hero-content {
    min-height: 500px;
    padding-top: 38px;
    padding-bottom: 175px;
  }

  .faqs-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .faq-question-button {
    grid-template-columns: 39px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 12px;
  }

  .faq-question-number {
    width: 37px;
    height: 37px;
  }

  .faq-answer {
    padding: 0 14px 18px 61px;
  }

  .faqs-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .faqs-category-button {
    flex: 0 0 auto;
  }

  .faqs-contact-section {
    padding: 58px 0;
  }

  .faqs-contact-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .faqs-contact-link {
    grid-template-columns: 43px minmax(0, 1fr) 20px;
    padding: 10px;
  }

  .faqs-contact-link-icon {
    width: 43px;
    height: 43px;
  }

  .faqs-contact-copy h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }
}

/*
|--------------------------------------------------------------------------
| Redução de movimento
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
  .faqs-page *,
  .faqs-page *::before,
  .faqs-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}