:root {
  --primary: #b49358;
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-secondary: #999;
  --card-bg: #161616;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

a:focus-visible {
  border-radius: 0.8rem;
  border: none;
  outline: 3px solid white;
  outline-offset: 0.2rem;
}

.hero-header,
.hero-description,
.services-card--img {
  will-change: opacity, transform;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 1.6rem;
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- HEADER --- */

.header {
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 10, 0.86);
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  max-width: 160rem;
  margin: 0 auto;
  padding: 2rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-logo--img {
  width: 16rem;
}

.header-logo--link {
  display: block;
}

.header-description {
  display: flex;
  font-size: 1.2rem;
  font-weight: 700;
  justify-content: right;
  letter-spacing: 0.02rem;
  position: relative;
  row-gap: 0.4rem;
  right: 0;
  text-align: right;
  text-transform: uppercase;
}

.header-description--separator {
  color: var(--primary);
  padding-inline: 1.6rem;
}

/* --- MAIN --- */

.main {
  margin: 0 auto;
  max-width: 160rem;
  width: 100%;
}

/* --- HERO --- */
.hero {
  align-items: center;
  position: relative;
  overflow: hidden;
  border-inline: 1px solid #513a12;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  justify-content: center;
  padding: 0 10%;
  text-align: center;
}

.hero-img {
  inset: 0;
  min-height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.hero-header {
  font-size: clamp(2rem, 10vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.2s;
}

.hero-description {
  animation: fadeInUp 1s forwards 0.4s;
  color: var(--text-secondary);
  font-size: 1.6rem;
  margin: 1rem auto 3rem;
  max-width: 800px;
  opacity: 0;
}

/* --- SERVICES --- */

.services {
  padding: 10rem 10%;
}

.hero-link {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-weight: bold;
  padding: 0.3rem 1rem;
  text-decoration: none;
}

.services-title {
  font-size: 3rem;
  margin: 4rem auto 3rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.services-card {
  background-color: var(--card-bg);
  border: 1px solid #222;
  border-radius: 1.2rem;
  overflow: hidden;
  transition: border-color 0.2s ease-in-out !important;
}

.services-card:hover {
  border-color: var(--primary);
}

.services-card--img {
  background-color: #333; /* Placeholder */
  height: 36rem;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  width: 100%;
}

.services-card:hover .services-card--img {
  transform: scale(1.1) rotate(3deg);
}

.services-card--content {
  padding: 3rem 1.6rem 1.6rem;
}

.services-card--description {
  color: var(--text-secondary);
  font-size: 1.4rem;
  margin-top: 0.4rem;
}

/* --- CONTACT --- */
#kontakt {
  padding: 4rem 10%;
}

.contact {
  background-color: var(--primary);
  border-radius: 3rem;
  color: black;
  margin: 0 auto;
  margin-top: 5rem;
  max-width: 80rem;
  padding: 8rem 2rem;
  text-align: center;
}

.contact-header {
  margin-bottom: 1rem;
  text-wrap: wrap;
}

.contact-phone {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  text-decoration: none;
  color: black;
  display: block;
  margin: 1rem auto;
  padding: 0.3rem 1rem;
  transition: var(--transition);
  width: fit-content;
}

.contact-phone:hover {
  opacity: 0.7;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  font-size: 1.4rem;
  color: var(--text-secondary);
  padding: 2rem;
  text-align: center;
}

/* -------------------------------------------------------------------------------------------- media 900 */

@media (max-width: 900px) {
  .header {
    position: inherit;
  }

  .header-description {
    display: grid;
    letter-spacing: 0;
    line-height: 2rem;
  }

  .header-description--separator {
    font-size: 0.8rem;
    line-height: 1rem;
    padding: 0;
  }
}

/* -------------------------------------------------------------------------------------------- media 600 */

@media (max-width: 600px) {
  .header {
    backdrop-filter: none;
    display: grid;
    justify-content: center;
    padding: 2rem 10vw 3rem;
    row-gap: 1.2rem;
    text-align: center;
  }

  .header-logo--img {
    margin: 0 auto;
    max-width: 80vw;
  }

  .header-description {
    column-gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------------------------- media 480 */

@media (max-width: 480px) {
  * {
    margin: 0 auto;
    max-width: 96vw;
    overflow-x: hidden;
    transition: none !important;
    transform: none !important;
  }

  .hero-header {
    margin: 0;
    padding: 0 5vw;
  }

  .services,
  #kontakt {
    padding: 2rem 4vw;
  }

  .services-grid {
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding: 0;
    width: 90vw;
  }

  .services-title {
    font-size: 2.4rem;
  }

  .services-card {
    margin: 0 auto;
    width: 90vw;
  }

  .services-card:hover {
    border: 1px solid #222;
  }

  .services-card:hover .services-card--img {
    transform: scale(1) rotate(0deg);
  }

  .phone-phone:hover {
    opacity: 0.7;
  }

  .contact {
    margin: 0 auto;
    padding: 4rem 10vw;
    width: 90vw;
    /* word-wrap: break-word; */
  }

  .contact-header {
    font-size: 1.8rem;
    font-weight: 900;
  }
}
