/* RAZZOS Global Design System
   Colors: dark navy #1a2744 + amber #f59e0b + white
   Typography: Inter (EN) / Noto Sans Arabic (AR)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-dark: #0f1a2e;
  --navy-light: #2a3a5c;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(26,39,68,.08), 0 1px 2px rgba(26,39,68,.06);
  --shadow-md: 0 4px 12px rgba(26,39,68,.10), 0 2px 6px rgba(26,39,68,.06);
  --shadow-lg: 0 10px 30px rgba(26,39,68,.12), 0 4px 12px rgba(26,39,68,.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 200ms ease;
  --font-body: 'Inter', 'Noto Sans Arabic', sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(26,39,68,.20);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--amber);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo-text {
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-text span { color: var(--amber); }

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); border-bottom-color: var(--amber); }

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-toggle-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-toggle-btn.active {
  background: var(--amber);
  color: var(--navy);
}

.lang-toggle-btn:hover:not(.active) { background: rgba(255,255,255,.12); color: var(--white); }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px;
}

.mobile-nav.open { display: block; }

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

.mobile-nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 500;
}

.mobile-lang-toggle {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.mobile-lang-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all var(--transition);
}

.mobile-lang-btn.active {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span { color: var(--amber); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--navy-light);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--gray-50);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-navy .section-title { color: var(--white); }

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

.section-navy .section-sub { color: rgba(255,255,255,.6); }

/* ===== CATEGORY CARDS ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--gray-900);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.cat-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

[dir="rtl"] .cat-name { font-size: 17px; }

.cat-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cat-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[dir="rtl"] .cat-link { direction: ltr; }

/* ===== BRAND CARDS ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-900);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.brand-logo-placeholder {
  width: 72px;
  height: 72px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid var(--gray-200);
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.brand-arrow {
  font-size: 12px;
  color: var(--amber-dark);
  opacity: 0;
  transition: opacity var(--transition);
}

.brand-card:hover .brand-arrow { opacity: 1; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 500;
}

.breadcrumb-sep { color: var(--gray-300); }

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  max-width: 620px;
  line-height: 1.7;
}

/* ===== CONTENT SECTION ===== */
.content-section { padding: 64px 0; }

/* ===== INDUSTRY GRID ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.industry-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--transition);
}

.industry-chip:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-sm);
}

.industry-icon { font-size: 28px; margin-bottom: 8px; }

.industry-name { font-size: 12px; font-weight: 600; color: var(--gray-700); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 12px;
}

[dir="rtl"] .faq-q { text-align: right; flex-direction: row-reverse; }

.faq-toggle { color: var(--amber); font-size: 20px; flex-shrink: 0; }

.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--gray-900);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gray-300);
}

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.product-brand-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-dark);
  background: rgba(245,158,11,.1);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.product-short-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  flex: 1;
}

.product-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ===== SPEC TABLE ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table tr:nth-child(even) { background: var(--gray-50); }

.spec-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  padding: 10px 16px;
  width: 40%;
}

.spec-table td:last-child {
  padding: 10px 16px;
  color: var(--gray-700);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--navy);
  padding: 64px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto 32px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-dark:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-logo .logo-mark { width: 36px; height: 36px; font-size: 16px; }

.footer-brand-logo .logo-text { font-size: 20px; font-weight: 800; color: var(--white); }

.footer-brand-logo .logo-text span { color: var(--amber); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

.footer-socials { display: flex; gap: 16px; }

.footer-socials a { color: rgba(255,255,255,.4); font-size: 18px; transition: color var(--transition); }

.footer-socials a:hover { color: var(--amber); }

/* ===== 404 ===== */
.not-found-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 64px 24px;
}

.not-found-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found-title { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }

.not-found-desc { font-size: 16px; color: var(--gray-500); margin-bottom: 32px; }

/* ===== GRID HELPERS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 56px 0; }
  .hero-title { font-size: 36px; }
  .categories-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .content-section { padding: 40px 0; }
  .page-hero { padding: 48px 0; }
}

@media (max-width: 375px) {
  .brands-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}