/* NetWage marketing site. Colours are taken from the NetWage logo. */
:root {
  --blue-bright: #0197dd;   /* top of the "N" */
  --blue: #016cb4;          /* middle of the "N"; links and buttons */
  --blue-dark: #004b92;
  --navy: #002a6b;          /* bottom of the "N" */
  --navy-deep: #00124a;
  --charcoal: #2a2a2a;      /* the "W" and arrow */
  --ink: #1f2933;
  --muted: #52606d;
  --line: #e1e7ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --radius: 12px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(0, 18, 74, .06), 0 8px 24px rgba(0, 18, 74, .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

h1, h2, h3 { color: var(--navy-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }
.brand img { width: 62px; }
.brand span { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand span b { color: inherit; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--charcoal); font-weight: 500;
  padding: 8px 12px; border-radius: 8px; font-size: .97rem;
}
.nav a:hover { background: var(--soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; color: var(--navy-deep); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--soft); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy-deep); }
.btn-light:hover { background: #dff1fb; color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(1, 151, 221, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--blue-dark) 100%);
  color: #dbe7f5;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; max-width: 36em; color: #dbe7f5; margin-bottom: 1.6em; }
.hero-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(4px);
}
.hero-card h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-card li:first-child { border-top: 0; }
.hero-card .tick { color: #7fd0f5; font-weight: 700; flex: none; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}

/* Page hero for inner pages */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #dbe7f5; padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero .eyebrow { color: #7fd0f5; }
.page-hero p { font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy)); color: var(--white);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

/* Numbered process with illustrations (How it works) */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.process-step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 26px; box-shadow: var(--shadow);
}
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230197dd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.process-art {
  align-self: stretch;
  background: linear-gradient(160deg, #e6f2fc, var(--soft));
  border-radius: 12px; padding: 18px 8px 26px;
}
.process-art svg { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.process-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: var(--white);
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  margin: -24px auto 12px; position: relative; box-shadow: 0 0 0 5px var(--white);
}
.process-step h3 { font-size: 1.35rem; margin: 0; }

.file-list { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); }
.file-list li { margin: 4px 0; }

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--blue-dark));
  color: #dbe7f5; border-radius: 18px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 34em; }

/* Contact */
.contact-box { text-align: left; }
.btn-linkedin { display: inline-flex; align-items: center; gap: 8px; background: #0a66c2; color: var(--white); }
.btn-linkedin:hover { background: #004182; color: var(--white); }
.contact-box .contact-email { font-size: 1.25rem; font-weight: 700; word-break: break-word; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a9bad3; padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: .95rem; margin-bottom: .8em; }
.site-footer a { color: #d6e4f5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand img { width: 52px; background: var(--white); border-radius: 8px; padding: 4px 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2, .process, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
}
