/*
Theme Name: Aljobairi Real Estate
Theme URI: https://aljobairi.com
Author: Abdulaziz Aljobairi Real Estate Company
Description: ثيم شركة عبدالعزيز الجبيري العقارية. ثنائي اللغة (عربي / English) وكل الأقسام قابلة للتعديل من لوحة التحكم.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aljobairi
*/

* { box-sizing: border-box; }
html, body { margin:0; padding:0; width: 100%; }
body { font-family: 'Segoe UI', Arial, sans-serif; font-weight: 500; overflow-x: clip; }
html.jobairi-ar body { font-family: 'Tajawal', 'Cairo', sans-serif; text-align: right; direction: rtl; font-weight: 600; }
img { max-width: 100%; }

/* ===== HEADER ===== */
.jobairi-header { background-color: #0A1F2E; padding: 14px 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.25); transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease; }
body.admin-bar .jobairi-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .jobairi-header { top: 46px; } }
.jobairi-header.jobairi-header-scrolled {
  background-color: rgba(10, 31, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.jobairi-header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto; gap: 20px; flex-wrap: wrap; }
.jobairi-lang-switch { display: flex; align-items: center; gap: 6px; color: #FFFFFF; font-size: 14px; font-weight: 600; order: 1; cursor: pointer; user-select: none; background: rgba(255,255,255,0.06); padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(200,169,81,0.35); transition: background 0.2s ease, border-color 0.2s ease; }
.jobairi-lang-switch:hover { background: rgba(200,169,81,0.15); border-color: #C8A951; }
.jobairi-lang-globe { font-size: 15px; }
.jobairi-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; order: 2; }
.jobairi-nav-link { color: #C8A951; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.jobairi-nav-link:hover { color: #FFFFFF; }
.jobairi-nav-active { color: #FFFFFF; }
.jobairi-brand { display: flex; align-items: center; gap: 10px; order: 3; }
.jobairi-brand-text { color: #C8A951; font-size: 14px; font-weight: 800; white-space: nowrap; }
.jobairi-brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background-color: transparent; padding: 4px; box-shadow: 0 0 0 2px rgba(200,169,81,0.4); transition: transform 0.4s ease; }
.jobairi-brand-logo:hover { transform: rotate(8deg) scale(1.08); }
html.jobairi-ar .jobairi-brand-logo { width: 62px; height: 62px; }

/* ===== HERO (banner) ===== */
.jobairi-hero-banner { position: relative; background: linear-gradient(155deg, #010f15 0%, #0a2536 100%); overflow: hidden; padding: 0; display: block; }
.jobairi-hero-banner-image { width: 100%; line-height: 0; position: relative; }
.jobairi-hero-banner-image img { width: 100%; height: auto; display: block; }
.jobairi-hero-banner-image::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(1,15,21,0.55) 0%, rgba(1,15,21,0) 100%);
  pointer-events: none;
  z-index: 2;
}
.jobairi-hero-banner-buttons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  background-color: transparent;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 20px;
  line-height: normal;
  transform: translateX(-16%);
}
html.jobairi-ar .jobairi-hero-banner-buttons { transform: translateX(16%); }
@media (max-width: 700px) {
  .jobairi-hero-banner-buttons,
  html.jobairi-ar .jobairi-hero-banner-buttons { transform: none; }
}
@media (max-width: 600px) {
  .jobairi-hero-banner-buttons { bottom: 5%; padding: 0 16px; gap: 10px; }
  .jobairi-hero-banner-buttons .jobairi-btn { padding: 10px 18px; font-size: 12px; }
}

/* ===== BUTTONS ===== */
.jobairi-btn { display: inline-block; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, opacity 0.25s ease; border: none; cursor: pointer; font-family: inherit; will-change: transform; }
.jobairi-btn:hover { transform: translateY(-3px); }
.jobairi-btn:active { transform: translateY(-1px) scale(0.98); }
.jobairi-btn-gold { background-color: #C8A951; color: #0A1F2E; box-shadow: 0 4px 14px rgba(200,169,81,0.0); }
.jobairi-btn-gold:hover { box-shadow: 0 10px 24px rgba(200,169,81,0.45); }
.jobairi-btn-outline { background-color: rgba(255,255,255,0.04); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.55); }
.jobairi-btn-outline:hover { background-color: rgba(255,255,255,0.1); border-color: #C8A951; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.jobairi-hero-banner-buttons .jobairi-btn { animation: jobairiBtnRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.jobairi-hero-banner-buttons .jobairi-btn:nth-child(1) { animation-delay: 0.15s; }
.jobairi-hero-banner-buttons .jobairi-btn:nth-child(2) { animation-delay: 0.32s; }
.jobairi-hero-banner-buttons .jobairi-btn-gold { animation: jobairiBtnRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards, jobairiGlowPulse 2.6s ease-in-out 1s infinite; }
@keyframes jobairiBtnRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jobairiGlowPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(200,169,81,0.0); }
  50% { box-shadow: 0 6px 20px rgba(200,169,81,0.35); }
}
.jobairi-btn-dark { display: inline-block; margin-top: 12px; padding: 14px 28px; background-color: #0A1F2E; color: #FFFFFF; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; }
.jobairi-btn-dark-outline { display: inline-block; padding: 14px 32px; border: 1.5px solid #0A1F2E; color: #0A1F2E; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; }
.jobairi-btn-dark-outline:hover { background-color: #0A1F2E; color: #FFFFFF; }

/* ===== ABOUT ===== */
.jobairi-about { background-color: #FAF7F0; padding: 80px 5%; }
.jobairi-about-inner { display: flex; align-items: flex-start; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 50px; flex-wrap: wrap; }
.jobairi-about-image { flex: 1 1 450px; max-width: 550px; overflow: hidden; border-radius: 8px; }
.jobairi-about-image img { width: 100%; height: auto; border-radius: 8px; display: block; object-fit: cover; transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
.jobairi-about-image:hover img { transform: scale(1.06); }
.jobairi-about-text { flex: 1 1 450px; max-width: 550px; }
.jobairi-eyebrow { color: #C8A951; font-weight: 800; font-size: 15px; margin: 0 0 8px 0; }
.jobairi-about-title { font-size: 28px; color: #0A1F2E; margin: 0 0 20px 0; font-weight: 800; }
.jobairi-about-desc { font-size: 16px; line-height: 1.7; color: #444; margin: 0 0 16px 0; font-weight: 600; }
html.jobairi-ar .jobairi-about-inner { flex-direction: row-reverse; }

/* ===== VISION / VALUES / MISSION ===== */
.jobairi-cards { display: flex; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 5% 80px 5%; flex-wrap: wrap; align-items: stretch; background-color: #FAF7F0; }
.jobairi-card { flex: 1 1 300px; background-color: #FAF7F0; border: 1px solid #E5DFD0; border-radius: 10px; padding: 36px 28px; text-align: center; }
.jobairi-card-icon { font-size: 36px; color: #C8A951; margin-bottom: 16px; }
.jobairi-card-title { font-size: 20px; color: #0A1F2E; margin: 0 0 16px 0; font-weight: 800; }
.jobairi-card-desc { font-size: 15px; line-height: 1.7; color: #555; margin: 0; font-weight: 600; }
.jobairi-card-values { text-align: left; }
html.jobairi-ar .jobairi-card-values { text-align: right; }
html.jobairi-ar .jobairi-value-item { flex-direction: row-reverse; }
.jobairi-value-item { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
.jobairi-value-item-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: #C8A951; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.jobairi-value-item-text strong { display: block; color: #0A1F2E; font-size: 15px; margin-bottom: 3px; font-weight: 800; }
.jobairi-value-item-text p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; font-weight: 600; }

/* ===== SERVICES ===== */
.jobairi-services { background-color: #FFFFFF; padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.jobairi-services-header { text-align: center; margin-bottom: 50px; }
.jobairi-eyebrow-center { color: #0A1F2E; font-weight: 800; font-size: 22px; margin: 0; }
.jobairi-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.jobairi-service-card { text-align: center; padding: 20px; }
.jobairi-service-icon { font-size: 34px; margin-bottom: 16px; color: #C8A951; display: flex; justify-content: center; transition: transform 0.35s ease; }
.jobairi-service-card:hover .jobairi-service-icon { transform: translateY(-6px) scale(1.1); }
.jobairi-service-title { font-size: 17px; color: #0A1F2E; font-weight: 800; margin: 0 0 12px 0; min-height: 48px; }
.jobairi-service-desc { font-size: 14px; line-height: 1.7; color: #666; margin: 0 0 14px 0; font-weight: 600; }
.jobairi-readmore { color: #C8A951; font-weight: 700; font-size: 14px; text-decoration: none; }
.jobairi-readmore:hover { text-decoration: underline; }

/* ===== PROCESS ===== */
.jobairi-process { background-color: #FAF7F0; padding: 80px 5%; }
.jobairi-process-header { text-align: center; margin-bottom: 50px; }
.jobairi-process-track { display: flex; align-items: flex-start; justify-content: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 0; }
.jobairi-process-step { flex: 1 1 180px; max-width: 200px; text-align: center; padding: 0 10px; }
.jobairi-process-circle { width: 56px; height: 56px; border-radius: 50%; background-color: #0A1F2E; color: #C8A951; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px auto; }
.jobairi-process-title { font-size: 16px; color: #0A1F2E; font-weight: 800; margin: 0 0 8px 0; }
.jobairi-process-desc { font-size: 13px; color: #666; line-height: 1.6; margin: 0; font-weight: 600; }
.jobairi-process-line { flex: 0 1 60px; height: 1px; background-color: #C8A951; margin-top: 28px; min-width: 30px; }
.jobairi-process-cta { text-align: center; margin-top: 50px; }
html.jobairi-ar .jobairi-process-track { flex-direction: row-reverse; }

/* ===== OPPORTUNITIES ===== */
.jobairi-opportunities { background-color: #FFFFFF; padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.jobairi-opp-header { text-align: center; margin-bottom: 40px; }
.jobairi-opp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.jobairi-opp-card { border: 1px solid #EEE; border-radius: 10px; overflow: hidden; background-color: #FFFFFF; }
.jobairi-opp-image { position: relative; overflow: hidden; }
.jobairi-opp-image img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.jobairi-opp-card:hover .jobairi-opp-image img { transform: scale(1.12); }
.jobairi-opp-badge { position: absolute; top: 10px; inset-inline-start: 10px; background-color: #C8A951; color: #0A1F2E; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; z-index: 2; animation: jobairiPulseBadge 2.4s ease-in-out infinite; }
@keyframes jobairiPulseBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.jobairi-opp-content { padding: 18px; }
.jobairi-opp-title { font-size: 16px; color: #0A1F2E; font-weight: 800; margin: 0 0 8px 0; }
.jobairi-opp-meta { font-size: 13px; color: #777; margin: 0 0 4px 0; font-weight: 600; }
.jobairi-opp-btn { display: block; text-align: center; margin-top: 14px; padding: 10px; background-color: #0A1F2E; color: #FFFFFF; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 14px; }

/* ===== FOOTER ===== */
.jobairi-footer { background-color: #0A1F2E; padding: 60px 5% 30px 5%; }
.jobairi-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 40px auto; }
.jobairi-footer-title { color: #FFFFFF; font-size: 17px; font-weight: 800; margin: 0 0 16px 0; }
.jobairi-footer-text { color: #B8C0C8; font-size: 14px; line-height: 1.7; margin: 0 0 8px 0; font-weight: 500; }
.jobairi-footer-link { display: block; color: #B8C0C8; font-size: 14px; text-decoration: none; margin-bottom: 10px; font-weight: 600; }
.jobairi-footer-link:hover { color: #C8A951; }
.jobairi-footer-email { color: #B8C0C8; text-decoration: none; transition: color 0.2s ease; }
.jobairi-footer-email:hover { color: #C8A951; }
.jobairi-newsletter { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.jobairi-newsletter-input { flex: 1 1 150px; padding: 10px 14px; border-radius: 6px; border: none; font-size: 14px; font-family: inherit; }
.jobairi-newsletter-btn { padding: 10px 20px; background-color: #C8A951; color: #0A1F2E; border: none; border-radius: 6px; font-weight: 800; cursor: pointer; font-size: 14px; font-family: inherit; }
.jobairi-newsletter-msg { flex: 1 1 100%; margin: 4px 0 0 0; color: #C8A951; font-size: 13px; font-weight: 700; }
.jobairi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jobairi-footer-tagline { color: #C8A951; font-size: 12px; letter-spacing: 1px; margin: 0 0 12px 0; font-weight: 700; }
.jobairi-footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.jobairi-social { display: flex; gap: 12px; }
.jobairi-social-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #B8C0C8; color: #FFFFFF; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; }
.jobairi-copyright { color: #8A9299; font-size: 13px; margin: 0; font-weight: 500; }
html.jobairi-ar .jobairi-footer-grid { direction: rtl; }
html.jobairi-ar .jobairi-footer-bottom { flex-direction: row-reverse; }

/* ===== Scroll reveal ===== */
.jobairi-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.jobairi-reveal.jobairi-in-view { opacity: 1; transform: translateY(0); }

/* ===== WhatsApp floating button ===== */
.jobairi-whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 60px; height: 60px; border-radius: 50%; background-color: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.25); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.jobairi-whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
html.jobairi-ar .jobairi-whatsapp-float { right: auto; left: 24px; }
.jobairi-whatsapp-float svg { width: 32px; height: 32px; }

/* ===== Generic pages (page.php / index.php) ===== */
.jb-page { max-width: 900px; margin: 60px auto; padding: 0 5%; line-height: 1.8; color: #333; }
.jb-page h1 { color: #0A1F2E; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .jobairi-header-inner { justify-content: center; text-align: center; }
  .jobairi-nav { order: 3; justify-content: center; gap: 16px; }
  .jobairi-brand { order: 2; }
  .jobairi-lang-switch { order: 1; }
  .jobairi-services-grid { grid-template-columns: repeat(2, 1fr); }
  .jobairi-opp-grid { grid-template-columns: repeat(2, 1fr); }
  .jobairi-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .jobairi-process-line { display: none; }
  .jobairi-process-step { flex: 1 1 140px; }
}
@media (max-width: 768px) {
  .jobairi-about-inner, html.jobairi-ar .jobairi-about-inner { flex-direction: column; }
  .jobairi-card-values, html.jobairi-ar .jobairi-card-values { text-align: center; }
  .jobairi-value-item { text-align: left; }
  html.jobairi-ar .jobairi-value-item { text-align: right; flex-direction: row-reverse; }
}
@media (max-width: 600px) {
  .jobairi-services-grid { grid-template-columns: 1fr; }
  .jobairi-whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  html.jobairi-ar .jobairi-whatsapp-float { right: auto; left: 16px; }
  .jobairi-whatsapp-float svg { width: 28px; height: 28px; }
}
@media (max-width: 550px) {
  .jobairi-opp-grid { grid-template-columns: 1fr; }
  .jobairi-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .jobairi-hero-banner-buttons .jobairi-btn,
  .jobairi-hero-banner-buttons .jobairi-btn-gold,
  .jobairi-opp-badge { animation: none !important; }
  .jobairi-reveal { opacity: 1; transform: none; transition: none; }
}
