/*
Theme Name: mrbalsha-hattab-v2
Theme URI: https://example.com
Author: Converted for WordPress
Description: قالب ووردبريس لموقع رجل أعمال ومستثمر (حطاب)، مبني على تصميم عربي (RTL) فاخر بألوان ذهبية وكحلية. تم تحويله من مشروع React/Vite إلى قالب ووردبريس كامل مع نوع محتوى مخصص "المشاريع الاستثمارية" ومدونة، وقابل للتحرير الكامل عبر Elementor.
Version: 2.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mrbalsha-hattab-v2
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Cairo:wght@400;600;700;900&family=Noto+Kufi+Arabic:wght@400;600;800&display=swap');

:root {
  --bg: #050816;
  --bg2: #0B1225;
  --gold: #D4AF37;
  --gold-light: #F5D77A;
  --gold-dark: #B8912A;
  --blue: #3B82F6;
  --text-muted: #9CA3AF;
  --radius: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  background-color: var(--bg);
  color: #ffffff;
  overflow-x: clip;
  direction: rtl;
  margin: 0;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.font-kufi { font-family: "Noto Kufi Arabic", sans-serif; }
.container { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }

.glass {
  background: rgba(5,8,22,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gold-text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-line { background: linear-gradient(90deg, transparent, var(--gold), transparent); height: 1px; width: 7rem; margin: 1.5rem auto 0; }

::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-24px); } }
.animate-floaty { animation: floaty 8s ease-in-out infinite; }
@keyframes gradientShift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,-4%) scale(1.15); } }
.animate-gradient { animation: gradientShift 18s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.animate-scrolldot { animation: scrollDot 1.6s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .animate-floaty, .animate-gradient, .animate-scrolldot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn-gold, .btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: 9999px; font-weight: 700; font-size: .95rem;
  transition: all .25s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-glass { color: #fff; }
.btn-glass:hover { border-color: rgba(212,175,55,.5); }
.btn-sm { padding: .625rem 1.25rem; font-size: .875rem; }

/* Header / Nav */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 2.25rem 0; transition: all .35s ease;
  background: rgba(5,8,22,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.scrolled {
  padding: 1.25rem 0;
  background: rgba(5,8,22,0.75);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.5rem; font-weight: 800; }
.main-nav-wrap { display: contents; }
.brand-logo img { max-height: 3rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; }
.main-nav a { font-size: .9rem; color: #d1d5db; transition: color .2s; }
.main-nav a:hover, .main-nav li.current-menu-item > a { color: var(--gold); }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; background: none; color: #fff; }
.mobile-menu { display: none; margin: .75rem 1rem 0; border-radius: 1rem; padding: 1.5rem; }
.mobile-menu.open { display: block; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu-list a { display: block; text-align: right; color: #e5e7eb; }
.mobile-menu-list a:hover { color: var(--gold); }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 8.5rem 0 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-blob-gold { position: absolute; top: -10rem; right: 0; width: 36rem; height: 36rem; border-radius: 9999px; background: rgba(212,175,55,.15); filter: blur(120px); }
.hero-blob-blue { position: absolute; bottom: 0; left: 0; width: 40rem; height: 40rem; border-radius: 9999px; background: rgba(59,130,246,.15); filter: blur(140px); }
.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
.hero-badge { display: inline-block; border-radius: 9999px; padding: .5rem 1.25rem; font-size: .875rem; color: var(--gold); margin-bottom: 1.5rem; }
.hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; margin: 0; }
.hero p.lead { color: #d1d5db; font-size: 1.125rem; margin-top: 2rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-social { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.social-icon { width: 2.75rem; height: 2.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #d1d5db; transition: all .2s; }
.social-icon:hover { color: var(--gold); transform: translateY(-3px); }
.hero-image-wrap { position: relative; }
.hero-image-glow { position: absolute; inset: -1.5rem; background: linear-gradient(to top right, rgba(212,175,55,.2), rgba(59,130,246,.2)); filter: blur(24px); border-radius: 2rem; }
.hero-image-card { position: relative; border-radius: 2rem; padding: .75rem; overflow: hidden; }
.hero-image-card img { border-radius: 1.5rem; width: 100%; height: 34rem; object-fit: cover; }
.hero-stat-badge { position: absolute; bottom: -1.5rem; left: -1.5rem; border-radius: 1rem; padding: 1rem 1.5rem; }
.hero-stat-badge .num { font-size: 1.75rem; font-weight: 800; }
.hero-stat-badge .label { color: #d1d5db; font-size: .875rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; color: #9ca3af; }
.scroll-hint .dot-wrap { width: 1.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.2); display: flex; justify-content: center; padding-top: .5rem; }
.scroll-hint .dot { width: .25rem; height: .5rem; border-radius: 9999px; background: var(--gold); }

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* Sections common */
section { padding: 7rem 0; position: relative; }
.section-alt { background: var(--bg2); }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title .kicker { font-size: .875rem; letter-spacing: .2em; }
.section-title h2 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 0; line-height: 1.2; }

@media (min-width: 768px) { .section-title h2 { font-size: 3rem; } }

/* Ventures */
.ventures-grid { display: grid; gap: 2rem; grid-template-columns: repeat(1, 1fr); }
.venture-card { border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .2s; }
.venture-cover { position: relative; height: 14rem; overflow: hidden; }
.venture-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.venture-card:hover .venture-cover img { transform: scale(1.1); }
.venture-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(5,8,22,.3), transparent); }
.venture-sector { position: absolute; top: 1rem; left: 1rem; border-radius: 9999px; padding: .375rem 1rem; font-size: .75rem; color: var(--gold); z-index: 2; }
.venture-logo { position: absolute; bottom: 1rem; left: 1rem; font-size: 1.5rem; font-weight: 800; z-index: 2; }
.venture-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.venture-body h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.venture-body p { color: #9ca3af; font-size: .9rem; margin-top: .75rem; flex: 1; }
.venture-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--gold); font-weight: 600; font-size: .9rem; }

@media (min-width: 768px) { .ventures-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ventures-grid { grid-template-columns: repeat(4, 1fr); } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-card { border-radius: 1.5rem; padding: 2rem; text-align: center; transition: border-color .2s; }
.stat-card .num { font-size: 2.75rem; font-weight: 800; }
.stat-card .label { color: #d1d5db; margin-top: .75rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* About */
.about-top { display: grid; gap: 3rem; align-items: center; margin-bottom: 5rem; }
.about-quote { border-radius: 1.5rem; padding: 2rem; position: relative; }
.about-quote p { color: #d1d5db; font-size: 1.125rem; line-height: 2; }
.about-values { display: grid; gap: 1.25rem; }
.value-card { border-radius: 1rem; padding: 1.5rem; }
.value-card h4 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.value-card p { color: #9ca3af; margin-top: .5rem; }
@media (min-width: 1024px) { .about-top { grid-template-columns: 1fr 1fr; } }

.timeline { position: relative; }
.timeline-line { position: absolute; top: 0; bottom: 0; right: 1rem; width: 1px; background: rgba(255,255,255,.1); }
.timeline-items { display: flex; flex-direction: column; gap: 2.5rem; }
.timeline-item { position: relative; padding-right: 3rem; }
.timeline-card { border-radius: 1rem; padding: 1.5rem; }
.timeline-card .year { font-size: 1.5rem; font-weight: 800; }
.timeline-card h4 { font-size: 1.125rem; font-weight: 700; margin: .25rem 0 0; }
.timeline-card p { color: #9ca3af; margin-top: .5rem; }
.timeline-dot { position: absolute; right: .65rem; top: 1.5rem; width: 1rem; height: 1rem; border-radius: 9999px; background: var(--gold); box-shadow: 0 0 0 4px var(--bg2); }
@media (min-width: 768px) {
  .timeline-line { right: 50%; }
  .timeline-item { width: 50%; padding-right: 0; }
  .timeline-item.right { margin-right: 50%; padding-right: 3rem; }
  .timeline-item.left { margin-left: 50%; padding-left: 3rem; }
  .timeline-dot { right: auto; left: 50%; transform: translateX(50%); }
}

/* Booking form */
.booking-box { border-radius: 1.5rem; padding: 2rem; }
.booking-success { text-align: center; padding: 3rem 0; }
.booking-success h3 { font-size: 1.5rem; font-weight: 700; margin-top: 1.5rem; }
.booking-success p { color: #d1d5db; margin-top: .75rem; }
.booking-form { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; color: #d1d5db; }
.form-field input, .form-field select, .form-field textarea {
  border-radius: .75rem; padding: .75rem 1rem; color: #fff; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); outline: none; font-family: inherit;
}
.form-field select option { background: var(--bg2); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: rgba(212,175,55,.6); }
.form-error { font-size: .75rem; color: #f87171; }
.booking-submit { grid-column: 1 / -1; }
@media (min-width: 768px) { .booking-form { grid-template-columns: 1fr 1fr; } }

/* Blog */
.blog-filters { display: flex; justify-content: center; gap: .75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.blog-filters button { border-radius: 9999px; padding: .5rem 1.25rem; font-size: .9rem; color: #d1d5db; }
.blog-filters button.active { background: var(--gold); color: var(--bg); font-weight: 600; }
.blog-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.post-card { border-radius: 1.5rem; padding: 1.75rem; height: 100%; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.4); }
.post-card .cat { font-size: .75rem; color: var(--gold); }
.post-card h3 { font-size: 1.25rem; font-weight: 700; margin: .75rem 0 0; }
.post-card p { color: #9ca3af; font-size: .9rem; margin-top: .75rem; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; font-size: .875rem; color: #6b7280; }
.post-meta .readmore { display: inline-flex; align-items: center; gap: .25rem; color: var(--gold); }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, 1fr); }
.contact-card { border-radius: 1.5rem; padding: 2rem; text-align: center; transition: border-color .2s; }
.contact-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: rgba(212,175,55,.1); display: flex; align-items: center; justify-content: center; margin: 0 auto; color: var(--gold); }
.contact-card h4 { font-weight: 700; margin-top: 1.25rem; }
.contact-card .val { color: #9ca3af; font-size: .9rem; margin-top: .5rem; direction: ltr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

/* Footer */
.site-footer { background: var(--bg2); border-top: 1px solid rgba(255,255,255,.05); padding: 4rem 0 2rem; }
.site-footer.site-footer-custom { background: none; border-top: none; padding: 0; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; grid-template-columns: 1fr; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 800; }
.footer-brand p { color: #9ca3af; margin-top: 1rem; max-width: 22rem; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-socials a { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #d1d5db; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; color: #9ca3af; font-size: .9rem; }
.footer-col ul a:hover { color: var(--gold); }
.newsletter-box h4 { font-weight: 700; margin-bottom: .75rem; }
.newsletter-text { color: #9ca3af; font-size: .9rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input { border-radius: 9999px; padding: .75rem 1rem; font-size: .9rem; color: #fff; flex: 1; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); outline: none; }
.newsletter-form button { padding: .75rem 1.25rem; border-radius: 9999px; background: var(--gold); color: var(--bg); font-weight: 600; font-size: .9rem; }
.newsletter-success { display: flex; align-items: center; gap: .5rem; color: var(--gold); font-size: .9rem; }
.newsletter-error { display: block; color: #f87171; font-size: .75rem; margin-top: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 1.5rem; text-align: center; color: #6b7280; font-size: .9rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* Project detail page */
.project-hero { position: relative; height: 70vh; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(5,8,22,.5), rgba(5,8,22,.4)); display: flex; flex-direction: column; justify-content: flex-end; }
.project-hero-content { padding-bottom: 4rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px; padding: .625rem 1.25rem; font-size: .9rem; margin-bottom: 2rem; }
.back-link:hover { color: var(--gold); }
.project-hero-content h1 { font-size: 2.5rem; font-weight: 800; margin: .5rem 0 0; }
@media (min-width: 768px) { .project-hero-content h1 { font-size: 3.75rem; } }

.project-body { display: grid; gap: 3rem; padding: 4rem 0; grid-template-columns: 1fr; }
.project-main { display: flex; flex-direction: column; gap: 3rem; }
.project-main h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.project-main .overview { color: #d1d5db; font-size: 1.125rem; line-height: 2; }
.services-grid, .stats-3 { display: grid; gap: 1rem; }
.services-grid { grid-template-columns: 1fr; }
.service-item, .achievement-item { border-radius: 1rem; padding: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.achievement-item .bullet { width: .5rem; height: .5rem; border-radius: 9999px; background: var(--gold); flex-shrink: 0; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-3 .stat-card .num { font-size: 1.75rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.project-sidebar .glass { border-radius: 1.5rem; padding: 1.75rem; }
.sidebar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.sidebar-row .k { color: #6b7280; font-size: .75rem; }
.sidebar-row .v { font-weight: 600; }
.related-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 6rem; }
.related-card { border-radius: 1.5rem; overflow: hidden; }
.related-card .cover { height: 11rem; overflow: hidden; }
.related-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.related-card:hover .cover img { transform: scale(1.1); }
.related-card .body { padding: 1.5rem; }
.related-card h3 { font-weight: 700; }
.related-card:hover h3 { color: var(--gold); }
.related-card .link { display: inline-flex; align-items: center; gap: .25rem; color: var(--gold); font-size: .9rem; margin-top: .75rem; }

@media (min-width: 1024px) {
  .project-body { grid-template-columns: 2fr 1fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }

/* misc icon sizing */
.icon { width: 1em; height: 1em; stroke-width: 2; }
