/* ==========================================================================
   OASYS - corporate website stylesheet
   No frameworks, no external fonts. Design tokens first, components after.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* --- 2. Tokens ----------------------------------------------------------- */
:root {
  /* brand - blue and orange are both taken from the OASYS logo */
  --navy-900: #081726;
  --navy-800: #0d2438;
  --navy-700: #143352;
  --blue-700: #2b5892;
  --blue-600: #3a6ab3;   /* logo blue */
  --blue-500: #4f8ad8;
  --blue-100: #e7f0fa;
  --blue-050: #f3f8fd;

  --accent-700: #a83d18;
  --accent-600: #c4491f;  /* text and buttons: 6.7:1 on white */
  --accent-500: #d9532b;  /* logo orange: marks and rules */
  --accent-300: #ef8a5f;  /* decorative, on dark backgrounds */
  --accent-050: #fdf1ec;

  /* neutrals */
  --ink:       #10202f;
  --body:      #3d4c5a;
  --muted:     #6b7c8c;
  --line:      #e3e9ef;
  --line-soft: #eef2f6;
  --surface:   #ffffff;
  --surface-2: #f6f9fc;

  /* type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem);
  --h2: clamp(1.65rem, 1.1rem + 1.9vw, 2.4rem);
  --h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --lead: clamp(1.02rem, 0.97rem + 0.3vw, 1.18rem);

  /* space and shape */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7vw, 6.5rem);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(16, 32, 47, .05), 0 6px 18px rgba(16, 32, 47, .05);
  --shadow-2: 0 10px 30px rgba(16, 32, 47, .10);
  --header-h: 88px;
}

/* --- 3. Base ------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: var(--h1); letter-spacing: -.03em; }
h2 { font-size: var(--h2); letter-spacing: -.022em; }
h3 { font-size: var(--h3); }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: var(--blue-100); color: var(--navy-800); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- 4. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--surface-2); border-block: 1px solid var(--line-soft); }
.section--dark { background: var(--navy-800); color: #c3d2df; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--lead); margin-top: .9rem; color: var(--muted); }
.section--dark .section-head p { color: #9fb3c4; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-500); border-radius: 2px; }
.section--dark .eyebrow { color: var(--blue-500); }
.section--dark .eyebrow::before, .hero .eyebrow::before { background: var(--accent-300); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.1fr .9fr; }
}

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: .95rem; font-weight: 620; letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--accent { background: var(--accent-600); color: #fff; }
.btn--accent:hover { background: var(--accent-700); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--blue-100); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--blue-600); font-weight: 620; font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- 6. Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; flex: none; }
.brand img { height: 56px; width: auto; }
/* on small screens the bar shrinks and the logo with it */
@media (max-width: 34rem) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
}

.nav ul { display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 550; color: var(--body); white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 640; box-shadow: inset 0 -2px 0 var(--accent-500); }
.nav .nav-cta { display: none; } /* the call to action lives in the header bar on desktop */

.header-actions { display: flex; align-items: center; gap: .75rem; }

.lang {
  display: inline-flex; align-items: center; padding: 2px; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.lang button {
  border: 0; background: none; cursor: pointer; border-radius: 6px;
  padding: .3rem .55rem; font-size: .78rem; font-weight: 650; letter-spacing: .04em; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 61.99rem) {
  .nav-toggle { display: block; order: 3; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto; display: none;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav .nav-cta { display: block; margin-top: 1rem; }
  .nav .nav-cta a { border: 0; background: var(--accent-600); color: #fff; text-align: center; border-radius: var(--r-sm); box-shadow: none; }
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #c9d7e4;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 75% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 75% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38rem 38rem at 88% -18%, rgba(79,138,216,.30), transparent 62%),
    radial-gradient(26rem 26rem at 4% 118%, rgba(217,83,43,.22), transparent 62%);
}
.hero > .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; margin-top: 1.1rem; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--blue-500); }
.hero .lead { font-size: var(--lead); color: #a9bccd; margin-top: 1.35rem; max-width: 46ch; }
.hero .eyebrow { color: var(--blue-500); }

.hero--page > .container { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero--page h1 { max-width: 22ch; }

.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: #8ba3b8; }
.breadcrumb a:hover { color: #fff; }

/* system stack visual */
.stack { display: grid; gap: .75rem; }
.stack-layer {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md);
  background: rgba(255,255,255,.05); padding: 1.1rem 1.25rem;
  backdrop-filter: blur(4px);
}
.stack-layer--core { border-color: rgba(59,130,212,.55); background: rgba(59,130,212,.14); }
.stack-layer h3 { font-size: .95rem; color: #fff; letter-spacing: .01em; }
.stack-layer p { font-size: .85rem; color: #9fb3c4; margin-top: .3rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.stack-tags li {
  font-size: .74rem; letter-spacing: .03em; color: #bcd0e2;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .16rem .6rem;
}
.stack-arrow {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: #6e879d; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.stack-arrow::before, .stack-arrow::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

/* --- 8. Stats ------------------------------------------------------------ */
/* a rule per cell instead of an enclosing box: any number of items lays out
   cleanly and a partially filled last row leaves no empty panel */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1.75rem 0;
}
.stats li { padding: .1rem 1.25rem; border-left: 2px solid var(--line); }
.stats b {
  display: block; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 660; color: var(--ink); letter-spacing: -.03em; line-height: 1.1;
}
.stats span { display: block; margin-top: .3rem; font-size: .86rem; color: var(--muted); }
.hero .stats {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero .stats li { border-left-color: var(--accent-500); }
.hero .stats b { color: #fff; }
.hero .stats span { color: #9fb3c4; }

/* --- 9. Cards and content blocks ----------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; }
.card--link:hover { border-color: var(--blue-500); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.section--soft .card { box-shadow: var(--shadow-1); }

.card-icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 1.1rem;
  display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100);
}
.card-icon svg { width: 21px; height: 21px; }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--dark .card p { color: #9fb3c4; }
.section--dark .card-icon { background: rgba(59,130,212,.18); color: #7fb2ec; }

.card-list { margin-top: 1rem; display: grid; gap: .45rem; }
.card-list li { position: relative; padding-left: 1.15rem; font-size: .9rem; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-500);
}

.feature-list { display: grid; gap: 1.5rem; }
.feature { display: grid; grid-template-columns: 42px 1fr; gap: 1.1rem; align-items: start; }
.feature .card-icon { margin: 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p { font-size: .95rem; }

.steps {
  counter-reset: step; display: grid; gap: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li { counter-increment: step; padding: .1rem 1.75rem; border-left: 2px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-600); margin-bottom: .7rem;
}
.section--dark .steps li { border-left-color: rgba(255,255,255,.16); }
.section--dark .steps li::before { color: var(--accent-300); }
.steps h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.steps p { font-size: .92rem; }

.checklist { display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: .75rem; align-items: start; font-size: .97rem; }
.checklist svg { width: 20px; height: 20px; color: var(--blue-600); margin-top: .18rem; }
.section--dark .checklist svg { color: var(--blue-500); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li {
  font-size: .85rem; color: var(--body); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem;
}
.section--dark .pills li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #c3d2df; }

.statement { border-left: 3px solid var(--accent-500); padding-left: clamp(1.25rem, 3vw, 2rem); }
.statement p {
  font-size: clamp(1.1rem, 1rem + .7vw, 1.4rem); color: var(--ink);
  line-height: 1.5; letter-spacing: -.01em;
}

.cta-band {
  background: var(--navy-800); border-radius: var(--r-lg); color: #b9c9d8;
  padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(24rem 24rem at 96% 130%, rgba(79,138,216,.32), transparent 62%),
    radial-gradient(18rem 18rem at 78% -30%, rgba(217,83,43,.20), transparent 62%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { margin-top: .9rem; max-width: 52ch; color: #9fb3c4; }

/* --- 10. Contact and forms ----------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.15fr .85fr; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .86rem; font-weight: 620; color: var(--ink); }
.field .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: .95rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100);
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; align-items: start; font-size: .86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue-600); }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { display: none; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .92rem; }
.form-status[data-state="ok"]    { display: block; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue-700); }
.form-status[data-state="error"] { display: block; background: #fdf2f2; border: 1px solid #f6d7d7; color: #a13a3a; }

.info-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2rem);
}
.info-list { display: grid; gap: 1.35rem; margin-top: 1.5rem; }
.info-list li { display: grid; grid-template-columns: 20px 1fr; gap: .85rem; font-size: .95rem; }
.info-list svg { width: 20px; height: 20px; color: var(--blue-600); margin-top: .2rem; }
.info-list b {
  display: block; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; margin-bottom: .15rem;
}
.info-list a:hover { color: var(--blue-700); }

/* --- 11. Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #8ea4b8; font-size: .92rem; }
.site-footer .container { padding-block: clamp(2.75rem, 5vw, 4rem) 0; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; font-size: .9rem; }
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 650; margin-bottom: 1rem;
}
.site-footer li + li { margin-top: .55rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(2.25rem, 4vw, 3rem); padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #6d8299;
}

/* --- 12. Motion ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .link-arrow svg { transition: none; }
}

/* --- 13. Utilities ------------------------------------------------------- */
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript {
  background: #fff8e5; border-bottom: 1px solid #f0e0b0; color: #6b5514;
  text-align: center; padding: .75rem 1rem; font-size: .9rem;
}
