:root {
  --ink: #181B20;
  --ink-2: #1E2228;
  --ink-3: #2B3139;
  --paper: #F7F7F5;
  --mist: #EEF0F2;
  --line: #D7DBE0;
  --muted: #69727D;
  --text-light: #F3F4F6;
  --steel: #A8B0BA;
  --steel-strong: #C8CDD3;
  --accent: #D96627;
  --accent-strong: #B84C18;
  --accent-hover: #E77738;
  --accent-soft: #F8E1D3;
  --accent-deep: #873813;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(24, 27, 32, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 14px; background: var(--accent); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--accent-deep); }
.eyebrow--map { color: var(--ink); }

h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.65rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 28px rgba(217,102,39,.18);
}
.button:hover { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 14px 34px rgba(217,102,39,.28); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #4d8dff; outline-offset: 3px; }
.button--ghost { background: transparent; box-shadow: none; color: var(--text-light); border-color: rgba(243,244,246,.55); }
.button--ghost:hover { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }
.button--small { min-height: 42px; padding-inline: 18px; }

.header-bar { background: var(--ink); color: var(--steel-strong); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-bar__inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .82rem; }
.header-bar__links { display: flex; gap: 20px; }
.header-bar a { color: var(--text-light); text-decoration: none; }

.main-nav { position: sticky; top: 0; z-index: 50; background: rgba(24,27,32,.97); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; width: 92px; text-decoration: none; }
.brand img { width: 92px; height: 66px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); color: var(--text-light); }
.nav-menu > a:not(.button) { position: relative; font-size: .95rem; font-weight: 700; text-decoration: none; }
.nav-menu > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right 180ms ease; }
.nav-menu > a:not(.button):hover::after,
.nav-menu > a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--paper); }

.hero { position: relative; overflow: hidden; min-height: 760px; background: var(--ink); color: var(--text-light); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(24,27,32,1) 0%,
      rgba(24,27,32,.995) 36%,
      rgba(24,27,32,.97) 44%,
      rgba(24,27,32,.88) 53%,
      rgba(24,27,32,.68) 68%,
      rgba(24,27,32,.50) 100%
    ),
    url("assets/svetsning.webp") 100% 48% / min(60vw, 900px) auto no-repeat;
}
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 34%, rgba(217,102,39,.24), transparent 30%); pointer-events:none; }
.hero__lines { position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(125deg, transparent 0 16px, rgba(255,255,255,.08) 16px 17px); mask-image: linear-gradient(90deg, transparent, #000 55%, #000); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); gap: 70px; align-items: center; min-height: 760px; padding-block: 80px; }
.hero h1 span { color: var(--accent); }
.hero__lead { max-width: 760px; margin-top: 28px; color: var(--steel-strong); font-size: clamp(1.05rem, 1.8vw, 1.24rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 50px 0 0; list-style: none; }
.hero__trust li { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.hero__trust strong { display: block; color: var(--text-light); font-size: 1rem; }
.hero__trust span { display: block; color: var(--steel); font-size: .78rem; }

.hero__contact { display: flex; align-items: center; justify-content: flex-end; }
.hero-contact-card {
  width: min(100%, 500px);
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(24,27,32,.88), rgba(30,34,40,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 38px 100px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}
.hero-contact-card h2 { max-width: 420px; font-size: clamp(2rem, 3.6vw, 3.15rem); }
.hero-contact-card__intro { margin-top: 20px; color: var(--steel-strong); }
.hero-contact-list { display: grid; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-contact-item { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-contact-item > span { display: block; margin-bottom: 4px; color: var(--steel); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-contact-item a { color: var(--text-light); font-weight: 750; text-decoration: none; }
.hero-contact-item a:hover { color: var(--accent-hover); }
.hero-contact-card__button { width: 100%; margin-top: 28px; }
.hero-contact-social { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; }
.hero-contact-social a { color: var(--steel-strong); font-size: .86rem; font-weight: 750; text-decoration: none; }
.hero-contact-social a:hover { color: var(--accent-hover); }

.quick-facts { background: var(--accent); }
.quick-facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-facts__grid > div { min-height: 112px; padding: 28px 34px; border-left: 1px solid rgba(24,27,32,.30); }
.quick-facts__grid > div:last-child { border-right: 1px solid rgba(24,27,32,.30); }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { font-size: 1rem; }
.quick-facts span { margin-top: 2px; font-size: .84rem; color: #412215; }

.section { padding: clamp(80px, 9vw, 128px) 0; }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--light { background: var(--mist); }
.section-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.section-heading > p { color: var(--muted); font-size: 1.03rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 310px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.service-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.service-card__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); }
.service-card__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { margin-top: 15px; color: var(--muted); }

.competence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.competence-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--steel); font-size: 1.06rem; }
.check-list { margin-top: 45px; }
.check-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.check-list span { color: var(--accent); font-weight: 900; }
.check-list p { color: var(--steel-strong); }
.check-list strong { color: var(--text-light); }
.competence-card { min-height: 540px; overflow: hidden; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.competence-card__visual { position: relative; min-height: 235px; background: url("assets/svetsbord-detalj.webp") center / cover no-repeat; }
.competence-card__visual::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 25%, rgba(24,27,32,.72)); }
.competence-card__cert { position:absolute; z-index:1; right:22px; bottom:20px; width:90px; padding:10px; background:rgba(255,255,255,.94); border-radius:12px; box-shadow:0 16px 35px rgba(0,0,0,.28); }
.competence-card__body { padding: 38px 42px 42px; }
.competence-card__body p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.competence-card__body ul { padding-left: 20px; margin: 24px 0 0; }
.competence-card__body li { margin: 7px 0; }

.page-hero { position: relative; overflow: hidden; min-height: 440px; display:flex; align-items:end; background:var(--ink); color:var(--text-light); }
.page-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(24,27,32,.96), rgba(24,27,32,.56)); }
.page-hero--projects { background: var(--ink) url("assets/industridetalj.webp") center 45% / cover no-repeat; }
.page-hero--about { background: var(--ink) url("assets/svetsning.webp") center 44% / cover no-repeat; }
.page-hero--contact { background: var(--ink) url("assets/svetsbord-detalj.webp") center 48% / cover no-repeat; }
.page-hero__inner { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0, 1.08fr) minmax(400px, .92fr); gap:70px; align-items:end; padding:100px 0 72px; }
.page-hero__content { grid-column:1; min-width:0; }
.page-hero h1 { max-width:900px; font-size:clamp(2.6rem,5vw,5rem); }
.page-hero__lead { max-width:760px; margin-top:24px; color:var(--steel-strong); font-size:1.12rem; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 350px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--text-light); }
.project-card::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(24,27,32,.10) 5%, rgba(24,27,32,.88) 72%, rgba(24,27,32,.98)); }
.project-card::after { content:""; position:absolute; width:240px; height:240px; right:-90px; bottom:-120px; z-index:2; border:1px solid rgba(217,102,39,.44); border-radius:50%; box-shadow:0 0 0 35px rgba(217,102,39,.05),0 0 0 70px rgba(217,102,39,.03); }
.project-card--large { grid-row: span 2; min-height: 718px; }
.project-card__image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.project-card:hover .project-card__image { transform:scale(1.025); }
.project-card__number { position:absolute; z-index:3; top:30px; left:32px; color:var(--accent); font-size:.84rem; font-weight:900; letter-spacing:.16em; }
.project-card__content { position:absolute; z-index:3; left:34px; right:34px; bottom:34px; }
.project-card__content span { color:var(--accent); font-size:.73rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.project-card__content h3 { margin-top:12px; font-size:clamp(1.5rem,3vw,2.55rem); }
.project-card:not(.project-card--large) .project-card__content h3 { font-size:1.55rem; }
.project-card__content p { margin-top:16px; color:var(--steel-strong); }
.social-projects { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-top:26px; padding:24px 28px; border:1px solid var(--line); border-radius:var(--radius); }
.social-projects p { color:var(--muted); }
.social-projects div { display:flex; flex-wrap:wrap; gap:16px 24px; }
.social-projects a { font-weight:800; text-decoration:none; }

.about-layout { display:grid; grid-template-columns:1fr .86fr; gap:70px; align-items:start; }
.about-copy .lead { margin-top:26px; color:var(--ink); font-size:1.28rem; font-weight:650; }
.about-copy > p:not(.eyebrow):not(.lead) { margin-top:22px; color:var(--muted); }
.about-copy blockquote { margin:40px 0 0; padding:24px 0 24px 26px; border-left:5px solid var(--accent); font-size:1.45rem; font-weight:800; line-height:1.3; }
.about-gallery { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:240px 240px; gap:14px; }
.about-gallery img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }
.about-gallery img:first-child { grid-row:1 / 3; }
.about-values { margin-top:70px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.about-values > div { padding:30px; border-top:3px solid var(--accent); background:var(--paper); box-shadow:0 18px 50px rgba(24,27,32,.08); }
.about-values span { color:var(--accent-deep); font-weight:900; }
.about-values h3 { margin-top:18px; }
.about-values p { margin-top:12px; color:var(--muted); }

.people-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.person-card { padding:30px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
.person-card__initials { width:62px; height:62px; display:grid; place-items:center; margin-bottom:28px; border-radius:50%; background:var(--ink); color:var(--accent); font-weight:900; }
.person-card p { margin:6px 0 20px; color:var(--muted); }
.person-card a { display:block; width:max-content; margin-top:6px; font-weight:700; text-decoration:none; }
.person-card a:hover { text-decoration:underline; }

.map-section { padding:0; background:var(--mist); }
.map-card { display:grid; grid-template-columns:38% 62%; min-height:470px; }
.map-card__content { color:var(--ink); display:flex; flex-direction:column; justify-content:center; padding:clamp(40px,6vw,90px); background:var(--accent); }
.map-card__content address { margin:26px 0; font-style:normal; font-size:1.05rem; }
.map-card__content a { width:max-content; font-weight:850; text-decoration:none; }
.map-card iframe { width:100%; height:100%; min-height:470px; border:0; filter:grayscale(.9) contrast(1.08); }

.site-footer { padding:70px 0 20px; background:#14171B; color:var(--steel-strong); }
.footer-grid { display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:50px; padding-bottom:50px; }
.footer-brand img { width:120px; height:104px; object-fit:contain; }
.footer-brand p { max-width:330px; margin-top:18px; }
.site-footer h2 { margin-bottom:18px; color:var(--text-light); font-size:.86rem; letter-spacing:.08em; text-transform:uppercase; }
.site-footer a { display:block; width:max-content; margin:8px 0; color:var(--steel-strong); text-decoration:none; }
.site-footer a:hover { color:var(--accent); }
.site-footer p { color:var(--steel); }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:.82rem; }
.footer-bottom a { margin:0; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width:1020px) {
  .header-bar__inner > span { display:none; }
  .header-bar__inner { justify-content:flex-end; }
  .nav-toggle { display:block; }
  .nav-menu { position:absolute; left:20px; right:20px; top:calc(100% + 8px); display:none; flex-direction:column; align-items:stretch; gap:0; padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:18px; background:var(--ink-2); box-shadow:0 30px 70px rgba(0,0,0,.45); }
  .nav-menu.is-open { display:flex; }
  .nav-menu > a:not(.button) { padding:13px 10px; }
  .nav-menu .button { margin-top:10px; }
  .hero::before { background:linear-gradient(90deg, rgba(24,27,32,.98), rgba(24,27,32,.80)), url("assets/svetsning.webp") center / cover no-repeat; }
  .hero__grid { grid-template-columns:1fr; gap:30px; padding-block:72px; }
  .hero__contact { justify-content:flex-start; }
  .hero-contact-card { width:min(100%,620px); }
  .page-hero__inner { grid-template-columns:1fr; gap:30px; }
  .page-hero__content { grid-column:1; }
  .section-heading, .competence-grid, .about-layout { grid-template-columns:1fr; gap:44px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .competence-card { max-width:760px; }
  .about-gallery { max-width:760px; }
  .about-values { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column:2; }
}

@media (max-width:720px) {
  .container { width:min(calc(100% - 28px),var(--max)); }
  .header-bar__links { width:100%; justify-content:space-between; gap:8px; font-size:.76rem; }
  .main-nav__inner { min-height:72px; }
  .brand, .brand img { width:76px; }
  .brand img { height:56px; }
  .hero { min-height:auto; }
  .hero__grid { min-height:auto; padding:58px 0 70px; }
  .hero__lead { font-size:1rem; }
  .hero__trust { grid-template-columns:1fr; gap:8px; }
  .hero__trust li { display:grid; grid-template-columns:120px 1fr; gap:10px; }
  .quick-facts__grid, .services-grid, .projects-grid, .people-grid { grid-template-columns:1fr; }
  .quick-facts__grid > div { min-height:auto; border:0; border-bottom:1px solid rgba(24,27,32,.30); }
  .quick-facts__grid > div:last-child { border-right:0; }
  .section-heading { margin-bottom:38px; }
  .service-card { min-height:260px; }
  .project-card--large { min-height:520px; grid-row:auto; }
  .project-card { min-height:390px; }
  .social-projects { align-items:flex-start; flex-direction:column; }
  .about-gallery { grid-template-columns:1fr; grid-template-rows:280px 220px 220px; }
  .about-gallery img:first-child { grid-row:auto; }
  .map-card { grid-template-columns:1fr; }
  .map-card iframe { min-height:340px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:36px; }
  .footer-brand { grid-column:1 / -1; }
  .footer-grid > div:last-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .page-hero { min-height:390px; }
  .page-hero__inner { padding:80px 0 54px; }
}

@media (max-width:460px) {
  .hero__actions .button { width:100%; }
  .footer-grid { grid-template-columns:1fr; }
}

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