/* ================================================================
   NOOR-E-HARAM — LAYOUT STYLES (PHASE 2.3 LUXURY MINIMALIST)
   ================================================================ */

/* ── TOP UTILITY & CURRENCY STATUS BAR ── */
.top-ticker-bar {
  background: #041a14;
  color: #ffffff;
  padding: 8px 0;
  font-size: 12px;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-ticker-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Currency Badge & States */
.currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.currency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.currency-dot.live {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: nhPulseDot 2s infinite;
}

.currency-dot.cached {
  background: #f59e0b;
}

.currency-dot.unavailable, .currency-dot.loading {
  background: #94a3b8;
}

@keyframes nhPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.currency-label {
  color: #fdfcf9;
  font-weight: 600;
}

.currency-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.ticker-notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.2px;
}

.ticker-helpline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.ticker-helpline:hover {
  color: var(--gold-light);
}

.ticker-phone-short {
  display: none;
}

/* ── HEADER NAVIGATION ── */
.header {
  position: fixed;
  top: 37px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 0;
  background: rgba(6, 40, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.header.scrolled {
  top: 0;
  background: rgba(6, 40, 30, 0.98);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo-wrap:hover .header-logo-img {
  transform: scale(1.02);
}

/* Navigation Links */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.nav a:hover, .nav a.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #06281e;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1002;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dd-item {
  display: block !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.85) !important;
  border-radius: 0 !important;
}

.nav-dd-item:hover {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--gold-light) !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #06281e;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  min-width: 150px;
  overflow: hidden;
  z-index: 2000;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option:hover, .lang-option.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

/* Theme toggle */
.theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Primary Consultation CTA */
.btn-consultation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #d4af37 0%, #c59b27 100%);
  color: #041a14 !important;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-consultation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.38);
}

/* Secondary WhatsApp Link */
.header-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366 !important;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(37, 211, 102, 0.06);
  transition: all 0.2s;
}

.header-wa-link:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  color: white;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #06281e;
  color: white;
  z-index: 2000;
  padding: 32px 24px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  overflow-y: auto;
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: white;
  transition: all 0.2s;
}

.drawer-close:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.mobile-drawer nav a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

/* ── FOOTER (CORPORATE LUXURY) ── */
.footer {
  background: #041a14;
  color: #e2e8f0;
  padding: 72px 0 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-arabic-msg {
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-light);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-link:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #041a14;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--gold-light);
}

/* ── MOBILE BOTTOM NAVIGATION BAR ── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 26, 20, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 1000;
  padding: 8px 4px max(8px, env(safe-area-inset-bottom));
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-bar-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-btn:hover, .mobile-bar-btn.active {
  color: var(--gold-light);
}

.mobile-bar-btn.whatsapp-btn {
  color: #25d366;
}

/* ── RESPONSIVE BREAKPOINTS FOR HEADER & FOOTER ── */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ticker-center { display: none; }
}

@media (max-width: 768px) {
  .top-ticker-bar { font-size: 11px; padding: 6px 0; }
  .ticker-phone-full { display: none; }
  .ticker-phone-short { display: inline; }
  .header { top: 33px; padding: 8px 0; }
  .header.scrolled { top: 0; }
  .header-logo-img { height: 40px; }
  .header-cta.btn-consultation { display: none; }
  .header-wa-link { display: none; }
  .mobile-bar { display: grid; }
  body, #main-content { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 48px; }
  .nh-wa-bubble { display: none !important; }
}
