/* ===================================
   Heavyar Landing Page - Global Styles
   =================================== */

:root {
  /* Colors */
  --color-primary: #0B2447;
  --color-secondary: #19376D;
  --color-accent: #FDB022;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #2c3e50;
  --color-text-light: #6c757d;
  --color-border: #e5e7eb;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 36, 71, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  border-radius: 8px;
}

.language-toggle button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.language-toggle button.active {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  background-image: url('assets/images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(11,36,71,0.85), rgba(11,36,71,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.about-section {
  background-color: #ffffff;
  padding: 3rem 1.5rem;
}

.about-section .container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 176, 34, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--color-primary);
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 2;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-certificate {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  direction: rtl;
}

.cr-badge-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cr-badge-link:hover {
  transform: scale(1.05);
}

.cr-badge {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cr-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-page {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--color-bg-alt);
}

.legal-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin: 0.75rem 0;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-content ul {
  padding-right: 1.5rem;
  margin: 1rem 0;
  line-height: 1.8;
}

[dir="ltr"] .legal-content ul {
  padding-right: 0;
  padding-left: 1.5rem;
}

.legal-content li {
  margin: 0.5rem 0;
}

.legal-content .note {
  background: #e0f2fe;
  border-right: 4px solid #0284c7;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

[dir="ltr"] .legal-content .note {
  border-right: none;
  border-left: 4px solid #0284c7;
}

.legal-content a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    background-size: contain;
    background-position: center top;
    min-height: 400px;
    padding: 6rem 0 3rem;
  }
  
  .hero-logo {
    width: 80px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 1.1rem;
  }
.hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-certificate {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
  
  .legal-content {
    padding: 1.5rem 1rem;
    margin: 1rem;
  }
  
  .legal-content h1 {
    font-size: 1.6rem;
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .footer {
    display: none;
  }
  
  .legal-content {
    box-shadow: none;
    margin: 0;
  }
}

