/* Kalbomatas — hi-fi v2: white, geometric, flag-colored */

:root {
  /* Surface — full white */
  --paper:        #ffffff;
  --paper-2:      #f7f8f7;
  --paper-3:      #eeefee;
  --ink:          #0d1410;
  --ink-2:        #2c352f;
  --ink-3:        #6a716c;
  --ink-4:        #a4a8a5;
  --line:         #0d1410;
  --hairline:     rgba(13, 20, 16, 0.08);
  --hairline-2:   rgba(13, 20, 16, 0.14);

  /* Lithuanian flag — primary palette */
  --green:        #1f7a3a;
  --green-deep:   #155a2a;
  --green-soft:   #e6f2e9;
  --yellow:       #f6c547;
  --yellow-deep:  #d9a420;
  --yellow-soft:  #fdf3d4;
  --red:          #c1272d;
  --red-soft:     #fae6e7;

  /* Tokens */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 20, 16, 0.04);
  --shadow-md: 0 4px 14px rgba(13, 20, 16, 0.06);
  --shadow-lg: 0 14px 40px rgba(13, 20, 16, 0.08);
  --shadow-xl: 0 30px 80px rgba(13, 20, 16, 0.12);

  /* Type — Gabarito (display) + Inter (body) */
  --display: 'Gabarito', system-ui, -apple-system, sans-serif;
  --serif:   'Gabarito', system-ui, -apple-system, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; font-weight: 700; }
h4 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 700; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 500;
}

.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.serif { font-family: var(--serif); font-weight: 500; }
.mono  { font-family: var(--mono); }

/* ---------- Layout ---------- */
.container        { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px;  margin: 0 auto; padding: 0 32px; }
section { padding: 100px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } .container, .container-narrow { padding: 0 20px; } }

.section-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.section-eyebrow .num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  background: var(--green-soft); color: var(--green-deep);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  transition: transform .25s ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1320px; margin: 0 auto; gap: 24px;
}
.site-header .logo { height: 26px; flex-shrink: 0; }
.site-header .logo svg, .site-header .logo img { height: 100%; width: auto; }

.site-header nav { display: flex; gap: 32px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.site-header nav a { transition: color .18s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); }
@media (max-width: 880px) { .site-header nav { display: none; } }

/* mobile menu button */
.menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline-2); color: var(--ink);
}
.menu-btn:hover { background: var(--paper-2); }
@media (max-width: 880px) { .menu-btn { display: inline-flex; } }
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: #fff; padding: 24px;
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-menu .links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu .links a {
  padding: 18px 0; font-family: var(--display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu .links a:hover { color: var(--green-deep); }
.mobile-menu .footer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.site-header .right { display: flex; align-items: center; gap: 12px; }

/* ---------- Lang Switcher — circular flag + full label ---------- */
.lang { position: relative; font-size: 14px; }
.lang > button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--hairline-2);
  color: var(--ink); transition: all .15s;
  font-family: var(--sans); font-weight: 500;
}
.lang > button:hover { background: var(--paper-2); border-color: var(--ink-3); }
.lang .label { font-size: 14px; }
.lang .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1.5px, -1.5px); opacity: 0.45; margin-left: 2px; }
.lang ul {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; list-style: none; min-width: 220px; z-index: 60;
}
.lang ul li {
  padding: 9px 12px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px;
  color: var(--ink);
}
.lang ul li:hover { background: var(--paper-2); }
.lang ul li.active { background: var(--green-soft); color: var(--green-deep); font-weight: 500; }
.lang ul li .check { margin-left: auto; color: var(--green-deep); }
.lang[data-open="false"] ul { display: none; }
@media (max-width: 720px) { .lang .label { display: none; } .lang > button { padding: 5px; } }

/* ---------- Buttons — fully rounded ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  transition: all .18s; border: 1px solid transparent;
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.green   { background: var(--green); color: #fff; }
.btn.green:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.yellow  { background: var(--yellow); color: var(--ink); }
.btn.yellow:hover { background: var(--yellow-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.ghost   { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.lg { padding: 18px 34px; font-size: 17px; border-radius: var(--r-pill); }
.btn.xl { padding: 20px 40px; font-size: 18px; border-radius: var(--r-pill); }
.btn .ic { width: 16px; height: 16px; }

/* ---------- Bento grid (Tools section) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  grid-auto-flow: dense;
  gap: 20px;
}
@media (max-width: 1080px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid > article { grid-column: span 1 !important; grid-row: span 1 !important; flex-direction: column !important; align-items: stretch !important; }
}
@media (max-width: 580px) {
  .bento-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .2s;
}
.card.tint-green  { background: var(--green-soft);  border-color: rgba(31,122,58,0.18); }
.card.tint-yellow { background: var(--yellow-soft); border-color: rgba(217,164,32,0.25); }
.card.dark        { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 72px 0 32px;
  background: var(--paper-2);
}
.site-footer .footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.site-footer .footer-tagline {
  font-family: var(--display);
  font-size: 22px; line-height: 1.3; font-weight: 600;
  color: var(--ink); letter-spacing: -0.015em;
  max-width: 320px;
}
.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .footer-info address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.site-footer .footer-info .company {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.site-footer .footer-meta {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.site-footer .footer-meta a { color: var(--green-deep); }
.site-footer .footer-meta a:hover { color: var(--ink); text-decoration: underline; }

.site-footer h5 {
  font-family: var(--sans); font-size: 13px;
  color: var(--ink); font-weight: 600;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer ul a { color: var(--ink-2); }
.site-footer ul a:hover { color: var(--ink); }

.site-footer .footer-wordmark {
  margin: 64px 0 24px;
  line-height: 0;
}
.site-footer .footer-wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer .footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}

@media (max-width: 880px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .footer-tagline { font-size: 19px; max-width: none; }
  .site-footer .footer-wordmark { margin: 40px 0 20px; }
}
@media (max-width: 520px) {
  .site-footer .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Pill (badge) — fully rounded ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; font-size: 12.5px;
  font-family: var(--sans); font-weight: 500; letter-spacing: 0;
  border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--hairline-2);
}
.pill.green  { background: var(--green-soft);  color: var(--green-deep); border-color: rgba(31,122,58,0.18); }
.pill.yellow { background: var(--yellow-soft); color: #6d5208;          border-color: rgba(217,164,32,0.30); }
.pill.red    { background: var(--red-soft);    color: var(--red);       border-color: rgba(193,39,45,0.20); }
.pill.dark   { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill .dot   { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill .live  { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Striped placeholder for portraits ---------- */
.portrait-ph {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 38%, var(--paper-3) 22%, transparent 23%),
    repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 6px, var(--paper-3) 6px, var(--paper-3) 7px);
  border-radius: 50%;
  position: relative; overflow: hidden;
}
.portrait-ph.square { border-radius: var(--r-md); }
.portrait-ph::after {
  content: '';
  position: absolute; bottom: -25%; left: 50%; transform: translateX(-50%);
  width: 64%; height: 60%; background: var(--paper-3); border-radius: 50% 50% 0 0;
}

/* ---------- Utilities ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.muted { color: var(--ink-3); }

.hr { height: 1px; background: var(--hairline); margin: 32px 0; }

section[id] { scroll-margin-top: 80px; }

/* ---------- Icon defaults (lucide-style, currentColor) ---------- */
.ic { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
