@charset "utf-8";
/* CSS Document */

/* GRID LAYOUT */

.home-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  padding-inline: 4rem;
  padding-bottom: 1rem; /* less bottom padding */
}


@media (max-width: 864px) {

  .description-info {
    margin-right: 35px;
  }

  .home-services {
    grid-template-columns: repeat(1, 1fr);
  }
	
  .intro-flex-container {
    flex-direction: column; /* Tekst i przyciski jeden pod drugim */
    align-items: flex-start; /* Wyrównanie do lewej na mobile */
    margin: 0 20px;         /* Mniejsze marginesy na telefonie */
  }

  .currency-switcher {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }
  
  .currency-switcher button {
    flex: 1; /* Przyciski rozciągają się równomiernie na szerokość ekranu */
    max-width: 80px;
  }

}

@media (min-width: 865px) and (max-width: 1200px) {

  .home-services {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* Kontener główny - na desktopie obok siebie, na mobile pod sobą */
.intro-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 0 60px;
}

/* Styl przycisków */
.currency-switcher {
  display: flex;
  gap: 12px;
}

.currency-switcher button {
  padding: 12px 20px; /* Większe przyciski */
  font-size: 16px;
  font-weight: bold;
  background-color: #1a1a1a;
  color: #fff;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Podświetlenie wybranego przycisku */
.currency-switcher button.active {
  background-color: #fff; /* Białe tło dla zaznaczonego */
  color: #000;            /* Czarny tekst */
  border-color: var(--line-color);
}

.currency-switcher button:hover:not(.active) {
  background-color: #333;
}

.section-divider {
  height: 5px;
  background-color: var(--line-color);
  margin: 20px 0;
  width: 100%;
}

/* SERVICE CARD */

.service-card {
  position: relative;
  height: 280px;
  width: auto;
  padding: 2rem;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  /* remove previous background */
  background: none;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* IMAGE INSIDE CARD */

.service-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills card proportionally */
  object-position: center;
  z-index: 0;
}

.service-card .service-image {
  position: absolute;
  inset: 0;
  object-fit: contain;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Soft overlay for readability */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3); /* semi-transparent overlay */
  backdrop-filter: blur(2px); 
  z-index: 1;
}

/* TITLE */

.service-title {
  position: absolute;
  left: 2rem;
  top: 20%; /* Original 40% */
  transform: translateY(-50%);
  font-size: 2rem;  /* kept your original value */
  font-weight: 1000;
text-shadow:
  1px 0 0 white,
 -1px 0 0 white,
  0 1px 0 white,
  0 -1px 0 white;
  z-index: 2;
	color: #212121;

  transition: transform 0.4s ease;
}

/* CONTENT (HIDDEN) */

.service-content {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  z-index: 2;
}

.service-content p {
  font-size: 1rem; /* keep original */
text-shadow:
  1px 0 0 white,
 -1px 0 0 white,
  0 1px 0 white,
  0 -1px 0 white;
  opacity: 0.85;
  margin-bottom: 0.8rem;
	color: #212121;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
	color: #212121;
}

.service-content li {
  font-size: 1rem; /* keep original */
text-shadow:
  1px 0 0 white,
 -1px 0 0 white,
  0 1px 0 white,
  0 -1px 0 white;
  margin-bottom: 0.3rem;
	color: #212121;
}

.service-price {
  display: block;
  margin-top: 0.8rem;
  font-size: 1rem; /* keep original */
text-shadow:
  1px 0 0 white,
 -1px 0 0 white,
  0 1px 0 white,
  0 -1px 0 white;
  font-weight: 600;
	color: #212121;
}

/* HOVER / FOCUS STATE */

.service-card:hover .service-title,
.service-card:focus-within .service-title {
  transform: translateY(-110%);
}

.service-card:hover .service-content,
.service-card:focus-within .service-content {
  opacity: 1;
  transform: translateY(0);
}