/* amidus.lt - the only stylesheet. No inline styles anywhere: CSP falls back to default-src 'self'. */

/* Noto Sans, self-hosted. SIL Open Font License 1.1 - see /assets/fonts/OFL.txt */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: rgba(30, 39, 50, 0.98);
  --ink-80: rgba(30, 39, 50, 0.8);
  --ink-60: rgba(30, 39, 50, 0.6);
  --ink-40: rgba(30, 39, 50, 0.4);
  --ink-06: rgba(30, 39, 50, 0.06);
  --ink-04: rgba(30, 39, 50, 0.04);
  --blue: rgba(0, 119, 200, 0.98);
  --blue-80: rgba(0, 119, 200, 0.8);
  --blue-10: rgba(0, 119, 200, 0.1);
  --white: rgba(255, 255, 255, 0.98);
  --line: #f2f2f2;
  --radius: 4px;
  --shadow: 0 0 8px var(--ink-04);
  --page: min(1200px, calc(100% - 32px));
  --inset: 8%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Header: overlays the hero, gradient fades into the banner ---------- */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  min-height: 248px;
  background: linear-gradient(rgba(255, 255, 255, 0.8) 40px, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 80px;
  align-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 20px 0;
}

.site-header a {
  pointer-events: auto;
}

.site-logo img {
  width: 150px;
  height: 40px;
}

.site-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
}

.site-nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-10);
}

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

.hero {
  padding: 200px 20% 8% 0;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero--home {
  background-image: url("/assets/img/banner-home.jpg");
}

.hero--contacts {
  background-image: url("/assets/img/banner-contacts.jpg");
}

.hero__panel {
  padding: 48px var(--inset) 32px 18%;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink-60);
}

.hero__title {
  padding-bottom: 32px;
  font-size: 48px;
  line-height: 1.2;
}

.hero__title + p {
  padding-bottom: 48px;
}

.button {
  display: inline-block;
  margin: 0 0 32px;
  padding: 7px 24px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.button:hover {
  border-color: var(--blue-80);
  background: var(--blue-80);
}

/* ---------- Main column ---------- */

.site-main {
  width: var(--page);
  margin: 80px auto 0;
}

.prose {
  padding: 0 var(--inset);
}

.prose p {
  padding: 16px 0;
}

.prose ul {
  margin: 16px 0;
  padding-left: 40px;
}

/* ---------- Boxed sections: Clients, Patterns, Accelerators ---------- */

.box {
  margin-top: 80px;
  padding: 80px var(--inset) 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(-45deg, #f2f2f2, rgba(255, 255, 255, 0.98));
  text-align: center;
}

.box + .box {
  margin-top: 120px;
}

.box--tint {
  background: linear-gradient(-45deg, #e8f6ff, #f2faff);
}

.box__title {
  font-size: 40px;
  line-height: 1.2;
}

/* Short dark rule under each section title (120 x 4 px). */
.box__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 32px auto 16px;
  background: var(--ink);
}

.box__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}

.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-grid img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--ink-06);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.card__title {
  padding-top: 16px;
  font-size: 20px;
  line-height: 1.6;
}

.card__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.card--accelerator img {
  height: 80px;
}

.card--accelerator .card__title {
  padding-top: 32px;
}

.card--accelerator .card__text {
  margin-top: 32px;
}

/* ---------- Footer and simple pages ---------- */

.site-footer {
  width: var(--page);
  margin: 40px auto 0;
  padding: 64px 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-40);
}

/* Inset on the paragraph, so the percentage is taken from the 1200 px column, not the body. */
.site-footer p {
  padding: 0 var(--inset);
}

.page-simple {
  width: var(--page);
  margin: 0 auto;
  padding: 200px var(--inset) 40px;
}

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

@media (max-width: 1279px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .site-header__inner {
    gap: 12px;
    padding: 16px 0;
  }

  .site-logo img {
    width: 120px;
    height: 32px;
  }

  .hero {
    padding: 150px 8% 8% 0;
  }

  .hero__panel {
    padding: 32px 24px;
  }

  .hero__title {
    font-size: 40px;
  }

  .prose {
    padding: 0;
  }

  .box {
    margin: 40px -16px 0;
    padding: 60px 24px;
    border-radius: 0;
  }

  .box + .box {
    margin-top: 60px;
  }

  .box__title {
    font-size: 32px;
  }

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

  .site-footer p {
    padding: 0;
  }

  .page-simple {
    padding: 160px 0 40px;
  }
}
