/* ================================================================
   G CODE — Shared Stylesheet
   Color philosophy: dark-warm, not pitch-black. Sections alternate
   between three tones so they breathe. Orange accent is generous.
================================================================ */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Accent */
  --accent:    #E07820;
  --accent-h:  #F0892C;
  --a-glow:    rgba(224,120,32,0.13);
  --a-dim:     rgba(224,120,32,0.06);
  --a-border:  rgba(224,120,32,0.22);

  /* Backgrounds — graduated, not monochrome */
  --bg:     #0C0C0C;   /* primary — warm near-black   */
  --bg2:    #111111;   /* alternate sections           */
  --bg3:    #181818;   /* lighter alternate            */
  --card:   #1E1E1E;   /* cards — clearly distinct     */
  --card-h: #242424;   /* card hover                   */

  /* Borders */
  --b1: #222222;   /* subtle                      */
  --b2: #2E2E2E;   /* standard                    */
  --b3: #3A3A3A;   /* light / hover               */

  /* Text */
  --text:   #EEEEEE;   /* primary                      */
  --muted:  #9A9A9A;   /* secondary — intentionally light */
  --dim:    #505050;   /* decorative / very subtle     */

  /* Warm CTA gradient (dark amber, not garish) */
  --warm-grad: linear-gradient(135deg, #1C0E04 0%, #0E0E0E 55%);

  /* Misc */
  --font:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:      12px;
  --r2:     20px;
  --ease:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 110px 0; }
.sec-head  { margin-bottom: 4rem; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin: 0 auto; }

/* ── Typography ────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.sec-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(224,120,32,0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--b2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* ── Nav ───────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 1.2rem 0;
  transition: var(--ease);
}
.site-nav.solid {
  background: rgba(12,12,12,0.96);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--b1);
  padding: 0.8rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
  position: relative;
}
.nav-links a:hover   { color: var(--text); }
.nav-links a.active  { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-ar { font-size: 0.82rem !important; }

/* Nav "Book Consultation" — outline style so it reads lighter on the dark bar */
.nav-links .btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(224,120,32,0.55);
}
.nav-links .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(224,120,32,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}

/* ── Mobile nav ────────────────────────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed; inset: 0; z-index: 950;
  background: var(--bg2);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.mob-nav.open { display: flex; }
.mob-nav a { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.mob-nav a:hover { color: var(--text); }
.mob-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--text); font-size: 1.5rem; cursor: pointer;
}

/* ── Inner page hero (all non-home pages) ──────────────────────── */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.page-hero-number {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Divider lines ─────────────────────────────────────────────── */
.h-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b2), transparent);
  border: none;
  margin: 0;
}

/* ── Stats bar ─────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg3);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-n {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  display: block;
}
.stat-l { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* ── Service cards ─────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 2.25rem;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.svc-card:hover { background: var(--card-h); border-color: var(--b3); transform: translateY(-3px); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 50px; height: 50px;
  background: var(--a-glow);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.svc-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.7rem; }
.svc-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.svc-tag {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.22rem 0.6rem;
  background: var(--a-dim);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Case study cards ──────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--a-border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
/* Dashboard mockup inside case visual */
.case-vis {
  height: 185px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dash {
  width: 80%; height: 70%;
  background: #090909;
  border: 1px solid #1E1E1E;
  border-radius: 8px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 7px;
}
.d-row { display: flex; gap: 6px; align-items: flex-end; }
.d-bar { height: 5px; border-radius: 3px; background: rgba(224,120,32,0.18); }
.d-bar.a { background: var(--accent); }
.d-cols {
  flex: 1; display: flex; gap: 3px; align-items: flex-end;
  padding: 5px;
  background: rgba(224,120,32,0.04);
  border: 1px solid rgba(224,120,32,0.09);
  border-radius: 4px;
}
.d-col { flex:1; border-radius: 2px; background: rgba(224,120,32,0.32); }
.d-col.a { background: var(--accent); }
.d-box {
  background: rgba(224,120,32,0.06);
  border: 1px solid rgba(224,120,32,0.1);
  border-radius: 4px;
}
.case-badge {
  position: absolute; top: .85rem; left: .85rem;
  padding: 0.25rem 0.7rem;
  background: rgba(12,12,12,0.9); border: 1px solid var(--b2);
  border-radius: 100px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.case-body { padding: 1.75rem; }
.case-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.case-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.case-metrics {
  display: flex; gap: 0.75rem;
  padding: 1rem; background: var(--bg3);
  border-radius: 8px; margin-bottom: 1.25rem;
}
.cm   { flex:1; text-align:center; }
.cm-v { font-size:1.2rem; font-weight:900; color:var(--accent); letter-spacing:-0.02em; }
.cm-l { font-size:0.68rem; color:var(--muted); margin-top:2px; }
.case-tech { display:flex; flex-wrap:wrap; gap:0.35rem; }
.case-tech span {
  font-size:0.7rem; font-weight:500;
  padding:0.2rem 0.5rem;
  background:var(--bg3); border:1px solid var(--b1);
  border-radius:4px; color:var(--muted);
}

/* ── Industries strip ──────────────────────────────────────────── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}
.ind-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  padding: 1.4rem 0.75rem;
  background: var(--card); border: 1px solid var(--b1);
  border-radius: var(--r);
  transition: border-color var(--ease), background var(--ease);
  cursor: default;
}
.ind-item:hover { border-color: var(--a-border); background: var(--a-dim); }
.ind-icon { font-size: 1.6rem; }
.ind-name { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-align: center; }

/* ── Tech ticker ───────────────────────────────────────────────── */
.ticker-wrap {
  padding: 56px 0;
  background: var(--bg3);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  overflow: hidden;
}
.ticker-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 2rem;
  font-size: 0.88rem; font-weight: 400;
  color: #767676;
  white-space: nowrap;
  transition: color var(--ease);
}
.ticker-item:hover { color: #A0A0A0; }
.ticker-sep { width: 4px; height: 4px; background: var(--b2); border-radius: 50%; flex-shrink: 0; }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band {
  background: var(--warm-grad);
  border-top: 1px solid rgba(224,120,32,0.12);
  border-bottom: 1px solid rgba(224,120,32,0.12);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.cta-band p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Process steps ─────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--b1);
  background: var(--card);
  position: relative;
  transition: background var(--ease);
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--card-h); }
.process-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--a-border);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 1rem;
}
.process-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.process-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── About grid ────────────────────────────────────────────────── */
.about-card {
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 2.25rem;
}
.about-card-lbl {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.5rem;
}
.about-list { display: flex; flex-direction: column; gap: 0.9rem; }
.about-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem;
}
.about-list li::before {
  content: '';
  width: 6px; height: 6px; flex-shrink: 0;
  background: var(--accent); border-radius: 50%;
  margin-top: 6px;
}
.about-badges { display: flex; gap: 1rem; margin-top: 2rem; }
.ab {
  flex: 1; padding: 1rem;
  background: var(--bg3); border: 1px solid var(--b1);
  border-radius: var(--r); text-align: center;
}
.ab-n { font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.ab-l { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }

/* ── Values cards ──────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  transition: border-color var(--ease), transform var(--ease);
}
.value-card:hover { border-color: var(--a-border); transform: translateY(-3px); }
.value-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--a-glow);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  display: block;
  /* outline the number with accent */
  -webkit-text-stroke: 1px var(--a-border);
  color: transparent;
}
.value-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.7rem; }
.value-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── Contact form ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 5rem;
  align-items: start;
}
.ci-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; }
.ci-desc  { font-size: 0.93rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.ci-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem;
  background: var(--card); border: 1px solid var(--b1);
  border-radius: var(--r);
  margin-bottom: 0.75rem;
  transition: border-color var(--ease);
  color: var(--text);
}
.ci-item:hover { border-color: var(--a-border); }
.ci-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--a-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ci-txt strong { display: block; font-size: 0.84rem; margin-bottom: 2px; }
.ci-txt span   { font-size: 0.78rem; color: var(--muted); }

.cf {
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 2.5rem;
}
.cf-title  { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.cf-sub    { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.75rem; }
.cf-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-group  { margin-bottom: 1rem; }
.cf-label  {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 0.45rem; letter-spacing: 0.03em;
}
.cf-input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg3); border: 1px solid var(--b2);
  border-radius: 8px; color: var(--text);
  font-family: var(--font); font-size: 0.88rem;
  outline: none; transition: border-color var(--ease);
  -webkit-appearance: none;
}
.cf-input:focus  { border-color: var(--accent); }
.cf-input::placeholder { color: var(--dim); }
textarea.cf-input { resize: vertical; min-height: 115px; }
.cf-submit {
  width: 100%; margin-top: 0.25rem;
  padding: 1rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-family: var(--font); font-size: 0.97rem; font-weight: 700;
  cursor: pointer; transition: var(--ease);
}
.cf-submit:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(224,120,32,0.38);
}
.cf-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
#formMsg {
  display: none; margin-top: 0.75rem;
  font-size: 0.88rem; text-align: center;
}

/* ── Section link row ──────────────────────────────────────────── */
.see-all {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}
.see-all-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--accent);
  transition: gap var(--ease);
}
.see-all-link:hover { gap: 0.75rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--b1);
  padding: 3rem 0;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.foot-logo img { height: 34px; }
.foot-copy { font-size: 0.78rem; color: #767676; }
.foot-links { display: flex; gap: 1.75rem; }
.foot-links a { font-size: 0.82rem; color: #767676; transition: color var(--ease); }
.foot-links a:hover { color: #A8A8A8; }

/* ── SVG animated hero lines ───────────────────────────────────── */
/*
   Effect: thin bezier paths that draw themselves on load, with a
   glowing dot riding the tip — matches the Wix tech template style.
*/
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines svg { width: 100%; height: 100%; }

.hl-path {
  fill: none;
  stroke: rgba(224,120,32,0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 2200);
  stroke-dashoffset: var(--len, 2200);
  animation:
    path-draw var(--dur, 2.6s) cubic-bezier(0.5, 0, 0.25, 1) var(--delay, 0.5s) forwards,
    path-fade 0.8s ease var(--trace-fade, 6.1s) forwards;
}
.hl-path.sec {
  stroke: rgba(224,120,32,0.1);
  stroke-width: 1;
  --delay: 0.9s;
  --trace-fade: 6.5s;
}

@keyframes path-draw { to { stroke-dashoffset: 0; } }
@keyframes path-fade  { to { opacity: 0; } }

/* The glowing dot at the travelling tip */
.hl-dot {
  fill: #E07820;
  opacity: 0;
  filter:
    drop-shadow(0 0 3px rgba(224,120,32,0.9))
    drop-shadow(0 0 9px rgba(224,120,32,0.55))
    drop-shadow(0 0 18px rgba(224,120,32,0.25));
  animation: dot-appear 0.01s linear var(--dot-delay, 0.5s) forwards;
}
@keyframes dot-appear { to { opacity: 1; } }

/* Dot fades in sync with the trace removal */
.hl-dot.fade {
  animation:
    dot-appear 0.01s linear var(--dot-delay, 0.5s) forwards,
    dot-fade 0.8s ease var(--fade-at, 6.1s) forwards;
}
@keyframes dot-fade { to { opacity: 0; } }

/* ── Page-hero top border: reveal left → right ─────────────────── */
.page-hero::before {
  transform-origin: left center;
  animation: top-bar-reveal 1.4s cubic-bezier(0.4, 0, 0.15, 1) 0.25s both;
}
@keyframes top-bar-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* Diagonal accent line on inner page heroes (CSS-only) */
.page-hero::after {
  content: '';
  position: absolute;
  /* wide thin line using a rotated gradient */
  inset: 0;
  background: linear-gradient(
    128deg,
    transparent 0%,
    transparent 62%,
    rgba(224,120,32,0.055) 62%,
    rgba(224,120,32,0.055) 62.4%,
    transparent 62.4%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: diag-line-in 1s ease 0.7s forwards;
}
@keyframes diag-line-in {
  from { opacity: 0; transform: translateX(-6%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Scroll reveal ─────────────────────────────────────────────── */
.rev {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rev.in    { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid, .case-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid    { grid-template-columns: repeat(4,1fr); }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; gap: 3rem; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-top: 1px solid var(--b1); }
  .process-step:nth-child(4) { border-top: 1px solid var(--b1); border-right: none; }
}
@media (max-width: 768px) {
  .section  { padding: 80px 0; }
  .container{ padding: 0 1.25rem; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .svc-grid, .case-grid, .values-grid, .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-top: 1px solid var(--b1); }
  .process-step:first-child { border-top: none; }
  .ind-grid   { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cf-row     { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .about-badges { flex-wrap: wrap; }
  .cta-band-btns { flex-direction: column; align-items: center; }
}

/* ================================================================
   RTL — Arabic pages  (html[dir="rtl"])
================================================================ */
[dir="rtl"] {
  font-family: 'Cairo', var(--font);
}

/* Nav: preserve left logo, right links order */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .foot-inner { flex-direction: row-reverse; }
[dir="rtl"] .foot-links { flex-direction: row-reverse; }

/* Page-hero decorative number: mirror to left */
[dir="rtl"] .page-hero-number { right: auto; left: 4%; }

/* Top-bar reveal: right → left */
[dir="rtl"] .page-hero::before { animation-name: top-bar-reveal-rtl; }
@keyframes top-bar-reveal-rtl {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0%); }
}

/* Diagonal accent: mirror slide direction */
[dir="rtl"] .page-hero::after { animation-name: diag-line-in-rtl; }
@keyframes diag-line-in-rtl {
  from { opacity: 0; transform: translateX(6%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Service card top-bar: grow from right */
[dir="rtl"] .svc-card::after { transform-origin: right; }

/* Case badge: swap side */
[dir="rtl"] .case-badge { left: auto; right: .85rem; }

/* Process steps: reverse divider border */
[dir="rtl"] .process-step { border-right: none; border-left: 1px solid var(--b1); }
[dir="rtl"] .process-step:last-child { border-left: none; }

/* Story quote accent border */
[dir="rtl"] .story-quote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: var(--r) 0 0 var(--r);
}

/* Legal highlight accent border */
[dir="rtl"] .legal-highlight {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: var(--r) 0 0 var(--r);
}

/* Ticker: scroll right → left (reversed) */
[dir="rtl"] .ticker-track { animation-direction: reverse; }

/* "See all" arrow: flip */
[dir="rtl"] .see-all-link svg { transform: rotate(180deg); }
[dir="rtl"] .btn svg,
[dir="rtl"] .cta-band-btns .btn svg { transform: rotate(180deg); }

/* Mobile nav: already column, fine */
[dir="rtl"] .mob-nav a { direction: rtl; }

/* Responsive RTL tweaks */
@media (max-width: 1024px) {
  [dir="rtl"] .process-step:nth-child(2) { border-left: none; }
  [dir="rtl"] .process-step:nth-child(4) { border-left: none; }
}
@media (max-width: 768px) {
  [dir="rtl"] .process-step { border-left: none; }
  [dir="rtl"] .foot-inner   { flex-direction: column; }
  [dir="rtl"] .foot-links   { flex-direction: row; flex-wrap: wrap; }
}
