/* faq.css */

/* ===================================
   FAQ HERO
   =================================== */
.faq-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.faq-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://storage.googleapis.com/kws-clientele/Marsh%20Creek%20Boat%20Rental/Optimized/faq-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.faq-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.faq-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--medium-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   FAQ SECTIONS
   =================================== */
.faq-section {
  padding: 4rem 0;
  background-color: var(--dark-bg);
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category-title {
  font-size: 1.5rem;
  color: var(--accent-color);
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(214, 172, 0, 0.3);
  position: relative;
}

.faq-category-title::after {
  display: none;
}

.faq-category-title i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* ===================================
   FAQ ACCORDION ITEMS
   =================================== */
.faq-item {
  background-color: var(--darker-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(214, 172, 0, 0.3);
}

.faq-item.active {
  border-color: var(--accent-color);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.faq-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-header h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 0;
  flex: 1;
  padding-right: 1rem;
  line-height: 1.4;
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer-inner p {
  color: var(--medium-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.faq-answer-inner a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer-inner a:hover {
  color: #c19a00;
}

/* ===================================
   FAQ CTA SECTION
   =================================== */
.faq-cta {
  padding: 4rem 0;
  background-color: var(--darker-bg);
  text-align: center;
}

.faq-cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.faq-cta h2::after {
  background: var(--accent-color);
}

.faq-cta p {
  color: var(--medium-text);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-cta .cta-contact-info {
  margin: 2rem 0;
}

.faq-cta .cta-contact-info a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.faq-cta .cta-contact-info a:hover {
  color: #c19a00;
}

.faq-cta .cta-contact-info i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.faq-cta .btn {
  margin-top: 1.5rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media only screen and (max-width: 768px) {
  .faq-hero {
    height: 40vh;
    min-height: 280px;
  }

  .faq-section {
    padding: 2.5rem 0;
  }

  .faq-header {
    padding: 1rem 1.25rem;
  }

  .faq-header h4 {
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .faq-cta {
    padding: 3rem 0;
  }
}

/* =========================
   FAQ Search
   ========================= */
.faq-search {
  position: relative;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.faq-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  border-radius: 999px;
  border: 2px solid rgba(40, 62, 148, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color, #213043);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--main-color, #283e94);
  box-shadow: 0 0 0 4px rgba(40, 62, 148, 0.12);
}

.faq-search-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: var(--main-color, #283e94);
  font-size: 1rem;
  pointer-events: none;
}

.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  background: rgba(40, 62, 148, 0.08);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color, #283e94);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.faq-search-clear:hover {
  background: rgba(40, 62, 148, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.faq-search-status {
  text-align: center;
  color: #6a7384;
  font-size: 0.85rem;
  margin: 0 0 2rem;
  min-height: 1.25em;
}

.faq-item.is-hidden,
.faq-category.is-hidden {
  display: none;
}

.faq-item mark {
  background: rgba(207, 174, 57, 0.45);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
}
