/* White Shine International, concept site by Tap Media House.
   Plain CSS. Logical properties (inline/block) so Arabic flips cleanly. */

:root {
  --navy-900: #061430;
  --navy: #0b1f45;
  --navy-yard: #021531;
  --paper: #f4f3ee;
  --paper-2: #e8e7e0;
  --line: #d3d1c7;
  --ink: #0e1726;
  --muted: #586070;
  --yellow: #f1b31c;
  --yellow-hover: #ffc53d;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --top-h: 72px;
}
html[lang="ar"] {
  --f-display: "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy-900); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 3px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--yellow); color: var(--navy-900); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #163261; }
.btn-wide { width: 100%; min-height: 56px; }

/* Concept bar */
.concept-bar { background: var(--paper-2); color: #3b4253; font-size: 13px; line-height: 1.4; text-align: center; padding: 9px var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-row { height: var(--top-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: auto; height: 40px; }
.brand-name { display: grid; line-height: 1.1; min-width: 0; }
.brand-name b { font: 700 19px/1.05 "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.brand-name small { font-size: 11.5px; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, .8); }
.nav a:hover { color: #fff; }
.top-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; direction: ltr; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; overflow: hidden; }
.lang button { background: none; border: 0; color: rgba(255, 255, 255, .8); height: 38px; padding: 0 11px; font-size: 14px; cursor: pointer; }
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; }
.btn-call { min-height: 40px; padding: 0 16px; background: var(--yellow); color: var(--navy-900); }
.btn-call:hover { background: var(--yellow-hover); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(620px, calc(100svh - var(--top-h) - 36px), 980px);
  display: flex; align-items: center;
  background: linear-gradient(180deg, #061633 0%, #102a57 45%, #3d5682 72%, #8a7a66 72.2%, #8f7a5f 100%);
}
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.hero-stage.is-driving canvas { cursor: grabbing; }
.hero-photo { display: none; }
.hero-copy { padding-block: 64px 96px; pointer-events: none; }
.hero-copy > * { max-width: min(34rem, 46vw); pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 6vw, 88px); line-height: .95; letter-spacing: -.005em; }
.hero .lede { margin-top: 24px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-hint { position: absolute; inset-block-end: 22px; inset-inline-end: var(--gutter); font: 400 12.5px/1 var(--f-mono); color: rgba(255, 255, 255, .6); pointer-events: none; transition: opacity .3s; }
html[lang="ar"] .hero-hint { font-family: var(--f-body); font-size: 14px; }
.hero-stage.is-driving ~ .hero-hint { opacity: 0; }

/* Section shells */
.fleet, .hire, .gallery, .enquire { padding-block: clamp(72px, 9vw, 132px); }
.hire, .enquire { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.head p { max-width: 25rem; color: var(--muted); font-size: 17px; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
.machine-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.machine-list button {
  display: grid; gap: 4px; width: 100%; text-align: start; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 18px 16px; transition: background-color .15s;
}
.machine-list b { font: 600 23px/1.1 var(--f-display); }
.machine-list span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.machine-list button:hover { background: var(--paper-2); }
.machine-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
.machine-list button[aria-selected="true"] span { color: rgba(255, 255, 255, .72); }

.stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(180deg, #eeede7 0%, #e6e4dc 58%, #dcd9cf 100%);
  border: 1px solid var(--line);
}
.stage-3d { position: absolute; inset: 0; transition: opacity .16s; }
.stage-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.stage-3d.is-switching { opacity: 0; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .2s; }
.stage.show-photo .stage-photo { opacity: 1; visibility: visible; }
.stage.show-photo .stage-3d, .stage.show-photo .stage-hint { visibility: hidden; }
.view-switch { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; display: flex; direction: ltr; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; z-index: 2; }
.view-switch button { border: 0; background: none; height: 36px; padding: 0 14px; font-size: 14px; cursor: pointer; color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.stage-hint { position: absolute; inset-block-end: 12px; inset-inline-start: 16px; font: 400 12.5px/1 var(--f-mono); color: var(--muted); pointer-events: none; }
html[lang="ar"] .stage-hint { font-family: var(--f-body); font-size: 14px; }

.sheet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; padding-top: 26px; }
.sheet-title { grid-column: 1 / -1; font-size: 30px; font-weight: 600; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.sheet dl div { border-top: 1px solid var(--line); padding: 12px 0; }
.sheet dt { font-size: 13px; color: var(--muted); }
.sheet dd { margin: 2px 0 0; font-size: 15.5px; }

/* Hire or buy */
.hire h2 { margin-bottom: 44px; }
.hire-cols { display: grid; grid-template-columns: 1fr 1fr; }
.hire-cols article { padding-inline-end: clamp(24px, 4vw, 64px); }
.hire-cols article + article { padding-inline: clamp(24px, 4vw, 64px) 0; border-inline-start: 1px solid var(--line); }
.hire h3 { font-size: 30px; font-weight: 600; }
.hire p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 34rem; }
.ruled { margin: 28px 0 0; }
.ruled div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; }
.ruled dt { color: var(--muted); font-size: 14.5px; }
.ruled dd { margin: 0; font-size: 16px; }

/* Gallery */
.gallery { padding-top: 0; }
.gallery h2 { margin-bottom: 32px; }
.gallery-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px 20px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: clamp(240px, 30vw, 440px); object-fit: cover; }
.gallery-grid .g3, .gallery-grid .g4 { margin-top: 0; }
.gallery-grid .g3 { order: 4; }
.gallery-grid .g4 { order: 3; }
.gallery-grid figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Yard */
.yard { background: var(--navy-yard); color: #fff; padding-block: clamp(64px, 8vw, 112px); }
.yard-row { display: grid; grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Feather the square logo's edges into the section so no box shows. */
.yard-logo {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.yard p { margin-top: 14px; color: rgba(255, 255, 255, .75); font-size: 17px; }
.yard address { font-style: normal; margin-top: 28px; display: grid; gap: 2px; font-size: 19px; }
.yard address span:first-child { font-weight: 600; }
.ruled-dark div { border-top-color: rgba(255, 255, 255, .16); }
.ruled-dark dt { color: rgba(255, 255, 255, .62); }
.ruled-dark a { text-decoration: none; }
.yard .btn { margin-top: 28px; }

/* Enquiry */
.enquire-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.enquire-head p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 26rem; }
.enquire-head .enq-call { color: var(--ink); }
.enq-call a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--yellow); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  background: #fff; border: 1px solid #c6c3b8; border-radius: 3px;
  font-size: 16px;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: 16px 52%, 22px 52%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(11, 31, 69, .18); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid #c6c3b8; border-radius: 3px; background: #fff; font-size: 15px; cursor: pointer; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.form[data-request="buy"] [data-hire-only], .form[data-request="sell"] [data-hire-only] { display: none; }

/* Footer */
.foot { background: var(--navy-900); color: rgba(255, 255, 255, .72); font-size: 14px; padding-block: 36px; }
.foot-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: start; }
.foot b { display: block; color: #fff; font-weight: 600; }
.foot-row > div { display: grid; gap: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.credit a { border-bottom: 1px solid rgba(255, 255, 255, .3); }

/* Arabic type needs room for its marks */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.2; }
html[lang="ar"] .hero h1 { font-size: clamp(40px, 5vw, 74px); line-height: 1.18; }
html[lang="ar"] .machine-list b { font-size: 21px; line-height: 1.35; }

/* No WebGL: show the photographs instead of the 3D */
.no-gl .hero-photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.no-gl .hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 20, 48, .88) 0%, rgba(6, 20, 48, .55) 50%, rgba(6, 20, 48, .1) 100%); }
html[dir="rtl"].no-gl .hero-stage::after { background: linear-gradient(270deg, rgba(6, 20, 48, .88) 0%, rgba(6, 20, 48, .55) 50%, rgba(6, 20, 48, .1) 100%); }
.no-gl .hero-hint, .no-gl .view-switch, .no-gl .stage-hint { display: none; }
.no-gl .stage-photo { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav { display: none; }
}

@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .concept-more { display: none; }
  .brand img { height: 34px; }
  .brand-name b { font-size: 17px; }
  .brand-name small { display: none; }
  .top-row { gap: 10px; }
  .lang button { height: 36px; padding: 0 9px; }
  .btn-call { padding: 0 12px; }

  .hero { align-items: flex-start; min-height: max(640px, calc(100svh - var(--top-h) - 34px)); }
  .hero-copy { padding-block: 34px 0; }
  .hero-copy > * { max-width: 34rem; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  html[lang="ar"] .hero h1 { font-size: clamp(34px, 9.6vw, 52px); }
  .hero .lede { font-size: 16px; margin-top: 16px; }
  .actions { margin-top: 22px; }
  .actions .btn { flex: 1 1 auto; min-height: 48px; padding: 0 16px; }
  .hero-hint { inset-inline: var(--gutter); text-align: center; }
  .no-gl .hero { align-items: flex-end; }
  .no-gl .hero-copy { padding-block: 200px 48px; }
  .no-gl .hero-stage::after, html[dir="rtl"].no-gl .hero-stage::after { background: linear-gradient(0deg, rgba(6, 20, 48, .92) 0%, rgba(6, 20, 48, .7) 55%, rgba(6, 20, 48, .15) 100%); }

  .head { display: block; margin-bottom: 28px; }
  .head p { margin-top: 12px; font-size: 16px; }
  .fleet-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .machine-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; gap: 6px; scrollbar-width: none;
    /* run to the screen edge so it is obvious the row scrolls */
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .machine-list::-webkit-scrollbar { display: none; }
  .machine-list li { flex: none; scroll-snap-align: start; }
  .machine-list button { padding: 11px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
  .machine-list b { font-size: 17px; white-space: nowrap; }
  .machine-list span { display: none; }
  .stage { aspect-ratio: 4 / 3.2; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet dl { grid-template-columns: minmax(0, 1fr); }
  .sheet .btn { width: 100%; margin-top: 8px; }

  .hire-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hire-cols article, .hire-cols article + article { padding-inline: 0; border-inline-start: 0; }
  .hire-cols article + article { border-top: 1px solid var(--line); padding-top: 40px; }
  .ruled div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid img { height: auto; aspect-ratio: 4 / 3; }
  .gallery-grid .g3, .gallery-grid .g4 { order: 0; }

  .yard-row { grid-template-columns: minmax(0, 1fr); }
  .yard-logo { max-width: 260px; margin-inline: auto; }
  .enquire-row { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
