@font-face {
  font-family: "Gotham";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(/fonts/gotham-book.woff2) format("woff2");
}
@font-face {
  font-family: "Gotham";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(/fonts/gotham-medium.woff2) format("woff2");
}
@font-face {
  font-family: "Gotham";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(/fonts/gotham-bold.woff2) format("woff2");
}

:root {
  --plava: #0a2342;
  --narandzasta: #f79a1f;
  --narandzasta-pritisak: #e88a0c;
  --bela: #ffffff;
  --sporedno: #c3cedc;
  --linija: rgba(255, 255, 255, 0.16);
  --strana: 24px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--plava);
  color: var(--bela);
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.pozadina {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* računar: krov počinje desno od celine sa adresom (720 px + odmak), da nikad ne ide ispod teksta */
.krov {
  position: absolute;
  left: calc(max(0px, (100vw - 1264px) / 2) + 800px);
  bottom: 8vh;
  width: 760px;
  height: auto;
  fill: var(--bela);
  opacity: 0.045;
  pointer-events: none;
}

.okvir {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1264px;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) max(var(--strana), env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(var(--strana), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

.logo {
  display: block;
  width: clamp(180px, 22vw, 260px);
  height: auto;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
  max-width: 720px;
}

.crta {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--narandzasta);
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.uvod {
  margin: 20px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--sporedno);
  max-width: 34ch;
}

.radnja {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 20px;
  padding: 24px;
  border: 1px solid var(--linija);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.ikonica {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--narandzasta);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h2 {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--sporedno);
}

.adresa {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.3;
}

.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--narandzasta);
  color: var(--plava);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.dugme:hover,
.dugme:active {
  background: var(--narandzasta-pritisak);
}

.dugme:focus-visible {
  outline: 3px solid var(--bela);
  outline-offset: 3px;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: var(--sporedno);
}

/* tablet i telefon: krov je na dnu, a podnožje drži mesto za njega */
@media (max-width: 1279px) {
  footer {
    padding-top: 24vw;
  }

  .krov {
    width: 90vw;
    left: 50%;
    bottom: -26vw;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  :root {
    --strana: 20px;
  }

  main {
    padding: 48px 0 40px;
  }

  .radnja {
    grid-template-columns: 20px 1fr;
    grid-template-areas:
      "ikonica natpis"
      "adresa adresa"
      "dugme dugme";
    gap: 0 10px;
    padding: 20px;
  }

  .ikonica {
    grid-area: ikonica;
    width: 20px;
    height: 20px;
  }

  .radnja-tekst {
    display: contents;
  }

  h2 {
    grid-area: natpis;
  }

  .adresa {
    grid-area: adresa;
    margin-top: 8px;
  }

  .dugme {
    grid-area: dugme;
    width: 100%;
    margin-top: 20px;
  }

  footer {
    padding-top: 40vw;
  }

  .krov {
    width: 150vw;
    bottom: -42vw;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: ulaz 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  main > :nth-child(2) {
    animation-delay: 0.06s;
  }
  main > :nth-child(3) {
    animation-delay: 0.12s;
  }
  main > :nth-child(4) {
    animation-delay: 0.2s;
  }
}

@keyframes ulaz {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
