/* Vantco landing page
   Radius rule: buttons and tags are pills, cards 16px, inputs 10px.
   Brand steel blue (#2e86de) is used for marks and decoration; text and
   buttons use a deeper shade (#1f6fc0) so white text passes WCAG AA. */

:root {
  --steel: #2e86de;
  --steel-strong: #1f6fc0;
  --navy: #1e3a5f;
  --ice: #e8f0fb;
  --white: #ffffff;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #e8f0fb;
  --heading: #1e3a5f;
  --text: #33475f;
  --muted: #4d6079;
  --border: #d3e0f2;
  --link: #1f6fc0;
  --focus: #1f6fc0;
  --error: #b42318;
  --shadow: 0 1px 2px rgb(30 58 95 / 0.06), 0 12px 32px -12px rgb(30 58 95 / 0.18);
  --footer-bg: #1e3a5f;
  --footer-text: #e8f0fb;

  --radius-card: 16px;
  --radius-input: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a2b;
    --surface: #142439;
    --surface-alt: #12213a;
    --heading: #f1f6fd;
    --text: #c9d7ea;
    --muted: #a9bcd6;
    --border: #253a57;
    --link: #7db6f0;
    --focus: #7db6f0;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
    --footer-bg: #0a1422;
    --footer-text: #e8f0fb;
    color-scheme: dark;
  }
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-tap-highlight-color: rgb(46 134 222 / 0.15);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 3px; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute;
  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;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--steel-strong);
  color: var(--white);
  box-shadow: 0 8px 20px -10px rgb(31 111 192 / 0.7);
}
.btn-primary:hover { background: var(--navy); }
@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: #2a5d96; }
}
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }

.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow i { transition: transform 0.2s var(--ease); }
.link-arrow:hover i { transform: translateY(2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.brand-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 1.4rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--surface-alt); }

.nav-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 16px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-menu.is-open { display: block; }

.nav-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 12px 4px;
  color: var(--heading);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--link); }
.nav-menu .btn { width: 100%; }

/* No-JS fallback: show the menu inline */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-menu { display: block; position: static; padding: 0; box-shadow: none; border: 0; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu,
  .nav-menu.is-open {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links { display: flex; gap: 28px; margin: 0; }
  .nav-links a { padding: 8px 0; }
  .nav-menu .btn { width: auto; }
}

/* Hero */
.hero {
  padding: 40px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit {
  position: absolute;
  border-radius: 50%;
}
.orbit-outer {
  inset: 0;
  background: radial-gradient(circle at 35% 30%, var(--ice), color-mix(in srgb, var(--ice) 40%, var(--bg)) 70%);
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .orbit-outer { background: radial-gradient(circle at 35% 30%, #1b3354, #12223a 70%); }
}
.orbit-inner {
  inset: 18%;
  border: 1.5px dashed color-mix(in srgb, var(--steel) 45%, transparent);
}

.hero-mark {
  position: absolute;
  inset: 31%;
  width: 38%;
  height: 38%;
  filter: drop-shadow(0 16px 24px rgb(30 58 95 / 0.25));
}

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  color: var(--steel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  transform: translate(-50%, -50%);
}
@media (prefers-color-scheme: dark) {
  .chip { color: var(--link); }
}
/* Five chips spaced evenly on the inner orbit (radius 32%) */
.chip-1 { left: 50%;   top: 18%; }
.chip-2 { left: 80.4%; top: 40.1%; }
.chip-3 { left: 68.8%; top: 75.9%; }
.chip-4 { left: 31.2%; top: 75.9%; }
.chip-5 { left: 19.6%; top: 40.1%; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 48px; }
  .hero-visual { width: min(100%, 440px); margin-right: 0; }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-lead {
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

/* Services: 2 + 3 grid */
.services { background: var(--surface-alt); }

.service-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.service-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.25rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.service-card p { margin-top: 8px; color: var(--muted); }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--steel-strong);
  font-size: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .service-icon { background: #1d3557; color: var(--link); }
}

.service-feature {
  background: var(--navy);
  border-color: var(--navy);
  overflow: hidden;
}
.service-feature::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 36px solid rgb(46 134 222 / 0.35);
  pointer-events: none;
}
.service-feature h3 { color: var(--white); }
.service-feature p { color: #d6e3f5; max-width: 34ch; position: relative; z-index: 1; }
.service-feature .service-icon { background: rgb(255 255 255 / 0.12); color: var(--white); }

.service-tint {
  background:
    radial-gradient(circle at 100% 0%, rgb(46 134 222 / 0.16), transparent 55%),
    var(--surface);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .tag { background: #1d3557; color: #dbe8f8; }
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .service-grid > :nth-child(-n+2) { grid-column: span 3; padding: 36px; }
  .service-grid > :nth-child(n+3) { grid-column: span 2; }
  .service-feature h3, .service-tint h3 { font-size: 1.5rem; }
}

/* How it works: connected steps */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
  position: relative;
}

.step {
  position: relative;
  padding-left: 64px;
}
.step h3 { font-size: 1.2rem; font-weight: 600; }
.step p { margin-top: 6px; color: var(--muted); }

.step-num {
  position: absolute;
  left: 0; top: -4px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--steel);
  color: var(--heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

/* Vertical connector on mobile */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px;
  bottom: -32px;
  width: 2px;
  background: var(--border);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 68px; }
  .step-num { top: 0; }
  .step:not(:last-child)::before {
    left: 44px; top: 21px;
    right: -32px; bottom: auto;
    width: auto; height: 2px;
  }
}

/* Why Vantco: split with stacked points */
.why { background: var(--bg); border-top: 1px solid var(--border); }

.why-grid { display: grid; gap: 40px; }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.why-icon {
  font-size: 2rem;
  color: var(--steel-strong);
  line-height: 1;
}
@media (prefers-color-scheme: dark) {
  .why-icon { color: var(--link); }
}
.why-item h3 { font-size: 1.2rem; font-weight: 600; }
.why-item p { margin-top: 4px; color: var(--muted); }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .why-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .why-intro .section-title { font-size: 3rem; }
  .why-list { gap: 36px; }
  .why-item { padding-bottom: 36px; border-bottom: 1px solid var(--border); }
  .why-item:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* Contact */
.contact { background: var(--surface-alt); }

.contact-grid { display: grid; gap: 40px; }

.contact-alt { margin-top: 24px; color: var(--muted); overflow-wrap: anywhere; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }

.field label {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.98rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg);
  border: 1.5px solid #8ea3bf;
  border-radius: var(--radius-input);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
@media (prefers-color-scheme: dark) {
  .field input,
  .field textarea { border-color: #4a6386; background: #0e1a2b; }
}
.field textarea { resize: vertical; min-height: 132px; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field-hint { font-size: 0.9rem; color: var(--muted); }
.field-error,
.form-status-error { font-size: 0.92rem; color: var(--error); font-weight: 500; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.form-success i { font-size: 2.5rem; color: var(--steel-strong); }
@media (prefers-color-scheme: dark) {
  .form-success i { color: var(--link); }
}
.form-success h3 { margin-top: 12px; font-size: 1.4rem; }
.form-success p { margin-top: 8px; color: var(--muted); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .form-card { padding: 36px; }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0;
}
.site-footer a { color: var(--footer-text); }
.site-footer .brand { color: var(--white); }

.footer-grid {
  display: grid;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover,
.footer-email a:hover { text-decoration: underline; }
.footer-email { overflow-wrap: anywhere; }
.footer-copy { color: #c3d3ea; font-size: 0.92rem; }

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px 48px;
  }
  .footer-links { justify-content: center; }
  .footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgb(232 240 251 / 0.15); }
}

/* Motion: hero entrance and scroll reveal (JS adds .is-visible) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-visual { animation: fade-scale 0.9s var(--ease) 0.1s both; }
  .chip { animation: chip-in 0.6s var(--ease) both; }
  .chip-1 { animation-delay: 0.35s; }
  .chip-2 { animation-delay: 0.42s; }
  .chip-3 { animation-delay: 0.49s; }
  .chip-4 { animation-delay: 0.56s; }
  .chip-5 { animation-delay: 0.63s; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes chip-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
