/* بيت النفوذ للقرميد — الأنماط العامة */
:root {
  --blue: #557c99;
  --blue-dark: #3f6076;
  --blue-light: #e8eef3;
  --charcoal: #4c4c4c;
  --charcoal-dark: #353535;
  --white: #ffffff;
  --bg: #f7f9fa;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(76, 76, 76, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.8;
}

img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== الترويسة ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo img { height: 64px; display: block; }

nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s;
}

nav a:hover, nav a.active {
  background: var(--blue);
  color: var(--white);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--blue);
  cursor: pointer;
}

/* ===== البطل ===== */
.hero {
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, var(--charcoal) 45%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 50px;
  transition: all 0.25s;
  border: 2px solid var(--blue);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }

/* ===== الأقسام ===== */
section { padding: 70px 0; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--charcoal-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.section-title p { color: #777; max-width: 620px; margin: 10px auto 0; }

/* ===== البطاقات ===== */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(76,76,76,0.18); }

.card-img { height: 200px; width: 100%; object-fit: cover; display: block; }

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.card-body h3 { color: var(--blue-dark); margin-bottom: 10px; font-size: 20px; }

.card-body p { color: #666; font-size: 15px; flex: 1; }

.card-meta { font-size: 13px; color: var(--blue); font-weight: 700; margin-bottom: 8px; }

.card-link {
  margin-top: 16px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
.card-link:hover { color: var(--blue-dark); }

/* ===== المزايا ===== */
.features { background: var(--white); }

.feature {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius);
  background: var(--blue-light);
  transition: transform 0.25s;
}

.feature:hover { transform: translateY(-5px); }

.feature .icon {
  width: 70px; height: 70px;
  margin: 0 auto 16px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
}

.feature h3 { color: var(--charcoal-dark); margin-bottom: 8px; font-size: 18px; }
.feature p { color: #666; font-size: 14px; }

/* ===== شريط CTA ===== */
.cta-bar {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
}
.cta-bar h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 12px; }
.cta-bar p { margin-bottom: 24px; opacity: 0.92; }
.cta-bar .btn { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.cta-bar .btn:hover { background: var(--charcoal-dark); color: var(--white); border-color: var(--charcoal-dark); }

/* ===== صفحة عنا ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid h2 { color: var(--charcoal-dark); margin-bottom: 16px; font-size: 28px; }
.about-grid p { color: #555; margin-bottom: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.stat .num { font-size: 36px; font-weight: 900; color: var(--blue); }
.stat .label { color: var(--charcoal); font-weight: 700; }

/* ===== صفحة التواصل ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.contact-info .item .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.contact-info h3 { font-size: 16px; color: var(--charcoal-dark); }
.contact-info p { color: #666; font-size: 15px; direction: ltr; text-align: right; }

form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { font-weight: 700; display: block; margin-bottom: 6px; color: var(--charcoal-dark); }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 18px;
  background: var(--bg);
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}

/* ===== التذييل ===== */
footer {
  background: var(--charcoal-dark);
  color: #ccc;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}

footer h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 18px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  padding-bottom: 6px;
}

footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #ccc; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--blue); }
footer .ltr { direction: ltr; text-align: right; display: inline-block; }

.copyright {
  border-top: 1px solid #5e5e5e;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  color: #999;
}

/* ===== استجابة ===== */
@media (max-width: 820px) {
  .menu-btn { display: block; }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.open { display: block; }

  nav ul { flex-direction: column; gap: 0; padding: 12px; }
  nav a { display: block; }

  .about-grid, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .logo img { height: 52px; }
}
