/* ===================================================
   FAQ Page — faq.css
   Depends on styles.css being loaded first.
   Only contains styles not already in styles.css.
   =================================================== */

/* ---------------------------------------------------
   PAGE HERO
   Shared pattern across blog, contact, about.
   Move to styles.css once all pages are rebuilt.
   --------------------------------------------------- */
.page-hero {
  padding-top: var(--nav-height);
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-hero-inner .lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

.page-hero-inner .lead a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------------------------------------------------
   FAQ SECTION WRAPPER
   --------------------------------------------------- */
.faq-section {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

/* Two-column layout: sticky nav left, content right */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

/* ---------------------------------------------------
   STICKY CATEGORY NAV (left sidebar)
   --------------------------------------------------- */
.faq-nav {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.faq-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.faq-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-left: 2px solid var(--color-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.faq-nav-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(81, 91, 32, 0.05);
}

.faq-nav-link.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(81, 91, 32, 0.08);
  font-weight: 600;
}

/* ---------------------------------------------------
   FAQ GROUPS (right column)
   --------------------------------------------------- */
.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.faq-group {
  scroll-margin-top: calc(var(--nav-height) + 32px);
}

/* Group heading */
.faq-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.faq-group-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(81, 91, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-group-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}

/* ---------------------------------------------------
   FAQ ACCORDION
   Extends the existing .faq-item / .faq-question /
   .faq-answer pattern from styles.css with the
   new <dl>/<dt>/<dd> semantic structure.
   --------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
}

/* .faq-item, .faq-question, .faq-icon, .faq-answer and their
   open states are all defined in styles.css.
   Only extend what's specific to the FAQ page below. */

/* <dd> margin reset */
.faq-answer {
  margin: 0;
}

/* Taller max-height for longer multi-line answers */
.faq-item.open .faq-answer {
  max-height: 600px;
}

/* Ensure the button fills the full row width */
.faq-question {
  width: 100%;
}

.faq-answer p,
.faq-answer ul {
  padding-bottom: 20px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-answer ul {
  padding-left: 20px;
  list-style: disc;
}

.faq-answer ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------------------------------------------------
   CTA BLOCK AT BOTTOM
   --------------------------------------------------- */
.faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: var(--color-bg-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.faq-cta p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  margin: 0;
}

/* ---------------------------------------------------
   WHATSAPP BUTTON
   Shared pattern — move to styles.css once all pages
   are using it.
   --------------------------------------------------- */
.wa-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.wa-button img {
  width: 28px;
  height: 28px;
}

.wa-message {
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Turn nav into a horizontal scrollable pill row */
  .faq-nav {
    position: static;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .faq-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .faq-nav-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 14px;
  }

  .faq-nav-link.active,
  .faq-nav-link:hover {
    border-bottom-color: var(--color-primary);
    border-left: none;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 48px 0 64px;
  }

  .page-hero-inner {
    padding: 48px 24px 40px;
  }

  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}