/* =============================
   Al Ekleem Company - style.css
   ============================= */

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

:root {
  --color-primary: #0a3d62;   /* أزرق داكن */
  --color-accent:  #1e9f6e;   /* أخضر */
  --color-bg:      #f5f6fa;
  --color-card:    #ffffff;
  --color-text:    #222;
  --radius-lg:     18px;
  --radius-md:     12px;
  --shadow-soft:   0 8px 22px rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--color-primary), #05213a);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 3px;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 700;
  font-size: 18px;
}

.brand-sub {
  font-size: 13px;
  opacity: 0.8;
}

/* LANG TOGGLE */

.lang-toggle {
  position: relative;
  width: 120px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  padding: 0 6px;
  gap: 4px;
}

.lang-ar .lang-toggle {
  flex-direction: row-reverse;
}

.lang-toggle .lang-ar-label,
.lang-toggle .lang-en-label {
  flex: 1;
  text-align: center;
  z-index: 1;
}

.lang-switch {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 50%;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s;
}

/* switch position */
.lang-ar .lang-switch {
  transform: translateX(-2px);
}

.lang-en .lang-switch {
  transform: translateX(56px);
}

/* MAIN LAYOUT */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* HERO */

.hero {
  margin-top: 18px;
  background: radial-gradient(circle at top left, #1e9f6e22, transparent 55%),
              radial-gradient(circle at top right, #0a3d6230, transparent 60%),
              #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 26px;
  color: var(--color-primary);
}

.hero-text p {
  margin: 0 0 18px;
  line-height: 1.8;
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn.primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(30, 159, 110, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 159, 110, 0.45);
}

.btn.ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(10, 61, 98, 0.4);
}

.btn.ghost:hover {
  background: rgba(10, 61, 98, 0.06);
}

/* HERO HIGHLIGHT */

.hero-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.stat {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid rgba(10, 61, 98, 0.06);
}

.stat-number {
  display: block;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-accent);
}

.stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* SECTIONS */

.section {
  margin-top: 32px;
}

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

.section-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--color-primary);
}

.section-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* GRID */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* SERVICES */

.service-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px 15px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(10, 61, 98, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(10, 61, 98, 0.12);
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 159, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--color-primary);
}

.service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

/* PRODUCT CARDS */

.gallery-grid {
  margin-top: 6px;
}

.product-card {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  isolation: isolate;
  cursor: default;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  mix-blend-mode: multiply;
}

.product-label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ABOUT */

.about-layout p {
  margin: 0;
  background: #ffffff;
  padding: 18px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1.9;
}

/* CONTACT */

.contact {
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.contact-item {
  background: #ffffff;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
}

.contact-label {
  display: block;
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  direction: ltr;
}

.contact-value:hover {
  text-decoration: underline;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 14px 10px 18px;
  background: #06192a;
  color: #fff;
  font-size: 13px;
}

/* ENGLISH MODE */

body.lang-en {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.lang-en main {
  text-align: left;
}

body.lang-en .hero,
body.lang-en .about-layout p,
body.lang-en .service-card,
body.lang-en .contact-item {
  text-align: left;
}

body[dir="ltr"] .contact-value {
  direction: ltr;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .navbar {
    padding-inline: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-highlight {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 20px 16px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  main {
    padding-inline: 12px;
  }

  .navbar {
    padding-inline: 12px;
  }
}
