/**
 * FAQ Accordion Section Styles
 * Matches Paint'N Pour Design Mockup (Desktop & Mobile)
 */

.section--faq {
  background-color: #FAF7EE;
  padding: 80px 20px 90px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.faq-section-wrap {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow / Tagline with deco-stroke Icon */
.faq-eyebrow-container {
  text-align: center;
  margin-bottom: 12px;
}

.faq-eyebrow-pill {
  display: inline-block;
  position: relative;
  padding: 6px 20px;
}

.faq-eyebrow-pill .icon--deco-stroke {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13rem;
  height: 4.5rem;
  max-width: 250px;
  max-height: 50px;
  margin: 0;
  color: #febf94;
  z-index: 1;
  pointer-events: none;
}

.faq-eyebrow-text {
  position: relative;
  z-index: 2;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #383b69;
  display: inline-block;
  -webkit-text-stroke: 0.35px #383b69;
}

/* Main Section Heading */
.faq-heading {
  font-family: 'Teko', sans-serif;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.05;
  color: #383b69;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 36px 0;
}

/* Accordion List Container */
.faq-accordion-list {
  border-top: 2px solid #383b69;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Single Accordion Row */
.faq-accordion-row {
  border-bottom: 1px solid #E5DFD0;
  transition: background-color 0.2s ease;
  list-style: none;
}

/* Trigger Button */
.faq-accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0 8px;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.faq-accordion-trigger:focus-visible {
  outline: 2px solid #27b3b5;
  outline-offset: 4px;
}

.faq-accordion-num,
.faq-accordion-title,
.faq-accordion-badge,
.faq-badge-icon {
  pointer-events: none;
}

/* Number (01, 02, etc.) */
.faq-accordion-num {
  font-family: 'Teko', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #27b3b5;
  min-width: 44px;
  margin-right: 18px;
  flex-shrink: 0;
}

/* Question Title */
.faq-accordion-title {
  font-family: 'Teko', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: #383b69;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
  margin: 0;
  padding-right: 20px;
  transition: color 0.2s ease;
}

.faq-accordion-trigger:hover .faq-accordion-title {
  color: #27b3b5;
}

/* Circular Teal Toggle Button (+ / -) */
.faq-accordion-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: #27b3b5;
  box-shadow: 0 4px 12px rgba(39, 179, 181, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-accordion-trigger:hover .faq-accordion-badge {
  background-color: #23a3a5;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(39, 179, 181, 0.45);
}

/* Plus / Minus shape using pure CSS */
.faq-badge-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.faq-badge-icon::before,
.faq-badge-icon::after {
  content: '';
  position: absolute;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Horizontal bar (always visible) */
.faq-badge-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2.2px;
}

/* Vertical bar (hidden when open to become minus) */
.faq-badge-icon::after {
  top: 0;
  left: 6px;
  width: 2.2px;
  height: 14px;
  transform: rotate(0deg);
  opacity: 1;
}

.faq-accordion-row.is-open .faq-badge-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Accordion Smooth Height Grid Animation */
.faq-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-row.is-open .faq-accordion-body {
  grid-template-rows: 1fr;
}

.faq-accordion-body-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  box-sizing: border-box;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-row.is-open .faq-accordion-body-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-body-spacer {
  min-width: 44px;
  margin-right: 18px;
  flex-shrink: 0;
}

.faq-body-text {
  flex: 1;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #383b69;
  padding-right: 58px;
}

.faq-body-text p {
  margin: 0 0 12px 0;
  color: #383b69;
}

.faq-body-text p:last-child {
  margin-bottom: 0;
}

.faq-body-text a {
  color: #27b3b5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.faq-body-text a:hover,
.faq-body-text a:focus {
  color: #383b69;
  text-decoration: none;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .section--faq {
    padding: 50px 16px 60px;
  }

  .faq-heading {
    font-size: 38px;
    margin-bottom: 24px;
  }

  .faq-eyebrow-text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .faq-eyebrow-pill .icon--deco-stroke {
    width: 10.5rem;
    height: 3.8rem;
    max-width: 210px;
  }

  .faq-accordion-trigger {
    padding: 13px 0 7px;
    align-items: flex-start;
  }

  .faq-accordion-num {
    font-size: 22px;
    min-width: 32px;
    margin-right: 12px;
    margin-top: 1px;
  }

  .faq-accordion-title {
    font-size: 21px;
    line-height: 1.2;
    padding-right: 12px;
  }

  .faq-accordion-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin-top: -2px;
  }

  .faq-badge-icon {
    width: 12px;
    height: 12px;
  }

  .faq-badge-icon::before {
    top: 5px;
    width: 12px;
    height: 2px;
  }

  .faq-badge-icon::after {
    left: 5px;
    width: 2px;
    height: 12px;
  }

  .faq-body-spacer {
    min-width: 32px;
    margin-right: 12px;
  }

  .faq-body-text {
    font-size: 14px;
    padding-right: 0;
  }

  .faq-accordion-body-inner {
    padding-bottom: 20px;
  }
}

/* CTA Card ("Still Have Questions?") */
.faq-cta-card {
  background-color: #383b69;
  border-radius: 20px;
  margin-top: 50px;
  padding: 34px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 36px -4px rgba(56, 59, 105, 0.28);
  box-sizing: border-box;
  width: 100%;
}

.faq-cta-content {
  flex: 1 1 auto;
}

.faq-cta-title {
  font-family: 'Teko', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.faq-cta-text {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.faq-cta-action {
  flex-shrink: 0;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #febf94;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  padding: 11px 40px 9px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
}

.faq-cta-btn::before {
  content: "";
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 14"><path fill="%23ffffff" d="M1.43 8.4h13.7l-3.3 3.23c-.27.28-.4.6-.4.97 0 .7.58 1.4 1.43 1.4.38 0 .7-.14.98-.4L19.54 8c.22-.23.46-.5.46-1.02 0-.5-.2-.76-.46-1L13.84.4c-.27-.26-.6-.4-.98-.4-.85 0-1.43.7-1.43 1.4 0 .36.13.7.4.97l3.3 3.23H1.44C.63 5.6 0 6.23 0 7c0 .77.64 1.4 1.43 1.4z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 10px;
  margin-top: -5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.faq-cta-btn:hover,
.faq-cta-btn:focus {
  background-color: #fca678;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none;
}

.faq-cta-btn:hover::before,
.faq-cta-btn:focus::before {
  opacity: 1;
  transform: translateX(0);
}

.faq-cta-btn:active {
  transform: translateY(0);
}

.faq-standalone-cta-wrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Mobile responsive for CTA card */
@media (max-width: 768px) {
  .faq-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 30px;
    margin-top: 36px;
    border-radius: 18px;
    gap: 22px;
  }

  .faq-cta-title {
    font-size: 34px;
    margin-bottom: 8px;
  }

  .faq-cta-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .faq-cta-action {
    width: auto;
    align-self: flex-start;
  }

  .faq-cta-btn {
    font-size: 18px;
    padding: 10px 34px 8px;
  }
}

