/* ==========================================================================
   THE DESIGNERS HUB — Contact
   Source of truth: Figma frame "contacts pc" #2129:2639 (1440 x 2439).
   Section tops (frame y): hero 96 | info cards 408 | showroom 800 |
   form 1168 | cta 1827.
   ========================================================================== */

.ct-hero { position: relative; overflow: hidden; }
.ct-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-hero__card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 7px solid var(--color-surface-dark);
  text-align: center;
  padding: var(--space-32) var(--space-24);
}
.ct-hero__title { color: var(--ink); }
.ct-hero__sub   { margin-top: var(--space-16); color: var(--ink); }

.ct-info { position: relative; padding-block: var(--space-48); }
.ct-info__outline { display: none; }
.ct-info__grid { display: grid; gap: var(--space-24); }

.ct-box {
  position: relative;
  background: var(--color-surface-dark);
  border: var(--stroke-1) solid var(--color-surface-dark);
  border-radius: var(--radius-2);
  padding: 29px 18px;
  min-height: 154px;
}
.ct-box__label {
  color: var(--gold);
  font-weight: var(--fw-bold);
  font-size: var(--fs-label);
  line-height: var(--lh-body);
  text-transform: uppercase;
}
.ct-box__rule { height: 1px; background: var(--gold); margin-top: 8px; }
.ct-box__value { margin-top: var(--space-8); color: var(--white); font-weight: var(--fw-light); font-size: var(--fs-body); line-height: 1.21; }
.ct-box__wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--white); font-weight: var(--fw-light); font-size: var(--fs-body); }
/* The WhatsApp glyph is #249A00 in the file, NOT the row's white. It had been
   shipping as `currentColor` at all three breakpoints; caught while diffing the
   768 frame and then confirmed on the other two by sampling their own frame
   renders (the pure fill reads rgb(36,154,0) on each). The API returns an empty
   fill for this node, so the value is read from the icon's own SVG export
   (#2245:861 tablet, #2245:866 mobile). A 13-17px icon moves a band average far
   too little for either earlier pass to have flagged it. */
.ct-box__wa svg { width: 17px; height: 17px; fill: #249A00; }

.ct-show { position: relative; background: var(--color-surface-dark); color: var(--bg); padding-block: var(--space-48); }
.ct-show__frame { border: var(--stroke-1) solid var(--white); padding: var(--space-32); text-align: center; }
.ct-show__text { font-weight: var(--fw-light); font-size: var(--fs-lead); color: var(--white); }
.ct-show__text + .ct-show__text { margin-top: var(--space-16); }

.ct-form { padding-block: var(--space-48); }
.ct-form__title {}
.ct-form__lead { margin-top: var(--space-16); }
.ct-form__grid { display: grid; gap: var(--space-24); margin-top: var(--space-32); }
.ct-field__label { display: block; color: var(--grey-700); font-size: var(--fs-eyebrow); font-weight: var(--fw-reg); }
.ct-field__input,
.ct-field__area {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--white);
  border: var(--stroke-1) solid var(--line);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  padding: 0 14px;
  height: 48px;
}
.ct-field__area { height: 150px; padding: 12px 14px; resize: vertical; }
.ct-field__input:focus,
.ct-field__area:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.ct-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 227px;
  height: 56px;
  margin-top: var(--space-32);
  background: var(--gold);
  border: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-eyebrow);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.ct-form__submit:hover { background: var(--gold-deep); }

.ct-cta { position: relative; padding-block: var(--space-48); }
.ct-cta__outline { display: none; }
.ct-cta__panel { position: relative; z-index: 2; background: var(--color-surface-dark); color: var(--bg); text-align: center; padding: var(--space-48) var(--space-24); }
.ct-cta__title { color: var(--bg); }
.ct-cta__text  { margin-top: var(--space-16); font-weight: var(--fw-light); font-size: var(--fs-lead); color: var(--white); }
.ct-cta__btn   { margin-top: var(--space-24); }

@media (min-width: 768px) {
  .ct-info__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   DESKTOP — literal Figma geometry
   ========================================================================== */
@media (min-width: 1200px) {

  .ct-hero__title,
  .ct-show__text,
  .ct-cta__title,
  .ct-cta__text,
  .ct-box__value { white-space: nowrap; }

  /* ---- 1. HERO : bg 2,96 1449x272 | card 392,128 656x208 (7px border) ---- */
  .ct-hero { height: 368px; }
  /* `inset: auto` MUST come first. It is the shorthand for top/right/bottom/
     left, so declared after them it silently reset both — the photo had been
     rendering at its static 0,0 instead of 2,96 ever since, 96px high.
     max-width: none is required too: base.css clamps every image to 100% of
     its containing block, which is the 1440 section, so the declared 1449
     rendered at 1440 and the photo was squeezed rather than bleeding the 9px
     the file draws. */
  .ct-hero__bg {
    inset: auto;
    left: 2px; top: 96px;
    width: 1449px; height: 272px;
    max-width: none;
  }
  .ct-hero__card {
    position: absolute;
    left: 392px; top: 128px;
    width: 656px; height: 208px;
    padding: 49px 20px 0;
  }
  .ct-hero__title { width: 100%; }
  .ct-hero__sub   { width: 540px; margin: 16px auto 0; white-space: normal; line-height: 22px; }

  /* ---- 2. INFO CARDS : outline 2,408 1437x328 | boxes y:472 259x154 ---- */
  .ct-info { height: 328px; margin-top: 40px; padding-block: 0; }
  .ct-info__outline {
    display: block;
    position: absolute;
    left: 2px; top: 0;
    width: 1437px; height: 328px;
    border: 5px solid var(--color-surface-dark);
  }
  .ct-info__grid { display: block; }
  .ct-box { position: absolute; top: 64px; width: 259px; height: 154px; padding: 0; }
  .ct-box--1 { left: 165px; }
  .ct-box--2 { left: 591px; }
  .ct-box--3 { left: 1017px; }
  .ct-box--1 .ct-box__label { left: 18px; }
  .ct-box__label { position: absolute; left: 21px; top: 29px; }
  .ct-box__rule  { position: absolute; left: 1px; top: 54px; width: 257px; margin: 0; }
  .ct-box__value { position: absolute; left: 21px; top: 62px; margin: 0; }
  .ct-box--1 .ct-box__value { left: 18px; }
  .ct-box__wa    { position: absolute; left: 21px; top: 84px; margin: 0; }

  /* ---- 3. SHOWROOM : dark -30,800 1518x304 | frame 348,840 744x224 ---- */
  .ct-show { height: 304px; margin: 64px 0 0 -30px; width: 1518px; padding: 0; }
  .ct-show__frame { position: absolute; left: 378px; top: 40px; width: 744px; height: 224px; padding: 0; }
  .ct-show__text--1 { position: absolute; left: 84px; top: 60px; width: 576px; margin: 0; line-height: 22px; white-space: normal; }
  .ct-show__text--2 { position: absolute; left: 88px; top: 120px; width: 568px; margin: 0; line-height: 22px; white-space: normal; }

  /* ---- 4. FORM : H2 80,1168 | fields from y:1315 ---- */
  .ct-form { height: 587px; margin-top: 64px; padding-block: 0; position: relative; }
  .ct-form__title { position: absolute; left: 80px; top: 0;    width: 230px; margin: 0; }
  .ct-form__lead  { position: absolute; left: 80px; top: 55px; width: 600px; margin: 0; line-height: 22px; }
  .ct-form__grid  { display: block; margin: 0; }
  .ct-field { position: absolute; }
  .ct-field--name    { left: 80px;  top: 147px; width: 570px; }
  .ct-field--email   { left: 670px; top: 147px; width: 570px; }
  .ct-field--phone   { left: 80px;  top: 237px; width: 1160px; }
  .ct-field--message { left: 80px;  top: 327px; width: 1160px; }
  .ct-field__input, .ct-field__area { margin-top: 7px; }
  .ct-form__submit { position: absolute; left: 80px; top: 531px; margin: 0; }

  /* ---- 5. CTA : outline 20,1827 1400x264 | panel 80,1867 1280x304 ---- */
  .ct-cta { height: 344px; margin-top: 72px; margin-bottom: 268px; padding-block: 0; }
  .ct-cta__outline {
    display: block;
    position: absolute;
    left: 20px; top: 0;
    width: 1400px; height: 264px;
    border: var(--stroke-1) solid var(--color-surface-dark);
  }
  .ct-cta__panel { position: absolute; left: 80px; top: 40px; width: 1280px; height: 304px; padding: 0; text-align: left; }
  .ct-cta__title  { position: absolute; left: 370px; top: 48px;  width: 540px; margin: 0; text-align: center; }
  .ct-cta__text--1 { position: absolute; left: 281px; top: 103px; width: 718px; margin: 0; text-align: center; }
  .ct-cta__text--2 { position: absolute; left: 440px; top: 133px; width: 420px; margin: 0; text-align: center; }
  .ct-cta__btn    { position: absolute; left: 521px; top: 203px; margin: 0; }
}

/* ==========================================================================
   MOBILE — literal Figma geometry, 390 canvas
   Source of truth: frame "contacts phone" #2129:4691 (390 x 2738).

   This file is mobile-first (its other blocks are min-width), so the base
   rules above are what apply at 390. This block is appended last so it wins
   on source order at equal specificity.

   Same origin convention: the frame draws no header/footer, its y:0 is the
   page top, the header is 81, so every coordinate is THE FIGMA VALUE MINUS
   81. The offset used is noted per block.

   STROKE ALIGNMENT: every bordered box here is INSIDE — hero plate
   #2129:4700 461x144/4, cards frame #2129:4703 390x816/4, form box
   #2129:4704 374x544/2, CTA frame #2129:4694 761x263/1 all render at their
   declared size.

   NOT IN THIS FRAME: the showroom section. The 1440 frame has two paragraphs
   about the Dubai Textile City showroom; the 390 frame drops them entirely,
   so `.ct-show` is hidden and that copy does not appear on a phone.
   FLAGGED — worth confirming the omission is deliberate.

   Ignored: #2129:4693, an off-canvas instance parked at x:-2402 y:2100. It
   is not part of the visible layout.
   ========================================================================== */
@media (max-width: 767px) {

  .page-contact main {
    position: relative;
    width: var(--frame-mobile);
    max-width: none;
    height: 2246px;              /* frame 2738 - 81 header */
    margin-inline: 0;
  }

  .page-contact main > section {
    position: absolute;
    left: 0;
    width: var(--frame-mobile);
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* the container must not re-pad or re-centre anything */
  .page-contact .container {
    position: static;
    width: var(--frame-mobile);
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .ct-form__submit,
  .ct-cta__btn {
    display: flex;
    min-height: 0;
    height: 48px;
    max-width: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: var(--fw-bold);
    letter-spacing: normal;
    text-transform: none;
  }

  /* ======================================================================
     1. HERO — photo #2129:4692 at Figma 81 -> main 0.
     Local coordinates are the Figma value minus 81.
     ====================================================================== */
  .ct-hero { top: 0; height: 327px; }

  .ct-hero__bg {
    position: absolute;
    inset: auto;
    left: 0;
    top: 0;
    width: 440px;
    height: 327px;
    max-width: none;
    object-fit: fill;
  }

  /* #2129:4700 — 461x144 with a 4px INSIDE stroke, bleeding both edges */
  .ct-hero__card {
    position: absolute;
    left: -35px;
    top: 87px;
    width: 461px;
    height: 144px;
    padding: 0;
    background: var(--bg);
    border: 4px solid var(--color-surface-dark);
    text-align: left;
  }

  /* offsets are from the card's padding box, 4px inside its border */
  .ct-hero__title {
    position: absolute;
    left: 67px;
    top: 26px;
    width: 319px;
    max-width: none;
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-bold);
    line-height: 1.06;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
  }

  .ct-hero__sub {
    position: absolute;
    left: 51px;
    top: 57px;
    width: 351px;
    max-width: none;
    margin: 0;
    font-size: 15px;
    font-weight: var(--fw-reg);
    line-height: 18px;
    text-align: center;
    color: var(--ink);
  }

  /* ======================================================================
     2. INFO CARDS — frame #2129:4703 at Figma 456 -> main 375.
     Local coordinates are the Figma value minus 456.
     ====================================================================== */
  .ct-info { top: 375px; height: 816px; padding-block: 0; }

  .ct-info__outline {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--frame-mobile);
    height: 816px;
    background: none;
    border: 4px solid var(--color-surface-dark);
  }

  .ct-info__grid { display: block; gap: 0; margin: 0; }

  /* the dark card carries no stroke on this frame, only a fill */
  .ct-box {
    position: absolute;
    width: 214px;
    height: 213px;
    margin: 0;
    padding: 0;
    background: var(--color-surface-dark);
    border: 0;
    border-radius: 0;
  }

  .ct-box--1 { left: 90px; top: 51px;  }
  .ct-box--2 { left: 90px; top: 301px; }
  .ct-box--3 { left: 89px; top: 551px; }

  /* #2129:4705 / 4710 / 4715 — a gold plate that Figma paints BEHIND the
     dark card, so only a 4px edge each side and a 5px tail below show. The
     markup nests it inside the card, so it is pushed behind the card's own
     background with a negative z-index (the card sets no z-index of its
     own, so it creates no stacking context to trap it). */
  .ct-box__rule {
    position: absolute;
    z-index: -1;
    left: -4px;
    top: 138px;
    width: 222px;
    height: 80px;
    margin: 0;
    background: var(--gold);
  }

  .ct-box__label {
    position: absolute;
    left: 16px;
    top: 32px;
    margin: 0;
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: 22px;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .ct-box__value {
    position: absolute;
    left: 16px;
    top: 152px;
    margin: 0;
    font-size: 13px;
    font-weight: var(--fw-reg);
    line-height: 16px;
    color: var(--white);
    white-space: nowrap;
  }

  /* #2129:4718 plus the 13px icon #2245:866 */
  .ct-box__wa {
    position: absolute;
    left: 16px;
    top: 174px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    font-size: 13px;
    font-weight: var(--fw-reg);
    line-height: 16px;
    color: var(--white);
    white-space: nowrap;
  }

  /* #2245:866 — 13px here against the base rule's 17; the fill is inherited */
  .ct-box__wa svg { width: 13px; height: 13px; }

  /* ======================================================================
     3. SHOWROOM — not drawn on the 390 frame (see the note above)
     ====================================================================== */
  .ct-show { display: none; }

  /* ======================================================================
     4. GET IN TOUCH — title #2129:4721 at Figma 1320 -> main 1239.
     Local coordinates are the Figma value minus 1320.
     ====================================================================== */
  .ct-form { top: 1239px; height: 648px; padding-block: 0; }

  .ct-form__title {
    position: absolute;
    left: 8px;
    top: 0;
    width: 144px;
    max-width: none;
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-semi);
    line-height: 1.06;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-text);
  }

  .ct-form__lead {
    position: absolute;
    left: 8px;
    top: 29px;
    width: 344px;
    max-width: none;
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-reg);
    line-height: 17px;
    color: var(--color-text);
  }

  /* #2129:4704 — the form itself is the bordered box */
  .ct-form__grid {
    display: block;
    position: absolute;
    left: 8px;
    top: 104px;
    width: 374px;
    height: 544px;
    margin: 0;
    padding: 0;
    background: var(--bg);
    border: 2px solid var(--color-surface-dark);
  }

  /* offsets are from the form's padding box, 2px inside its border */
  .ct-field { position: absolute; left: 13px; width: 344px; margin: 0; }

  .ct-field--name    { top: 38px;  }
  .ct-field--email   { top: 115px; }
  .ct-field--phone   { top: 192px; }
  .ct-field--message { top: 269px; }

  .ct-field__label {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    font-size: 12px;
    font-weight: var(--fw-reg);
    line-height: 15px;
    color: var(--grey-700);
    white-space: nowrap;
  }

  .ct-field__input,
  .ct-field__area {
    position: absolute;
    left: 0;
    top: 21px;
    width: 344px;
    margin: 0;
    padding: 0 10px;
    background: var(--white);
    border: var(--stroke-1) solid var(--line);
    border-radius: 0;
    font-size: 13px;
    line-height: 16px;
  }

  .ct-field__input { height: 40px; }
  .ct-field__area  { height: 132px; padding-block: 10px; resize: none; }

  .ct-form__submit { position: absolute; left: 13px; top: 454px; width: 344px; }

  /* ======================================================================
     5. FINAL CTA — frame #2129:4694 at Figma 2016 -> main 1935.
     Local coordinates are the Figma value minus 2016.
     ====================================================================== */
  .ct-cta { top: 1935px; height: 263px; padding-block: 0; }

  .ct-cta__outline {
    display: block;
    position: absolute;
    left: -346px;
    top: 0;
    width: 761px;
    height: 263px;
    background: var(--bg);
    border: var(--stroke-1) solid var(--color-surface-dark);
  }

  .ct-cta__panel {
    position: absolute;
    left: -308px;
    top: 13px;
    width: 714px;
    height: 236px;
    margin: 0;
    padding: 0;
    background: var(--color-surface-dark);
    text-align: left;
  }

  /* panel origin is (-308, 2029), so children carry +308 against the frame */
  .ct-cta__title {
    position: absolute;
    left: 333px;
    top: 33px;
    width: 338px;
    max-width: none;
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-med);
    line-height: 1.06;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
    white-space: nowrap;   /* one line in the frame's 338 box (h21) */
  }

  .ct-cta__text {
    position: absolute;
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 17px;
    text-align: center;
    color: var(--white);
  }

  .ct-cta__text--1 { left: 351px; top: 62px;  width: 293px; }
  .ct-cta__text--2 { left: 334px; top: 104px; width: 326px; }

  .ct-cta__btn { position: absolute; left: 316px; top: 145px; width: 373px; }
}

/* ==========================================================================
   TABLET — literal Figma geometry, 768 canvas
   Source of truth: frame "contacts tablet" #2129:6832 (768 x 2383).

   The frame draws no header and no footer, so its y:0 is the top of the page.
   The tablet header is 81 tall (measured off #2129:9044, same as mobile), so
   `main` = 2383 - 81 = 2302 and EVERY COORDINATE BELOW IS THE FIGMA VALUE
   MINUS 81. Each section carries its own origin, noted at the block; children
   are then written against that section, so nothing compounds down the page.

   SELECTORS — the three things that cost the first attempt:
     1. `<main>` ON THIS PAGE HAS NO CLASS. There is no `.ct` wrapper, so
        `.ct section { … }` matches nothing and fails silently. Everything
        below is written `.page-contact main`.
     2. The body class is `page-contact`, NOT `page-contacts`.
     3. Several nodes are nested INSIDE a panel rather than being siblings of
        it, so their coordinates are PANEL-relative and `section > *` never
        reaches them. Each is noted at its block with the subtraction shown.

   STROKE ALIGNMENT: batched as node renders over 6840 / 6843 / 6844 / 6866 /
   6834 / 6845 — all six come back at exactly their declared size, so EVERY
   bordered box on this frame is INSIDE. No OUTSIDE strokes here, unlike the
   stage frames.

   Line heights are written in px, not em: Figma rounds line-height to the
   nearest integer pixel, and every multi-line box then matches its declared
   height exactly.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {

  .page-contact main {
    position: relative;
    width: var(--frame-tablet);
    max-width: none;
    height: 2082px;              /* frame 2383 - 81 header */
    margin-inline: auto;
    padding: 0;
  }

  .page-contact main > section {
    position: absolute;
    left: 0;
    width: var(--frame-tablet);
    margin: 0;
    padding: 0;
  }

  /* the container must not re-pad, re-centre or become an offset parent */
  .page-contact .container {
    position: static;
    width: var(--frame-tablet);
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* both buttons are INSTANCE 2129:1375 — 239x52, Open Sans Bold 14 UPPER */
  .page-contact .ct-form__submit,
  .page-contact .ct-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 239px;
    height: 52px;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--gold);
    border: 0;
    color: var(--white);
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: var(--fw-bold);
    line-height: 19px;
    letter-spacing: normal;
    text-transform: uppercase;
  }

  /* ======================================================================
     1. HERO — photo #2129:6833 at Figma 86 -> main 5.
     Section origin is Figma 86; local coordinates are the Figma value
     minus 86. The section clips, as the 768 frame does: the photo is 852
     wide from x:0 and runs 84px past the canvas edge.
     ====================================================================== */
  .ct-hero { top: 5px; height: 292px; overflow: hidden; }

  /* max-width: none is required — base.css clamps every image to 100% of its
     containing block (768 here), so the declared 852 would render squeezed
     rather than bleeding the 84px the frame draws. */
  .ct-hero__bg {
    position: absolute;
    inset: auto;
    left: 0;
    top: 0;
    width: 852px;
    height: 292px;
    max-width: none;
    object-fit: fill;
  }

  /* #2129:6840 — 606x176 with a 4px INSIDE stroke */
  .ct-hero__card {
    position: absolute;
    left: 81px;
    top: 54px;
    width: 606px;
    height: 176px;
    padding: 0;
    background: var(--bg);
    border: 4px solid var(--color-surface-dark);
    text-align: left;
  }

  /* TRAP 3 — the title and sub are children of the CARD, not the section.
     The card's padding box starts 4px inside its border at Figma (85,144),
     so each offset is the Figma value minus (85,144). */
  .ct-hero__title {
    position: absolute;
    left: 87px;                  /* 172 - 85 */
    top: 44px;                   /* 188 - 144 */
    width: 425px;
    max-width: none;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: var(--fw-bold);
    line-height: 34px;           /* 32 * 1.06 = 33.92, Figma rounds to 34 */
    text-transform: uppercase;
    text-align: left;
    color: var(--color-surface-dark);
    white-space: nowrap;
  }

  .ct-hero__sub {
    position: absolute;
    left: 72px;                  /* 157 - 85 */
    top: 86px;                   /* 230 - 144 */
    width: 454px;
    max-width: none;
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-reg);
    line-height: 19px;           /* box 38 = 2 lines */
    text-align: center;
    color: var(--color-surface-dark);
    white-space: normal;
  }

  /* ======================================================================
     2. INFO CARDS — outline #2129:6843 at Figma 425 -> main 344.
     Local coordinates are the Figma value minus 425.
     ====================================================================== */
  .ct-info { top: 344px; height: 313px; padding-block: 0; }

  .ct-info__outline {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--frame-tablet);
    height: 313px;
    background: none;
    border: 4px solid var(--color-surface-dark);
  }

  /* the min-width:768 block above turns this into a 3-column grid */
  .ct-info__grid { display: block; gap: 0; margin: 0; }

  /* the dark card carries a fill and NO stroke on this frame. The base rule
     leaves a 1px border in the same colour — invisible, but it would shift
     every child by 1px, since children measure from the padding box and
     Figma measures from the outer edge. */
  .ct-box {
    position: absolute;
    top: 48px;                   /* 473 - 425 */
    width: 214px;
    height: 213px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--color-surface-dark);
    border: 0;
    border-radius: 0;
  }

  .ct-box--1 { left: 42px;  }
  .ct-box--2 { left: 276px; }
  .ct-box--3 { left: 512px; }

  /* #2129:6845 / 6846 / 6847 — a 222x80 gold plate Figma paints BEHIND the
     card, so only a 4px edge each side and a 5px tail below it show. Card
     relative it is (-4, 138) on all three, the same numbers the 390 frame
     uses. The markup nests it inside the card, so it is pushed behind the
     card's own background with a negative z-index — which works because the
     card sets no z-index and so creates no stacking context to trap it. */
  .ct-box__rule {
    position: absolute;
    z-index: -1;
    left: -4px;
    top: 138px;
    width: 222px;
    height: 80px;
    margin: 0;
    background: var(--gold);
  }

  .ct-box__label {
    position: absolute;
    left: 16px;
    top: 32px;
    margin: 0;
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: 22px;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .ct-box__value {
    position: absolute;
    left: 16px;
    top: 152px;
    margin: 0;
    font-size: 13px;
    font-weight: var(--fw-reg);
    line-height: 16px;
    color: var(--white);
    white-space: nowrap;
  }

  /* #2129:6856 plus the 13px icon #2245:861. Only card 3 draws this — cards
     1 and 2 carry a label and a value only, which the markup already
     matches. The icon sits at x:17 and the label at x:32, so the flex gap
     is 2px (17 + 13 + 2 = 32). */
  .ct-box__wa {
    position: absolute;
    left: 17px;
    top: 174px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    font-size: 13px;
    font-weight: var(--fw-reg);
    line-height: 16px;
    color: var(--white);
    white-space: nowrap;
  }

  /* #2245:861 — 13px here against the base rule's 17; the fill is inherited */
  .ct-box__wa svg { width: 13px; height: 13px; }

  /* Every text node in these cards is a FIXED box in the file
     (sizing: {horizontal: fixed}), so the declared width is the box and not
     the ink — Chrome measures "Dubai textile city Office 145" at 168 against
     the 191 Figma declares. All are left-aligned and nowrap, so the ink lands
     identically either way; the widths are written out so the boxes match the
     file rather than shrink-wrapping to the browser's own text metrics. */
  .ct-box--1 .ct-box__label { width: 77px; }
  .ct-box--2 .ct-box__label { width: 57px; }
  .ct-box--3 .ct-box__label { width: 64px; }
  .ct-box--1 .ct-box__value { width: 191px; }
  .ct-box--2 .ct-box__value { width: 172px; }
  .ct-box--3 .ct-box__value { width: 112px; }

  /* ======================================================================
     3. SHOWROOM — band #2129:6861 at Figma 786 -> main 705.
     The band is NOT full bleed: it is 758 wide from x:10, so the section
     itself carries that inset. Local coordinates are the Figma value minus
     (10, 786).

     Unlike every other section on this page, `.ct-show` has NO `.container`
     — `.ct-show__frame` is its direct child.
     ====================================================================== */
  /* `.page-contact` is load-bearing: `.page-contact main > section` above is
     (0,1,2) and beats a bare `.ct-show` (0,1,0), so left and width were
     silently coming back as 0 / 768 and dragging the frame and both texts
     10px left with them. (0,2,0) wins. */
  .page-contact .ct-show {
    left: 10px;
    top: 705px;
    width: 758px;
    height: 196px;
    padding-block: 0;
    background: var(--color-surface-dark);
  }

  /* #2129:6866 — 617x150, a 1px white stroke and NO fill */
  .ct-show__frame {
    position: absolute;
    left: 66px;                  /* 76 - 10 */
    top: 22px;                   /* 808 - 786 */
    width: 617px;
    height: 150px;
    padding: 0;
    background: none;
    border: var(--stroke-1) solid var(--white);
    text-align: center;
  }

  /* TRAP 3 — both texts are children of the FRAME. Its padding box starts
     1px inside its border at Figma (77,809), so each offset is the Figma
     value minus (77,809). */
  .ct-show__text {
    position: absolute;
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-light);
    line-height: 19px;           /* box 38 = 2 lines */
    text-align: center;
    color: var(--white);
    white-space: normal;
  }

  /* beats `.ct-show__text + .ct-show__text` (0,2,0) in the base block */
  .ct-show__text + .ct-show__text { margin-top: 0; }

  .ct-show__text--1 { left: 43px; top: 31px; width: 529px; }
  .ct-show__text--2 { left: 52px; top: 79px; width: 511px; }

  /* ======================================================================
     4. GET IN TOUCH — title #2129:6867 at Figma 1029 -> main 948.
     Local coordinates are the Figma value minus 1029.
     ====================================================================== */
  .ct-form { top: 948px; height: 718px; padding-block: 0; }

  .ct-form__title {
    position: absolute;
    left: 42px;
    top: 0;
    width: 187px;
    max-width: none;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: var(--fw-semi);
    line-height: 31px;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-surface-dark);
    white-space: nowrap;
  }

  .ct-form__lead {
    position: absolute;
    left: 42px;
    top: 39px;                   /* 1068 - 1029 */
    width: 531px;
    max-width: none;
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-reg);
    line-height: 19px;           /* box 38 = 2 lines */
    text-align: left;
    color: var(--color-surface-dark);
  }

  /* #2129:6844 — the form element itself is the bordered box, 633x609 with
     a 2px INSIDE stroke */
  .ct-form__grid {
    display: block;
    position: absolute;
    left: 68px;
    top: 109px;                  /* 1138 - 1029 */
    width: 633px;
    height: 609px;
    margin: 0;
    padding: 0;
    background: var(--bg);
    border: 2px solid var(--color-surface-dark);
  }

  /* TRAP 3 — the fields are children of the FORM. Its padding box starts
     2px inside its border at Figma (70,1140), so each offset is the Figma
     value minus (70,1140). The four labels sit on an 88px step. */
  .ct-field { position: absolute; left: 29px; width: 570px; margin: 0; }

  .ct-field--name    { top: 22px;  }   /* 1162 - 1140 */
  .ct-field--email   { top: 110px; }   /* 1250 - 1140 */
  .ct-field--phone   { top: 198px; }   /* 1338 - 1140 */
  .ct-field--message { top: 286px; }   /* 1426 - 1140 */

  .ct-field__label {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-reg);
    line-height: 17px;
    color: var(--grey-700);
    white-space: nowrap;
  }

  /* fixed boxes in the file, same as the card text above */
  .ct-field--name .ct-field__label    { width: 39px;  }
  .ct-field--email .ct-field__label   { width: 36px;  }
  .ct-field--phone .ct-field__label   { width: 109px; }
  .ct-field--message .ct-field__label { width: 60px;  }

  .ct-field__input,
  .ct-field__area {
    position: absolute;
    left: 0;
    top: 24px;                   /* label 1162 -> input 1186 */
    width: 570px;
    margin: 0;
    padding: 0 14px;
    background: var(--white);
    border: var(--stroke-1) solid var(--line);
    border-radius: 0;
    font-size: 14px;
    line-height: 17px;
  }

  .ct-field__input { height: 48px; }
  .ct-field__area  { height: 179px; padding-block: 14px; resize: none; }

  .ct-form__submit { position: absolute; left: 29px; top: 521px; }

  /* ======================================================================
     5. FINAL CTA — outline #2129:6834 at Figma 1795 -> main 1714.
     Local coordinates are the Figma value minus 1795. Note the dark panel
     is TALLER than the outline it sits in (294 from y:1821 ends at 2115,
     against the outline's 2042), so the section is sized to the panel.
     ====================================================================== */
  .ct-cta { top: 1714px; height: 320px; padding-block: 0; }

  .ct-cta__outline {
    display: block;
    position: absolute;
    left: 16px;
    top: 0;
    width: 735px;
    height: 247px;
    background: var(--bg);
    border: var(--stroke-1) solid var(--color-surface-dark);
  }

  .ct-cta__panel {
    position: absolute;
    left: 39px;
    top: 26px;                   /* 1821 - 1795 */
    width: 689px;
    height: 294px;
    margin: 0;
    padding: 0;
    background: var(--color-surface-dark);
    text-align: left;
  }

  /* TRAP 3 — the title and both texts are children of the PANEL, which has
     no border, so each offset is the Figma value minus the panel origin
     (39, 1821). */
  .ct-cta__title {
    position: absolute;
    left: 20px;                  /* 59 - 39 */
    top: 48px;                   /* 1869 - 1821 */
    width: 650px;
    max-width: none;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: var(--fw-med);
    line-height: 31px;
    text-transform: uppercase;
    text-align: center;
    color: var(--bg);
    white-space: nowrap;
  }

  .ct-cta__text {
    position: absolute;
    margin: 0;
    font-size: 18px;
    font-weight: var(--fw-light);
    line-height: 22px;
    text-align: center;
    color: var(--white);
  }

  .ct-cta__text--1 { left: 159px; top: 87px;  width: 373px; }  /* 2 lines */
  .ct-cta__text--2 { left: 115px; top: 139px; width: 460px; }  /* 1 line  */

  .ct-cta__btn { position: absolute; left: 225px; top: 185px; }
}

/* ==== RTL OVERLAY (auto — tools/rtl-gen.js; mirrors horizontal geometry for Arabic, scoped to html[dir=rtl], changed decls only) ==== */
@media (min-width: 1200px) {
    html[dir="rtl"] .ct-hero__bg {
        right: 2px;
        left: auto
    }
    html[dir="rtl"] .ct-hero__card {
        right: 392px;
        left: auto
    }
    html[dir="rtl"] .ct-info__outline {
        right: 2px;
        left: auto
    }
    html[dir="rtl"] .ct-box--1 {
        right: 165px;
        left: auto
    }
    html[dir="rtl"] .ct-box--2 {
        right: 591px;
        left: auto
    }
    html[dir="rtl"] .ct-box--3 {
        right: 1017px;
        left: auto
    }
    html[dir="rtl"] .ct-box--1 .ct-box__label {
        right: 18px;
        left: auto
    }
    html[dir="rtl"] .ct-box__label {
        right: 21px;
        left: auto
    }
    html[dir="rtl"] .ct-box__rule {
        right: 1px;
        left: auto
    }
    html[dir="rtl"] .ct-box__value {
        right: 21px;
        left: auto
    }
    html[dir="rtl"] .ct-box--1 .ct-box__value {
        right: 18px;
        left: auto
    }
    html[dir="rtl"] .ct-box__wa {
        right: 21px;
        left: auto
    }
    html[dir="rtl"] .ct-show {
        margin: 64px -30px 0 0
    }
    html[dir="rtl"] .ct-show__frame {
        right: 378px;
        left: auto
    }
    html[dir="rtl"] .ct-show__text--1 {
        right: 84px;
        left: auto
    }
    html[dir="rtl"] .ct-show__text--2 {
        right: 88px;
        left: auto
    }
    html[dir="rtl"] .ct-form__title {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-form__lead {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-field--name {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-field--email {
        right: 670px;
        left: auto
    }
    html[dir="rtl"] .ct-field--phone {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-field--message {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-form__submit {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__outline {
        right: 20px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__panel {
        right: 80px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-cta__title {
        right: 370px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--1 {
        right: 281px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--2 {
        right: 440px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__btn {
        right: 521px;
        left: auto
    }
}
@media (max-width: 767px) {
    html[dir="rtl"] .page-contact main > section {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-hero__bg {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-hero__card {
        right: -35px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-hero__title {
        right: 67px;
        left: auto
    }
    html[dir="rtl"] .ct-hero__sub {
        right: 51px;
        left: auto
    }
    html[dir="rtl"] .ct-info__outline {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-box--1 {
        right: 90px;
        left: auto
    }
    html[dir="rtl"] .ct-box--2 {
        right: 90px;
        left: auto
    }
    html[dir="rtl"] .ct-box--3 {
        right: 89px;
        left: auto
    }
    html[dir="rtl"] .ct-box__rule {
        right: -4px;
        left: auto
    }
    html[dir="rtl"] .ct-box__label {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-box__value {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-box__wa {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-form__title {
        right: 8px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-form__lead {
        right: 8px;
        left: auto
    }
    html[dir="rtl"] .ct-form__grid {
        right: 8px;
        left: auto
    }
    html[dir="rtl"] .ct-field {
        right: 13px;
        left: auto
    }
    html[dir="rtl"] .ct-field__label {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-field__input,
html[dir="rtl"] .ct-field__area {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-form__submit {
        right: 13px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__outline {
        right: -346px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__panel {
        right: -308px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-cta__title {
        right: 333px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--1 {
        right: 351px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--2 {
        right: 334px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__btn {
        right: 316px;
        left: auto
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html[dir="rtl"] .page-contact main > section {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-hero__bg {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-hero__card {
        right: 81px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-hero__title {
        right: 87px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-hero__sub {
        right: 72px;
        left: auto
    }
    html[dir="rtl"] .ct-info__outline {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-box--1 {
        right: 42px;
        left: auto
    }
    html[dir="rtl"] .ct-box--2 {
        right: 276px;
        left: auto
    }
    html[dir="rtl"] .ct-box--3 {
        right: 512px;
        left: auto
    }
    html[dir="rtl"] .ct-box__rule {
        right: -4px;
        left: auto
    }
    html[dir="rtl"] .ct-box__label {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-box__value {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-box__wa {
        right: 17px;
        left: auto
    }
    html[dir="rtl"] .page-contact .ct-show {
        right: 10px;
        left: auto
    }
    html[dir="rtl"] .ct-show__frame {
        right: 66px;
        left: auto
    }
    html[dir="rtl"] .ct-show__text--1 {
        right: 43px;
        left: auto
    }
    html[dir="rtl"] .ct-show__text--2 {
        right: 52px;
        left: auto
    }
    html[dir="rtl"] .ct-form__title {
        right: 42px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-form__lead {
        right: 42px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-form__grid {
        right: 68px;
        left: auto
    }
    html[dir="rtl"] .ct-field {
        right: 29px;
        left: auto
    }
    html[dir="rtl"] .ct-field__label {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-field__input,
html[dir="rtl"] .ct-field__area {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .ct-form__submit {
        right: 29px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__outline {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__panel {
        right: 39px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .ct-cta__title {
        right: 20px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--1 {
        right: 159px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__text--2 {
        right: 115px;
        left: auto
    }
    html[dir="rtl"] .ct-cta__btn {
        right: 225px;
        left: auto
    }
}
