:root {
  --galv: #EEF0F2;
  --paper: #FFFFFF;
  --ink: #1A1E23;
  --steel: #646D78;
  --line: #D5DAE0;
  --red: #C1121F;
  --red-dark: #9E0E19;
  --head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--galv);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .7em 1.5em;
  font: 600 1rem/1 var(--head); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 3px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tile {
  display: grid; place-items: center;
  width: 42px; height: 42px; background: var(--ink); border-radius: 3px;
}
.brand-tile img { width: 28px; }
.brand-word { font: 800 1.35rem/1 "Alexandria", sans-serif; letter-spacing: .02em; direction: ltr; }
.brand-word b { color: var(--red); font-weight: inherit; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--steel); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang { font-family: "Alexandria", sans-serif; font-weight: 600; text-decoration: none; font-size: .95rem; }
.site-head .btn { min-height: 42px; padding: .55em 1.1em; }

/* The floor: every door stands on this line */
.floor {
  position: relative;
  border-bottom: 3px solid var(--ink);
}
.floor::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%;
  height: 56px; background: var(--line);
}

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero .floor {
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 40px;
}
.hero-text { padding-bottom: clamp(48px, 8vw, 110px); max-width: 40rem; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 700; letter-spacing: -.01em; }
.hero-text p { margin-top: 20px; font-size: 1.2rem; color: var(--steel); max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-door { justify-self: center; position: relative; }
.hero-door img { height: min(62vh, 560px); width: auto; box-shadow: 0 30px 40px -30px rgba(26,30,35,.6); }
.hero-spacer { height: 56px; }

/* Code plate */
.plate {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%); z-index: 1;
  background: var(--red); color: #fff;
  font: 700 .85rem/1 "Alexandria", sans-serif; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 2px; direction: ltr;
}

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 44px; }
.section-head h2, .why h2, .steps h2, .contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.section-head p { color: var(--steel); max-width: 36rem; margin-top: 12px; }
.pdf-link { font-weight: 600; white-space: nowrap; }

/* Lineup */
.lineup-scroll {
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; padding-top: 12px;
}
.lineup {
  display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 56px);
  width: max-content; min-width: 100%;
  padding-inline: var(--gutter);
  margin: 0; list-style: none;
}
.lineup-scroll .floor { padding-bottom: 0; }
.lineup-scroll { padding-bottom: 72px; }
.door { position: relative; scroll-snap-align: center; }
.door a { display: block; text-decoration: none; }
.door img {
  height: clamp(260px, 38vw, 380px); width: auto;
  transition: transform .2s ease;
}
.door a:hover img, .door a:focus-visible img { transform: translateY(-6px); }
.scroll-hint { color: var(--steel); font-size: .95rem; margin-top: 8px; }

.more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; text-align: center; }
.more .scroll-hint { margin: 0; }

/* Catalog page: a grid of showroom bays, each door on its own floor */
.page-head { padding-block: clamp(40px, 6vw, 72px) 36px; }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; }
.shelves {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-flow: dense; gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.shelves .wide { grid-column: span 2; }
.shelves a {
  display: block; height: 100%; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.shelves a:hover, .shelves a:focus-visible { border-color: var(--ink); box-shadow: 0 18px 30px -22px rgba(26,30,35,.55); }
.stage {
  display: flex; justify-content: center; align-items: flex-end;
  height: 340px; padding: 32px 22px 0;
  border-bottom: 3px solid var(--ink);
}
.stage img { max-height: 100%; width: auto; transition: transform .2s ease; }
.shelves a:hover img, .shelves a:focus-visible img { transform: translateY(-6px); }
.shelves .plate-row { display: block; background: var(--line); padding: 14px 0 16px; text-align: center; }
.shelves .plate { position: static; transform: none; display: inline-block; }
.ask { background: var(--paper); border-top: 1px solid var(--line); }
.ask .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ask h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.ask p { color: var(--steel); margin-top: 8px; }

/* Why */
.why { background: var(--paper); }
.why .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px 72px; }
.why-intro p { color: var(--steel); margin-top: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; margin: 0; padding: 0; list-style: none; }
.facts li { border-top: 3px solid var(--ink); padding-top: 16px; }
.facts h3 { font-size: 1.2rem; font-weight: 600; }
.facts p { color: var(--steel); margin-top: 6px; }

/* About (reuses .facts) */
.about { background: var(--paper); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px 72px; }
.about h2, .build h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.about-intro p { color: var(--steel); margin-top: 16px; }
.about-intro b { color: var(--red); font-family: "Alexandria", sans-serif; font-weight: 700; }
.facts .span { grid-column: 1 / -1; }
.owner { margin: 28px 0 0; }
.owner img { border: 1px solid var(--line); border-radius: 3px; }
.owner figcaption { color: var(--steel); font-size: .9rem; margin-top: 8px; }

/* Inside the door */
.build-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px;
  align-items: center; padding-block: 40px; border-top: 1px solid var(--line);
}
.build-fig { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.build-fig img { margin-inline: auto; max-height: 640px; width: auto; }
.build-row:last-child { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.build-row:last-child .build-fig img { max-height: none; }
.build h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 18px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--steel); }
.specs dd { margin: 0; font-weight: 600; text-align: end; }
.note { color: var(--steel); margin-block: -8px 16px; font-size: .95rem; }
.specs + .note { margin-block: 16px 0; }
.parts { margin: 0; padding: 0; list-style: none; counter-reset: p; columns: 2; column-gap: 32px; }
.parts li { counter-increment: p; display: flex; gap: 10px; padding-block: 7px; break-inside: avoid; }
.parts li::before {
  content: counter(p); flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--red); color: #fff; font: 700 .8rem/1 "Alexandria", sans-serif;
}

/* Steps */
.steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: block;
  font: 700 3.2rem/1 "Alexandria", sans-serif; color: var(--line);
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.15rem; font-weight: 600; }
.steps p { color: var(--steel); margin-top: 6px; }

/* Contact */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: start; }
.contact-lead p { color: var(--steel); margin-top: 16px; max-width: 30rem; }
.contact-lead .actions { margin-top: 28px; }
.contact dl { margin: 0; display: grid; gap: 22px; }
.contact dt { color: var(--steel); font-size: .95rem; }
.contact dd { margin: 2px 0 0; font: 600 1.25rem/1.5 var(--head); }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--red); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Footer */
.site-foot { background: var(--ink); color: #B9C0C8; padding-block: 28px; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot a { color: #fff; }

/* Small screens */
@media (max-width: 860px) {
  .nav { display: none; }
  .site-head .wrap { gap: 14px; }
  .lang { margin-inline-start: auto; }
  .hero .floor { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { padding-bottom: 0; }
  .hero-door img { height: 400px; }
  .why .wrap, .about .wrap, .contact .wrap, .build-row, .build-row:last-child { grid-template-columns: 1fr; }
  .build-fig img { max-height: 520px; }
  .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-head .btn span { display: none; }
  .site-head .btn { padding: .55em .7em; }
  .facts, .steps ol, .specs { grid-template-columns: 1fr; }
  .parts { columns: 1; }
  .shelves { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stage { height: 240px; padding: 20px 12px 0; }
  .brand-word { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
