/* Easybluecode — static site styles. No framework, no external requests. */

@font-face {
  font-family: "Archivo Narrow";
  src: url("/assets/fonts/archivo-narrow-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: optional; /* no swap = no layout shift; font is preloaded */
}

:root {
  --ink: #000;
  --text: #25334c;
  --accent: #334866;
  --muted: #5b6b85;
  --bg: #fff;
  --font: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

/* Particle ring behind everything */
#ring { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Header: centred logo */
.site-header { display: flex; justify-content: center; padding: 1.5rem 1rem 0; }
.site-header img { display: block; width: 150px; height: auto; }

/* Full-height panels (the old slides, now real sections) */
.panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 980px;
  margin: 0 auto;
}
.panel > .lead, .panel > .facts { max-width: 740px; }
.panel:first-of-type { min-height: calc(100svh - 100px); padding-top: 0; }

.display {
  font-size: clamp(3rem, min(9vw, 12vh), 9.4rem);
  line-height: .93;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.01em;
}
.display::after {
  content: "";
  display: block;
  width: min(300px, 60%);
  height: 6px;
  margin: 1.2rem auto 0;
  border-radius: 3px;
  background: var(--accent);
}

.lead { margin: 1.5rem 0 0; font-size: clamp(1rem, 2.4vh, 1.25rem); }

/* Three-column facts row (values, stats, contact details) */
.facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts li { padding: .25rem 1rem; }
.facts li + li { border-left: 2px solid var(--text); }
.facts strong { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; color: var(--ink); }
.facts span { display: block; margin-top: .3rem; font-size: 1rem; color: var(--muted); }

/* Phones: keep the three facts side by side, smaller */
@media (max-width: 560px) {
  .facts li { padding: .15rem .5rem; }
  .facts strong { font-size: 1.05rem; }
  .facts span { font-size: .78rem; line-height: 1.3; }
}
@media (max-width: 340px) {
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .facts li + li { border-left: 0; border-top: 2px solid var(--text); padding-top: 1rem; }
}

/* White halo keeps text legible over the particle ring */
.lead, .facts, .contact-grid { text-shadow: 0 0 4px #fff, 0 0 8px #fff; }

/* Client logos */
.clients {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  align-items: center;
  justify-items: center;
}
.clients img { display: block; max-height: 44px; width: auto; }
@media (max-width: 640px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Contact page: two-sided card (navy details | form) */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  width: 100%;
  max-width: 920px;
  margin-top: 2.25rem;
  text-align: left;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(37, 51, 76, .08), 0 24px 60px -24px rgba(37, 51, 76, .35);
}

.contact-info {
  position: relative;
  padding: 2.25rem 2rem;
  background: var(--text);
  color: #fff;
  /* dot field echoing the particle ring */
  background-image: radial-gradient(rgba(185, 200, 222, .35) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  background-position: -4px -4px;
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--text) 35%, rgba(37, 51, 76, .55) 100%);
}
.contact-info ul { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.contact-info li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start; }
.contact-info svg {
  width: 2.4rem; height: 2.4rem; padding: .55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact-info strong { display: block; font-size: 1.3rem; line-height: 1.1; }
.contact-info span { display: block; margin-top: .25rem; font-size: .95rem; color: #c9d4e4; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
  padding: 2.25rem 2rem;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #f1f4f8;
  border: 1px solid transparent;
  border-bottom: 2px solid #c9d2de;
  border-radius: 8px 8px 4px 4px;
  padding: .7rem .85rem;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 8.5rem; line-height: 1.45; }
.contact-form ::placeholder { color: #8a97ab; }
.contact-form input:hover, .contact-form textarea:hover { border-bottom-color: #9aa6b8; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #dfe5ee;
  border-bottom-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 72, 102, .12);
}
.field-error { display: none; font-size: .85rem; color: #b42318; }
.contact-form .field :user-invalid { border-bottom-color: #b42318; }
.field :user-invalid ~ .field-error { display: block; }

.consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; line-height: 1.4; color: var(--muted);
  cursor: pointer;
}
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: var(--accent); }

.send {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-size: 1.1rem; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: .95rem 1.5rem;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.send svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.send:hover { background: var(--text); }
.send:hover svg { transform: translateX(3px); }
.send:active { transform: translateY(1px); }
.send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.send[disabled] { opacity: .7; cursor: progress; }
.send[disabled] svg { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .contact-card { grid-template-columns: 1fr; border-radius: 12px; }
  .contact-info { padding: 1.5rem 1.25rem; }
  .contact-info ul { gap: 1.1rem; }
  .contact-form { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-form input, .contact-form textarea, .send, .send svg { transition: none; }
}

.button { border: 0; cursor: pointer; align-self: stretch; font-family: inherit; }
.contact-form .consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .2rem 0 .8rem; }
.contact-form .consent input { width: auto; margin: .2rem 0 0; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-block;
  margin-top: .5rem;
  padding: .8rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.button:hover { background: var(--text); }

/* Long-form text (privacy policy) */
.prose { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 4rem; font-size: 1rem; line-height: 1.6; text-align: left; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--text); text-align: center; margin: 1.5rem 0 2rem; line-height: 1.1; }
.prose h2 { font-size: 1.1rem; color: var(--text); margin: 2.2rem 0 .6rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }

/* Footer */
.site-footer {
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer p { margin: 0 auto; max-width: 900px; }
.site-footer nav { margin-top: .5rem; }
.site-footer nav a { margin: 0 .4rem; }

/* Prev / next panel arrows (home only, added by JS) */
.pager {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: .75rem;
  cursor: pointer;
  color: var(--text);
  opacity: .7;
}
.pager:hover { opacity: 1; }
.pager svg { display: block; width: 18px; height: 32px; }
.pager-prev { left: .5rem; }
.pager-next { right: .5rem; }
@media (max-width: 700px) {
  /* Phones: arrows sit at the bottom, clear of the text */
  .pager { top: auto; bottom: 4.6rem; transform: none; padding: .5rem .9rem; opacity: .85; }
  .pager svg { width: 12px; height: 22px; }
}

/* Carousel mode (home, added by site.js): one full-screen slide at a time */
body.carousel { height: 100vh; height: 100svh; overflow: hidden; }
body.carousel .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; }
body.carousel .site-header a { pointer-events: auto; }
body.carousel main { position: fixed; inset: 0; overflow: hidden; }
body.carousel main > .panel {
  position: absolute;
  inset: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 110px 3rem 90px;
  justify-content: safe center;
  overflow-y: auto;
  will-change: transform, opacity;
}
body.carousel main > .panel > * { max-width: 980px; }
body.carousel main > .panel > .lead,
body.carousel main > .panel > .facts { max-width: 740px; }
body.carousel main > .panel > .clients { max-width: 820px; width: 100%; }
body.carousel .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; padding: .75rem 1rem; background: linear-gradient(transparent, var(--bg) 40%); }
body.carousel .pager { z-index: 3; }
@media (max-width: 700px) {
  .site-header { padding-top: 1rem; }
  .site-header img { width: 112px; }
  body.carousel main > .panel { padding: 84px 1.25rem 130px; }
  .display { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .display::after { height: 5px; margin-top: 1rem; }
  .lead { font-size: 1rem; line-height: 1.5; margin-top: 1.1rem; }
  .facts { margin-top: 1.4rem; }
  .clients { gap: 1.25rem 1rem; margin-top: 1.6rem; }
  .clients img { max-height: 34px; }
  body.carousel .site-footer { font-size: .7rem; padding: .5rem 1rem .75rem; }
}
