:root {
  --ink: #071b33;
  --muted: #667184;
  --paper: #f6f1e7;
  --surface: #fffaf0;
  --line: #d7c7a6;
  --gold: #c99a2e;
  --gold-deep: #8d6414;
  --blue: #08294f;
  --blue-soft: #eaf1f6;
  --sky: #b9d7e8;
  --shadow: 0 20px 46px rgba(8, 41, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(201, 154, 46, 0.18), rgba(246, 241, 231, 0.92) 38%, rgba(234, 241, 246, 0.96)),
    var(--paper);
  color: var(--ink);
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3,
.brand strong,
.button,
button {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 199, 166, 0.8);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 49, 88, 0.12);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(12px, 2vw, 26px);
  color: #4f5f72;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav a:hover,
.nav-dropdown-toggle:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(201, 154, 46, 0.44);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 18px 38px rgba(8, 41, 79, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--blue-soft);
  color: var(--blue);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--blue), #0d3f73);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.main-nav .nav-dropdown-toggle {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(26px, 5vw, 70px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 41, 79, 0.48), rgba(8, 41, 79, 0.22), rgba(255, 250, 240, 0.34)),
    linear-gradient(0deg, rgba(255, 250, 240, 0.14), rgba(255, 250, 240, 0.2)),
    url("https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: #fff;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 41, 79, 0.5), rgba(8, 41, 79, 0.24));
  box-shadow: 0 24px 60px rgba(8, 41, 79, 0.18);
  backdrop-filter: blur(3px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.intro-video {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 8px;
  background: rgba(7, 27, 51, 0.34);
}

.intro-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #06182f;
  object-fit: cover;
}

.intro-video strong,
.intro-video span {
  display: block;
}

.intro-video strong {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.05rem;
}

.intro-video span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.button.primary {
  background: linear-gradient(135deg, #d7aa3c, var(--gold-deep));
  color: #071b33;
}

.button.secondary {
  border: 1px solid rgba(255, 250, 240, 0.54);
  background: rgba(255, 250, 240, 0.08);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 46px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.34);
}

.trust-strip div {
  padding: 18px;
  background: rgba(8, 41, 79, 0.24);
}

.trust-strip dt {
  font-size: 1.35rem;
  font-weight: 800;
}

.trust-strip dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.quick-request,
.section,
.real-estate,
.workflow,
.contact,
.bottom-consultation {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-request {
  display: grid;
  grid-template-columns: 0.8fr 1.8fr;
  gap: 24px;
  align-items: end;
  margin-top: -44px;
  padding: 24px;
  border: 1px solid rgba(201, 154, 46, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(234, 241, 246, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.quick-request h2,
.section-heading h2,
.real-estate h2,
.workflow h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.request-form,
.contact-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(8, 41, 79, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 250, 240, 0.84);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.section {
  padding: 86px 0;
}

.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(234, 241, 246, 0.92), rgba(201, 154, 46, 0.13));
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker),
.real-estate-content p,
.contact p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(8, 41, 79, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(234, 241, 246, 0.86));
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(234, 241, 246, 0.9)),
    linear-gradient(0deg, rgba(201, 154, 46, 0.13), rgba(201, 154, 46, 0));
  box-shadow: 0 18px 36px rgba(10, 49, 88, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--blue));
}

.service-card::after {
  content: "";
  position: absolute;
  left: -44px;
  bottom: -44px;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(207, 163, 58, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 163, 58, 0.78);
  box-shadow: 0 24px 46px rgba(10, 49, 88, 0.18);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ae3e, #f1d57c);
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(207, 163, 58, 0.26);
  font-weight: 800;
}

.service-card h3,
.program-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.service-card p,
.program-card p {
  margin: 0;
  color: var(--muted);
}

.service-card h3,
.service-card p,
.service-icon {
  position: relative;
  z-index: 1;
}

.real-estate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 70px 0;
}

.real-estate-image {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 33, 31, 0.08), rgba(23, 33, 31, 0.32)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border: 1px solid rgba(201, 154, 46, 0.4);
  border-right: 4px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(234, 241, 246, 0.78));
  box-shadow: 0 12px 24px rgba(10, 49, 88, 0.08);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  overflow: hidden;
  border: 1px solid rgba(8, 41, 79, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(234, 241, 246, 0.9));
  box-shadow: 0 18px 34px rgba(10, 49, 88, 0.12);
}

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-card div {
  padding: 20px;
  border-top: 4px solid var(--gold);
}

.program-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.workflow {
  padding: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #06182f, var(--blue));
  color: #fff;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
  counter-reset: steps;
}

.workflow li {
  counter-increment: steps;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.workflow li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.workflow span {
  color: rgba(255, 255, 255, 0.76);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: 86px 0;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(201, 154, 46, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(234, 241, 246, 0.9)),
    var(--surface);
  box-shadow: 0 16px 34px rgba(10, 49, 88, 0.12);
  color: var(--ink);
  font-style: normal;
}

.contact-card strong {
  color: var(--blue);
  font-size: 1.1rem;
}

.contact-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-bottom: 2px solid rgba(207, 163, 58, 0.7);
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  border: 1px solid rgba(201, 154, 46, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(234, 241, 246, 0.94), rgba(255, 250, 240, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label:has(textarea),
.contact-form button {
  grid-column: 1 / -1;
}

.bottom-consultation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  padding: 26px;
  border: 1px solid rgba(201, 154, 46, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, #06182f, var(--blue));
  color: #fff;
  box-shadow: var(--shadow);
}

.bottom-consultation h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.3;
}

.bottom-consultation .button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-request,
  .real-estate,
  .contact {
    grid-template-columns: 1fr;
  }

  .request-form,
  .service-grid,
  .program-grid,
  .workflow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-estate-image {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    align-items: stretch;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-menu {
    right: 18px;
    left: 18px;
    min-width: 0;
  }

  .hero {
    min-height: 760px;
    padding: 26px 18px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(8, 41, 79, 0.58), rgba(8, 41, 79, 0.32), rgba(255, 250, 240, 0.18)),
      url("https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?auto=format&fit=crop&w=1000&q=80") center/cover;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .intro-video {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .request-form,
  .service-grid,
  .program-grid,
  .workflow ol,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .quick-request {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .section,
  .contact {
    padding: 56px 0;
  }

  .workflow {
    width: 100%;
    border-radius: 0;
    padding: 40px 18px;
  }

  .bottom-consultation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    border-radius: 0;
  }

  .site-footer {
    display: grid;
  }
}
