:root {
  /* ألوان الهوية (من الباليت) */
  --brand-dark: #222F60;
  --brand-sky:  #1E88CA;
  --brand-gold: #CAAC47;
  --brand-green:#3C8751;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-soft: #edeff2;

  --text-main: #111827;
  --text-muted: #6b7280;

  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1120px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 34px;
  width: auto;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-sky);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: #d1d5db;
}

/* Lang switch */
.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.lang-btn {
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--brand-sky);
  color: #ffffff;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* HERO */
.hero-shell {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 56px;
  align-items: center;
}

.hero-heading {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.hero-heading span {
  color: var(--brand-sky);
}

.hero-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-media img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* SECTIONS */
section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section-header {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e5f2ff;
  color: var(--brand-dark);
  display: inline-block;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
}

/* GRIDS & CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
}

.brand-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border-soft);
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
}

form label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #374151;
}

form input,
form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 9px 11px;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  background: #f9fafb;
}

form input:focus,
form textarea:focus {
  border-color: var(--brand-sky);
  background: #ffffff;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.contact-info {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* FOOTER */
footer {
  padding: 24px 0 32px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-size: 13px;
  z-index: 40;
}

.whatsapp-icon {
  font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    order: -1;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  body.nav-open .nav-links,
  body.nav-open .nav-actions {
    display: flex;
  }

  body.nav-open .nav-right {
    position: absolute;
    inset-inline: 0;
    top: 76px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 20px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  body.nav-open .nav-links {
    flex-wrap: wrap;
  }
}
