/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* ===== FAQ Accordion ===== */
.faqs{
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px;
}

.faqs h2{
  margin: 0 0 8px;
  line-height: 1.2;
}

.faqs > p{
  margin: 0 0 18px;
  opacity: .9;
}

.faq-list{
  display: grid;
  gap: 12px;
}

/* Card */
.faq-item{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* Remove default marker */
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 18px;
  position: relative;
  font-weight: 600;
  line-height: 1.35;
  user-select: none;
}

.faq-item summary::-webkit-details-marker{
  display: none;
}

/* Hover / Focus */
.faq-item summary:hover{
  background: rgba(0,0,0,.03);
}

.faq-item summary:focus{
  outline: 2px solid rgba(0,0,0,.15);
  outline-offset: -2px;
}

/* Plus / Minus icon */
.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 700;
  line-height: 1;
  background: #fff;
}

.faq-item[open] summary{
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.faq-item[open] summary::after{
  content: "–";
}

/* Answer */
.faq-answer{
  padding: 14px 18px 18px;
}

.faq-answer p{
  margin: 0;
  line-height: 1.6;
  opacity: .95;
}

/* CTA */
.faq-cta{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.faq-cta p{
  margin: 6px 0;
}

.faq-cta-btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
  font-weight: 600;
}

.faq-cta-btn:hover{
  background: rgba(0,0,0,.04);
}
