/* Color Palette */
:root {
  --green-dark: #173932;
  --gray-muted: #aeb5ae;
  --light-cream: #f1efed;
  --off-white: #fffbf4;
}

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

body, html {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--green-dark);
  color: var(--off-white);
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.logo {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.1;
  max-width: 180px;
  height: auto;
}

.background-image {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -47%);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.background-image img {
  max-height: 105rem;
  height: auto;
  width: auto;
}

main {
  position: relative;
  top: 40%;
  transform: translateY(-45%);
  text-align: center;
  z-index: 1;
  width: 100%;
}

main h1[data-key="heading"] {
  font-size: 4rem;
  font-weight: 700;
  color: var(--gray-muted);
  width: 80vw;
  max-width: 100%;
  margin: 0 auto 1rem;
  letter-spacing: 0.2em;
  line-height: 3.5;
  word-break: break-word;
}


.subtitle {
  font-size: 1.5rem;
  color: var(--off-white);
  opacity: 0.8;
  text-align: right;
  width: 60%;
  margin-left: auto;
  margin-right: 22%;
}

.contact-details {
  margin-left: 3rem;
}

footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.contact {
  font-size: 1.2rem;
  color: var(--gray-muted);
  margin-top: 2rem; /* malo več kot prej */
}

.social {
  font-size: 1.2rem;
  color: var(--gray-muted);
}

.contact a {
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.3s ease, font-size 0.3s ease; /* transition v osnovnem stanju */
}

.contact a:hover {
  color: var(--light-cream);
  font-size: 1.1em;
}

/* Social section */
.social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.icons a {
  color: var(--gray-muted);
  font-size: 1.8rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.icons a:hover {
  color: var(--off-white);
  transform: scale(1.2);
}

/* Icon-text group */
.icon-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-text span {
  font-size: 0.9rem;
  color: var(--gray-muted);
}

[data-key="slogan"] {
  color: var(--gray-muted);
  font-style: italic;
  font-weight: bold;
}

[data-key] {
  transition: opacity 0.8s ease;
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .background-text {
    font-size: 6rem;
    top: 35%;
  }

  main {
    top: 40%;
    transform: translateY(-60%);
    padding: 0 1rem;
  }

  main h1[data-key="heading"] {
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    width: 90vw;
    word-break: break-word;
    white-space: normal;
  }

  .subtitle {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  .logo {
    max-width: 80px;
    top: 1rem;
    right: 1rem;
  }

  footer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }

  .contact-details {
    margin-left: 0;
  }

  .contact p,
  .contact a {
    margin: 0;
  }

  .social {
    align-items: center;
    gap: 0.5rem;
  }

  .social p {
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    order: 1;
  }

  .icons {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    order: 0;
  }

  .icons a {
    font-size: 1.5rem;
    margin: 0;
  }

  /* Dodano za .background-image na telefon */
  .background-image {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -47%);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
  }

  .background-image img {
    max-height: 45rem; /* prilagodi višino za mobilne naprave */
    height: auto;
    width: auto;
  }
}
