:root {
  --gold: #cda463;
  --dark: #333333;
  --black: #000000;
  --green: #61ce70;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.mob-only { display: none; }

/* ===== Headings ===== */
.section-title {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}
.section-title.center { text-align: center; }

.section-sub {
  margin: 0 auto 40px;
  text-align: center;
  font-size: 20px;
  color: #000;
  max-width: 1000px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 760px;
  max-height: 100vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: 330px;
  max-width: 70vw;
  margin-bottom: 20px;
}
.hero-title {
  margin: 0;
  max-width: 640px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ===== About ===== */
.about {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
  max-width: 1100px;
}
.about-text { flex: 1; }
.about-text .section-title { font-size: 40px; max-width: 460px; }
.about-text p {
  margin: 0 0 14px;
  font-size: 20px;
  color: #000;
  max-width: 470px;
}
.about-media { flex: 0 0 48%; }
.about-media img { width: 100%; border-radius: 25px; }

/* ===== Goals ===== */
.goals { padding-top: 40px; padding-bottom: 60px; }
.goals .section-title { font-size: 40px; margin-bottom: 30px; }
.goals-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 1009px;
  margin-inline: auto;
  padding: 40px 50px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
}
.goal-card {
  flex: 1;
  min-height: 363px;
  padding: 30px 20px;
  border: 1.6px solid var(--gold);
  border-radius: 25px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.goal-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(205, 164, 99, .2); }
.goal-card img { width: 58px; margin: 0 auto 30px; }
.goal-card h3 {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 700;
}
.goal-card p { margin: 0; font-size: 18px; color: #000; }

/* ===== Services ===== */
.services { padding-top: 40px; padding-bottom: 60px; }
.services .section-title { font-size: 40px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1009px;
  margin-inline: auto;
}
.service-card {
  font-family: inherit;
  cursor: pointer;
  min-height: 215px;
  padding: 40px 10px;
  background: #fff;
  border: 1.6px solid var(--gold);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(205, 164, 99, .25); }
.service-card img { width: 58px; margin-bottom: 25px; }
.service-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
}

/* ===== Order form ===== */
.order { padding-top: 40px; padding-bottom: 60px; }
.order .section-title { font-size: 40px; }
.order-form {
  max-width: 787px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  background: transparent;
  border: 1.6px solid #000;
  border-radius: var(--radius);
  padding: 12px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.order-form input { height: 48px; }
.order-form textarea { min-height: 150px; resize: vertical; padding: 15px; }
.order-form ::placeholder { color: #000; opacity: 1; font-weight: 600; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205, 164, 99, .2); }
.order-form .invalid { border-color: #d33 !important; }

.select-wrap { position: relative; }
.order-form select {
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-left: 40px;
}
.select-wrap::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-70%) rotate(-45deg);
  pointer-events: none;
}

.btn-submit {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #000;
  border: 1.6px solid #fff;
  border-radius: var(--radius);
  padding: 15px 20px;
  width: 100%;
  cursor: pointer;
  transition: background .3s;
}
.btn-submit:hover { background: var(--gold); }
.btn-submit:disabled { opacity: .7; cursor: wait; }

.form-msg { margin: 0; min-height: 0; text-align: center; font-weight: 600; font-size: 16px; }
.form-msg:empty { display: none; }
.form-msg.error { color: #d33; }
.form-msg.success {
  color: #1e7e34;
  background: #e9f7ec;
  border: 1px solid #b9e3c3;
  border-radius: 12px;
  padding: 12px;
}

/* ===== Contact ===== */
.contact { padding-top: 40px; padding-bottom: 60px; }
.contact .section-title { font-size: 40px; }
.contact .section-sub { max-width: 1000px; }
.contact-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity .3s, transform .3s;
}
.btn:hover { opacity: .9; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-wa { background: var(--green); }
.btn-call { background: var(--gold); }

/* ===== Map ===== */
.map iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 20px;
  text-align: center;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.socials a:hover { background: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer p { margin: 0; font-size: 18px; color: #000; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 510px;
  background: #3a3a3a;
  color: #fff;
  padding: 45px 30px 40px;
  transform: scale(.92);
  transition: transform .3s;
}
.modal.open .modal-box { transform: scale(1); }
.modal-box h3 { margin: 0 0 15px; font-size: 22px; font-weight: 700; }
.modal-box p { margin: 0; font-size: 17px; line-height: 1.7; }
.modal-close {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about { gap: 30px; }
  .about-text .section-title { font-size: 32px; }
  .goals-wrap { padding: 30px 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .desk-only { display: none; }
  .mob-only { display: block; }
  .mob-img { width: 100%; border-radius: 25px; margin-top: 30px; }

  .hero { height: 600px; }
  .hero-logo { width: 240px; }
  .hero-title { font-size: 28px; }

  .section-title,
  .about-text .section-title,
  .goals .section-title,
  .services .section-title,
  .order .section-title,
  .contact .section-title { font-size: 28px; }
  .section-sub, .about-text p { font-size: 17px; }

  .about { flex-direction: column; padding-top: 50px; padding-bottom: 30px; }
  .about-media { display: none; }
  .about-text { text-align: center; }
  .about-text .section-title, .about-text p { max-width: none; }

  .goals-wrap { flex-direction: column; padding: 20px; }
  .goal-card { min-height: 0; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { min-height: 180px; padding: 25px 8px; }
  .service-card h3 { font-size: 17px; }

  .contact-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .map iframe { height: 400px; }
  .footer p { font-size: 15px; }
}
