/* Extends main.css, home.css (cta-final, social, sticky text) and about.css
   (inner hero, breadcrumb, split layout). Loaded after all three, on
   services.php only. */

.offplan { position: relative; background: var(--bg-dark); overflow: hidden; }

.offplan__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25;
}
.offplan::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 35, 66, 0.95) 0%, rgba(10, 35, 66, 0.72) 100%);
}

.offplan__inner { position: relative; z-index: 1; }

.offplan__tag {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(249, 186, 63, 0.15); border: 1px solid rgba(249, 186, 63, 0.4);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.offplan h2 { color: var(--white); }
.offplan__text p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }

.offplan__list { display: grid; gap: 14px; margin: 28px 0 36px; }
.offplan__list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.9875rem; color: rgba(255, 255, 255, 0.9);
}
.offplan__list .icon {
  width: 20px; height: 20px; color: var(--gold); margin-top: 4px;
}

.offplan__media { border-radius: var(--r-xl); overflow: hidden; }
.offplan__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (min-width: 992px) {
  .offplan__inner.split { grid-template-columns: 0.95fr 1.05fr; }
  .offplan__media img { aspect-ratio: 4 / 3.6; }
}

/* Mobile only: center this section's intro text (tag label, heading,
   paragraphs, CTA). The checklist is list-based content and stays
   left-aligned, matching every other card/grid on the site. */
@media (max-width: 767.98px) {
  .offplan__text { text-align: center; }
  .offplan__list { text-align: left; }
  [dir="rtl"] .offplan__list { text-align: right; }
}

.audience__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

@media (min-width: 700px) { .audience__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* Desktop-only: the Communities page's FAQ heading needs a bit more room to
   stay on one line (this section is shared with Services/Developers, whose
   shorter headings already fit and are unaffected). */
@media (min-width: 992px) {
  .faq .section-head { max-width: 720px; }
}

/* Desktop-only: center the FAQ section's own intro (eyebrow, heading,
   description) and the accordion container as a block. Shared by the
   Services and Communities pages so both stay visually consistent.
   Question/answer text inside each accordion item stays left-aligned
   (set explicitly below) for readability. */
@media (min-width: 992px) {
  .faq--centered .section-head {
    margin-inline: auto; text-align: center;
  }
  .faq--centered .faq__list { margin-inline: auto; }
  .faq--centered .faq-item summary,
  .faq--centered .faq-item__body { text-align: left; }
  [dir="rtl"] .faq--centered .faq-item summary,
  [dir="rtl"] .faq--centered .faq-item__body { text-align: right; }
}

.faq__list { max-width: 800px; display: grid; gap: 16px; }

.faq-item {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 28px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 700; color: var(--navy);
  transition: background-color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--navy-soft); }
.faq-item summary:focus-visible { outline-offset: -2px; }

.faq-item__indicator {
  position: relative; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-light);
}
.faq-item__indicator::before,
.faq-item__indicator::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--navy); border-radius: 1px;
  transition: transform 0.25s ease;
}
.faq-item__indicator::before {
  width: 12px; height: 1.5px; transform: translate(-50%, -50%);
}
.faq-item__indicator::after {
  width: 1.5px; height: 12px; transform: translate(-50%, -50%);
}
.faq-item[open] .faq-item__indicator::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__indicator::before { transform: translate(-50%, -50%) rotate(180deg); }

.faq-item__body { padding: 0 28px 24px; }
.faq-item__body p { font-size: 0.9375rem; color: var(--text-main); }

@media (prefers-reduced-motion: reduce) {
  .faq-item__indicator::before,
  .faq-item__indicator::after { transition: none; }
}
