/* khayam.css — مستخرج من page-khayam-malky-jaddh.php */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
    
    body {
        font-family: 'Cairo', sans-serif;
        direction: rtl;
        background-color: #050505;
    }

    /* Animation for the Scrolling Banner */
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(100%); }
    }

    .animate-scroll {
        display: flex;
        width: 200%;
        animation: scroll 35s linear infinite;
    }

    .glass-effect {
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(197, 160, 89, 0.15);
    }
    
    .text-gradient, .gold-text {
        background: linear-gradient(to right, #C5A059, #f3e2b3, #8E6F3E);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: 'Cairo', sans-serif !important;
        line-height: 1.6 !important;
        font-weight: 800;
    }
    
    .portfolio-body {
        font-family: 'Cairo', sans-serif;
        direction: rtl;
        background-color: #050505;
    }

    .filter-btn.active {
        background-color: #C5A059;
        color: #050505;
        box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    }

    .project-card:hover .project-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .project-overlay {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(20px);
        background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
    }

    @media (max-width: 768px) {
        h1.hero-title {
            font-size: 1.8rem !important;
            line-height: 1.4 !important;
        }
    }

    /* Mobile Sticky Bar */
    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #000000;
        border-top: 2px solid #D4AF37;
        z-index: 9999;
        display: none;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.9);
        padding-bottom: env(safe-area-inset-bottom);
        padding: 10px;
        gap: 10px;
    }
    
    @media (max-width: 768px) {
        .mobile-sticky-bar { display: flex; }
    }

    .sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        transition: 0.3s;
    }
    .sticky-btn.call { background: #D4AF37; color: #000; }
    .sticky-btn.whatsapp { background: transparent; color: #fff; border: 1px solid #25d366; background: rgba(37, 211, 102, 0.1); }

    /* New FAQ Styles */
    details > summary {
        list-style: none;
        cursor: pointer;
    }
    details > summary::-webkit-details-marker {
        display: none;
    }
    details[open] summary ~ * {
        animation: sweep .5s ease-in-out;
    }
    @keyframes sweep {
        0%    {opacity: 0; transform: translateY(-10px)}
        100%  {opacity: 1; transform: translateY(0)}
    }
    
    
    /* ============================================================
   NEW SECTIONS — khayam page additions
   RTL | Mobile-first | Luxury Dark
   ============================================================ */

/* --- Shared Utilities --- */
.kh-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.kh-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.kh-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C5A059;
  margin-bottom: 0.6rem;
}

.kh-heading {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.kh-subheading {
  font-size: 1rem;
  color: #9ca3af;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   COMPARE SECTION
   ============================================================ */
.kh-compare-section {
  padding-block: 4.5rem;
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kh-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgba(197, 160, 89, 0.15);
  margin-bottom: 1.25rem;
}

.kh-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'Cairo', sans-serif;
}

.kh-compare-table thead tr {
  background: rgba(197, 160, 89, 0.1);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.kh-compare-table th {
  padding: 0.875rem 1rem;
  text-align: right;
  font-weight: 700;
  color: #C5A059;
  white-space: nowrap;
}

.kh-compare-table td {
  padding: 0.8rem 1rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.kh-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.kh-compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.kh-col-featured {
  background: rgba(197, 160, 89, 0.06);
  border-inline: 1px solid rgba(197, 160, 89, 0.15);
}

.kh-col-featured strong {
  color: #ffffff;
}

.kh-criterion {
  font-weight: 700;
  color: #e5e7eb;
}

/* Badge styles */
.kh-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.kh-excel {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.kh-good {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.kh-avg {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.kh-eco {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.kh-mid {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.kh-prem {
  background: rgba(197, 160, 89, 0.15);
  color: #C5A059;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.kh-compare-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 0.75rem;
  padding: 0.875rem 1.1rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.65;
}

.kh-compare-note svg {
  color: #C5A059;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Mobile responsive table */
@media (max-width: 599px) {
  .kh-compare-table {
    min-width: unset;
    font-size: 0.8rem;
  }

  .kh-compare-table thead {
    display: none;
  }

  .kh-compare-table tbody tr {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
  }

  .kh-compare-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .kh-compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .kh-compare-table td:last-child {
    border-bottom: none;
  }

  .kh-compare-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #C5A059;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .kh-table-wrap {
    overflow-x: unset;
    border: none;
    border-radius: 0;
  }

  .kh-col-featured {
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
  }
}

/* ============================================================
   AREAS SECTION
   ============================================================ */
.kh-areas-section {
  padding-block: 4.5rem;
  background-color: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kh-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .kh-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .kh-areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kh-area-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

.kh-area-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-3px);
}

.kh-area-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.kh-area-title svg {
  color: #C5A059;
  flex-shrink: 0;
}

.kh-area-card p {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.kh-area-card p strong {
  color: #d1d5db;
}

.kh-area-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #C5A059;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.6rem;
  margin-top: auto;
  transition: color 0.25s ease;
}

.kh-area-cta:hover {
  color: #f3e2b3;
}

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 639px) {
  .kh-compare-section,
  .kh-areas-section {
    padding-block: 3rem;
  }

  .kh-section-header {
    margin-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-area-card,
  .kh-compare-table tbody tr {
    transition: none;
  }
}

/* Accessibility */
.kh-area-cta:focus-visible {
  outline: 2px solid #C5A059;
  outline-offset: 2px;
  border-radius: 2px;
}