/* Sasa Group Rwanda, 2027 concept. Colours follow the safety-sign system already in the logo:
   red = fire equipment, green = first aid and rescue, blue = instruction and training. */
:root {
  --red: #d11f2a;        /* fire equipment, primary action */
  --red-deep: #a8131d;
  --green: #1e6b3c;      /* first aid, rescue, "safe condition" */
  --green-deep: #154d2b;
  --blue: #12509a;       /* instruction, training, Academy */
  --navy: #0f1d38;       /* uniform navy, text and dark bands */
  --yellow: #ffd21f;     /* hi-vis, used for focus and the live dot only */
  --paper: #f2f4f3;
  --line: #d9dfdc;
  --muted: #4a5568;
  --white: #fff;
  --radius: 6px;
  --wrap: 1200px;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: 24px; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.section { padding: 112px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); max-width: 32em; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--yellow); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Concept banner + header */
.concept-bar { background: var(--navy); color: #cfd6e4; font-size: 14px; text-align: center; padding: 8px 16px; }
.concept-bar a { color: var(--white); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 50px; height: 56px; object-fit: contain; }
.brand span { font: 700 20px/1 var(--display); }
.brand small { display: block; font: 500 13px/1.3 var(--body); color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.flags { display: flex; gap: 6px; }
.flags a { display: block; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; outline-offset: 2px; box-shadow: 0 0 0 1px var(--line); }
.flags a[aria-current="true"] { box-shadow: 0 0 0 2px var(--navy); }
.flags svg { width: 100%; height: 100%; display: block; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

/* Hero */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.3vw, 76px); line-height: .98; margin-bottom: 28px; max-width: 11em; }
.hero .lede { margin-bottom: 36px; }
.proof-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.proof-row li { font-size: 15px; color: var(--muted); }
.proof-row strong { display: block; font: 700 26px/1.1 var(--display); color: var(--navy); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 75% center; border-radius: var(--radius); }
.photo-tag { position: absolute; top: 18px; right: 18px; background: rgba(15,29,56,.82); color: var(--white); padding: 8px 12px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.public-lines { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.public-lines a { color: var(--navy); font-weight: 600; }

/* Marks features that are proposals, not part of the current site */
.phase-tag { display: table; margin: 0 0 16px; padding: 4px 10px; border: 1px dashed currentColor; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.events .phase-tag { color: #c5cede; }

/* The emergency sign: the one bold element */
.sign { position: absolute; left: -56px; bottom: -40px; display: grid; grid-template-columns: 96px 1fr; background: var(--green); color: var(--white); border-radius: var(--radius); text-decoration: none; box-shadow: 0 0 0 6px var(--white); min-width: 380px; transition: background-color .2s; animation: sign-in .7s .35s cubic-bezier(.2,.8,.2,1) both; }
.sign:hover { background: var(--green-deep); }
.sign-icon { display: grid; place-items: center; border-right: 3px solid var(--white); }
.sign-icon svg { width: 60px; height: 60px; }
.sign-text { padding: 16px 22px 18px; }
.sign-text span { display: block; font-size: 15px; font-weight: 500; opacity: .92; }
.sign-text strong { display: block; font: 700 38px/1 var(--display); letter-spacing: .01em; margin-top: 6px; white-space: nowrap; }
@keyframes sign-in { from { transform: translateY(28px); } to { transform: none; } }

/* Services as signage rows */
.services { background: var(--paper); }
.service { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 48px; padding: 44px 0; border-top: 2px solid var(--navy); }
.service:last-child { border-bottom: 2px solid var(--navy); }
.service-title { display: flex; flex-direction: column; gap: 18px; }
.picto { width: 72px; height: 72px; border-radius: var(--radius); display: grid; place-items: center; }
.picto svg { width: 44px; height: 44px; }
.picto.red { background: var(--red); }
.picto.green { background: var(--green); }
.picto.blue { background: var(--blue); }
.picto.navy { background: var(--navy); }
.service p { color: var(--muted); margin-bottom: 20px; }
.service ul { margin: 0; padding: 0; list-style: none; columns: 1; }
.service li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.service li:first-child { padding-top: 0; }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--red); }

/* Event cover band */
.events { background: var(--navy); color: var(--white); }
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.events img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.events .lede { color: #c5cede; margin-top: 20px; }
.events-facts { display: flex; gap: 32px; margin: 32px 0; flex-wrap: wrap; }
.events-facts div { font-size: 15px; color: #c5cede; }
.events-facts strong { display: block; font: 700 34px/1.1 var(--display); color: var(--white); }
.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.quick-form .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid #b8c2bd; font: 400 16px/1.4 var(--body); color: var(--navy); background: var(--white); }
textarea { min-height: 110px; resize: vertical; }
.events label { color: #dfe5ef; }
.events input, .events select { border-color: transparent; }
.form-note { font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
.events .form-note { color: var(--yellow); }

/* Academy (MOOC) */
.academy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.academy-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.academy-tag .picto { width: 40px; height: 40px; }
.academy-tag .picto svg { width: 24px; height: 24px; }
.course-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 28px 0 36px; }
.course-meta div { font-size: 15px; color: var(--muted); }
.course-meta strong { display: block; color: var(--navy); font-size: 17px; }
.player { border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.player-screen { position: relative; background: var(--blue); color: var(--white); aspect-ratio: 16 / 8.2; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 28px; gap: 24px; }
.player-screen h3 { font-size: 30px; max-width: 12em; }
.player-screen p { margin: 8px 0 0; opacity: .85; font-size: 15px; }
.pass { display: grid; grid-template-columns: repeat(4, 64px); gap: 6px; }
.pass span { display: grid; place-items: center; height: 64px; border: 2px solid rgba(255,255,255,.7); border-radius: 4px; font: 700 26px/1 var(--display); }
.pass span:first-child { background: var(--white); color: var(--blue); border-color: var(--white); }
.progress { height: 6px; background: #dbe4f1; }
.progress i { display: block; height: 100%; width: 38%; background: var(--red); }
.lessons { list-style: none; margin: 0; padding: 8px 0; counter-reset: lesson; }
.lessons li { counter-increment: lesson; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 24px; font-weight: 500; }
.lessons li::before { content: counter(lesson); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--display); background: var(--paper); }
.lessons li.done::before { content: "✓"; background: var(--green); color: var(--white); }
.lessons li.now { background: #eaf0f8; }
.lessons li.now::before { background: var(--blue); color: var(--white); }
.lessons small { color: var(--muted); font-size: 14px; font-weight: 400; }
.cert { display: flex; gap: 18px; align-items: center; margin-top: 20px; padding: 18px 20px; border: 1px dashed var(--blue); border-radius: var(--radius); }
.cert svg { width: 64px; height: 64px; flex: none; }
.cert p { margin: 0; font-size: 15px; color: var(--muted); }
.cert strong { color: var(--navy); }

/* Extinguisher service check */
.check { background: var(--paper); }
.check-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; background: var(--white); border-left: 10px solid var(--red); border-radius: var(--radius); padding: 48px; }
.check-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.check-result { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); font-weight: 500; min-height: 58px; }
.check-result.due { background: #fdecec; color: var(--red-deep); }
.check-result.ok { background: #e7f3ec; color: var(--green-deep); }

/* Proof */
.clients { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 64px; padding: 0; list-style: none; }
.clients li { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--display); color: #5c6779; }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; border-top: 2px solid var(--navy); padding-top: 48px; }
.quote blockquote { margin: 0; font: 600 clamp(26px, 3vw, 38px)/1.2 var(--display); }
.quote cite { display: block; margin-top: 18px; font: 500 16px/1.4 var(--body); font-style: normal; color: var(--muted); }
.quote img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }

/* About */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.mission { margin-top: 28px; display: grid; gap: 16px; }
.mission div { border-left: 4px solid var(--green); padding-left: 16px; }
.mission span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.mission strong { font: 600 22px/1.3 var(--display); }
.timeline { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.timeline li { position: relative; padding: 28px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--navy); }
.timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.timeline strong { display: block; font: 700 32px/1 var(--display); margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list a, .contact-list strong { font: 600 22px/1.3 var(--display); text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .form-note { color: var(--green); }

/* Footer */
.site-footer { background: var(--navy); color: #c5cede; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer .brand span { color: var(--white); }
.site-footer .brand small { color: #9aa6bb; }
.site-footer .brand img { background: var(--white); border-radius: var(--radius); padding: 4px; }
.site-footer h3 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #e3e8f1; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.footer-base a { text-decoration: underline; }

/* Mobile call bar */
.call-bar { display: none; }

/* Proposal page */
.doc-hero { padding: 72px 0 56px; border-bottom: 2px solid var(--navy); }
.doc-hero h1 { font-size: clamp(42px, 5.6vw, 76px); max-width: 13em; margin-bottom: 24px; }
.doc-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; font-size: 15px; color: var(--muted); }
.doc-meta strong { display: block; color: var(--navy); }
.doc { padding: 80px 0; border-bottom: 1px solid var(--line); }
.doc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; }
.doc-grid > div > p, .doc-grid > div > ul { max-width: 44em; }
.doc h2 { font-size: clamp(30px, 3.4vw, 44px); }
.doc ul.plain { padding-left: 1.1em; }
.doc ul.plain li { margin-bottom: 10px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.swatch { border-radius: var(--radius); padding: 18px; color: var(--white); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.swatch strong { font: 700 22px/1.1 var(--display); }
.swatch span { font-size: 14px; }
.swatch.yellow { color: var(--navy); }
.phase { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase-num { font: 700 64px/0.9 var(--display); color: var(--red); }
.phase h3 { margin-bottom: 6px; }
.phase .why { color: var(--muted); margin-bottom: 16px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); font-size: 15px; }
table.catalogue { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.catalogue th, .catalogue td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalogue th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--navy); }
.catalogue td:first-child { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.pill.free { background: #e7f3ec; color: var(--green-deep); }
.pill.paid { background: #eaf0f8; color: var(--blue); }
.journey { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.journey li { counter-increment: step; border-top: 4px solid var(--blue); padding-top: 14px; font-size: 15px; color: var(--muted); }
.journey li::before { content: counter(step); display: block; font: 700 28px/1 var(--display); color: var(--blue); margin-bottom: 8px; }
.journey strong { display: block; color: var(--navy); font-size: 17px; }
.callout { background: var(--paper); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 24px 28px; margin-top: 28px; }
.callout p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .nav, .header-tools .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .header-tools { margin-left: 0; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 14px 12px; font-size: 18px; }
  .service { grid-template-columns: 1fr 1fr; }
  .service-title { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 860px) {
  body { padding-bottom: 72px; }
  .section { padding: 72px 0; }
  .section-head, .hero-grid, .events-grid, .academy-grid, .check-box, .quote, .about-grid, .contact-grid, .footer-grid, .doc-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 32px 0 72px; }
  .hero-grid > * { min-width: 0; }
  .proof-row { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .hero-photo { margin-right: -24px; }
  .hero-photo img { border-radius: var(--radius) 0 0 var(--radius); aspect-ratio: 4 / 3.6; }
  .sign { position: relative; left: 0; bottom: auto; margin: -48px 24px 0 0; min-width: 0; }
  .sign-text strong { font-size: 30px; }
  .service { grid-template-columns: 1fr; gap: 20px; }
  .check-box { padding: 28px 22px; }
  .check-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 0; border-top: 0; }
  .timeline li { border-top: 2px solid var(--navy); }
  .course-meta { grid-template-columns: repeat(2, auto); }
  .player-screen { grid-template-columns: 1fr; aspect-ratio: auto; }
  .pass { grid-template-columns: repeat(4, 52px); }
  .pass span { height: 52px; font-size: 22px; }
  .swatches, .journey { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; color: var(--white); font-weight: 600; text-decoration: none; }
  .call-bar a:first-child { background: var(--red); }
  .call-bar a:last-child { background: var(--green); }
  .call-bar svg { width: 22px; height: 22px; }
  .brand small { display: none; }
}
@media (max-width: 520px) {
  .quick-form, .contact-form { grid-template-columns: 1fr; }
  .flags { display: none; }
  .sign { grid-template-columns: 72px 1fr; }
  .sign-icon svg { width: 44px; height: 44px; }
  .sign-text { padding: 12px 16px 14px; }
  .sign-text strong { font-size: 26px; }
  .lessons li { grid-template-columns: 36px 1fr; }
  .lessons small { grid-column: 2; }
  .catalogue { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sign { animation: none; }
}
