/* ===== RAFED THEME — MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2A9CB5;
  --primary-dark: #1e7d94;
  --secondary: #3D4555;
  --secondary-dark: #2d3748;
  --accent: #e8f7fb;
  --text: #1e2535;
  --muted: #6b7280;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --white: #ffffff;
  --green-wa: #25D366;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(42,156,181,0.10);
  --shadow-lg: 0 10px 40px rgba(42,156,181,0.15);
}

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

html[lang="ar"], html.lang-ar {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}
html[lang="en"], html.lang-en {
  font-family: 'Inter', sans-serif;
  direction: ltr;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.8; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: var(--text); margin-bottom: 12px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary); margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s ease; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #f0fafb; box-shadow: var(--shadow-lg); }
.btn-wa { background: var(--green-wa); color: var(--white); }
.btn-wa:hover { background: #1da851; }

/* ===== NAVBAR ===== */
#rafed-nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.nav-logo img { height: 45px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 5px 12px; cursor: pointer; background: none;
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle .lang-sep { color: var(--border); margin: 0 4px; }
.lang-toggle .active-lang { color: var(--primary); }
.lang-toggle .inactive-lang { color: var(--muted); }

/* Mobile menu toggle */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; background: var(--white);
  border-top: 1px solid var(--border); padding: 16px 20px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; color: var(--text); transition: all 0.2s;
}
.mobile-menu a:hover { background: var(--accent); color: var(--primary); }
.mobile-menu .btn-primary { text-align: center; margin-top: 8px; }

/* ===== HERO ===== */
.hero {
  background: var(--secondary-dark);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(42,156,181,0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(42,156,181,0.08) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; max-width: 750px; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42,156,181,0.15); color: var(--primary);
  border: 1px solid rgba(42,156,181,0.3); border-radius: 50px;
  padding: 8px 18px; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; max-width: 600px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  position: absolute; bottom: 0; inset-inline: 0;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1200px; margin: 0 auto; padding: 24px 20px;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

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

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.25s;
}
.card:hover { border-color: rgba(42,156,181,0.3); box-shadow: var(--shadow); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem;
}
.card-icon.teal { background: rgba(42,156,181,0.1); color: var(--primary); }
.card-icon.slate { background: rgba(61,69,85,0.1); color: var(--secondary); }
.card h3 { color: var(--text); margin-bottom: 10px; }
.card p { font-size: 0.9rem; }

/* Dark card */
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.25s;
}
.card-dark:hover { background: rgba(255,255,255,0.1); }
.card-dark h3 { color: var(--white); margin-bottom: 10px; }
.card-dark p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--secondary-dark); padding: 120px 0 70px; }
.page-header .section-label { color: var(--primary); }
.page-header h1 { color: var(--white); margin-top: 8px; }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--primary); padding: 70px 0; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ===== DARK BG SECTION ===== */
.dark-section { background: var(--secondary-dark); padding: 80px 0; }
.dark-section .section-title h2 { color: var(--white); }

/* ===== MUTED SECTION ===== */
.muted-section { background: var(--bg-muted); padding: 80px 0; }

/* ===== STEP ITEMS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step-item { text-align: center; }
.step-circle {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.6rem; position: relative;
  box-shadow: 0 4px 15px rgba(42,156,181,0.3);
}
.step-num {
  position: absolute; top: -8px; inset-inline-end: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary); color: var(--white);
  font-size: 0.65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 0.9rem; color: var(--text); margin-bottom: 6px; }
.step-item p { font-size: 0.78rem; }

/* ===== FORM ===== */
.rafed-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem;
  color: var(--text); background: var(--bg);
  transition: border-color 0.2s; outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42,156,181,0.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Materials checkboxes */
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mat-check {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border);
  cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text);
  transition: all 0.2s; background: var(--white);
}
.mat-check input { display: none; }
.mat-check .check-box {
  width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 0.7rem;
}
.mat-check:has(input:checked) { border-color: var(--primary); background: rgba(42,156,181,0.06); color: var(--primary); }
.mat-check:has(input:checked) .check-box { background: var(--primary); border-color: var(--primary); color: white; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--primary); background: var(--accent); }
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ===== FOOTER ===== */
#rafed-footer {
  background: var(--secondary-dark);
  color: rgba(255,255,255,0.65);
}
.footer-main { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-logo p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.875rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.875rem; }
.footer-contact-item .icon { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ===== BILINGUAL HIDE/SHOW ===== */
.ar-content { display: block; }
.en-content { display: none; }
html.lang-en .ar-content { display: none; }
html.lang-en .en-content { display: block; }
html.lang-ar .ar-content { display: block; }
html.lang-ar .en-content { display: none; }

/* ===== VALUES GRID ===== */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value-card {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.value-card:hover { border-color: rgba(42,156,181,0.3); box-shadow: var(--shadow); }
.value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(42,156,181,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.4rem;
}
.value-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }

/* ===== METALS PAGE ===== */
.metal-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 50px;
  margin-inline-start: 8px; vertical-align: middle;
}
.metal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.metal-tag {
  background: rgba(42,156,181,0.08); color: var(--primary);
  border: 1px solid rgba(42,156,181,0.2); border-radius: 50px;
  font-size: 0.78rem; padding: 4px 12px; font-weight: 600;
}
.bullet-list { padding: 0; }
.bullet-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--muted); margin-bottom: 8px;
}
.bullet-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-top: 6px; flex-shrink: 0;
}

/* ===== STAT HIGHLIGHT ===== */
.stat-big { font-size: 3.5rem; font-weight: 900; color: var(--white); margin-bottom: 6px; }

/* ===== CONTACT PAGE ===== */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-muted); margin-bottom: 14px; transition: all 0.2s;
}
.contact-info-item:hover { border-color: rgba(42,156,181,0.3); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(42,156,181,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item .label { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.contact-info-item .value { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.contact-info-item a.value:hover { color: var(--primary); }

/* Emirates badges */
.emirates-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.emirate-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.emirate-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-right .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 30px 20px; }
  .stat-item { padding: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { text-align: center; justify-content: center; width: 100%; }
  .hero-content { padding: 60px 0; text-align: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero p { margin-left: auto; margin-right: auto; }
  /* Fix Hero Stats overlapping on mobile */
  .hero-stats { position: relative; background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; }
  .hero { min-height: auto; padding-bottom: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; line-height: 1.3; }
  h2 { font-size: 1.5rem; }
  .hero-stats-inner { grid-template-columns: 1fr; text-align: center; gap: 15px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stat-big { font-size: 2.2rem; }
  .stat-value { font-size: 1.6rem; }
  .section { padding: 50px 0; }
  .hero-content { padding: 40px 0; }
  .hero-buttons { gap: 10px; }
}

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

@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
