/**
 * Alsharkia Can - Corporate Design System (main.css)
 * Modern Industrial Aesthetics, Metallic Accents, Premium Polish
 */

:root {
  /* Brand Palette derived from Company Logo & Industrial Identity */
  --primary-900: #190933;
  --primary-800: #250f4a;
  --primary-700: #331566;
  --primary-600: #491f8f;
  --primary-500: #622db8;
  --primary-400: #7c44d9;
  --primary-300: #a170eb;
  --primary-100: #f1e9fc;
  --primary-50:  #f8f4fe;

  /* Accent & Industrial Metallic Silver / Platinum */
  --accent-gold: #d4a34b;
  --accent-gold-light: #fef8ee;
  --metal-shine: #e2e8f0;
  --metal-border: #cbd5e1;
  --metal-dark: #475569;

  /* Surface & Base */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;

  /* Text & Typography */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Status */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 40px -6px rgba(37, 15, 74, 0.2);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Container & Spacing */
  --container-max: 1280px;
  --header-height: 80px;
  --header-compact-height: 64px;
}

/* Base Reset & Fonts */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Alexandria', 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* LTR Typography Override */
body[dir="ltr"], html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: height var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  height: var(--header-compact-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header.scrolled .brand-logo img {
  height: 44px;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-block: 6px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-800);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(51, 21, 102, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  box-shadow: 0 6px 20px rgba(51, 21, 102, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-600);
}

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-700);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary-800);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--metal-border);
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-800);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

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

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

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

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 30px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--metal-border);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  padding-block: 8px;
  border-bottom: 1px solid var(--bg-alt);
}

.mobile-nav-link.active {
  color: var(--primary-600);
}

/* Typography Headings */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 54px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Spacing Classes */
.section-padding {
  padding-block: 80px;
}

.section-alt {
  background-color: var(--bg-alt);
}

/* Footer */
.site-footer {
  background: var(--primary-900);
  color: #e2e8f0;
  padding-top: 70px;
  padding-bottom: 24px;
  border-top: 4px solid var(--primary-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.footer-col-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-400);
  border-radius: var(--radius-full);
}

body[dir="rtl"] .footer-col-title::after {
  left: auto;
  right: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: #94a3b8;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

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

body[dir="ltr"] .footer-link:hover {
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #cbd5e1;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-icon-link:hover {
  background: var(--primary-600);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Floating Action Buttons (Call & WhatsApp) */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

body[dir="rtl"] .floating-actions {
  right: auto;
  left: 24px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  color: #ffffff;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn.phone {
  background: var(--primary-700);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-nav-drawer {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .floating-actions {
    bottom: 16px;
    right: 16px;
  }
  body[dir="rtl"] .floating-actions {
    left: 16px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}
