/* Al Dow Contracting — brand overrides layered on the original site styles. */

/* The hero video has black letterbox bars baked in (content is ~2.5:1 inside a 16:9 frame).
   Scale it up just enough that the bars fall outside the clipped background. */
video[src*="/assets/aldow/hero.mp4"] { transform: scale(1.42); transform-origin: 50% 50%; }

/* ===================================================================== Home: "Building the future" section
   Background image (tools/images.html → isha/home-collage.jpg) = photo left, gold divider, off-white panel.
   Heading on the panel: navy text, small gold label above, gold rule below. EN box #comp-l0sco7pr, AR #comp-l9wpiek21. */
#comp-l0sco7pr h2 span, #comp-l9wpiek21 h2 span { color: #0C103C !important; }
#comp-l0sco7pr::before, #comp-l9wpiek21::before {
  display: block; color: #A8874F; margin-bottom: 22px;
}
#comp-l0sco7pr::before { content: "AL DOW CONTRACTING"; font: 13px/1 avenir-lt-w01_85-heavy1475544, "Helvetica Neue", Arial, sans-serif; letter-spacing: .32em; }
#comp-l9wpiek21::before { content: "الضو للمقاولات"; font: 600 19px/1.2 "IBM Plex Sans Arabic", Tahoma, sans-serif; text-align: right; margin-bottom: 14px; }
#comp-l0sco7pr::after, #comp-l9wpiek21::after { content: ""; display: block; width: 72px; height: 3px; background: #CDA76B; margin-top: 26px; }
#comp-l9wpiek21::after { margin-left: auto; }

/* ===================================================================== Language switcher
   The template's two round flag buttons become gold-ringed monograms (EN / ع); the current
   language is filled gold. Same position and size as the original flags, so the header layout is unchanged. */
.wixui-image-button a[data-testid="link"] {
  position: relative; display: flex !important; align-items: center; justify-content: center;
  width: 100% !important; height: 100% !important; border-radius: 50%;
  border: 1px solid rgba(205,167,107,.75); background: rgba(12,16,60,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.wixui-image-button a[data-testid="link"] [data-testid="linkImageContainer"] { display: none !important; }
.wixui-image-button a[data-testid="link"]::after {
  content: "EN"; font: 600 10.5px/1 avenir-lt-w01_85-heavy1475544, "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em;
}
.wixui-image-button a[data-testid="link"][href^="/ar"]::after {
  content: "ع"; font: 16px/1 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; margin-top: -2px;
}
.wixui-image-button a[data-testid="link"]:hover { background: rgba(205,167,107,.22); border-color: #CDA76B; transform: translateY(-1px); }
html[lang="en"] .wixui-image-button a[data-testid="link"]:not([href^="/ar"]),
html[lang="ar"] .wixui-image-button a[data-testid="link"][href^="/ar"] {
  background: #CDA76B; border-color: #CDA76B; color: #0C103C; box-shadow: 0 4px 14px rgba(205,167,107,.35); cursor: default;
}
/* Mobile menu language link: pill with a globe icon */
.ix-mnav-lang {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; align-self: center;
  margin: 10px auto 0; padding: 10px 22px !important; border: 1px solid rgba(205,167,107,.7); border-radius: 999px;
  color: #CDA76B !important; letter-spacing: .04em;
}
.ix-mnav-lang::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("/assets/aldow/globe.svg") center / contain no-repeat;
          mask: url("/assets/aldow/globe.svg") center / contain no-repeat;
}

/* ===================================================================== Arabic pages: direction + labels
   The template's text boxes are left-to-right even on Arabic pages, so Arabic labels sat on the left edge
   (e.g. the home "numbers" list). Make every template text block right-to-left: left/start-aligned
   Arabic moves to the right; centred and right-aligned text keeps its position. */
html[lang="ar"] .wixui-rich-text,
html[lang="ar"] .wixui-rich-text__text,
html[lang="ar"] .wixui-button__label,
html[lang="ar"] [class*="StylableButton"][class*="__label"] { direction: rtl; }
html[lang="ar"] .ix-num, html[lang="ar"] [dir="ltr"] { unicode-bidi: isolate; }
/* Bullet lists: bullets on the right, indent on the right */
html[lang="ar"] .wixui-rich-text ul, html[lang="ar"] .wixui-rich-text ol { direction: rtl; padding-left: 0 !important; padding-right: 1.3em !important; margin-left: 0 !important; }
html[lang="ar"] .wixui-rich-text li { direction: rtl; text-align: right; }
/* Hero: Arabic has no letter-spacing, so the first line looked tiny next to the second — balance them. */
html[lang="ar"] .isha-hero .l1 { font-size: 54px; letter-spacing: 0; color: #CDA76B; }
html[lang="ar"] .isha-hero .l2 { font-size: 64px; letter-spacing: 0; margin-top: 2px; }
html[lang="ar"].ix-flat .isha-hero .l1 { font-size: 30px !important; letter-spacing: 0 !important; }
html[lang="ar"].ix-flat .isha-hero .l2 { font-size: 34px !important; letter-spacing: 0 !important; }
/* Home "numbers" list (icons | numbers | labels are three separate boxes): give numbers and labels the
   same line height as the icon column (~61px per row) and start them on the same line, so rows line up. */
html[lang="ar"] #comp-laes804n :is(p, h1, h2, h3, h4, h5, h6),
html[lang="ar"] #comp-laes4dng :is(p, h1, h2, h3, h4, h5, h6) { line-height: 1.8 !important; }
html[lang="ar"] #comp-laes4dng { transform: translateY(13px); }
/* Menu labels: never cut Arabic words with "…" */
html[lang="ar"] .wixui-button__label,
html[lang="ar"] [class*="StylableButton"][class*="__label"] { text-overflow: clip !important; overflow: visible !important; letter-spacing: 0 !important; }

/* ===================================================================== Projects: category chips + clickable cards */
.ix-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.ix-chip {
  padding: 9px 18px; border: 1px solid #d9dce6; border-radius: 999px; background: #fff; color: #4a5163;
  font: 14px/1 var(--ix-body); text-decoration: none; transition: all .2s;
}
.ix-chip:hover { border-color: #CDA76B; color: #0C103C; }
.ix-chip.is-on { background: #0C103C; border-color: #0C103C; color: #fff; }
.ix-project-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ix-project-count {
  position: absolute; z-index: 1; bottom: 16px; inset-inline-end: 16px; color: #fff;
  font: 12px/1 var(--ix-body); letter-spacing: .04em; background: rgba(12,16,60,.55); padding: 7px 10px;
}
.ix-project-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #A8874F;
  font: 13px/1 var(--ix-strong); letter-spacing: .12em; text-transform: uppercase;
}
.ix-project-more::after { content: "\2192"; transition: transform .25s; }
html[lang="ar"] .ix-project-more::after { content: "\2190"; }
.ix-project:hover .ix-project-more::after { transform: translateX(4px); }
html[lang="ar"] .ix-project:hover .ix-project-more::after { transform: translateX(-4px); }
.ix-empty { grid-column: 1 / -1; color: #8a90a2; }

/* ===================================================================== Project gallery page */
.ix-gallery { scroll-margin-top: 80px; }
.ix-gal-back { display: inline-block; margin-bottom: 26px; color: #A8874F; text-decoration: none; font: 14px var(--ix-body); }
.ix-gal-back:hover { color: #0C103C; }
.ix-gal-facts { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 24px 48px; margin-bottom: 36px; }
.ix-gal-facts dl { margin: 0; }
.ix-gal-facts dl > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e6e9f0; }
.ix-gal-facts dt { min-width: 92px; color: #8a90a2; font: 12px/1.6 var(--ix-strong); letter-spacing: .12em; text-transform: uppercase; }
.ix-gal-facts dd { margin: 0; color: #0C103C; font: 15px/1.6 var(--ix-body); }
.ix-gal-desc { margin: 0; color: #4a5163; font: 16px/1.8 var(--ix-body); }
.ix-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ix-gal-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0C103C; }
.ix-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.ix-gal-item:hover img { transform: scale(1.05); opacity: .9; }
.ix-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(8,10,30,.94); }
.ix-lb.is-open { display: flex; }
.ix-lb figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.ix-lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ix-lb figcaption { color: #CDA76B; font: 14px var(--ix-body); margin-top: 12px; letter-spacing: .1em; }
.ix-lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 54px/1 Arial, sans-serif; padding: 12px 18px; opacity: .8; }
.ix-lb button:hover { opacity: 1; color: #CDA76B; }
.ix-lb-close { top: 10px; inset-inline-end: 14px; font-size: 44px !important; }
.ix-lb-prev { left: 8px; }
.ix-lb-next { right: 8px; }
@media (max-width: 900px) {
  .ix-gal-facts { grid-template-columns: 1fr; }
  .ix-chips { gap: 8px; }
  .ix-chip { padding: 8px 14px; font-size: 13px; }
}

/* ===================================================================== Smart sticky nav + back-to-top (aldow-nav.js) */
.adw-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 980; height: 64px; display: flex; align-items: center; gap: 28px;
  padding: 0 32px; background: rgba(12,16,60,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid #CDA76B; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transform: translateY(-110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.adw-nav.is-shown { transform: none; }
.adw-nav-logo img { height: 40px; width: auto; display: block; }
.adw-nav-links { flex: 1; display: flex; justify-content: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.adw-nav-links a {
  position: relative; padding: 8px 12px; color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap;
  font: 12.5px/1 arian-lt-w20-light, "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; transition: color .2s;
}
.adw-nav[dir="rtl"] .adw-nav-links a { font: 15px/1 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.adw-nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: #CDA76B; transform: scaleX(0); transition: transform .25s; }
.adw-nav-links a:hover, .adw-nav-links a.is-on { color: #CDA76B; }
.adw-nav-links a:hover::after, .adw-nav-links a.is-on::after { transform: scaleX(1); }
.adw-nav-lang {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(205,167,107,.8);
  color: #fff; text-decoration: none; font: 600 11px/1 avenir-lt-w01_85-heavy1475544, Arial, sans-serif; letter-spacing: .06em; transition: .2s;
}
.adw-nav[dir="ltr"] .adw-nav-lang { font: 16px/1 "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.adw-nav-lang:hover { background: #CDA76B; color: #0C103C; }
@media (max-width: 1100px) { .adw-nav { gap: 14px; padding: 0 18px; } .adw-nav-links a { padding: 8px 8px; letter-spacing: .06em; } }
@media (max-width: 767px) { .adw-nav { display: none; } }   /* mobile keeps its own fixed bar (.ix-mbar) */

.adw-top {
  position: fixed; z-index: 985; right: 30px; bottom: 96px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid rgba(205,167,107,.85); background: rgba(12,16,60,.88); color: #CDA76B;
  box-shadow: 0 8px 22px rgba(12,16,60,.3); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
}
.adw-top.is-rtl { right: auto; left: 30px; }
.adw-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.adw-top:hover { background: #CDA76B; color: #0C103C; }
.adw-top svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 600px) { .adw-top { right: 21px; bottom: 82px; width: 42px; height: 42px; } .adw-top.is-rtl { left: 21px; } }
@media (prefers-reduced-motion: reduce) { .adw-nav, .adw-top { transition: none; } }

/* ===================================================================== AI assistant widget */
.adw-chat { --adw-navy: #0C103C; --adw-gold: #CDA76B; position: fixed; z-index: 990; bottom: 22px; right: 22px; font-family: avenir-lt-w01_35-light1475496, "Helvetica Neue", Arial, sans-serif; }
.adw-chat.is-rtl { right: auto; left: 22px; font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.adw-chat *, .adw-chat *::before { box-sizing: border-box; }
.adw-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(145deg, #D9B97F, #B8925A); color: var(--adw-navy);
  box-shadow: 0 10px 28px rgba(12,16,60,.35), 0 0 0 4px rgba(205,167,107,.18); transition: transform .25s, box-shadow .25s;
}
.adw-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(12,16,60,.4), 0 0 0 6px rgba(205,167,107,.22); }
.adw-fab svg { width: 28px; height: 28px; fill: currentColor; }
.adw-fab .adw-ico-x, .adw-chat.is-open .adw-ico-chat { display: none; }
.adw-chat.is-open .adw-ico-x { display: block; }
.adw-panel {
  position: absolute; bottom: 76px; right: 0; width: 370px; max-width: calc(100vw - 32px); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(12,16,60,.35); animation: adw-in .25s cubic-bezier(.2,.7,.2,1);
}
.adw-chat.is-rtl .adw-panel { right: auto; left: 0; }
.adw-panel[hidden] { display: none; }
@keyframes adw-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.adw-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: var(--adw-navy); color: #fff; border-bottom: 3px solid var(--adw-gold); }
.adw-head img { width: 40px; height: auto; flex: none; }
.adw-head div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adw-head strong { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.adw-head span { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.adw-head span i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.2); }
.adw-head button { background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer; padding: 6px; line-height: 1; }
.adw-head button:hover { color: var(--adw-gold); }
.adw-close { font-size: 26px; }
.adw-reset svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.adw-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; background: #f5f7fb; display: flex; flex-direction: column; gap: 10px; }
.adw-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.adw-msg p { margin: 0 0 6px; }
.adw-msg p:last-child { margin: 0; }
.adw-msg ul { margin: 4px 0 6px; padding-inline-start: 18px; }
.adw-msg li { margin: 2px 0; }
.adw-bot { align-self: flex-start; background: #fff; color: #23283b; border: 1px solid #e6e9f0; border-start-start-radius: 4px; }
.adw-user { align-self: flex-end; background: var(--adw-navy); color: #fff; border-start-end-radius: 4px; }
.adw-bot a { color: #8f6d33; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.adw-dots { display: flex; gap: 4px; padding: 4px 0; }
.adw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--adw-gold); animation: adw-dot 1s infinite ease-in-out; }
.adw-dots i:nth-child(2) { animation-delay: .15s; }
.adw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes adw-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.adw-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; background: #f5f7fb; }
.adw-chips:empty { display: none; }
.adw-chips button {
  border: 1px solid rgba(205,167,107,.8); background: #fff; color: #6b5226; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; transition: all .2s;
}
.adw-chips button:hover { background: var(--adw-gold); color: var(--adw-navy); }
.adw-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6e9f0; background: #fff; margin: 0; }
.adw-form textarea {
  flex: 1; resize: none; border: 1px solid #d9dce6; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px;
  line-height: 1.4; max-height: 120px; outline: none; color: #23283b; background: #fff;
}
.adw-form textarea:focus { border-color: var(--adw-gold); box-shadow: 0 0 0 3px rgba(205,167,107,.2); }
.adw-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--adw-navy); color: var(--adw-gold); cursor: pointer; display: grid; place-items: center; }
.adw-form button svg { width: 20px; height: 20px; fill: currentColor; }
.adw-chat.is-rtl .adw-form button svg { transform: scaleX(-1); }
.adw-form.is-busy button { opacity: .5; pointer-events: none; }
.adw-note { margin: 0; padding: 0 12px 10px; background: #fff; color: #8a90a2; font-size: 11px; text-align: center; }
@media (max-width: 600px) {
  .adw-chat { bottom: 16px; right: 16px; }
  .adw-chat.is-rtl { left: 16px; }
  .adw-fab { width: 54px; height: 54px; }
  .adw-panel { position: fixed; inset: auto 10px 82px 10px; width: auto; max-width: none; height: min(560px, calc(100vh - 110px)); }
  .adw-chat.is-rtl .adw-panel { left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .adw-panel, .adw-dots i { animation: none; } }
