/* ===================================================
   NUSKAITYK.LT — Main Stylesheet
   =================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --bg-dark:      #0D1B2A;
  --bg-dark-2:    #1A2B3C;
  --accent:       #4A9EE8;
  --accent-hover: #2E85D4;
  --bg-light:     #F4F7FA;
  --bg-card:      #FFFFFF;
  --text-dark:    #1A2B3C;
  --text-body:    #4A5568;
  --text-light:   #FFFFFF;
  --border:       #E2EBF4;

  --font-heading: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:       10px;
  --shadow:       0 4px 24px rgba(13, 27, 42, 0.12);
  --transition:   0.25s ease;

  --container:    1160px;
  --header-h:     72px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-card);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ===================================================
   HEADER / NAV
   =================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

header.sticky {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.logo-fallback {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

#main-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--text-light);
}

#main-nav a:hover::after,
#main-nav a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 18px rgba(74, 158, 232, 0.32);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(74, 158, 232, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  transform: scale(1.03);
}

/* ===================================================
   SECTION SHARED
   =================================================== */
section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-line {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  color: var(--accent);
  opacity: 0.055;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(74, 158, 232, 0.15);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(74, 158, 232, 0.3);
  margin-bottom: 28px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.18;
  margin-bottom: 28px;
  max-width: 700px;
}

.accent-word {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-hint span {
  display: block;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  position: relative;
}

.hero-scroll-hint span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   APIE MUS
   =================================================== */
#apie {
  background: var(--bg-light);
}

#apie h2 {
  color: var(--text-dark);
}

.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 48px;
  flex-shrink: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.stat-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ===================================================
   PASLAUGOS
   =================================================== */
#paslaugos {
  background: var(--bg-card);
}

#paslaugos h2 {
  color: var(--text-dark);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.14);
  border-top-color: var(--accent);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 22px;
}

.card-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===================================================
   KONTAKTAI
   =================================================== */
#kontaktai {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

#kontaktai .section-header h2 {
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.contact-row strong {
  color: var(--text-light);
  font-weight: 600;
}

.ci {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a {
  color: var(--accent);
  transition: color var(--transition), text-decoration var(--transition);
  text-decoration: underline;
  text-decoration-color: transparent;
}

.contact-row a:hover {
  color: #7BBEF0;
  text-decoration-color: #7BBEF0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) + 4px);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-light);
}

.cta-card p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.cta-card .btn {
  width: 100%;
  text-align: center;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: #0A1520;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ===================================================
   SCROLL REVEAL ANIMATION
   =================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped children */
.stats-row .stat-item:nth-child(1) { transition-delay: 0.05s; }
.stats-row .stat-item:nth-child(3) { transition-delay: 0.15s; }
.stats-row .stat-item:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.18s; }

/* ===================================================
   RESPONSIVE — Tablet / Mobile
   =================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  section {
    padding: 72px 0;
  }

  /* Header mobile */
  .hamburger {
    display: flex;
  }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  #main-nav.open {
    max-height: 240px;
    padding: 12px 0 20px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
  }

  #main-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
  }

  #main-nav ul li:last-child a {
    border-bottom: none;
  }

  #main-nav a::after {
    display: none;
  }

  /* Hero mobile */
  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Stats mobile */
  .stats-row {
    flex-direction: column;
    gap: 36px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta-card {
    padding: 32px 24px;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.6rem;
  }
}
