/* ==========================================================================
   Razain — group portfolio
   White & elegant: ivory neutrals, brand navy + red from the logo, a touch of gold.
   ========================================================================== */
:root {
  --white: #ffffff;
  --ivory: #f8f5ef;
  --ivory-2: #f1ece3;
  --ink: #16182b;
  --text: #4b4d5f;
  --muted: #8b8d9a;
  --line: #e8e2d7;
  --navy: #262d7f;
  --navy-2: #1a1f5e;
  --navy-3: #10133d;
  --red: #e0373a;
  --gold: #b58e4c;
  --gold-2: #d8bc86;
  --radius: 4px;
  --shadow-sm: 0 6px 18px -10px rgba(22, 24, 43, .18);
  --shadow: 0 24px 60px -28px rgba(22, 24, 43, .28);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --top-h: 44px;
  --header-h: 92px;
}
html[lang="ar"] {
  --font-display: 'El Messiri', 'Amiri', serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 6px); overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px; background: #fff; transition: opacity .7s var(--ease), visibility .7s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader img { width: 150px; }
.preloader__bar { position: relative; width: 140px; height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--navy); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .35s var(--ease), border-color .35s, background .35s, transform .35s var(--ease);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; font-weight: 700; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
html[dir="rtl"] .btn::before { transform-origin: left; }
html[dir="rtl"] .btn:hover::before { transform-origin: right; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy::before { background: var(--navy-3); }
.btn--light { background: #fff; color: var(--navy-2); }
.btn--light::before { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--navy-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { color: #fff; }
.btn--sm { height: 46px; padding: 0 22px; font-size: 13px; }
.arrow { position: relative; width: 18px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { width: 26px; }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .link { letter-spacing: 0; font-size: 15px; }
.link:hover .arrow { width: 26px; }

/* ---------- Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.kicker--center::after { content: ''; width: 34px; height: 1px; background: var(--gold); }
.kicker--light { color: var(--gold-2); }
.title { margin: 14px 0 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; color: var(--ink); }
html[lang="ar"] .title { line-height: 1.35; }
.lead { font-size: 17.5px; color: var(--text); margin: 0 0 26px; }
.sub { margin: 0; color: var(--muted); font-size: 17px; }
.head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.head--light .title { color: #fff; }
.section { padding: 120px 0; position: relative; }
.section--ivory { background: var(--ivory); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { height: var(--top-h); background: var(--navy-3); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__info { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .2s; }
.topbar__info a:hover { color: #fff; }
.topbar__info svg { width: 15px; height: 15px; color: var(--gold-2); flex: none; }
.topbar__end { display: flex; align-items: center; gap: 18px; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { display: grid; place-items: center; color: rgba(255, 255, 255, .75); transition: color .2s; }
.topbar__social a:hover { color: var(--gold-2); }
.topbar__social svg { width: 15px; height: 15px; }
.topbar__lang { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: none; color: #fff; font-size: 13px; transition: background .2s, border-color .2s; }
.topbar__lang:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.topbar__lang svg { width: 14px; height: 14px; }

.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: height .35s var(--ease), box-shadow .35s; }
.header.scrolled { --header-h: 76px; box-shadow: 0 14px 34px -24px rgba(22, 24, 43, .35); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.header__logo img { height: 56px; width: auto; transition: height .35s var(--ease); }
.header.scrolled .header__logo img { height: 46px; }
.nav { display: flex; gap: 34px; margin-inline-start: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .25s; }
html[lang="ar"] .nav a { font-size: 16.5px; }
.nav a::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -2px; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.burger span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero — full-bleed photography with an elegant gradient
   ========================================================================== */
.hero { position: relative; height: min(calc(100svh - var(--header-h) - var(--top-h)), 780px); min-height: 580px; overflow: hidden; background: var(--navy-3); color: #fff; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; z-index: 1; }
.slide.active { visibility: visible; z-index: 2; }
.slide.leaving { visibility: visible; z-index: 1; }
.slide__img { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%); }
html[dir="rtl"] .slide__img { clip-path: inset(0 100% 0 0); }
.slide.active .slide__img { animation: wipe 1.3s var(--ease) forwards; }
.slide.first .slide__img { animation: none; clip-path: inset(0 0 0 0); }
.slide.leaving .slide__img { clip-path: inset(0 0 0 0); }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.slide.active .slide__img img { animation: zoom 9s var(--ease) forwards; }
.slide.leaving .slide__img img { transform: scale(1.02); }
@keyframes zoom { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.slide__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 15, 46, .9) 0%, rgba(12, 15, 46, .72) 38%, rgba(12, 15, 46, .25) 72%, rgba(12, 15, 46, .1) 100%); }
html[dir="rtl"] .slide__img::after { background: linear-gradient(-90deg, rgba(12, 15, 46, .9) 0%, rgba(12, 15, 46, .72) 38%, rgba(12, 15, 46, .25) 72%, rgba(12, 15, 46, .1) 100%); }
.slide__content { position: relative; z-index: 2; width: min(1240px, 100% - 48px); margin-inline: auto; padding-bottom: 80px; }
.slide__text { max-width: 700px; }
.slide__eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-2); font-size: 13.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; opacity: 0; transform: translateY(20px); }
html[lang="ar"] .slide__eyebrow { letter-spacing: 0; font-size: 17px; }
.slide__eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--gold-2); }
.slide__title { margin: 18px 0 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 76px); line-height: 1.04; color: #fff; }
html[lang="ar"] .slide__title { line-height: 1.32; font-size: clamp(38px, 4.8vw, 68px); }
.slide__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.slide__title .w > span { display: inline-block; transform: translateY(110%); }
.slide__sub { max-width: 540px; margin: 0 0 36px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; color: rgba(255, 255, 255, .85); opacity: 0; transform: translateY(20px); }
html[lang="ar"] .slide__sub { font-weight: 400; }
.slide__cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(20px); }
.slide.active .slide__eyebrow { animation: up .9s .55s var(--ease) forwards; }
.slide.active .slide__title .w > span { animation: rise 1s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * .07s); }
.slide.active .slide__sub { animation: up .9s 1.05s var(--ease) forwards; }
.slide.active .slide__cta { animation: up .9s 1.2s var(--ease) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }

.hero__arrow { position: absolute; z-index: 5; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); color: #fff; transition: background .3s, border-color .3s, color .3s; }
.hero__arrow:hover { background: #fff; color: var(--navy-2); border-color: #fff; }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { inset-inline-start: 26px; }
.hero__arrow--next { inset-inline-end: 26px; }
html[dir="rtl"] .hero__arrow svg { transform: scaleX(-1); }
.hero__bottom { position: absolute; z-index: 5; inset-inline: 0; bottom: 92px; display: flex; align-items: center; justify-content: space-between; }
.hero__count { display: flex; align-items: center; gap: 16px; font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 18px; color: rgba(255, 255, 255, .7); }
.hero__count b { color: #fff; font-size: 26px; font-weight: 600; }
.hero__track { position: relative; width: 130px; height: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__track i { position: absolute; inset: 0; background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hero__track i { transform-origin: right; }
.hero__track i.run { animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: transparent; transition: background .3s, transform .3s; }
.hero__dots button.active { background: #fff; transform: scale(1.2); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 6; margin-top: -62px; }
.stats__card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.stat { padding: 34px 28px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: clamp(38px, 3.6vw, 52px); font-weight: 600; line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }

/* ---------- About ---------- */
.about { padding-top: 130px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about__media { position: relative; padding: 0 0 70px; padding-inline-end: 80px; }
.about__frame { position: absolute; top: -26px; inset-inline-start: -26px; width: 62%; height: 70%; border: 1px solid var(--gold-2); }
.about__img { object-fit: cover; }
.about__img--main { position: relative; width: 100%; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.about__img--sub { position: absolute; bottom: 0; inset-inline-end: 0; width: 46%; aspect-ratio: 3 / 4; border: 10px solid #fff; box-shadow: var(--shadow); }
.about__badge { position: absolute; top: 34px; inset-inline-end: 22px; width: 134px; height: 134px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.about__badge svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.about__badge text { font-family: var(--font-body); font-size: 15.5px; letter-spacing: 3.6px; fill: rgba(255, 255, 255, .85); }
.about__badge b { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 30px; font-weight: 600; color: var(--gold-2); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0 0 38px; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.about__call { display: inline-flex; align-items: center; gap: 14px; }
.about__call-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy); transition: background .3s, color .3s; }
.about__call:hover .about__call-ic { background: var(--navy); color: #fff; }
.about__call-ic svg { width: 20px; height: 20px; }
.about__call small { display: block; color: var(--muted); font-size: 13px; }
.about__call b { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); font-weight: 600; }

/* ---------- Brands ---------- */
.brands { display: grid; gap: 110px; }
.brand { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.brand:nth-child(even) .brand__media { order: 2; }
.brand__media { position: relative; }
.brand__img { position: relative; overflow: hidden; aspect-ratio: 5 / 5.6; background: #fff; box-shadow: var(--shadow); }
.brand__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.brand:hover .brand__img img { transform: scale(1.05); }
.brand__logo { position: absolute; bottom: -34px; inset-inline-end: 34px; min-width: 170px; height: 110px; padding: 18px 26px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.brand__logo img { max-height: 70px; max-width: 150px; object-fit: contain; }
.brand__logo span { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.1; text-align: center; }
.brand__num { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 18px; color: var(--gold); letter-spacing: .2em; }
.brand__name { margin: 8px 0 6px; font-family: var(--font-display); font-size: clamp(36px, 3.6vw, 52px); font-weight: 600; color: var(--ink); line-height: 1.08; }
.brand__tag { margin: 0 0 22px; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); }
html[lang="ar"] .brand__tag { font-style: normal; font-size: 19px; }
.brand__desc { margin: 0 0 26px; font-size: 17px; }
.brand .checks { margin-bottom: 34px; }
.brand__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service { position: relative; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.service::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
html[dir="rtl"] .service::after { transform-origin: right; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__img img { transform: scale(1.07); }
.service__ic { position: absolute; z-index: 2; top: -31px; inset-inline-start: 28px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); transition: background .4s, color .4s; }
.service:hover .service__ic { background: var(--navy); color: #fff; }
.service__ic svg { width: 26px; height: 26px; }
.service__body { position: relative; padding: 46px 28px 32px; }
.service__body h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.service__body p { margin: 0 0 20px; font-size: 15.5px; }

/* ---------- Process ---------- */
.process { background: var(--navy-3); color: rgba(255, 255, 255, .75); overflow: hidden; }
.process::before { content: ''; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"); }
.process .container { position: relative; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ''; position: absolute; top: 48px; inset-inline: 12%; border-top: 1px dashed rgba(216, 188, 134, .5); }
.step { position: relative; text-align: center; }
.step__num { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-3); border: 1px solid rgba(216, 188, 134, .5); font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 34px; font-weight: 600; color: var(--gold-2); transition: background .4s, color .4s, transform .4s var(--ease); }
.step:hover .step__num { background: var(--gold-2); color: var(--navy-3); transform: translateY(-5px); }
.step h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff; }
.step p { margin: 0 auto; max-width: 250px; font-size: 15.5px; }

/* ---------- Portfolio ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -20px 0 44px; }
.tabs button { position: relative; height: 42px; padding: 0 20px; border: 0; background: none; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: color .25s; }
html[lang="ar"] .tabs button { letter-spacing: 0; font-size: 15.5px; }
.tabs button::after { content: ''; position: absolute; inset-inline: 20px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs button:hover, .tabs button.active { color: var(--navy); }
.tabs button.active::after { transform: scaleX(1); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 18px; }
.work { position: relative; overflow: hidden; background: var(--ivory); cursor: pointer; border: 0; padding: 0; text-align: start; }
.work.tall { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.08); }
.work__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; background: linear-gradient(180deg, transparent 40%, rgba(16, 19, 61, .88)); opacity: 0; transition: opacity .5s var(--ease); }
.work:hover .work__over, .work:focus-visible .work__over { opacity: 1; }
.work__over small { color: var(--gold-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transform: translateY(12px); transition: transform .5s var(--ease); }
html[lang="ar"] .work__over small { letter-spacing: 0; font-size: 13.5px; }
.work__over h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; transform: translateY(12px); transition: transform .5s .05s var(--ease); }
.work:hover .work__over small, .work:hover .work__over h3 { transform: none; }
.work__plus { position: absolute; top: 20px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); transform: scale(0); transition: transform .45s var(--ease); }
.work:hover .work__plus { transform: scale(1); }
.work__plus::before, .work__plus::after { content: ''; position: absolute; width: 14px; height: 1.5px; background: currentColor; }
.work__plus::after { transform: rotate(90deg); }

/* ---------- Testimonials ---------- */
.testi { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.quote { position: relative; padding: 44px 36px 34px; background: #fff; box-shadow: var(--shadow-sm); }
.quote::before { content: '“'; position: absolute; top: 4px; inset-inline-end: 26px; font-family: 'Cormorant Garamond', serif; font-size: 110px; line-height: 1; color: var(--ivory-2); }
.quote p { position: relative; margin: 0 0 26px; font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); }
html[lang="ar"] .quote p { font-style: normal; font-size: 18px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote b { display: block; color: var(--ink); }
.quote small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: start; }
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--navy); transition: transform .3s, background .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--navy); border-color: var(--navy); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 24px; padding-inline-end: 50px; font-size: 16px; }
.faq__card { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.faq__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.faq__card:hover img { transform: scale(1.05); }
.faq__card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16, 19, 61, .05) 20%, rgba(16, 19, 61, .92) 90%); }
.faq__card-body { position: relative; z-index: 2; padding: 38px; }
.faq__card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.faq__card p { margin: 0 0 26px; color: rgba(255, 255, 255, .85); }

/* ---------- CTA banner ---------- */
.cta { position: relative; overflow: hidden; padding: 130px 0; color: #fff; text-align: center; background: var(--navy-3); }
.cta__bg { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); object-fit: cover; will-change: transform; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16, 19, 61, .82), rgba(16, 19, 61, .7)); }
.cta__inner { position: relative; z-index: 2; max-width: 780px; }
.cta__title { margin: 16px 0 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.1; }
.cta p { margin: 0 auto 36px; max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info { display: flex; gap: 20px; align-items: flex-start; padding: 26px 26px; background: var(--ivory); transition: background .35s, transform .35s var(--ease), box-shadow .35s; }
.info:hover { background: #fff; box-shadow: var(--shadow-sm); transform: translateX(4px); }
html[dir="rtl"] .info:hover { transform: translateX(-4px); }
.info__ic { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.info__ic svg { width: 22px; height: 22px; }
.info h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); }
.info p, .info a { margin: 0; display: block; color: var(--text); overflow-wrap: anywhere; }
.info a:hover { color: var(--navy); }
.contact__form { padding: 46px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
html[lang="ar"] .field label { letter-spacing: 0; font-size: 14.5px; }
.field input, .field select, .field textarea { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 38px; }
html[dir="rtl"] .field select { background-position: 20px 50%, 15px 50%; }
.field textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 4px rgba(38, 45, 127, .08); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__foot small { color: var(--muted); }
.form__msg { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: var(--radius); font-weight: 500; }
.form__msg.ok { display: block; background: #e9f6ee; color: #1d7a45; }
.form__msg.err { display: block; background: #fdeced; color: #b42326; }
.map { margin-top: 90px; height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05) brightness(1.03); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(255, 255, 255, .68); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 50px; padding: 90px 0 70px; }
.footer__logo { width: 160px; margin-bottom: 22px; }
.footer p { margin: 0 0 24px; max-width: 330px; }
.footer h4 { position: relative; margin: 0 0 26px; padding-bottom: 14px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
.footer h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2px; background: var(--gold-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { transition: color .2s, padding .3s var(--ease); }
.footer ul a:hover { color: #fff; padding-inline-start: 6px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--gold-2); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .3s, border-color .3s, color .3s; }
.footer__social a:hover { background: #fff; color: var(--navy-3); border-color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; }

/* ---------- Floating ---------- */
.wa-float { position: fixed; z-index: 60; bottom: 26px; inset-inline-end: 26px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s infinite; }
@keyframes ping { to { transform: scale(1.55); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.to-top { position: fixed; z-index: 60; bottom: 26px; inset-inline-start: 26px; width: 50px; height: 50px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 40px 30px; background: rgba(255, 255, 255, .97); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 50px; align-items: center; max-width: 1100px; width: 100%; transform: translateY(20px) scale(.98); transition: transform .5s var(--ease); }
.lightbox.open .lightbox__fig { transform: none; }
.lightbox__fig img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: var(--ivory); box-shadow: var(--shadow); }
.lightbox figcaption h3 { margin: 12px 0 12px; font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 600; color: var(--ink); line-height: 1.1; }
.lightbox figcaption p { margin: 0 0 28px; font-size: 17px; }
.lightbox figcaption div { display: flex; flex-wrap: wrap; gap: 12px; }
.lightbox__close { position: absolute; top: 20px; inset-inline-end: 24px; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; color: var(--ink); }
.lightbox__close:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.lightbox__nav { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s; }
.lightbox__nav:hover { background: var(--navy); color: #fff; }
.lightbox__nav svg { width: 22px; height: 22px; }
html[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .header__cta { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .brand { gap: 60px; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .header.scrolled { --header-h: 68px; }
  .topbar__info li:first-child { display: none; }
  .header__logo img { height: 46px; }
  .header.scrolled .header__logo img { height: 40px; }
  .burger { display: block; }
  .header__end { margin-inline-start: auto; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0; margin: 0; padding: 10px 24px 26px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .35s var(--ease);
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .hero { height: 640px; min-height: 0; }
  .hero__arrow { display: none; }
  .hero__bottom { bottom: 86px; }
  .slide__img::after { background: linear-gradient(180deg, rgba(12, 15, 46, .55) 0%, rgba(12, 15, 46, .85) 100%) !important; }
  .stats__card { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about__grid, .brand, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .brand:nth-child(even) .brand__media { order: 0; }
  .brands { gap: 90px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .faq__card { min-height: 380px; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 20px 30px; overflow-y: auto; align-items: start; }
  .lightbox__nav { display: none; }
  .lightbox__fig { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .about { padding-top: 100px; }
  .head { margin-bottom: 44px; }
  .topbar__info { gap: 16px; }
  .topbar__info span { display: none; }
  .topbar__social { display: none; }
  .btn { height: 50px; padding: 0 22px; font-size: 13px; }
  .hero { height: 660px; }
  .slide { align-items: flex-end; }
  .slide__content { padding-bottom: 116px; }
  .slide__cta { gap: 10px; }
  .slide__cta .btn { flex: 1 1 100%; height: 48px; }
  .slide__sub { margin-bottom: 26px; }
  .hero__bottom { bottom: 74px; justify-content: center; }
  .hero__count { display: none; }
  .stats { margin-top: -50px; }
  .stat { padding: 24px 12px; }
  .stat span { font-size: 13px; }
  .about__media { padding-inline-end: 40px; padding-bottom: 50px; }
  .about__frame { top: -16px; inset-inline-start: -10px; }
  .about__badge { width: 104px; height: 104px; top: 16px; inset-inline-end: 0; }
  .about__badge text { font-size: 19px; }
  .about__badge b { font-size: 24px; }
  .checks { grid-template-columns: 1fr; }
  .brand__logo { min-width: 140px; height: 90px; inset-inline-end: 16px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .work__over { opacity: 1; padding: 14px; }
  .work__over h3 { font-size: 18px; transform: none; }
  .work__over small { transform: none; font-size: 10.5px; }
  .work__plus { display: none; }
  .faq summary { font-size: 19px; }
  .contact__form { padding: 28px 20px; }
  .form { grid-template-columns: 1fr; }
  .map { margin-top: 60px; height: 320px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 50px; }
  .wa-float { bottom: 18px; inset-inline-end: 16px; width: 54px; height: 54px; }
  .to-top { bottom: 20px; inset-inline-start: 16px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
