/* =========================================
   1. GLOBAL & UTILITIES
   ========================================= */
.full-height {
    height: 100vh;
}

.icon-max {
    max-width: 75px!important;
    max-height: 75x!important;
}


.azgo-card {
  position: relative;
}

.azgo-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.azgo-card > * {
  position: relative;
  z-index: 2;
}

.square { aspect-ratio: 1 / 1; }

/* Fix dla Admin Bara WP (opcjonalny, czasem pomaga przy pinningu) */
body.admin-bar .site-header { top: 82px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* =========================================
   2. HEADER NAV MENU
   ========================================= */

   .wp-site-blocks,
.wp-block-template-part,
.wp-block-group,
.wp-block-columns,
.wp-block-column{
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}
/* ===== Header base ===== */
.azgo-header { position: relative; z-index: 1000; }
:root{
  --azgo-header-h: 104px; /* zmierzone z DevTools */
  --azgo-gap: 16px;
  --azgo-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--azgo-header-h) + var(--azgo-gap));
}


/* Topbar */
.azgo-topbar { transition: transform .22s ease, opacity .22s ease, height .22s ease, margin .22s ease, padding .22s ease; }
.azgo-header.is-sticky .azgo-topbar{
  transform: translateY(-110%);
  opacity: 0;
  height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

/* Nav: start = transparent/glass */
.azgo-nav{
  transition: background-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}



/* Sticky state */
.azgo-header.is-sticky .azgo-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  backdrop-filter: none;
}

/* Żeby menu nie “ucinało” klików pod spodem */
.azgo-header.is-sticky .azgo-nav,
.azgo-header.is-sticky .azgo-nav *{
  pointer-events: auto;
}




/* =========================================
   2. TABELA KOLORÓW RAL
   ========================================= */
.azgo-color-table td:first-child {
  width: 60px;
  
}
.azgo-color-table .azgo-hex-cell {
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  position: relative;
}

.azgo-color-table .azgo-hex-cell::after {
  content: "⧉";
  font-size: 0.9em;
  margin-left: 0.4em;
  opacity: 0.7;
}

#azgo-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9999;
}

#azgo-copy-toast.is-visible { opacity: 1; }


/* =========================================
   2. SITE HEADER (MENU)
   ========================================= */


/* =========================================
   3. HERO SECTION
   ========================================= */


/* Zoom Hover Class */
.zoom { transition: transform 0.3s ease-in-out; }
.hero-img.is-hovering { z-index: 100 !important; }


/* =========================================
   4. KLIKANIE KAFLA
   ========================================= */
/* Link-overlay na cały Cover */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container{
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-button{
  position: absolute;
  inset: 0;
  margin: 0 !important;
}

.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-button__link{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
  text-decoration: none;
}

/* klik łapie cały kafel */
.wp-block-group.azgo-square-grid > .wp-block-cover.square *{ pointer-events: none; }
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-button__link{ pointer-events: auto; }


   /* =========================================
   KONIEC SLIDERA PRODUKTOWEGO
   ========================================= */


/* =========================================
   4. PRODUKTY KOMPONENT
   ========================================= */

/* ================================
   AZGO – SQUARE GRID (FINAL)
   ================================ */

.wp-block-group.azgo-square-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 781px){
  .wp-block-group.azgo-square-grid{
    grid-template-columns: 1fr;
  }
}
@media (min-width: 782px){
  .wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container{
    padding: 24px;
  }
}
/* klucz: wymuś, żeby cover faktycznie wypełniał komórkę grida,
   niezależnie od tego co apple-liquid ustawia */
.wp-block-group.azgo-square-grid > .wp-block-cover{
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch;
  margin: 0 !important;
}

/* kwadrat – neutralne */
.wp-block-group.azgo-square-grid > .wp-block-cover.square{
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
}

/* obraz full */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__image-background,
.wp-block-group.azgo-square-grid > .wp-block-cover.square img{
  width: 100%;
  height: 100%;
  object-fit: cover;

}
/* Centrowanie zawartości Covera w kaflach */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* pion */
  align-items: center;      /* poziom */
  text-align: center;

}

/* Drobny reset typowych “rozjazdów” dla dzieci */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container > *{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Jeśli button ma być pod akapitami i nie rozjeżdżać szerokości */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-button{
  display: inline-block;
}

/* Padding i bezpieczne zawijanie tekstu w kaflu */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container{
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Zapobiega “ucinaniu” długich słów / URL-i */
.wp-block-group.azgo-square-grid > .wp-block-cover.square .wp-block-cover__inner-container p{
  overflow-wrap: anywhere;
  word-break: normal;
}

/* =========================================
   5. TABLE OF CONTENTS STICKY
   ========================================= */
/* =========================================
   TOC (Easy Table of Contents) – shortcode w kolumnie
   ========================================= */

:root{
  --azgo-header-h: 104px; /* wysokość sticky nav (bez topbara) */
  --azgo-gap: 16px;
  --azgo-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--azgo-header-h) + var(--azgo-gap));
}

/* Sticky wrapper (klasa na grupie z shortcode) */
.azgo-toc{
  position: sticky;
  top: var(--azgo-sticky-top);
  z-index: 2;
  max-height: calc(100vh - var(--azgo-sticky-top) - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Własny wygląd TOC (nie polegamy na CSS wtyczki przy shortcodzie) */
.azgo-toc .ez-toc-container{
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* Tytuł */
.azgo-toc .ez-toc-title-container{ margin: 0 0 10px; padding: 0; }
.azgo-toc .ez-toc-title{
  margin: 0;
  color: #111 !important;
  font-weight: 700;
  line-height: 1.25;
}

/* Lista i linki */
.azgo-toc .ez-toc-list{ margin: 0; padding: 0; list-style: none; }
.azgo-toc .ez-toc-list li{ margin: 0; padding: 0; }
.azgo-toc .ez-toc-list li + li{ margin-top: 6px; }

.azgo-toc .ez-toc-list a{
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
/*  border-radius: 10px; */
  line-height: 1.25;
}
.azgo-toc .ez-toc-list a:hover{ background: rgba(0,0,0,.06); }

/* Zagnieżdżenia */
.azgo-toc .ez-toc-list ul{
  margin: 6px 0 0;
  padding-left: 12px;
  border-left: 1px solid rgba(0,0,0,.10);
}

/* Offset dla przewijania po kliknięciu w TOC */
[id^="ez-toc-section"],
h2, h3, h4{
  scroll-margin-top: var(--azgo-sticky-top);
}
/* Kill Easy TOC border */
.azgo-toc .ez-toc-container{
  border: 0 !important;
}
.azgo-toc .ez-toc-container,
.azgo-toc .ez-toc-widget-container{
  border: none !important;
}

/* =========================================
   6. CONTACT FORM
   ========================================= */
.azgo-contact-form { width: 100%; }
.azgo-contact-form label { display: block; width: 100%; margin-bottom: 18px; }
.azgo-contact-form input,
.azgo-contact-form select,
.azgo-contact-form textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
}
.azgo-contact-form .row-2 { display: flex; gap: 20px; }
.azgo-contact-form .row-2 label { width: 50%; }
.azgo-contact-form textarea { min-height: 140px; resize: vertical; }
.azgo-contact-form .cf7-acceptance { font-size: 9px; line-height: 1.4; margin-bottom: 20px; }
.azgo-contact-form .btn-black {
    background: #000;
    color: #fff;
    border-radius: 10px;
    padding: 14px 26px;
    cursor: pointer;
    border: none;
}
@media (max-width: 768px) {
    .azgo-contact-form .row-2 { flex-direction: column; }
    .azgo-contact-form .row-2 label { width: 100%; }
}

/* ==========================================
   OFFER SECTION - FINAL COMPLETE CSS
   ========================================== */



/* ==========================================
   4. DESKTOP STYLES (min-width: 901px)
   ========================================== */
