* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #0b2038;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100% - 36px, 940px);
  margin: auto;
}


/* HEADER */

.header {
  padding: 32px 0 8px;
}

.logo {
  display: block;
  width: 280px;
  max-width: 72%;
  height: auto;
}


/* HERO */

.hero {
  text-align: center;
  padding: 64px 0 54px;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid #dce9e5;
  background: #f6faf9;
  border-radius: 999px;
  color: #637381;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.pill span {
  color: #12906e;
}

.hero h1 {
  margin: 27px 0 0;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -3px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: #128c6b;
}

.lead {
  max-width: 610px;
  margin: 27px auto 31px;
  color: #647283;
  font-size: 18px;
  line-height: 1.6;
}


/* GLAVNI CTA */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 290px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 13px;
  background: linear-gradient(110deg, #087d62, #16a97d);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 13px 30px rgba(11, 139, 105, .2);
  transition: transform .22s ease, box-shadow .22s ease;
}

.cta span {
  font-size: 25px;
  font-weight: 400;
  transition: transform .22s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 35px rgba(11, 139, 105, .28);
}

.cta:hover span {
  transform: translateX(4px);
}

.micro {
  margin: 16px 0 0;
  color: #71808d;
  font-size: 13px;
}


/* USLUGE */

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

.card {
  padding: 28px;
  border: 1px solid #e4ece9;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fbfa);
  box-shadow: 0 9px 28px rgba(16, 52, 59, .07);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(16, 52, 59, .11);
  border-color: #cfe4dd;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.4px;
}

.card p {
  margin: 19px 0 0;
  color: #687786;
  line-height: 1.55;
  font-size: 15px;
}


/* IKONE */

.svg-icon,
.icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: #eaf7f3;
  color: #0c946e;
}

.svg-icon {
  padding: 12px;
  fill: none;
  stroke: #0c946e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 12px;
}

.bars i {
  display: block;
  width: 7px;
  border-radius: 2px 2px 0 0;
  background: #0c946e;
}

.bars i:nth-child(1) {
  height: 13px;
}

.bars i:nth-child(2) {
  height: 22px;
}

.bars i:nth-child(3) {
  height: 31px;
}


/* FOOTER */

.footer {
  margin-top: 2px;
  min-height: 138px;
  border-top: 1px solid #e5eeeb;
  background: linear-gradient(180deg, #f8fcfb, #eef8f5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 18px;
}


/* GLAVNI EMAIL U FOOTERU */

.footer > a {
  color: #0b2038;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  transition: color .2s ease;
}

.footer > a:hover {
  color: #0c946e;
}

.footer > span {
  text-transform: uppercase;
  color: #778592;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
}


/* CJENIK + PRIGOVORI */

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.footer-links button,
.footer-links .footer-link {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: #7f8b93;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links button:hover,
.footer-links .footer-link:hover {
  color: #0c946e;
}

.footer-links span {
  color: #b5bdc2;
  font-size: 10px;
}


/* PRAVNI PODACI */

.legal-info {
  margin-top: 3px;
  padding: 0 15px;
  font-size: 9px;
  font-weight: 400;
  color: #a5afb5;
  text-align: center;
  line-height: 1.5;
  letter-spacing: .2px;
}


/* GLASS MODAL */

.glass-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 25, 38, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.glass-modal.active {
  opacity: 1;
  visibility: visible;
}

.glass-box {
  position: relative;
  width: min(100%, 520px);
  padding: 38px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(11, 32, 56, .18);
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
  font-family: inherit;
}

.glass-modal.active .glass-box {
  transform: translateY(0) scale(1);
}

.glass-box h2 {
  margin: 0 0 16px;
  color: #0b2038;
  font-size: 27px;
  letter-spacing: -.6px;
}

.glass-box p {
  margin: 0;
  color: #637381;
  font-size: 15px;
  line-height: 1.7;
}

.glass-box a {
  color: #0c946e;
  font-weight: 600;
  text-decoration: none;
}

.glass-box a:hover {
  text-decoration: underline;
}


/* ZATVARANJE MODALA */

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 32, 56, .06);
  color: #637381;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition:
    background .2s ease,
    color .2s ease;
}

.modal-close:hover {
  background: rgba(12, 148, 110, .1);
  color: #0c946e;
}


/* ANIMACIJE */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .65s ease,
    transform .65s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: .08s;
}

.delay-2 {
  transition-delay: .16s;
}

.delay-3 {
  transition-delay: .24s;
}

.delay-4 {
  transition-delay: .32s;
}


/* TABLET / MOBITEL */

@media (max-width: 650px) {

  main {
    width: min(100% - 30px, 500px);
  }

  .header {
    padding: 25px 0 0;
  }

  .logo {
    width: 235px;
  }

  .hero {
    padding: 47px 0 42px;
  }

  .pill {
    font-size: 8px;
    letter-spacing: 1.4px;
    gap: 7px;
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
    margin-top: 23px;
  }

  .lead {
    font-size: 16px;
    max-width: 355px;
    margin: 22px auto 27px;
  }

  .cta {
    width: 100%;
    min-width: 0;
    max-width: 350px;
  }

  .services {
    grid-template-columns: repeat(4, 155px);
    gap: 11px;
    padding-bottom: 28px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-left: 1px;
    padding-right: 1px;
    -webkit-overflow-scrolling: touch;
  }

  .services .card {
    scroll-snap-align: start;
  }

  .card {
    padding: 20px 16px;
  }

  .card-top {
    gap: 12px;
    align-items: center;
  }

  .card h2 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
    margin-top: 15px;
  }

  .svg-icon,
  .icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .svg-icon {
    padding: 10px;
  }

  .bars {
    padding: 10px;
  }

  .footer {
    min-height: 118px;
    padding: 18px;
  }

  .footer > a {
    font-size: 19px;
  }

  .glass-box {
    padding: 32px 25px;
    border-radius: 18px;
  }

  .glass-box h2 {
    font-size: 24px;
  }
}


/* MANJI MOBITELI */

@media (max-width: 440px) {

  .card {
    min-height: 190px;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .card p {
    font-size: 12.5px;
  }

  .hero h1 {
    font-size: 39px;
  }
}


@media (max-width: 350px) {

  .card {
    min-height: 0;
  }

  .card-top {
    flex-direction: row;
  }

  .hero h1 {
    font-size: 35px;
  }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .cta,
  .cta span {
    transition: none;
  }
}