/* SMART Antra 1.0.0 - zmiany na stronie rolety-antra.pl (moduł obok motywu antra) */

/* Zmienne na :root, żeby działały też poza naszymi sekcjami (np. numer w adresie na stronie Kontakt). */
:root {
  --smart-akcent: #39a6b4;
  --smart-czern: #000000;
  --smart-tlo: #f5f5f5;
  --smart-linia: #dddddd;
  --smart-szary: #6f6f6f;
}

/* ---------------------------------------------------------------------------
 * 1. Przycisk połączenia w nagłówku
 * ------------------------------------------------------------------------- */

.smart-header-call__icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--smart-akcent);
  transition: background-color 400ms;
}

.smart-header-call__icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  background-color: var(--smart-akcent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color 400ms;
}

.smart-header-call:hover .smart-header-call__icon,
.smart-header-call:focus-visible .smart-header-call__icon {
  background-color: var(--smart-akcent);
}

.smart-header-call:hover .smart-header-call__icon::after,
.smart-header-call:focus-visible .smart-header-call__icon::after {
  background-color: #ffffff;
}

header.banner .banner__top-right a.smart-header-call {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  margin-right: 1.75rem;
  color: var(--smart-czern);
  text-decoration: none;
  white-space: nowrap;
}

header.banner .banner__top-right a.smart-header-call + a {
  margin-left: 0;
}

.smart-header-call__text {
  display: flex;
  flex-direction: column;
  margin-left: 0.625rem;
  font-weight: 400;
  line-height: 1.25;
}

.smart-header-call__text small {
  font-size: 0.625rem;
  letter-spacing: 0.125rem;
  color: var(--smart-szary);
}

.smart-header-call__text strong {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.0625rem;
}

@media (max-width: 1399px) {
  .smart-header-call__text small {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .smart-header-call__text {
    display: none;
  }

  header.banner .banner__top-right a.smart-header-call {
    margin-right: 1rem;
  }
}

/* Mobile: ikona obok hamburgera (w jednym rzędzie, żeby nie nachodziła na przycisk menu) */
header.banner .hamburger__wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

header.banner .smart-header-call--icon {
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 1.25rem;
  line-height: 0;
  transition: opacity 300ms;
}

header.banner .smart-header-call--icon .smart-header-call__icon {
  width: 2rem;
  height: 2rem;
}

header.banner .hamburger__wrapper .hamburger {
  flex: 0 0 auto;
  height: 2rem;
}

header.banner.open .smart-header-call--icon {
  opacity: 0;
  pointer-events: none;
}

/* Mobile: przycisk w otwartym menu */
@media (max-width: 959px) {
  header.banner.open .banner__top-right a.smart-header-call {
    flex-direction: row;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }
}

/* ---------------------------------------------------------------------------
 * 2. Karuzela produktów na stronie głównej
 * ------------------------------------------------------------------------- */

.smart-slider-nav {
  display: none;
}

@media (max-width: 959px) {
  .smart-home-slider .home-second-section__slider__prev,
  .smart-home-slider .home-second-section__slider__next {
    display: none !important;
  }

  .smart-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-bottom: 0.25rem;
  }
}

.smart-slider-nav__btn {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--smart-akcent);
  background-color: #ffffff;
  transition: background-color 300ms;
  -webkit-tap-highlight-color: transparent;
}

.smart-slider-nav__btn::after,
.smart-home-slider .home-second-section__slider__prev a::after,
.smart-home-slider .home-second-section__slider__next a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 0.875rem;
  transform: translate(-50%, -50%);
  background-color: var(--smart-akcent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3l9 9-9 9' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3l9 9-9 9' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.smart-slider-nav__btn--prev::after,
.smart-home-slider .home-second-section__slider__prev a::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 3l-9 9 9 9' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 3l-9 9 9 9' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
}

.smart-slider-nav__btn:active,
.smart-slider-nav__btn:hover {
  background-color: var(--smart-akcent);
}

.smart-slider-nav__btn:active::after,
.smart-slider-nav__btn:hover::after {
  background-color: #ffffff;
}

@media (min-width: 960px) {
  .smart-home-slider .home-second-section__slider__prev,
  .smart-home-slider .home-second-section__slider__next {
    display: block;
    position: absolute;
    left: 0;
    width: 3.75rem;
    height: 3.75rem;
    margin: 0;
    background-color: var(--smart-akcent);
    transform: translate(-50%, -50%);
    transition: background-color 300ms;
    z-index: 2;
  }

  .smart-home-slider .home-second-section__slider__prev {
    top: calc(50% - 3.9375rem - 2.0625rem);
  }

  .smart-home-slider .home-second-section__slider__next {
    top: calc(50% - 3.9375rem + 2.0625rem);
  }

  .smart-home-slider .home-second-section__slider__prev a,
  .smart-home-slider .home-second-section__slider__next a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .smart-home-slider .home-second-section__slider__prev a::after,
  .smart-home-slider .home-second-section__slider__next a::after {
    background-image: none;
    background-color: #ffffff;
    width: 1rem;
    height: 1rem;
    opacity: 1;
  }

  .smart-home-slider .home-second-section__slider__prev svg,
  .smart-home-slider .home-second-section__slider__next svg {
    display: none;
  }

  .smart-home-slider .home-second-section__slider__prev:hover,
  .smart-home-slider .home-second-section__slider__next:hover {
    background-color: var(--smart-czern);
  }
}

/* ---------------------------------------------------------------------------
 * 3. Klikalne numery i adresy e-mail
 * ------------------------------------------------------------------------- */

/* Motyw daje każdemu linkowi w adresie styl przycisku: ramkę rysują pseudoelementy :before i :after (two-squares-btn). */
.contact__address a.smart-contact-phone::before,
.contact__address a.smart-contact-phone::after {
  content: none;
  display: none;
}

.contact__address a.smart-contact-phone {
  display: block;
  width: max-content;
  margin: 0.75rem 0 1rem;
  padding: 0;
  border: none;
  background: none;
  text-transform: none;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.0625rem;
  color: var(--smart-akcent);
  text-decoration: underline;
  text-decoration-color: var(--smart-akcent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Dekoracyjny pas tła motywu (.section-background.set-back) jest pozycjonowany absolutnie NAD treścią
   i przechwytuje kliknięcia w numery oraz adresy pod nim (zgłoszenie klientki 17.09: dział detaliczny
   nie reagował na komputerze i na telefonie). Pas nie ma żadnej funkcji klikalnej, więc przepuszczamy kliknięcia. */
.section-background.set-back {
  pointer-events: none;
}

.section-background.set-back a,
.section-background.set-back button {
  pointer-events: auto;
}

/* Widoczne podkreślenie wszędzie tam, gdzie numer albo adres jest klikalny (prośba klientki 16.09). */
.main a[href^="tel:"]:not(.smart-header-call),
.main a[href^="mailto:"]:not(.smart-header-call),
.map-info a[href^="tel:"],
.map-info a[href^="mailto:"] {
  text-decoration: underline;
  text-decoration-color: var(--smart-akcent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.smart-contact-method a,
.points-cards__card__phone a,
.points-cards__card__email a,
.map-info__phone a,
.map-info__email a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #39a6b4;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 300ms;
}

.contact__address a.smart-contact-phone:hover,
.smart-contact-method a:hover,
.points-cards__card__phone a:hover,
.points-cards__card__email a:hover,
.map-info__phone a:hover,
.map-info__email a:hover {
  color: #39a6b4;
}

/* ---------------------------------------------------------------------------
 * 4. Formularze
 * ------------------------------------------------------------------------- */

.smart-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.smart-form__desc {
  margin: 0;
  font-family: "Gothic", sans-serif;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
 * 5. Galeria realizacji na kartach produktów
 * ------------------------------------------------------------------------- */

.smart-realizacje {
  padding-top: 5rem;
  padding-bottom: 1rem;
}

.smart-realizacje__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .smart-realizacje__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .smart-realizacje__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.smart-realizacje__item {
  position: relative;
  display: block;
  padding-top: 75%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.smart-realizacje__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms;
}

.smart-realizacje__item:hover img {
  transform: scale(1.05);
}

.smart-realizacje__item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 3px solid transparent;
  transition: border-color 400ms;
}

.smart-realizacje__item:hover::after {
  border-color: #39a6b4;
}

/* ---------------------------------------------------------------------------
 * 6. Podstrona „Jak pracujemy”
 * ------------------------------------------------------------------------- */

.smart-jp__hero {
  padding-top: 7.5rem;
}

@media (max-width: 959px) {
  .smart-jp__hero {
    padding-top: 5.5rem;
  }
}

.smart-jp__hero-media {
  position: relative;
}

.smart-jp__hero-media .uk-slideshow-items {
  min-height: 16rem;
}

.smart-jp__hero-nav {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.smart-jp__hero-text {
  padding-left: 3.5rem;
}

@media (max-width: 959px) {
  .smart-jp__hero-text {
    padding-left: 0;
    padding-top: 2rem;
  }
}

.smart-jp__hero-label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--smart-akcent);
}

.smart-jp__hero-title {
  margin: 0;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--smart-czern);
}

@media (max-width: 959px) {
  .smart-jp__hero-title {
    font-size: 1.75rem;
  }
}

.smart-jp__step-photo {
  display: block;
  margin-top: 1.5rem;
  overflow: hidden;
}

.smart-jp__step-photo img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 800ms;
}

.smart-jp__step:hover .smart-jp__step-photo img {
  transform: scale(1.05);
}

.smart-jp section.uk-container.first-section.smart-jp__intro {
  min-height: 0;
  padding-bottom: 1rem;
}

.smart-jp__lead {
  max-width: 44rem;
  margin-top: 1.75rem;
  font-family: "Gothic", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

.smart-jp__steps {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.smart-jp__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 640px) {
  .smart-jp__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .smart-jp__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.smart-jp__step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 1.75rem;
  border-top: 2px solid var(--smart-linia);
  transition: border-color 600ms;
}

/* Miniatury etapów równo na jednym poziomie, niezależnie od długości tekstu (prośba klientki 16.09). */
.smart-jp__step .smart-jp__step-photo {
  margin-top: auto;
  padding-top: 1.5rem;
}

.smart-jp__step:hover {
  border-color: var(--smart-akcent);
}

.smart-jp__number {
  display: block;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1625rem;
  color: var(--smart-akcent);
}

.smart-jp__icon {
  display: block;
  margin: 1.25rem 0 1rem;
  color: var(--smart-czern);
  line-height: 0;
}

.smart-jp__icon svg,
.smart-jp__icon img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.smart-jp__step-title {
  margin: 0 0 0.75rem;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--smart-czern);
}

.smart-jp__step-text {
  margin: 0;
  font-family: "Gothic", sans-serif;
  line-height: 1.7;
}

.smart-jp__faq {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.smart-jp__accordion {
  max-width: 56rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.smart-jp__accordion > li {
  margin: 0;
  border-bottom: 1px solid var(--smart-linia);
}

.smart-jp__accordion > li:first-child {
  border-top: 1px solid var(--smart-linia);
}

.smart-jp__accordion .uk-accordion-title {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--smart-czern);
  text-decoration: none;
}

.smart-jp__accordion .uk-accordion-title::before {
  display: none;
}

.smart-jp__accordion .uk-accordion-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  background:
    linear-gradient(var(--smart-akcent), var(--smart-akcent)) center / 100% 2px no-repeat,
    linear-gradient(var(--smart-akcent), var(--smart-akcent)) center / 2px 100% no-repeat;
  transition: transform 300ms;
}

.smart-jp__accordion > li.uk-open .uk-accordion-title::after {
  transform: rotate(45deg);
}

.smart-jp__accordion .uk-accordion-content {
  margin: 0;
  padding: 0 3rem 1.5rem 0;
  font-family: "Gothic", sans-serif;
  line-height: 1.7;
}

.smart-jp__accordion .uk-accordion-content p:last-child {
  margin-bottom: 0;
}

/* Każdy odnośnik w odpowiedzi FAQ widocznie podkreślony, także ten do strony Kontakt (prośba klientki 17.09). */
.smart-jp__accordion .uk-accordion-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--smart-akcent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.smart-jp__accordion .uk-accordion-content a:hover {
  color: var(--smart-akcent);
}

/* Wpis bez obrazka wyróżniającego: etykieta kategorii bez kontenera obrazka, żeby nie uciekła. */
.smart-article__bez-zdjecia {
  position: relative;
}

.smart-article__bez-zdjecia .category {
  position: static;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
 * Galeria we wpisach
 *
 * Motyw deklaruje obsługę HTML5 dla galerii, więc WordPress świadomie nie dodaje
 * swoich domyślnych stylów i liczy na motyw - a ten żadnej reguły dla .gallery nie ma.
 * Bez tego zdjęcia z galerii układają się jedno pod drugim na pełną szerokość kolumny.
 * ------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7,
.gallery-columns-8,
.gallery-columns-9 { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  margin: 0;
}

.gallery-icon {
  line-height: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--smart-szary);
}

@media (max-width: 640px) {
  .gallery[class*="gallery-columns-"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}
