/* Tarazzo FSE - odwzorowanie 1:1 ze strony Tarazzo (Astro) */

html, body {
  margin: 0;
  background: #0b0d10;
  color: #f4f1ea;
  scroll-behavior: smooth;
  scrollbar-color: #d4834b #0b0d10;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Remove WordPress blockGap margin between Header, Main, and Footer */
.wp-site-blocks > * + *,
main > * + * {
  margin-block-start: 0 !important;
}

::selection {
  background: #d4834b;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #d4834b;
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 90px;
}

.wp-block-heading {
  text-wrap: balance;
}

p, dd {
  text-wrap: pretty;
}

.tz-tabular {
  font-variant-numeric: tabular-nums;
}

/* Consistent container padding (20px mobile, exact 1280px centered on desktop) */
.tz-header,
.tz-section,
.tz-page-head,
.tz-footer {
  padding-inline: max(20px, calc((100% - 1280px) / 2)) !important;
}

.tz-section > *,
.tz-page-head > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Left-align intro headings & subtitles inside constrained sections */
.tz-section .tz-muted,
.tz-page-head h1,
.tz-page-head .tz-muted {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 60ch;
}

/* Header */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 40;
}

.tz-header {
  background: #060709 !important;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  padding-top: 8px;
  padding-bottom: 8px;
}

.tz-header-row {
  min-height: 82px;
  gap: 20px;
}

.tz-logo img {
  display: block;
  width: 176px;
  height: auto;
  object-fit: contain;
}

.tz-header .wp-block-navigation a {
  color: rgba(249, 247, 243, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  text-underline-offset: 6px;
  white-space: nowrap;
}

.tz-header .wp-block-navigation a:hover,
.tz-header .wp-block-navigation a.is-current,
.tz-header .wp-block-navigation .current-menu-item > a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #d4834b;
  text-decoration-thickness: 2px;
}

.tz-header-cta .wp-block-button__link {
  padding: 13px 24px;
  font-size: 0.96rem;
}

@media (max-width: 1100px) {
  .tz-header-cta {
    display: none !important;
  }
  .tz-header .wp-block-navigation {
    margin-left: auto;
  }
  .tz-header .wp-block-navigation__responsive-container-open {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(244, 241, 234, 0.22);
    border-radius: 4px;
    color: #ffffff;
    justify-content: center;
    align-items: center;
  }
  .tz-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 24px 20px;
  }
  .tz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start !important;
    width: 100%;
    gap: 0 !important;
  }
  .tz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
    border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  }
  .tz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    padding: 12px 0;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .tz-logo img {
    width: 142px;
  }
}

/* Gutenberg Lightbox scrim */
.wp-lightbox-overlay .scrim {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(6, 7, 9, 0.9) !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .close-button {
  color: #ffffff !important;
  background: rgba(20, 23, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px;
}

/* Hero Cover 1:1 */
.tz-hero-cover {
  min-height: clamp(560px, 82vh, 780px) !important;
  padding: 64px clamp(20px, 3.5vw, 60px) 56px !important;
  background: #060709;
}

.tz-hero-cover .wp-block-cover__inner-container {
  max-width: 1280px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

.tz-hero-cover .wp-block-cover__inner-container > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.tz-hero-cover .wp-block-cover__background {
  opacity: 1 !important;
  background:
    linear-gradient(90deg, rgba(14, 17, 21, 0.88) 0%, rgba(14, 17, 21, 0.54) 55%, rgba(14, 17, 21, 0.22) 100%),
    linear-gradient(180deg, rgba(14, 17, 21, 0.14) 0%, rgba(14, 17, 21, 0.78) 100%) !important;
}

.tz-hero-cover h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.25rem) !important;
  color: #ffffff !important;
  margin-bottom: 18px;
  max-width: 14ch;
}

.tz-hero-lead {
  color: rgba(249, 247, 243, 0.92);
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  margin: 0 0 28px;
  max-width: 52ch;
}

.tz-btn-outline .wp-block-button__link {
  background: rgba(20, 23, 26, 0.5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.tz-btn-outline .wp-block-button__link:hover {
  background: rgba(20, 23, 26, 0.8);
  border-color: #ffffff;
}

.tz-btn-dark .wp-block-button__link {
  background: #232830;
  color: #ffffff;
  border: 1px solid rgba(244, 241, 234, 0.22);
}

.tz-btn-dark .wp-block-button__link:hover {
  background: #2f3641;
  border-color: rgba(244, 241, 234, 0.42);
}

/* Sections */
.tz-section {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}

.tz-page-head {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}

.tz-page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 16px;
  max-width: 18ch;
}

.tz-muted {
  color: #b8b2a6;
}

/* Facts strip 1:1 */
.tz-facts-grid {
  gap: clamp(28px, 4vw, 56px);
}

.tz-fact {
  border-top: 1px solid #f4f1ea;
  padding-top: 18px;
}

.tz-fact h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.tz-fact p {
  color: #b8b2a6;
  font-size: 0.98rem;
  margin: 0;
}

/* Offer Stack + Carousels 1:1 */
.tz-offer-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
  margin-top: 48px;
}

.tz-offer-row {
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.tz-offer-row h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem) !important;
  margin-bottom: 14px;
}

@media (min-width: 782px) {
  .tz-offer-row.is-reversed .tz-offer-media-col {
    order: 2;
  }
}

.tz-offer-media {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #1f242b;
}

.tz-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.tz-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tz-carousel-slide.is-active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

/* Before / After slider 1:1 */
.tz-compare-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: 40px;
}

@media (max-width: 720px) {
  .tz-compare-pair {
    grid-template-columns: 1fr;
  }
}

.tz-compare-unit {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tz-compare-unit figcaption {
  font-weight: 600;
  font-size: 1rem;
  color: #f4f1ea;
}

.tz-compare-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
  background: #1f242b;
}

.tz-compare-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tz-compare-overlay {
  position: absolute;
  inset: 0;
}

.tz-tag-before,
.tz-tag-after {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
}

.tz-tag-before {
  left: 16px;
  background: rgba(20, 23, 26, 0.84);
}

.tz-tag-after {
  right: 16px;
  background: #a85420;
}

.tz-slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}

.tz-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #060709;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.tz-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

/* Gallery Mosaic + Subpage Galleries 1:1 */
.wp-block-gallery.has-nested-images figure.wp-block-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #1f242b;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.03);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  margin: 0;
  background: linear-gradient(180deg, transparent, rgba(14, 17, 21, 0.82));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

@media (max-width: 720px) {
  .tz-mosaic-gallery .wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .tz-mosaic-gallery .wp-block-gallery.has-nested-images figure.wp-block-image {
    width: 100% !important;
  }
  .tz-align-left-mobile {
    justify-content: flex-start !important;
  }
}

/* First wide shot on specs subpages */
.tz-sub-gallery .wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

.tz-sub-gallery .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: 100% !important;
  max-width: none !important;
}

.tz-sub-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:first-child {
  grid-column: 1 / -1 !important;
  aspect-ratio: 16 / 10 !important;
}

@media (max-width: 720px) {
  .tz-sub-gallery .wp-block-gallery.has-nested-images {
    grid-template-columns: 1fr !important;
  }
}

/* Showroom band */
.tz-showroom-band {
  background: #060709 !important;
}

.tz-showroom-photos .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

.tz-showroom-photos .wp-block-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  width: 100%;
}

/* Specs list (2-column horizontal rows on desktop) */
.tz-spec-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  margin: 0;
}

.tz-spec-item strong {
  color: #e5aa80;
  font-weight: 700;
}

.tz-spec-item span {
  color: rgba(249, 247, 243, 0.92);
}

.tz-contact-dl .tz-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

@media (max-width: 720px) {
  .tz-spec-item,
  .tz-contact-dl .tz-spec-item {
    display: block;
  }
  .tz-spec-item strong {
    display: block;
    margin-bottom: 4px;
  }
}

/* Gallery tabs */
.tz-gal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tz-gal-tab {
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  background: #0b0d10;
  color: #b8b2a6;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.tz-gal-tab:hover {
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.4);
}

.tz-gal-tab.is-active {
  background: #a85420;
  border-color: #a85420;
  color: #ffffff;
}

/* Contact Form 7 dark styling + 2x2 grid */
.tz-form-card {
  background: #0b0d10;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 32px);
}

.tz-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tz-form-grid > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .tz-form-grid {
    grid-template-columns: 1fr;
  }
}

.wpcf7-form p {
  margin-bottom: 16px;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #f4f1ea;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #f4f1ea;
  background: #14181e;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 4px;
  box-sizing: border-box;
}

.wpcf7-form select,
.wpcf7-form select.wpcf7-select {
  display: inline-block;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 10px 36px 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f4f1ea;
  background-color: #14181e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8b2a6' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 4px;
  box-sizing: border-box;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.wpcf7-form select::picker-icon {
  display: none !important;
}

.wpcf7-form input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: #b8b2a6;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid #d4834b;
  border-color: #d4834b;
}

.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  color: #b8b2a6;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  background: #a85420;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: #8f4518;
}

.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 4px;
  color: #f4f1ea;
}

/* Footer 1:1 */
.tz-footer {
  background: #060709 !important;
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}

.tz-footer-row {
  gap: 24px;
}

.tz-footer-name {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.tz-footer-legal {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(249, 247, 243, 0.72);
}

.tz-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
}

.tz-footer-nav a {
  color: rgba(249, 247, 243, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
}

.tz-footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.tz-footer-info {
  font-size: 0.88rem;
  color: rgba(249, 247, 243, 0.85);
  text-align: right;
  margin: 0;
  line-height: 1.6;
}

.tz-footer-info a {
  color: rgba(249, 247, 243, 0.92);
  text-decoration: none;
}

.tz-footer-info a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .tz-footer-info {
    text-align: left;
  }
}
