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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background-color: #231f20;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #72bf7a;
}

nav a:hover {
  color: #a2e6a8;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #078c35;
  outline-offset: 4px;
  border-radius: 4px;
}

nav a:focus-visible {
  outline-color: #a2e6a8;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  width: 190px;
  height: auto;
  filter: brightness(1.4);
}

@media (min-width: 700px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 70vh;
  background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.82)),
    url('/images/hero.jpg') center / cover no-repeat;
    background-size: cover;
    background-position: center;
}

.hero h1 {
  color: #02882f;
  font-size: 2.5em;
  text-align: center;
}

.hero p {
  text-align: center;
  max-width: 700px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

@media (min-width: 700px) {
  .hero p {
    font-size: 1.2em;
  }
}

#tjanster {
  padding: 60px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url('/images/marina-zvada-fNxmdlYHRm8-unsplash.jpg') center / cover
      no-repeat;
  min-height: 70vh;
}

#tjanster h2 {
  color: #02882f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  border-bottom: 2px solid #02882f;
}

.services-grid {
  display: grid;
  gap: 20px;
}

.services-grid article {
  background-color: #d4d6d5;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 7px 7px 3px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
}

.services-grid h3 {
  margin-bottom: 15px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services-cta {
  text-align: center;
  margin: 40px auto;
  font-weight: bold;
  border-radius: 20px;
  max-width: 400px;
  padding: 20px;
  background-color: #d4d6d5;
  box-shadow: 7px 7px 3px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #02882f;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.contact-btn:hover {
  background-color: transparent;
  color: #02882f;
  border: 2px solid #02882f;
}

#om-oss {
  padding: 60px 0;
  background-color: #eeeeee;
  min-height: 70vh;
}

#om-oss h2 {
  color: #02882f;
  width: 100%;
  text-align: center;
  font-size: 2em;
  border-bottom: 2px solid #02882f;
}

#om-oss p {
  max-width: 700px;
  text-align: center;
}

#om-oss .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.team {
  display: grid;
  margin-top: 30px;
  gap: 40px;
}

.team article {
  width: 100%;
  max-width: 280px;
  justify-self: center;
  background-color: #d4d6d5;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 7px 7px 3px rgba(0, 0, 0, 0.2);
}
.team p {
  font-size: 1.1em;
  color: #02882f;
}

.image-placeholder {
  width: 100%;
  background-color: #ffffff;
  margin: 0 auto 20px auto;
  aspect-ratio: 4 / 5;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #02882f;
  text-decoration: none;
  font-weight: bold;
}

.email-link svg {
  width: 16px;
  height: 16px;
}

.email-link:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
  }
  #om-oss p {
    font-size: 1.2em;
  }
}

#projekt {
  padding: 60px 0;
}

#projekt h2 {
  color: #02882f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  border-bottom: 2px solid #02882f;
}

.projects-intro {
  text-align: center;
  font-size: 1.2em;
}

.projects-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background-color: #d4d6d5;
  padding: 20px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 7px 7px 3px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-image {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 2px solid #02882f;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  color: #02882f;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-work {
  margin-top: 6px;
}

.projects-cta {
  text-align: center;
  margin-top: 30px;
}

@media (min-width: 700px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-page .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin: 30px auto 0;
  }
}

#kontakt {
  padding: 60px 0;
  min-height: 70vh;
}

#kontakt h2 {
  color: #02882f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  border-bottom: 2px solid #02882f;
}

.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #02882f;
  text-decoration: none;
  font-weight: bold;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f3f4f3;
  padding: 25px;
  border-radius: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

.contact-form button {
  padding: 12px 20px;
  background-color: #02882f;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.contact-form button:hover {
  background-color: transparent;
  color: #02882f;
  border: 2px solid #02882f;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.thank-you h1 {
  color: #02882f;
  font-size: 2em;
  margin-bottom: 10px;
}

.thank-you p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #231f20;
  color: white;
  text-align: center;
  padding: 16px 20px;
  gap: 10px;
}

footer a {
  color: #72bf7a;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #a2e6a8;
  text-decoration: underline;
}

@media (min-width: 700px) {
  footer {
    flex-direction: row;
  }
}

.projects-page {
  padding: 60px 0;
}

.projects-page h1 {
  color: #02882f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  border-bottom: 2px solid #02882f;
}
