/* ==========================================================================
   Qualivisor — site styles
   Palette sampled directly from the company logo.
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #062E63;
  --blue-800: #083C82;
  --blue:     #0A489B;   /* wordmark blue */
  --blue-600: #0C72C4;   /* bright accent blue from the arrow */
  --blue-100: #E7F0FA;
  --blue-50:  #F4F8FD;

  --orange:      #F7941E;
  --orange-600:  #E2730F;
  --orange-50:   #FEF3E4;
  --orange-ink:  #A35206;   /* accessible orange for text on light backgrounds */

  --ink:      #162022;   /* dark panel colour from the logo sheet */
  --ink-800:  #1E2C2F;
  --ink-700:  #2B3B3E;

  --text:      #17222B;
  --text-mid:  #4A5A66;
  --text-soft: #64727E;
  --line:      #E2E8EE;
  --line-soft: #EEF2F6;
  --white:     #FFFFFF;
  --bg-soft:   #F7F9FC;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 34, .06), 0 2px 8px rgba(22, 32, 34, .04);
  --shadow-md: 0 4px 12px rgba(22, 32, 34, .07), 0 12px 32px rgba(22, 32, 34, .07);
  --shadow-lg: 0 8px 24px rgba(6, 46, 99, .10), 0 24px 56px rgba(6, 46, 99, .10);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --gutter: 24px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-900);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue-50); }
.section--dark { background: var(--ink); color: #D6DEE3; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #AEBDC5; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue);
  color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 90px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.nav-toggle { display: none; }
.nav-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; color: var(--blue-900);
}
.nav-btn svg { width: 22px; height: 22px; }

.site-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav li { margin: 0; }
/* Nav link styling deliberately excludes .btn so the CTA keeps its button colours. */
.site-nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .97rem; font-weight: 500; color: var(--text-mid);
  font-family: var(--font-head); letter-spacing: .005em;
}
.site-nav a:not(.btn):hover { background: var(--blue-50); color: var(--blue); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--blue); background: var(--blue-100); font-weight: 600; }
.site-nav .nav-cta { margin-left: 10px; }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap; text-align: center;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(10,72,155,.28); }
.btn--primary:hover { background: var(--blue-800); color: #fff; box-shadow: 0 6px 18px rgba(10,72,155,.3); }
.btn--accent { background: var(--orange); color: #241403; box-shadow: 0 2px 8px rgba(247,148,30,.32); }
.btn--accent:hover { background: var(--orange-600); color: #fff; box-shadow: 0 6px 18px rgba(226,115,15,.34); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(12,114,196,.16), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, rgba(247,148,30,.13), transparent 60%),
    linear-gradient(168deg, #FBFCFE 0%, #F2F6FB 100%);
  border-bottom: 1px solid var(--line);
  padding: 92px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .42em; }
.hero h1 .accent { color: #D2680B; }
.hero-lead { font-size: 1.16rem; color: var(--text-mid); max-width: 36em; margin-bottom: 1.6em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-100);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow--accent { color: var(--orange-ink); background: var(--orange-50); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero-panel h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-soft); margin-bottom: 18px; font-weight: 700;
}
.panel-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.panel-item:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-item .num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 700; font-size: .86rem; background: var(--blue-100); color: var(--blue);
}
.panel-item .t { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--blue-900); }
.panel-item .d { font-size: .9rem; color: var(--text-soft); margin: 2px 0 0; }

/* -------------------------------------------------------------- shared -- */
.section-head { max-width: 46em; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-mid); font-size: 1.06rem; margin-bottom: 0; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CFDCEA; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--text-mid); font-size: .97rem; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: #fff; margin-bottom: 18px;
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge--accent { background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: .78rem; font-weight: 600; font-family: var(--font-head);
  padding: 5px 11px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue); border: 1px solid #DCE8F5;
}
.tag--accent { background: var(--orange-50); color: var(--orange-ink); border-color: #F7DDBC; }
.tag--plain { background: #F1F4F8; color: var(--text-mid); border-color: var(--line); }

/* example / illustrative marker */
.example-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--orange-50); border: 1px solid #F7DDBC;
  border-radius: var(--radius-sm); padding: 15px 18px;
  font-size: .92rem; color: #7A4A08; margin-bottom: 34px;
}
.example-note svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }
.example-note p { margin: 0; }
.badge-example {
  display: inline-block; align-self: flex-start;  /* don't stretch inside flex cards */
  font-family: var(--font-head); font-size: .68rem;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--orange-ink); background: var(--orange-50);
  border: 1px solid #F7DDBC; padding: 3px 9px; border-radius: 5px; margin-bottom: 14px;
}

/* use-case + course cards */
.uc-card { display: flex; flex-direction: column; height: 100%; }
.uc-card .meta {
  font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px;
}
.uc-body { flex: 1; }
.uc-list { list-style: none; padding: 0; margin: 16px 0 0; }
.uc-list li {
  position: relative; padding-left: 26px; font-size: .95rem;
  color: var(--text-mid); margin-bottom: 9px;
}
.uc-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--orange); transform: rotate(45deg);
}
.uc-foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--text-soft);
}
.uc-foot strong { color: var(--blue); font-family: var(--font-head); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; left: 0;
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  color: var(--blue); background: #fff; padding-right: 10px; letter-spacing: .06em;
}
.step:nth-child(1) { border-top-color: var(--blue); }
.step:nth-child(2) { border-top-color: var(--blue-600); }
.step:nth-child(3) { border-top-color: var(--orange); }
.step:nth-child(4) { border-top-color: var(--orange-600); }
.step h3 { font-size: 1.05rem; margin-bottom: .35em; }
.step p { font-size: .94rem; color: var(--text-mid); margin: 0; }

/* stats / facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact { text-align: center; padding: 26px 18px; }
.fact .k {
  font-family: var(--font-head); font-weight: 800; font-size: 2.1rem;
  color: var(--white); line-height: 1.1; margin-bottom: 6px;
}
.fact .k span { color: var(--orange); }
.fact .v { font-size: .95rem; color: #9FB0B9; margin: 0; }

/* youtube strip */
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.yt-cards { display: grid; gap: 14px; }
.yt-card {
  display: flex; gap: 15px; align-items: center;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 18px;
}
.yt-card .play {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(247,148,30,.16); color: var(--orange);
}
.yt-card .play svg { width: 18px; height: 18px; }
.yt-card .t { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .98rem; }
.yt-card .d { font-size: .87rem; color: #93A4AD; margin: 1px 0 0; }

/* ------------------------------------------------------------ contact -- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--blue-900); margin-bottom: 7px;
}
.field .req { color: var(--orange-ink); }
.field .hint { font-size: .84rem; color: var(--text-soft); font-weight: 400; margin-top: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 1rem;
  color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(12,114,196,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--text-mid); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-foot { font-size: .87rem; color: var(--text-soft); margin: 16px 0 0; }

.contact-aside .card + .card { margin-top: 20px; }
.contact-line { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; margin-top: 3px; }
.contact-line .l { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--blue-900); }
.contact-line .v { font-size: .95rem; color: var(--text-mid); margin: 0; word-break: break-word; }

/* ---------------------------------------------------------------- cta -- */
.cta {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue) 55%, var(--blue-600) 100%);
  color: #fff; border-radius: 20px; padding: 54px 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: #C8DCF2; font-size: 1.08rem; max-width: 44em; margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: #9FB0B9; padding: 62px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer img.flogo { height: 58px; width: auto; margin-bottom: 18px; }
.site-footer p { color: #93A4AD; }
.site-footer h4 {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #A9B9C1; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .87rem; color: #77888F;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #C3D0D6;
}
.social a:hover { background: var(--orange); border-color: var(--orange); color: #241403; }
.social svg { width: 18px; height: 18px; }

/* -------------------------------------------------------- page header -- */
.page-head {
  background:
    radial-gradient(760px 340px at 82% -20%, rgba(12,114,196,.13), transparent 60%),
    linear-gradient(170deg, #FBFCFE, #F2F6FB);
  border-bottom: 1px solid var(--line);
  padding: 66px 0 58px;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { font-size: 1.12rem; color: var(--text-mid); max-width: 44em; margin-bottom: 0; }

/* ------------------------------------------------------------ 404 etc -- */
.centred { text-align: center; max-width: 34em; margin: 0 auto; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1000px) {
  .hero-grid, .yt-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 14px var(--gutter) 22px;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 13px 14px; font-size: 1.02rem; }
  .site-nav .nav-cta { margin: 10px 0 0; }
  .site-nav .btn { width: 100%; justify-content: center; }
  .header-inner { position: relative; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 62px 0 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 40px 24px; border-radius: 16px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand img { height: 44px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .hero-panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
