@import url("assets/css/bootstrap.min.css");
@import url("assets/css/animate.css");
@import url("assets/css/font-awesome.min.css");
@import url("assets/css/theme.css");

html {
  scroll-behavior: smooth;
}

header .intro-lead {
  font-size: 16px;
  font-weight: 100;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .copy-feedback-bubble {
    animation: none;
  }

  #slider-content {
    transition: none;
  }
}

/* Vanilla JS: rozwijanie listy usług — animacja przez grid (0fr → 1fr) */
#slider-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
  overflow: hidden;
}

#slider-content.is-open {
  grid-template-rows: 1fr;
}

#slider-content > .slider-content-inner {
  min-height: 0;
  overflow: hidden;
}

/* Menu mobilne: przełączanie bez Bootstrap JS */
.navbar-toggle {
  border: none;
  background: transparent;
  padding: 9px 10px;
}

.mobile-nav:not(.active) {
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.active {
  pointer-events: auto;
  visibility: visible;
}

/* Formularz kontaktu (Formspree) */
.contact-form {
  font-size: 15px;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contact-form input.form-control {
  border-radius: 10px;
  padding-left: 18px;
  padding-right: 18px;
  background-color: #fff;
  font-size: 15px;
}

.contact-form textarea.form-control {
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 120px;
  resize: vertical;
  background-color: #fff;
  font-size: 15px;
}

.contact-form .contact-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 4px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #e7e7e5;
  background-color: #4a3a4a;
  border: 1px solid #5b4d5a;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-form .contact-form-submit:hover {
  color: #483949;
  background-color: #e5f993;
  border-color: #e5f993;
  box-shadow: none;
}

.contact-form .contact-form-submit:active {
  color: #483949;
  background-color: #d4e885;
  border-color: #c8d97a;
  box-shadow: inset 0 2px 5px rgba(72, 57, 73, 0.15);
}

.contact-form .contact-form-submit:focus {
  border-color: #e5f993;
  box-shadow: 0 0 0 2px rgba(229, 249, 147, 0.45);
  outline: 0;
}

/* Potwierdzenie kopiowania numeru (vanilla JS) */
.copy-feedback-bubble {
  position: fixed;
  z-index: 10050;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: "museo-sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #483949;
  background-color: #e5f993;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  white-space: nowrap;
  animation: copy-feedback-in 0.2s ease;
}

@keyframes copy-feedback-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
