/* ============================================================
   RAMALLAH DIGITAL — BRAND COLOR SYSTEM
   Primary: Red #C5232D | Dark: #4A5568 | Black: #0A0A0A
   ============================================================ */
:root {
  --brand:       #C5232D;
  --brand-light: #E8404A;
  --brand-dim:   #7A1218;
  --brand-glow:  rgba(197, 35, 45, 0.25);
  --border:      rgba(197, 35, 45, 0.18);
}

/* Global Dark Mode Styles */
body.dark-mode {
  background: #181a1b !important;
  color: #e0e0e0 !important;
}
.navbar.dark-mode {
  background: #23272a !important;
  color: #e0e0e0 !important;
}
.footer.dark-mode {
  background: #23272a !important;
  color: #e0e0e0 !important;
}
.hero.dark-mode,
.services.dark-mode,
.about.dark-mode,
.cta.dark-mode {
  background: #23272a !important;
  color: #e0e0e0 !important;
}
.product-card.dark-mode {
  background: #23272a !important;
  color: #e0e0e0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.product-body.dark-mode {
  color: #e0e0e0 !important;
}
.page-title.dark-mode {
  color: #e0e0e0 !important;
}
.filter-bar.dark-mode {
  background: #23272a !important;
  color: #e0e0e0 !important;
}
.hero {
  height: 90vh;
  background:
    linear-gradient(120deg, var(--brand-dim) 60%, var(--brand) 100%),
    url("/images/hero.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  box-shadow: 0 8px 32px rgba(11, 60, 93, 0.15);
}
.hero-content {
  margin-left: 80px;
  color: #fff;
  z-index: 2;
}
.hero h1 {
  font-size: 56px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.hero p {
  font-size: 22px;
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 36px;
  background: linear-gradient(90deg, var(--brand) 60%, #f7c873 100%);
  color: #222;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(244, 180, 26, 0.15);
  transition:
    background 0.3s,
    color 0.3s;
}
.btn:hover {
  background: linear-gradient(90deg, var(--brand) 60%, var(--brand-dim) 100%);
  color: #fff;
}
.btn.dark {
  background: linear-gradient(90deg, var(--brand-dim) 60%, var(--brand) 100%);
  color: #fff;
}
.services {
  padding: 80px 0 60px 0;
  background: #f9f9f9;
  text-align: center;
}
.services h2 {
  font-size: 36px;
  color: var(--brand-dim);
  margin-bottom: 30px;
  font-weight: bold;
}
.service-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.service {
  background: #fff;
  padding: 48px 20px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(50, 130, 184, 0.1);
  font-size: 22px;
  color: var(--brand);
  font-weight: 500;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.service:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(50, 130, 184, 0.18);
  background: #eaf6fb;
}
.about,
.cta {
  padding: 80px 0;
  text-align: center;
}
.about h2,
.cta h2 {
  font-size: 32px;
  color: var(--brand-dim);
  margin-bottom: 18px;
  font-weight: bold;
}
.about p {
  font-size: 20px;
  color: #444;
}
.cta .btn {
  margin-top: 30px;
}
.footer {
  background: var(--brand-dim);
  color: #fff;
  text-align: center;
  padding: 28px 0 18px 0;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 -2px 8px rgba(11, 60, 93, 0.08);
}
* {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  color: #333;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 80px;
  background: var(--brand-dim);
  color: #fff;
}

.navbar a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
}

.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/hero.jpg") center/cover;
  display: flex;
  align-items: center;
}

.hero-content {
  margin-left: 80px;
  color: #fff;
}

.hero h1 {
  font-size: 52px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: var(--brand);
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.services {
  padding: 80px;
  background: #f9f9f9;
  text-align: center;
}

.service-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service {
  background: #fff;
  padding: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about,
.cta {
  padding: 80px;
  text-align: center;
}

.footer {
  background: var(--brand-dim);
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* =========================
   Products Page
========================= */

.products-page {
  padding: 60px 80px;
  direction: rtl;
  background: #f5f7fa;
}

.page-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--brand-dim);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 80%;
  max-height: 80%;
}

.product-body {
  padding: 20px;
  text-align: center;
}

.product-body h3 {
  font-size: 20px;
  color: var(--brand-dim);
  margin-bottom: 10px;
}

.product-body p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  min-height: 40px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: var(--brand);
}
.fancy-toggle-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  color: #ffe082;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18), 0 1.5px 0 #ffe082 inset;
  letter-spacing: 1.5px;
  transition: background 0.3s, color 0.3s, transform 0.18s, box-shadow 0.3s;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
}
.fancy-toggle-btn:hover, .fancy-toggle-btn:focus {
  background: linear-gradient(90deg, #ffe082 0%, #ffb300 100%);
  color: #232526;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(255,224,130,0.18), 0 1.5px 0 #232526 inset;
}
.fancy-toggle-btn:active {
  transform: scale(0.98);
}
.darkmode-btn {
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  color: #ffe082;
}
.lang-btn {
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(0, 114, 255, 0.13), 0 1.5px 0 #fff2 inset;
}
.lang-btn:hover, .lang-btn:focus {
  background: linear-gradient(90deg, #ffe082 0%, #ffb300 100%);
  color: #232526;
}