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

:root {
  --primary-color: rgb(237, 185, 43);
  --primary-color-half-opacity: rgba(237, 185, 43, 0.5);
  --secondary-color: rgba(237, 185, 43, 0.2);
  --primary-background-color: rgba(1, 0, 0, 0.74);
  --primary-font-color: rgb(230, 230, 230);
  --container-wide: 1400px;
  --container-normal: 1100px;
  --container-small: 1000px;
  --container-x-small: 800px;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--primary-background-color);
  color: var(--primary-font-color);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Utility Classes */

.active-link {
  background-color: var(--primary-color-half-opacity);
}

.bg-primary {
  background-color: var(--primary-color-half-opacity);
  padding: 0 0.5rem;
}

.section-title {
  font-size: 3rem;
  text-transform: uppercase;
  margin-top: 1rem;
}

.section-description {
  font-size: 1.5rem;
}

.db-button {
  background-color: var(--primary-color-half-opacity);
  color: var(--primary-font-color);
  padding: 0.5rem 0.5rem;
  font-size: 1.5rem;
  border-radius: 5px;
  border: none;
}

.db-button:hover {
  opacity: 0.7;
}

.circle-highlight {
  position: relative;
  padding: 0.2em 1em 0.8em 0.6em;
}

.circle-highlight:before {
  top: -0.3em;
  left: -0.1em;
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid red;
  content: "";
  border-radius: 100px 50px 150px;
  transform: rotate(-4deg);
}

.form-group {
  padding: 0.5rem;
}

.input-field {
  position: relative;
}

.input-field input {
  border: none;
  outline: none;
  height: 3rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.2rem;
  padding: 1rem 0 0 1rem;
}

.input-field textarea {
  border: none;
  outline: none;
  height: 200px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 1.5rem 0 0 1rem;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  opacity: 0;
}

.input-field label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  pointer-events: none;
  transition: transform 200ms;
  transform-origin: left;
  color: black;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label,
.input-field textarea:focus + label,
.input-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-50%) scale(0.7);
}

/* Container */

.container {
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-small {
  max-width: var(--container-small);
}

.container-x-small {
  max-width: var(--container-x-small);
}

.container-wide {
  max-width: var(--container-wide);
}

/* Logo text */

.logo-part-1 {
  font-size: 2.5rem;
}

.logo-part-2 {
  font-size: 2rem;
}

.logo-text-second-row {
  transform: translateX(15rem);
}
/* Header */
.header {
  margin: 1rem auto;
}

.header__container-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo-photo {
  width: 140px;
}

.header__logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__logo-text,
.header__logo-text a {
  font-family: "Coldiac Free", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
}

.header__nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__ul-nav a {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  font-weight: 400;
}

.header__ul-nav a:hover {
  background-color: var(--primary-color-half-opacity);
}

/* Hero */

.hero {
  margin-top: 2.5rem;
  display: flex;
  height: 600px;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero__background {
  position: absolute;
  height: 100%;
  width: 100%;
  background: #000 url("../images/hero-back.png") center center/cover no-repeat;
  filter: blur(3px);
  z-index: -10;
}

.hero__h2 {
  font-size: 3.5rem;
  line-height: 1.8;
  font-weight: normal;
}

/* Usluge */
.usluge {
  padding: 2rem 2rem;
  margin-top: 1.5rem;
}

.usluge__container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100%;
}

.usluge__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
}

.usluge__title {
  margin-bottom: 3rem;
}

.usluge__description {
  margin: 0.5rem auto 2rem;
  width: 100%;
}

.usluge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.usluge__grid-column {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-around;
}

.usluge__grid-item {
  display: flex;
  align-items: start;
  justify-content: start;
  text-align: right;
  gap: 1rem;
}

.usluge__grid-column.usluge__grid-column-right {
  align-items: start;
}

.usluge__grid-column-center {
  flex-direction: row;
  justify-content: center;
}

.usluge__grid-column-center img {
  border-radius: 10px;
}

.usluge__grid-item-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--primary-color);
}

.usluge__grid-column-right .usluge__grid-item {
  flex-direction: row-reverse;
  text-align: left;
}

.usluge__grid-item-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.usluge__bottom_border {
  margin-top: 3rem;
  border: 1px solid var(--primary-color);
  width: 60%;
}

/* HOME Gallery */

.gallery-home {
  margin-top: 1rem;
}

.gallery-home__container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-home__title {
  line-height: normal;
  margin-bottom: 1.5rem;
}

.gallery-home__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-home__item {
  border-radius: 20px;
}

.gallery-home__item img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-home__item:hover {
  opacity: 0.8;
}

.gallery-home__see-more .db-button {
  display: inline-block;
  width: 200px;
  padding: 1rem 0.5rem;
}

/* Gallery */

.gallery {
  margin-top: 4rem;
}

.gallery__container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery__item {
  border-radius: 20px;
}

.gallery__item img {
  border-radius: 20px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery__item:hover {
  opacity: 0.8;
}

.gallery__item:nth-of-type(1),
.gallery__item:nth-of-type(19) {
  grid-column: span 3;
}

.gallery__item:nth-of-type(5),
.gallery__item:nth-of-type(24),
.gallery__item:nth-of-type(38) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item:nth-of-type(32) {
  grid-column: span 2;
}

.gallery__item:nth-of-type(5) img,
.gallery__item:nth-of-type(18) img,
.gallery__item:nth-of-type(8) img,
.gallery__item:nth-of-type(24) img,
.gallery__item:nth-of-type(26) img,
.gallery__item:nth-of-type(38) img,
.gallery__item:nth-of-type(34) img {
  height: 100%;
  max-height: 640px;
}

.gallery__item:nth-of-type(8),
.gallery__item:nth-of-type(18),
.gallery__item:nth-of-type(26),
.gallery__item:nth-of-type(34) {
  grid-row: span 2;
}

/* Contact */

.kontakt-hero {
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
}

.kontakt-hero__container {
  text-align: left;
  padding-left: 1.5rem;
  display: flex;
  justify-content: start;
}

.kontakt-hero__image {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-hero__contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 0.5rem 1rem 0 1rem;
  gap: 2rem;
}

.kontakt-hero__contact-info h2 {
  font-size: 1.5rem;
}

.kontakt-hero__address_info {
  font-size: 1rem;
  line-height: 2rem;
}

.kontakt {
  padding: 2rem 0rem;
  width: 100%;
}

.kontakt__title {
  width: 100%;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.kontakt__container {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.kontakt__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.kontakt__form form {
  width: 100%;
}

.kontakt__ime-prezime {
  display: flex;
  flex-direction: row;
}

.kontakt__phone-email {
  display: flex;
  flex-direction: row;
}

.kontakt__ime,
.kontakt__prezime,
.kontakt__phone,
.kontakt__email {
  width: 50%;
}

.kontakt input,
textarea {
  width: 100%;
}

.kontakt textarea {
  resize: none;
}

.kontakt__submit .db-button {
  font-size: 1.3rem;
  width: 100%;
  padding: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--primary-color);
  margin-top: 2rem;
  padding: 2rem 1.5rem;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__contact h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer__contact li {
  margin-bottom: 0.3rem;
}

.footer__contact li:last-child {
  margin-bottom: 0;
}

.footer__social h4 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer__social a {
  margin: 0.4rem;
}

.footer__logo-photo {
  width: 140px;
}

/* Media Queries */

@media (max-width: 1200px) {
  .usluge__grid-item-text {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .logo-text-second-row {
    transform: translateX(10rem);
  }

  .header__container-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .hero__h2 {
    font-size: 3rem;
  }

  .logo-text-second-row {
    transform: translateX(6rem);
  }

  .usluge__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .usluge__grid-column-center {
    display: none;
  }
  .usluge__grid-column {
    justify-content: center;
    align-items: center;
  }

  .usluge__grid-column.usluge__grid-column-right {
    align-items: center;
    justify-content: center;
  }

  .usluge__grid-item {
    flex-direction: column-reverse;
    gap: 0;
  }

  .usluge__grid-item-icon {
    margin: 0 auto;
  }

  .usluge__grid-column-right .usluge__grid-item {
    flex-direction: column-reverse;
    text-align: left;
  }

  .usluge__grid-item-text {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .usluge__bottom_border {
    width: 80%;
    margin-top: 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__item:nth-of-type(19),
  .gallery__item:nth-of-type(41) {
    grid-column: span 2;
  }

  .kontakt-hero__container {
    flex-direction: column;
    align-items: center;
  }

  .kontakt-hero__image {
    width: 60%;
    margin-bottom: 1rem;
  }

  .kontakt-hero__contact-info {
    gap: 1rem;
  }

  .kontakt-hero__address_info {
    text-align: center;
    width: 100%;
  }
  .kontakt-hero__address_info p {
    display: block;
  }
}

@media (max-width: 768px) {
  .logo-part-1 {
    font-size: 1.5rem;
  }

  .logo-part-2 {
    font-size: 1rem;
  }

  .header__container-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .header__logo-photo {
    width: 50px;
  }

  .header__logo-container {
    gap: 0 0.3rem;
  }

  .header__ul-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.2rem;
    font-weight: 600;
  }

  .logo-text-second-row {
    transform: translateX(0);
  }

  .hero {
    height: 300px;
  }

  .hero__h2 {
    font-size: 1.6rem;
    line-height: 2.5;
  }

  .gallery-home__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery__item:nth-of-type(18) {
    grid-row: span 1;
  }

  .gallery__item:nth-of-type(41) {
    grid-column: span 1;
  }

  .gallery__item:nth-of-type(1),
  .gallery__item:nth-of-type(19) {
    grid-column: span 2;
  }

  .gallery__item:nth-of-type(2) {
    grid-row: span 2;
  }

  .gallery__item:nth-of-type(2) img {
    height: 100%;
    max-height: 640;
  }

  .gallery__item:nth-of-type(18) img {
    height: 300px;
  }

  .kontakt-hero__contact-info h2 {
    font-size: 1.3rem;
  }

  .kontakt__ime-prezime,
  .kontakt__phone-email {
    flex-direction: column;
  }

  .kontakt__ime,
  .kontakt__prezime,
  .kontakt__phone,
  .kontakt__email {
    width: 100%;
  }

  .input-field input {
    font-size: 1rem;
  }

  .input-field textarea {
    font-size: 0.8rem;
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 190px;
  }
  .hero__h2 {
    font-size: 1.15rem;
    line-height: 2.5;
  }

  .section-title {
    font-size: 2rem;
    margin-top: 0;
  }

  .section-description {
    font-size: 1rem;
  }

  .usluge__grid-item-text {
    font-size: 0.9rem;
  }

  .usluge__grid-item-icon {
    margin: 0.2rem auto;
  }

  .gallery-home__see-more .db-button {
    font-size: 1rem;
  }

  .gallery__grid {
    gap: 1rem;
  }

  .gallery__item img {
    height: 200px;
  }

  .gallery__item:nth-of-type(18) img {
    height: 200px;
  }

  .kontakt-hero__contact-info h2 {
    font-size: 1rem;
    text-align: center;
  }

  .footer {
    padding-top: 1rem;
  }

  .footer__logo-photo {
    width: 100px;
  }
}
