/* ============ Droneteam.lt redesign — base styles ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-dark: #0a1622;
  --bg-darker: #06101a;
  --ink: #0a1622;
  --ink-2: #2a3a4a;
  --ink-3: #5a6b7c;
  --line: #d8dee5;
  --line-soft: #e8ecf1;

  /* brand pulled from existing droneteam.lt mark */
  --brand: #1f6fb8;          /* drone team blue */
  --brand-deep: #0e3b66;
  --brand-cyan: #2bbfd9;     /* the lighter ring on the logo */

  /* technical accents seen in current site overlays */
  --tech-green: #5cd672;
  --tech-blue: #4ea3ff;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; user-select: none;
}
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-text span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--ink-3); text-transform: uppercase; margin-top: 4px;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; position: relative; cursor: pointer;
  letter-spacing: 0.01em;
}
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
}
.nav-link:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-3); display: flex; gap: 6px; align-items: center;
}
.lang-toggle .lang { padding: 4px 6px; cursor: pointer; border-radius: 3px; }
.lang-toggle .lang.active { color: var(--ink); background: var(--bg-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 0; transition: transform .15s, background .2s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light {
  background: #fff; color: var(--ink); border-color: #fff;
}
.btn-light:hover { background: var(--brand-cyan); border-color: var(--brand-cyan); color: var(--ink); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn .arrow { font-family: var(--mono); font-size: 14px; }

/* ===== Page header (sub-pages) ===== */
.page-header {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.page-header .crumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 24px;
}
.page-header .crumb .sep { opacity: 0.4; }
.page-header h1 { max-width: 920px; }
.page-header .lede {
  margin-top: 24px; max-width: 720px; font-size: 18px; line-height: 1.55;
  color: var(--ink-2);
}

/* ===== Section spacing ===== */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.dark { background: var(--bg-dark); color: #e6ecf2; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.soft { background: var(--bg-soft); }

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--ink); }
.card .eyebrow { color: var(--brand); }
.card h3 { font-family: var(--serif); }
.card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.card .num {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.18em;
}

/* image placeholder — striped, monospace label */
.ph {
  position: relative;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(10,22,34,0.04) 0 8px,
      rgba(10,22,34,0.0) 8px 16px);
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; text-align: center; padding: 16px;
}
.ph.dark {
  background-color: #0e1c2c;
  border-color: #16283c;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 8px,
      rgba(255,255,255,0.0) 8px 16px);
  color: rgba(255,255,255,0.55);
}
.ph .ph-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 3px 7px; background: #fff;
}
.ph.dark .ph-tag { background: #06101a; border-color: #1a2c40; color: rgba(255,255,255,0.6); }

/* footer */
footer.site {
  background: var(--bg-darker); color: #c2cdd8; padding: 64px 0 28px;
}
footer.site h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 16px;
  font-weight: 500;
}
footer.site a:hover { color: #fff; }
footer.site .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
footer.site .col p, footer.site .col a {
  display: block; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.7);
}
footer.site .small {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.45);
  font-family: var(--mono); letter-spacing: 0.08em;
}

/* utility */
.mono { font-family: var(--mono); }
.row { display: flex; gap: 16px; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  footer.site .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 64px 0; }
}
