/*
 * EXTRA INDUSTRY — الملف التعريفي
 * غيّر ألوان الهوية من المتغيرات التالية فقط.
 */
@font-face {
  font-family: "BEIN Company";
  src: url("./assets/fonts/bein-normal.ttf?v=20260805-bein2") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "BEIN Company";
  src: url("./assets/fonts/bein-black.ttf?v=20260805-bein2") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ivory: #f3efe6;
  --ivory-deep: #ece5d9;
  --beige: #e7ded0;
  --gold: #c98a3d;
  --gold-dark: #7d4c1b;
  --charcoal: #222222;
  --charcoal-soft: #383633;
  --red: #b71924;
  --white: #ffffff;
  --muted: #716c65;
  --line: rgba(34, 34, 34, 0.12);
  --line-light: rgba(255, 255, 255, 0.17);
  --shadow-sm: 0 10px 30px rgba(42, 34, 24, 0.07);
  --shadow-md: 0 24px 65px rgba(42, 34, 24, 0.12);
  --shadow-page: 0 18px 48px rgba(36, 30, 22, 0.14), 0 2px 8px rgba(36, 30, 22, 0.08);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --header-height: 88px;
  --arabic: "BEIN Company", Tahoma, Arial, sans-serif;
  --english: "BEIN Company", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: var(--arabic);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
output {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid #6f3e12;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96);
}

::selection {
  color: var(--white);
  background: var(--red);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.section-pad {
  padding-block: 112px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 16px;
  z-index: 9999;
  padding: 10px 18px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: height 280ms var(--ease), background 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(243, 239, 230, 0.96);
  border-bottom-color: rgba(34, 34, 34, 0.08);
  box-shadow: 0 12px 40px rgba(38, 31, 23, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 13px;
}

.brand-mark {
  width: 90px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: width 280ms var(--ease), height 280ms var(--ease);
}

.brand-mark img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.is-scrolled .brand-mark {
  width: 80px;
  height: 44px;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--gold-dark);
  font: 600 9px/1 var(--english);
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
}

.primary-nav a {
  position: relative;
  padding-block: 10px;
  color: #4c4842;
  font-size: 14px;
  font-weight: 500;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 220ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-label {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(34, 34, 34, 0.17);
  border-radius: 50%;
  font: 600 10px/1 var(--english);
  letter-spacing: 0.08em;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 11px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-toggle span {
  width: 100%;
  height: 1.5px;
  display: block;
  margin-block: 5px;
  background: var(--charcoal);
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Shared buttons and headings */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.4;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-whatsapp svg,
.button-gold svg {
  fill: currentColor;
  stroke: none;
}

.button-compact {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 13px;
}

.button-primary {
  color: var(--white);
  background: var(--charcoal);
  box-shadow: 0 9px 24px rgba(34, 34, 34, 0.13);
}

.button-primary:hover {
  background: #0e0e0e;
  box-shadow: 0 13px 30px rgba(34, 34, 34, 0.19);
}

.button-secondary {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(34, 34, 34, 0.2);
}

.button-secondary:hover {
  background: var(--white);
  border-color: rgba(34, 34, 34, 0.35);
}

.button-whatsapp {
  color: var(--white);
  background: #217f56;
}

.button-whatsapp:hover {
  background: #196c48;
  box-shadow: 0 10px 24px rgba(25, 108, 72, 0.18);
}

.button-gold {
  color: #1f1b16;
  background: #d8a25c;
}

.button-gold:hover {
  background: #e4b571;
  box-shadow: 0 14px 30px rgba(201, 138, 61, 0.2);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow > span {
  width: 31px;
  height: 1px;
  display: inline-block;
  background: currentColor;
}

.eyebrow-light {
  color: #e3b77d;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 46px;
}

.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 74px) 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(201, 138, 61, 0.09), transparent 28%),
    linear-gradient(135deg, var(--ivory) 0%, #f7f4ee 60%, #ece4d7 100%);
}

.hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(201, 138, 61, 0.65), transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(350px, 0.73fr);
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
}

.hero-content h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(45px, 6.2vw, 78px);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: -0.045em;
}

.hero-content h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
}

.hero-content h1 em::after {
  position: absolute;
  right: 2%;
  bottom: -2px;
  width: 96%;
  height: 5px;
  content: "";
  border-top: 1px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 700px;
  margin: 30px 0 0;
  color: #625d56;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  gap: 0;
  margin: 47px 0 0;
}

.hero-facts > div {
  min-width: 215px;
  padding-inline: 22px;
  border-inline-start: 1px solid rgba(34, 34, 34, 0.14);
}

.hero-facts > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.hero-facts dt {
  margin-bottom: 2px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
}

.hero-facts dd {
  margin: 0;
  color: #4b4742;
  font-size: 13px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 21px;
}

.hero-art::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(201, 138, 61, 0.65);
  border-radius: 2px 100px 2px 2px;
  transform: translate(10px, -10px);
}

.art-frame {
  position: relative;
  min-height: 520px;
  padding: 35px;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 2px 86px 2px 2px;
  box-shadow: var(--shadow-md);
}

.art-frame::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  content: "";
  border: 1px solid rgba(201, 138, 61, 0.3);
  border-radius: 50%;
}

.art-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  color: rgba(255, 255, 255, 0.55);
  font: 500 9px/1 var(--english);
  letter-spacing: 0.22em;
}

.art-topline b {
  color: var(--gold);
  font-size: 11px;
}

.art-monogram {
  position: absolute;
  top: 115px;
  right: 35px;
  z-index: 2;
  display: grid;
  direction: ltr;
  font-family: var(--english);
  line-height: 0.86;
  text-align: left;
}

.art-monogram span {
  color: rgba(255, 255, 255, 0.34);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.art-monogram strong {
  color: var(--gold);
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.art-plan {
  position: absolute;
  inset: 42% -5% -8% 23%;
  opacity: 0.65;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: skewY(-8deg);
}

.art-plan i {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.19);
}

.plan-a { inset: 14% 12% 18% 45%; }
.plan-b { inset: 8% 58% 54% 9%; }
.plan-c { inset: 51% 60% 10% 8%; }
.plan-d { inset: 33% 35% 35% 34%; border-color: rgba(201, 138, 61, 0.7) !important; }

.art-frame > p {
  position: absolute;
  right: 35px;
  bottom: 29px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.art-badge {
  position: absolute;
  bottom: 58px;
  left: -12px;
  z-index: 4;
  padding: 10px 19px;
  color: var(--charcoal);
  background: var(--white);
  border-inline-start: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-lines span {
  position: absolute;
  display: block;
  border-color: rgba(201, 138, 61, 0.14);
  border-style: solid;
}

.hero-lines span:nth-child(1) {
  top: 18%;
  left: -80px;
  width: 310px;
  height: 310px;
  border-width: 1px;
  border-radius: 50%;
}

.hero-lines span:nth-child(2) {
  right: 5%;
  bottom: -150px;
  width: 480px;
  height: 480px;
  border-width: 1px 0 0 1px;
  transform: rotate(14deg);
}

.hero-lines span:nth-child(3) {
  top: 0;
  right: 46%;
  width: 1px;
  height: 26%;
  background: linear-gradient(var(--gold), transparent);
  border: 0;
  opacity: 0.3;
}

.hero-scroll {
  position: absolute;
  right: 50%;
  bottom: 25px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #746e66;
  font-size: 10px;
  transform: translateX(50%);
}

.hero-scroll span {
  position: relative;
  width: 20px;
  height: 31px;
  border: 1px solid rgba(34, 34, 34, 0.25);
  border-radius: 12px;
}

.hero-scroll span::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 5px;
  content: "";
  background: var(--gold-dark);
  border-radius: 2px;
  transform: translateX(-50%);
}

/* PDF viewer */
.profile-section {
  background: #eee9df;
}

.viewer-shell {
  position: relative;
  overflow: clip;
  background: #d8d4cc;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pdf-toolbar {
  position: sticky;
  top: 80px;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  color: #eeece8;
  background: rgba(34, 34, 34, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.pdf-toolbar::-webkit-scrollbar {
  height: 3px;
}

.pdf-toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

.toolbar-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.toolbar-spacer {
  min-width: 12px;
  flex: 1 0 12px;
}

.toolbar-divider {
  width: 1px;
  height: 25px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.15);
}

.tool-button {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  cursor: pointer;
  color: #e7e3dc;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tool-button:hover,
.tool-button[aria-pressed="true"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.tool-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-button.icon-only {
  padding-inline: 10px;
}

.tool-download {
  color: #201c17;
  background: var(--gold);
}

.tool-download:hover {
  color: #15120f;
  background: #dba052;
}

.page-indicator,
.zoom-indicator {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 10px;
  color: rgba(255, 255, 255, 0.68);
  direction: rtl;
  font: 500 12px/1 var(--arabic);
  white-space: nowrap;
}

.page-indicator b {
  color: var(--white);
  font: 600 13px/1 var(--english);
}

.page-indicator #totalPages,
.zoom-indicator {
  font-family: var(--english);
}

.zoom-indicator {
  min-width: 56px;
  padding-inline: 6px;
}

.viewer-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  direction: ltr;
}

.thumbnail-sidebar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: min(780px, calc(100vh - 120px));
  position: sticky;
  top: 144px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  background: #2e2d2a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 280ms var(--ease), opacity 240ms ease, transform 280ms var(--ease);
}

.viewer-shell.sidebar-collapsed .viewer-stage,
.viewer-shell.thumbnails-hidden .viewer-stage,
.viewer-shell.sidebar-hidden .viewer-stage {
  grid-template-columns: 0 minmax(0, 1fr);
}

.viewer-shell.sidebar-collapsed .thumbnail-sidebar,
.viewer-shell.thumbnails-hidden .thumbnail-sidebar,
.viewer-shell.sidebar-hidden .thumbnail-sidebar,
.thumbnail-sidebar.is-hidden {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
}

.sidebar-title {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-title small {
  color: rgba(255, 255, 255, 0.45);
  font: 500 10px/1 var(--english);
}

.thumbnail-list {
  flex: 1;
  padding: 16px 13px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.thumbnail-button,
.thumbnail-item {
  width: 100%;
  display: block;
  position: relative;
  margin: 0 0 16px;
  padding: 7px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.thumbnail-button:hover,
.thumbnail-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.thumbnail-button.is-active,
.thumbnail-button.active,
.thumbnail-item.is-active,
.thumbnail-item.active {
  background: rgba(201, 138, 61, 0.11);
  border-color: var(--gold);
}

.thumbnail-button canvas,
.thumbnail-item canvas {
  width: 100%;
  height: auto;
  background: #f9f9f9;
  border-radius: 3px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.thumbnail-label,
.thumbnail-button > span,
.thumbnail-item > span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  direction: rtl;
  font-size: 10px;
  text-align: center;
}

.document-viewport {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  position: relative;
  overflow-x: auto;
  direction: rtl;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    #d8d4cc;
  background-size: 42px 42px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 34, 34, 0.25) transparent;
}

.pages-container {
  width: max-content;
  min-width: 100%;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 48px clamp(22px, 5vw, 70px) 74px;
  direction: ltr;
}

.pdf-page,
.page-wrapper {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-page);
  scroll-margin-top: 154px;
  transition: opacity 320ms ease, transform 320ms var(--ease), box-shadow 200ms ease;
}

.pdf-page.is-pending,
.page-wrapper.is-pending {
  min-width: min(850px, calc(100vw - 120px));
  aspect-ratio: 0.707 / 1;
  overflow: hidden;
  background: linear-gradient(100deg, #f5f3ef 25%, #fff 42%, #f5f3ef 62%);
  background-size: 300% 100%;
  animation: skeletonSweep 1.8s ease-in-out infinite;
}

.pdf-page.is-rendering,
.pdf-page.is-pending,
.page-wrapper.is-rendering,
.page-wrapper.is-pending {
  opacity: 0.72;
}

.pdf-page.is-rendered,
.page-wrapper.is-rendered,
.pdf-page.rendered,
.page-wrapper.rendered {
  opacity: 1;
}

.pdf-page canvas,
.page-wrapper canvas {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.page-number,
.page-label {
  position: absolute;
  right: 50%;
  bottom: -27px;
  z-index: 2;
  padding: 2px 10px;
  color: #68635d;
  background: rgba(243, 239, 230, 0.9);
  border: 1px solid rgba(34, 34, 34, 0.09);
  border-radius: 12px;
  direction: rtl;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
  transform: translateX(50%);
}

.pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 75px 24px;
  direction: rtl;
  background: #d8d4cc;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.pdf-loading.is-hidden,
.pdf-loading.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-brand {
  width: 94px;
  min-height: 55px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  opacity: 0.84;
}

.loading-copy {
  width: min(100%, 500px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #5e5952;
  font-size: 13px;
}

.loading-copy strong {
  font-weight: 600;
}

.loading-copy span {
  color: var(--gold-dark);
  direction: ltr;
  font: 600 12px/1 var(--english);
}

.progress-track {
  width: min(100%, 500px);
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(34, 34, 34, 0.1);
  border-radius: 10px;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--gold);
  border-radius: inherit;
  transition: width 180ms ease;
}

.skeleton-pages {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 45px;
}

.skeleton-pages i {
  display: block;
  aspect-ratio: 0.707 / 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 25%, rgba(255, 255, 255, 0.8) 43%, rgba(255, 255, 255, 0.45) 62%);
  background-size: 300% 100%;
  border-radius: 6px;
  box-shadow: 0 15px 38px rgba(36, 30, 22, 0.08);
  animation: skeletonSweep 1.8s ease-in-out infinite;
}

.skeleton-pages i:nth-child(2) { animation-delay: 120ms; }
.skeleton-pages i:nth-child(3) { animation-delay: 240ms; }

@keyframes skeletonSweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.pdf-error {
  min-height: 620px;
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 22px;
  direction: rtl;
  text-align: center;
}

.error-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(183, 25, 36, 0.08);
  border: 1px solid rgba(183, 25, 36, 0.2);
  border-radius: 50%;
  font: 600 24px/1 var(--english);
}

.pdf-error h3 {
  margin: 18px 0 5px;
  font-size: 25px;
}

.pdf-error p {
  max-width: 580px;
  margin: 0 0 23px;
  color: var(--muted);
}

.pdf-error b {
  direction: ltr;
  font-family: var(--english);
  font-size: 12px;
}

.pdf-error > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.noscript-message {
  margin-top: 16px;
  padding: 18px;
  background: #fff8e6;
  border: 1px solid #e6cc8c;
  border-radius: var(--radius-sm);
  text-align: center;
}

.noscript-message a {
  color: var(--red);
  text-decoration: underline;
}

.viewer-shell:fullscreen,
.viewer-shell:-webkit-full-screen {
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #d8d4cc;
}

.viewer-shell:fullscreen .pdf-toolbar,
.viewer-shell:-webkit-full-screen .pdf-toolbar {
  top: 0;
}

.viewer-shell:fullscreen .viewer-stage,
.viewer-shell:-webkit-full-screen .viewer-stage {
  height: calc(100vh - 64px);
  min-height: 0;
}

.viewer-shell:fullscreen .thumbnail-sidebar,
.viewer-shell:-webkit-full-screen .thumbnail-sidebar,
.viewer-shell:fullscreen .document-viewport,
.viewer-shell:-webkit-full-screen .document-viewport {
  height: 100%;
  overflow-y: auto;
}

/* Services */
.services {
  background: #f8f5ef;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
}

.service-card {
  min-height: 285px;
  position: relative;
  padding: 30px 24px 25px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 9px 25px rgba(42, 34, 24, 0.035);
  transition: transform 260ms var(--ease), border-color 220ms ease, box-shadow 260ms ease;
}

.service-card:hover {
  border-color: rgba(201, 138, 61, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-6px);
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 300ms var(--ease);
}

.service-card:hover::after {
  width: 100%;
}

.service-number {
  position: absolute;
  top: 21px;
  left: 21px;
  color: #aaa39a;
  font: 500 9px/1 var(--english);
  letter-spacing: 0.15em;
}

.service-card > svg {
  width: 43px;
  height: 43px;
  margin-bottom: 34px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 11px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Contact */
.contact {
  background: var(--ivory);
}

.contact-card {
  min-height: 500px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: 75px;
  padding: clamp(52px, 7vw, 88px);
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--red), var(--gold));
}

.contact-pattern {
  position: absolute;
  top: -190px;
  left: -120px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(201, 138, 61, 0.18);
  border-radius: 50%;
}

.contact-pattern::before,
.contact-pattern::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(201, 138, 61, 0.13);
  border-radius: 50%;
}

.contact-pattern::before { inset: 62px; }
.contact-pattern::after { inset: 130px; }

.contact-content,
.contact-details {
  position: relative;
  z-index: 2;
}

.contact-content > p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

.contact-details {
  display: grid;
  gap: 0;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.contact-details > div {
  display: grid;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line-light);
}

.contact-details > div:last-child {
  border-bottom: 0;
}

.contact-details span {
  margin-bottom: 4px;
  color: #d5a66a;
  font-size: 10px;
  font-weight: 600;
}

.contact-details a,
.contact-details address {
  width: fit-content;
  color: rgba(255, 255, 255, 0.79);
  font-size: 13px;
  font-style: normal;
}

.contact-details a:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  padding-top: 78px;
  color: #d9d6d0;
  background: #191919;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: clamp(35px, 6vw, 90px);
  padding-bottom: 62px;
}

.footer-brand img {
  width: 112px;
  max-height: 70px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: right center;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand > div {
  display: grid;
  line-height: 1.45;
}

.footer-brand strong {
  color: var(--white);
  font-size: 16px;
}

.footer-brand span {
  margin-top: 4px;
  color: var(--gold);
  font: 600 10px/1 var(--english);
  letter-spacing: 0.15em;
}

.footer-brand p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.footer-column a,
.footer-column address,
.footer-column p {
  margin: 0;
  color: rgba(255, 255, 255, 0.51);
  font-size: 12px;
  font-style: normal;
  transition: color 180ms ease;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom > span {
  font: 500 9px/1 var(--english);
  letter-spacing: 0.16em;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 25px;
  z-index: 5000;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  color: var(--white);
  background: #242321;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 15px);
  transition: opacity 200ms ease, transform 250ms var(--ease);
}

.toast.is-visible,
.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

/* Viewport entry motion — content stays readable if JavaScript is unavailable. */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 750ms var(--ease);
}

.js .reveal.is-visible,
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1120px) {
  .header-inner { gap: 22px; }
  .primary-nav { gap: 20px; }
  .brand-copy { display: none; }
  .hero-grid { gap: 60px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card:nth-child(4),
  .service-card:nth-child(5) { min-height: 245px; }
  .footer-main { grid-template-columns: 1.2fr repeat(3, 0.8fr); gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .container { width: min(100% - 36px, 1240px); }
  .section-pad { padding-block: 86px; }
  .site-header { background: rgba(243, 239, 230, 0.94); border-bottom-color: rgba(34, 34, 34, 0.07); }
  .site-header.is-scrolled { height: 66px; }
  .header-inner { justify-content: space-between; }
  .menu-toggle { display: block; order: 3; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-inline-start: auto; }
  .primary-nav {
    position: fixed;
    inset: var(--header-height) 18px auto;
    z-index: 999;
    display: grid;
    gap: 0;
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    background: #f8f5ef;
    border: 1px solid rgba(34, 34, 34, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 240ms var(--ease), visibility 200ms ease;
  }
  .primary-nav.is-open,
  .primary-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .primary-nav a { padding: 12px 13px; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; padding-top: 135px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 760px; }
  .hero-art { display: none; }
  .hero-scroll { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading > p { max-width: 700px; }
  .viewer-stage { grid-template-columns: minmax(0, 1fr); }
  .viewer-shell.sidebar-collapsed .viewer-stage,
  .viewer-shell.thumbnails-hidden .viewer-stage,
  .viewer-shell.sidebar-hidden .viewer-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .thumbnail-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    width: 185px;
    height: 100%;
    transform: translateX(-100%);
    opacity: 0;
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.2);
  }
  .viewer-shell.thumbnails-open .thumbnail-sidebar,
  .viewer-shell.sidebar-open .thumbnail-sidebar,
  .thumbnail-sidebar.is-open {
    opacity: 1;
    transform: translateX(0);
  }
  .viewer-shell.sidebar-collapsed .thumbnail-sidebar,
  .viewer-shell.thumbnails-hidden .thumbnail-sidebar,
  .viewer-shell.sidebar-hidden .thumbnail-sidebar { width: 185px; }
  .document-viewport { grid-column: 1; }
  .pdf-toolbar { top: 74px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 45px; }
  .contact-details { grid-template-columns: repeat(3, 1fr); }
  .contact-details > div { border-bottom: 0; border-inline-end: 1px solid var(--line-light); }
  .contact-details > div:last-child { border-inline-end: 0; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 24px, 1240px); }
  .section-pad { padding-block: 68px; }
  .site-header.is-scrolled { height: 62px; }
  .brand-mark { width: 78px; height: 42px; }
  .language-label { display: none; }
  .header-actions .button-compact { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
  .header-actions .button-compact span { display: none; }
  .header-actions .button-compact svg { width: 20px; height: 20px; }
  .menu-toggle { width: 42px; height: 42px; }
  .primary-nav { inset-block-start: 66px; }
  .hero { padding: 118px 0 70px; background: radial-gradient(circle at 15% 25%, rgba(201, 138, 61, 0.11), transparent 30%), linear-gradient(155deg, var(--ivory), #eee6d9); }
  .hero-content h1 { font-size: clamp(39px, 10vw, 48px); line-height: 1.3; }
  .hero-lead { margin-top: 23px; font-size: 16px; line-height: 1.85; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-facts { display: grid; gap: 10px; margin-top: 34px; }
  .hero-facts > div,
  .hero-facts > div:first-child { min-width: 0; padding: 7px 14px; border: 0; border-inline-start: 2px solid rgba(201, 138, 61, 0.5); }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2,
  .contact-card h2 { font-size: 37px; }
  .section-heading > p { font-size: 15px; }
  .viewer-shell { width: calc(100% - 16px); border-radius: 17px; }
  .pdf-toolbar { top: 66px; min-height: 58px; padding: 8px; }
  .tool-button { min-width: 40px; height: 40px; padding-inline: 9px; }
  .tool-label { display: none; }
  .page-indicator { padding-inline: 5px; }
  .toolbar-divider { height: 21px; }
  .pages-container { gap: 31px; padding: 25px 10px 48px; }
  .pdf-page.is-pending,
  .page-wrapper.is-pending { min-width: calc(100vw - 52px); }
  .pdf-page,
  .page-wrapper { border-radius: 4px; scroll-margin-top: 132px; }
  .pdf-page canvas,
  .page-wrapper canvas { border-radius: 4px; }
  .page-number,
  .page-label { bottom: -24px; }
  .pdf-loading { min-height: 600px; padding-top: 55px; }
  .skeleton-pages { grid-template-columns: 1fr; width: 62%; }
  .skeleton-pages i:nth-child(n+2) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { min-height: 225px; padding: 26px 23px; }
  .service-card > svg { margin-bottom: 26px; }
  .contact { padding-inline: 0; }
  .contact-card { width: calc(100% - 24px); min-height: 0; gap: 35px; padding: 48px 25px; }
  .contact-content > p:not(.eyebrow) { font-size: 16px; }
  .contact-actions { display: grid; }
  .contact-actions .button { width: 100%; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details > div { border-inline-end: 0; border-bottom: 1px solid var(--line-light); }
  .contact-details > div:last-child { border-bottom: 0; }
  .site-footer { padding-top: 58px; }
  .footer-main { grid-template-columns: 1fr; gap: 37px; padding-bottom: 46px; }
  .footer-bottom { min-height: 90px; flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .hero,
  .services,
  .contact,
  .site-footer,
  .pdf-toolbar,
  .thumbnail-sidebar { display: none !important; }
  .profile-section { padding: 0; background: #fff; }
  .profile-section .section-heading { display: none; }
  .viewer-shell { width: 100%; border: 0; box-shadow: none; }
  .viewer-stage { display: block; }
  .document-viewport { overflow: visible; background: #fff; }
  .pages-container { gap: 0; padding: 0; }
  .pdf-page,
  .page-wrapper { page-break-after: always; box-shadow: none; border-radius: 0; }
  .page-number,
  .page-label { display: none; }
}
