/**
 * Contact Page Styles
 * Blok PrettyBlocks – strona kontaktowa z zakładkami oddziałów
 */

body#contact .breadcrumb,
body#contact #left-column,
body#contact #content-wrapper {
  display: none;
}

body#contact #wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #ffffff !important;
}

body#contact #wrapper > .container {
  max-width: 1240px !important;
  width: 100% !important;
}

body#contact {
  --paragraph-color: #BE1E2D;
  --title-color: #000000E5;
  --shop-open-hours-color: #1E1E1E;
  --secondary-text-color: #757575;
  --paragraph-before-width: 72px;
  --google-maps-border-color: #EEEEEE;
  --paragraph-gap: 24px;
  --video-height: 480px;

  @media (max-width: 768px) {
    --paragraph-before-width: 48px;
    --paragraph-gap: 16px;
    --video-height: 240px;
  }
}

.pb-paragraph-container {
  display: flex;
  width: 100%;
  margin-bottom: 32px;
}

.pb-paragraph {
  position: relative;
  color: var(--paragraph-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  text-transform: uppercase;
  padding-left: calc(var(--paragraph-before-width) + var(--paragraph-gap));
  margin: 0;
}

.pb-paragraph::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: var(--paragraph-before-width);
  background-color: var(--paragraph-color);
  height: 2px;
}

.pb-contact-page {
  width: 100%;
  padding: 0 0 40px 0;
  overflow-x: hidden;
}

.pb-contact-header {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: calc(var(--video-height) + 40px);
}

.pb-contact-tabs {
  display: flex;
  flex-wrap: wrap;
}

.pb-contact-tab {
  padding: 12px;
  color: var(--secondary-text-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  background-color: transparent !important;
  border: none;
  border-bottom: 2px solid var(--secondary-text-color);
  transition: all 0.3s ease;
}

.pb-contact-tab:focus {
  outline: none !important;
}

.pb-contact-tab.active,
.pb-contact-tab:hover {
  color: var(--paragraph-color);
  border-bottom: 2px solid var(--paragraph-color);
}

.pb-contact-panels {
  width: 100%;
}

.pb-contact-panel {
  display: none;
  animation: pb-contact-fadeIn 0.25s ease;
}

.pb-contact-panel.active {
  display: block;
}

.pb-contact-panel[hidden] {
  display: none !important;
}

@keyframes pb-contact-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pb-company-info-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 130%;
  color: var(--title-color);
  margin-top: 24px;
  margin-bottom: 32px;
}


/* Filmiki – zawsze na pełną szerokość strony (full-bleed, także gdy sekcja jest w .container) */
.pb-contact-header-videos {
  position: absolute;
  left: 0;
  right: 0;
  width: 100vw;
  overflow: hidden;
  max-height: var(--video-height);
  aspect-ratio: 16 / 9;
  background: #000;
  box-sizing: border-box;
}

.pb-contact-video-header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pb-contact-video-header-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

.pb-contact-video-header-wrapper .pb-contact-video,
.pb-contact-video-header-wrapper iframe.pb-contact-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.pb-contact-video-header-wrapper video.pb-contact-video {
  object-fit: cover;
}

.pb-contact-video-header-wrapper .pb-contact-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #111;
}

.pb-contact-video-wrapper {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.pb-contact-video-wrapper .pb-contact-video,
.pb-contact-video-wrapper iframe.pb-contact-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.pb-contact-video-wrapper video.pb-contact-video {
  object-fit: contain;
}

.pb-company-info-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  padding-bottom: 40px;
}

.pb-company-info-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  min-width: 240px;
}

.pb-company-info-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-company-info-link,
.pb-company-info-value {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--secondary-text-color);
}

.pb-company-info-link:hover {
  color: var(--secondary-text-color);
}

.pb-company-info-label {
  color: var(--title-color);
  font-weight: 500;
  line-height: 150%;
  margin: 0;
}

.pb-company-info-social-links {
  margin-top: 18px;
  display: flex;
  gap: 32px;
  align-items: center;
}

/* Google Maps wrapper */
.pb-google-maps-wrapper {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--google-maps-border-color);
  border-radius: 16px;
}

.pb-google-maps-wrapper-inner {
  height: 340px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.place-card {
  border-radius: 12px !important;
  top: 13px !important;
  left: 9px !important;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navigate {
  display: none;
}

/* Shop Open Hours */

.pb-company-info-right-column {
  border-radius: 12px;
  border: 1px solid var(--google-maps-border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pb-company-info-right-column .pb-shop-open-hours-title {
  text-align: center;
  font-size: 16px;
  line-height: 150%;
  margin: 0;
  font-weight: 500;
  color: #1E1E1E;
}

.pb-company-info-right-column .pb-shop-open-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-company-info-right-column .pb-shop-open-hours-list li {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 150%;
  margin: 0;
  gap: 8px;
  margin-bottom: 16px;
}

.pb-company-info-right-column .pb-shop-open-hours-list li:last-child {
  margin-bottom: 0;
}

.pb-company-info-right-column .pb-shop-open-hours-list li .pb-shop-open-hours-day {
  min-width: 114px;
}

.pb-company-info-right-column .pb-shop-open-hours-list li .pb-shop-open-hours-hours {
  color: var(--secondary-text-color);
  font-weight: 400;
}

.pb-team-title {
  margin: 0;
  font-size: 36px;
  line-height: 130%;
  font-weight: 600;
  min-width: 540px;
}

/* Team */

.pb-team-wrapper {
  padding-bottom: 40px;
}

.pb-team-title-container {
  display: flex;
  gap: 32px;
  margin: 0;
}

.pb-team-container {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.pb-team-member {
  display: flex;
  gap: 12px;
  max-height: 435px;
  position: relative;
  flex: 1;
  flex-direction: column;
}

.pb-team-member .pb-team-member-img {
  width: 100%;
  position: relative;
}

.pb-team-member .pb-team-member-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pb-team-member .pb-team-member-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-team-member .pb-team-member-info .pb-team-member-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
  margin: 0;
}

.pb-team-member .pb-team-member-info .pb-team-member-additional-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-team-member .pb-team-member-info .pb-team-member-additional-info > * {
  font-size: 14px;
  line-height: 140%;
  font-weight: 400;
  color: #6B6B6B;
}


.pb-team-member .pb-team-member-info .pb-team-member-additional-info .pb-team-member-email,
.pb-team-member .pb-team-member-info .pb-team-member-additional-info .pb-team-member-phone {
  font-weight: 500;
}

.pb-team-member .pb-team-member-info .pb-team-member-additional-info .pb-team-member-email {
  color: var(--paragraph-color);
  text-decoration: underline;
}
 
/* Gallery */
.pb-gallery-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-rows: minmax(200px, auto);
  gap: 12px;
  width: 100%;
}

.pb-gallery-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  max-height: 413px;
}

.pb-team-description {
  margin: 0;
}

/* Odd rows - first image takes 2 columns, other images take 1 column */
.pb-gallery-template-grid .pb-gallery-img:nth-child(6n+1) {
  grid-column: span 2;
}

.pb-gallery-template-grid .pb-gallery-img:nth-child(6n) {
  grid-column: span 2;
}

@media (max-width: 1240px) {
  .pb-contact-header {
    padding: 0 16px;
  }

  .pb-company-info-wrapper {
    flex-direction: column;
    padding-bottom: 24px;
    gap: 16px;
  }

  .pb-team-title-container {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .pb-contact-header {
    margin-top: calc(var(--video-height) + 16px);
  }

  .pb-company-info-title {
    margin: 16px 0;
    font-size: 24px;
  }

  .pb-paragraph-container {
    margin-bottom: 16px;
  }

  .pb-paragraph  {
    font-size: 16px;
  }

  .pb-contact-tabs .pb-contact-tab {
    font-size: 16px;
  }

  .pb-company-info-left-column {
    gap: 12px;
  }

  .pb-company-info-social-links {
    margin-top: 12px;
    gap: 24px;
  }

  .pb-team-title {
    min-width: 100%;
    font-size: 24px;
  }

  .pb-contact-label {
    font-size: 1.5rem;
  }

  .pb-contact-value {
    font-size: 18px;
  }

  .pb-contact-map-wrapper {
    min-height: 400px;
  }

  .pb-contact-map {
    height: 400px;
  }

  .pb-team-wrapper {
    padding-bottom: 24px;
  }

  .pb-team-container {
    flex-direction: column;
    gap: 16px;
  }

  .pb-team-container .pb-team-member {
    max-height: none;
    gap: 8px;
  }

  .pb-gallery-template-grid {
    margin-top: 24px;
  }

  .pb-gallery-template-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 16px;
  }

  /* .pb-gallery-template-grid .pb-gallery-img:nth-child(6n+1) {
    grid-column: 1
  }

  .pb-gallery-template-grid .pb-gallery-img:nth-child(6n) {
    grid-column: 1;
  } */
}

@media (max-width: 480px) {
  .pb-contact-title {
    font-size: 50px;
    line-height: 60px;
  }
  .pb-contact-label {
    font-size: 1.2rem;
  }
  .pb-contact-value {
    font-size: 16px;
  }
}
