/* ============================================================================
   Block-editor content: the Fajar section patterns (page-sections.php) and
   plain content pages. Adapts core block markup to the hand-written section
   styles in home.css.
   ============================================================================ */

/* Classic themes wrap group content in an extra div; let grid/flex rules see the real children. */
.fajar-sections .wp-block-group__inner-container { display: contents; }
/* Core layout spacing would push grid/flex children apart — the sections set their own. */
.fajar-sections .wp-block-group > *,
.fajar-sections .wp-block-group__inner-container > * { margin-block: 0; }
.fajar-sections .wp-block-image { margin: 0; }
.fajar-sections .wp-block-image img { display: block; }
.fajar-sections p:empty { min-height: 0; }
.fajar-sections .section-head.center .eyebrow { justify-content: center; }
.fajar-sections .section-head { margin-inline: 0; }
.fajar-sections .section-head.center { margin-inline: auto; }

/* Buttons → the site's pill buttons */
.home .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.home .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border-radius: var(--r-pill); padding: 17px 32px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.7);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
  text-decoration: none;
}
.home .wp-block-button__link:hover { transform: translateY(-3px); background: #000; color: #fff; }
.home .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; padding: 16px 30px;
}
.home .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.home .ink .wp-block-button.is-style-outline .wp-block-button__link,
.home .cta-panel .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.3); }
.home .cta-panel .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--ink); border-color: #fff; }

/* Section heading spacing (the original markup used inline styles) */
.fajar-sections .section-head .h-section { margin-top: 16px; }
.fajar-sections .section-head .lead { margin-top: 20px; }
.fajar-sections .section.ink .section-head { margin-bottom: clamp(44px, 5vw, 76px); }

/* Service cards: image fills the card, whole card clickable via the Learn More link */
.fajar-sections .svc-card .wp-block-image { position: absolute; inset: 0; z-index: -2; }
.fajar-sections .svc-card .wp-block-image img { position: static; height: 100%; }
.fajar-sections .svc-card p.svc-more { max-height: none; opacity: 1; overflow: visible; }
.fajar-sections .svc-card .svc-more a { color: #fff; text-decoration: none; }
.fajar-sections .svc-card .svc-more a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* CTA panel: background image block */
.fajar-sections .cta-panel > .wp-block-image { position: absolute; inset: 0; z-index: -2; }
.fajar-sections .cta-panel > .wp-block-image img { position: static; height: 100%; }
.fajar-sections .cta-panel .lead { margin-top: 22px; }

/* Icons are empty paragraphs carrying Bootstrap Icons classes */
.fajar-sections p.bi { line-height: 1; }
.fajar-sections .step-card .step-ic { margin: 18px 0 14px; }

/* Contact tiles */
.fajar-sections .contact-tile .ct-ic { margin: 0; }

/* Client logos */
.fajar-sections .trusted-logo .wp-block-image { height: 100%; display: flex; align-items: center; justify-content: center; }
.fajar-sections .trusted-logo .wp-block-image img { max-height: 100%; width: auto; object-fit: contain; }

/* FAQ */
.fajar-faq { max-width: 860px; margin-inline: auto; }
.fajar-faq .wp-block-details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px 28px; margin-bottom: 14px;
}
.fajar-faq .wp-block-details summary { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); cursor: pointer; }
.fajar-faq .wp-block-details p { color: var(--muted); margin-top: 12px; }

/* Text and image */
.fajar-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fajar-split .h-section { margin-top: 16px; }
.fajar-split .lead { margin-top: 20px; }
.fajar-split-media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 4 / 3; }

@media (max-width: 991px) {
  .fajar-split { grid-template-columns: 1fr; }
}
