:root {
  --dlight-font: "Manrope", system-ui, sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--dlight-font);
  font-weight: 300;
}

em {
  font-family: var(--dlight-font);
  font-style: normal;
  font-weight: 300;
}

.hero h1,
.manifesto h2,
.portfolio h2,
.services h2,
.process h2,
footer h2 {
  font-weight: 500;
}

.site-header nav a,
.header-cta,
.eyebrow,
.button,
.section-kicker,
.text-link,
.footer-links a,
.footer-legal,
.floating-call {
  font-weight: 500;
}

.hero {
  background-color: #161116;
  background-image: url("/media/hero-neon.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero video {
  opacity: 0;
}

.hero .hero-media {
  display: none;
}

.hero-wash {
  background: linear-gradient(90deg, #0e080eba 0%, #14091357 46%, #0d090d0d 78%),
    linear-gradient(180deg, #0d090d29 0%, transparent 55%, #0d090d73 100%);
  z-index: 1;
}

.hero-orb {
  z-index: 1;
}

/* Kompaktniji prikaz koraka, kako se fotografija ne bi nepotrebno uvećavala. */
.process {
  min-height: 620px;
}

.process-image {
  min-height: 620px;
}

.process-content {
  padding: clamp(52px, 5vw, 82px);
}

.process-content h2 {
  margin: 44px 0 38px;
}

.process li {
  padding-top: 19px;
  padding-bottom: 19px;
}

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

.category-card {
  appearance: none;
  background: #1b171c;
  color: #fff;
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  cursor: pointer;
  min-height: 510px;
  padding: 0;
  position: relative;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
}

.category-card::after {
  content: "";
  background: linear-gradient(180deg, #0b080a0d 20%, #0b080a3d 52%, #0a070bd9 100%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  transition: transform .55s ease, filter .55s ease;
}

.category-card:nth-child(3) img {
  object-position: 56% center;
}

.category-card:hover img,
.category-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.category-card:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: 4px;
}

.category-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 510px;
  padding: 30px 25px 26px;
  position: relative;
  z-index: 2;
}

.category-card__number,
.category-card__open {
  color: #ffb7dd;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 500;
}

.category-card h3 {
  letter-spacing: -.03em;
  margin: 13px 0 11px;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.04;
}

.category-card p {
  color: #ffffffad;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.category-card__open {
  align-items: center;
  gap: 10px;
  display: flex;
}

.category-card__open::after {
  content: "";
  background: currentColor;
  width: 26px;
  height: 1px;
  transition: width .25s ease;
}

.category-card:hover .category-card__open::after {
  width: 42px;
}

.gallery-dialog {
  background: #100e11;
  color: #fff;
  border: 1px solid #ffffff21;
  border-radius: 4px;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 32px 110px #000c;
}

.gallery-dialog::backdrop {
  background: #09060be8;
  backdrop-filter: blur(8px);
}

.gallery-dialog__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 32px);
}

.gallery-dialog__header {
  border-bottom: 1px solid #ffffff21;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
  padding: 24px 28px 22px;
}

.gallery-dialog__eyebrow {
  color: var(--pink-bright);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 0 0 7px;
  font-size: 9px;
  font-weight: 500;
}

.gallery-dialog h2 {
  letter-spacing: -.035em;
  margin: 0;
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

.gallery-dialog__close,
.gallery-dialog__arrow {
  appearance: none;
  background: #ffffff0c;
  color: #fff;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-dialog__close {
  width: 44px;
  height: 44px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.gallery-dialog__close:hover,
.gallery-dialog__arrow:hover {
  background: var(--pink);
  color: #160c13;
  border-color: var(--pink);
}

.gallery-dialog__stage {
  background: #090809;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.gallery-dialog__stage img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: min(62dvh, 690px);
}

.gallery-dialog__arrow {
  width: 46px;
  height: 46px;
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.gallery-dialog__arrow svg {
  width: 18px;
  height: 18px;
}

.gallery-dialog__arrow--previous {
  left: 18px;
}

.gallery-dialog__arrow--next {
  right: 18px;
}

.gallery-dialog__footer {
  border-top: 1px solid #ffffff21;
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 20px;
}

.gallery-dialog__thumbs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-dialog__thumb {
  appearance: none;
  background: #1e1a1f;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  width: 70px;
  height: 52px;
  padding: 0;
  flex: 0 0 auto;
  overflow: hidden;
  opacity: .55;
}

.gallery-dialog__thumb.is-active {
  border-color: var(--pink-bright);
  opacity: 1;
}

.gallery-dialog__thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.gallery-dialog__counter {
  color: #ffffff8c;
  letter-spacing: .12em;
  font-size: 10px;
}

.contact-map {
  background: var(--paper);
  padding: clamp(90px, 10vw, 150px) clamp(22px, 6vw, 96px);
}

.contact-map__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
  padding-top: 66px;
  display: grid;
}

.contact-map__content h2 {
  letter-spacing: -.052em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: .98;
}

.contact-map__content h2 span {
  color: #bf2a80;
  font-weight: 300;
}

.contact-map__content > p {
  color: #686166;
  max-width: 600px;
  margin: 30px 0 34px;
  font-size: 17px;
  line-height: 1.7;
}

.contact-map__actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.contact-map__button {
  text-transform: uppercase;
  letter-spacing: .09em;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 25px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
}

.contact-map__button--whatsapp {
  background: #171116;
  color: #fff;
}

.contact-map__button--phone {
  border: 1px solid #1711164f;
}

.contact-map__frame {
  background: #151116;
  box-shadow: 28px 30px 0 #ef5caf;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.contact-map__map {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 480px;
  display: block;
  filter: grayscale(.18) saturate(.9) contrast(1.02);
}

.contact-map__pin {
  background: #ef5caf;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  width: 30px;
  height: 30px;
  position: absolute;
  z-index: 2;
  top: 60%;
  left: 53.4%;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 7px 18px #0006;
}

.contact-map__pin::after {
  content: "";
  background: #151116;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 6px;
  left: 6px;
}

.contact-map__open {
  background: #ef5caf;
  color: #151116;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 100px;
  padding: 13px 17px;
  font-size: 10px;
  font-weight: 600;
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  box-shadow: 0 8px 24px #0003;
}

.contact-map__location {
  background: #151116;
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 17px;
  font-size: 9px;
  position: absolute;
  bottom: 14px;
  left: 14px;
}

.contact-map__attribution {
  background: #fffffff0;
  color: #403b3e;
  padding: 4px 7px;
  font-size: 8px;
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 8px;
}

@media (width <= 1050px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-card__content {
    min-height: 480px;
  }
}

@media (width <= 760px) {
  .contact-map__grid {
    grid-template-columns: 1fr;
  }

  .contact-map__frame,
  .contact-map__map {
    min-height: 390px;
    height: 390px;
  }

  .contact-map__frame {
    box-shadow: 14px 16px 0 #ef5caf;
  }
}

@media (width <= 640px) {
  .hero .hero-media {
    display: none;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-wash {
    background: linear-gradient(180deg, #0d090d7a 0%, #14091352 34%, #0e080ecf 100%);
  }

  .process {
    min-height: 0;
  }

  .process-image {
    min-height: 420px;
  }

  .process-content {
    padding: 62px 20px 72px;
  }

  .process-content h2 {
    margin: 42px 0 44px;
  }

  .process li {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-card,
  .category-card__content {
    min-height: 430px;
  }

  .category-card__content {
    padding: 26px 22px;
  }

  .gallery-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .gallery-dialog__shell {
    max-height: calc(100dvh - 16px);
  }

  .gallery-dialog__header {
    gap: 16px;
    padding: 18px 18px 16px;
  }

  .gallery-dialog__close {
    width: 40px;
    height: 40px;
  }

  .gallery-dialog__stage img {
    height: 57dvh;
  }

  .gallery-dialog__arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-dialog__arrow--previous {
    left: 10px;
  }

  .gallery-dialog__arrow--next {
    right: 10px;
  }

  .gallery-dialog__footer {
    padding: 10px 12px;
  }

  .gallery-dialog__thumb {
    width: 58px;
    height: 44px;
  }

  .contact-map {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-map__grid {
    gap: 48px;
    padding-top: 44px;
  }

  .contact-map__content h2 {
    font-size: 45px;
  }

  .contact-map__content > p {
    font-size: 15px;
  }

  .contact-map__button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .category-card img,
  .category-card__open::after {
    transition: none;
  }
}

/* Blago ukosen hero naslov, bez gubitka citljivosti. */
.hero h1 {
  transform: skewX(-4deg);
  transform-origin: left center;
}

@media (max-width: 640px) {
  .hero h1 {
    transform: skewX(-3deg);
  }
}

/* Citljiva tipografija: slova ostaju jasno razdvojena na svim ekranima. */
.hero h1,
.manifesto h2,
.portfolio h2,
.services h2,
.process h2,
.contact-map__content h2,
.gallery-dialog h2,
footer h2 {
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.hero h1 em,
.manifesto h2 em,
.portfolio h2 em,
.services h2 em,
.process h2 em,
.contact-map__content h2 span,
footer h2 em {
  letter-spacing: 0;
}

.category-card h3,
.service-list h3 {
  letter-spacing: 0;
}

.footer-phone {
  letter-spacing: 0;
}

.footer-legal a {
  border-bottom: 1px solid currentColor;
}

/* Sekcije ispod prvog ekrana se iscrtavaju tek kada im se korisnik priblizi. */
.manifesto,
.portfolio,
.services,
.process,
.contact-map,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(44px, 12.5vw, 54px);
    line-height: 0.96;
    letter-spacing: 0;
  }

  .hero h1 em {
    font-size: 0.9em;
    line-height: 1;
    letter-spacing: 0;
  }

  .manifesto h2,
  .portfolio h2,
  .services h2,
  .process h2,
  .contact-map__content h2,
  footer h2 {
    font-size: clamp(36px, 9.8vw, 42px);
    line-height: 1.07;
    letter-spacing: 0;
    font-weight: 450;
  }

  .manifesto h2 em,
  .portfolio h2 em,
  .services h2 em,
  .process h2 em,
  .contact-map__content h2 span,
  footer h2 em,
  .category-card h3,
  .service-list h3 {
    letter-spacing: 0;
  }

  /* Blur i filteri su najskuplji na slabijim telefonima. */
  .hero-orb {
    display: none;
  }

}
