
:root {
  --bg: #090c10;
  --panel: #10141b;
  --panel-hover: #171d26;
  --gold: #d9ad43;
  --gold-light: #f2d27b;
  --text: #f4f3f0;
  --muted: #9ba9bb;
  --border: rgba(160,177,197,.15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

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

.gold { color: var(--gold); }

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.serif { font-family: var(--serif); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.7px;
}

.gold-rule {
  width: 39px;
  height: 2px;
  background: var(--gold);
  margin-top: 15px;
}

.muted { color: var(--muted); }

/* HEADER */

.header {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 23px;
  border: 1px solid rgba(177,191,211,.13);
  background: rgba(10,13,18,.77);
  backdrop-filter: blur(18px);
  border-radius: 9px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  line-height: 1;
}

.logo-name {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.9px;
}

.logo-name i {
  color: var(--gold);
  font-size: 16px;
  vertical-align: top;
  margin-left: 2px;
}

.logo-sub {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 43px);
}

.nav-links a {
  color: #c6cfdb;
  font-size: 12px;
  transition: color .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(217,173,67,.65);
  background: rgba(217,173,67,.04);
  color: var(--gold-light);
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  transition: .25s;
}

.outline-btn:hover {
  background: var(--gold);
  color: #111;
}

.menu-toggle {
  display: none;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 21px;
}

/* HERO */

.hero {
  min-height: 450px;
  height: clamp(430px, 42vw, 590px);
  position: relative;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=2200&q=90");
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,10,14,.94) 0%, rgba(7,10,14,.74) 36%, rgba(7,10,14,.13) 75%),
    linear-gradient(0deg, #090c10 0%, transparent 23%, rgba(6,9,13,.15) 70%, #090c10 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d9ad43, transparent);
  opacity: .45;
}

.hero-content {
  padding-top: 150px;
  padding-bottom: 70px;
  max-width: 680px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(39px, 5.2vw, 66px);
  letter-spacing: -2px;
  line-height: 1.01;
  margin-bottom: 17px;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-description {
  max-width: 360px;
  color: #b5c3d4;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 15px;
}

.hero-decoration {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(217,173,67,.58);
  border-radius: 50%;
  right: -195px;
  top: 75px;
  pointer-events: none;
}

.hero-decoration::before,
.hero-decoration::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-decoration::before { left: 10px; top: 76px; }
.hero-decoration::after { left: 83px; bottom: 8px; }

/* SERVICES */

.services {
  padding: 26px 0 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 20px;
}

.section-heading .intro {
  max-width: 310px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  padding-bottom: 4px;
}

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

.service-card {
  background: linear-gradient(145deg, #11151c, #0d1117);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px;
  min-width: 0;
  cursor: pointer;
  transition: transform .25s, border-color .25s, background .25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217,173,67,.5);
  background: var(--panel-hover);
}

.service-image {
  height: 128px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 11px;
  background: #171d26;
}

.service-info {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.service-icon {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217,173,67,.55);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(217,173,67,.055);
  font-size: 15px;
}

.service-card h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-card p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.benefits-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
  padding: 16px 19px;
}

.benefits-card:hover { transform: none; }

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefit .service-icon {
  flex-basis: 36px;
  height: 36px;
  border-radius: 50%;
}

.benefit h3 {
  font-size: 13px;
  margin-bottom: 1px;
}

.benefit p { font-size: 10px; }

/* PROJECTS */

.projects { padding: 0 0 26px; }

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.projects-heading .section-title { font-size: 30px; }

.text-link {
  color: var(--gold);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  transition: gap .2s;
}

.text-link:hover { gap: 15px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.project-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
}

.project-card:hover {
  border-color: rgba(217,173,67,.55);
  transform: translateY(-3px);
}

.project-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #171d26;
  transition: transform .4s;
}

.project-card:hover .project-image { transform: scale(1.035); }

.project-copy { padding: 9px 12px 12px; }

.project-copy h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.project-copy p {
  font-size: 11px;
  color: var(--muted);
}

/* CONTACT */

.footer {
  border-top: 1px solid var(--border);
  background: #080b0f;
  padding: 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.footer-brand .logo { margin-bottom: 15px; }

.footer-brand .logo-name { font-size: 27px; }

.footer-arabic {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}

.footer p {
  color: var(--muted);
  font-size: 11px;
}

.footer h3 {
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-contact {
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.footer-contact a i {
  color: var(--gold);
  width: 13px;
}

.footer-contact a:hover { color: var(--gold-light); }

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

.social-links a {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--gold);
  border: 1px solid rgba(217,173,67,.6);
  border-radius: 50%;
  transition: .2s;
}

.social-links a:hover {
  background: var(--gold);
  color: #111;
}

.qr-wrap {
  text-align: center;
  width: 78px;
}

.qr-wrap img {
  width: 72px;
  height: 72px;
  padding: 4px;
  background: white;
  border-radius: 6px;
}

.qr-wrap p {
  font-size: 8px;
  margin-top: 5px;
  letter-spacing: .6px;
}

.copyright {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #657181;
  font-size: 10px;
}

/* MODALS */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.modal.open { display: flex; }

.modal-panel {
  position: relative;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #10151d;
  border: 1px solid rgba(217,173,67,.35);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 25px 100px #0009;
  animation: modalIn .22s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 35px;
  height: 35px;
  color: var(--muted);
  background: #1b222d;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.modal-close:hover { color: var(--gold); }

.modal-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 22px;
}

.modal-panel h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.2;
  margin: 8px 38px 12px 0;
}

.modal-panel .modal-description {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.modal-panel h3 {
  font-size: 13px;
  margin: 20px 0 9px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.feature-list li {
  color: #c7d0dc;
  font-size: 12px;
}

.feature-list i {
  color: var(--gold);
  margin-right: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  color: #cbd3df;
  font-size: 11px;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field select option { background: #10151d; }

.submit-btn {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 13px;
  color: #101010;
  font-weight: 700;
  background: var(--gold);
  transition: background .2s;
}

.submit-btn:hover { background: var(--gold-light); }

.form-message {
  display: none;
  color: var(--gold-light);
  margin-top: 12px;
  font-size: 12px;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (min-width: 1500px) {
  .container { width: min(1240px, calc(100% - 100px)); }
  .service-image { height: 155px; }
  .project-image { height: 135px; }
}

@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }

  .navbar { padding: 10px 15px; }

  .nav-links { gap: 18px; }

  .nav-links a { font-size: 11px; }

  .hero-content { padding-top: 145px; }

  .service-image { height: 105px; }

  .service-card { padding: 9px; }

  .service-info { gap: 9px; }

  .service-icon { flex-basis: 32px; height: 32px; }

  .service-card h3 { font-size: 13px; }

  .service-card p { font-size: 10px; }

  .benefits-card { padding: 12px; gap: 9px; }

  .benefit { gap: 9px; }

  .benefit h3 { font-size: 11px; }

  .project-image { height: 90px; }

  .footer-grid { gap: 18px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }

  .header { top: 10px; }

  .navbar { min-height: 61px; }

  .logo-name { font-size: 25px; }

  .nav-actions { gap: 12px; }

  .nav-actions .outline-btn {
    padding: 9px 11px;
    font-size: 10px;
  }

  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(10,13,18,.98);
    box-shadow: 0 15px 40px #0008;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 13px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child { border-bottom: 0; }

  .nav-links a.active::after { display: none; }

  .hero {
    min-height: 480px;
    height: auto;
  }

  .hero-image { background-position: 61% center; }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(7,10,14,.88), rgba(7,10,14,.35)),
      linear-gradient(0deg, #090c10 0%, transparent 50%, #090c10 100%);
  }

  .hero-content {
    padding-top: 155px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 53px);
    letter-spacing: -1.4px;
  }

  .hero-description { font-size: 13px; max-width: 290px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-heading .intro {
    max-width: 440px;
    padding: 0;
  }

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

  .service-image { height: 105px; }

  .service-card h3 { font-size: 12px; }

  .service-card p { font-size: 10px; }

  .benefits-card { grid-column: 1 / -1; }

  .benefit { gap: 12px; }

  .benefit h3 { font-size: 12px; }

  .benefit p { font-size: 10px; }

  .projects-heading { align-items: flex-end; }

  .projects-heading .section-title { font-size: 26px; }

  .projects-heading .text-link { font-size: 10px; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .project-image { height: 105px; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .footer-brand, .footer-contact {
    padding-right: 0;
    border-right: 0;
  }

  .footer-contact { overflow-wrap: anywhere; }

  .qr-wrap { justify-self: start; }

  .copyright {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .nav-actions .outline-btn { display: none; }
  .service-image { height: 85px; }
  .service-info { flex-direction: column; }
  .service-icon { flex-basis: 32px; }
  .project-image { height: 85px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
