/* ============================================================
   Nextra Marketing Agency — site styles
   Brand: red #EF4036, charcoal #3A3A3C (official brand palette)
   Layout uses CSS logical properties so ar/rtl and en/ltr share one sheet.
   ============================================================ */

:root {
  --red: #ef4036;
  --red-dk: #ce372e;
  --red-soft: rgba(239, 64, 54, .12);
  --ink: #3a3a3c;
  --black: #121214;
  --panel: #1a1a1e;
  --panel-2: #22222a;
  --line: rgba(255, 255, 255, .1);
  --line-dk: rgba(18, 18, 20, .1);
  --paper: #ffffff;
  --paper-2: #f6f6f7;
  --muted: #6f6f76;
  --muted-dk: rgba(255, 255, 255, .62);

  --wrap: 1200px;
  --r: 14px;
  --r-lg: 22px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --sect: clamp(3.6rem, 7vw, 6.2rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.75;
  overflow-x: hidden;
}

html[lang="en"] body { line-height: 1.7; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 800; letter-spacing: -.025em; }

h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

ul.plain { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .7rem 1.1rem;
}
.skip:focus { inset-inline-start: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ico-end { transform: scaleX(-1); }

/* ------------------------------------------------------------ buttons */
.btn {
  --bg: var(--red);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: #fff;
  padding: .85rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.btn:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 12px 28px -12px var(--red); }
.btn:active { transform: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: #000; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--red);
}
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------ header */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(18, 18, 20, .55);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.hdr.stuck { background: rgba(18, 18, 20, .93); border-bottom-color: var(--line); }

.hdr-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.hdr-logo img { height: 34px; width: auto; }

.hdr-nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.hdr-nav a {
  position: relative; color: rgba(255, 255, 255, .82);
  font-size: .96rem; font-weight: 500; padding-block: .4rem;
  transition: color .2s;
}
.hdr-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .3s var(--ease);
}
.hdr-nav a:hover, .hdr-nav a.on { color: #fff; }
.hdr-nav a:hover::after, .hdr-nav a.on::after { transform: scaleX(1); }

.hdr-side { display: flex; align-items: center; gap: .8rem; }
.lang {
  color: #fff; font-weight: 600; font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  min-width: 2.4rem; padding: .35rem .7rem; text-align: center;
  transition: border-color .2s, background .2s;
}
.lang:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: clip;
  background: var(--black);
  color: #fff;
  padding-block: clamp(8rem, 16vw, 12rem) clamp(4rem, 8vw, 7rem);
}
.hero::before {
  /* diagonal slash lifted from the N in the logo */
  content: ""; position: absolute; inset: -20% -10%;
  background: repeating-linear-gradient(115deg,
      transparent 0 68px, rgba(255, 255, 255, .045) 68px 70px);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  inset-block: -30%; inset-inline-end: -6%;
  width: min(34vw, 470px);
  background: linear-gradient(180deg, var(--red) 0%, rgba(239, 64, 54, 0) 88%);
  opacity: .22; filter: blur(38px);
  transform: skewX(-18deg);
}
[dir="rtl"] .hero::after { transform: skewX(18deg); }

.hero-in { position: relative; z-index: 1; max-width: 56rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--red-soft);
  border: 1px solid rgba(239, 64, 54, .45); border-radius: 999px;
  padding: .4rem 1rem; margin-bottom: 1.6rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--red); display: block; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--muted-dk); max-width: 40ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-stats div { background: var(--black); padding: 1.5rem 1.3rem; }
.hero-stats b {
  display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-weight: 800; line-height: 1; color: #fff;
}
.hero-stats span { display: block; margin-top: .45rem; font-size: .9rem; color: var(--muted-dk); }

/* ------------------------------------------------------------ marquee */
.marquee {
  background: var(--red); color: #fff;
  padding-block: .85rem;
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(0, 0, 0, .08);
}
.marquee-track {
  display: inline-flex; gap: 3rem; padding-inline-end: 3rem;
  animation: slide 34s linear infinite;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .92rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* ------------------------------------------------------------ sections */
.sect { padding-block: var(--sect); }
.sect-dark { background: var(--panel); color: #fff; }
.sect-soft { background: var(--paper-2); }

.sect-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sect-head .eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.sect-head .eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--red); flex: none;
}
.sect-head h2 { margin: 0; }
.sect-head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.sect-dark .sect-head p { color: var(--muted-dk); }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 1.25rem; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------ service cards */
.svc {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc::after {
  content: ""; position: absolute; top: 0; inset-inline-end: 0;
  width: 90px; height: 90px;
  background: var(--red); opacity: .07;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
[dir="rtl"] .svc::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.svc:hover { transform: translateY(-6px); border-color: rgba(239, 64, 54, .4); box-shadow: 0 26px 50px -30px rgba(18, 18, 20, .45); }

.svc-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.2rem;
  border-radius: 14px; background: var(--red-soft); color: var(--red);
}
.svc-ico .ico { width: 26px; height: 26px; }
.svc h3 { margin-bottom: .5rem; }
.svc > p { color: var(--muted); font-size: .98rem; }
.svc ul { list-style: none; margin: 1.1rem 0 0; padding: 0; border-top: 1px dashed var(--line-dk); padding-top: 1rem; }
.svc ul li {
  position: relative; padding-inline-start: 1.4rem; margin-bottom: .45rem;
  font-size: .94rem; color: var(--ink);
}
.svc ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 7px; height: 7px; background: var(--red); border-radius: 2px; transform: rotate(45deg);
}

/* ------------------------------------------------------------ why cards */
.why {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem; background: rgba(255, 255, 255, .03);
  transition: background .3s, transform .3s var(--ease);
}
.why:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.why b {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--red); margin-bottom: 1rem;
}
.why h3 { color: #fff; }
.why p { color: var(--muted-dk); margin: 0; font-size: .98rem; }

/* ------------------------------------------------------------ project cards */
.pcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-dk);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -32px rgba(18, 18, 20, .5); }
.pcard-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--panel), var(--red-dk));
  color: rgba(255, 255, 255, .85); font-weight: 800; font-size: 1.6rem; letter-spacing: .08em;
}
.pcard-tag {
  position: absolute; inset-block-start: .9rem; inset-inline-start: .9rem;
  background: rgba(18, 18, 20, .78); color: #fff; backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px;
}
.pcard-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { margin-bottom: .4rem; }
.pcard-body p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.pcard-body .link-arrow { margin-top: auto; }

/* ------------------------------------------------------------ project page */
.phero { background: var(--black); color: #fff; padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3rem, 6vw, 4.5rem); }
.phero .kicker { margin-bottom: 1.2rem; }
.phero h1 { max-width: 40ch; }
.phero p { color: var(--muted-dk); max-width: 60ch; font-size: 1.12rem; }
.pmeta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.pmeta div span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dk); }
.pmeta div b { font-size: 1.1rem; }

.pcover { border-radius: var(--r-lg); overflow: hidden; margin-top: -3rem; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6); }
.pcover img { width: 100%; height: auto; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose p { color: #4a4a52; }

.metrics { display: grid; gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: var(--r-lg); overflow: hidden; }
.metrics div { background: var(--paper); padding: 1.6rem 1.4rem; }
.metrics b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 800; color: var(--red); line-height: 1; }
.metrics span { display: block; margin-top: .5rem; color: var(--muted); font-size: .93rem; }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery img { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------ team + sectors */
.tcard { text-align: center; padding: 1.8rem 1.2rem; border: 1px solid var(--line-dk); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.tcard .portrait {
  width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1;
  margin: -.6rem auto 1rem; object-fit: cover;
  border-radius: var(--r);
  background: var(--paper-2);
}
.tcard .avatar {
  width: 74px; height: 74px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
}
.tcard h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.tcard p { margin: 0; color: var(--muted); font-size: .9rem; }

.scard { padding: 1.7rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-dk); }
.scard h3 { margin-bottom: .35rem; }
.scard p { margin: 0; color: var(--muted); font-size: .97rem; }

/* two-up vision / mission */
.vm { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm > div {
  padding: 2.2rem 2rem; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.vm h3 { color: var(--red); }
.vm p { margin: 0; color: var(--muted-dk); font-size: 1.05rem; }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.qlist li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.03rem; }
.qlist .ico { color: var(--red); margin-top: .35em; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1.15fr .85fr; align-items: start; }

.form-card { background: var(--paper); border: 1px solid var(--line-dk); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-dk); border-radius: var(--r);
  padding: .8rem 1rem;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: var(--paper);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.f2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp { position: absolute; inset-inline-start: -9999px; }

.alert { border-radius: var(--r); padding: .95rem 1.2rem; margin-bottom: 1.4rem; font-weight: 500; }
.alert-ok { background: #e8f6ee; color: #12683c; border: 1px solid #b8e3c9; }
.alert-bad { background: #fdeceb; color: #9c2016; border: 1px solid #f6c4bf; }

.info-list { display: grid; gap: 1rem; }
.info-list > a, .info-list > div {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line-dk);
  border-radius: var(--r); padding: 1.1rem 1.2rem;
  transition: border-color .2s, transform .25s var(--ease);
}
.info-list a:hover { border-color: var(--red); transform: translateY(-2px); }
.info-list .ico { color: var(--red); margin-top: .3em; }
.info-list span { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-list b { font-weight: 600; }

/* ------------------------------------------------------------ cta band + footer */
.cta-band {
  background: var(--red); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(0, 0, 0, .05) 60px 62px);
}
.cta-in { position: relative; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-in h2 { margin: 0 0 .35rem; }
.cta-in p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.cta-acts { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn { background: var(--black); }
.cta-band .btn:hover { background: #000; box-shadow: none; }
.cta-band .btn-ghost { background: transparent; }

.ftr { background: var(--black); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.ftr-brand img { height: 48px; width: auto; margin-bottom: 1.2rem; }
.ftr h3 { font-size: .85rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.ftr p, .ftr a { color: var(--muted-dk); font-size: .95rem; }
.ftr a:hover { color: #fff; }
.ftr li { margin-bottom: .55rem; }
.ftr-slogan { color: #fff !important; font-weight: 700; letter-spacing: .02em; }
.ftr-btm {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: rgba(255, 255, 255, .45);
}

.wa-fab {
  position: fixed; inset-block-end: 1.2rem; inset-inline-end: 1.2rem; z-index: 90;
  width: 54px; height: 54px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .8);
  transition: transform .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .ico { width: 26px; height: 26px; }

/* ------------------------------------------------------------ page hero (inner pages) */
.phead { background: var(--black); color: #fff; padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3rem, 6vw, 4.5rem); position: relative; overflow: clip; }
.phead::after {
  content: ""; position: absolute; inset-block: -40%; inset-inline-end: -8%;
  width: min(40vw, 480px); background: linear-gradient(180deg, var(--red), transparent 80%);
  opacity: .35; transform: skewX(-18deg);
}
[dir="rtl"] .phead::after { transform: skewX(18deg); }
.phead-in { position: relative; max-width: 50rem; }
.phead p { color: var(--muted-dk); font-size: 1.12rem; }

/* ------------------------------------------------------------ reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .hdr-side .btn { display: none; }
  .hdr-nav {
    position: fixed; inset-block-start: 76px; inset-inline: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(18, 18, 20, .98); backdrop-filter: blur(14px);
    border-block: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .hdr-nav.open { max-height: 60vh; }
  .hdr-nav a { padding: 1rem var(--pad); border-bottom: 1px solid var(--line); }
  .hdr-nav a::after { display: none; }

  .g-3, .g-2, .vm { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .f2 { grid-template-columns: 1fr; }
  .hero-acts .btn, .cta-acts .btn { flex: 1 1 100%; justify-content: center; }
  .pcover { margin-top: -1.5rem; }
}

/* ============================================================
   3D layer — pointer-tilted cards and a rotating brand cube.
   Pure CSS transforms, no libraries. Only on hover-capable pointers,
   and the reduced-motion block above disables all of it.
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  .svc, .pcard, .why, .scard, .tcard {
    transform-style: preserve-3d;
    transform: perspective(820px)
               rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
               translate3d(0, var(--ty, 0px), 0);
    transition: transform .35s var(--ease), box-shadow .3s, border-color .3s, background .3s;
  }
  .svc:hover, .pcard:hover, .why:hover, .scard:hover, .tcard:hover {
    --ty: -6px;
    transform: perspective(820px)
               rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
               translate3d(0, -6px, 0);
  }
  /* lift the inner content off the card face so the tilt reads as depth */
  .svc-ico, .why b, .tcard .avatar { transform: translateZ(26px); }
  .svc h3, .pcard-body h3, .why h3, .scard h3 { transform: translateZ(14px); }
}

/* ============================================================
   "Rise your brand up" — the hero scene.
   Five 3D bars that grow upward on a loop with a trend arrow
   climbing over them. Real CSS 3D boxes (front, side, top faces),
   no library, no canvas.
   ============================================================ */

.hero-3d {
  position: absolute; z-index: 1;
  inset-inline-end: clamp(1.5rem, 6vw, 6rem);
  top: 50%;
  width: 330px; height: 300px;
  transform: translateY(-46%);
  perspective: 1100px;
  pointer-events: none;
}

.rise {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-19deg) rotateY(-32deg);
}

/* ground plane the bars stand on */
.rise .floor {
  position: absolute; left: -2%; bottom: 44px;
  width: 84%; height: 190px;
  transform: rotateX(90deg);
  transform-origin: bottom center;
  background: linear-gradient(180deg, rgba(239, 64, 54, .11), transparent 68%);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.rise .bar {
  --w: 46px;
  --d: 46px;
  position: absolute; bottom: 44px;
  left: calc(var(--i) * 58px);
  width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  animation: bar-grow 3s var(--ease) infinite;
  animation-delay: calc(var(--i) * .07s);
}

.rise .bar i {
  position: absolute; display: block;
  border: 1px solid rgba(255, 255, 255, .12);
}
/* front, right side and top of each box */
.rise .fr { inset: 0; transform: translateZ(calc(var(--d) / 2)); background: var(--face); }
.rise .sd {
  top: 0; left: calc(50% - var(--d) / 2); width: var(--d); height: 100%;
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
  background: var(--face-dark);
}
.rise .tp {
  top: calc(var(--d) / -2); left: 0; width: var(--w); height: var(--d);
  transform: rotateX(90deg);
  background: var(--face-top);
}

/* four charcoal bars, then the brand bar in red */
.rise .bar {
  --face: linear-gradient(180deg, #33333c, #23232a);
  --face-dark: #1b1b21;
  --face-top: #43434e;
}
.rise .bar-brand {
  --face: linear-gradient(180deg, var(--red), var(--red-dk));
  --face-dark: var(--red-dk);
  --face-top: #ff6f64;
  box-shadow: 0 0 60px -8px rgba(239, 64, 54, .5);
}
/* the diagonal slash from the logo, on the tallest bar */
.rise .bar-brand .fr::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .92) 42%,
              rgba(255, 255, 255, .92) 50%, transparent 50%);
}

@keyframes bar-grow {
  0%          { height: 6px; opacity: .25; }
  22%, 78%    { height: var(--h); opacity: 1; }
  100%        { height: 6px; opacity: .25; }
}

/* the trend line climbing across the bars */
.rise .trend {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  transform: translateZ(34px);
}
.rise .trend path, .rise .trend polyline {
  fill: none; stroke: var(--red); stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(239, 64, 54, .75));
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: trend-draw 3s var(--ease) infinite;
}
.rise .trend .head { stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: .25s; }

@keyframes trend-draw {
  0%        { stroke-dashoffset: 420; opacity: 0; }
  10%       { opacity: 1; }
  45%, 80%  { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* glow puddle so the scene sits in the page instead of floating */
.hero-3d::after {
  content: ""; position: absolute; left: 46%; bottom: 8px;
  width: 320px; height: 70px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(239, 64, 54, .22), transparent 70%);
  filter: blur(10px);
}

@media (max-width: 1180px) { .hero-3d { display: none; } }

/* ============================================================
   Content blocks added to fill the pages: process steps, FAQ,
   working hours, work filters — plus a texture so the light
   sections do not read as blank paper.
   ============================================================ */

/* faint diagonal weave, same angle as the hero stripes */
.sect:not(.sect-dark)::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(115deg,
      transparent 0 74px, rgba(18, 18, 20, .022) 74px 76px);
  pointer-events: none;
}
.sect { position: relative; }
.sect > .wrap { position: relative; z-index: 1; }

/* ---- process steps ---- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper); border: 1px solid var(--line-dk);
  border-radius: var(--r-lg); padding: 2rem 1.6rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(239, 64, 54, .4); box-shadow: 0 24px 46px -30px rgba(18, 18, 20, .45); }
.step-n {
  display: block; font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--red-soft); margin-bottom: .6rem;
  -webkit-text-stroke: 1px var(--red);
}
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
/* connecting rail between the steps on wide screens */
.step::after {
  content: ""; position: absolute; top: 3.1rem;
  inset-inline-start: 100%; width: 1.25rem; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
[dir="rtl"] .step::after { background: linear-gradient(270deg, var(--red), transparent); }
.step:last-child::after { display: none; }

/* ---- faq ---- */
.faq { max-width: 52rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
  margin-bottom: .8rem; overflow: hidden;
  transition: background .25s, border-color .25s;
}
.faq details[open] { background: rgba(255, 255, 255, .07); border-color: rgba(239, 64, 54, .4); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 1.3rem; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: .8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-inline-start: auto;
  font-size: 1.4rem; line-height: 1; color: var(--red);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted-dk); }

/* ---- working hours card ---- */
/* a direct child of .info-list, so it must opt out of that flex-row card style */
.info-list > .hours-card {
  display: block;
  background: var(--paper); border: 1px solid var(--line-dk);
  border-radius: var(--r); padding: 1.2rem 1.3rem;
}
.hours-card h3 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem;
}
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-weight: 600; }
.hours-row.off { color: var(--muted); font-weight: 500; }
.hours-card .reply {
  display: flex; align-items: center; gap: .5rem;
  margin: .9rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--line-dk);
  color: var(--red); font-weight: 600; font-size: .93rem;
}

/* ---- page-head stats (work page) ---- */
.phead-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.2rem; }
.phead-stats b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; color: #fff; }
.phead-stats span { font-size: .9rem; color: var(--muted-dk); }

/* ---- category filter chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-dk); border-radius: 999px;
  padding: .5rem 1.15rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--red); transform: translateY(-2px); }
.chip.on { background: var(--red); color: #fff; border-color: var(--red); }
.pcard[hidden] { display: none; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { display: none; } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } .phead-stats { gap: 1.5rem; } }

/* ---- office map ---- */
.map {
  margin: 0; overflow: hidden;
  border: 1px solid var(--line-dk); border-radius: var(--r-lg);
  aspect-ratio: 21 / 9; background: var(--panel);
  box-shadow: 0 30px 60px -40px rgba(18, 18, 20, .5);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }
