/* ARABIAN HEIGHTS · AGENT PACK · Sky & Sand brand system */
:root {
  --fade: #ebe1ce;
  --sand1: #eaddca;
  --sand2: #e1d2bc;
  --sand3: #d7c4ab;
  --band: #e0ceb2;
  --ink: #332519;
  --ink-deep: #2b1d14;
  --muted: #7a5a3c;
  --rule: #cbb89d;
  --light: #fff6e9;
  --serif: Optima, "Optima Nova", Marcellus, "Cormorant Garamond", serif;
  --sans:
    "SF Pro Text", "SF Pro Display", -apple-system, Inter, "Helvetica Neue",
    sans-serif;
  --display: "SF Pro Display", -apple-system, Inter, sans-serif;
  --bar-h: 56px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background: var(--sand2);
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(
    180deg,
    var(--fade),
    var(--sand1) 30%,
    var(--sand2) 70%,
    var(--sand3)
  );
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ---------- header ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink-deep);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 clamp(16px, 4vw, 48px);
}
.bar .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wm {
  display: block;
  background: var(--ink);
  -webkit-mask: url(../img/wordmark.png) center/100% 100% no-repeat;
  mask: url(../img/wordmark.png) center/100% 100% no-repeat;
  aspect-ratio: 907/77;
}
.wm.light {
  background: var(--light);
}
.bl {
  font-size: 10px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
}
.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}
.bar nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}
.bar nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.bar nav svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.back {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* ---------- type ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kicker:before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--muted);
}
.kicker.c {
  justify-content: center;
}
.kicker.c:after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--muted);
}
.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.04;
}
.h1 {
  font-size: clamp(40px, 5.4vw, 76px);
}
.h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}
.h3 {
  font-size: 22px;
}
.lbl {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.num {
  font-family: var(--display);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pkr {
  font-family: var(--sans);
  font-size: 0.32em;
  letter-spacing: 0.06em;
  margin-right: 0.4em;
  vertical-align: 0.3em;
}
.body {
  font-size: 17px;
  line-height: 1.65;
  max-width: 60ch;
}
.fine {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.6;
}
.rule {
  border-bottom: 1px solid var(--rule);
}

/* ---------- CTA pill (filled) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  color: var(--light);
  border-radius: 999px;
  padding: 10px 10px 10px 30px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.pill i {
  font-style: normal;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, #eaddca, #d7c4ab);
  color: var(--ink);
  font-size: 17px;
  transition: transform 0.2s ease;
}
.pill:hover {
  background: var(--ink-deep);
  transform: translateY(-2px);
}
.pill:hover i {
  transform: translateX(3px);
}
.pill.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* ---------- image placeholder (template slot) ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #ddcdb7 0 1px,
    var(--sand1) 1px 14px
  );
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ph span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--fade);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  max-width: 80%;
  line-height: 1.5;
}
.ph.dark {
  background: repeating-linear-gradient(
    135deg,
    #4e3e32 0 1px,
    #3a2a1e 1px 14px
  );
  border-color: #5a4635;
}
.ph.dark span {
  background: #2b1d14;
  color: var(--light);
  border-color: #5a4635;
}
.slot {
  outline: 1px dashed var(--muted);
  outline-offset: 3px;
}

/* ---------- page shell ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
}
.pagehead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.note {
  background: var(--band);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.55;
}
.foot {
  padding: 40px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
}

/* ---------- document pages (A4 portrait / brochure landscape) ---------- */
.docs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.a4 {
  width: 794px;
  height: 1123px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--fade),
    var(--sand1) 35%,
    var(--sand2) 75%,
    var(--sand3)
  );
  box-shadow: 0 24px 60px rgba(51, 37, 25, 0.18);
}
.spread {
  width: 1400px;
  height: 851px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--fade),
    var(--sand1) 40%,
    var(--sand2)
  );
  box-shadow: 0 24px 60px rgba(51, 37, 25, 0.18);
}
.spread.dark {
  background: var(--ink-deep);
  color: var(--light);
}
.scaler {
  transform-origin: top center;
}
.pno {
  position: absolute;
  bottom: 22px;
  right: 36px;
  font-size: 10px;
  letter-spacing: 0.2em;
}
.pfoot {
  position: absolute;
  bottom: 22px;
  left: 36px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tr {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.hl {
  background: var(--band);
}

@media (max-width: 860px) {
  .bar {
    flex-wrap: wrap;
    gap: 8px 14px;
    height: auto;
    min-height: var(--bar-h);
    padding: 10px clamp(16px, 4vw, 48px);
  }
  .bar .logo {
    align-items: flex-start;
    gap: 4px;
  }
  .bar .logo .wm {
    width: 150px !important;
  }
  .bar .lang {
    margin-inline-start: auto;
    height: 30px;
    min-width: 72px;
    padding: 0 14px;
  }
  .bar nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 16px;
  }
  .bar nav:empty {
    display: none;
  }
}
@media print {
  @page {
    margin: 0;
  }
  html,
  body {
    background: none !important;
  }
  .bar,
  .pagehead,
  .foot,
  .noprint {
    display: none !important;
  }
  .wrap {
    padding: 0;
    max-width: none;
  }
  .docs {
    gap: 0;
    display: block;
  }
  .a4,
  .spread {
    box-shadow: none;
    break-after: page;
    margin: 0;
    transform: none !important;
  }
  .scaler:last-child .a4,
  .scaler:last-child .spread {
    break-after: auto;
  }
  .scaler {
    transform: none !important;
    height: auto !important;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* filled image slot */
.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--sand2);
}
.photo.contain {
  background-size: contain;
  background-color: transparent;
}

/* ---------- brand signature: fins pattern · corner lines · leaf ---------- */
/* fins: thin vertical lines taken from the central bay of the facade (vector SVG, prints cleanly) */
.fins {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Cpath d='M.5 0v10' stroke='%23CBB89D' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.fins.dark,
.dark .fins {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Cpath d='M.5 0v10' stroke='%23FFF6E9' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E");
}
.bar {
  box-shadow: none;
}
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14'%3E%3Cpath d='M.5 0v14' stroke='%232B1D14' stroke-width='1.4'/%3E%3C/svg%3E")
    repeat-x;
  pointer-events: none;
}
/* corner lines on every page */
.a4::before,
.spread::before,
.a4::after,
.spread::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  z-index: 5;
  pointer-events: none;
  border: 0 solid var(--muted);
}
.a4::before,
.spread::before {
  left: 24px;
  top: 24px;
  border-left-width: 1px;
  border-top-width: 1px;
}
.a4::after,
.spread::after {
  right: 24px;
  bottom: 24px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.spread.dark::before,
.spread.dark::after {
  border-color: #8a7560;
}
/* fins mark beside the page number */
.pno {
  padding-right: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='12'%3E%3Cg stroke='%237A5A3C' stroke-width='1'%3E%3Cpath d='M.5 0v12M6.5 0v12M12.5 0v12M18.5 0v12M24.5 0v12M30.5 0v12M36.5 0v12M42.5 0v12'/%3E%3C/g%3E%3C/svg%3E")
    right center/46px 12px no-repeat;
  bottom: 40px !important;
  right: 80px !important;
}
.dark .pno {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='12'%3E%3Cg stroke='%23FFF6E9' stroke-opacity='.6' stroke-width='1'%3E%3Cpath d='M.5 0v12M6.5 0v12M12.5 0v12M18.5 0v12M24.5 0v12M30.5 0v12M36.5 0v12M42.5 0v12'/%3E%3C/g%3E%3C/svg%3E");
}
/* the leaf: one per page, enters from an edge, pre-blurred so it prints sharp-edged-free */
.leaf {
  position: absolute;
  background: url(../img/leaf-soft.png) center/contain no-repeat;
  aspect-ratio: 563/425;
  z-index: 4;
  pointer-events: none;
}

/* ---------- language switch ---------- */
.lang {
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 84px;
  padding: 0 18px;
  border: 1px solid rgba(255, 246, 233, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.lang:hover {
  background: var(--light);
  border-color: var(--light);
  color: var(--ink-deep);
}
.lang .ur {
  font-family: "Noto Nastaliq Urdu", serif;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1;
  display: block;
  transform: translateY(-3px);
}

/* ---------- Urdu: Nastaliq, right-to-left, larger and airier for legibility ---------- */
html[lang="ur"] body,
html[lang="ur"] .h1,
html[lang="ur"] .h2,
html[lang="ur"] .h3,
html[lang="ur"] .ttl,
html[lang="ur"] .sec,
html[lang="ur"] .kicker,
html[lang="ur"] .lbl,
html[lang="ur"] .fine,
html[lang="ur"] .cap,
html[lang="ur"] .pill,
html[lang="ur"] .back,
html[lang="ur"] .toc li,
html[lang="ur"] .sz,
html[lang="ur"] .row,
html[lang="ur"] .tr,
html[lang="ur"] .foot,
html[lang="ur"] .note,
html[lang="ur"] .meta {
  font-family: "Noto Nastaliq Urdu", "DecoType Nastaleeq Urdu", serif;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[lang="ur"] .num,
html[lang="ur"] .pkr,
html[lang="ur"] .sz b,
html[lang="ur"] .pno,
html[lang="ur"] .tr .a {
  font-family: var(--display) !important;
}
html[lang="ur"] .h1 {
  line-height: 1.55;
  font-size: clamp(38px, 4.6vw, 64px);
}
html[lang="ur"] .h2 {
  line-height: 1.6;
}
html[lang="ur"] .ttl {
  line-height: 1.5;
}
html[lang="ur"] .kicker {
  font-size: 15px;
  line-height: 1.9;
}
html[lang="ur"] .lbl {
  font-size: 14px;
  line-height: 1.9;
}
html[lang="ur"] .body {
  font-size: 19px;
  line-height: 2.05;
}
html[lang="ur"] .fine {
  font-size: 12.5px;
  line-height: 2;
}
html[lang="ur"] .pill {
  font-size: 15px;
}
html[lang="ur"] .bl {
  font-family: var(--sans);
}
html[lang="ur"] .pill i,
html[lang="ur"] .back {
  direction: rtl;
}
body {
  overflow-x: clip;
}
/* Urdu: mirror hub image fade + leaf toward the text, and enlarge small text */
html[lang="ur"] .hero .pic {
  margin-left: clamp(20px, 3vw, 40px);
  margin-right: 0;
}
html[lang="ur"] .hero .pic .leaf {
  left: auto !important;
  right: -90px;
  transform: rotate(-30deg) !important;
}
@media (max-width: 980px) {
  html[lang="ur"] .hero .pic {
    margin: 20px;
  }
}
html[lang="ur"] .ttl {
  line-height: 1.3;
}
html[lang="ur"] .row {
  font-size: 15px !important;
  padding: 6px 0;
}
html[lang="ur"] .tr {
  font-size: 17px !important;
}
html[lang="ur"] .tr.lbl {
  font-size: 14px !important;
}
html[lang="ur"] .sz {
  font-size: 18px;
}
html[lang="ur"] .cap {
  font-size: 14px !important;
  line-height: 1.9;
}
html[lang="ur"] .sec {
  font-size: 21px;
}
html[lang="ur"] .a4 p {
  font-size: 14.5px !important;
  line-height: 1.95 !important;
}
html[lang="ur"] .a4 .fine,
html[lang="ur"] .spread .fine {
  font-size: 12px !important;
  line-height: 1.9;
}
html[lang="ur"] .toc li {
  font-size: 18px;
}
html[lang="ur"] .stat .lbl {
  font-size: 14px !important;
}
/* descriptive paragraphs: +2px and bold (client request) */
.body {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}
.a4 p:not(.fine) {
  font-size: 15px !important;
  font-weight: 600;
}
html[lang="ur"] .body {
  font-size: 21px;
  font-weight: 600;
  line-height: 2;
}
html[lang="ur"] .a4 p:not(.fine) {
  font-size: 16.5px !important;
  font-weight: 600;
  line-height: 1.9 !important;
}

html[lang="ur"] .a4 > p:not(.fine) {
  left: 44px !important;
  right: 44px !important;
}
html[lang="ur"] .pno {
  right: auto !important;
  left: 80px !important;
  padding-right: 0;
  padding-left: 58px;
  background-position: left center;
}
html[lang="ur"] .a4 > p:not(.fine) {
  line-height: 1.72 !important;
}
/* labels ("Total price", "Book with", "Net area"…): larger and bold (client request) */
.lbl {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
}
.spread .lbl {
  font-size: 16px !important;
}
.a4 .lbl {
  font-size: 12.5px !important;
}
.tr.lbl {
  font-size: 13px !important;
}
.spread .tr.lbl {
  font-size: 15px !important;
}
html[lang="ur"] .lbl {
  font-size: 16px !important;
  font-weight: 700 !important;
}
html[lang="ur"] .spread .lbl {
  font-size: 18px !important;
}
html[lang="ur"] .a4 .lbl {
  font-size: 14.5px !important;
}
html[lang="ur"] .tr.lbl {
  font-size: 15px !important;
}

/* page-level legal lines read in sentence case */
main.wrap > p.fine {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12.5px;
}

html[lang="ur"] .a4 .row {
  padding: 3px 0 4px !important;
  line-height: 1.42;
}
html[lang="ur"] .a4 div > p:not(.fine) {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* ---------- icons (replace text arrows) ---------- */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back .ic {
  width: 16px;
  height: 16px;
}
.pill:hover i.dl {
  transform: translateY(2px);
}
.pill:hover i.pr {
  transform: none;
}
html[lang="ur"] .pill:hover i:not(.dl):not(.pr) {
  transform: translateX(-3px);
}
.back:hover .ic {
  transform: translateX(-3px);
}
html[lang="ur"] .back:hover .ic {
  transform: translateX(3px);
}
.back .ic {
  transition: transform 0.2s ease;
}
@media (max-width: 560px) {
  .bar .back {
    font-size: 0;
    gap: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 246, 233, 0.3);
  }
  .bar .logo .wm {
    width: 130px !important;
  }
}

/* ---------- scrollbar: ink thumb on sand track ---------- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--sand2);
}
::-webkit-scrollbar-thumb {
  background: #2b1d14;
  border-radius: 999px;
  border: 3px solid var(--sand2);
}
::-webkit-scrollbar-thumb:hover {
  background: #4a3424;
}
::-webkit-scrollbar-corner {
  background: var(--sand2);
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: #2b1d14 var(--sand2);
    scrollbar-width: thin;
  }
}

/* ---------- inner pages: logo centred in the header (desktop) ---------- */
.bar nav:empty {
  display: none;
}
@media (min-width: 861px) {
  .bar:has(.back) .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ---------- page action buttons: same size as the home page buttons ---------- */
.tools .pill {
  padding: 6px 8px 6px 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  min-height: clamp(46px, 6vh, 58px);
  white-space: nowrap;
}
.tools .pill i {
  width: clamp(34px, 4.4vh, 40px);
  height: clamp(34px, 4.4vh, 40px);
}
html[lang="ur"] .tools .pill {
  padding: 6px 22px 6px 8px;
  font-size: 15px;
}

/* document pages: wrapper fills the content column so pack.js can fit + centre the page in it */
.docs > .scaler {
  align-self: stretch;
}
