/* GLOBAL STYLES */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: whitesmoke;
  color: #111;
  line-height: 1.6;
  font-family: "Source Serif 4", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.65;
}

/* HERO */
.hero {
  min-height: 10vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background-color: white;
}

.lang {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
}

.lang .active {
  opacity: 0.6;
  cursor: default;
}

.logo {
  width: clamp(180px, 45vw, 320px);
  height: auto;
  margin-bottom: 1.2rem;
}

.tagline {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  max-width: 28rem;
}

/* PRODUCT SECTION */
.product {
  padding: 4rem;
}

.product-wrap {
  display: flex;
  flex-wrap: wrap; /* allows stacking on mobile */
  align-items: center;
  gap: 3rem;
  justify-content: center;
  max-width: 1100px;
  margin: auto;
  background-color: white;
  border-radius: 2rem;
  padding: 2rem;

}

.product-image {
  flex: 1 1 420px;
  max-width: 20rem;
}

.product-image img {
  width: 100%;
  height: auto; 
  animation: fadeInUp 0.8s ease-out;
}

.product-image figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #333333;
  line-height: 1.4;
}

.product-image figcaption span {
  color: #595959;
}

.product-text {
  text-align: left;
  min-width: 280px;
  padding: 3rem;
}

.product-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.product-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
  max-width: 32rem;
}

/* ABOUT & CONTACT */
.about {
  padding: 2rem;
}

.about,
.contact {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.about p,
.contact p {
  margin-bottom: 1.2rem;
  color: #333;
  font-size: 1rem;
}

.contact .cta { 
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #111;
  text-decoration: none;
}

.contact .cta {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact .cta:hover {
  background-color: #111;
  color: #fff;
  border-color: #111;
}

/* CONTACT BOX LAYOUT */
.contact-wrap {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-box {
  flex: 1 1 300px;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  text-align: left;
}

.contact-box h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-box p {
  margin-bottom: 0.8rem;
}



/* FOOTER */
footer {
  position: relative;
  border-top: 1px solid #eee;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #555;
  position: relative;
  z-index: 2;
}

/* FIGCAPTION LABEL */
.fig-label {
  font-style: normal;
  font-weight: 600;
  color: #595959;
  margin-right: 0.25rem;
}

.footer-banner {
  position: relative;
  bottom: 0;          /* sticks to bottom of page */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 15em;      /* banner height */
  background: url('img/gorska-banner.png') no-repeat center bottom;
  background-size: cover;
  z-index: 1;          /* behind footer */
  pointer-events: none; /* optional */

  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
  mask-repeat: no-repeat;
  mask-size: 100% 100%;

}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .product {
    padding: 2rem;
  }

  .contact-wrap {
    flex-direction: column;
    padding: 2rem;
  }

  .contact-box {
    text-align: center;
  }


  .product-wrap {
    padding: 1.5rem;
    text-align: center;
  }

  .product-text {
    padding: 0;
    text-align: center;
  }
 
  .product-text h2 {
  text-align: center;
}

  .product-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .product-image img {
    max-width: 340px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}