/* Let IT Work: one page, light and dark. Colours from the logo: green #92C200, grey #73797C.
   The logo has a white background, so the top bar stays white in dark mode too. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2?v=4c373ce3c1") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #92c200;
  --green-text: #4c6e00;
  --grey: #73797c;
  --bg: #ffffff;
  --bg-soft: #f4f6f1;
  --card: #ffffff;
  --text: #24282a;
  --muted: #5b6164;
  --line: #e2e6dd;
  --button-text: #1d2600;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green-text: #b5e03a;
    --bg: #15181a;
    --bg-soft: #1c2023;
    --card: #22272a;
    --text: #eceeea;
    --muted: #aab0b2;
    --line: #2f3539;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green-text); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

/* Top bar */
.top {
  background: #ffffff;
  border-bottom: 1px solid #e2e6dd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo img {
  display: block;
  width: 208px;
  height: auto;
}

.top nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top nav a {
  color: #3d4245;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.top nav a:hover { color: #4c6e00; }

.top nav .language {
  border: 1px solid #cfd5c8;
  border-radius: 999px;
  padding: 4px 12px;
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 88% 20%, rgba(146, 194, 0, 0.22) 0 120px, transparent 121px),
    radial-gradient(circle at 78% 78%, rgba(146, 194, 0, 0.14) 0 48px, transparent 49px),
    var(--bg-soft);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  max-width: 12ch;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 32px;
}

.button {
  display: inline-block;
  background: var(--green);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
}

.button:hover { filter: brightness(1.06); }

/* Services */
.services, .about, .contact { padding: 80px 0; }

h2 { font-size: clamp(28px, 4vw, 40px); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 16px;
  padding: 24px;
}

.card h3 {
  font-size: 21px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.about { background: var(--bg-soft); }

.about p, .contact p { font-size: 18px; }

.email a {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  word-break: break-word;
}

/* Footer */
.bottom {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.bottom p { margin: 0 0 4px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-inner { min-height: 64px; }
  .logo img { width: 150px; }
  .top nav { gap: 12px; }
  .top nav a:not(.language) { display: none; }
  .hero { padding: 64px 0 56px; }
  .services, .about, .contact { padding: 56px 0; }
}
