/* Nebras Al-Riyada — public site styles */
:root {
  --navy: #0e1b2e;
  --navy-2: #15263f;
  --navy-line: rgba(233, 201, 122, .22);
  --gold: #d9b56a;
  --gold-deep: #9a742c;
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --ink: #1b2536;
  --ink-soft: #55607a;
  --mist: #c5cddb;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Jost", "Segoe UI", system-ui, sans-serif;
}
[dir="rtl"] {
  --display: "Noto Kufi Arabic", "Vazirmatn", Tahoma, sans-serif;
  --body: "Vazirmatn", "Noto Kufi Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.95; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 27, 46, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand-tag { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .brand-name { letter-spacing: 0; font-size: 19px; }
[dir="rtl"] .brand-tag { letter-spacing: 0; font-size: 12.5px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--mist); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav > a:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.langs { display: flex; border: 1px solid var(--navy-line); border-radius: 999px; padding: 3px; }
.langs a { text-decoration: none; color: var(--mist); font-size: 13px; padding: 3px 12px; border-radius: 999px; line-height: 1.7; font-family: "Jost", "Vazirmatn", sans-serif; }
.langs a:hover { color: var(--ivory); }
.langs a.on { background: var(--gold); color: var(--navy); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--navy-line); color: var(--ivory); font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 999px; cursor: pointer; }

/* ---------- shared pieces ---------- */
.label { color: var(--gold-deep); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
[dir="rtl"] .label { letter-spacing: 0; font-size: 15px; }
.dark .label, .hero .label { color: var(--gold); }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--ivory); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.25; }
[dir="rtl"] h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.5; }
[dir="rtl"] h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.55; }
[dir="rtl"] h3 { font-size: 19px; line-height: 1.6; }

.btn {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 13px 30px; border-radius: 2px; border: 1px solid var(--gold); transition: background .2s, color .2s;
}
.btn-gold { background: linear-gradient(135deg, #ecd28f, #c79a47); color: var(--navy); border-color: transparent; }
.btn-gold:hover { background: linear-gradient(135deg, #f4dfa6, #d3a856); }
.btn-line { color: var(--ivory); background: transparent; }
.btn-line:hover { background: rgba(217, 181, 106, .14); }

.band { padding: clamp(64px, 9vw, 112px) 0; }
.light { background: var(--ivory); color: var(--ink); }
.dark { background: var(--navy); color: var(--ivory); }
.head { max-width: 640px; margin-bottom: 48px; }
.intro { margin-top: 14px; color: var(--ink-soft); }
.dark .intro { color: var(--mist); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(ellipse 60% 70% at 72% 45%, #24385a 0%, var(--navy) 70%); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
[dir="rtl"] .hero { background: radial-gradient(ellipse 60% 70% at 28% 45%, #24385a 0%, var(--navy) 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 32px; }
.lead { color: var(--mist); font-size: 19px; margin-top: 22px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-logo img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.prose p { color: var(--ink-soft); font-size: 18px; }
.prose p + p { margin-top: 18px; }
.prose p:first-child { color: var(--ink); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.services li { padding: 30px 0 34px; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: 62px 1fr; column-gap: 8px; }
.services .num { grid-row: span 2; font-family: "Cormorant Garamond", serif; font-size: 30px; line-height: 1.1; color: var(--gold); }
.services p { color: var(--mist); margin-top: 8px; font-size: 16px; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 28px; }
.products .pic { aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; margin-bottom: 18px; border-bottom: 3px solid var(--gold); }
.products .pic img { width: 100%; height: 100%; object-fit: cover; }
.products .pic.empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #24385a, var(--navy) 75%); }
.products .pic.empty img { width: 34%; height: auto; opacity: .9; }
.products p { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.details { border-top: 1px solid var(--navy-line); }
.details dt { color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding-top: 22px; }
[dir="rtl"] .details dt { letter-spacing: 0; font-size: 15px; }
.details dd { color: var(--ivory); font-size: 21px; padding: 4px 0 22px; border-bottom: 1px solid var(--navy-line); overflow-wrap: anywhere; }
.details a { text-decoration: none; display: inline-block; }
.details a:hover { color: var(--gold); }

/* ---------- footer ---------- */
.foot { background: #0a1525; color: #8f9bb0; font-size: 14px; border-top: 1px solid var(--navy-line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 0; }
.social { display: flex; gap: 20px; }
.social a { color: var(--gold); text-decoration: none; }
.social a:hover { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; }
  .langs { align-self: flex-start; margin-top: 16px; }
  .langs a { padding: 6px 16px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 460px; margin-inline: auto; }
  .services { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand-tag { display: none; }
  .services li { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
