:root {
  --brand-primary: #00226d; 
  --brand-primary-dark: #00184d;
  --brand-secondary: #00226d; /* لون ذهبي مطفي جديد وراقي */
  --brand-secondary-dark: #00226d; /* لون ذهبي أفتح للوضع المظلم */
  --brand-glass: rgba(0, 34, 109, 0.88);
  --background-main: #f5f7fa;
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text-main: #0a1629;
  --text-muted: #4e5d78;
  --divider: rgba(0, 34, 109, 0.1);
  --shadow-soft: 0 24px 48px rgba(0, 34, 109, 0.12);
  --shadow-strong: 0 34px 56px rgba(0, 34, 109, 0.18);
}

:root[data-theme="dark"] {
  --brand-primary: #ffffff; 
  --background-main: #050a14;
  --surface-strong: rgba(10, 22, 41, 0.94);
  --surface-soft: rgba(15, 31, 56, 0.76);
  --text-main: #e6edf8;
  --text-muted: #94a3b8;
  --divider: rgba(148, 163, 184, 0.15);
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 34px 56px rgba(0, 0, 0, 0.65);
}


    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: 'Cairo', sans-serif;
      background: var(--background-main);
      color: var(--text-main);
      line-height: 1.8;
      padding-top: 92px;
      transition: background 0.4s ease, color 0.4s ease;
    }
    a {
      color: inherit;
      text-decoration: none;
    }
    img {
      max-width: 100%;
      display: block;
    }
    main {
      position: relative;
      z-index: 1;
    }
    .container {
      width: min(1200px, 92vw);
      margin: 0 auto;
    }
    .section-block {
      padding: clamp(3.5rem, 7vw, 6rem) 0;
    }
    .nav-shell {
      position: fixed;
      inset: 0 0 auto 0;
      background: var(--surface-strong);
      border-bottom: 1px solid var(--divider);
      backdrop-filter: blur(18px);
      z-index: 90;
      transition: box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    }
    .nav-shell.nav-scrolled {
      box-shadow: var(--shadow-soft);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      padding: 1rem 0;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }
    .nav-brand img {
      width: 150px;
      height: auto;
      border-radius: 14px;
      padding: 6px;
    }
    .brand-meta span {
      display: block;
    }
    .brand-title {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--brand-primary);
    }
    .brand-tagline {
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .nav-links {
      display: none;
      list-style: none;
      gap: 1.5rem;
      margin: 0;
      padding: 0;
      font-weight: 500;
    }
    .nav-links li {
      display: inline-flex;
    }
    .nav-links a {
      position: relative;
      color: var(--text-muted);
      transition: color 0.3s ease;
    }
    .nav-links a::after {
      content: "";
      position: absolute;
      bottom: -0.4rem;
      right: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary --brand-secondary-dark));
      transition: width 0.3s ease;
    }
    .nav-links a:hover {
      color: var(--brand-primary);
    }
    .nav-links a:hover::after {
      width: 100%;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .theme-toggle {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--divider);
      background: var(--surface-soft);
      color: var(--text-muted);
      cursor: pointer;
      display: grid;
      place-items: center;
      position: relative;
      transition: all 0.3s ease;
    }
    .theme-toggle i {
      position: absolute;
      font-size: 1rem;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .theme-toggle i:last-child {
      opacity: 0;
      transform: scale(0.5);
    }
    :root[data-theme="dark"] .theme-toggle {
      color: #f5c552;
      border-color: rgba(240, 160, 51, 0.35);
    }
    :root[data-theme="dark"] .theme-toggle i:first-child {
      opacity: 0;
      transform: scale(0.5);
    }
    :root[data-theme="dark"] .theme-toggle i:last-child {
      opacity: 1;
      transform: scale(1);
    }
    .theme-toggle:hover {
      color: var(--brand-primary);
      border-color: var(--brand-primary);
    }
    .primary-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.65rem 1.6rem;
      border-radius: 999px;
      font-weight: 600;
      background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary));
      color: #fff;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, filter 0.3s ease;
    }
    .primary-button:hover {
      transform: translateY(-2px);
      filter: brightness(1.05);
    }
    .menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--divider);
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .menu-toggle:hover,
    .menu-toggle.active {
      color: var(--brand-primary);
      border-color: var(--brand-primary);
      background: var(--surface-soft);
    }
    .nav-drawer {
      display: none;
      flex-direction: column;
      gap: 0.75rem;
      padding: 0 0 1.5rem;
      margin: 0 1.5rem;
    }
    .nav-drawer a {
      padding: 0.75rem 1rem;
      border-radius: 12px;
      background: var(--surface-soft);
      color: var(--text-main);
      font-weight: 500;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .nav-drawer a:hover {
      background: linear-gradient(135deg, rgba(11, 138, 109, 0.14), rgba(240, 160, 51, 0.14));
    }
    .nav-drawer.open {
      display: flex;
    }
    .scroll-progress {
      position: fixed;
      top: 0;
      right: 0;
      height: 4px;
      width: 0;
      background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
      z-index: 95;
      transition: width 0.2s ease;
    }
    .page-loader {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      gap: 1rem;
      background: var(--background-main);
      z-index: 200;
      transition: opacity 0.4s ease;
    }
    .page-loader.hidden {
      opacity: 0;
      pointer-events: none;
    }
    .loader-ring {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 3px solid rgba(11, 138, 109, 0.25);
      border-top-color: var(--brand-secondary);
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    .back-to-top {
      position: fixed;
      bottom: 32px;
      left: 32px;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary));
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: var(--shadow-soft);
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(16px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .back-to-top.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
      z-index: 99
    }
    .whatsapp-button {
      position: fixed;
      bottom: 28px;
      right: 28px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #25d366;
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 18px 36px rgba(37, 211, 102, 0.25);
      z-index: 90;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .whatsapp-button:hover {
      transform: translateY(-4px);
      box-shadow: 0 22px 44px rgba(37, 211, 102, 0.35);
    }
    .hero {
      position: relative;
      padding: clamp(4rem, 8vw, 7rem) 0;
      background: radial-gradient(circle at 20% 10%, rgba(11, 138, 109, 0.18), transparent 50%), radial-gradient(circle at 90% 20%, rgba(240, 160, 51, 0.22), transparent 52%);
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(4, 16, 17, 0.65), rgba(11, 138, 109, 0.35)), url('img/Saudi\ Arabia.jpg');
      background-size: cover;
      background-position: center;
      opacity: 0.82;
      z-index: 0;
    }
    .hero .container {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 3rem;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      align-items: center;
    }
    .hero-content h1 {
      margin: 0 0 1rem;
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      color: #fff;
      line-height: 1.3;
    }
    .hero-content p {
      margin: 0 0 1.5rem;
      color: rgba(255, 255, 255, 0.8);
      max-width: 520px;
    }
    .hero-features {
      display: grid;
      gap: 1.2rem;
    }
    .hero-form {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      padding: 1.6rem;
      border-radius: 22px;
      background: rgba(10, 24, 24, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.18);
      backdrop-filter: blur(10px);
    }
    .hero-form input,
    .hero-form select {
      border: none;
      border-radius: 14px;
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      background: rgba(255, 255, 255, 0.9);
      color: #0f332f;
    }
    :root[data-theme="dark"] .hero-form {
      background: rgba(0, 0, 0, 0.7);
      border-color: rgba(11, 138, 109, 0.4);
    }
    :root[data-theme="dark"] .hero-form input,
    :root[data-theme="dark"] .hero-form select {
      background: rgba(8, 22, 20, 0.9);
      color: #d9f0ea;
      border: 1px solid rgba(11, 138, 109, 0.45);
    }
    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .hero-stats div {
      flex: 1 1 140px;
    }
    .hero-stats strong {
      display: block;
      font-size: 1.8rem;
      color: #fff;
    }
    .hero-stats span {
      color: rgba(255, 255, 255, 0.78);
      font-size: 0.95rem;
    }
    .hero-card {
      background: var(--surface-strong);
      border-radius: 28px;
      padding: 2.2rem;
      box-shadow: var(--shadow-strong);
      display: grid;
      gap: 1.4rem;
    }
    .hero-card h3 {
      margin: 0;
      font-size: 1.6rem;
    }
    .hero-card p {
      margin: 0;
      color: var(--text-muted);
    }
    .hero-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 0.75rem;
    }
    .hero-card li {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      color: var(--text-muted);
      font-weight: 500;
    }
    .hero-card li i {
      color: var(--brand-primary);
    }
    .section-heading {
      text-align: center;
      margin-bottom: 3rem;
    }
    .section-heading h2 {
      margin: 0;
      font-size: clamp(2rem, 4vw, 3rem);
    }
    .section-heading p {
      margin: 0.8rem auto 0;
      max-width: 640px;
      color: var(--text-muted);
    }
    .features-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .feature-card {
      background: var(--surface-strong);
      border-radius: 24px;
      padding: 1.8rem;
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 1rem;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .feature-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-strong);
    }
    .feature-card i {
      font-size: 1.6rem;
      color: var(--brand-primary);
    }
    .properties-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .property-card {
      background: var(--surface-strong);
      border-radius: 26px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .property-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-strong);
    }
    .property-card img {
      height: 220px;
      object-fit: cover;
    }
    .property-body {
      padding: 1.8rem;
      display: grid;
      gap: 1.2rem;
      flex: 1;
    }
    .property-meta {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .property-actions {
      display: flex;
      gap: 0.75rem;
    }
    .property-actions .primary-button {
      flex: 1;
    }
    .ghost-button {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 1px solid var(--divider);
      background: transparent;
      color: var(--text-muted);
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .ghost-button:hover {
      border-color: var(--brand-primary);
      color: var(--brand-primary);
    }
    .about-grid {
      display: grid;
      gap: 2.5rem;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      align-items: center;
    }
    .about-visual {
      border-radius: 28px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
    }
    .info-cards {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr); 
}

    .info-card {
      background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
      border-radius: 24px;
      color: #fff;
      padding: 0.4rem 0.9rem;
      text-align: center;
      box-shadow: var(--shadow-strong);
    }
    .info-card strong {
      display: block;
      font-size: 2.2rem;
      margin-bottom: 0.4rem;
    }
    .services-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .service-card {
      background: var(--surface-strong);
      border-radius: 24px;
      padding: 1.8rem;
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 0.8rem;
      transition: transform 0.3s ease;
    }
    .service-card:hover {
      transform: translateY(-8px);
    }
    .service-card i {
      font-size: 1.5rem;
      color: var(--brand-primary);
    }
    .contact-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      align-items: start;
    }
    .contact-form,
    .contact-info {
      background: var(--surface-strong);
      border-radius: 26px;
      padding: 2rem;
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 1.2rem;
    }
    .contact-form label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.35rem;
    }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      border-radius: 14px;
      border: 1px solid var(--divider);
      padding: 0.85rem 1rem;
      font-size: 0.95rem;
      background: var(--surface-soft);
      color: var(--text-main);
      resize: vertical;
      min-height: 52px;
    }
    :root[data-theme="dark"] .contact-form input,
    :root[data-theme="dark"] .contact-form select,
    :root[data-theme="dark"] .contact-form textarea {
    background: #000f30;
    color: #e6f7f3;
      border-color: #00184d;
    }
  /* التنسيق خاص بسكشن تواصل معنا فقط */

#contact {
    padding: 60px 0;
    direction: rtl;
}

/* توزيع الشبكة (الفورم بجانب المعلومات) */
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

/* تنسيق الفورم كشبكة داخلية */
#contact .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* جعل حقل الرسالة والزر بعرض كامل الفورم */
#contact .form-group.full-width,
#contact .primary-button {
    grid-column: span 2;
}

/* تنسيق الحقول */
#contact .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#contact .contact-form input, 
#contact .contact-form select, 
#contact .contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

/* تنسيق قائمة المعلومات */
#contact .contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* تحديد قياسات الأيقونة دون التدخل في لونها */
#contact .contact-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

#contact .contact-item h4 {
    margin: 0 0 5px 0;
}

#contact .contact-item p {
    margin: 0;
    line-height: 1.5;
}

#contact .contact-item a {
    text-decoration: none;
    color: inherit;
}

/* تحويل التصميم لعيدان (تحت بعض) في الجوال */
@media (max-width: 991px) {
    #contact .contact-grid {
        grid-template-columns: 1fr;
    }
    
    #contact .contact-form {
        grid-template-columns: 1fr;
    }
    
    #contact .form-group.full-width, 
    #contact .primary-button {
        grid-column: span 1;
    }
}


    .contact-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(11, 138, 109, 0.18), rgba(240, 160, 51, 0.18));
      display: grid;
      place-items: center;
      color: var(--brand-primary);
      flex-shrink: 0;
    }
    .contact-item a {
      color: var(--brand-primary);
      font-weight: 600;
    }
    .newsletter {
      background: linear-gradient(135deg, rgba(11, 138, 109, 0.12), rgba(240, 160, 51, 0.18));
      border-radius: 30px;
      padding: clamp(2.5rem, 6vw, 4rem);
      box-shadow: var(--shadow-soft);
      text-align: center;
      display: grid;
      gap: 1.4rem;
    }
    .newsletter form {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .newsletter input {
      border-radius: 999px;
      border: none;
      padding: 1rem 1.4rem;
      font-size: 1rem;
      background: #fff;
      color: #06312d;
    }
    :root[data-theme="dark"] .newsletter {
      background: linear-gradient(135deg, rgba(11, 138, 109, 0.4), rgba(240, 160, 51, 0.32));
    }
    :root[data-theme="dark"] .newsletter input {
      background: rgba(8, 22, 20, 0.92);
      color: #e6f7f3;
    }
    .cta {
      background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
      color: #fff;
      border-radius: 32px;
      padding: clamp(2.8rem, 6vw, 4rem);
      box-shadow: var(--shadow-strong);
      text-align: center;
      display: grid;
      gap: 1.2rem;
    }
    .cta p {
      margin: 0;
      color: rgba(255, 255, 255, 0.82);
    }
    footer {
      background: #020809;
      color: rgba(255, 255, 255, 0.75);
      padding: 4rem 0 2rem;
    }
    .footer-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      margin-bottom: 3rem;
    }
    .footer-grid h4 {
      margin: 0 0 1rem;
      color: #fff;
    }
    .footer-grid a {
      color: rgba(255, 255, 255, 0.75);
      transition: color 0.3s ease;
    }
    .footer-grid a:hover {
      color: var(--brand-secondary);
    }
    .footer-grid ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.5rem;
    }
    .footer-socials {
      display: flex;
      gap: 0.6rem;
    }
    .footer-socials a {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.08);
      display: grid;
      place-items: center;
    }
    .footer-note {
      text-align: center;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 1.5rem;
      font-size: 0.9rem;
    }
    @media (min-width: 992px) {
      body {
        padding-top: 104px;
      }
      .nav-links {
        display: inline-flex;
      }
      .menu-toggle {
        display: none;
      }
      .nav-drawer {
        display: none !important;
      }
    }
    @media (max-width: 768px) {
      body {
        padding-top: 86px;
      }
      .hero {
        padding-top: 3.5rem;
      }
      .back-to-top {
        left: 16px;
        bottom: 24px;
      }
    }
    @media (max-width: 480px) {
      body {
        padding-top: 78px;
      }
      .hero-form {
        padding: 1.2rem;
      }
      .hero-stats {
        gap: 1rem;
      }
    }
    @media (max-width: 360px) {
      .hero-stats {
        flex-direction: column;
      }
    }
    @media (max-width: 768px) {
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    order: 2;
  }

}
@media (max-width: 480px) {
.info-cards {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
}
}