

/* Navbar */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
}

/* Always show mobile-style top bar and hamburger (same perspective on desktop and mobile) */
.mobile-top-bar {
  display: flex;
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  padding: 0.85rem 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  gap: 0.75rem;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.mobile-top-bar__decor {
  flex: 0 0 auto;
  margin-left: auto;
}

.mobile-top-bar__decor img {
  max-height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.mobile-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--stone-900);
  text-decoration: none;
  padding: 6px;
  border-radius: 50%;
  background: transparent;
  border: none;
  z-index: 1001;
  pointer-events: auto;
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
  order: -1;
}

.mobile-login-btn:hover {
  background: rgba(0,0,0,0.03);
  color: var(--accent-dark);
}

.nav-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 10002;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #433221;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.top-nav a:hover {
  color: #6a4f3b;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 3.5rem 1.5rem 2rem;
  background: var(--stone-50);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  transform: translateY(-6%);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  left: 16px; /* since dir=rtl, left places it visually at top-right */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 28px;
  line-height: 0;
  color: var(--stone-900);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-menu__close:hover {
  background: rgba(0,0,0,0.1);
  transform: scale(1.05);
}

.mobile-menu__link {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--stone-900);
  padding: 1.25rem 0;
  text-align: center;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 160ms ease, background 160ms ease;
}

.mobile-menu__link:last-of-type { border-bottom: none; }

.mobile-menu__link:hover {
  color: var(--accent-dark);
  background: transparent;
}

.mobile-menu__bottom {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu__bottom-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--stone-900);
  text-decoration: none;
}

.mobile-menu__bottom-link:hover {
  color: var(--accent-dark);
}

.mobile-menu__lang-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--stone-600);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 1;
}

.mobile-menu__lang-btn:hover {
  background: transparent;
  color: var(--stone-900);
}

/* Hero Section */
.hero-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: url('../images/int.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
}

.hero-logo-center {
  position: relative;
  z-index: 2;
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-logo-center .decor {
  font-size: 1.5rem;
  color: #333;
}

/* Main Content Sections */
.section-split {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
  align-items: center;
  gap: 4rem;
}

.section-split__text {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.section-split__text .decor-top {
  text-align: center;
  font-size: 1.2rem;
  color: #593f2d;
  margin-bottom: 2rem;
}

.section-split__text p {
  font-size: 1.1rem;
  line-height: 2;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.section-split__image {
  flex: 1;
  min-width: 300px;
}

.section-split__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Centered Text Section */
.section-center {
  max-width: 800px;
  margin: 5rem auto 8rem;
  padding: 0 2rem;
  text-align: center;
}

.section-center .logo-title {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-center .logo-title span {
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.2em;
}

.section-center p {
  font-size: 1rem;
  line-height: 2.2;
  color: #4a4a4a;
}

.section-center .decor-bottom {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #6a4f3b;
}

/* Footer */
.site-footer {
  background-color: #362615;
  color: #e5dccf;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-right, .footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-right h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.footer-left {
  align-items: flex-end;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-center {
  font-size: 1.2rem;
  color: #e5dccf;
}

.contact-line {
  direction: ltr;
  text-align: right;
}

/* Decoration symbol styling */
.decor-sym {
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    padding: 0.9rem 1rem;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    gap: 0.75rem;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: fixed;
  }

  .mobile-top-bar__decor img {
    max-height: 32px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
  }

  .mobile-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--stone-900);
    text-decoration: none;
    padding: 6px;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 1001;
    pointer-events: auto;
    min-width: 0;
    flex-shrink: 1;
    white-space: nowrap;
    order: -1;
  }

  .mobile-login-btn:hover {
    background: rgba(0,0,0,0.03);
    color: var(--accent-dark);
  }

  .top-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    box-shadow: none;
    z-index: 10003;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
    touch-action: manipulation;
    transition: transform 180ms ease;
    padding: 0;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    transform: scale(1.05);
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid rgba(110, 83, 62, 0.35);
    outline-offset: 2px;
  }

  .hero-banner {
    height: 56vh;
    min-height: 360px;
  }

  .section-split {
    flex-direction: column;
  }

  .section-center {
    margin: 2rem auto 3rem;
  }

  .footer-left, .footer-right {
    align-items: center;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   CINEMATIC LOGIN TRANSITION
   ============================================ */
.login-cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c1917 0%, #362615 40%, #4B2E1E 70%, #2a1a0e 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.login-cinematic-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.login-cinematic-overlay.is-exiting {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Golden particles */
.cinematic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #C5A880, transparent);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1.5);
  }
}

/* Logo animation */
.cinematic-logo {
  opacity: 0;
  transform: scale(0.5);
  animation: cinematicLogoIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  filter: brightness(0) invert(1);
  max-height: 100px;
  margin-bottom: 2rem;
}

@keyframes cinematicLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Welcome text */
.cinematic-welcome {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: #F6F2EC;
  opacity: 0;
  transform: translateY(20px);
  animation: cinematicTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  text-align: center;
  direction: rtl;
}

.cinematic-subtitle {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  color: #C5A880;
  opacity: 0;
  transform: translateY(15px);
  animation: cinematicTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
  text-align: center;
  direction: rtl;
  margin-top: 0.75rem;
}

@keyframes cinematicTextIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Golden line decoration */
.cinematic-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C5A880, transparent);
  margin: 1.5rem auto;
  animation: cinematicLineExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes cinematicLineExpand {
  0% { width: 0; }
  100% { width: 120px; }
}

/* Radial glow behind logo */
.cinematic-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
  animation: cinematicGlow 2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cinematicGlow {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* ============================================
   ENHANCED LOGOUT MODAL
   ============================================ */
.logout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  direction: rtl;
}

.logout-modal-overlay.is-active {
  opacity: 1;
}

.logout-modal-card {
  background: #FAFAF8;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(75, 46, 30, 0.08);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.logout-modal-overlay.is-active .logout-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.logout-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C5A880, #4B2E1E, #C5A880);
}

.logout-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F6F2EC, #E8E1D7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #4B2E1E;
  box-shadow: 0 4px 15px rgba(75, 46, 30, 0.1);
}

.logout-modal-title {
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
  color: #4B2E1E;
  margin-bottom: 0.75rem;
}

.logout-modal-text {
  font-family: 'Cairo', sans-serif;
  color: #78716c;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.logout-modal-actions {
  display: flex;
  gap: 0.75rem;
}

.logout-modal-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
}

.logout-modal-btn--confirm {
  background: linear-gradient(135deg, #4B2E1E, #362615);
  color: #fff;
  box-shadow: 0 4px 15px rgba(75, 46, 30, 0.3);
}

.logout-modal-btn--confirm:hover {
  background: linear-gradient(135deg, #5a3825, #4B2E1E);
  box-shadow: 0 6px 20px rgba(75, 46, 30, 0.4);
  transform: translateY(-1px);
}

.logout-modal-btn--cancel {
  background: transparent;
  color: #4B2E1E;
  border: 1.5px solid #C5A880;
}

.logout-modal-btn--cancel:hover {
  background: #F6F2EC;
  border-color: #4B2E1E;
  transform: translateY(-1px);
}
