/* Techno Mech Al-Rowad — main stylesheet */
/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --bg:        #0B0E13;
  --bg-2:      #10151C;
  --bg-3:      #161D27;
  --line:      rgba(226,179,60,.16);
  --line-2:    rgba(255,255,255,.07);
  --gold-1:    #A8650F;   /* deep amber (logo start) */
  --gold-2:    #D49A2A;
  --gold-3:    #E8BC4A;   /* bright gold (logo end)  */
  --gold-ink:  #8A5A0C;   /* gold that reads on light bg */
  --grad:      linear-gradient(120deg, var(--gold-1), var(--gold-3) 55%, var(--gold-2));
  --text:      #C3CAD6;
  --muted:     #7F8A9C;
  --white:     #F7F3EA;
  --cream:     #F5EFE3;
  --cream-2:   #EBE2D0;
  --ink:       #1B2230;
  --ink-muted: #5B6474;
  --radius:    14px;
  --nav-h:     78px;
  --ease:      cubic-bezier(.22,.8,.26,1);
  --font:      'Fira Sans', system-ui, sans-serif;
  --logo:      url("../img/logo.png");
}
html[lang="ar"] { --font: 'Cairo', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
section { position: relative; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-3); margin-block-end: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }

.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; color: var(--white); letter-spacing: -.01em; }
html[lang="ar"] .h2 { line-height: 1.4; letter-spacing: 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 620px; }
.section-head { margin-block-end: 56px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; margin-block-start: 14px; }

.gold-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-gold { background: var(--grad); color: #17110A; box-shadow: 0 10px 30px -10px rgba(212,154,42,.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(212,154,42,.75); }
.btn-ghost { border-color: var(--line); color: var(--white); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold-3); color: var(--gold-3); }

/* =========================================================
   NAVIGATION
========================================================= */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.scrolled {
  --nav-h: 66px; height: 66px;
  background: rgba(11,14,19,.86); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* logo is embedded in the page, so it always shows — no image file needed */
.logo { display: block; aspect-ratio: 520 / 259; background: var(--logo) center / contain no-repeat; }
.brand { display: block; }
.brand .logo { height: 56px; transition: height .35s; }
.nav.scrolled .brand .logo { height: 46px; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--text);
  border-radius: 999px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--gold-3); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--white); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: border-color .25s, color .25s;
}
.lang-btn:hover { border-color: var(--gold-3); color: var(--gold-3); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .lang-label-ar { font-family: 'Cairo', sans-serif; }
.lang-btn .lang-label-en { font-family: 'Fira Sans', sans-serif; }
.nav .btn { padding: 10px 20px; font-size: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   ① INTRO / ABOUT
========================================================= */
.intro {
  min-height: 100vh; padding-block: calc(var(--nav-h) + 50px) 150px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(212,154,42,.13), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(168,101,15,.10), transparent 60%),
    var(--bg);
}
html[dir="rtl"] .intro {
  background:
    radial-gradient(900px 520px at 22% 38%, rgba(212,154,42,.13), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(168,101,15,.10), transparent 60%),
    var(--bg);
}
.intro::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.intro-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro h1 {
  font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.08;
  color: var(--white); letter-spacing: -.02em; margin-block-end: 24px;
}
html[lang="ar"] .intro h1 { line-height: 1.35; letter-spacing: 0; font-size: clamp(34px, 4.8vw, 58px); }
.intro .lead { font-size: 18px; color: var(--text); margin-block-end: 36px; }
.intro-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- water-cycle schematic ---- */
.intro-visual { position: relative; }
.intro-visual::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(232,188,74,.10), transparent 70%); filter: blur(8px); }
.schematic { position: relative; width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.schematic .ground { stroke: rgba(232,188,74,.25); stroke-width: 1.2; stroke-dasharray: 4 6; }
.schematic .under  { fill: rgba(255,255,255,.015); }
.sx { fill: rgba(232,188,74,.06); stroke: var(--gold-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sx-thin { fill: none; stroke: var(--gold-2); stroke-width: 1.2; stroke-linecap: round; opacity: .6; }
.pipe { fill: none; stroke: #243040; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 16; }
.flow.clean { stroke: #63CBEA; }
.flow.waste { stroke: #C8852A; }
.tank-water { fill: rgba(99,203,234,.38); }
.win { fill: var(--gold-3); }
.dot-legend { stroke-width: 0; }
.legend text { text-anchor: start; font-size: 12px; font-weight: 500; fill: var(--muted); }
html[dir="rtl"] .legend text { text-anchor: end; }
.visual-caption { margin-block-start: 10px; text-align: center; font-size: 14px; color: var(--muted); }

/* animations: draw the structures, then water starts flowing */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .2s forwards; }
.flow { opacity: 0; animation: flow .9s linear infinite, appear .6s ease 1.5s forwards; }
.flow.slow { animation-duration: 1.4s, .6s; }
.win { opacity: .12; animation: lights 4s ease-in-out infinite; animation-delay: calc(1.8s + var(--w) * .35s); }
.tank-wave { animation: tankwave 3s linear infinite; }
.tank-level { animation: level 6s ease-in-out infinite; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.spin.slow { animation-duration: 9s; }
/* hold the diagram's animation until it scrolls into view */
body:not(.no-js) .intro-visual:not(.in) .schematic * { animation-play-state: paused; }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes flow    { to { stroke-dashoffset: -18; } }
@keyframes appear  { to { opacity: 1; } }
@keyframes lights  { 0%, 100% { opacity: .12; } 40%, 70% { opacity: .9; } }
@keyframes tankwave{ to { transform: translateX(-60px); } }
@keyframes level   { 50% { transform: translateY(10px); } }
@keyframes spin    { to { transform: rotate(360deg); } }

.highlights {
  position: relative; z-index: 2; margin-block-start: -110px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.hl {
  padding: 26px 26px 24px; border-radius: var(--radius);
  background: rgba(22,29,39,.8); border: 1px solid var(--line); backdrop-filter: blur(8px);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform .35s var(--ease), border-color .35s;
}
.hl:hover { transform: translateY(-4px); border-color: rgba(232,188,74,.4); }
.hl h3 { color: var(--white); font-size: 17px; font-weight: 600; margin-block-end: 4px; }
.hl p { font-size: 14.5px; color: var(--muted); }

.icon-box {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(232,188,74,.18), rgba(168,101,15,.06)); border: 1px solid var(--line); color: var(--gold-3);
  transition: transform .4s var(--ease);
}
.icon-box svg { width: 24px; height: 24px; }

/* =========================================================
   ② WHO WE ARE
========================================================= */
.about { padding-block: 70px 120px; background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 17px; margin-block-start: 20px; }
.about-text p + p { color: var(--muted); font-size: 16px; }
.mvv { display: grid; gap: 16px; }
.mvv-card {
  position: relative; padding: 26px 28px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line-2); overflow: hidden;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .35s, transform .35s var(--ease);
}
.mvv-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.mvv-card:hover { border-color: var(--line); transform: translateX(4px); }
html[dir="rtl"] .mvv-card:hover { transform: translateX(-4px); }
.mvv-card:hover::before { transform: scaleY(1); }
.mvv-card h3 { color: var(--white); font-size: 18px; font-weight: 600; margin-block-end: 4px; }
.mvv-card p { font-size: 15px; color: var(--muted); }

/* =========================================================
   ③ SERVICES (light)
========================================================= */
.services { padding-block: 120px; background: var(--cream); color: var(--ink-muted); }
.services .h2 { color: var(--ink); }
.services .eyebrow { color: var(--gold-ink); }
.services .lead { color: var(--ink-muted); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; padding: 34px 30px 30px; border-radius: 18px;
  background: #fff; border: 1px solid var(--cream-2);
  box-shadow: 0 1px 2px rgba(27,34,48,.04);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
.svc::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
html[dir="rtl"] .svc::after { transform-origin: right; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(27,34,48,.28); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc .num { position: absolute; inset-block-start: 22px; inset-inline-end: 26px; font-size: 44px; font-weight: 800; line-height: 1; color: rgba(168,101,15,.10); transition: color .4s; }
.svc:hover .num { color: rgba(168,101,15,.22); }
.svc .icon-box { background: linear-gradient(140deg, #FBEFD2, #F6E3B8); border-color: #EBD49F; color: var(--gold-ink); margin-block-end: 22px; width: 56px; height: 56px; border-radius: 14px; }
.svc .icon-box svg { width: 28px; height: 28px; }
.svc:hover .icon-box { transform: rotate(-6deg) scale(1.06); }
.svc h3 { color: var(--ink); font-size: 20px; font-weight: 700; margin-block-end: 10px; }
.svc > p { font-size: 15px; margin-block-end: 18px; }
.svc li { position: relative; padding-inline-start: 20px; font-size: 14.5px; color: var(--ink); margin-block-end: 6px; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

/* =========================================================
   ④ PROCESS
========================================================= */
.process { padding-block: 120px; background: var(--bg); overflow: hidden; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps-line { position: absolute; inset-block-start: 31px; inset-inline: 12%; height: 2px; background: var(--line-2); }
.steps-line i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
html[dir="rtl"] .steps-line i { transform-origin: right; }
.steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; text-align: center; padding-inline: 8px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--gold-3);
  background: var(--bg-3); border: 1px solid var(--line); position: relative; z-index: 1;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.step:hover .step-num { background: var(--grad); color: #17110A; transform: scale(1.08); }
.step h3 { color: var(--white); font-size: 18px; font-weight: 600; margin-block-end: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   ⑤ SECTORS
========================================================= */
.sectors { padding-block: 120px; background: var(--bg-2); }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector {
  position: relative; padding: 32px 26px; border-radius: 18px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line-2);
  transition: transform .4s var(--ease), border-color .4s;
}
.sector::before { /* glow that rises on hover */
  content: ""; position: absolute; inset: auto 0 -60% 0; height: 100%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(232,188,74,.20), transparent 70%);
  transition: inset .5s var(--ease);
}
.sector:hover { transform: translateY(-6px); border-color: var(--line); }
.sector:hover::before { inset: auto 0 -10% 0; }
.sector .icon-box { position: relative; margin-block-end: 20px; }
.sector h3 { position: relative; color: var(--white); font-size: 18px; font-weight: 600; margin-block-end: 8px; }
.sector p { position: relative; font-size: 14.5px; color: var(--muted); }

/* =========================================================
   ⑥ WHY US (light)
========================================================= */
.why { padding-block: 120px; background: var(--cream); color: var(--ink-muted); }
.why .h2 { color: var(--ink); }
.why .eyebrow { color: var(--gold-ink); }
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.why-intro p { font-size: 17px; margin-block-start: 20px; }
.motto { margin-block-start: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.motto span {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--gold-3);
  animation: bob 4s ease-in-out infinite;
}
.motto span:nth-child(2) { animation-delay: .5s; }
.motto span:nth-child(3) { animation-delay: 1s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item {
  padding: 28px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--cream-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-item:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(27,34,48,.3); }
.why-item .icon-box { background: linear-gradient(140deg, #FBEFD2, #F6E3B8); border-color: #EBD49F; color: var(--gold-ink); margin-block-end: 16px; }
.why-item h3 { color: var(--ink); font-size: 17px; font-weight: 700; margin-block-end: 6px; }
.why-item p { font-size: 14.5px; }

/* =========================================================
   ⑦ CONTACT
========================================================= */
.contact { padding-block: 120px; background: var(--bg); overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 600px; height: 600px; inset-block-start: -200px; inset-inline-end: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(212,154,42,.10), transparent 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.contact-info .lead { margin-block: 14px 34px; }
.c-cards { display: grid; gap: 14px; }
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line-2);
  transition: border-color .3s, transform .3s var(--ease);
}
a.c-card:hover { border-color: var(--gold-3); transform: translateX(4px); }
html[dir="rtl"] a.c-card:hover { transform: translateX(-4px); }
.c-card small { display: block; font-size: 13px; color: var(--muted); }
.c-card strong { display: block; color: var(--white); font-weight: 600; font-size: 16px; word-break: break-word; }
html[dir="rtl"] .c-card strong.ltr { text-align: right; }

.form-card { padding: 38px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--white); font-size: 15px;
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #566174; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(212,154,42,.14); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23E8BC4A' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: left 16px center; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 130px; resize: vertical; }
.form-foot { margin-block-start: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); max-width: 320px; }
.form-status { margin-block-start: 14px; font-size: 14px; color: var(--gold-3); min-height: 1.4em; }

/* =========================================================
   FOOTER
========================================================= */
footer { background: #080A0E; border-block-start: 1px solid var(--line); }
.ft-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-block: 64px 44px; }
.ft-brand .logo { height: 90px; margin-block-end: 16px; }
.ft-brand p { font-size: 14.5px; color: var(--muted); max-width: 340px; }
.ft-col h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-block-end: 18px; }
.ft-col li { margin-block-end: 10px; }
.ft-col a { font-size: 14.5px; color: var(--muted); transition: color .25s; }
.ft-col a:hover { color: var(--gold-3); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-block: 22px; border-block-start: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text); transition: color .25s; }
.to-top:hover { color: var(--gold-3); }
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); }

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */
/* uses animation + the `translate` property so it never fights the hover `transform` effects */
.reveal { opacity: 0; }
.reveal.in { animation: rise .85s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.no-js .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  .steps-line i { transform: scaleX(1); }
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .flow { opacity: 1; }
  .win { opacity: .6; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1080px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: grid; }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; inset-block-start: 100%; inset-inline: 16px;
    padding: 12px; border-radius: 16px; background: rgba(16,21,28,.98); border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  body.menu-open .nav-links a { padding: 12px 14px; }
  body.menu-open .nav { background: rgba(11,14,19,.96); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .intro .lead { margin-inline: auto; }
  .intro-ctas { justify-content: center; }
  .intro-visual { width: min(520px, 100%); margin-inline: auto; margin-block-start: 24px; }
  .highlights { grid-template-columns: 1fr; margin-block-start: -80px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps-line { display: none; }
  .ft-main { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { width: min(1200px, 100% - 32px); }
  .svc-grid, .sector-grid, .why-list, .form-grid, .steps { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .services, .process, .sectors, .why, .contact { padding-block: 84px; }
  .lang-btn .lang-text { display: none; }
  .ft-main { grid-template-columns: 1fr; }
}
