/*
  Proconsultations website styles.
  Plain CSS, mobile first. Brand colours come from the logo:
  blue #1b78b3 and orange #f7922a, on white.
  Contrast notes (WCAG 2.2): white on --blue is 4.79:1, --ink on --orange is 6.71:1,
  --link on white is 7.06:1, --muted on --tint is 6.9:1. Orange is never used for small text on white.
*/

:root {
  --blue: #1b78b3;
  --blue-700: #145d8c;
  --navy: #0c3a5a;
  --orange: #f7922a;
  --orange-600: #e9811a;
  --orange-ink: #a4540a;
  --orange-50: #fff5ea;
  --ink: #1c2530;
  --muted: #4a5663;
  --line: #dbe4ec;
  --field: #6b7885;
  --tint: #f4f8fb;
  --tint-blue: #e8f2f9;
  --white: #ffffff;
  --link: #145d8c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 58, 90, 0.06), 0 6px 20px rgba(12, 58, 90, 0.07);
  --shadow-lift: 0 2px 4px rgba(12, 58, 90, 0.08), 0 12px 32px rgba(12, 58, 90, 0.12);
  --max: 72rem;
  --gutter: 1rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--blue) 0 68%, var(--orange) 68% 100%); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 52px; width: auto; }
.main-nav { width: 100%; }
.nav-list {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; justify-content: space-between;
  overflow-x: auto; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem;
  color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--blue-700); border-bottom-color: var(--line); }
.nav-list a[aria-current="page"], .nav-list a.is-section { color: var(--blue-700); border-bottom-color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-accent { background: var(--orange); color: var(--ink); box-shadow: 0 2px 0 rgba(164, 84, 10, 0.25); }
.btn-accent:hover { background: var(--orange-600); color: var(--ink); }
.btn-secondary { background: var(--white); color: var(--blue-700); border-color: var(--blue); }
.btn-secondary:hover { background: var(--tint-blue); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--orange-50); color: var(--navy); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; }
.btn-block { width: 100%; }
.btn .arrow { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.hero-art { display: none; }
.emblem { width: 100%; height: auto; }
.hero h1 { max-width: 20ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  color: var(--blue-700); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 4px; border-radius: 2px; background: var(--orange); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Two doors */
.doors { display: grid; gap: 1.25rem; }
.door {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem; overflow: hidden;
}
.door::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--blue); }
.door-training::before { background: var(--orange); }
.door h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.door > p { color: var(--muted); font-size: 1.1rem; }
.door .btn { margin-top: auto; align-self: flex-start; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--tint-blue); color: var(--blue-700); margin-bottom: 1rem; flex: none;
}
.icon-badge svg { width: 1.6rem; height: 1.6rem; }
.icon-badge.orange { background: var(--orange-50); color: var(--orange-ink); }
.link-list { list-style: none; padding: 0; margin: 0.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.5rem 0.25rem;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.link-list a:hover { color: var(--blue-700); background: var(--tint); }
.link-list a svg { width: 1.1rem; height: 1.1rem; color: var(--blue); flex: none; }

/* Why us */
.why { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.why li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.why h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; margin-bottom: 0.35rem; }
.why h3 svg { width: 1.4rem; height: 1.4rem; color: var(--orange-ink); flex: none; }
.why p { margin: 0; color: var(--muted); }

/* Cards grid (overview pages) */
.cards { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.cards > li { margin: 0; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: #c7d6e3; }
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:hover { color: var(--blue-700); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--link); }
.card .more svg { width: 1.1rem; height: 1.1rem; }
.card-tag {
  align-self: flex-start; font-size: 0.85rem; font-weight: 700; color: var(--orange-ink); background: var(--orange-50);
  border-radius: 999px; padding: 0.15rem 0.7rem; margin-bottom: 0.75rem;
}

/* CTA band */
.band { background: var(--blue); color: var(--white); padding: 3rem 0; position: relative; overflow: hidden; }
.band .container { position: relative; z-index: 1; }
.band h2 { color: var(--white); }
.band p { color: var(--white); max-width: 40rem; font-size: 1.1rem; }
.band :focus-visible { outline-color: var(--white); }

/* Page header (inner pages) */
.page-head { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2.25rem; position: relative; overflow: hidden; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 24ch; margin-bottom: 0.5rem; }
.page-head .lead { margin-bottom: 0; }
.breadcrumb { margin-bottom: 1.25rem; font-size: 0.95rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; margin: 0; color: var(--muted); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.25rem; }
.breadcrumb li + li::before { content: "/"; color: var(--field); padding: 0 0.25rem; }
.breadcrumb a { color: var(--link); }

/* Content layout */
.content { padding: 2.5rem 0 3rem; }
.layout { display: grid; gap: 2rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li::marker { color: var(--blue); }
.prose ol li::marker { color: var(--blue-700); font-weight: 700; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--tint-blue) no-repeat center / 0.75rem 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145d8c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2.2rem; }
.steps li + li { margin-top: 0.9rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--blue); color: var(--white); font-weight: 700;
}
.tbc { display: inline-block; margin-right: 0.35rem; font-weight: 700; color: var(--orange-ink); background: var(--orange-50); border-radius: 6px; padding: 0.05rem 0.5rem; }
.note { font-size: 0.95rem; color: var(--muted); }
.callout { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* Key facts box (course pages) */
.facts {
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--orange);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
}
.facts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.facts-blue { border-top-color: var(--blue); }
.facts .note { margin-bottom: 1rem; }
.facts .aside-sub { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; }
.facts .link-list { margin-bottom: 0; }
.card-note { background: var(--tint); box-shadow: none; }
.card-note:hover { box-shadow: none; border-color: var(--line); }
.facts dl { margin: 0 0 1.25rem; }
.facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts dl div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--muted); text-align: center; }
.pay-note svg { width: 1rem; height: 1rem; flex: none; }
.facts .secondary-link { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.95rem; }

.enrol-box {
  margin-top: 2.5rem; background: var(--orange-50); border: 1px solid #f6d3ad; border-radius: var(--radius); padding: 1.5rem;
}
.enrol-box h2 { margin-top: 0; }
.enrol-box .pay-note { justify-content: flex-start; text-align: left; }
.call-box { margin-top: 2.5rem; background: var(--tint-blue); border: 1px solid #c9dfee; border-radius: var(--radius); padding: 1.5rem; }
.call-box h2 { margin-top: 0; }
.disclaimer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

/* Contact form */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: var(--white) no-repeat right 0.8rem center / 1rem 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2530' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue-700); }
.form-context { background: var(--orange-50); border: 1px solid #f6d3ad; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-weight: 700; }
.form-note { font-size: 0.95rem; color: var(--muted); }
.hp { display: none; }
.aside-card { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h2 { font-size: 1.2rem; }
.aside-card + .aside-card { margin-top: 1.25rem; }

/* Legal pages */
.draft-banner {
  display: flex; gap: 0.6rem; align-items: flex-start; background: var(--orange-50); border: 1px solid #f6d3ad;
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 2rem; font-size: 0.95rem;
}
.draft-banner strong { color: var(--orange-ink); }
.legal h2 { font-size: 1.3rem; }
.legal p, .legal li { max-width: 44rem; }

/* Footer */
.site-footer { background: var(--navy); color: #cfe0ee; padding: 3rem 0 0; margin-top: 0; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer a.btn-light { color: var(--navy); }
.site-footer a.btn-light:hover { color: var(--navy); text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand .name { color: var(--white); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.35rem; }
.footer-brand .name span { color: var(--orange); }
.footer-brand p { max-width: 22rem; }
.site-footer h2 { color: var(--orange); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 0.3rem 0; }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid rgba(207, 224, 238, 0.25); padding: 1.25rem 0 1.5rem; font-size: 0.95rem; }
.footer-bottom p { margin: 0 0 0.35rem; }
.footer-bottom .company { color: var(--white); }
.footer-draft {
  display: inline-block; margin-top: 0.5rem; background: var(--orange); color: var(--ink); font-weight: 700;
  border-radius: 6px; padding: 0.2rem 0.6rem;
}

/* Responsive */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56em) {
  body { font-size: 1.125rem; }
  .header-inner { flex-wrap: nowrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .brand img { height: 66px; }
  .main-nav { width: auto; margin-left: auto; }
  .nav-list { gap: 0.5rem; justify-content: flex-end; overflow: visible; }
  .nav-list a { padding: 0 0.75rem; }
  .nav-list a.nav-cta { margin-left: 0.5rem; padding: 0 1.1rem; min-height: 44px; border: 2px solid var(--blue); border-radius: var(--radius-sm); color: var(--blue-700); }
  .nav-list a.nav-cta:hover { background: var(--tint-blue); color: var(--navy); }
  .nav-list a.nav-cta[aria-current="page"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
  .hero { padding: 5rem 0 5.5rem; }
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; }
  .hero-art { display: block; justify-self: end; width: 100%; max-width: 23rem; }
  .hero-art .emblem { filter: drop-shadow(0 18px 40px rgba(12, 58, 90, 0.18)); }
  .section { padding: 4.5rem 0; }
  .doors { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .door { padding: 2.25rem 2rem 2rem; }
  .page-head { padding: 2rem 0 3rem; }
  .content { padding: 3.5rem 0 4.5rem; }
  .layout-aside { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; align-items: start; }
  .layout-aside .aside { position: sticky; top: 1.5rem; }
  .layout-contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .form-wrap { padding: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 64em) {
  .why { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* On small screens, show key facts first on course pages */
@media (max-width: 55.99em) {
  .layout-aside .aside { order: -1; }
  .layout-aside-end .aside { order: 0; }
  .aside-call { display: none; }
  .facts .aside-sub { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .band, .actions, .btn, .site-footer .footer-grid { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
