/* ================================================================
   Madarat Group — Light Professional Theme
   Pure HTML/CSS/JS, no frameworks
   ================================================================ */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-alt: #e8ecf1;
  --border: #d8dee8;
  --text: #0D5014;
  --text-secondary: #5a6478;
  /* --red-id: #8a93a6; */
  --accent: #02A74A;
  --accent-hover: #0D5014;
  --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 55, 72, 0.08);
  --shadow-lg: 0 20px 50px rgba(45, 55, 72, 0.12);
  --radius: 14px;
  --ease: cubic-bezier(0.42, 0, 0.58, 1);

  --red-id: #982532;
  --green-id: #02A74A;
  --text-id: #c8c7c7;
}

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

html { direction: rtl; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Arabic', 'Tajawal', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(59, 130, 246, 0.2); color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ TYPOGRAPHY HELPERS ============ */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.new{
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}


.heading-display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.heading-section {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.heading-card { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.text-body { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-top: 12px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-secondary); max-width: 600px; margin: 24px auto 0; }
.muted { color: white; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.24s var(--ease);
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; right: 0; left: 0;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; width: 200px; height: 90px; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--text); }
.logo-tag { font-size: 11px; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 8px 18px; font-size: 13px; }

.menu-toggle {
  display: none; background: none; border: none;
  width: 32px; height: 32px; cursor: pointer; padding: 6px;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--text); margin: 4px 0; border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; right: 0; left: 0;
    background: var(--surface); padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hero { background-size:contain;}
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  background-image: url("images/photo_01.webp");
  display: flex; align-items: center; justify-content: center;
  /* overflow: hidden; */
  background-size: cover;
  /* background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%); */
  padding-top: 64px;
}
.hero-glow {
  /* position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.12) 0%, transparent 60%); */

     position: absolute;
    left: 0;
    top:0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 45%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 80px 24px;}
.hero-content .lead {  color: var(--text-id);}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* ============ STATS ============ */
.stats { padding: 60px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }

/* ============ GRIDS ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 70px 0; }
}

/* ============ SURFACE CARD ============ */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.section-alt .surface { background: var(--bg); }


/* ============ IMAGE PLACEHOLDERS ============ */
.image-placeholder {
  background: linear-gradient(135deg, var(--surface-alt), var(--border));
  color: var(--red-id);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  border-radius: 10px;
  min-height: 180px;
}
.card-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.card-image .image-placeholder { min-height: 360px; }
.service-img, .why-img, .step-img, .project-img { margin-bottom: 20px; border-radius: 10px; overflow: hidden; }
.project-img .image-placeholder { min-height: 240px; }

/* ============ VISION ============ */
.vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .vision-grid { grid-template-columns: 1fr; } }

/* ============ METHODOLOGY STEPS ============ */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.section-alt .step { background: var(--bg); }

.step-num {
  font-size: 14px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* ============ PROJECTS ============ */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.project-img { margin: 0; border-radius: 0; }
.project-body { padding: 24px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.project h3 { font-size: 20px; margin-bottom: 8px; }
.project p { font-size: 14px; color: var(--text-secondary); }

/* ============ INVESTMENTS ICONS ============ */
.icon-circle {
  width: 56px; height: 56px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.surface h4 { font-size: 17px; margin-bottom: 8px; }
.surface p { font-size: 14px; color: var(--text-secondary); }

/* ============ SECTORS ============ */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; border-radius: 10px; text-align: center;
  font-weight: 600; font-size: 15px; color: var(--text);
  transition: all 0.3s var(--ease);
}

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

/* ============ CONTACT ============ */
.contact-info { list-style: none; margin-top: 24px; }
.contact-info li { padding: 8px 0; color: var(--text-secondary); font-size: 15px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-success {
  display: none; padding: 12px; background: rgba(34, 197, 94, 0.1);
  color: #15803d; border-radius: 8px; font-size: 14px; text-align: center;
}
.form-success.show { display: block; }

/* ============ FOOTER ============ */
.footer {
    background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 40px; 
    /* padding-top: calc(var(--section-padding)/ 2); */
    /* padding-bottom: calc(var(--section-padding) / 2); */
    background-image: url(images/footer.PNG);
    background-size: cover;
    position: relative;
    color: white;
    text-align: center;
    opacity: 70%;
}
/* .footer-overlay {  position: absolute; left: 0; top:0; width: 100%; height: 100%; background-color: rgb(0 0 0/ 30%);} */
.footer-top { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.footer-logo { font-size: 28px; color: var(--accent);}
.footer-en { font-family: 'Courier New', monospace; font-size: 18px; color: var(--red-id); margin-top: 4px; font-weight: bold;}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 40px 0;
}
.footer-cols h4 { font-size: 14px; margin-bottom: 16px; color: var(--accent);}
.footer-cols ul { list-style: none; }
.footer-cols li {
  font-size: 13px; color: var(--surface); padding: 6px 0;
  cursor: pointer; transition: color 0.2s;
}
.footer-cols li:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; /*border-top: 1px solid var(--border);*/
  text-align: center; font-size: 15px; color: var(--red-id); font-weight:600;
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== DARK THEME (toggle) ===== */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-alt: #1a1a1a;
  --border: #2a2a2d;
  --text: #f5f5f7;
  /* --text-secondary: #86868b;
  --red-id: #48484a;
  --accent: #0a84ff; 
  --accent-hover: #409cff;*/
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .navbar { background: rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .form-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
:root[data-theme="dark"] .tag { background: rgba(10, 132, 255, 0.15); }
:root[data-theme="dark"] .icon-circle { background: rgba(10, 132, 255, 0.15); }

/* Smooth theme transition */
body, .navbar, .surface, .step, .project, .project-fs, .sector, .footer, .stats, .field input, .field textarea {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.24s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { position: absolute; transition: all 0.35s var(--ease); }
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
/* ========================================================================================================== */
/* ===== PROJECTS GROUP TITLE ===== */
.projects-group { margin: 3rem 0 1.5rem; }
.projects-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}

/* ===== FEASIBILITY CARDS ===== */
.project-fs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-fs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roi-quiet {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.project-fs h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.project-fs p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.fs-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  opacity: 0.7;
}

/* ===== EXECUTED PROJECT DETAILS ===== */
.project-details {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.project-details li {
  font-size: 0.87rem;
  color: var(--text-muted);
}



/* ===== UNIFIED CARD HOVER EFFECT ===== */
.surface,
.step,
.project,
.project-fs,
.sector {
  will-change: transform, box-shadow;
  transform: translateY(0) scale(1);
}

.surface:hover,
.step:hover,
.project:hover,
.project-fs:hover,
.sector:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 24px 58px rgba(45, 55, 72, 0.16);
  border-color: var(--accent);
  z-index: 2;
}

.sector:hover {
  background: var(--surface);
  color: var(--text);
}

:root[data-theme="dark"] .surface:hover,
:root[data-theme="dark"] .step:hover,
:root[data-theme="dark"] .project:hover,
:root[data-theme="dark"] .project-fs:hover,
:root[data-theme="dark"] .sector:hover {
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68);
}
