/* ================================================================
   Rove Home Muscat Central — Arabic / RTL overrides
   Loaded by ar/index.html AFTER style.css, so every rule here wins the
   cascade by appearing later — style.css itself is never touched, so the
   English page is completely unaffected by anything in this file.

   What does NOT need an override here, and why:
   - Flexbox child order (hero-ctas, hero-dev, amen-tabs, apt-tabs,
     map-ctrl, jv-logos, f-contact, f-social, footer-row): `dir="rtl"` on
     <html> sets `direction: rtl`, which is inherited everywhere, and
     flexbox's main-start/main-end are direction-aware by spec — a plain
     `display:flex` row already reverses visually with no CSS of mine.
   - Default text alignment: CSS `text-align`'s default value is `start`,
     which also resolves from `direction` — only the few rules that set an
     *explicit* `text-align: left` need a `right` override below.
   - Every full-bleed/cover photo (hero slides, chapter aerial, pillar
     card photos, the building render, amenity/apartment photos, the map,
     the About beach shot, the LEO skyline): these are real photographs,
     not UI chrome. Mirroring them would flip real-world content backwards
     (street signs, the "ROVE"/"LEO" lettering baked into the building
     render, which side of a room a window is on) and the map specifically
     would become geographically wrong. None of them are touched — only
     the TEXT and UI positioned around them moves.

   Mirroring method for a plain absolutely-positioned element — this is
   the one fact every rule below leans on, so it's worth proving once:
   take `left: L` on a box of width `W` inside a container of width `D`.
   Its gap from the container's right edge is `D - L - W`. The mirror we
   want has that same gap on its *left* instead. Setting `right: L` (the
   same number L, just the other property) puts the box's right edge at
   `D - L`, and since it still extends `W` toward the left from there, its
   left edge lands at `D - L - W` — exactly the target. So the mirror of
   any `left: Xrem` is simply `right: Xrem` with the identical number; nothing
   needs recomputing by hand, which is why most rules below are a direct
   property swap, not a different value. */

/* GE SS Two (headings) and GE Dinar One (sub-headings/body) are the
   client's own Arabic brand typefaces — self-hosted here from the ROVE
   brand toolkit rather than loaded from a CDN, since neither is on
   Google Fonts. Both cover the full Arabic block used across this page
   (confirmed against every codepoint in ar/index.html, including the
   veh/ڤ in "روڤ") plus Latin, so no per-language font-family fallback is
   needed the way Mohave/Arial needed splitting on the English page.
   Each is a static (non-variable) OTF per weight, so weights are mapped
   to the closest available cut rather than interpolated: 400→Light,
   500/600→Medium, 700→Bold — the same three bands style.css already
   uses, so nothing downstream has to change its font-weight value. */
@font-face {
  font-family: "GE SS Two";
  src: url("../assets/fonts/GESSTwo-Light.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("../assets/fonts/GESSTwo-Medium.otf") format("opentype");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("../assets/fonts/GESSTwo-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GE Dinar One";
  src: url("../assets/fonts/GEDinarOne-Light.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GE Dinar One";
  src: url("../assets/fonts/GEDinarOne-Medium.otf") format("opentype");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "GE Dinar One";
  src: url("../assets/fonts/GEDinarOne-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* Both brand OTFs draw the plain ASCII digits (0-9) as Eastern Arabic-Indic
   numerals at every weight — confirmed against the font files themselves,
   not a browser/locale shaping effect, so no amount of lang/dir markup on
   the text fixes it. Client wants digits kept in plain Western form
   throughout, so this narrow unicode-range face feeds just the digit
   codepoints from the system sans used on the English page, leaving every
   Arabic (and Latin letter) glyph on the brand font untouched. */
/* one override per weight band, matching the brand faces' own 400/500-600/
   700 split exactly — a single wide font-weight range (e.g. 100 900) loses
   to the brand face's exact-weight match (its 700 beats the override's
   "contains 700" range) and the Eastern-Indic glyph wins again, confirmed
   by testing both forms head to head. */
@font-face {
  font-family: "GE SS Two";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto");
  unicode-range: U+30-39;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto");
  unicode-range: U+30-39;
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  /* the 400/500-600 bands above match local("Arial") etc. fine at their
     own weight, but at 700 that same plain family name doesn't reliably
     pull in the system's actual bold cut — so digits inside bold text
     (Building Overview floor numbers, apartment sizes) rendered visibly
     thinner than the Arabic around them. Naming the bold family directly
     fixes that. */
  font-family: "GE SS Two";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica Neue Bold"), local("Segoe UI Bold"), local("Roboto Bold");
  unicode-range: U+30-39;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GE Dinar One";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto");
  unicode-range: U+30-39;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GE Dinar One";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto");
  unicode-range: U+30-39;
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  /* same bold-family fix as the GE SS Two 700 band above. */
  font-family: "GE Dinar One";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica Neue Bold"), local("Segoe UI Bold"), local("Roboto Bold");
  unicode-range: U+30-39;
  font-weight: 700;
  font-display: swap;
}

:root {
  --display: "GE SS Two", sans-serif;
  --body: "GE Dinar One", sans-serif;
}

body { direction: rtl; }

/* GE SS Two / GE Dinar One only ship three cuts — 400 (Light), 500/600
   (Medium), 700 (Bold) — and every element that doesn't set its own
   font-weight inherits body's default of 400, which lands on the Light
   cut. Client wants body copy at Regular rather than Light; Medium is
   the closest available cut, so this bumps the inherited default one
   step. A selector that already sets its own weight (buttons, tab
   labels, headings) is more specific than `body` and wins the cascade
   unaffected, so this only touches text that was defaulting to Light. */
body { font-weight: 500; }
/* these two set font-weight:400 explicitly, so the body-level bump above
   doesn't reach them — same fix, same reason, just needs restating. */
.bo-label span { font-weight: 500; }
.invest-cap p { font-weight: 500; }

/* English stays top-right; Arabic moves to top-left (client feedback) —
   dir:rtl does not move position:fixed left/right values on its own, so
   this needs an explicit override, unlike most of this file. Mobile's
   own left value lives in the RESPONSIVE section below. */
.lang-switch { right: auto; left: 2.8rem; font-size: 1.6rem; }

/* ---------- shared type ---------- */
.sec-title.left { text-align: right; }

/* ---------- small-text size bump (client feedback) ----------
   Every selector below 2rem gets a slight (~8%) increase — Arabic script
   reads smaller than Latin at the same pixel size, so the English values
   read a touch cramped once translated. Desktop values here; mobile's
   own set lives in the RESPONSIVE section below since style.css sets
   different (smaller) values at that breakpoint for several of these. */
.sec-copy { font-size: 1.9rem; }
.chapter-copy { font-size: 1.9rem; }
.overview-sub { font-size: 1.9rem; }
.bo-hot { font-size: 1.7rem; }
.bo-span-tag { font-size: 1.4rem; }
.bo-label button { font-size: 1.5rem; }
.amen-panel p { font-size: 1.6rem; }
/* style.css's 1.1 line-height was tuned for the English titles' own line
   breaks; "الصحة والعافية" runs a touch taller with Arabic diacritics
   (the dot cluster on "متناول" sits close enough above the line that it
   read as clashing with "في" above it at 1.1) — team feedback, confirmed
   on a live render. 1.1 → 1.3 for breathing room between wrapped lines. */
.amen-panel h3 { line-height: 1.3; }
/* amen-grid's row heights (26rem/25rem) are sized to the English body
   copy; the longer Arabic convenience-tab paragraph plus the weight/size
   bumps above pushed its last line below the grey panel's bottom edge —
   team feedback, confirmed on a live render (panel 52rem tall, content
   ~53.6rem). Taller rows give every tab's panel the same extra room
   rather than special-casing the one tab that needs it. */
.amen-grid { grid-template-rows: 28rem 27rem; }
/* .amen-mid is its own nested grid (the two stacked photos in the middle
   column) with the SAME 26rem/25rem row heights as the outer grid above,
   by design — it has to grow by the same amount or it stops filling the
   column's new height, leaving its two photos short of the row of the
   tall left photo and the text panel beside them. Team feedback, visible
   as a ~4rem gap under the middle column once the outer grid above grew. */
.amen-mid { grid-template-rows: 28rem 27rem; }
.about-content p { font-size: 1.9rem; }
.apt-sizes { font-size: 2rem; }
.map-hint { font-size: 1.6rem; }
.map-level { font-size: 1.9rem; }
.map-reset { font-size: 1.7rem; }
.leo-copy p { font-size: 1.9rem; }
.f-dev span { font-size: 1.9rem; }

/* ================================================================
   1. HERO
   ================================================================ */
/* style.css's dark-to-light gradient runs 90deg (dark at the left edge,
   fading out toward the right) to sit behind the left-anchored logo/title/
   copy stack. That stack is now right-anchored, so the shade has to run
   the mirror angle (270deg = dark at the right edge instead) or the text
   loses its contrast backdrop entirely. */
.hero-shade {
  background:
    linear-gradient(270deg, rgba(10,20,35,.74) 0%, rgba(10,20,35,.58) 30%,
                           rgba(10,20,35,.42) 44%, rgba(10,20,35,0) 64%),
    linear-gradient(180deg, rgba(10,20,35,.30) 0%, rgba(10,20,35,0) 26%);
}
/* logo-rove-ar-white.png is a near-square lockup (3 stacked lines), much
   taller per unit of width than the English logo-rove.png it replaces (a
   wide single-row ROVE/HOME/MUSCAT CENTRAL mark). Shrinking it to fit
   style.css's original 6.3rem→23.8rem gap (above hero-title) left it
   reading much smaller/weaker than ROVE does in English, with barely any
   air before the headline — not the "same as English" look the client
   wants. Instead this keeps the logo close to English's own prominence
   (width) and pushes hero-title/-sub/-ctas down by the same 6.2rem to
   reopen that breathing room beneath it, rather than shrinking the mark
   to fit the old gap. */
.hero-logo { left: auto; right: 27.3rem; width: 19.5rem; top: 2.3rem }
.hero-title { left: auto; right: 27.1rem; top: 22rem; text-align: right; }
.hero-sub { left: auto; right: 27.5rem; top: 42rem; text-align: right; }
.hero-ctas { left: auto; right: 27.1rem; top: 50rem; }
.hero-dev { left: auto; right: 50rem; direction: rtl; }
/* the rule has to stay the element nearest ROVE (now on hero-dev's own
   right, since ROVE sits further right again) with the LEO mark beyond it
   — direction:rtl above reverses the flex row so the DOM order (rule,
   then img) renders rule-first from the right, unchanged from the English
   markup, with margin swapped onto the correct side of the rule itself */
.hero-dev-rule { margin: 0.75rem 0 0 3rem; }

/* ================================================================
   2. A NEW CHAPTER
   ================================================================ */
.chapter-title { left: auto; right: 26.7rem; text-align: right; }
.chapter-copy { left: auto; right: 79.1rem; text-align: right; }

/* pillar cards: --l is the English left-offset, set inline per card and
   left completely untouched (it is not safe to override an inline custom
   property from a stylesheet) — reading the very same --l as a `right`
   offset instead mirrors each card using the identical proof above,
   with no per-card arithmetic to get wrong */
.pillar-card { left: auto; right: var(--l); }

/* ================================================================
   3. BUILDING OVERVIEW
   js/levels-ar.js already mirrors every hotspot x and leader-path x (see
   that file's own header comment) — the two rules here just move the
   label column and figure bleed to match, in design-space terms.
   ================================================================ */
.bo-figure { left: auto; right: -5.1rem; }
.bo-label { left: auto; right: 170.4rem; }
.bo-label button:hover { transform: translateX(0.5rem); }
.bo.is-engaged .bo-label.is-active button { transform: translateX(0.5rem); }
/* the "3-9" dimension chip sits to the *outside* of its hotspot — that
   was rightward in the English layout (toward the label column, which was
   on the right); the label column is now on the left, so the chip flips
   to sit leftward of the point it annotates */
.bo-span-tag { transform: translate(-3.4rem, -50%) scale(.85); }
.bo-span-tag.is-active { transform: translate(-3.4rem, -50%) scale(1); }

@media (max-width: 1023px) {
  .bo-card button { text-align: right; }
}

/* ================================================================
   4. ROVE HOME HAS IT ALL — pure flex/grid, no left/right offsets to
   mirror; dir:rtl handles the tab row and the amenity grid's own column
   order (grid-template-columns stays logically the same, autoplacement
   reads right-to-left under dir:rtl).
   ================================================================ */

/* ================================================================
   5. ABOUT ROVE HOTELS — deliberately NOT mirrored (client feedback):
   the photo's open sky/water sits on its right, the family group on its
   left, so moving the text+badge cluster to the mirrored (left) side ran
   it straight into the family rather than the clear backdrop it was
   designed to sit over. Left at the English screen position; only the
   paragraph alignment follows RTL (handled for free by body{direction:
   rtl}'s default text-align:start, so no override is even needed here).
   ================================================================ */

/* ================================================================
   6. APARTMENTS — tabs/hairline are centred (no left/right to mirror);
   the carousel needs its own section below.
   ================================================================ */

/* ================================================================
   7. WHY INVEST
   Rather than hand-mirror three clip-path polygons, three image crops and
   three caption positions (nine numbers, all easy to get subtly wrong),
   each full-bleed panel is flipped as a whole with transform: scaleX(-1)
   — cheap because every panel is already inset:0 (the clip-path alone
   carves out its third), so flipping the *whole* panel relocates its
   clip-path slice to the mirrored third for free. The photo and caption
   inside each panel then carry the same transform right back
   (scaleX(-1) twice = identity), which cancels the flip for their own
   content — so the photos stay unmirrored (a flipped face or flipped
   "Dubai Holding" partner wordmark would look wrong) and the captions
   stay readable, while both still end up sitting in the new, mirrored
   panel position, since a transform doesn't affect the layout position
   calculated for the parent it's cancelling. */
.invest-panel { transform: scaleX(-1); }
.invest-panel img, .invest-cap { transform: scaleX(-1); }
/* .ip-mid .invest-cap centers itself with left:50% + translateX(-50%) in
   style.css — that -50% is a self-width centering offset, not a left/right
   position, so it does not get mirrored like the rest of this section;
   only scaleX(-1) is added, to cancel the panel's flip for this caption's
   own content. Flipping its sign too (translateX(50%), an earlier version
   of this rule) shoves the whole 52rem-wide box a full box-width to the
   right of center — mostly past the mid panel's own clip-path slice,
   which is why its icon/caption went missing instead of just mis-centered. */
.ip-mid .invest-cap { transform: translateX(-50%) scaleX(-1); }
.ip-left .invest-cap { transform: scaleX(-1); }
.ip-right .invest-cap { transform: scaleX(-1); }

/* ================================================================
   8. LIVE CONNECTED — the map stage/controls are centred or full-bleed;
   nothing here needs mirroring (and the map photo itself must not flip —
   see the file header).
   ================================================================ */

/* ================================================================
   10. LEO DEVELOPMENTS
   ================================================================ */
.leo-head { left: auto; right: 49rem; direction: rtl; }
/* style.css's 55.6rem width was sized for the English copy; the Arabic
   text (longer besides — "الشبل للتطوير - LEO Development" vs "LEO
   Development") wrapped into enough extra lines to run past .leo's fixed
   94.9rem height, clashing with the skyline photo below it — team
   feedback, confirmed on a live render. `right` only pins the box's right
   edge, so widening it extends into the ~26rem of margin style.css left
   unused on this side (leo-head's own logo+heading cluster sits well
   clear of it), shortening the block back to fit. */
.leo-copy { left: auto; right: 100.3rem; width: 70rem; text-align: right; }

/* ================================================================
   11. FOOTER
   ================================================================ */
.footer-row { padding: 5.3rem 41.6rem 4.4rem 4rem; }
.f-dev { margin-right: 0; margin-left: -1.5rem; }
.f-social { margin-left: 0; margin-right: -2.7rem; }
/* phone numbers, emails and URLs stay LTR-read even inside an RTL page —
   index.html already marks each with dir="ltr" at the element itself, so
   no override is needed here; noted for the same reason as the switcher
   note above. */

/* ================================================================
   RESPONSIVE (≤900px)
   Most of the desktop rules above are harmless here because style.css's
   own mobile block switches those elements to `position: static` first,
   which makes `left`/`right` inert. But a few mobile rules keep an
   element `position: relative/sticky/absolute` (for a scroll-snap rail,
   a sticky figure, a centred caption) or set their own clip-path/
   gradient/padding/transform — and since this whole file loads after
   style.css, an unscoped desktop override above would still win the
   cascade and corrupt THAT value. Found by measuring real overflow on a
   live render (.pillar-card was landing ~1730px off-canvas): every rule
   below exists to cancel one specific desktop-only override for exactly
   that reason, not to add new mirrored positioning of its own.
   ================================================================ */
@media (max-width: 900px) {
  /* style.css's own mobile block gives .lang-switch a smaller top/right
     offset (1.6rem vs desktop's 2.8rem) — same unscoped-rule-wins-the-
     cascade issue as everything else in this section, so the left value
     needs restating here at mobile's own 1.6rem, not desktop's 2.8rem. */
  .lang-switch { right: auto; left: 1.6rem; font-size: 1.5rem; }

  /* the size-bump section above is unscoped, so for any selector where
     style.css's own mobile block sets a DIFFERENT base size than desktop
     (not just the same value inherited through), the desktop-derived
     bumped number above would win here too and either cancel mobile's
     own bump (landing back on its un-bumped original) or apply the wrong
     base entirely. Each one below restates the ~8% bump off mobile's own
     starting value instead of desktop's. Selectors with no separate
     mobile size in style.css didn't need restating — the unscoped bump
     already carries through correctly. */
  .sec-copy { font-size: 2rem; }
  .about-content p { font-size: 2rem; }
  .leo-copy p { font-size: 2rem; }
  .apt-sizes { font-size: 1.9rem; }
  .map-hint { font-size: 1.5rem; }

  /* mobile-only selectors (no desktop counterpart), same ~8% bump off
     their own style.css base. */
  .pillars-hint { font-size: 1.8rem; }
  .bo-hot-num { font-size: 1.3rem; }
  .bo-card-num { font-size: 1.6rem; }
  .bo-card span { font-size: 1.8rem; }

  /* the desktop row-height fix above (28rem/27rem, for the convenience-
     tab overflow) is unscoped; style.css's own mobile block sets
     grid-template-rows: auto for the single-column stacked layout, which
     the fixed rem values would otherwise replace, breaking the stack. */
  .amen-grid { grid-template-rows: auto; }
  /* same issue for leo-copy: the desktop width fix (70rem) would replace
     style.css's mobile width: auto, forcing a 70rem-wide block on a
     ~700px screen. */
  .leo-copy { width: auto; }

  .hero-logo { left: auto; right: 3rem; }
  /* mobile's radial shade is anchored at the top-left corner (at 0% -10%)
     to sit behind the left-anchored logo; the logo is right-anchored here,
     so the anchor point has to move to the top-right corner to match. */
  .hero-shade {
    background:
      radial-gradient(150% 100% at 100% -10%, rgba(4,14,28,.92) 0%,
                                            rgba(4,14,28,.76) 26%,
                                            rgba(4,14,28,.40) 52%,
                                            rgba(4,14,28,.10) 70%,
                                            rgba(4,14,28,0) 82%),
      linear-gradient(180deg, rgba(10,20,35,.5) 0%,
                              rgba(10,20,35,.24) 24%,
                              rgba(10,20,35,0) 52%);
  }
  .f-dev { margin-right: 0; margin-left: 0; }
  .f-social { margin-right: 0; }

  /* .pillar-card goes from absolute (desktop) to a relative flex-rail
     item (mobile scroll-snap) — `right: var(--l)` above would then offset
     it from its own flex position by the desktop pixel value instead of
     positioning it in a container, flinging it far off-screen. */
  .pillar-card { right: auto; }

  /* mobile centres this title; only the desktop left-aligned "About Rove
     Hotels" layout needed the right-align mirror. */
  .sec-title.left { text-align: center; }

  /* mobile's footer is a centred column, not the desktop row the 41.6rem/
     4rem asymmetric padding was tuned for. */
  .footer-row { padding: 5rem 3rem; }

  /* the Why Invest double-flip only relocates a clip-path slice that
     mobile removes entirely (stacked panels, no diagonal) — left active,
     it would un-centre the caption mobile's own rule just centred. */
  .invest-panel, .invest-panel img { transform: none; }
  .invest-cap, .ip-left .invest-cap, .ip-mid .invest-cap, .ip-right .invest-cap {
    transform: translateX(-50%);
  }

  /* mobile stacks the LEO logo above the heading in a column flex; team
     feedback (and a clean isolated test) showed the whole cluster pinned
     to the LEFT with align-items:flex-end — the opposite of an earlier
     note's conclusion. Confirmed directly: in a flex-direction:column
     container under dir:rtl, flex-start resolves to the RIGHT and
     flex-end to the LEFT, same as this page's other right-started blocks
     need. flex-start is the correct value; the previous flex-end was
     backwards. */
  .leo-head { align-items: flex-start; }
}

/* the Building Overview component's own breakpoint (1023px, wider than
   the page's 900px one — see style.css's own note by its narrow block) */
@media (max-width: 1023px) {
  /* narrow layout sticks the figure at width: 100%; the desktop
     `right: -5.1rem` bleed above would still apply to this sticky
     element and push it 5.1rem past the panel's right edge. */
  .bo-figure { right: auto; }
}
