/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.cta-band {
  margin: 60px 48px 80px;
  background:
    /*linear-gradient(rgba(255,255,255,0.71), rgba(255,255,255,0.71)),*/
    url('../images/diversite.png') center / cover no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  opacity: 0.5;
  
  
     
}

.dark .cta-band {
  background:
    linear-gradient(rgba(20,27,40,0.97), rgba(20,27,40,0.98)),
    url('../images/arabic-calligraphy_long.jpg') center / cover no-repeat;
}

.cta-band::after {
  content: 'م';
  position: absolute;
  right: 40px;
  top: -30px;
  font-family: var(--font-display);
  font-size: 200px;
  color: var(--gold);
  opacity: 0.04;
  pointer-events: none;
}

.cta-band-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.cta-band-text p {
  font-size: 15px;
  color: var(--text2);
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   AI CHATBOT
═══════════════════════════════════════════════ */
.ai-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 82px;
  height: 82px;
  background: #ffffff;
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ai-chat-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.5);
  background: #111;
}

.ai-chat-btn .btn-img {
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.ai-chat-btn .btn-close {
  font-size: 32px;
  font-weight: 200;
  color: var(--gold);
  opacity: 0;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%) rotate(-90deg) scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 1;
  user-select: none;
}

.ai-chat-btn:hover .btn-img {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(90deg);
}

.ai-chat-btn:hover .btn-close {
  opacity: 1;
  transform: translate(-50%, -52%) rotate(0deg) scale(1);
}

.ai-chat-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  box-sizing: border-box;
}

.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gold), #1a1a1a);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: var(--bg2);
}

.ai-chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.ai-chat-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-gold {
  padding: 12px 20px;
  white-space: nowrap;
  flex-shrink: 0;
}


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

body {
  background: #0e0c0a;
  font-family: 'Segoe UI', sans-serif;
}

.footer-wrap {
  background: #0a0806;
  border-top: 2px solid rgba(201, 168, 76, 0.18);
  position: relative;
  overflow: hidden;
}

.footer-art { width: 100%; display: block; opacity: 0.9; }
.mosaic-strip { width: 100%; height: 8px; display: block; }

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #C9A84C;
  font-family: serif;
}

.brand-name { font-size: 13px; font-weight: 600; color: #f0ece3; line-height: 1.3; }
.brand-sub  { font-size: 11px; color: rgba(201, 168, 76, 0.6); letter-spacing: 1px; }

.brand-desc {
  font-size: 12.5px;
  color: rgba(240, 236, 227, 0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-row { display: flex; gap: 10px; }

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 168, 76, 0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.social-btn:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.1);
  color: #C9A84C;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.15);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 13px;
  color: rgba(240, 236, 227, 0.5);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links li a:hover { color: #C9A84C; padding-left: 4px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-text { font-size: 12.5px; color: rgba(240, 236, 227, 0.5); line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-copy { font-size: 11.5px; color: rgba(240, 236, 227, 0.3); }

.footer-bottom-links { display: flex; gap: 20px; }

.footer-bottom-links a {
  font-size: 11.5px;
  color: rgba(240, 236, 227, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(201, 168, 76, 0.7); }

.tawasul-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.04);
}

.tawasul-ring  { width: 28px; height: 28px; }
.tawasul-text  { font-size: 11px; color: rgba(240, 236, 227, 0.45); }
.tawasul-num   { font-size: 15px; font-weight: 700; color: #C9A84C; }

/* ─── FOOTER ARABESQUE BAND ─── */
.footer-arabesque-band {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  background: var(--dark, #111);
  padding: 0 40px;
  overflow: hidden;
  position: relative;
}

.footer-arabesque-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--dark, #111));
  pointer-events: none;
  z-index: 1;
}

.footer-arabesque-center {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.footer-door {
  height: 280px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.35));
  opacity: 0.92;
}

.footer-arabesque-ornaments {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  padding-bottom: 20px;
}

.footer-arabesque-ornaments.left  { justify-content: flex-end;  padding-right: 48px; }
.footer-arabesque-ornaments.right { justify-content: flex-start; padding-left: 48px; }

.footer-ornament {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.25));
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  animation: ornament-spin-slow 20s linear infinite;
}

.footer-arabesque-ornaments .footer-ornament:nth-child(1) { animation-duration: 22s; width: 56px; height: 56px; }
.footer-arabesque-ornaments .footer-ornament:nth-child(2) { animation-duration: 18s; width: 72px; height: 72px; }
.footer-arabesque-ornaments .footer-ornament:nth-child(3) { animation-duration: 25s; width: 56px; height: 56px; }

.footer-ornament:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.6));
  animation-play-state: paused;
}

@keyframes ornament-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════
   UTILITIES & ANIMATIONS
═══════════════════════════════════════════════ */

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 20px;
  background-color: #c9a84c;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: 0.3s;
}

#backToTop:hover { background-color: #b8983f; }

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bobble 2.4s ease-in-out infinite;
}

.scroll-hint::after { content: '↓'; font-size: 18px; color: var(--gold3); }

/* Reveal animation */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.anim.visible { opacity: 1; transform: translateY(0); }

.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .footer-door              { height: 180px; }
  .footer-ornament          { width: 40px !important; height: 40px !important; }
  .footer-arabesque-ornaments { gap: 16px; padding: 0 16px 16px; }
}
