/* Infra Compute — site styles, version 2 (content round 2).
   Colors are taken from the company logo (navy board, blue-to-turquoise arrows).
   Logo files come from src/assets/logo/ (see CHANGES.md there). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a2552;        /* logo navy: text, headings */
  --blue: #0b3d84;       /* logo blue: buttons */
  --teal: #4cc2bf;       /* logo turquoise: lines and accents only */
  --teal-ink: #0b6c6b;   /* turquoise dark enough for text and focus rings */
  --paper: #f4f7fa;
  --white: #ffffff;
  --rule: #cbd7e1;
  --dot: #c7d5e0;
  --muted: #3d5470;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.5rem 1rem; background: var(--ink); color: var(--white);
}
.skip:focus { top: 1rem; color: var(--white); }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--rule); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand__symbol { display: block; width: auto; height: 2.6rem; }
.brand__name { font-weight: 800; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -0.005em; }
.top__cta {
  font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none;
  padding: 0.5rem 0.1rem; border-bottom: 2px solid var(--teal);
}
.top__cta:hover { border-bottom-color: var(--ink); }

/* Buttons: one primary color (logo turquoise) everywhere */
.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--white); }
.contact .button:hover { background: var(--white); color: var(--ink); }

/* Hero: a breadboard of dots, echoing the board in the logo */
.hero {
  background-color: var(--white);
  background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero__text { background: var(--white); padding: 0.25rem 0.5rem 0.25rem 0; }
.hero__title { margin-bottom: 1.4rem; }
.hero__name {
  display: block;
  margin-bottom: 0.7rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  font-stretch: 112%;
  color: var(--teal-ink);
}
.hero__headline {
  display: block;
  font-size: clamp(2.2rem, 6.4vw, 4.25rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero__lead { font-size: 1.2rem; line-height: 1.55; margin-bottom: 2rem; color: var(--muted); }

/* Mobile: small logo in the top-right corner, beside the name and headline */
.hero__inner { position: relative; }
.hero__logo {
  position: absolute;
  top: clamp(3rem, 8vw, 6.5rem);
  right: var(--gutter);
  width: 4.75rem;
  height: auto;
}
.hero__title { padding-right: 5.5rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 2rem; max-width: 20ch; }

/* What we do: a spec sheet, one row per area */
.spec { margin: 0; border-top: 3px solid var(--ink); }
.spec__row {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.1;
}
.spec dd { margin: 0; color: var(--muted); max-width: var(--measure); line-height: 1.6; }

/* Services: an empty bay waiting for the first service */
.split { display: grid; gap: 0; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.service { padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.service h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.4rem; }
.service p { margin: 0; color: var(--muted); }

/* How we work */
.section--principles { background: var(--white); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.principle { border-left: 3px solid var(--teal); padding-left: 1.1rem; }
.principle h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.45rem; }
.principle p { margin: 0; color: var(--muted); }
.bay {
  max-width: none;
  margin: 0;
  padding: 1.5rem;
  border: 2px dashed var(--rule);
  border-radius: 4px;
  color: var(--muted);
  background: var(--white);
}

/* Contact: the one dark band */
.contact { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.contact__inner { display: grid; gap: 2rem; align-items: center; }
.contact h2 { margin-bottom: 1rem; }
.contact p { color: #d6e1ee; }
.contact a:not(.button) { color: var(--white); }
.contact__email { margin: 1.1rem 0 0; font-size: 1.1rem; font-weight: 600; }

.notfound { min-height: 50vh; }
.notfound h1 { font-size: 2.25rem; font-weight: 800; font-stretch: 125%; margin-bottom: 1rem; }

/* Footer, continuing the contact band */
.foot { background: var(--ink); color: #d6e1ee; padding-block: 1.75rem; font-size: 0.95rem; border-top: 1px solid #22406b; }
.foot p { margin: 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.foot a { color: var(--white); }

@media (min-width: 48rem) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
  .hero__logo { position: static; width: clamp(13rem, 24vw, 19rem); justify-self: end; }
  .hero__title { padding-right: 0; }
  .spec__row { grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 2rem; align-items: baseline; }
  .split { grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 2rem; align-items: start; }
  .split h2 { margin-bottom: 0; }
  .principles { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
  .contact__inner { grid-template-columns: 1fr auto; }
}
