/*
Theme Name: Mansour Maathoon
Theme URI: https://arttree.sa
Author: Arttree
Author URI: https://arttree.sa
Description: ثيم ووردبريس عربي لموقع ماذون انكحة منصور العامري بتصميم رسمي مستوحى من الطابع الحكومي والوان قريبة من ناجز مع تحكم في الهيرو والمحتوى والواتساب من مخصص ووردبريس
Version: 1.11.0
Text Domain: mansour-maathoon
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --primary-color: #0F5B4A;
  --secondary-color: #2A8C73;
  --accent-color: #B9975B;
  --background-color: #F7F5EF;
  --card-color: #FFFFFF;
  --text-color: #1F2933;
  --muted-text-color: #6B7280;
  --border-color: #E5E1D8;
  --whatsapp-color: #25D366;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background-color);
  color: var(--text-color);
  font-family: "Tajawal", "Arial", sans-serif;
  direction: rtl;
  line-height: 1.8;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--secondary-color); }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap { display: flex; flex-direction: column; gap: 2px; }
.logo-title { font-size: 22px; font-weight: 800; color: var(--primary-color); }
.logo-subtitle { font-size: 13px; color: var(--muted-text-color); }

.nav-menu { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-menu a { color: var(--text-color); font-weight: 700; font-size: 15px; }
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 99px;
  transition: 0.2s ease;
}
.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-cta { display: none; }
body.mobile-menu-open { overflow: hidden; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 24px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-whatsapp { background: var(--whatsapp-color); color: #fff; }
.btn-whatsapp:hover { filter: brightness(0.95); color: #fff; }

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at top right, rgba(42, 140, 115, 0.15), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, var(--background-color) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(185, 151, 91, 0.5);
  background: rgba(185, 151, 91, 0.12);
  color: var(--primary-color);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--primary-color);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.25;
}

.hero p { margin: 0 0 26px; color: var(--muted-text-color); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-side {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: end;
}

.hero-image-wrap {
  position: relative;
  min-height: 560px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 16% 4px 16%;
  height: 52px;
  background: rgba(15, 91, 74, 0.16);
  border-radius: 999px;
  filter: blur(18px);
  z-index: 0;
}

.hero-person-image {
  position: absolute;
  inset: auto 50% 0 auto;
  transform: translateX(50%);
  width: min(118%, 660px);
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
}

.hero-floating-points {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-floating-title,
.hero-floating-point {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 270px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 225, 216, 0.9);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: 0 18px 42px rgba(15, 91, 74, 0.14);
  backdrop-filter: blur(14px);
  animation: heroFloat 4.5s ease-in-out infinite;
}

.hero-floating-title {
  top: 18px;
  right: -6px;
  background: rgba(15, 91, 74, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  padding-inline: 18px;
}

.hero-floating-point .floating-check {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(42, 140, 115, 0.13);
  color: var(--secondary-color);
  font-weight: 900;
}

.hero-floating-point-1 { top: 94px; right: -28px; animation-delay: 0.1s; }
.hero-floating-point-2 { top: 145px; left: -34px; animation-delay: 0.8s; }
.hero-floating-point-3 { top: 255px; right: -18px; animation-delay: 1.4s; }
.hero-floating-point-4 { bottom: 148px; left: -24px; animation-delay: 2s; }
.hero-floating-point-5 { bottom: 62px; right: -10px; animation-delay: 2.6s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li::before { content: "✓"; color: var(--secondary-color); font-weight: 900; margin-left: 8px; }

.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { color: var(--primary-color); margin: 0; font-size: clamp(28px, 4vw, 40px); }
.section-title p { color: var(--muted-text-color); margin: 10px auto 0; max-width: 720px; }
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 10px;
  margin: 16px auto 0;
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 91, 74, 0.07);
}
.card h3 { color: var(--primary-color); margin: 0 0 8px; }
.card p { color: var(--muted-text-color); margin: 0; }
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 140, 115, 0.12);
  color: var(--primary-color);
  border-radius: 16px;
  font-weight: 900;
  margin-bottom: 16px;
}

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
.form-card textarea { min-height: 120px; resize: vertical; }

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-question {
  width: 100%;
  text-align: right;
  background: #fff;
  border: 0;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-color);
  cursor: pointer;
}
.faq-answer { display: none; padding: 0 22px 20px; color: var(--muted-text-color); }
.faq-item.active .faq-answer { display: block; }

.media-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}


.media-video {
  position: relative;
  width: 50%;
  max-width: 230px;
  min-width: 150px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  margin: 0 auto 18px;
  border: 8px solid #111827;
  box-shadow: 0 18px 38px rgba(15, 91, 74, 0.16);
}
.media-video::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  z-index: 2;
}
.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-placeholder {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 91, 74, 0.12), rgba(185, 151, 91, 0.12));
  border-radius: 18px;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-weight: 900;
}

.site-footer {
  background: var(--primary-color);
  color: #fff;
  padding: 42px 0;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.site-footer p { color: rgba(255,255,255,0.78); }
.footer-credit {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: 14px;
}
.license-card {
  border-color: rgba(185, 151, 91, 0.35);
}
.map-card { text-align: center; }
.map-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  background: var(--background-color);
}
.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}
.review-card {
  position: relative;
}
.review-card .stars {
  color: var(--accent-color);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card h3 {
  margin-top: 16px;
  font-size: 18px;
}
.review-card p {
  font-size: 16px;
}


.whatsapp-fixed {
  position: fixed;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp-color);
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px;
  font-weight: 900;
  z-index: 9999;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
}
.whatsapp-fixed:hover { color: #fff; filter: brightness(0.96); transform: translateY(-2px); }
.whatsapp-fixed svg { width: 24px; height: 24px; flex: 0 0 24px; fill: currentColor; }

@media (max-width: 900px) {
  .hero-grid,
  .form-wrap,
  .footer-grid { grid-template-columns: 1fr; }
  .grid-3,
  .grid-4,
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner { min-height: 70px; gap: 12px; }
  .logo-title { font-size: 18px; }
  .logo-subtitle { font-size: 12px; }
  .header-cta { display: none; }
  .mobile-menu-toggle { display: inline-flex; margin-right: auto; }
  body.mobile-menu-open .site-header {
    background: rgba(255, 255, 255, 0.34);
    border-bottom-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
  }
  body.mobile-menu-open .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.72);
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(15, 91, 74, 0.18);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.2s ease;
    backdrop-filter: blur(18px);
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(247, 245, 239, 0.72);
    font-size: 16px;
    backdrop-filter: blur(8px);
  }
  .nav-menu a::after {
    content: "›";
    font-size: 22px;
    color: var(--secondary-color);
    transform: rotate(180deg);
  }
  .mobile-nav-cta {
    display: flex !important;
    justify-content: center !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    margin-top: 6px;
  }
  .mobile-nav-cta::after { display: none; }
  .section { padding: 52px 0; }
  .hero-image-wrap { min-height: 390px; overflow: visible; }
  .media-video {
    width: 58%;
    max-width: 220px;
    min-width: 150px;
  }
  .hero-person-image { width: min(118%, 520px); }
  .hero-floating-points {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
    pointer-events: auto;
  }
  .hero-floating-title,
  .hero-floating-point {
    position: static;
    max-width: 100%;
    width: 100%;
    animation: none;
    border-radius: 18px;
  }
  .whatsapp-fixed { right: 16px; left: 16px; text-align: center; }
  .footer-credit { flex-direction: column; text-align: center; }
}

.form-status {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.form-status.is-loading, .form-status.is-success, .form-status.is-error { display: block; }
.form-status.is-loading { background: rgba(15, 91, 74, 0.08); color: var(--primary-color); }
.form-status.is-success { background: rgba(42, 140, 115, 0.12); color: var(--primary-color); }
.form-status.is-error { background: rgba(185, 151, 91, 0.14); color: #7a4d00; }
.btn:disabled { opacity: .65; cursor: wait; }
