/* ==========================================================================
   ITBANK.LT Global Stylesheet — Clean Editorial Layout (Zero Box-in-Box)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #0f172a;
  --accent-blue: #1d4ed8;
  --accent-green: #16a34a;
  --radius: 12px;
  --max-w: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  background: var(--bg-dark);
  color: #cbd5e1;
  font-size: 12.5px;
}

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

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.topbar-contacts a:hover {
  color: #ffffff;
}

.topbar-contacts svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #94a3b8;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-link.active {
  color: var(--text);
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ==========================================================================
   Hero Banner (Monochrome Typography, No Rainbow, No Pill Box)
   ========================================================================== */
.hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}

.hero h1 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  max-width: 800px;
}

.hero h1 span {
  color: var(--text);
}

.hero p {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   Main Section & Featured Flagship Solutions (Clean Open Rows, No Outer Frame)
   ========================================================================== */
.section {
  padding: 20px 0 72px;
  flex: 1;
}

.featured-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.featured-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.featured-card.reverse .featured-media {
  order: 2;
}

.featured-card.reverse .featured-body {
  order: 1;
}

.featured-media {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.featured-media img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.featured-media:hover img {
  transform: scale(1.015);
}

.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cms-inline-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.featured-body h2 {
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}

.featured-body p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Buttons (Compact & Balanced)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.btn-outline {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: #94a3b8;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 6px;
}

/* ==========================================================================
   Software Portfolio Grid (Frameless Gallery Items)
   ========================================================================== */
.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-header p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 15px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-thumb {
  aspect-ratio: 1000 / 630;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.025);
}

.portfolio-content {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 3px;
  color: var(--text);
}

.portfolio-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.portfolio-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   About Us Page (/apie-mus/) — Open Editorial Layout
   ========================================================================== */
.about-lead {
  padding: 24px 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.about-lead p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-lead strong {
  color: var(--text);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pillar-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}

.client-logo-card {
  padding: 12px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logo-card:hover {
  opacity: 1;
  transform: translateY(-2px);
}

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

/* ==========================================================================
   Contacts Page (/kontaktai/) — Clean Split Without Nested Boxes
   ========================================================================== */
.contact-wrap {
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.contact-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.contact-value a:hover {
  opacity: 0.75;
}

.contact-brand-showcase {
  padding-left: 40px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.contact-brand-showcase img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.contact-brand-showcase p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-brand-showcase strong {
  color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.footer-partners a {
  color: #94a3b8;
}

.footer-partners a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox img {
  max-width: min(1040px, 94vw);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #ffffff;
}

.lightbox-caption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   Tablet & Mobile Responsiveness (<992px, <768px)
   ========================================================================== */
@media (max-width: 992px) {
  .featured-card,
  .featured-card.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .featured-card.reverse .featured-media {
    order: 1;
  }

  .featured-card.reverse .featured-body {
    order: 2;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-brand-showcase {
    padding-left: 0;
    padding-top: 28px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .topbar-inner > div:last-child {
    display: none;
  }

  .header-inner {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo img {
    height: 30px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
  }

  .nav-link {
    padding: 6px 11px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 12px 0 48px;
  }

  .featured-list {
    margin-bottom: 40px;
  }

  .featured-card {
    padding: 28px 0;
  }

  .portfolio-grid,
  .pillars-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .client-logo-card {
    height: 64px;
    padding: 8px;
  }
}
