/* Cybasco redesign: home page. Used with shell.css (tokens, header, footer).
   Loaded INSTEAD of style.css, so plain class names are safe here. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.2; }
h3 { font: 600 1.125rem/1.35 var(--sans); }
mark { background: linear-gradient(transparent 62%, rgba(0, 194, 255, .38) 62%); color: inherit; padding: 0 .06em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r-md); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 88px; background: linear-gradient(165deg, var(--cyan-50) 0%, var(--page) 46%, var(--tint-50) 100%); }
.hero::before { content: ""; position: absolute; z-index: 0; width: 560px; height: 560px; right: -170px; top: 30px; border-radius: 50%; border: 2px solid rgba(0, 194, 255, .30); }
.hero::after { content: ""; position: absolute; z-index: 0; width: 300px; height: 300px; right: 110px; bottom: -150px; border-radius: 50%; background: var(--tint-100); opacity: .7; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero .rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--brand-strip); margin-bottom: 28px; }
.hero h1 { max-width: 17ch; }
.lead { margin-top: 24px; max-width: 58ch; font-size: 1.1875rem; line-height: 1.55; color: var(--text-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--text-2); font-size: .9375rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-cyan); flex-shrink: 0; }
.facts li:nth-child(even)::before { background: var(--brand-blue); }

.panel { background: var(--white); border: 1px solid var(--tint-200); border-top: 4px solid var(--brand-cyan); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: 0 12px 32px rgba(var(--primary-rgb), .13); }
.panel h2 { font-size: 1.375rem; }
.panel > p { margin-top: 6px; color: var(--text-3); font-size: .9375rem; }
.chip-group { margin-top: 18px; }
.chip-group h3 { display: flex; align-items: center; gap: 8px; font: 600 .875rem/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; }
.chip-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--primary)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; border-radius: 999px; font: 500 .8125rem/1.5 var(--sans); color: var(--ink); background: var(--tint, var(--tint-50)); border: 1px solid var(--tint-line, var(--tint-100)); }
.g-global { --dot: var(--ink); --tint: var(--white); --tint-line: var(--line); }
.g-us { --dot: var(--primary); --tint: var(--tint-50); --tint-line: var(--tint-200); }
.g-uk { --dot: var(--brand-cyan); --tint: var(--cyan-50); --tint-line: var(--cyan-100); }
.g-mena { --dot: var(--brand-blue); --tint: var(--tint-100); --tint-line: var(--tint-200); }
.g-pk { --dot: var(--cyan-text); --tint: var(--cyan-100); --tint-line: #A8E4FA; }
.panel .more { margin-top: 18px; font-size: .9375rem; }

.proof { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof a { display: block; color: inherit; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--brand-cyan)); border-radius: var(--r-md); padding: 24px 24px 22px; transition: border-color .2s, box-shadow .2s; }
.proof a:nth-child(2) { --c: var(--brand-blue); }
.proof a:hover { box-shadow: 0 6px 18px rgba(var(--primary-rgb), .14); border-color: var(--tint-200); border-top-color: var(--c); }
.proof-num { font: 700 clamp(2.2rem, 3.6vw, 3rem)/1.05 var(--serif); color: var(--primary); font-variant-numeric: lining-nums; }
.proof-text { margin-top: 10px; color: var(--text-2); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--cyan { background: var(--cyan-50); }
.section--tint { background: var(--tint-50); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px 72px; align-items: start; }
.split > header p { margin-top: 16px; color: var(--text-2); max-width: 36ch; }
.sub { margin: 12px 0 40px; color: var(--text-2); max-width: 60ch; }
.more { margin-top: 24px; }

.rows { counter-reset: r; }
.rows li { counter-increment: r; display: grid; grid-template-columns: 44px 200px minmax(0, 1fr); gap: 6px 20px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li::before { content: counter(r, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-100); color: var(--primary); font: 600 .875rem/1 var(--sans); align-self: start; }
.rows li:nth-child(even)::before { background: var(--cyan-100); color: var(--cyan-text); }
.rows h3 a { color: var(--ink); text-decoration: none; }
.rows h3 a:hover { color: var(--primary); text-decoration: underline; }
.rows p { color: var(--text-2); max-width: 68ch; }

.work-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 28px 6px; overflow-x: auto; box-shadow: 0 4px 16px rgba(13, 17, 23, .05); }
.work { width: 100%; border-collapse: collapse; }
.work th { text-align: left; font: 600 .8125rem/1.4 var(--sans); color: var(--primary); padding: 18px 16px 12px 0; border-bottom: 2px solid var(--tint-200); }
.work td { padding: 20px 16px 20px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.work tr:last-child td { border-bottom: 0; }
.work td:first-child { width: 30%; }
.work td:first-child a { color: var(--ink); font-weight: 600; text-decoration: none; }
.work td:first-child a:hover { color: var(--primary); text-decoration: underline; }
.work .time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; margin-top: 48px; }
.steps li { position: relative; counter-increment: s; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 1.375rem/1 var(--serif); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 54px; right: -22px; height: 2px; background: linear-gradient(90deg, var(--brand-cyan), var(--tint-200)); }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--text-2); }
.steps small { display: block; margin-top: 12px; color: var(--text-3); font-size: .9375rem; line-height: 1.5; }

.defs > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { color: var(--text-2); max-width: 68ch; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles > div { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--brand-cyan)); border-radius: var(--r-md); padding: 18px 18px 16px; }
.tiles > div:nth-child(even) { --c: var(--brand-blue); }
.tiles dt { font-weight: 600; }
.tiles dd { margin-top: 4px; color: var(--text-2); font-size: .9375rem; }

.about p + p { margin-top: 16px; }
.about p { max-width: 68ch; color: var(--text-2); }

.cta-panel { background: var(--white); border: 1px solid var(--tint-200); border-left: 6px solid var(--primary); border-radius: var(--r-lg); padding: 44px 48px; box-shadow: 0 10px 28px rgba(var(--primary-rgb), .12); }
.cta-panel h2 { max-width: 20ch; }
.cta-panel p { margin-top: 14px; max-width: 56ch; color: var(--text-2); font-size: 1.125rem; }

/* ---------- motion: one small effect, off if the visitor asks ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 36px) 0 56px; }
  .wrap { padding: 0 16px; }
  .rows li { grid-template-columns: 44px minmax(0, 1fr); }
  .rows li p { grid-column: 2; }
  .defs > div { grid-template-columns: 1fr; }
  .work-card { padding: 4px 16px; }
  .work thead { display: none; }
  .work, .work tbody, .work tr, .work td { display: block; width: 100%; }
  .work tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .work tr:last-child { border-bottom: 0; }
  .work td { padding: 4px 0; border: 0; }
  .work td:first-child { width: 100%; }
  .work td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); font-size: .875rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 22px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .quiet { text-align: center; }
  .facts { flex-direction: column; gap: 4px; }
}

/* ==========================================================
   Components for the rebuilt inner pages
   ========================================================== */
.hero--inner { padding-bottom: 72px; }
.hero--inner h1 { max-width: 20ch; }
.hero-grid--single { grid-template-columns: minmax(0, 1fr); }
.hero-grid--single .lead { max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 20px; font-size: .9375rem; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--primary); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.hero .quiet { font-weight: 500; }

/* panel: list of the six services, current one marked */
.panel--list ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: p; }
.panel--list li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 500; }
.panel--list li a::before { counter-increment: p; content: counter(p, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint-100); color: var(--primary); font: 600 .75rem/1 var(--sans); }
.panel--list li a:hover { background: var(--tint-50); }
.panel--list li a[aria-current="page"] { background: var(--primary); color: #fff; }
.panel--list li a[aria-current="page"]::before { background: rgba(255, 255, 255, .18); color: #fff; }
.panel dl { margin: 14px 0 0; }
.panel dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.panel dl > div:first-child { border-top: 0; }
.panel dt { color: var(--text-3); }
.panel dd { font-weight: 600; text-align: right; }

/* services overview rows */
.svc li { grid-template-columns: 44px minmax(0, 1fr); }
.svc li > div { grid-column: 2; }
.svc h3 { font-size: 1.25rem; }
.svc h3 a { color: var(--ink); text-decoration: none; }
.svc h3 a:hover { color: var(--primary); text-decoration: underline; }
.svc p { margin-top: 6px; }
.svc small { display: block; margin-top: 10px; color: var(--text-3); font-size: .9375rem; line-height: 1.5; }

/* cards in three columns, with a longer description */
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--3 > div { padding: 22px 22px 20px; }
.tiles--3 dt { font-size: 1.0625rem; }
.tiles--3 dd { margin-top: 8px; line-height: 1.55; }
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pair > div { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand-cyan); border-radius: var(--r-lg); padding: 28px; }
.pair > div:nth-child(2) { border-top-color: var(--brand-blue); }
.pair h3 { font: 700 1.5rem/1.2 var(--serif); }
.pair p { margin-top: 10px; color: var(--text-2); }

/* engagement models (consulting) */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.model { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand-cyan); border-radius: var(--r-lg); padding: 26px; }
.model:nth-child(2) { border-top-color: var(--primary); box-shadow: 0 8px 24px rgba(var(--primary-rgb), .12); }
.model h3 { font: 700 1.375rem/1.2 var(--serif); }
.model p { margin-top: 8px; color: var(--text-2); }
.model .btn { margin-top: auto; align-self: flex-start; }
.checks { margin: 16px 0 24px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-cyan); box-shadow: inset 0 0 0 3px var(--cyan-100); }
.checks li:nth-child(even)::before { background: var(--brand-blue); box-shadow: inset 0 0 0 3px var(--tint-100); }

/* chips with a group label */
.chip-block + .chip-block { margin-top: 22px; }
.chip-block h3 { display: flex; align-items: center; gap: 8px; font: 600 .9375rem/1.3 var(--sans); margin-bottom: 10px; }
.chip-block h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--primary)); }
.chip-block:nth-child(2) h3::before { --dot: var(--brand-cyan); }
.chip-block:nth-child(3) h3::before { --dot: var(--brand-blue); }
.chip-block:nth-child(4) h3::before { --dot: var(--cyan-text); }
.chip-block .chip { --tint: var(--tint-50); --tint-line: var(--tint-200); }
.chip-block:nth-child(even) .chip { --tint: var(--cyan-50); --tint-line: var(--cyan-100); }
.chips--lg .chip { font-size: .9375rem; padding: 6px 14px; }

/* FAQ */
.faq { max-width: 860px; margin-top: 28px; }
.qa { padding: 22px 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h4 { font: 600 1.0625rem/1.4 var(--sans); margin: 0; }
.qa p { margin-top: 8px; color: var(--text-2); max-width: 68ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand-cyan); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 8px 24px rgba(var(--primary-rgb), .08); }
.form-card h2 { font-size: 1.625rem; }
.form-card > p { margin: 8px 0 24px; color: var(--text-2); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-group { margin-bottom: 18px; }
.f-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.f-group input, .f-group select, .f-group textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.f-group textarea { min-height: 140px; resize: vertical; }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { outline: 2px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
.form-success { display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r-md); background: #E7F5EC; border: 1px solid #1F7A4D; color: #14532D; }
.form-success.show { display: block; }
.form-card .btn { width: 100%; justify-content: center; }
.fine { margin-top: 14px; font-size: .875rem; color: var(--text-3); text-align: center; }
.turnstile-wrap { display: flex; justify-content: center; margin: 4px 0 20px; }
.info { padding: 18px 0; border-top: 1px solid var(--line); }
.info:first-child { border-top: 0; padding-top: 0; }
.info h3 { font: 600 .9375rem/1.3 var(--sans); color: var(--text-3); margin-bottom: 6px; }
.info p { color: var(--ink); }
.info p + p { margin-top: 4px; }
.info .muted { color: var(--text-3); font-size: .9375rem; }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .tiles--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tiles--3 { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .hero--inner { padding-bottom: 48px; }
}

@media print { .js .reveal { opacity: 1; transform: none; } }
