:root {
  --yellow: #daa520;
  --yellow-dark: #c5961c;
  --brown: #4e342e;
  --white: #ffffff;
  --off: #fafaf9;
  --text: #2b2b2b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-lg: 28px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--off);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 16px;
}

/* Header (compact) */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brown);
}

.brand img.logo-mark {
  height: 42px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.menu {
  display: flex;
  gap: 14px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 12px;
}

.menu a:hover {
  background: #f5f2ea;
}

.hamb {
  display: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .hamb {
    display: inline-flex;
  }
}

.mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 60;
}

/* أضف السطر ده */
.mobile[hidden] {
  display: none !important;
}

/* وأضف ده علشان لما تتفتح تظهر */
.mobile:not([hidden]) {
  display: block !important;
}

.sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile:not([hidden]) .sheet {
  transform: translateY(0);
}

.sheet a {
  display: block;
  padding: 12px;
  border-radius: 12px;
}

/* Buttons (fix) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s;
}

.btn-ghost {
  background: #fff;
  border-color: #eee;
}

.btn-yellow {
  background: var(--yellow);
  color: #fff;
}

.btn-yellow:hover {
  background: var(--yellow-dark);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin-right: 15px;
  margin-left: 10px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 48px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 8px 12px;
}

h1 {
  font-size: 38px;
  line-height: 1.25;
  margin: 14px 0 8px;
  color: var(--brown);
}

.lead {
  font-size: 18px;
  color: #4b4b4b;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 420px;
  object-fit: cover;
}

/* Sections */
section {
  padding: 56px 0;
}

h2 {
  font-size: 32px;
  color: var(--brown);
  margin: 0 0 10px;
}

.sub {
  color: #666;
  margin-bottom: 22px;
}

/* Grids */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1000px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  /* الصورة تبقى فوق النص */
  .hero .wrap>div:nth-child(2) {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-img {
    height: 320px;
    width: auto;
    max-width: 90%;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 680px) {

  .grid-3,
  .grid-2,
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
}

.card .cover {
  height: 200px;
  object-fit: cover;
  border-top-right-radius: var(--radius);
  border-top-left-radius: var(--radius);
}

.card .body {
  padding: 16px;
}

ul.clean {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

ul.clean li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
}

.tick {
  color: var(--yellow);
  margin-top: 2px;
}

/* Steps */
.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px;
}

.step .num {
  font-weight: 800;
  color: var(--yellow);
}

/* work */
#work {
  padding: 80px 0;
  background: #f9f9f9;
}

#work h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
}

#work .sub {
  text-align: center;
  margin-bottom: 40px;
  color: #777;
}

.carousel-item img {
  max-width: 400px;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}


/* مودال الصورة */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* الصورة داخل المودال */
.image-modal img {
  max-width: 400px;
  max-height: 700px;
  border-radius: 10px;
  /* box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); */
  animation: fadeIn 0.4s ease;
}

/* زر الإغلاق */
.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.close-btn:hover {
  color: #DAA520;

}

/* تعديل شكل المودال */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

/* زر الإغلاق */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #daa520;
}

/* الأسهم */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background-color: rgba(218, 165, 32, 0.282);
  border: none;
  padding: 10px 18px;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10000;
}

/* تحديد الاتجاه */
.nav-btn.prev {
  left: 20px;
  /* خليه ظاهر تمامًا على الموبايل */
}

.nav-btn.next {
  right: 20px;
}

.nav-btn:hover {
  background-color: rgba(218, 165, 32, 1);
}

/* ✅ تعديل خاص للموبايل */
@media (max-width: 768px) {
  .nav-btn {
    font-size: 28px;
    padding: 8px 14px;
  }

  .nav-btn.prev {
    left: 10px;
    /* يقرب السهم من الحافة */
  }

  .nav-btn.next {
    right: 10px;
  }

  .close-btn {
    font-size: 30px;
    right: 15px;
    top: 15px;
  }
}

/* حركة ظهور ناعمة */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Offer/CTA band */
.band {
  background: var(--brown);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.band .btn {
  background: var(--yellow);
  color: #fff;
}

/* Contact */
form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  padding: 12px;
  background: #fff;
  font-family: inherit;
}

textarea {
  min-height: 120px;
}

.map {
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
}

/* FAQ */
details {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brown);
}

/* Footer */
footer {
  background: var(--brown);
  color: #fff;
  padding: 22px 0;
  margin-top: 32px;
}

footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Floating WhatsApp */
.wa {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.wa:hover {
  filter: brightness(0.95);
}

/* Animations & Motion */
html {
  scroll-behavior: smooth;
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.float {
  animation: floatY 6s ease-in-out infinite;
}

header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Mobile polish */
:root {
  --space: clamp(14px, 2.4vw, 20px);
}

h1 {
  font-size: clamp(26px, 5.5vw, 38px);
}

h2 {
  font-size: clamp(22px, 4.2vw, 32px);
}

.container {
  padding-inline: clamp(14px, 3.2vw, 24px);
}

.hero .wrap {
  padding: clamp(28px, 6vw, 48px) 0;
}

.hero-img {
  height: clamp(220px, 48vw, 420px);
}

.btn {
  min-height: 48px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn.btn-yellow {
  box-shadow: 0 6px 18px rgba(218, 165, 32, 0.25);
}

input,
select,
textarea {
  font-size: 16px;
  min-height: 48px;
}

@media (max-width: 520px) {
  .wa {
    bottom: 78px;
  }
}

/* Sticky Mobile CTA */
.mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    gap: 10px;
    padding: 10px calc(12px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid #eee;
  }

  .mobile-cta .btn {
    flex: 1;
  }
}