/* Kapriz: styles for pages converted from WPBakery to WordPress blocks (2026-11) */

/* rows / containers (replaces WPBakery "boxed" rows: 1200px content + 50px side padding) */
.kz-row { margin: 0; }
.kz-boxed { max-width: 1300px; margin-left: auto !important; margin-right: auto !important; padding-left: 50px; padding-right: 50px; box-sizing: border-box; }
.kz-row-inner.kz-boxed { padding-left: 50px; padding-right: 50px; }
@media (max-width: 781px) { .kz-boxed, .kz-row-inner.kz-boxed { padding-left: 15px; padding-right: 15px; } }
.kz-cols { gap: 30px; margin-bottom: 0; }
/* WPBakery gave every content element a 35px bottom gap */
.kz-text { margin-bottom: 35px; }
.kz-text > :last-child { margin-bottom: 0; }
.kz-row > .wp-block-group:not(.kz-text) { margin-top: 0; }

/* round icons (replaces vc_icon) */
.kz-icon { text-align: center; margin: 0 0 35px; }
.kz-icon__circle { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #ebebeb; }
.kz-icon__circle i { color: #5472d2; font-size: 30px; line-height: 1; }
.kz-icon--outline .kz-icon__circle { background: transparent; border: 2px solid #000; }
.kz-icon--outline .kz-icon__circle i { color: #000; font-size: 26px; }

/* separators (replaces vc_separator) */
hr.wp-block-separator.kz-sep { border: 0; border-top: 4px solid #ebebeb; width: 100%; max-width: none; margin: 0 0 35px; opacity: 1; background: none; height: 0; }
hr.wp-block-separator.kz-sep--accent { border-top: 3px solid #f7be68; width: 20%; margin: 0 auto 35px; }

/* round images (replaces vc_single_image circle style) */
.wp-block-image.kz-circle { text-align: center; margin: 0 auto 35px; }
.wp-block-image.kz-circle img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }

/* shortcodes placed in blocks: no extra paragraph gaps */
.kz-row .wp-block-shortcode > p:empty { display: none; }

/* ---- slider made from a Gallery block with class "kz-slider" ---- */
.wp-block-gallery.kz-slider { position: relative; display: block !important; margin: 0 0 30px; background: #fff; }
/* before the script runs: show only the first photo, centered (no "gallery flash" on load) */
.wp-block-gallery.kz-slider:not(.is-ready) > figure.wp-block-image:not(:first-of-type) { display: none !important; }
.wp-block-gallery.kz-slider:not(.is-ready) > figure.wp-block-image:first-of-type { display: flex !important; justify-content: center; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.wp-block-gallery.kz-slider:not(.is-ready) > figure.wp-block-image:first-of-type img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: calc(100vh - 120px); object-fit: contain !important; flex: 0 0 auto !important; }
/* fade slider: all slides share one grid cell; the active one fades in (old RevSlider: fade 300ms) */
.kz-slider__track { display: grid; }
.wp-block-gallery.kz-slider .kz-slider__track > figure.wp-block-image { grid-area: 1 / 1; width: 100% !important; max-width: 100% !important; margin: 0 !important; display: flex !important; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity var(--kz-fade, 300ms) ease, visibility 0s linear var(--kz-fade, 300ms); }
.wp-block-gallery.kz-slider .kz-slider__track > figure.wp-block-image.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--kz-fade, 300ms) ease, visibility 0s; }
.wp-block-gallery.kz-slider .kz-slider__track > figure.wp-block-image img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: calc(100vh - 120px); object-fit: contain !important; flex: 0 0 auto !important; }
@media (prefers-reduced-motion: reduce) { .wp-block-gallery.kz-slider .kz-slider__track > figure.wp-block-image { transition: none !important; } }
.kz-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.08); color: #333; font-size: 30px; line-height: 44px; cursor: pointer; }
.kz-slider__btn--prev { left: 12px; } .kz-slider__btn--next { right: 12px; }
.kz-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; z-index: 2; }
.kz-slider__dot { display: inline-block; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.kz-slider__dot.is-active { background: rgba(0,0,0,.65); }
@media (max-width: 781px) { .kz-slider__btn { display: none; } }

/* theme icon_box: empty icon holder must not draw borders (matches the live site) */
.shortcode_icon_box .icon_wrapper { border-width: 0 !important; }

/* WordPress flow layout zeroes the last child's margin and adds its own block gap;
   WPBakery didn't — keep the original 35px rhythm inside converted rows */
.kz-row.is-layout-flow > *, .kz-row .is-layout-flow > * { margin-block-start: 0; }
.kz-row .is-layout-flow > .kz-text:last-child,
.kz-row.is-layout-flow > .kz-text:last-child { margin-block-end: 35px; }
.kz-row .is-layout-flow > .kz-icon:last-child,
.kz-row .is-layout-flow > .wp-block-image.kz-circle:last-child { margin-block-end: 35px; }
.kz-row.is-layout-flow > .wp-block-separator.kz-sep:last-child,
.kz-row .is-layout-flow > .wp-block-separator.kz-sep:last-child { margin-block-end: 35px; }
.kz-row { margin-block-start: 0 !important; margin-block-end: 0; }

/* ---- MAX messenger buttons (replaced WhatsApp 2026-11-24); same shape as the old green buttons ---- */
.kz-max-btn, .kz-max-btn-header { border: 1px solid #fff; border-radius: 10px; color: #fff; background: #5a6cff linear-gradient(90deg, #3fa9ff 0%, #7b3cff 100%); text-align: center; padding: 2px 0; margin-bottom: 25px; }
.kz-max-btn { font-size: 25px; }
.kz-max-btn-header { width: 110%; font-size: 17px; }
.kz-max-icon { display: inline-block; width: 34px; height: 34px; margin: 6px 6px 6px 0; vertical-align: middle; }
.kz-max-btn-header .kz-max-icon { width: 26px; height: 26px; margin: 5px 6px 5px 0; }
a.kz-max-link, a.kz-max-link:hover { color: #fff; text-decoration: none; }
.kz-max-btn:hover, .kz-max-btn-header:hover { filter: brightness(1.07); }

/* ---- MAX icon in header/footer social icons (replaced Instagram 2026-11-24); monochrome like theme glyphs ---- */
.kz-icon-max { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor; -webkit-mask: url(max-mono.svg) center / contain no-repeat; mask: url(max-mono.svg) center / contain no-repeat; }

/* ---- Header buttons WhatsApp + MAX: identical size (2026-11-24) ---- */
.whatsapp-btn-header, .kz-max-btn-header { box-sizing: border-box; width: 110%; font-size: 17px; line-height: 36px; padding: 2px 0; white-space: nowrap; }
.whatsapp-btn-header .woo-whatsapp-logo-icon, .kz-max-btn-header .kz-max-icon { display: inline-block; width: 26px; height: 26px; margin: 0 6px 0 0; vertical-align: middle; }

/* ---- Home H1 (SEO, 2026-11-24): same look as section headings ---- */
.kz-home-h1 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
