/* FAQ page — WebsitesForChildren.com */

body.faq-page {
  background: #e8f5e9;
}

body.faq-page .site-footer {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.faq-page {
  --faq-navy: #0a1931;
  --faq-teal: #14b8a6;
  --faq-teal-dark: #0d9488;
  --faq-muted: #64748b;
  --faq-sky: #eef7ff;
}

.faq-page .container {
  width: min(920px, 92%);
}

/* Full-page scenic block — ends at footer */
.faq-scene {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #eef7ff 0%, #e8f5e9 38%);
  overflow: hidden;
}

.faq-scene-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0;
}

.faq-scene-bg img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.faq-hero,
.faq-list-section,
.faq-cta,
.faq-features {
  position: relative;
  z-index: 1;
}

/* Hero */
.faq-hero {
  padding: 3rem 0 2.25rem;
  background: transparent;
  text-align: center;
}

.faq-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.faq-deco-balloon {
  top: 1.25rem;
  left: 5%;
  width: 72px;
  height: 88px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80' fill='none'%3E%3Cellipse cx='32' cy='28' rx='22' ry='26' fill='%23f472b6'/%3E%3Cellipse cx='32' cy='28' rx='22' ry='26' fill='url(%23g)'/%3E%3Cpath d='M32 54v14' stroke='%2394a3b8' stroke-width='2'/%3E%3Cpath d='M26 68h12' stroke='%2394a3b8' stroke-width='2'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='16' y1='8' x2='48' y2='48'%3E%3Cstop stop-color='%23fda4af'/%3E%3Cstop offset='1' stop-color='%23f472b6'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.faq-deco-rocket {
  top: 1rem;
  right: 6%;
  width: 64px;
  height: 64px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='1.6'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.05-2.91a2.18 2.18 0 00-2.91-.05z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 012-3.95A12.88 12.88 0 0122 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 01-4 2z'/%3E%3C/svg%3E");
}

.faq-deco-star {
  width: 14px;
  height: 14px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbbf24'%3E%3Cpath d='M12 2l2.4 7.4H22l-6 4.6 2.3 7-6.3-4.6L5.7 21l2.3-7-6-4.6h7.6z'/%3E%3C/svg%3E");
}

.faq-deco-star--1 { top: 2.5rem; right: 18%; }
.faq-deco-star--2 { top: 4rem; left: 20%; width: 10px; height: 10px; }

.faq-hero-inner {
  position: relative;
  z-index: 1;
}

.faq-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--faq-navy);
  letter-spacing: -0.03em;
}

.faq-sub {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--faq-teal-dark);
}

.faq-intro {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--faq-muted);
}

.faq-list-section {
  padding: 0.5rem 0 1.5rem;
}

.faq-accordion {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #eef2f7;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item-head {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  border: none;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-item.is-open .faq-question {
  background: #f0fdfa;
}

.faq-num {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--faq-teal), var(--faq-teal-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.faq-q-text {
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--faq-navy);
  line-height: 1.35;
}

.faq-chevron {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-right: 2px solid var(--faq-teal-dark);
  border-bottom: 2px solid var(--faq-teal-dark);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(225deg) translateY(-2px);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer[hidden] {
  display: none !important;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.15rem 4.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--faq-muted);
}

.faq-answer-inner a {
  color: var(--faq-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.faq-answer-inner a:hover {
  text-decoration: underline;
}

/* CTA card over scenic background */
.faq-cta {
  padding: 0 0 3rem;
}

.faq-cta-inner {
  display: flex;
  justify-content: center;
  padding: 0 0 0.5rem;
}

.faq-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 520px;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(6px);
}

.faq-cta-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--faq-teal), var(--faq-teal-dark)) center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z'/%3E%3C/svg%3E");
}

.faq-cta-copy strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  color: var(--faq-navy);
}

.faq-cta-copy p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--faq-muted);
}

.faq-cta-email {
  font-size: 0.88rem !important;
}

.faq-cta-email a {
  color: var(--faq-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.faq-cta-email a:hover {
  text-decoration: underline;
}

.faq-cta-btn {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--faq-teal), var(--faq-teal-dark));
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
  transition: transform 0.15s ease;
}

.faq-cta-btn:hover {
  transform: translateY(-1px);
}

/* Features bar — last block before footer */
.faq-features {
  padding: 0 0 2.5rem;
  background: transparent;
}

.faq-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.faq-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.faq-feat strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--faq-navy);
}

.faq-feat p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--faq-muted);
}

.faq-feat-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: center/20px no-repeat;
}

.faq-feat--green .faq-feat-ico {
  background-color: #ecfdf5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Cpath d='M12 3l7 4v5c0 5-3.5 8-7 9-3.5-1-7-4-7-9V7l7-4z'/%3E%3C/svg%3E");
}

.faq-feat--blue .faq-feat-ico {
  background-color: #eff6ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c0 2 2.5 3 6 3s6-1 6-3v-5'/%3E%3C/svg%3E");
}

.faq-feat--orange .faq-feat-ico {
  background-color: #fff7ed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.5-9.5-9A5.5 5.5 0 0112 6a5.5 5.5 0 019.5 6c-2.5 4.5-9.5 9-9.5 9z'/%3E%3C/svg%3E");
}

.faq-feat--purple .faq-feat-ico {
  background-color: #f5f3ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3 3-5 6-5s6 2 6 5'/%3E%3C/svg%3E");
}

body.faq-page .main-nav a.nav-active,
body.faq-page .mobile-nav-link.nav-active {
  color: var(--faq-teal-dark);
  border-bottom-color: var(--faq-teal);
}

@media (max-width: 960px) {
  .faq-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-answer-inner {
    padding-left: 1.25rem;
  }
}

@media (max-width: 600px) {
  .faq-question {
    padding: 0.9rem 1rem;
    gap: 0.65rem;
  }

  .faq-num {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .faq-q-text {
    font-size: 0.9rem;
  }

  .faq-cta {
    padding-bottom: 2.25rem;
  }

  .faq-features-grid {
    grid-template-columns: 1fr;
  }
}

body.rtl .faq-question {
  text-align: right;
}

body.rtl .faq-answer-inner {
  padding-right: 4.25rem;
  padding-left: 1.25rem;
}

body.rtl .faq-deco-balloon {
  left: auto;
  right: 5%;
}

body.rtl .faq-deco-rocket {
  right: auto;
  left: 6%;
}

@media (max-width: 960px) {
  body.rtl .faq-answer-inner {
    padding-right: 1.25rem;
  }
}
