/* Shared site shell: one Navbar + Footer + design tokens for every page */
:root {
  --footer-bg: #06102d;
  --footer-bg-light: #081536;
  --footer-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-secondary: #8b9ac0;
  --accent: #e52b35;
  --circle-bg: #11265c;
  --brand-red: #d9272e;
  --brand-red-dark: #b51e24;
  --nav-height: 80px;
  --primary-red: #d32f2f;
  --text-dark: #222;
  --text-light: #666;
  --border-color: #f4d9d9;
  --bg-light: #fff;
  --bg-color: #f8f9fa;
  --text-gray: #777;
  --label-color: #555;
}

.navbar {
  background: white;
  padding: 18px 40px;
  width: 100%;
  height: var(--nav-height);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position:sticky;
  top: 0 !important;
  left: 0 !important;
  z-index: 1000;
}

/* Left Section */
.leftnav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leftnav img {
  width: 35px;
  height: 35px;
  display: block;
}

.leftnav h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1a2a4a;
  line-height: 1.2;
}

.leftnav p {
  font-size: 10px;
  color: #7a8aa0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Divider */
.line {
  color: #d0d8e0;
  font-size: 30px;
  font-weight: 300;
}

/* Right Section */
.rightnav {
  display: flex;
  align-items: center;
  gap: 90px;
}

.navlinks {
  display: flex;
  /* align-items: center; */
  gap: 35px;
  /* margin-left: 90px;
    margin-right: 90px; */
}
.navlinks a {
  text-decoration: none;
  color: #1a2a4a;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  padding: 4px 25px;
  border-radius: 10px;
  line-height: 1.2;
}
.navlinks a:hover {
  background: #d92725;
  color: white;
}
/* ===== ACTIVE LINK (HOME) ===== */
.nav-links a.active {
  color: #ffffff;
  background: #d9272e;
  box-shadow: 0 4px 15px rgba(217, 39, 46, 0.25);
}

.nav-links a.active:hover {
  color: #ffffff;
  background: #b51e24;
  box-shadow: 0 6px 20px rgba(217, 39, 46, 0.35);
}

.company-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.company-text h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1a2a4a;
  margin: 0;
}

.company-text p {
  font-size: 10px;
  color: #7a8aa0;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 0;
  text-transform: uppercase;
}

.navbutton {
  background: #d9272e;
  color: white;
  border: none;
  padding: 10px 26px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.navbutton:hover {
  background: #d9272e;
}

.mobile-menu {
  display: none;
}

.nav-toggle {
  display: none;
}

.navlinks a.active {
  color: #ffffff;
  background: #d9272e;
  box-shadow: 0 4px 15px rgba(217, 39, 46, 0.25);
}

.navlinks a.active:hover {
  background: #b51e24;
}

/* =========================
   FOOTER
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   MAIN FOOTER
========================= */

.site-footer {
  background: var(--footer-bg);
  color: var(--text-main);
}

.footer-main {
  padding: 40px 0 38px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   FOOTER GRID
========================= */

.footer-main .footer-container {
  display: grid;

  grid-template-columns:
    1.35fr
    1fr
    1.25fr
    1.15fr
    1.15fr;

  gap: 42px;
}

/* =========================
   LOGO / ABOUT
========================= */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.logo-circle {
  width: 32px;
  height: 32px;

  border: 1.5px solid var(--accent);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);
  font-weight: bold;
  font-size: 17px;
}

.footer-logo h3 {
  margin: 0 0 2px;

  font-size: 12px;
  font-weight: 700;
}

.footer-logo span {
  color: var(--text-secondary);

  font-size: 9px;
  line-height: 1.35;
}

.footer-about > p {
  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.65;

  margin: 0;

  max-width: 205px;
}

/* =========================
   RED LINE
========================= */

.footer-line {
  width: 23px;
  height: 2px;

  background: var(--accent);

  margin: 15px 0 17px;
}

.footer-about h4 {
  font-size: 11px;
  margin: 0 0 10px;
}

/* =========================
   SOCIAL
========================= */

.social-links {
  display: flex;
  gap: 9px;
}

.social-links a {
  width: 24px;
  height: 24px;

  background: var(--circle-bg);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  font-size: 10px;

  text-decoration: none;

  transition: 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* =========================
   TITLES
========================= */

.footer-title {
  position: relative;

  margin: 0 0 20px;

  padding-bottom: 10px;

  font-size: 12px;
  font-weight: 700;
}

.footer-title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 23px;
  height: 2px;

  background: var(--accent);
}

/* =========================
   QUICK LINKS
========================= */

.footer-links {
  list-style: none;

  margin: 0;
  padding: 0;
}

.footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-links a {
  display: flex;
  align-items: center;

  gap: 5px;

  padding: 8px 0;

  color: var(--text-secondary);

  font-size: 11px;

  text-decoration: none;

  transition: 0.3s ease;
}

.footer-links a span {
  color: var(--accent);

  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

/* =========================
   CONTACT
========================= */

.contact-list {
  list-style: none;

  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  margin-bottom: 12px;

  color: var(--text-secondary);

  font-size: 10px;

  line-height: 1.5;
}

.contact-list i {
  color: var(--accent);

  font-size: 9px;

  width: 11px;

  margin-top: 3px;
}

.contact-list a {
  color: var(--text-secondary);

  text-decoration: none;

  transition: 0.3s;
}

.contact-list a:hover {
  color: #fff;
}

.contact-list .address {
  margin-top: 3px;
}

/* =========================
   MAP
========================= */

.map-box {
  width: 100%;
  height: 105px;

  border-radius: 10px;

  overflow: hidden;

  position: relative;

  background: linear-gradient(
    170deg,
    #142a66 0%,
    #142a66 55%,
    #e9d1ca 56%,
    #e9d1ca 62%,
    #172d6d 63%
  );

  margin-bottom: 10px;
}

.map-content {
  width: 100%;
  height: 100%;

  position: relative;

  background:
    linear-gradient(
      87deg,
      transparent 45%,
      rgba(242, 218, 211, 0.9) 46%,
      rgba(242, 218, 211, 0.9) 50%,
      transparent 51%
    ),
    linear-gradient(
      170deg,
      transparent 42%,
      rgba(237, 211, 204, 0.95) 43%,
      rgba(237, 211, 204, 0.95) 51%,
      transparent 52%
    );
}

.map-road {
  position: absolute;

  background: rgba(240, 218, 211, 0.9);
}

.road-one {
  width: 150%;
  height: 5px;

  top: 48px;
  left: -20px;

  transform: rotate(7deg);
}

.road-two {
  width: 5px;
  height: 140px;

  left: 49px;
  top: -20px;

  transform: rotate(-7deg);
}

.map-text {
  position: absolute;

  color: #1f3267;

  font-size: 5px;

  z-index: 2;
}

.nile {
  top: 17px;
  left: 18px;
}

.maadi {
  top: 17px;
  right: 17px;
}

.road {
  bottom: 25px;
  right: 13px;
}

.map-pin {
  position: absolute;

  top: 25px;
  left: 50%;

  transform: translateX(-50%);

  width: 17px;
  height: 17px;

  border-radius: 50%;

  background: var(--accent);

  border: 2px solid #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  font-size: 7px;

  z-index: 3;
}

/* =========================
   DIRECTIONS
========================= */

.directions-btn {
  width: 100%;

  height: 32px;

  background: transparent;

  border: 1px solid var(--accent);

  border-radius: 9px;

  color: var(--accent);

  font-size: 10px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.directions-btn i {
  margin-right: 6px;
}

.directions-btn:hover {
  background: var(--accent);

  color: #fff;

  transform: translateY(-2px);
}

/* =========================
   NEWSLETTER
========================= */

.newsletter-section {
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);

  padding: 18px 0;
}

.newsletter-container {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.newsletter-info {
  display: flex;

  align-items: center;

  gap: 12px;
}

.newsletter-icon {
  width: 42px;
  height: 42px;

  background: var(--circle-bg);

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-size: 17px;
}

.newsletter-info h3 {
  margin: 0 0 4px;

  font-size: 12px;
}

.newsletter-info p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 10px;
}

/* =========================
   NEWSLETTER FORM
========================= */

.newsletter-form {
  display: flex;

  width: 265px;

  height: 33px;
}

.newsletter-form input {
  flex: 1;

  min-width: 0;

  border: none;
  outline: none;

  background: #11204a;

  color: #fff;

  padding: 0 12px;

  font-size: 10px;

  border-radius: 6px 0 0 6px;
}

.newsletter-form input::placeholder {
  color: #7181a9;
}

.newsletter-form button {
  width: 107px;

  border: none;

  background: var(--accent);

  color: #fff;

  font-size: 10px;

  font-weight: 600;

  cursor: pointer;

  border-radius: 0 6px 6px 0;

  transition: 0.3s;
}

.newsletter-form button:hover {
  background: #c9212b;
}

.newsletter-form button i {
  margin-left: 7px;
}

/* =========================
   BOTTOM
========================= */

.footer-bottom {
  padding: 11px 0;

  background: rgba(0, 0, 0, 0.08);
}

.bottom-container {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;

  color: #7181a0;

  font-size: 9px;
}

.footer-bottom strong {
  color: #dce3f4;
}

.bottom-links {
  display: flex;

  align-items: center;

  gap: 10px;
}

.bottom-links a {
  color: #7181a0;

  font-size: 9px;

  text-decoration: none;

  transition: 0.3s;
}

.bottom-links a:hover {
  color: #fff;
}

.bottom-links span {
  color: #405071;

  font-size: 9px;
}
/* ======================================= */
/* النافذة المنبثقة بكل تفاصيلها (Modal Full) */
/* ======================================= */
.quote-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 19, 42, 0.7);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}
.quote-modal-box {
    background: #ffffff; width: 95%; max-width: 850px;
    border-radius: 20px; padding: 40px 50px; 
    max-height: 90vh; overflow-y: auto;
    font-family: 'DM Sans', sans-serif;
}

/* الرأس */
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.modal-header h2 { font-family: 'DM Serif Display', serif; font-size: 32px; color: #1a1a24; margin: 0 0 5px 0; }
.modal-header p { color: #8a8d9e; font-size: 15px; margin: 0; }
.close-modal { background: #f4f5f8; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 18px; color: #888; cursor: pointer; transition: 0.3s; }
.close-modal:hover { background: #e0e2e8; color: #333; }

/* شريط التقدم */
.modal-progress { display: flex; align-items: center; margin-bottom: 40px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.progress-step { display: flex; align-items: center; gap: 8px; color: #b0b4c4; font-size: 13px; font-weight: 500; }
.step-circle { width: 24px; height: 24px; border-radius: 50%; background: #f0f2f5; display: flex; justify-content: center; align-items: center; font-size: 12px; }
.progress-step.active { color: #1a1a24; }
.progress-step.active .step-circle { background: #d32f2f; color: #fff; }
.progress-step.completed { color: #1a1a24; }
.progress-step.completed .step-circle { background: #d32f2f; color: #fff; }
.progress-line { flex-grow: 1; height: 2px; background: #f0f2f5; margin: 0 15px; transition: 0.3s; }
.progress-line.active { background: #d32f2f; }

/* العناوين داخل الخطوات */
.step-content { display: none; animation: fadeIn 0.4s; }
.step-content.active { display: block; }
.step-content h3 { font-size: 20px; color: #1a1a24; margin: 0 0 5px 0; font-weight: bold; }
.step-subtitle { color: #b0b4c4; font-size: 14px; margin: 0 0 20px 0; }
.mt-4 { margin-top: 30px; }
.mt-3 { margin-top: 20px; }

/* شبكات الاختيار (Cards) */
.services-grid { display: grid; gap: 15px; }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }

.selectable-card input { display: none; }
.selectable-card .card-content { display: flex; align-items: center; padding: 18px 20px; border: 1px solid #eef0f4; border-radius: 10px; font-size: 14px; font-weight: 600; color: #4a4d5e; cursor: pointer; transition: 0.3s; background: #fafbfc; }
.selectable-card input:checked + .card-content { border-color: #d32f2f; background-color: #fff; color: #1a1a24; box-shadow: 0 4px 15px rgba(211,47,47,0.08); }

/* الدائرة في خطوة الوقت (Timeline) */
.timeline-card .card-content { justify-content: flex-start; gap: 15px; }
.radio-circle { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 50%; display: inline-block; }
.selectable-card input:checked + .card-content .radio-circle { border: 5px solid #d32f2f; }

/* الفورم (الخطوة 3) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group label { display: block; font-size: 11px; font-weight: bold; color: #6b7083; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; border: 1px solid #eef0f4; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: #d32f2f; }
.phone-inputs { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }

/* خطوة المراجعة (الخطوة 4) */
.review-card { border: 1px solid #eef0f4; border-radius: 12px; padding: 25px; margin-bottom: 15px; }
.review-header { font-size: 12px; font-weight: bold; color: #8a8d9e; margin-bottom: 15px; letter-spacing: 1px; }
.review-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-red { background: #fff0f0; color: #d32f2f; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.tag-gray { background: #f4f5f8; color: #1a1a24; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.text-red { color: #d32f2f; }
.review-info p { margin: 0 0 5px 0; font-size: 15px; }

/* خطوة النجاح (الخطوة 5) */
.text-center { text-align: center; }
.success-icon { font-size: 60px; margin-bottom: 10px; }
.success-desc { color: #777; font-size: 15px; line-height: 1.6; max-width: 500px; margin: 0 auto 30px auto; }
.contact-card-pink { background: #fff4f4; border: 1px solid #ffebeb; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 14px; }
.phone-icon { font-size: 24px; }
.w-100 { width: 100%; padding: 16px; font-size: 16px; border-radius: 10px; }

/* أزرار الفوتر */
.modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.btn-cancel { background: #ffffff; border: 1px solid #eef0f4; color: #666; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-cancel:hover { background: #f4f5f8; }
.step-indicator { color: #b0b4c4; font-size: 14px; font-weight: 500; }

/* استجابة الموبايل */
@media (max-width: 768px) {
    .services-grid, .form-grid-2, .budget-grid { grid-template-columns: 1fr; }
    .quote-modal-box { padding: 30px 20px; }
    .modal-progress span { display: none; /* إخفاء النص في شريط التقدم في الموبايل */ }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================= */
/* التنسيق الأساسي للأزرار */
/* ======================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* لون الزر الأحمر */
.btn-red {
    background-color: #d92725; /* بناءً على درجة اللون في صورة التصميم */
    color: #ffffff;
}

.btn-red:hover {
    background-color: #e57373;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .footer-main .footer-container {
    grid-template-columns: repeat(3, 1fr);

    row-gap: 35px;
  }

  .footer-about {
    grid-column: span 3;
  }

  .footer-about > p {
    max-width: 400px;
  }

  .newsletter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .footer-main {
    padding: 35px 0;
  }

  .footer-main .footer-container {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-about > p {
    max-width: 100%;
  }

  .newsletter-info {
    align-items: flex-start;
  }

  .newsletter-form {
    width: 100%;
  }

  .bottom-container {
    flex-direction: column;

    gap: 12px;

    text-align: center;
  }

  .bottom-links {
    flex-wrap: wrap;

    justify-content: center;
  }
}

/* Final shared-shell normalization: Home is the single source of truth. */
.navbar { height: var(--nav-height) !important; }
.navlinks a.active { color:#fff !important; background:var(--brand-red) !important; box-shadow:0 4px 15px rgba(217,39,46,.25) !important; }
.navlinks a.active:hover { background:var(--brand-red-dark) !important; }

@media (max-width: 1100px) {
  .navbar { padding: 16px 24px; height: auto !important; }
  .rightnav { gap: 28px; }
  .navlinks { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .navlinks a { padding: 6px 14px; }
}

@media (max-width: 760px) {
  .navbar {
    padding: 12px 18px;
    min-height: 64px;
    height: 64px;
    justify-content: space-between;
    gap: 12px;
  }

  .leftnav {
    gap: 10px;
    min-width: 0;
  }

  .leftnav img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .copmanytext {
    min-width: 0;
  }

  .leftnav h2 {
    font-size: 14px;
  }

  .leftnav p {
    font-size: 8px;
    letter-spacing: 0.2px;
  }

  .rightnav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 42px;
    height: 42px;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #1a2a4a;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  }

  .nav-toggle span + span {
    margin-top: 4px;
  }

  .nav-toggle.open {
    border-color: #d9272e;
    box-shadow: 0 6px 18px rgba(217, 39, 46, 0.14);
  }

  .nav-toggle.open span {
    background: #d9272e;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    background: rgba(255, 255, 255, 0.6);
  }

  .mobile-menu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    margin: 0 18px 14px;
    padding: 16px;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #1a2a4a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a.active {
    background: rgba(217, 39, 46, 0.08);
    color: #d9272e;
  }

  .mobile-navbutton {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 10px;
    background: #d9272e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.25s ease;
  }

  .mobile-navbutton:hover {
    background: #b51e24;
  }
}
