/* ==========================================================================
   Masayif Aseer Trading - Corporate Landing Page Stylesheet
   Theme: Premium Corporate Light Theme (#FFFFFF)
   Pure Modern CSS3 with Custom Properties & Zero External Dependencies
   ========================================================================== */

:root {
  /* Core Color Palette - Pure White & Refined Corporate Neutrals */
  --bg-primary: #ffffff;
  --bg-surface: #f7f8fa;
  --bg-surface-alt: #f3f5f7;
  --bg-divider: #e9edf2;
  --border-subtle: #e5e7eb;

  /* Typography Colors */
  --text-primary: #111827;
  --text-secondary: #667085;
  --text-muted: #8c97a7;
  --text-dim: #9ca3af;

  /* Accent Identity Color - Refined Gold/Bronze */
  --accent-gold: #b88a2a;
  --accent-gold-dark: #946e1e;
  --accent-gold-light: #d6ab4c;
  --accent-gold-tint: rgba(184, 138, 42, 0.07);
  --accent-gold-hover: rgba(184, 138, 42, 0.12);
  --accent-gold-border: rgba(184, 138, 42, 0.28);
  --accent-gold-glow: rgba(184, 138, 42, 0.16);

  /* Typography Families */
  --font-arabic: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max: 860px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-pill: 9999px;

  /* Micro-Interactions */
  --transition-fast: transform 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 2rem 1.25rem 1.75rem;
}

/* Numbers & English styling fallback */
.latin-text,
.brand-en,
.year-number,
.phone-number,
.copyright-en {
  font-family: var(--font-latin);
  direction: ltr;
  display: inline-block;
}

/* Background Atmosphere (Subtle kinetic lines & delicate corporate warmth) */
.bg-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-radial-accent {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 92vw);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(184, 138, 42, 0.045) 0%, transparent 68%);
  filter: blur(50px);
  opacity: 0.9;
}

.bg-radial-subtle {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 96vw);
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(233, 237, 242, 0.6) 0%, transparent 65%);
  filter: blur(60px);
  opacity: 0.85;
}

.bg-circuit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Main Container Structure */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  padding: 0.5rem 0 1.5rem;
}

/* Header & Brand Identity */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
}

.logo-img {
  width: clamp(230px, 44vw, 320px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.brand-name {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.brand-name-en {
  margin-top: 0.2rem;
  font-family: var(--font-latin);
  font-size: 0.675rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #8a94a6;
  text-transform: uppercase;
  direction: ltr;
}

/* Main Hero Section */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 740px;
}

/* Badge: نعمل على شيء جديد */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--border-radius-pill);
  padding: 0.42rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.85s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(184, 138, 42, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* Main Headline */
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.85s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .title-accent {
  color: var(--accent-gold-dark);
  display: inline-block;
  position: relative;
}

/* Subtitle Narrative */
.hero-narrative {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  max-width: 650px;
  animation: fadeInUp 0.85s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.narrative-lead {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
}

.narrative-body {
  font-size: clamp(0.925rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Prominent Statement: القادم استثنائي... قريبًا */
.prominent-card {
  width: 100%;
  max-width: 560px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-md);
  padding: 1.15rem 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(184, 138, 42, 0.06);
  animation: fadeInUp 0.85s 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: var(--transition-fast);
}

.prominent-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(184, 138, 42, 0.12);
}

.prominent-text {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.prominent-accent {
  color: var(--accent-gold-dark);
  font-weight: 800;
}

.prominent-text .sparkle-icon {
  width: 17px;
  height: 17px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  opacity: 0.9;
}

/* Heritage Note: منذ 1994... والمسيرة مستمرة. */
.heritage-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 1.15rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--bg-divider);
  border-radius: var(--border-radius-pill);
  animation: fadeInUp 0.85s 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.heritage-tag .year-number {
  color: var(--accent-gold-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Social & Proximity Section */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.85s 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.social-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
}

.social-item {
  display: inline-block;
}

/* Social Buttons - Circular Premium Minimalist */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: #374151;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: var(--transition-fast);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 180ms ease, fill 180ms ease;
}

/* Social Button Hover States */
.social-btn:hover {
  color: var(--accent-gold-dark);
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-tint);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184, 138, 42, 0.16);
}

.social-btn:hover svg {
  fill: var(--accent-gold-dark);
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Accessible Hover Tooltip */
.social-btn[data-label]::after {
  content: attr(data-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 500;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.social-btn:hover::after,
.social-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Clean Professional Footer */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: fadeIn 1s 0.72s ease both;
}

.copyright-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.location-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 3px rgba(184, 138, 42, 0.15);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(184, 138, 42, 0.25);
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .status-indicator {
    animation: none !important;
  }
}

/* Mobile & Small Screen Refinements (320px, 375px, 390px, 430px) */
@media (max-width: 480px) {
  body {
    padding: 1.25rem 0.875rem 1.25rem;
  }

  .brand-header {
    margin-bottom: 1.25rem;
  }

  .brand-name {
    margin-top: 0.55rem;
  }

  .brand-name-ar {
    font-size: 0.875rem;
  }

  .brand-name-en {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }

  .logo-img {
    width: clamp(210px, 60vw, 270px);
  }

  .status-badge {
    margin-bottom: 1.1rem;
    font-size: 0.78rem;
    padding: 0.36rem 0.95rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.15rem);
    margin-bottom: 1.1rem;
  }

  .hero-narrative {
    gap: 0.5rem;
    margin-bottom: 1.35rem;
  }

  .prominent-card {
    padding: 0.95rem 1.15rem;
    margin-bottom: 1.25rem;
  }

  .prominent-text {
    font-size: 1.1rem;
    gap: 0.4rem;
  }

  .heritage-tag {
    font-size: 0.825rem;
    padding: 0.38rem 0.95rem;
  }

  .social-section {
    margin-top: 1.5rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

  .social-btn svg {
    width: 19px;
    height: 19px;
  }

  .copyright-text {
    font-size: 0.75rem;
  }

  .location-text {
    font-size: 0.7rem;
  }
}

/* Extra small devices (320px) */
@media (max-width: 340px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .social-links {
    gap: 0.65rem;
    max-width: 220px;
  }
  .social-btn {
    width: 44px;
    height: 44px;
  }
}

/* Desktop Compact Height Safety (laptops and standard monitors) */
@media (min-height: 700px) and (min-width: 992px) {
  .page-wrapper {
    justify-content: center;
  }
}
