/* Onward Consultancy — site styles */

:root {
  --brand: #68b5e0;          /* logo blue */
  --brand-strong: #1f7fb8;   /* accessible link/button blue on light */
  --brand-soft: #e8f4fb;
  --ink: #0c1822;
  --ink-2: #33444f;
  --muted: #64737d;
  --line: #e2e8ed;
  --bg: #ffffff;
  --bg-tint: #f4f8fb;
  --dark: #0c1822;
  --dark-2: #13232f;
  --dark-line: #22384a;
  --on-dark: #e9f1f6;
  --on-dark-muted: #9fb3c1;
  --ok: #2f9e6b;
  --err: #d64545;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(12 24 34 / .06), 0 8px 24px rgb(12 24 34 / .06);
  --shadow-lg: 0 24px 60px rgb(0 0 0 / .35);
  --wrap: 1160px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
address { font-style: normal; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.35em;
  border: 0; border-radius: 999px;
  background: var(--brand); color: var(--ink);
  font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgb(104 181 224 / .35);
}
.btn:hover { background: #82c3e8; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { background: var(--bg-tint); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(12 24 34 / .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand img { width: 140px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding: .5em .8em; border-radius: 8px; transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: #fff; background: rgb(255 255 255 / .06); }
.site-nav .btn { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative;
  transition: transform .25s ease, opacity .2s;
}
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgb(104 181 224 / .28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgb(31 127 184 / .25), transparent 60%),
    var(--dark);
  color: var(--on-dark);
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
  margin-top: -73px; padding-top: calc(73px + clamp(56px, 9vw, 120px));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid > *, .ai-grid > *, .contact-grid > *, .service-grid > * { min-width: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--brand); }
.hl { background: linear-gradient(100deg, var(--brand), #b9e2f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-dark-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .93rem; color: var(--on-dark-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgb(104 181 224 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368b5e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Hero visual */
.hero-visual { position: relative; padding: 24px 0 40px; }
.device {
  background: linear-gradient(180deg, #17293a, #112130);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 480px; margin-left: auto;
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--dark-line); font-size: .75rem; color: var(--on-dark-muted); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c4357; }
.device-bar span { margin-left: 10px; padding: 3px 10px; background: rgb(255 255 255 / .05); border-radius: 6px; }
.chat { padding: 22px 20px 84px; display: grid; gap: 14px; font-size: .92rem; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--brand); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.bot { background: rgb(255 255 255 / .06); color: var(--on-dark); border: 1px solid var(--dark-line); border-bottom-left-radius: 5px; }
.msg.bot strong { color: #fff; }
.mini-table { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 10px 0; padding: 10px 12px; background: rgb(0 0 0 / .2); border-radius: 10px; font-size: .84rem; color: var(--on-dark-muted); }
.mini-table span:nth-child(even) { color: var(--on-dark); font-variant-numeric: tabular-nums; text-align: right; }
.typing { display: flex; gap: 5px; padding: 6px 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-muted); animation: blink 1.4s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.float-card {
  position: absolute;
  background: rgb(255 255 255 / .96); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: .85rem;
  animation: float 6s ease-in-out infinite;
}
.float-card.stat { left: 0; bottom: 0; padding: 14px 18px; display: grid; gap: 2px; min-width: 190px; }
.stat-label { color: var(--muted); font-size: .78rem; }
.stat-value { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 4px; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand); }
.spark i:nth-child(1) { height: 30%; opacity: .5; }
.spark i:nth-child(2) { height: 45%; opacity: .55; }
.spark i:nth-child(3) { height: 38%; opacity: .6; }
.spark i:nth-child(4) { height: 60%; opacity: .7; }
.spark i:nth-child(5) { height: 55%; opacity: .8; }
.spark i:nth-child(6) { height: 78%; opacity: .9; }
.spark i:nth-child(7) { height: 100%; }
.float-card.badge { right: -8px; top: 0; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(47 158 107 / .18); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 22px 0; font-size: .9rem; }
.strip-inner > span { color: var(--muted); font-weight: 600; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip li { color: var(--ink); font-weight: 650; display: flex; align-items: center; gap: 28px; }
.strip li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); margin-left: -16px; margin-right: -16px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--brand); }
.section-dark a:not(.btn) { color: var(--brand); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:last-child { font-size: 1.08rem; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe2ee; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-accent { background: linear-gradient(160deg, var(--brand-soft), #fff 70%); border-color: #cfe6f4; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
}
.icon svg, .contact-list svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* AI */
.ai-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.ai-grid > div:first-child { position: sticky; top: 110px; }
.ai-grid .btn { margin-top: 12px; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ai-list li {
  padding: 24px 26px;
  border: 1px solid var(--dark-line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / .035), transparent);
  position: relative;
}
.ai-list li::before {
  content: ""; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--brand), transparent);
}
.ai-list p { margin: 0; font-size: .97rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 26px 24px 24px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--brand); }
.step-n { display: block; font-size: .85rem; font-weight: 750; color: var(--brand-strong); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { padding: 28px; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.project p { color: var(--muted); font-size: .96rem; margin: 0; }
.tag { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.project-cta { background: var(--dark); box-shadow: none; }
.project-cta h3 { color: #fff; }
.project-cta p { color: var(--on-dark-muted); margin-bottom: 18px; }
.link-arrow { margin-top: auto; color: var(--brand); font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Service panels */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.panel p { color: var(--muted); }
.details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.details summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-strong); transition: transform .2s; }
.details[open] summary::after { transform: rotate(45deg); }
.details h3 { font-size: .95rem; margin: 18px 0 6px; }
.details ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.details li { margin: 4px 0; }
.panel-support { background: linear-gradient(160deg, var(--brand-soft), #fff 65%); border-color: #cfe6f4; }
.support-points { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 14px; }
.support-points li { position: relative; padding-left: 30px; color: var(--muted); font-size: .96rem; }
.support-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.support-points strong { display: block; color: var(--ink); font-weight: 650; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-dark); }
.contact-list svg { flex: none; color: var(--brand); margin-top: 2px; }
.section-dark .contact-list a { color: var(--on-dark); text-decoration: none; }
.section-dark .contact-list a:hover { color: var(--brand); }
.section-dark .muted { color: #7d93a2; }

.form {
  background: #fff; color: var(--ink-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form a { color: var(--brand-strong); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--brand-strong); }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .72em .9em;
  background: var(--bg-tint);
  border: 1.5px solid transparent; border-radius: 10px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364737d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; background-size: 18px; padding-right: 2.4em; }
input:hover, select:hover, textarea:hover { border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(104 181 224 / .2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); background: #fff6f6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--brand-strong); padding: 0; }
.check.is-invalid span { color: var(--err); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .92rem; font-weight: 550; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.form.is-sent .field, .form.is-sent .field-row, .form.is-sent .check, .form.is-sent [data-submit] { display: none; }
.form.is-sent .form-status { font-size: 1.05rem; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #08121a; color: #7d93a2; padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-inner img { width: 110px; height: auto; opacity: .9; }
.footer-inner p { margin: 0; }
.footer-inner > p:first-of-type { flex: 1; min-width: 220px; }
.footer-inner nav { display: flex; gap: 20px; }
.site-footer a { color: #b5c6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .ai-grid, .contact-grid { grid-template-columns: 1fr; }
  .ai-grid > div:first-child { position: static; }
  .hero-visual { max-width: 520px; }
  .device { margin-left: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px;
    background: var(--dark); border-bottom: 1px solid var(--dark-line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em .6em; font-size: 1.02rem; }
  .site-nav .btn { margin: 10px 0 0; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .projects, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  /* Sector strip: one line, swipeable, fading out on the right */
  .strip-inner { flex-wrap: nowrap; gap: 16px; padding: 18px 0; }
  .strip-inner > span { flex: none; }
  .strip ul {
    flex-wrap: nowrap; min-width: 0; overflow-x: auto; padding-right: 28px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  .strip ul::-webkit-scrollbar { display: none; }
  .strip li { flex: none; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
