/*
Theme Name: Pomorski Światłowód
Author: IGK
Author URI: https://igk.com.pl
Description: Motyw strony projektu Pomorski Światłowód z zachowanymi modułami ofertowymi operatora.
Version: 2.3.0
Text Domain: pomorski-swiatlowod
*/

/* Legacy configurator summary rows stay hidden until selected. */
.table-summary .row-internet,
.table-summary .row-tv,
.table-summary .row-tel,
.table-summary .row-mobilny {
  display: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pomorski-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 99999;
  padding: 1.2rem 1.8rem;
  border-radius: 6px;
  background: #fff;
  color: #252b3a;
  font-size: 1.6rem;
  font-weight: 700;
  transform: translateY(-150%);
}

.pomorski-skip-link:focus {
  outline: 3px solid #1e73be !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
  transform: translateY(0);
}

.header-top__contact,
.header-top .user-panel {
  gap: 1.8rem;
}

.header-top .user-panel {
  flex: 0 0 auto;
  margin-left: 2.8rem;
}

.header-top__link,
.header-top__tool {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}

.header-top__label {
  opacity: .72;
}

.header-top__icon {
  display: inline-grid;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  place-items: center;
}

.header-top__icon:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--colorbg);
}

.site-header .container {
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: auto;
  height: 5.4rem;
  object-fit: contain;
}

.site-brand__text {
  color: var(--color0);
  font-size: 2.2rem;
  font-weight: 800;
}

.site-header__cta {
  display: inline-flex;
  min-height: 4.4rem;
  align-items: center;
  margin-left: 1rem;
  padding: 1rem 1.8rem;
  border-radius: 8px;
  background: var(--color2);
  color: #252b3a;
  font-size: 1.5rem;
  font-weight: 800;
}

.site-header__ferc-link {
  margin-left: 2.5rem;
  color: var(--textColor);
  font-size: 1.9rem;
  font-weight: 600;
}

.site-header__social {
  display: inline-flex;
  margin-left: 1.5rem;
  color: var(--color1);
}

.site-header .hamburger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .navigation ul li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.site-header .navigation a:focus-visible {
  outline: 3px solid #1e73be !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

.header-search.is-open {
  display: block;
}

.header-search form {
  gap: 1rem;
}

.header-search input[type="search"] {
  width: calc(100% - 12rem);
  min-height: 4.4rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: #fff;
  color: #252b3a;
  font-size: 1.6rem;
}

.header-search .btn {
  width: 11rem;
  min-height: 4.4rem;
  padding: 1rem;
  border-radius: 6px;
  background: var(--color2);
  color: #252b3a;
  font-size: 1.5rem;
  font-weight: 800;
}

.site-footer {
  padding: 7rem 0 3rem;
  background: var(--color0);
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(420px, 1.5fr) minmax(220px, .7fr);
  gap: 5rem;
  align-items: start;
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 2.2rem;
}

.site-footer__logo img {
  width: auto;
  height: 5rem;
  object-fit: contain;
}

.site-footer__brand > p,
.site-footer address {
  color: rgba(255, 255, 255, .68);
  font-size: 1.5rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer__navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer__heading {
  margin-bottom: 1.8rem;
  color: var(--color2);
  font-size: 1.6rem;
  font-weight: 800;
}

.site-footer__navigation ul {
  display: grid;
  gap: 1rem;
}

.site-footer__navigation li,
.site-footer__navigation a {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.45;
}

.site-footer__navigation a:hover,
.site-footer__contact-link:hover,
.site-footer__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__contact-link {
  margin-bottom: .8rem;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

.site-footer__contact address {
  margin-top: 1.2rem;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.site-footer__legal p,
.site-footer__legal a {
  color: rgba(255, 255, 255, .58);
  font-size: 1.25rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 1fr 2fr;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1199px) {
  .site-header .navigation > ul {
    position: absolute;
    top: calc(100% + 1.5rem);
    right: 1.5rem;
    z-index: 60;
    display: none;
    width: min(38rem, calc(100vw - 3rem));
    padding: 1.8rem 2rem 2.2rem;
    border: 1px solid rgba(37, 43, 58, .1);
    border-radius: 10px;
    background: var(--colorbg);
    box-shadow: 0 20px 35px rgba(37, 43, 58, .16);
  }

  .site-header .navigation > ul li {
    margin: 0;
    padding: .8rem 0;
  }

  .site-header.is-menu-open .navigation > ul {
    display: block;
  }

  .site-header__cta,
  .site-header__social {
    display: none;
  }

  .site-header .hamburger {
    display: inline-flex;
    flex-wrap: wrap;
    width: 30px;
    height: 24px;
    align-items: center;
    margin: 0 0 0 1.8rem;
  }

  .site-header .hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--textColor);
  }
}

@media (max-width: 767px) {
  .header-top .container {
    align-items: flex-start;
    gap: 1rem;
  }

  .header-top__contact {
    display: grid;
    gap: .5rem;
  }

  .header-top__contact .header-top__link {
    font-size: 1.25rem;
  }

  .header-top__label,
  .header-top__tool {
    display: none;
  }

  .header-top .user-panel {
    margin: 0 0 0 1.2rem;
    padding: 0;
    gap: .7rem;
  }

  .site-brand img {
    height: 4.2rem;
  }

  .site-header .navigation > ul {
    top: calc(100% + 1.5rem);
    box-shadow: 0 20px 35px rgba(37, 43, 58, .16);
  }

  .site-header.is-menu-open .navigation > ul {
    display: block;
  }

  .site-header__cta,
  .site-header__ferc-link,
  .site-header__social {
    display: none;
  }

  .site-header .hamburger {
    margin-top: 0;
  }

  .site-footer {
    padding: 5rem 0 2.5rem;
  }

  .site-footer__grid,
  .site-footer__navigation {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Final keyboard-focus layer: the legacy bundle removes outlines globally. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #1e73be !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

html.contrast-mode :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #ffff00 !important;
  box-shadow: 0 0 0 2px #000 !important;
}

/* Keep styled configurator choices in the tab order without affecting CF7. */
.offer-order-form label > input[type="checkbox"],
.offer-order-form label > input[type="radio"] {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.offer-order-form label > input[type="checkbox"]:focus-visible + span,
.offer-order-form label > input[type="radio"]:focus-visible + span {
  border-radius: 4px;
  outline: 3px solid #1e73be !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

.channels-popup .close,
.featured-popup .close {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
