/*
Theme Name: Sakan Moon Hills
Theme URI: https://sakan.group
Author: Sakan Group
Description: القالب الرسمي الجديد لموقع سكن جروب — تصميم مون هيلز الفاخر. عربي RTL، متوافق مع Yoast و Fluent Forms، وبتتبع Google Ads مدمج.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: sakan-moonhills
*/

/* Theme-level fixes on top of the compiled design CSS */

/* reveal-on-scroll (replaces framer-motion) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].sk-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* hide the React language toggle until TranslatePress takes over */
button[aria-label*="Switch"], button[aria-label*="التبديل"] { display: none !important; }

/* WP admin bar offset for the fixed header */
body.admin-bar header.fixed { top: 32px; }

/* mobile menu panel injected by theme.js */
.sk-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: rgba(27, 26, 21, 0.97);
}
.sk-mobile-menu.open { display: flex; }
.sk-mobile-menu a {
  color: #f5f2ea;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

/* ── article body typography (styles the raw Gutenberg content) ── */
.sk-article-body { color: rgba(27, 26, 21, 0.8); }
.sk-article-body > p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 2.25rem;
  color: rgba(27, 26, 21, 0.85);
}
.sk-article-body p {
  margin: 1.5rem 0 0;
  line-height: 2.25rem;
}
.sk-article-body h2,
.sk-article-body h3 {
  font-family: var(--font-playfair), var(--font-tajawal), Georgia, serif;
  margin: 2.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.4;
}
@media (min-width: 640px) {
  .sk-article-body h2 { font-size: 1.875rem; }
}
.sk-article-body h2::before,
.sk-article-body h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  margin-inline-end: 0.75rem;
  transform: translateY(1px);
  background: var(--olive);
  vertical-align: middle;
}
.sk-article-body ul,
.sk-article-body ol {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.sk-article-body li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-top: 0.75rem;
  line-height: 2rem;
}
.sk-article-body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--olive);
}
.sk-article-body a { color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }
.sk-article-body img { max-width: 100%; height: auto; border-radius: 2px; margin-top: 1.5rem; }
.sk-article-body blockquote {
  margin: 2rem 0 0;
  padding: 1rem 1.5rem;
  border-inline-start: 4px solid var(--olive);
  background: rgba(123, 122, 79, 0.08);
  font-weight: 600;
}
.sk-article-body figure { margin: 1.5rem 0 0; }

/* pagination (insights) */
.page-numbers { display: inline-block; margin-inline-end: .5rem; padding: .4rem .9rem; background: #fff; color: var(--midnight); font-weight: 700; border-radius: 2px; text-decoration: none; }
.page-numbers.current { background: var(--olive); color: #fff; }

/* ── Fluent Forms skin to match the design ── */
.sk-fluent-wrap .ff-el-form-control {
  width: 100%; border: 1px solid rgba(27,26,21,.2); background: #fff;
  padding: .875rem 1rem; border-radius: 2px; color: var(--midnight);
}
.sk-fluent-wrap .ff-el-form-control:focus { border-color: var(--olive); outline: none; }
.sk-fluent-wrap .ff-el-input--label label { font-weight: 600; color: var(--midnight); font-size: .875rem; }
.sk-fluent-wrap .ff-btn-submit {
  background: #25D366 !important; color: #fff !important; border: none !important;
  font-weight: 700; padding: .9rem 2rem !important; border-radius: 2px !important;
}
.sk-fluent-wrap .ff-btn-submit:hover { filter: brightness(1.08); }
