/* =====================================================================
   BRAVO — site styles (RTL and LTR via logical properties)
   Palette from the logo: slate #2c3640 (wordmark) and red (check mark).
   ===================================================================== */
:root {
  --slate-950: #0e1318;
  --slate-900: #1b232b;
  --slate-800: #2c3640;   /* logo slate */
  --slate-700: #3b4854;
  --slate-600: #566574;
  --slate-500: #7a8896;
  --slate-200: #d3dbe2;
  --slate-100: #e8edf1;
  --slate-50:  #f5f7f9;
  --red:    #dc2536;      /* logo red, deepened slightly so white text on it passes contrast */
  --red-d:  #b81c2b;
  --logo-red: #e82838;
  --ink:      #151c23;
  --muted:    #5b6874;
  --line:     #e1e6ea;
  --bg:       #ffffff;

  --radius:    6px;
  --radius-l:  14px;
  --shadow-s:  0 1px 2px rgba(14,19,24,.06), 0 2px 8px rgba(14,19,24,.05);
  --shadow:    0 18px 40px -12px rgba(14,19,24,.22);
  --shadow-l:  0 30px 70px -20px rgba(14,19,24,.38);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --container: 1220px;
  --header-h:  124px;     /* measured by site.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--slate-900); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.muted { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.center-block { text-align: center; }
::selection { background: var(--red); color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 200; border-radius: var(--radius); }
.skip:focus { inset-inline-start: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-flip, [dir="rtl"] .btn .icon:last-child, [dir="rtl"] .more .icon { transform: scaleX(-1); }

/* Small label above section titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: var(--red); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.process .eyebrow, .page-hero .eyebrow { color: #ff6b77; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.6em; border-radius: var(--radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2;
  background: var(--slate-800); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--slate-900); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; transition: translate .25s var(--ease); }
.btn:hover .icon:last-child { translate: 3px 0; }
[dir="rtl"] .btn:hover .icon:last-child { translate: -3px 0; }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px rgba(220,37,54,.7); }
.btn-accent:hover { background: var(--red-d); color: #fff; box-shadow: 0 12px 28px -8px rgba(220,37,54,.8); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--slate-900); border-color: #fff; }
.btn-outline { background: transparent; color: var(--slate-800); border-color: var(--slate-200); }
.btn-outline:hover { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: #b42318; }
.btn-danger:hover { background: #8e1b12; }

/* =====================================================================
   HEADER — transparent glass bar that floats over the hero
   ===================================================================== */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  color: #fff;
  /* a soft shade at the very top keeps links readable over bright photos */
  background: linear-gradient(180deg, rgba(10,14,18,.62) 0%, rgba(10,14,18,.28) 60%, rgba(10,14,18,0) 100%);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.site-header::before {            /* frosted layer, faded in on scroll */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(14,19,24,.72);
  transition: opacity .4s var(--ease);
}
/* The blur is only switched on once the header is frosted: blurring a playing video every frame is costly */
.site-header.is-scrolled::before, .solid-header .site-header::before { -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.site-header.is-scrolled { background: transparent; box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), 0 10px 30px -12px rgba(0,0,0,.45); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Top bar (contact + language), folds away once the page scrolls */
.topbar { font-size: .85rem; color: rgba(255,255,255,.78); border-block-end: 1px solid rgba(255,255,255,.1); max-height: 44px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s var(--ease), border-color .3s; }
.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.78); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-contact a, .drawer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact .icon { width: 1em; height: 1em; color: #ff6b77; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.lang-switch a { padding: 1px 12px; border-radius: 999px; font-weight: 600; font-size: .82rem; line-height: 1.8; color: rgba(255,255,255,.75); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { background: #fff; color: var(--slate-900); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height .4s var(--ease); }
.is-scrolled .header-inner { min-height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: auto; transition: transform .5s var(--ease), width .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.is-scrolled .brand img { width: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.55rem; letter-spacing: .08em; font-weight: 700; color: #fff; }
.brand-text small { font-size: .74rem; color: rgba(255,255,255,.7); font-weight: 500; margin-top: 2px; }

/* Desktop nav: links sit in a glass capsule with a sliding highlight */
.nav { display: flex; align-items: center; }
.nav-links {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(14,19,24,.28);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center;
  padding: .5em 1.05em; border-radius: 999px;
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; white-space: nowrap; line-height: 1.5;
}
.nav-link i { display: none; font-style: normal; }
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {             /* small red marker under the current page */
  content: ""; position: absolute; inset-block-end: 3px; inset-inline-start: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--logo-red); translate: -50% 0; box-shadow: 0 0 10px rgba(232,40,56,.9);
}
[dir="rtl"] .nav-link.active::after { translate: 50% 0; }
.nav-indicator {
  position: absolute; z-index: 0; inset-block: 5px; inset-inline-start: 0; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.nav-indicator.on { opacity: 1; }
.no-js .nav-link.active { background: rgba(255,255,255,.14); }
.nav-drawer-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta { padding: .62em 1.25em; font-size: .93rem; }

.nav-toggle {
  display: none; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
  border-radius: 50%; color: #fff; background: rgba(14,19,24,.35); border: 1px solid rgba(255,255,255,.18);
}
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .25s, top .4s var(--ease), width .3s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; width: 70%; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,11,14,.5); opacity: 0; transition: opacity .35s var(--ease); }
.nav-backdrop.on { opacity: 1; }

/* Pages with no dark banner at the top: the header starts frosted */
#main:not(:has(> .slider:first-child, > .hero:first-child, > .page-hero:first-child)) { padding-top: var(--header-h); }
body:has(#main:not(:has(> .slider:first-child, > .hero:first-child, > .page-hero:first-child))) .site-header::before { opacity: 1; }
body.solid-header #main { padding-top: var(--header-h); }
body.solid-header .site-header::before { opacity: 1; }

/* ===== Hero (static banner, shown when there are no slides) ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 520px at 85% 110%, rgba(220,37,54,.22), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(122,136,150,.22), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--slate-900);
}
.hero { --chrome: 0px; --peek: 64px; min-height: calc(100vh - var(--chrome) - var(--peek)); min-height: calc(100svh - var(--chrome) - var(--peek)); display: flex; align-items: center; padding-top: var(--header-h); }
.hero-inner { padding-block: clamp(40px, 6vw, 96px); position: relative; }
.hero-art { position: absolute; inset-block-end: 0; inset-inline-end: 4%; width: min(48vw, 660px); height: auto; pointer-events: none; }
@media (max-width: 860px) { .hero-art { inset-inline-end: -14%; width: 92vw; opacity: .3; } }
.hero-copy { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: #d3dae0; max-width: 62ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ===== Slider (images / videos) ===== */
/* Height = visible screen - --chrome (0 now: the header floats over the slider) - --peek.
   --peek leaves room for the stats card that overlaps the bottom edge. */
.slider { --chrome: 0px; --peek: 64px; position: relative; overflow: hidden; background: var(--slate-950); color: #fff; }
.slides { position: relative; height: calc(100vh - var(--chrome) - var(--peek)); height: calc(100svh - var(--chrome) - var(--peek)); min-height: 520px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.slide-media { transform: scale(1.06); transition: transform 7s linear; backface-visibility: hidden; }
.slide.active img.slide-media { transform: scale(1); will-change: transform; }
video.slide-media { background: var(--slate-950); }
.slide:not(.active) { pointer-events: none; }
.slide-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,18,.55) 0%, rgba(10,14,18,0) 26%),
    linear-gradient(0deg, rgba(10,14,18,.86) 0%, rgba(10,14,18,.35) 32%, rgba(10,14,18,0) 58%);
}
[dir="rtl"] .slide-shade::after, .slide-shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(10,14,18,.45), transparent 55%);
}
[dir="ltr"] .slide-shade::after { background: linear-gradient(to right, rgba(10,14,18,.45), transparent 55%); }
.slide-inner { position: relative; padding-block: 0 128px; }
.slide .hero-copy { max-width: 640px; }
.slide-title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.slide .lead { color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; margin-bottom: .5em; }
.slide .hero-actions { margin-top: 18px; }
.slide .hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.active .hero-copy > * { opacity: 1; transform: none; }
.slide.active .hero-copy > :nth-child(2) { transition-delay: .12s; }
.slide.active .hero-copy > :nth-child(3) { transition-delay: .24s; }
.s-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(14,19,24,.35); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s;
}
.s-nav:hover { background: var(--red); border-color: var(--red); }
.s-prev { inset-inline-start: 20px; }
.s-next { inset-inline-end: 20px; }
.s-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .s-prev .icon { transform: none; }
[dir="rtl"] .s-next .icon { transform: scaleX(-1); }
.dots { position: absolute; inset-inline: 0; bottom: 92px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.dot { width: 26px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: width .35s var(--ease), background .35s; }
.dot:hover { background: rgba(255,255,255,.75); }
.dot.on { background: var(--logo-red); width: 46px; }
@media (max-width: 600px) {
  .slider, .hero { --peek: 40px; }
  .s-nav { display: none; }
  .slide-inner { padding-block: 0 110px; }
  .slide .hero-copy { max-width: 100%; }
  .dots { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { .slide, img.slide-media, .slide .hero-copy > * { transition: none; } }

/* ===== Stats — a card that overlaps the bottom of the banner ===== */
.stats { position: relative; z-index: 5; margin-top: -64px; background: transparent; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden;
  border-block-start: 3px solid var(--red);
}
.stat { padding: 30px 18px; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat strong { display: inline; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--slate-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-weight: 600; font-size: .93rem; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.alt { background: var(--slate-50); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: .35em; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head.row h2 { margin-bottom: 0; }
.mt { margin-top: 2.2em; }
.mt-xl { margin-top: 64px; }

.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card-grid.rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  display: block; color: inherit; box-shadow: var(--shadow-s);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
a.card:hover { border-color: transparent; color: inherit; box-shadow: var(--shadow); transform: translateY(-4px); }

.service-card { padding: 26px 28px; display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; align-items: start; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
a.service-card:hover::before { transform: scaleY(1); }
.service-card .icon-badge { grid-row: 1 / span 3; margin: 0; }
.service-card h3 { margin-bottom: .25em; }
.service-card p { color: var(--muted); font-size: .97rem; margin-bottom: .6em; }
.service-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); font-size: .92rem; }
.service-card .more .icon { width: 1em; height: 1em; transition: translate .3s var(--ease); }
a.service-card:hover .more .icon { translate: 4px 0; }
[dir="rtl"] a.service-card:hover .more .icon { translate: -4px 0; }
a.service-card:hover .icon-badge { background: var(--red); color: #fff; }
.icon-badge {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 12px;
  background: var(--slate-100); color: var(--slate-800); margin-bottom: 18px; transition: background .3s var(--ease), color .3s var(--ease);
}
.icon-badge .icon { width: 28px; height: 28px; }
.icon-badge.sm { width: 52px; height: 52px; }

/* ===== Why us ===== */
.why-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.why:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why:hover .icon-badge { background: var(--slate-900); color: #fff; }
.why p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ===== Project card ===== */
.project-card { overflow: hidden; }
.project-thumb, .project-hero {
  position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
}
.project-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.project-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,18,.45), transparent 50%); opacity: .6; transition: opacity .4s var(--ease); pointer-events: none; }
a.project-card:hover .project-thumb::after { opacity: 1; }
.project-thumb .icon { width: 64px; height: 64px; opacity: .85; }
.project-hero { height: 280px; border-radius: var(--radius-l); margin-bottom: 28px; overflow: hidden; }
.project-hero .icon { width: 96px; height: 96px; opacity: .85; }
.project-thumb.has-img, .project-hero.has-img { background: var(--slate-100); overflow: hidden; }
.project-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.project-card:hover .project-thumb.has-img img { transform: scale(1.06); }
.project-hero.has-img { display: block; height: auto; background: var(--slate-50); border: 1px solid var(--line); }
.project-hero.has-img img { display: block; width: 100%; height: auto; max-height: min(78vh, 720px); object-fit: contain; margin-inline: auto; }
.project-thumb .chip { position: absolute; z-index: 1; inset-block-start: 14px; inset-inline-start: 14px; }
.chip { background: rgba(220,37,54,.92); color: #fff; font-weight: 600; font-size: .78rem; padding: .25em .9em; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip.small { background: var(--slate-100); color: var(--slate-800); }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { margin-bottom: .3em; transition: color .25s; }
a.project-card:hover .project-body h3 { color: var(--red); }
.project-body p { color: var(--muted); font-size: .96rem; margin-bottom: .4em; }
.project-body .meta { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--slate-600); font-weight: 600; }
.project-body .meta .icon { width: 1em; height: 1em; color: var(--red); }

/* ===== Process ===== */
.process {
  color: #fff;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(220,37,54,.16), transparent 60%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--slate-950);
}
.process h2, .process h3 { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-l); padding: 28px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.steps li:hover { background: rgba(255,255,255,.07); border-color: rgba(232,40,56,.5); transform: translateY(-3px); }
.steps b {
  display: block; font-size: 3rem; line-height: 1; margin-bottom: 18px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.steps li:hover b { color: var(--logo-red); -webkit-text-stroke-color: var(--logo-red); }
.steps p { color: #b8c2cb; margin: 0; font-size: .96rem; }

/* ===== CTA band ===== */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(120deg, #c91f30, var(--red) 45%, #ef3f4e);
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; color: #fff; }
.cta-band p { margin: 0; color: #ffe3e6; font-size: 1.05rem; }
.cta-band .btn-accent { background: #fff; color: var(--slate-900); border-color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.cta-band .btn-accent:hover { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding-block: calc(var(--header-h) + clamp(40px, 6vw, 80px)) clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 90% 120%, rgba(220,37,54,.25), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(122,136,150,.2), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--slate-900);
}
.page-hero::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent); }
.page-hero h1 { margin-bottom: .3em; color: #fff; max-width: 22ch; }
.page-hero .lead { color: #c3ccd4; }
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: #9fb0be; margin-bottom: 18px; }
.crumbs a { font-weight: 600; color: #fff; }
.crumbs a:hover { color: #ff6b77; }

/* ===== Layouts ===== */
.two-col { display: grid; gap: 56px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.two-col.top { align-items: start; grid-template-columns: 1fr 1fr; }
.about-visual { background: var(--slate-50); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 48px; display: grid; place-items: center; }
.about-visual img { max-width: 420px; width: 100%; }
.mini-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; }
.mini-stats strong { display: block; font-size: 2rem; color: var(--slate-900); line-height: 1.2; }
.mini-stats span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.triple { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plain-card { padding: 30px; }
.plain-card p { color: var(--muted); margin: 0; }

.detail-grid { display: grid; gap: 44px; grid-template-columns: 1fr 330px; align-items: start; }
.prose-lead { font-size: 1.12rem; color: #2f3a44; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--red); background: #fdecee; border-radius: 50%; padding: 5px; width: 26px; height: 26px; margin-top: 2px; stroke-width: 2.4; }
.side { display: grid; gap: 18px; position: sticky; top: 100px; }
.side-card { padding: 24px; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: block; padding: .65em 0; color: var(--ink); font-weight: 600; }
.side-list a:hover, .side-list a.on { color: var(--red); }
.side-card.cta { background: var(--slate-900); border-color: var(--slate-900); }
.side-card.cta h3, .side-card.cta p { color: #fff; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill { padding: .4em 1.2em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff; transition: all .25s var(--ease); }
.pill:hover { border-color: var(--slate-800); color: var(--slate-800); }
.pill.on { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }

/* ===== Contact & forms ===== */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.form-card, .info-card { padding: clamp(22px, 3vw, 38px); }
.narrow { max-width: 480px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field label { font-weight: 700; font-size: .93rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: .75em .95em; border: 1.5px solid var(--slate-200); border-radius: var(--radius); background: var(--slate-50); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--slate-500); }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--slate-800); box-shadow: 0 0 0 4px rgba(44,54,64,.12); }
.err { color: #b42318; font-size: .85rem; min-height: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.alert.ok { background: #e6f6ec; color: #0b6b2e; border: 1px solid #b6e3c5; }
.alert.bad { background: #fdecea; color: #912018; border: 1px solid #f5c2bd; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.contact-list .icon { color: var(--red); margin-top: 4px; }

/* ===== Admin ===== */
.msg { padding: 18px 20px; margin-bottom: 14px; }
.msg.unread { border-inline-start: 5px solid var(--red); }
.msg.read { opacity: .8; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg-meta { color: var(--muted); font-size: .92rem; margin: 2px 0 10px; }
.msg-body { white-space: pre-wrap; }
.msg-actions { display: flex; gap: 10px; }

/* ===== Error ===== */
.big-code { font-size: clamp(4rem, 14vw, 9rem); color: var(--red); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  position: relative; color: #a9b4be; padding-top: 72px;
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(220,37,54,.1), transparent 60%),
    var(--slate-950);
}
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--logo-red) 40%, transparent); }
.site-footer h4 { color: #fff; margin-bottom: 1.1em; font-size: 1rem; letter-spacing: .02em; }
.site-footer a { color: #a9b4be; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a9b4be; max-width: 44ch; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1.2fr; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 10px; color: #fff; margin-bottom: 18px; justify-items: start; }
.logo-chip { background: #fff; border-radius: 12px; padding: 12px 18px; display: inline-grid; }
.logo-chip img { width: 200px; }
.site-footer .plain li { padding: 5px 0; }
.site-footer .plain a { display: inline-block; transition: color .2s, translate .25s var(--ease); }
.site-footer .plain:not(.social-links) a:hover { translate: 4px 0; }
[dir="rtl"] .site-footer .plain:not(.social-links) a:hover { translate: -4px 0; }
.site-footer .contact-list li { padding: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; font-size: .86rem; color: #7f8b96; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-links a { padding: .35em 1em; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: .88rem; font-weight: 600; }
.social-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.wa-float {
  position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1faa59; color: #fff; box-shadow: 0 10px 26px -6px rgba(31,170,89,.6);
  transition: transform .3s var(--ease), background .3s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: wa-pulse 2.4s var(--ease) infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { background: #178a47; color: #fff; transform: scale(1.06); }
.wa-float .icon { width: 26px; height: 26px; }

/* ===== Gallery ===== */
.gallery-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 28px; padding: 0; }
.gallery-thumbs button { display: block; padding: 0; border: 2px solid transparent; background: var(--slate-100); border-radius: var(--radius); cursor: pointer; overflow: hidden; opacity: .75; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover, .gallery-thumbs button.on { opacity: 1; }
.gallery-thumbs button.on { border-color: var(--red); }
.gallery-thumbs button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery-thumbs img { display: block; width: 96px; height: 64px; object-fit: cover; }
.project-hero[data-gallery-stage] { position: relative; }
.project-hero[data-gallery-stage]:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(14,19,24,.7); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s; }
.gal-nav:hover { background: var(--red); }
.gal-nav:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.gal-nav.prev { inset-inline-start: 14px; }
.gal-nav.next { inset-inline-end: 14px; }
[dir="rtl"] .gal-nav svg { transform: scaleX(-1); }
.gal-count { position: absolute; inset-block-end: 14px; inset-inline-end: 14px; padding: 3px 12px; border-radius: 999px; background: rgba(14,19,24,.7); color: #fff; font-size: .85rem; }

/* ===== Scroll reveal (only when JS is running) ===== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1120px) {
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }

  /* Mobile/tablet: the menu becomes a glass drawer sliding in from the side */
  .nav {
    position: fixed; z-index: 95; inset-block: 0; inset-inline-end: 0;
    width: min(420px, 100%); height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 28px;
    padding: calc(var(--header-h) + 8px) 28px 28px;
    background: rgba(14,19,24,.82);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    border-inline-start: 1px solid rgba(255,255,255,.1);
    box-shadow: -30px 0 80px -20px rgba(0,0,0,.6);
    transform: translateX(100%); visibility: hidden;
    transition: transform .55s var(--ease), visibility .55s;
    overflow-y: auto;
  }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.open { transform: none !important; visibility: visible; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .nav-indicator { display: none; }
  .nav-link {
    padding: .85em 0; border-radius: 0; font-size: 1.35rem; font-weight: 600; gap: 16px;
    border-block-end: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s, padding .3s var(--ease);
  }
  .nav-link i { display: inline; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.4); letter-spacing: .08em; min-width: 22px; }
  .nav-link:hover { color: #fff; padding-inline-start: 8px; }
  .nav-link.active { color: #fff; }
  .nav-link.active i { color: var(--logo-red); }
  .nav-link.active::after { inset-block-end: auto; inset-block-start: 50%; inset-inline-start: auto; inset-inline-end: 0; translate: 0 -50%; width: 8px; height: 8px; }
  [dir="rtl"] .nav-link.active::after { translate: 0 -50%; }
  .nav.open .nav-link { opacity: 1; transform: none; }
  .nav.open .nav-link:nth-of-type(1) { transition-delay: .12s; }
  .nav.open .nav-link:nth-of-type(2) { transition-delay: .17s; }
  .nav.open .nav-link:nth-of-type(3) { transition-delay: .22s; }
  .nav.open .nav-link:nth-of-type(4) { transition-delay: .27s; }
  .nav.open .nav-link:nth-of-type(5) { transition-delay: .32s; }
  .nav.open .nav-link:nth-of-type(6) { transition-delay: .37s; }

  .nav-drawer-foot { display: grid; gap: 18px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) .42s, transform .5s var(--ease) .42s; }
  .nav.open .nav-drawer-foot { opacity: 1; transform: none; }
  .drawer-contact { display: grid; gap: 10px; font-size: .95rem; }
  .drawer-contact a { color: rgba(255,255,255,.75); }
  .drawer-contact a:hover { color: #fff; }
  .drawer-contact .icon { width: 1.1em; height: 1.1em; color: #ff6b77; }
  .nav-drawer-foot .lang-switch { justify-self: start; }

  .header-actions { position: relative; z-index: 96; }
  .brand { position: relative; z-index: 96; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 980px) {
  .two-col, .two-col.top, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--container)); }
  .topbar-contact a:nth-child(2) { display: none; }
  .header-inner { min-height: 70px; }
  .brand img { width: 38px; }
  .brand-text strong { font-size: 1.35rem; }
  .brand-text small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -40px; }
  .stat { padding: 22px 12px; }
  .service-card { grid-template-columns: 1fr; }
  .service-card .icon-badge { grid-row: auto; margin-bottom: 14px; }
  .nav { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
