/* ABN Software — site styles */

:root {
  --navy-950: #01001C;
  --navy-900: #0B0A2E;
  --navy-700: #2C2B52;
  --slate-600: #4A4C6A;
  --slate-500: #5F6182;
  --line: #E3E5FA;
  --line-strong: #C9CCF5;
  --bg: #FFFFFF;
  --tint: #F6F6FF;
  --tint-2: #EFEDFF;
  --brand: #2E00FF;
  --brand-hover: #2400C9;
  --brand-cyan: #23AFFF;
  --brand-violet: #CC75FF;
  --brand-ink: #3A1FE0;
  --focus: #2E00FF;
  --success: #0F7A4A;
  --success-bg: #EAF8F1;
  --error: #B42318;
  --error-bg: #FDF0EF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 10, 46, .05);
  --shadow: 0 1px 2px rgba(11, 10, 46, .04), 0 12px 32px -12px rgba(27, 22, 96, .14);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy-900);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; color: var(--navy-950); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--slate-500); }

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-ink);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.accent-text {
  background: linear-gradient(90deg, var(--brand) 0%, #3E5BFF 45%, #7A55F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(46, 0, 255, .45); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-secondary { background: #fff; color: var(--navy-950); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.brand img { width: auto; height: 30px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--navy-700);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.primary-nav a:not(.btn):hover { color: var(--navy-950); background: var(--tint); }
.primary-nav a[aria-current="true"] { color: var(--brand-ink); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--navy-950);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(204, 117, 255, .10), transparent 70%),
    radial-gradient(50% 60% at 65% 80%, rgba(35, 175, 255, .08), transparent 70%),
    #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.375rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 .accent-text { display: block; }
.hero h1 .dot { margin-left: -0.07em; }

.lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--slate-600);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 520px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% 4% 8%;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--tint-2), #F4FAFF);
  z-index: -1;
}
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, var(--tint) 0%, #FAFAFF 100%); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); font-weight: 800; }
.section-intro { margin-top: 16px; color: var(--slate-600); font-size: 1.0625rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

.service-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EDEBFF, #E6F4FF);
  color: var(--brand-ink);
}
.service-icon svg,
.ci-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card > p { color: var(--slate-600); }

.request-label {
  margin: 20px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--navy-950);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.request-list li {
  position: relative;
  padding-left: 22px;
  color: var(--navy-700);
  font-size: .9375rem;
  line-height: 1.5;
}
.request-list li + li { margin-top: 8px; }
.request-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .45em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.services-cta p { margin: 0; color: var(--navy-700); font-weight: 600; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--slate-600); font-size: 1.0625rem; }

.process {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--tint));
}
.process li {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
}
.process li + li { border-top: 1px dashed var(--line); border-radius: 0; }
.process-step {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--brand-ink);
  font-size: .875rem;
  font-weight: 800;
}
.process h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.process p { color: var(--slate-600); font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-list { margin: 36px 0 0; display: grid; gap: 22px; }
.contact-item { display: grid; gap: 4px; }
.contact-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-950);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-item dd { margin: 0 0 0 42px; color: var(--navy-700); }
.contact-item dd a { font-weight: 600; }
.ci-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-ink);
}
.ci-icon svg { width: 18px; height: 18px; }

.enquiry-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.enquiry-title { font-size: 1.375rem; font-weight: 800; }
.form-note { margin: 6px 0 24px; color: var(--slate-500); font-size: .875rem; }

.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; grid-column: 1 / -1; }
.field:nth-of-type(1), .field:nth-of-type(2) { grid-column: span 1; }

.field label { color: var(--navy-950); font-size: .9375rem; font-weight: 600; }
.req { color: var(--error); }
.optional { color: var(--slate-500); font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--navy-950);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9AEE8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 0, 255, .14);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--slate-500);
  border-bottom: 2px solid var(--slate-500);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; }

.field-hint { margin: 0; color: var(--slate-500); font-size: .875rem; }
.field-error { margin: 0; color: var(--error); font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }

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

.enquiry-form .btn { grid-column: 1 / -1; margin-top: 6px; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn[aria-busy="true"] .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { grid-column: 1 / -1; }
.form-status:empty { display: none; }
.form-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 500;
}
.form-status:focus { outline: none; }
.form-status.is-success { background: var(--success-bg); color: var(--success); border: 1px solid #BFE6D2; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #F5C6C2; }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status a { color: inherit; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 28px;
  background: var(--navy-950);
  color: #C7C8E0;
  font-size: .9375rem;
}
.site-footer a { color: #E6E7F7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #9FB4FF; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
  gap: 40px;
}
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 28em; }
.footer-heading {
  margin-bottom: 14px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col address { margin-bottom: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .social-link:hover { border-color: rgba(255, 255, 255, .5); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #A3A5C6;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

.hv-module { animation: float 7s ease-in-out infinite; transform-box: fill-box; }
.hv-m2 { animation-delay: -2s; }
.hv-m3 { animation-delay: -4s; }
.hv-m4 { animation-delay: -5.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    display: none;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(11, 10, 46, .18);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a:not(.btn) { display: flex; padding: 12px; font-size: 1.0625rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 12px; }

  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: center; max-width: 460px; }

  .section { padding: 72px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .brand img { height: 26px; }
  .hero { padding: 36px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 340px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; }
  .services-cta { padding: 20px; }
  .services-cta .btn { width: 100%; }

  .enquiry-card { padding: 24px 20px; border-radius: 20px; }
  .enquiry-form { grid-template-columns: 1fr; }
  .field:nth-of-type(1), .field:nth-of-type(2) { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
