:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #23344d;
  --muted: #6d7b8f;
  --primary: #d22b2b;
  --primary-dark: #b01f1f;
  --line: #dfe5ee;
  --footer: #9aa7ba;
  --success: #1f9d55;
  --error: #d92d20;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --whatsapp: #20b15a;
  --call: #334a6a;
  --form: #d22b2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.hero {
  padding: 24px 0 10px;
}

.site-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.hero-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  position: relative;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a37;
  padding: 8px 12px;
  border-radius: 0 10px 0 0;
  font-weight: 700;
  font-size: 14px;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  background: #eef2f7;
}

.info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.info-box .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.info-box strong {
  font-size: 16px;
  color: var(--text);
}

.gallery-section {
  padding: 10px 0 20px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.thumb-grid img,
.wide-grid img,
.banner-image img {
  border-radius: 8px;
  border: 1px solid #d7dee8;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumb-grid img:hover,
.wide-grid img:hover,
.banner-image img:hover {
  transform: scale(1.02);
}

.thumb-grid img {
  height: 120px;
}

.project-details {
  padding: 18px 0 28px;
  text-align: center;
}

.project-details h1,
.project-details h2,
.project-details h3 {
  margin: 0 0 10px;
  line-height: 1.5;
}

.project-details h1,
.project-details h2 {
  color: var(--primary);
}

.project-details p {
  margin: 0 0 12px;
  color: #4b596d;
}

.feature-list {
  width: fit-content;
  margin: 8px auto 0;
  padding: 0 18px 0 0;
  text-align: right;
  color: #39475d;
}

.wide-gallery {
  padding: 8px 0 30px;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.wide-grid img {
  height: 180px;
}

.banner-image img {
  height: 190px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.form-card,
.contact-info {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-card h2,
.contact-info h3 {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  transition: 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #95a8c6;
  box-shadow: 0 0 0 4px rgba(149, 168, 198, 0.18);
}

button[type="submit"] {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 28px;
  margin: 10px 0 0;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.hidden-trap {
  display: none;
}

.contact-info p {
  color: #556377;
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
}

.contact-list li {
  margin-bottom: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
}

.btn.whatsapp {
  background: var(--whatsapp);
}

.btn.call {
  background: var(--call);
}

.footer-cta a {
  color: #253349;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
}

/* Floating Buttons */
.floating-actions {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 20px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 1200;
}

.fab {
  border: none;
  color: #fff;
  border-radius: 14px;
  min-height: 52px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}

.fab-call {
  background: var(--call);
}

.fab-whatsapp {
  background: var(--whatsapp);
}

.fab-form {
  background: var(--form);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 1500;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.modal-box h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #eef2f7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #1f2a37;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1600;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .quick-info,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 280px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .footer-cta a {
    font-size: 30px;
  }

  .site-logo {
    height: 46px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb-grid img {
    height: 110px;
  }

  .wide-grid img {
    height: 140px;
  }

  .banner-image img {
    height: 170px;
  }
}

@media (max-width: 560px) {
  .floating-actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: calc(100% - 16px);
    bottom: 8px;
  }

  .fab {
    min-height: 48px;
    font-size: 13px;
    border-radius: 12px;
  }

  .thumb-grid img,
  .wide-grid img,
  .banner-image img {
    height: 115px;
  }

  .modal-box {
    padding: 18px;
  }
}
.top-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Bottom fixed bar */
.bottom-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-top: 1px solid #dfe5ee;
  box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
}

.bottom-btn {
  height: 62px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

.bottom-btn:not(:last-child) {
  border-left: 1px solid #e6ebf2;
}

.call-btn {
  color: #334a6a;
}

.whatsapp-btn {
  color: #20b15a;
}

.form-btn {
  color: var(--primary);
}

.bottom-btn .icon {
  line-height: 1;
}

/* عشان الشريط السفلي ما يغطيش المحتوى */
.contact-section {
  padding: 26px 0 90px;
}

.footer-cta {
  background: var(--footer);
  padding: 28px 0 90px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-logo {
    height: 56px;
  }
}

@media (max-width: 560px) {
  .bottom-btn {
    height: 58px;
    font-size: 24px;
  }

  .site-logo {
    height: 50px;
  }
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
}

.header-row {
  padding: 12px 0;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-nav a {
  font-weight: 700;
  color: var(--text);
}

.top-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-content {
  padding: 22px 18px 8px;
  text-align: center;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.5;
  color: var(--primary);
}

.hero-content p {
  margin: 0;
  color: #4b596d;
  font-size: 18px;
}

.bottom-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-top: 1px solid #dfe5ee;
  box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
}

.bottom-btn {
  height: 62px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

.bottom-btn:not(:last-child) {
  border-left: 1px solid #e6ebf2;
}

.call-btn {
  color: #334a6a;
}

.whatsapp-btn {
  color: #20b15a;
}

.form-btn {
  color: var(--primary);
}

.secondary-info {
  margin-top: 20px;
}

.copyright {
  margin-top: 14px;
  color: #253349;
  font-size: 14px;
}

.contact-section {
  padding: 26px 0 90px;
}

.footer-cta {
  padding: 28px 0 90px;
}

@media (max-width: 900px) {
  .top-nav {
    gap: 14px;
  }

  .site-logo {
    height: 58px;
  }
}

@media (max-width: 560px) {
  .bottom-btn {
    height: 58px;
    font-size: 24px;
  }

  .site-logo {
    height: 50px;
  }

  .hero-content p {
    font-size: 16px;
  }
}