/*
  FAQ-only styles for The Dugout Training Facility.

  This file works with the shared /style.css file.
*/


/* ==========================================================
   PAGE
========================================================== */

.faq-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.faq-board {
  padding-top: 8px;
}


/* ==========================================================
   INTRO
========================================================== */

.faq-intro {
  margin-bottom: 18px;
  padding: 24px;

  border: 1px solid #1f2937;
  border-radius: 18px;

  background:
    radial-gradient(
      circle at top left,
      #111827,
      #020617 68%
    );

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65);
}

.faq-kicker {
  margin: 0 0 8px;

  color: #fde68a;

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-intro h2,
.faq-contact h2 {
  margin: 0;

  color: #f9fafb;

  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-intro > p:last-child,
.faq-contact > div:first-child > p:last-child {
  max-width: 820px;
  margin: 12px 0 0;

  color: #d1d5db;

  font-size: 0.96rem;
  line-height: 1.65;
}


/* ==========================================================
   CATEGORY LINKS
========================================================== */

.faq-category-links {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;
  margin-bottom: 18px;
  padding: 14px;

  border: 1px solid #1f2937;
  border-radius: 14px;

  background: #020617;

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.5);
}

.faq-category-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  border: 1px solid #374151;
  border-radius: 999px;

  background: #0b1120;
  color: #e5e7eb;

  font-size: 0.74rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.faq-category-links a:hover {
  border-color: #991b1b;
  background: #7f1d1d;

  transform: translateY(-1px);
}


/* ==========================================================
   FAQ SECTIONS
========================================================== */

.faq-section {
  margin-bottom: 18px;
  padding: 22px;

  border: 1px solid #1f2937;
  border-radius: 18px;

  background:
    radial-gradient(
      circle at top left,
      #111827,
      #020617 70%
    );

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65);

  scroll-margin-top: 20px;
}

.faq-section-heading {
  margin-bottom: 15px;
}

.faq-section-heading p {
  margin: 0 0 6px;

  color: #fde68a;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-section-heading h2 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ==========================================================
   ACCORDION
========================================================== */

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  overflow: hidden;

  border: 1px solid #1f2937;
  border-radius: 12px;

  background: #020617;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.faq-item[open] {
  border-color: #7f1d1d;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.42);
}

.faq-item summary {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 54px;
  padding: 14px 46px 14px 15px;

  color: #f9fafb;

  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;

  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";

  position: absolute;
  right: 15px;
  top: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  border: 1px solid #374151;
  border-radius: 999px;

  background: #0b1120;
  color: #fde68a;

  font-size: 1rem;
  font-weight: 900;

  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";

  border-color: #991b1b;
  background: #7f1d1d;
  color: #ffffff;
}

.faq-item summary:hover {
  background: #0b1120;
}

.faq-answer {
  padding: 0 15px 16px;

  border-top: 1px solid #1f2937;

  color: #d1d5db;

  font-size: 0.88rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 13px 0 0;
}

.faq-answer ul {
  margin: 11px 0 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 4px;
}

.faq-answer strong {
  color: #ffffff;
}


/* ==========================================================
   LINKS
========================================================== */

.faq-inline-link {
  display: inline-block;
  margin-top: 12px;

  color: #fde68a;

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.faq-inline-link:hover {
  text-decoration: underline;
}

.faq-contact-links {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  margin-top: 13px;
}

.faq-contact-links a {
  color: #22c55e;

  font-size: 0.86rem;
  font-weight: 800;

  overflow-wrap: anywhere;
  text-decoration: none;
}

.faq-contact-links a:hover {
  text-decoration: underline;
}


/* ==========================================================
   CONTACT SECTION
========================================================== */

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;

  border: 1px solid #7f1d1d;
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(127, 29, 29, 0.38),
      rgba(2, 6, 23, 0.98) 58%
    );

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65);
}

.faq-contact-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  flex-shrink: 0;
}


/* ==========================================================
   FOOTER
========================================================== */

.faq-footer-link {
  color: #9ca3af;

  font-size: 0.8rem;
  text-decoration: none;
}

.faq-footer-link:hover {
  color: #e5e7eb;
  text-decoration: underline;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

  .hero {
    align-items: flex-start;
    gap: 14px;
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-contact-actions {
    width: 100%;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

  .hero {
    flex-direction: column;
  }

  .hero-right {
    width: 100%;

    align-items: flex-start;
    text-align: left;
  }

  .faq-nav {
    justify-content: flex-start;
  }

  .faq-intro,
  .faq-section,
  .faq-contact {
    padding: 18px;
  }

  .faq-category-links {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .faq-category-links a {
    width: 100%;
  }

  .faq-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-contact-actions .info-btn {
    justify-content: center;
    text-align: center;
  }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 450px) {

  .faq-category-links {
    grid-template-columns: 1fr;
  }

  .faq-item summary {
    padding-right: 44px;

    font-size: 0.85rem;
  }

}