/* Design and Innovation Solutions - site stylesheet
   No external fonts, no JavaScript. Works under CSP style-src 'self'. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #17212f;
  --muted: #55627a;
  --line: #d9dee7;
  /* Brand colours taken from the DIS logo: navy cloud outline, red DIS. */
  --brand: #0b1730;
  --brand-2: #0f2a63;
  --brand-text: #f4f6fa;
  --accent: #c8102e;        /* buttons, icon backgrounds */
  --accent-ink: #b00d24;    /* small accent text on light surfaces */
  --accent-2: #ff7b7b;      /* small accent text on navy */
  --accent-text: #ffffff;
  --focus: #2f7ddc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1320;
    --surface: #121c2c;
    --surface-2: #182539;
    --text: #e8edf5;
    --muted: #9fb0c8;
    --line: #26354d;
    --brand: #080f22;
    --brand-2: #0f2a63;
    --accent-ink: #ff7b7b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: var(--brand-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 3rem;
  height: 3rem;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name small {
  font-weight: 500;
  font-size: 0.75rem;
  color: #b9c6da;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #d7dfec;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent-2);
}

/* Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: #e0142f;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--brand-text);
}

.btn-ghost:hover {
  border-color: #ffffff;
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--accent);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* Hero ------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200, 16, 46, 0.22), transparent 60%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--brand-text);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.2rem;
  color: #c9d4e6;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* Sections --------------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Approach steps --------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* About ------------------------------------------------------------ */

.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.about ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.about li + li {
  margin-top: 0.4rem;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.fact-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fact-list svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent-ink);
  margin-top: 0.15rem;
}

.fact-list strong {
  display: block;
}

.fact-list span {
  color: var(--muted);
}

/* FAQ -------------------------------------------------------------- */

.faq {
  max-width: 52rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.25rem;
}

.faq details + details {
  margin-top: 0.75rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 1.1rem 2.25rem 1.1rem 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 1.1rem;
  margin: 0;
}

/* Contact ---------------------------------------------------------- */

.contact-card {
  background: var(--brand);
  color: var(--brand-text);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: center;
}

.contact-card h2 {
  color: #ffffff;
}

.contact-card p {
  color: #c9d4e6;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-details svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent-2);
  margin-top: 0.15rem;
}

.contact-details dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9fb0c8;
}

.contact-details dd {
  margin: 0;
  font-weight: 600;
}

.contact-details a {
  color: #ffffff;
  text-decoration-color: var(--accent-2);
}

/* Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a {
  color: inherit;
}

/* Error page ------------------------------------------------------- */

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.error-code {
  font-family: var(--mono);
  color: var(--accent-ink);
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* Responsive ------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .container,
  .about .container,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
    max-width: 300px;
  }

  .grid-4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }

  .brand-name small {
    display: none;
  }

  .site-nav a {
    font-size: 0.9rem;
  }
}
