/* QDS website — colours and type per QDS Design & Brand Guidelines v2.0 (Jan 2021) */
:root {
  --green: #006838;        /* Logo green */
  --blue: #2B3990;         /* Logo royal blue */
  --turquoise: #27AAE1;    /* Logo turquoise — graphics and on-blue only */
  --turquoise-text: #187AA8; /* darker step of turquoise for text on white (contrast) */
  --grey: #565454;         /* Logo dark grey */
  --pastel-green: #BFCBBF;
  --pastel-blue: #7D99B1;
  --pastel-turquoise: #A1D3CA;
  --pastel-grey: #DAD9D8;
  --off-white: #F5F5F5;
  --ink: #333232;
  --body: #4A4848;
  --on-blue: #E6E9F5;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.eyebrow {
  margin: 0 0 12px; font-size: 16px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--blue); }
h2 { font-size: 44px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.25; }
p { margin: 0; }
.lead { color: var(--grey); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px; margin-bottom: 52px;
}
.section-head h2 { max-width: 16ch; }
.section-head p { max-width: 30em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #00512B; color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--off-white); color: var(--green); }

/* Header */
.site-header { border-bottom: 4px solid var(--green); background: #fff; position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px;
}
.logo img { height: 64px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 700; font-size: 17px; }
.nav a:not(.btn) { color: var(--grey); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { padding: 10px 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { max-width: 1000px; }
.hero-main {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 48px; margin-bottom: 38px;
}
.hero-text { max-width: 660px; }
.hero-text .hero-sub { margin-bottom: 0; }

/* Brochure-cover graphic: ringed photo circle with grey and turquoise half-arcs */
.hero-art {
  --s: clamp(150px, 20vw, 250px);
  position: relative; width: var(--s); height: var(--s);
}
.hero-art img { position: relative; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-arc, .hero-arc-turq {
  position: absolute; left: 50%; aspect-ratio: 1 / 1; border-radius: 50%;
  border-style: solid; transform: translateX(-50%) rotate(-45deg);
}
.hero-arc {
  top: -18%; width: 78%; border-width: calc(var(--s) * .085);
  border-color: var(--pastel-grey) var(--pastel-grey) transparent transparent;
}
.hero-arc-turq {
  bottom: -16%; width: 70%; border-width: calc(var(--s) * .075);
  border-color: transparent transparent var(--turquoise) var(--turquoise);
}

/* Trigger band */
.triggers { background: var(--off-white); border-top: 1px solid var(--pastel-grey); }
.triggers .wrap { padding-top: 40px; padding-bottom: 44px; }
.triggers-title { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; }
.triggers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 32px; }
.triggers li { position: relative; padding-left: 22px; color: var(--ink); }
.triggers li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blue);
}
.triggers li:nth-child(2)::before { background: var(--green); }
.triggers li:nth-child(3)::before { background: var(--turquoise); }
.triggers li:nth-child(4)::before { background: var(--grey); }
.triggers li:nth-child(5)::before { background: var(--blue); }
.tagline { font-size: 30px; font-style: italic; line-height: 1.2; margin-bottom: 22px; }
.t-blue { color: var(--blue); } .t-green { color: var(--green); } .t-turq { color: var(--turquoise-text); }
.hero h1 { font-size: 62px; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 26px; }
.hero-sub { font-size: 21px; line-height: 1.55; color: var(--grey); margin-bottom: 38px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Stats */
.stats { background: var(--blue); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.stat-num { font-size: 46px; font-weight: 700; line-height: 1; color: var(--turquoise); }
.stat-label { margin-top: 8px; color: var(--on-blue); }

/* Services */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service { background: var(--off-white); border-top: 6px solid var(--green); padding: 34px 30px; }
.service h3 { font-size: 25px; margin-bottom: 12px; }
.service p { color: var(--body); }
.service.b-blue { border-top-color: var(--blue); }
.service.b-turq { border-top-color: var(--turquoise); }
.service.b-grey { border-top-color: var(--grey); }

/* Approach */
.approach { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.approach-ring {
  position: absolute; left: -220px; bottom: -260px; width: 560px; height: 560px;
  border-radius: 50%; border: 60px solid var(--green);
}
.approach .wrap { position: relative; }
.approach .eyebrow { color: var(--pastel-turquoise); }
.approach h2 { color: #fff; margin-bottom: 22px; }
.approach-intro { max-width: 40em; font-size: 20px; color: var(--on-blue); margin-bottom: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.step { background: #fff; color: var(--ink); border-radius: 4px; padding: 32px; }
.step-word { font-size: 40px; font-style: italic; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.step p { color: var(--body); }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.case { border: 1px solid var(--pastel-grey); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.case-bar { height: 8px; background: var(--green); }
.case-bar.blue { background: var(--blue); } .case-bar.turq { background: var(--turquoise); }
.case-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-sector { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.case-sector.blue { color: var(--blue); } .case-sector.turq { color: var(--turquoise-text); }
.case-body > p:not(.case-sector):not(.case-result) { color: var(--body); }
.case-result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--pastel-grey); font-weight: 700; }

/* About */
.about { background: var(--off-white); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.about-visual { flex: 1 1 300px; max-width: 400px; }
.portrait-frame {
  aspect-ratio: 1 / 1; border-radius: 50%; border: 14px solid var(--green);
  background: #fff; padding: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait-frame img.emblem { object-fit: contain; border-radius: 0; width: 78%; height: auto; }
.about-copy { flex: 999 1 480px; min-width: 0; }
.about-copy h2 { margin-bottom: 6px; }
.role { font-size: 20px; color: var(--grey); margin-bottom: 26px; }
.about-copy > p:not(.eyebrow):not(.role) { max-width: 38em; margin-bottom: 18px; }
.creds { color: var(--grey) !important; font-size: 16px; margin-bottom: 26px !important; }
.inline-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* Values */
.values-title { font-size: 28px; margin-bottom: 28px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.value { border-top: 3px solid var(--green); padding-top: 20px; }
.value:nth-child(2) { border-top-color: var(--blue); }
.value:nth-child(3) { border-top-color: var(--turquoise); }
.value:nth-child(4) { border-top-color: var(--grey); }
.value h3 { font-size: 21px; margin-bottom: 8px; }
.value p { color: var(--body); }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.contact-ring {
  position: absolute; right: -160px; top: -200px; width: 520px; height: 520px;
  border-radius: 50%; border: 50px solid var(--pastel-blue); opacity: .55;
}
.contact .wrap {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 40px; padding-top: 96px; padding-bottom: 96px;
}
.contact h2 { color: #fff; font-weight: 400; font-style: italic; font-size: 52px; margin-bottom: 14px; }
.contact-copy { flex: 999 1 520px; }
.contact-copy p { font-size: 20px; max-width: 32em; color: var(--on-blue); }
.contact-actions { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-actions a:not(.btn) { color: #fff; }
.contact-actions span { color: var(--on-blue); }

/* Footer */
.site-footer { background: var(--off-white); border-top: 4px solid var(--green); color: var(--grey); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.site-footer img { height: 48px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--grey); }

/* Legal / simple pages */
.page { padding: 80px 0 112px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: 46px; line-height: 1.1; margin-bottom: 12px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page p, .page li { color: var(--body); }
.page p + p { margin-top: 14px; }
.muted { color: var(--grey); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 46px; }
  .hero-main { gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  h2 { font-size: 34px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 38px; }
  .hero-main { grid-template-columns: 1fr; gap: 0; }
  .hero-art { --s: 120px; grid-row: 1; justify-self: end; margin: 26px 8px 36px 0; }
  .tagline { font-size: 24px; }
  .hero-sub { font-size: 19px; }
  .logo img { height: 48px; }
  .nav { gap: 4px 20px; font-size: 16px; }
  .contact h2 { font-size: 40px; }
  .cases { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
