/* ==========================================================
   SWED-TRAC MULTI-LANG SITE (LT, EN, SV)
   ========================================================== */
:root {
  --primary: #1e3a5f;
  --primary-dark: #142744;
  --accent: #ffdd00;
  --accent-dark: #e6c700;
  --text: #1a1a1a;
  --text-muted: #5a6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-dark: #0f1e33;
  --border: #e1e6ec;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --container: 1280px;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: white; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; max-width: var(--container); margin: 0 auto; gap: 20px; }
.logo { font-weight: 900; font-size: 1.4rem; color: var(--primary); letter-spacing: -0.5px; text-decoration: none; }
.logo em { font-style: normal; color: var(--accent-dark); }
.nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }
.cta-btn { background: var(--accent) !important; color: var(--text) !important; padding: 10px 22px; border-radius: 6px; font-weight: 800; }
.cta-btn:hover { transform: translateY(-2px); transition: transform 0.2s; }
.lang-switch { display: flex; gap: 4px; font-size: 0.82rem; }
.lang-switch a { padding: 4px 8px; border-radius: 4px; font-weight: 700; color: var(--text-muted); }
.lang-switch a.active { background: var(--primary); color: white; }

/* HERO */
.hero { background: linear-gradient(135deg, rgba(15,30,51,0.78) 0%, rgba(20,39,68,0.85) 100%), url('../images/hero-hangar.jpg') center/cover; color: white; padding: 130px 20px 110px; position: relative; }
.hero-content { max-width: var(--container); margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--text); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: white; max-width: 820px; margin-bottom: 24px; }
.hero .tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 700px; margin-bottom: 36px; opacity: 0.95; font-weight: 400; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-block; transition: all 0.2s; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--accent-dark); }
.btn-secondary { background: transparent; color: white; border-color: white; }
.btn-secondary:hover { background: white; color: var(--primary); }
.hero-usps { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.usp { display: flex; gap: 12px; align-items: center; font-size: 0.95rem; }
.usp .icon { width: 44px; height: 44px; background: rgba(255,221,0,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }

/* PAGE HERO (for inner pages) */
.page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 60px 20px; }
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { opacity: 0.95; margin-top: 10px; max-width: 700px; }

/* SECTIONS */
section { padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .subtitle { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: block; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 15px; }
.section-header p { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* STATS */
.stats-section { background: var(--primary); color: white; padding: 60px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; text-align: center; }
.stat-num { font-size: 3rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.9rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }

/* CARDS GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: var(--container); margin: 0 auto; }
.card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-image { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-image img { transform: scale(1.06); }
.card-icon { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--text); width: 38px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; z-index: 2; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.card .link { color: var(--primary); font-weight: 700; font-size: 0.88rem; margin-top: auto; }
.card .link::after { content: ' →'; }

/* PRODUCT LIST (machinery page) */
.product-category { margin-bottom: 60px; }
.product-category h2 { font-size: 1.8rem; margin-bottom: 8px; }
.product-category .cat-desc { color: var(--text-muted); margin-bottom: 30px; max-width: 700px; }
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-chip { background: white; padding: 15px 20px; border-radius: 10px; border: 2px solid var(--border); font-weight: 600; transition: all 0.2s; text-align: center; display: block; }
.product-chip:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-chip .code { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* PROCESS */
.process { background: var(--bg-alt); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: var(--container); margin: 0 auto; }
.step { text-align: center; padding: 30px 20px; background: white; border-radius: 12px; }
.step-num { width: 50px; height: 50px; background: var(--primary); color: var(--accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 900; margin-bottom: 20px; }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* CERTIFICATE */
.certificate { background: var(--bg-dark); color: white; padding: 80px 20px; }
.cert-content { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; }
.cert-badge { background: var(--accent); color: var(--text); padding: 30px; border-radius: 16px; text-align: center; box-shadow: var(--shadow-lg); }
.cert-badge .ce { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.cert-badge .num { font-size: 0.75rem; font-weight: 700; margin-top: 8px; }
.cert-content h2 { color: white; font-size: 1.9rem; margin-bottom: 15px; }
.cert-content p { opacity: 0.9; margin-bottom: 15px; line-height: 1.7; }
.cert-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.cert-specs > div { font-size: 0.9rem; }
.cert-specs strong { color: var(--accent); display: block; margin-bottom: 3px; }

/* BENEFITS (dealers page) */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.benefit { text-align: center; padding: 30px; background: white; border-radius: 12px; border: 1px solid var(--border); }
.benefit-icon { font-size: 2.5rem; margin-bottom: 15px; }
.benefit h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; }

/* CONTACT */
.contact-section { background: var(--bg-alt); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; max-width: var(--container); margin: 0 auto; }
.contact-info { padding: 20px 0; }
.contact-info h3 { margin-bottom: 25px; font-size: 1.2rem; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-bottom: 22px; align-items: start; }
.contact-item .icon { font-size: 1.3rem; width: 44px; height: 44px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.contact-item strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item a, .contact-item address, .contact-item span { color: var(--text-muted); font-style: normal; font-size: 0.95rem; line-height: 1.6; }
.slack-notice { background: white; border-left: 4px solid #4a154b; padding: 15px 20px; border-radius: 6px; font-size: 0.9rem; color: var(--text-muted); margin-top: 20px; box-shadow: var(--shadow); }
.slack-notice strong { color: var(--text); }

.contact-form { background: white; padding: 35px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.hp { position: absolute !important; left: -9999px !important; }
fieldset { border: none; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: white; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.checkbox { display: flex; gap: 10px; align-items: start; font-weight: 400 !important; font-size: 0.88rem !important; cursor: pointer; }
.checkbox input { width: auto !important; margin-top: 3px; }
.form-success, .form-error { margin-top: 20px; padding: 20px; border-radius: 8px; }
.form-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; text-align: center; }
.cta-section h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 20px; }
.cta-section p { font-size: 1.1rem; opacity: 0.95; max-width: 600px; margin: 0 auto 30px; }

/* PORTFOLIO / STAGES */
.portfolio { background: var(--bg-dark); color: white; padding: 80px 20px; }
.portfolio .section-header h2 { color: white; }
.portfolio .section-header p { color: rgba(255,255,255,0.75); }
.portfolio .section-header .subtitle { color: var(--accent); }
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: var(--container); margin: 0 auto; }
.stage { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.stage:hover img { transform: scale(1.06); }
.stage-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); color: white; }
.stage-badge { display: inline-block; background: var(--accent); color: var(--text); padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.stage h3 { font-size: 1.1rem; margin-bottom: 4px; color: white; }
.stage p { font-size: 0.8rem; opacity: 0.9; }

/* FOOTER */
footer { background: #0a1422; color: #8a9bad; padding: 60px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; max-width: var(--container); margin: 0 auto 40px; }
footer h4 { color: white; font-size: 0.95rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #8a9bad; font-size: 0.9rem; }
footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1a2a40; padding-top: 20px; text-align: center; font-size: 0.85rem; max-width: var(--container); margin: 0 auto; }

/* ABOUT */
.about { padding: 80px 20px; }
.about-content { max-width: 900px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.08rem; margin-bottom: 18px; line-height: 1.8; }
.about-brands { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.brand-tag { background: var(--bg-alt); padding: 12px 24px; border-radius: 8px; font-weight: 700; color: var(--primary); }

/* ───── MOBILE NAV (hamburger) ─────────────────────────── */
.nav-toggle {
  display: none;
  background: #1e3a5f;
  border: 0;
  width: 52px;
  height: 52px;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #ffffff;
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-radius: 2px;
  pointer-events: none;
}
.nav-toggle[aria-expanded="true"] {
  background: #dc2626;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  /* Header platesnis, kad hamburger telpa */
  header#siteHeader { min-height: 72px; }
  .nav { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }

  /* Hamburger - mažesnis, kad gražiai telpa header'yje, fixed top right */
  .nav-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 14px;
    width: 48px;
    height: 48px;
    z-index: 10001;
  }
  .nav-toggle span {
    width: 22px;
    height: 3px;
    margin: 4px auto;
  }
  .nav ul {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 88px 28px 28px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow-y: auto;
  }
  .nav ul.open { transform: translateX(0); }
  .nav ul li,
  .nav ul li.nav-link { display: block; width: 100%; }
  .nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eef1f5;
    color: #0e2138 !important;
    font-weight: 600;
  }
  .nav ul li a:hover { color: #1e3a5f !important; }
  .nav ul li .cta-btn {
    background: #facc15 !important;
    color: #0e2138 !important;
    border: 0;
    margin-top: 16px;
    padding: 14px 20px !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 800;
  }
  .nav ul .lang-switch {
    display: flex;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1f5;
  }
  .nav ul .lang-switch a {
    border-bottom: 0;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0e2138 !important;
  }
  .nav ul .lang-switch a.active {
    background: #1e3a5f;
    color: white !important;
  }
  /* Be backdrop'o - meniu tiesiog įslysta, fonas lieka normalus */
  body.nav-open { overflow: hidden; }
}
@media (max-width: 768px) {
  section { padding: 50px 20px; }
  .hero { padding: 80px 20px 60px; }
  .hero-usps { gap: 20px; }
  .cert-content { grid-template-columns: 1fr; text-align: center; }
  .cert-specs { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 25px; }
}
/* Originalus mobile breakpoint - paliekam kad nieko nesugadintume */
@media (max-width: 900px) {
  .nav ul:not(.open) { gap: 0; }
}
@media (max-width: 768px) {
  section { padding: 50px 20px; }
  .hero { padding: 80px 20px 60px; }
  .hero-usps { gap: 20px; }
  .cert-content { grid-template-columns: 1fr; text-align: center; }
  .cert-specs { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 25px; }
}

/* ─── „Prisijungti" pill mygtukas (skaičiuotuvo prieiga) ─── */
.nav-login {
  display: flex;
  align-items: center;
}
.nav-login a.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(11, 61, 102, 0.06);
  color: var(--text-muted, #667085);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-login a.login-pill:hover {
  background: var(--primary, #0b3d66);
  color: white;
  border-color: var(--primary, #0b3d66);
}
@media (max-width: 900px) {
  .nav-login a.login-pill { font-size: 0.85rem; padding: 8px 14px; }
}
