/* =============================================
   نكسوس للتطوير والاستثمار العقاري — الهوية البصرية
   كحلي فخم + ذهبي + أبيض
   ============================================= */

:root {
  --navy: #1B2A4E;
  --navy-deep: #121D3A;
  --navy-soft: #24345C;
  --gold: #C6A253;
  --gold-light: #E3C98A;
  --gold-dark: #A8853B;
  --ink: #222A3D;
  --muted: #66708A;
  --paper: #F8F7F3;
  --white: #FFFFFF;
  --line: #E6E2D8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 29, 58, 0.10);
  --shadow-lg: 0 18px 50px rgba(18, 29, 58, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Cairo', 'Tajawal', sans-serif; line-height: 1.4; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(198, 162, 83, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 0;
}
.brand img { height: 62px; width: auto; }

.main-nav ul { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  color: #E8EBF4; font-size: 1.02rem; font-weight: 500;
  padding: 0.4rem 0.15rem; position: relative; transition: color 0.25s;
}
.main-nav a::after {
  content: ''; position: absolute; right: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 700; font-size: 0.98rem;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.header-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px; padding: 0.35rem 0.6rem; cursor: pointer; color: #fff; font-size: 1.3rem;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  font-family: 'Tajawal', sans-serif; cursor: pointer; border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); box-shadow: 0 8px 22px rgba(198,162,83,0.35); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(198,162,83,0.5); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-whatsapp { background: #1FAF57; color: #fff; box-shadow: 0 8px 22px rgba(31,175,87,0.35); }
.btn-whatsapp:hover { background: #189A4B; }

/* ---------- الهيرو ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(198,162,83,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #223260 100%);
  color: var(--white);
  padding: 6.5rem 0 0;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z' fill='none' stroke='%23C6A253' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin-inline: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(198,162,83,0.55); color: var(--gold-light);
  border-radius: 999px; padding: 0.35rem 1.1rem; font-size: 0.95rem; margin-bottom: 1.6rem;
  background: rgba(198,162,83,0.08);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; margin-bottom: 1.2rem;
}
.hero h1 .gold { color: var(--gold-light); }
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: #C9D2E6; max-width: 640px; margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* أفق المدينة */
.hero-skyline { display: block; width: 100%; margin-top: 1rem; }

/* شريط الإحصائيات */
.stats-strip { background: var(--navy-deep); border-top: 1px solid rgba(198,162,83,0.3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  text-align: center; padding: 1.6rem 1rem; color: #C9D2E6;
  border-inline-start: 1px solid rgba(255,255,255,0.07);
}
.stat:first-child { border-inline-start: none; }
.stat b { display: block; font-size: 1.7rem; color: var(--gold-light); font-family: 'Cairo', sans-serif; }

/* ---------- الأقسام العامة ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .kicker {
  color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-head .kicker::before, .section-head .kicker::after {
  content: ''; width: 26px; height: 1.5px; background: var(--gold);
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-top: 0.5rem; color: var(--navy); }
.section-navy .section-head h2 { color: var(--white); }
.section-head p { color: var(--muted); margin-top: 0.7rem; }
.section-navy .section-head p { color: #C9D2E6; }

/* ---------- بطاقات الخدمات ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-icon {
  width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(198,162,83,0.5);
}
.service-icon svg { width: 34px; height: 34px; stroke: var(--gold-light); fill: none; stroke-width: 1.6; }
.service-card h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- قسم المشروع القادم ---------- */
.project-card {
  position: relative; overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(198,162,83,0.22), transparent 55%),
    linear-gradient(150deg, #1E2C55 0%, var(--navy-deep) 100%);
  color: var(--white); padding: 3.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
.ribbon {
  position: absolute; top: 24px; left: 24px;
  background: linear-gradient(135deg, #B03030, #8C1F1F); color: #fff;
  padding: 0.35rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.project-card .kicker { color: var(--gold-light); font-weight: 700; margin-bottom: 0.4rem; }
.project-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 0.6rem; }
.project-card .sub { color: #C9D2E6; font-size: 1.1rem; margin-bottom: 1.6rem; }
.project-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.project-features li {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.98rem; color: #DFE5F2;
}
.project-features li::before {
  content: '✦'; color: var(--gold); font-size: 0.85rem;
}
.project-visual svg { width: 100%; height: auto; }

/* ---------- بطاقات العروض ---------- */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.offer-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.8rem; transition: transform 0.3s, box-shadow 0.3s; position: relative;
  border-top: 3px solid var(--gold);
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.offer-card .tag {
  display: inline-block; font-size: 0.82rem; font-weight: 700; border-radius: 999px;
  padding: 0.15rem 0.85rem; margin-bottom: 0.8rem;
}
.tag-offer { background: rgba(198,162,83,0.15); color: var(--gold-dark); }
.tag-alert { background: rgba(176,48,48,0.12); color: #A32B2B; }
.offer-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.5rem; }
.offer-card p { color: var(--muted); font-size: 0.96rem; white-space: pre-line; }
.offer-card time { display: block; margin-top: 1rem; color: #9AA3B8; font-size: 0.85rem; }

/* ---------- بطاقات الأخبار ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .news-top {
  height: 10px; background: linear-gradient(90deg, var(--navy), var(--gold));
}
.news-card .news-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 0.5rem; }
.news-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.news-card .news-meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem;
}
.news-card time { color: #9AA3B8; font-size: 0.85rem; }
.news-card .more { color: var(--gold-dark); font-weight: 700; font-size: 0.92rem; }

/* ---------- صفحة المقال ---------- */
.article-body {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem); max-width: 820px; margin-inline: auto;
}
.article-body h1 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.6rem; }
.article-body time { color: #9AA3B8; font-size: 0.9rem; display: block; margin-bottom: 1.6rem; }
.article-body .content { white-space: pre-line; font-size: 1.05rem; color: #333C52; }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-hero {
  background:
    radial-gradient(900px 300px at 80% -20%, rgba(198,162,83,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white); text-align: center; padding: 4rem 0 4.5rem; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.page-hero p { color: #C9D2E6; max-width: 620px; margin: 0.8rem auto 0; font-size: 1.08rem; }

/* ---------- من نحن ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.about-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.about-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.about-card h3::before { content: ''; width: 8px; height: 26px; border-radius: 4px; background: linear-gradient(var(--gold), var(--gold-dark)); }
.about-card p { color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ---------- تواصل معنا ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; }
.contact-form-card, .contact-info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; font-size: 0.98rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: 'Tajawal', sans-serif; font-size: 1rem; background: var(--paper); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,162,83,0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; }
.honeypot { position: absolute; right: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 1rem; padding: 0.9rem 1.2rem; border-radius: 10px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: #E8F6EE; color: #16794A; border: 1px solid #BFE5D0; }
.form-status.err { display: block; background: #FBEDED; color: #A32B2B; border: 1px solid #EFC9C9; }

.contact-info-card h3 { color: var(--navy); margin-bottom: 1.2rem; }
.contact-line { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-line .icon svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }
.contact-line b { display: block; color: var(--navy); }
.contact-line a, .contact-line span { color: var(--muted); font-size: 0.97rem; }
.contact-line a:hover { color: var(--gold-dark); }

/* ---------- شريط الواتساب ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 20% 120%, rgba(198,162,83,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: var(--white); border-radius: 22px; padding: 3rem; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.cta-band p { color: #C9D2E6; margin-bottom: 1.8rem; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--navy-deep); color: #B9C2D8; margin-top: 5rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-brand img { height: 74px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.site-footer h4 { color: var(--gold-light); font-size: 1.08rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { transition: color 0.2s; font-size: 0.97rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { width: 19px; height: 19px; stroke: var(--gold); fill: none; stroke-width: 1.7; flex: none; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 0; text-align: center; font-size: 0.9rem; color: #8A94AD;
}

/* زر واتساب عائم */
.whatsapp-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #1FAF57;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(31,175,87,0.45); transition: transform 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- حالات فارغة وتحميل ---------- */
.empty-state {
  text-align: center; color: var(--muted); background: var(--white);
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem;
}

/* ---------- استجابة الجوال ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; padding: 2.5rem 1.8rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-inline-start: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--navy-deep); border-bottom: 1px solid rgba(198,162,83,0.35);
    padding: 1rem 1.5rem 1.4rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.4rem; align-items: stretch; }
  .main-nav a { display: block; padding: 0.6rem 0.4rem; font-size: 1.1rem; }
  .header-cta { display: none; }
  .brand img { height: 52px; }
  .services-grid, .offers-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 4.5rem; }
  .project-features { grid-template-columns: 1fr; }
}
