/* PMT Suljo Mujić s.p. — Professional Metal Technology
   Static site stylesheet */

:root {
  --bg: #0e1116;
  --bg-2: #131820;
  --bg-3: #0a0d12;
  --panel: #171d26;
  --line: #262f3d;
  --txt: #e8edf4;
  --txt-2: #a8b3c2;
  --accent: #f5a524;
  --accent-2: #ffc65c;
  --steel: #5b8dd6;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 17px/1.7 "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--txt-2); font-size: .95rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #10131a; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700;
  color: var(--accent); margin: 0 0 .8em;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn-sm { --pad: 10px 18px; font-size: .9rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #14161b; box-shadow: 0 10px 26px -12px rgba(245, 165, 36, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(245, 165, 36, .9); }
.btn-ghost { border-color: var(--line); color: var(--txt); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 17, 22, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 13, 18, .92); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.28rem; letter-spacing: .1em; font-weight: 800; }
.brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-2); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 9px 13px; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--txt-2);
  transition: color .18s, background .18s;
}
.nav > a:hover, .nav > a.is-active { color: var(--txt); background: rgba(255, 255, 255, .06); }
.nav .nav-cta { color: #14161b; margin-left: 8px; }
.nav .nav-cta:hover { color: #14161b; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: 0; color: var(--txt-2); font: 700 .8rem/1 inherit;
  padding: 8px 11px; cursor: pointer; transition: background .18s, color .18s;
}
.lang-switch button.is-active { background: var(--accent); color: #14161b; }

.burger { display: none; width: 42px; height: 38px; background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--txt); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-3); }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/cover.jpg") center/cover no-repeat;
  opacity: .22; filter: grayscale(.35) contrast(1.05);
  transform: scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(245, 165, 36, .16), transparent 62%),
    radial-gradient(700px 380px at 88% 92%, rgba(91, 141, 214, .16), transparent 60%),
    linear-gradient(180deg, rgba(10, 13, 18, .78) 0%, rgba(10, 13, 18, .9) 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { max-width: 22ch; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--txt-2); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }

.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; }
.hero-facts li {
  flex: 1 1 165px; background: rgba(23, 29, 38, .72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; backdrop-filter: blur(4px);
}
.hero-facts strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.hero-facts span { font-size: .88rem; color: var(--txt-2); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 22px; height: 36px;
  border: 1px solid var(--line); border-radius: 12px; transform: translateX(-50%);
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%); animation: wheel 1.7s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background:
    radial-gradient(680px 320px at 85% 15%, rgba(245, 165, 36, .1), transparent 60%),
    var(--bg-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head .lead { color: var(--txt-2); }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--txt-2); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.about-media { margin: 0; }
.about-media img {
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-media figcaption { margin-top: 12px; font-size: .86rem; color: var(--txt-2); text-align: center; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 26px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--steel)); transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: #3a4658; box-shadow: var(--shadow); }
.card:hover::before { width: 100%; }
.card-ico {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 12px; background: rgba(245, 165, 36, .12); color: var(--accent);
  border: 1px solid rgba(245, 165, 36, .28);
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 span {
  display: block; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--steel); margin-top: 4px;
}
.card p { color: var(--txt-2); font-size: .96rem; margin: 0; }
.card-cta { background: linear-gradient(150deg, #1b2330, #131922); display: flex; flex-direction: column; justify-content: center; }
.card-cta .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.step-n { font-size: 2rem; font-weight: 800; color: rgba(245, 165, 36, .28); line-height: 1; display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--txt-2); font-size: .95rem; margin: 0; }

/* ---------- Careers ---------- */
.job-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.job-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.tag-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  background: rgba(91, 141, 214, .12); border: 1px solid rgba(91, 141, 214, .3);
  color: #cfe0f7; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.job-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.job-links .btn { word-break: break-all; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.ci {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--accent);
}
.ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--txt-2); }
.contact-list a { font-weight: 600; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
.contact-list a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--txt-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: #0f141c; border: 1px solid var(--line);
  border-radius: 10px; color: var(--txt); font: inherit; font-size: .97rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 165, 36, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e0574a; }
.form-note { margin: 14px 0 0; font-size: .84rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--line); padding: 40px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { border-radius: 9px; }
.footer-brand strong { display: block; font-size: 1rem; }
.footer-brand span { font-size: .84rem; color: var(--txt-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { font-size: .92rem; color: var(--txt-2); }
.footer-nav a:hover { color: var(--accent-2); }
.copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--txt-2); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent); color: #14161b; border-radius: 50%; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .9);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2, .job-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 13, 18, .98); border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; transform: translateY(-130%); transition: transform .32s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a { padding: 13px 12px; font-size: 1rem; }
  .nav .nav-cta { margin: 10px 0 0; justify-content: center; }
  .burger { display: block; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-facts li { flex-basis: 100%; }
  .contact-form, .job-box { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .scroll-hint, .contact-form { display: none; }
  body { background: #fff; color: #000; }
}
