/* Metro M.K. d.o.o. — static site styles
   Palette and font taken from the previous metro.hr theme
   (red #cf2727 / #ab0101, greys #212121–#c2c2c2, Open Sans). */

:root {
  --navy: #212121;
  --navy-2: #363636;
  --blue: #cf2727;
  --blue-dark: #ab0101;
  --blue-light: #fbeaea;
  --accent: #cf2727;
  --accent-on-dark: #f05a5a;
  --text: #363636;
  --muted: #545454;
  --line: #e4e4e4;
  --bg-soft: #f5f5f5;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 33, 33, 0.1);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid background, no backdrop-filter: a filter would become the
     containing block for the fixed mobile sidebar inside the header. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
}

/* Mobile-only pieces, hidden on desktop */
.nav-open,
.nav-panel-head,
.nav-panel-contact,
.nav-overlay {
  display: none;
}

.nav-open,
.nav-close {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--navy);
  border-radius: 10px;
}

.nav-open {
  width: 44px;
  height: 44px;
  place-items: center;
}

.nav-open:hover,
.nav-close:hover {
  background: var(--bg-soft);
}

.nav-open span,
.nav-open span::before,
.nav-open span::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  content: "";
}

.nav-open span::before {
  position: absolute;
  top: -7px;
}

.nav-open span::after {
  position: absolute;
  top: 7px;
}

.nav-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.nav-close svg {
  width: 24px;
  height: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 12px;
}

.lang-switch span {
  background: var(--navy);
  color: var(--white);
}

.lang-switch a {
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(207, 39, 39, 0.4), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 110px 0 120px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--accent-on-dark);
}

.highlight-box .check-list li::before {
  background: var(--accent-on-dark);
}

.hero h1 {
  color: var(--white);
  max-width: 820px;
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  gap: 24px;
  margin-top: 64px;
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1.1;
}

.stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.highlight-box {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.highlight-box h3 {
  color: var(--white);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.5 14.2L4.3 10l1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0 0;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ---------- Services detail ---------- */

.service-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  font-size: 1.3rem;
}

.service-row ul {
  margin: 0;
  padding-left: 20px;
}

.service-row li {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 8px;
}

/* ---------- References ---------- */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
}

.ref-grid li span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.ref-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.ref-note {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 28px;
}

.ref-note h3 {
  color: var(--white);
}

.ref-note p {
  margin: 0;
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 28px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card h3 {
  margin-bottom: 4px;
}

.contact-card .role {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.95rem;
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .logo {
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-tagline {
  margin: 12px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .two-col,
  .service-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ----- Off-canvas sidebar ----- */

  .nav-open {
    display: grid;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-is-open .main-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 12px 0 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }

  .nav-panel-head img {
    height: 40px;
    width: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .main-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    border-left: 3px solid transparent;
  }

  .main-nav li a::after {
    content: "›";
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
  }

  .main-nav li a:hover,
  .main-nav li a:focus-visible {
    background: var(--bg-soft);
    border-left-color: var(--accent);
    color: var(--accent);
  }

  .main-nav .lang-switch {
    align-self: flex-start;
    margin: 8px 24px 0;
  }

  .nav-panel-contact {
    display: block;
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 0.92rem;
    color: var(--muted);
  }

  .nav-panel-contact strong {
    display: block;
    color: var(--navy);
    margin-bottom: 6px;
  }

  .nav-panel-contact a {
    display: block;
    font-weight: 600;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-is-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
  }

  body.nav-is-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .nav-overlay {
    transition: none !important;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat strong {
    font-size: 1.6rem;
  }
}
