* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #38a4fe;
  --secondary-color: #ffca02;
  --primary-font-color: #474747;
  --dark-background-color: #292c33;
  --light-background-color: #f2f9ff;
  --btn-hover-color:#ffe102;

  --font-family: "Open Sans", sans-serif;

  --f-size-XS: 1rem;
  --f-size-S: 1.2rem;
  --f-size-M: 1.5rem;
  --f-size-L: 2rem;
  --f-size-XL: 2.5rem;
}
body {
  color: var(--primary-font-color);
  font-family: var(--font-family);
  background-color: var(--light-background-color);
}
section {
  overflow: hidden;
}
li {
  list-style-type: none;
}
a {
  text-decoration: none;
  font-size: var(--f-size-S);
  color: var(--primary-font-color);
}
p {
  margin-bottom: 1rem;
  font-size: var(--f-size-S);
  line-height: 1.5;
}
h2 {
  font-size: var(--f-size-L);
  margin: 2rem 0;
}
h3 {
  margin: 1rem 0;
  font-size: var(--f-size-S);
}

.container {
  max-width: 100rem;
  width: 80%;
  margin: 0 auto;
  height: 50rem;
}

.flex {
  display: flex;
}
.grid {
  display: grid;
}
.column {
  flex-direction: column;
}
.center {
  align-items: center;
  justify-content: center;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--secondary-color);
  font-weight: bold;
  display: block;
  min-width: fit-content;
  width: 15rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
  cursor: pointer;
  color: #303030;
}
.btn:hover, .btn:active{
  background-color: var(--btn-hover-color);

}
.show {
  display: flex;
}
.hidden{
  display: none;
}
/*-----------------MAX-WIDTH 1440px-----------*/
@media screen and (max-width: 1440px) {
  p,
  a {
    font-size: var(--f-size-XS);
  }
}
/*-----------------MAX-WIDTH 1280px-----------*/
@media screen and (max-width: 1024px) {
  h2 {
    font-size: var(--f-size-M);
  }
  a,
  p {
    font-size: 0.9rem;
  }
}
/*-----------------MAX-WIDTH 480px-----------*/
@media screen and (max-width: 480px) {
  .container {
    width: 90%;
  }
}
/*-----------------------------TOP-BAR-------------------------------------------*/
#top {
  width: 100%;
  height: 3rem;
  position: fixed;
  z-index: 50;
  top: 0;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0 2rem;
}
#top ul {
  height: 100%;
  align-items: center;
  justify-content: space-between;
  width: 20rem;
  margin: 0 auto;
}

#top a {
  color: var(--btn-font-color);
  text-decoration: none;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.444);
}
#top p {
  font-size: 0.6rem;
  display: inline;
  margin: 0;
  display: none;
}
#top i {
  color: var(--btn-font-color);
  font-size: var(--f-size-S);
}

#top i:hover {
  scale: 1.5;
}

/* -------- mobile -----------------------*/
@media screen and (max-width: 1280px) {
  #top {
    height: 2.5rem;
  }
  #top i {
    font-size: var(--f-size-XS);
  }
}
@media screen and (max-width: 480px) {
  h2 {
    font-size: var(--f-size-S);
    line-height: 1.5;
  }
  #top ul{
    width: 100%;
  }
}
/*-------------------------------------------------------------*/
header {
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
  position: fixed;
  top: 3rem;
  left: 0;
  width: 100%;
  z-index: 49;
}
nav {
  width: 80%;
  max-width: 100rem;
  margin: 0 auto;
}
nav ul {
  height: fit-content;
}

nav li {
  padding: 0.5rem;
}
nav li:not(:last-child) {
  margin-right: 1rem;
}

nav li a {
  cursor: pointer;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}
.menu-btn a:hover {
  color: #ffca02;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.7);
}

/*-----------------MAX-WIDTH 1280px-----------*/
@media screen and (max-width: 1280px) {
  header {
    top: 2.5rem;
  }
}
@media screen and (max-width: 800px){
  nav li:not(:last-child){
    margin-right: 0;
  }
}
/*-----------------MAX-WIDTH 480px-----------*/
@media screen and (max-width: 480px) {
  nav{
    width: 90%;
  }
  nav li{
    padding: 0.35rem;
  }
  nav li a{
    font-size: .85rem;
  }
}
/*-------------------------------------------*/
footer {
  background-color: var(--dark-background-color);
  padding: 3rem 0;
}
footer .container {
  height: 10rem;
  width: 70%;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  color: white;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 0.5rem;
}
footer a {
  color: white;
}
footer p {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  display: inline;
}
footer img {
  height: 5rem;
}
footer .drustvene-mreze {
  align-items: center;
  gap: 1rem;
}
footer .drustvene-mreze i {
  font-size: 2.5rem;
}
/*------------------MAX-WIDTH 1280------------------*/
@media screen and (max-width: 1280px) {
  footer .container {
    width: 80%;
    height: 8rem;
  }
  footer p {
    font-size: 0.6rem;
  }
  footer h4 {
    font-size: 0.7rem;
  }
  footer img {
    height: 4rem;
  }
}
/*------------------MAX-WIDTH 1280------------------*/
@media screen and (max-width: 1024px) {
  footer .container {
    grid-template-columns: 1fr 1fr;
    height: fit-content;
  }
  footer p {
    font-size: 0.9rem;
  }
  footer h4 {
    font-size: var(--f-size-XS);
  }


  footer .info i {
    margin-right: 1rem;
  }

  footer .drustvene-mreze i {
    font-size: 2rem;
  }
  footer img {
    height: 3rem;
  }
}

/*------------------MAX-WIDTH 480------------------*/
@media screen and (max-width: 480px) {
  footer .container {
    grid-template-columns: 1fr;
    height: fit-content;
  }
footer a, footer p{
  font-size: .7rem;
}

}

/*--------------------------------------------------*/
#usluge {
  background-image: url(../images/usluge-page.webp);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: auto 100%;
}
#usluge .container {
  height: 33rem;
  align-items: center;
}
#usluge .text {
  background-color: #f6fbff88;
  padding: 1rem;
}
#usluge span {
  font-size: 2rem;
  color: #38a4fe;
  font-weight: bold;
}
#usluge h1 {
  font-size: 4rem;
  color: var(--secondary-color);
}
#usluge h2 {
  font-size: var(--f-size-S);
  margin: 0.5rem 0 0 0;
  font-weight: normal;
  letter-spacing: 5px;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
}
@media screen and (max-width: 1024px) {
  #usluge br {
    display: none;
  }
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
  #usluge .text {
    background-color: #f6fbffd0;
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
}

/*-----------------------------------------------*/
#misija {
  background-color: var(--primary-color);
  padding: 2rem 0;
}
#misija .container {
  height: fit-content;
  color: white;
  gap: 2rem;
}
#misija h2 {
  width: 40%;
  font-size: var(--f-size-XL);
}
#misija .text {
  width: 60%;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  #misija .container {
    gap: 3rem;
  }
}
@media screen and (max-width: 1024px) {
  #misija {
    padding: 2rem 0;
  }
  #misija .container {
    flex-direction: column;
    gap: 1rem;
  }
  #misija h2 {
    font-size: var(--f-size-M);
    margin: 1rem 0;
  }
  #misija h2,
  #misija .text {
    width: 100%;
  }
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
}

/*--------------------------------------------------------------------*/
.usluga1 .container {
  height: 45rem;
}
.usluga1 .image {
  width: 50%;
  height: 100%;
}
.usluga1 h2,
.usluga2 h2 {
  text-transform: uppercase;
  font-size: var(--f-size-S);
  margin: 0 0 1rem 0;
}
.usluga1 .text {
  width: 50%;
  height: fit-content;
  align-items: start;
  justify-content: center;
  background-color: white;
  min-height: 25rem;

  padding: 2rem 3rem;
  box-shadow: 2px -2px 6px rgba(0, 0, 0, 0.3);
}

.usluga1 .square {
  background-color: #38a4fe;
  width: 55rem;
  height: 25rem;
  top: 15%;
  left: -30%;
}
.usluga1 .number {
  width: 10rem;
  height: 10rem;
  background-color: var(--secondary-color);
  z-index: 5;
  bottom: 15%;
  left: 0;
}
.usluga1 span,
.usluga2 span {
  color: white;
  font-size: 5rem;
  font-weight: bold;
}
.usluga1 img {
  width: 25rem;
  height: 25rem;
  display: block;
  object-fit: cover;
  object-position: left;
  z-index: 5;
  border: 10px solid white;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}

/*------------------------------------------------------------------*/
.usluga2 .container {
  height: 45rem;
}
.usluga2 .image {
  width: 50%;
  height: 100%;
  order: 2;
}
.usluga2 .text {
  width: 50%;
  min-height: 25rem;
  height: fit-content;
  align-items: start;
  justify-content: center;
  background-color: white;
  padding: 2rem 3rem;
  order: 1;
  z-index: 5;
  box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.3);
}

.usluga2 .square {
  background-color: #38a4fe;
  width: 55rem;
  height: 25rem;
  top: 15%;
  right: -30%;
}
.usluga2 .number {
  width: 10rem;
  height: 10rem;
  background-color: var(--secondary-color);
  z-index: 5;
  bottom: 15%;
  right: 0;
}

.usluga2 img {
  width: 25rem;
  height: 25rem;
  display: block;
  object-fit: cover;
  object-position: left;
  z-index: 5;
  border: 10px solid white;
  box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.5);
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  .usluga2 img,
  .usluga1 img {
    width: 23rem;
    height: 23rem;
  }
  .usluga2 .text,
  .usluga1n.text {
    padding: 2rem;
  }
}
@media screen and (max-width: 1024px) {
  .usluga2 .container,
  .usluga1 .container {
    height: fit-content;
    flex-direction: column;
    padding: 3rem 0;
    position: relative;
    gap: 2rem;
  }
  .usluga2 .square,
  .usluga1 .square {
    z-index: -1;
  }
  .usluga2 .number,
  .usluga1 .number {
    bottom: 10%;
    left: 10%;
  }
  .usluga2 .image {
    order: 1;
  }
  .usluga2 .image,
  .usluga2 .text,
  .usluga1 .image,
  .usluga1 .text {
    width: 100%;
    min-height: fit-content;
  }
  .usluga2 .image img,
  .usluga2 .text,
  .usluga1 .image img,
  .usluga1 .text {
    position: static;
  }
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
  .usluga2 .number,
  .usluga1 .number {
    width: 9rem;
    height: 9rem;
    left: 5%;
  }
  .usluga2 img,
  .usluga1 img {
    width: 21rem;
    height: 21rem;
  }
}
/*------------------------MAX-WIDTH 600---------------*/

@media screen and (max-width: 600px) {
  .usluga2 .number,
  .usluga1 .number {
    width: 8rem;
    height: 8rem;
    left: 0;
  }
  .usluga2 img,
  .usluga1 img {
    width: 21rem;
    height: 21rem;
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  #misija h2 {
    font-size: var(--f-size-S);
  }
  .usluga2 img,
  .usluga1 img {
    width: 18rem;
    height: 18rem;
  }
  .usluga2 .number,
  .usluga1 .number {
    width: 6rem;
    height: 6rem;
    left: 0;
  }
  .usluga1 span,
  .usluga2 span {
    font-size: 3rem;
  }
}

/*----------------------------------------------------------*/
#pitanja {
  background-color: var(--primary-color);
  padding: 5rem 0;
}
#pitanja .container {
  height: fit-content;
}
#pitanja h2 {
  width: 80%;
  text-align: center;
  color: white;
}
.questions {
  width: 60%;
  gap: 1rem;
}
.questions li {
  padding: 1rem 2rem 1rem 1rem;
  border-bottom: 2px solid white;
  position: relative;
}
.questions li a {
  color: white;
  font-size: var(--f-size-M);
}
.questions li i {
  font-size: 1.2rem;
  position: absolute;
  right: 1rem;
  color: white;
}
.questions p {
  padding: 1rem 0;
  font-style: italic;
  color: white;
  font-size: var(--f-size-S);
  margin-top: 1rem;
}
/*------------------------MAX-WIDTH 1024---------------*/

@media screen and (max-width: 1024px) {
  .questions {
    width: 100%;
  }
  .questions li a {
    font-size: var(--f-size-S);
  }
  #pitanja h2 {
    width: 100%;
  }
  .questions p {
    font-size: var(--f-size-XS);
  }
}

/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  .questions li a {
    font-size: var(--f-size-XS);
  }
  .questions li i {
    font-size: var(--f-size-XS);
  }
}
