/* ==========================================================================
   AL MIRSAL DECORE & MAT TRADING LLC (AMT) - LUXURY B2B CORPORATE STYLING
   ========================================================================== */

:root {
  --color-obsidian: #090c12;
  --color-obsidian-surface: #0f141f;
  --color-obsidian-card: #151b29;
  --color-obsidian-border: rgba(255, 255, 255, 0.08);
  --color-crimson: #991b1b;
  --color-crimson-bright: #dc2626;
  --color-crimson-glow: rgba(220, 38, 38, 0.25);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-accent-gold: #d4af37;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-obsidian);
  color: var(--color-text-secondary);
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Luxury Background Grids & Ambient Glows */
.bg-mesh-dark {
  background-color: #090c12;
  background-image: 
    radial-gradient(at 0% 0%, rgba(153, 27, 27, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.6) 0px, transparent 50%);
}

.subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  width: 100%;
  background: #090c12;
}

header.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Logo container styling (pristine presentation without distortion) */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 44px;
  }
}

/* Navigation Links */
.nav-link-custom {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #ffffff;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

/* Luxury Cards & Panels */
.luxury-card {
  background: var(--color-obsidian-surface);
  border: 1px solid var(--color-obsidian-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.luxury-card:hover {
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(220, 38, 38, 0.12);
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* High-End Buttons */
.btn-luxury-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(153, 27, 27, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.btn-luxury-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45);
  color: #ffffff;
}

.btn-luxury-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-luxury-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

/* Form Styling */
.form-input-luxury {
  width: 100%;
  background: rgba(15, 20, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-luxury:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-input-luxury::placeholder {
  color: #64748b;
}

/* Badge Styling */
.badge-luxury {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* Footer Styling */
.footer-link {
  color: #94a3b8;
  font-size: 13.5px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

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

/* Webonicx signature badge */
.webonicx-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #dc2626;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.webonicx-link:hover {
  color: #ef4444;
  text-decoration-color: #ffffff;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (SAFE, RESPONSIVE & MOBILE MENU AWARE)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45; /* Cleanly below mobile drawer (z-60/70) but above standard content */
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  padding: 10px 18px 10px 12px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.whatsapp-float-btn .whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  opacity: 0.4;
  animation: waPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.12);
    opacity: 0;
  }
}

/* Hide floating WhatsApp completely when mobile menu is open so it NEVER overlaps drawer buttons */
body.menu-open .whatsapp-float-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: scale(0.8);
}

@media (max-width: 640px) {
  .whatsapp-float-btn {
    bottom: 20px;
    right: 16px;
    padding: 11px;
    border-radius: 9999px;
  }
  .whatsapp-float-btn span.whatsapp-label {
    display: none;
  }
}

/* Page Hero Banner Styles */
.page-hero-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #090c12;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: brightness(0.30) contrast(1.1);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.page-hero-banner:hover .page-hero-bg {
  transform: scale(1.05);
}

.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 20, 31, 0.65) 0%, #090c12 90%);
}

