/* ==========================================================
   Tesárstvo Gallo – štýly prevzaté z pôvodnej WordPress témy
   TheFour + thefour-child + Lightweight Grid Columns + Jetpack
   (len pravidlá, ktoré web skutočne používa)
   ========================================================== */

/* --- thefour/style.css (normalize) --- */
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary { display: block; }
a { background-color: transparent; }
a:active, a:hover { outline: 0; }
b, strong { font-weight: bold; }
h1 { font-size: 2em; margin: 0.67em 0; }
img { border: 0; max-width: 100%; height: auto; }
svg:not(:root) { overflow: hidden; }
figure { margin: 1em 40px; }
hr { height: 0; }
button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; }
button { overflow: visible; }
button, select { text-transform: none; }
button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; appearance: button; cursor: pointer; }
input { line-height: normal; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
input[type="search"] { -webkit-appearance: textfield; appearance: textfield; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
textarea { overflow: auto; }
ol, ul { box-sizing: border-box; }
:where(figure) { margin: 0 0 1em; }

/* --- grid --- */
.row, .grid { margin: -40px 0 0 -40px; }
.row::before, .grid::before, .row::after, .grid::after { content: " "; display: table; }
.row::after, .grid::after { clear: both; }
.column { position: relative; min-height: 1px; float: left; box-sizing: border-box; padding: 40px 0 0 40px; width: 100%; }
@media (min-width: 768px) {
  .one-half, .one-third, .two-third, .one-fourth { width: 50%; }
  .grid .column:nth-of-type(2n+1) { clear: left; }
}
@media (min-width: 992px) {
  .one-third { width: 33.3333%; }
  .grid .column:nth-of-type(2n+1) { clear: none; }
  .grid .column.one-half:nth-of-type(2n+1), .grid .column.one-third:nth-of-type(3n+1) { clear: left; }
}

/* --- základ --- */
* { box-sizing: border-box; }
body { color: #444; font: 17px/1.8 "Open Sans", sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; background: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: Montserrat, sans-serif; font-weight: 400; line-height: 1.2; margin: 1.333em 0 0.5em; color: #212121; }
h1 { font-size: 1.99995em; }
h2 { font-size: 1.68176em; }
h3 { font-size: 1.4142em; }
h4 { font-size: 1.1892em; }
h5 { font-size: 1em; }
p { margin: 0 0 2em; }
a { color: #13c0a2; text-decoration: none; transition: all 0.3s; }
a:hover { text-decoration: underline; }
input, textarea, select { padding: 0 1.2em; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px; transition: all 0.3s; color: #444; max-width: 100%; line-height: 48px; height: 50px; }
input[type="checkbox"], input[type="radio"] { height: auto; }
textarea { padding: 0.7em 1.2em; width: 100%; height: 8em; line-height: 1.8; }
button, input[type="submit"], input[type="reset"], input[type="button"], .button { padding: 0 1.4em; margin: 0; border-radius: 3px; border: 1px solid #13c0a2; background: #13c0a2; color: #fff; font-size: 0.840901em; line-height: 50px; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; transition: all 0.3s; display: inline-block; }
button:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, .button:hover,
button:focus, input[type="submit"]:focus, input[type="reset"]:focus, input[type="button"]:focus, .button:focus { background: #109d85; border-color: #109d85; color: #fff; text-decoration: none; }
nav ul { list-style: none; padding: 0; margin: 0; }
:focus, :active { outline: 0; }
.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }
::selection { background: #13c0a2; color: #fff; }
::-webkit-input-placeholder { color: #a9a9a9; }
::placeholder { color: #a9a9a9; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; position: absolute !important; }
.screen-reader-text:focus { background-color: #ddd; color: #444; display: block; font-size: 1em; height: auto; left: 5px; top: 5px; padding: 15px 23px 14px; width: auto; z-index: 100000; clip: auto !important; }

/* --- rozloženie --- */
.container { max-width: 94%; margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { .container { width: 540px; max-width: 100%; } }
@media (min-width: 768px) { .container { width: 720px; } }
@media (min-width: 992px) { .container { width: 960px; } }
@media (min-width: 1200px) { .container { width: 1140px; } }
.site { overflow: hidden; position: relative; z-index: 2; transition: transform 0.5s; background: #eee; }
body.page .site, body.single .site { background: #fff; }
.main { margin: 110px auto; }
.content { width: 65%; float: left; overflow-wrap: break-word; }
.page-template-grid-page .content { width: 100%; }
.contentfullwidth { position: relative; width: 100%; border: none; }
.contentfullwidth article { box-shadow: none; }

/* --- hlavička --- */
.site-header { background: #212121 no-repeat center center / cover; position: relative; padding: 25px 0; max-height: 340px; }
.site-header::after { content: " "; display: block; background: rgba(0, 0, 0, 0.5); position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  -webkit-mask-image: -webkit-gradient(linear, center top, center bottom, color-stop(0.00, rgba(0,0,0,1)), color-stop(1.00, rgba(0,0,0,0))); }
.header-inner { display: none; }
.navbar { z-index: 9; position: relative; padding: 0 14px 0 30px; display: flex; align-items: center; justify-content: space-between; }
.site-branding { text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; }
.site-branding--vertical { display: flex; flex-direction: column; align-items: center; }
.site-branding--vertical .custom-logo-link { margin: 0 0 10px; }
.custom-logo-link { margin-right: 10px; }
.custom-logo { display: block; max-height: 200px; max-width: 200px; }
.site-name { flex: 1; width: 100%; display: block; text-align: center; margin-top: 15px; }
.site-description { font-family: "Open Sans", sans-serif; font-size: 0.707115em; margin: 0; color: rgba(255, 255, 255, 0.75); font-weight: bold; }

/* --- menu --- */
.site-navigation { font-weight: bold; }
.main-menu a { display: block; padding: 14px 16px; color: rgba(255, 255, 255, 0.75); }
.main-menu a:hover { text-decoration: none; }
.main-menu > ul > li { float: left; }
.main-menu > ul > li:hover > a, .main-menu > ul > li.current-menu-item > a, .main-menu > ul > li.current-menu-ancestor > a { color: #13c0a2; }
.main-menu > ul > li.menu-item-has-children > a::after { content: ""; display: block; border: 5px solid transparent; border-top-color: rgba(255, 255, 255, 0.75); position: absolute; z-index: 1001; right: 17px; top: 50%; margin-top: -2px; }
.main-menu > ul > li.menu-item-has-children > a:hover::after { border-top-color: #fff; }
.main-menu li { position: relative; text-transform: uppercase; font-size: 0.840901em; line-height: 1; letter-spacing: 1px; }
.main-menu li.menu-item-has-children > a { padding-right: 35px; }
.main-menu li ul { position: absolute; left: 0; top: 90%; opacity: 0; visibility: hidden; z-index: 999; transition: all 0.2s; margin: 0; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); }
.main-menu li:hover > ul { opacity: 1; top: 100%; visibility: visible; }
.main-menu li li { width: 200px; background: #fff; line-height: 1.3; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.main-menu li li:last-child { border-bottom: none; }
.main-menu li li:hover > a, .main-menu li li.current-menu-item > a { color: #109d85; }
.main-menu li li a { padding: 1em 1.3em; color: #666; }
.main-menu li li a:hover { background: #f6f6f6; }
.menu-toggle { width: 24px; height: 15px; padding: 0; border: 0; position: relative; background: transparent; text-indent: -9999px; display: none; }
.menu-toggle:hover, .menu-toggle:focus { background: transparent; }
.menu-toggle::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 3px; border-top: 9px double rgba(255, 255, 255, 0.75); border-bottom: 3px solid rgba(255, 255, 255, 0.75); transition: all 0.5s; }
.mobile-menu { width: 240px; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; overflow: auto; display: none; background: #282828; }
.mobile-menu a { display: block; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.75); font-size: 0.840901em; background: #282828; text-decoration: none; }
.mobile-menu a:hover, .mobile-menu .current-menu-item > a { color: #fff; text-decoration: none; }
.mobile-menu ul ul { font-size: 0.840901em; }
.mobile-menu ul ul a { padding-left: 40px; background: #303030; }
.animating .mobile-menu { display: block; }
.mobile-menu-open .site { transform: translate3d(-240px, 0, 0); cursor: pointer; }
.mobile-menu-open .mobile-menu { display: block; }
.mobile-menu-open .menu-toggle::before { border-color: #fff; }
@media (min-width: 992px) { .site-navigation { max-width: calc(100% - 300px); } }

/* --- obsah --- */
.hentry { background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.08); margin-bottom: 0; border-radius: 4px; }
body.page .content > article { background: transparent; box-shadow: none; margin-bottom: 0; }
body.page .content > article .entry-content { padding: 0; }
.entry-header { padding-bottom: 4%; }
.entry-title { margin: 0; }
.entry-title a { color: #212121; }
body.page .entry-title { text-transform: none; }
.entry-meta { color: #999; margin-bottom: 5px; }
.entry-summary p { margin-bottom: 10px; }
.entry-content p:first-child, .entry-summary p:first-child { margin-top: 0; }
.entry-content p:last-child, .entry-summary p:last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2 { margin-top: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 2em; }
.entry-content hr { width: 50%; height: 4px; background: #eee; margin: 2em auto; border: 0; }
.wp-caption { margin-bottom: 1.2em; max-width: 100%; margin-left: 0; margin-right: 0; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 0.840901em; color: #888; margin: 0.8075em 0; text-align: center; }
.alignleft, .alignright { margin-top: 0; margin-bottom: 1.2em; }
.alignleft { float: left; margin-right: 1em; }
.gallery { margin: 0 -0.5em 2em; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; padding: 0 0.5em; margin: 0 0 1em; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-caption { display: block; }
.pagebottomwidget { margin: 0 0 30px; }

/* --- Služby a výrobky (karty podstránok) --- */
.child-pages { margin-top: 0; }
.child-pages article { transition: box-shadow 0.3s; min-height: 500px; margin-bottom: 0; }
.child-pages article:hover { box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.15); }
.entry-media { position: relative; }
.entry-media img { display: block; border-radius: 4px 4px 0 0; margin: 0 auto; width: 100%; }
.entry-text { padding: 8% 10%; }

/* --- Lightweight Grid Columns --- */
.lgc-column { box-sizing: border-box; }
.lgc-grid-parent { padding-left: 0; padding-right: 0; }
.lgc-column::before, .lgc-column::after { content: "."; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0; }
.lgc-column::after { clear: both; }
.lgc-clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; }
.lgc-column p { margin-bottom: 1.5em; }
.inside-grid-column { padding: 0 10px; margin-bottom: 1.5em; }
.inside-grid-column > p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .lgc-mobile-grid-100 { clear: both; width: 100%; }
  .lgc-mobile-grid-100 .inside-grid-column { padding: 0; }
}
@media (min-width: 768px) and (max-width: 1025px) { .lgc-tablet-grid-33 { float: left; width: 33.3333%; } }
@media (min-width: 1025px) { .lgc-grid-33 { float: left; width: 33.3333%; } }
@media (max-width: 1024px) { .lgc-clear { display: none; } }

/* --- galéria – mozaika (ako NextGEN Pro Mosaic) --- */
.ngg-pro-mosaic-container { position: relative; overflow: hidden; margin: 0; }
.ngg-pro-mosaic-container .jg-entry { position: absolute; overflow: hidden; }
.ngg-pro-mosaic-container .jg-entry a { display: block; width: 100%; height: 100%; }
.ngg-pro-mosaic-container .jg-entry img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; transition: opacity 0.3s; }
.ngg-pro-mosaic-container .jg-entry a:hover img { opacity: 0.85; }
.ngg-pro-mosaic-container.no-js { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
.ngg-pro-mosaic-container.no-js .jg-entry { position: static; width: 240px; height: 180px; }

/* --- kontaktný formulár (Jetpack) --- */
.contact-form label { display: block; float: none; font-weight: 700; margin-bottom: 0.25em; }
.contact-form label.checkbox { font-weight: 400; }
.contact-form label span.grunion-label-required, .grunion-label-required { font-size: 85%; font-weight: 400; margin-left: 0.25em; opacity: 0.6; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"] { width: 100%; }
@media only screen and (min-width: 600px) {
  .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form input[type="text"] { width: 50%; }
}
.contact-form textarea { display: block; }
.contact-form .clear-form { clear: both; }
.contact-form input[type="checkbox"] { height: 1rem; width: 1rem; margin: 0 0.75rem 0 0; border-radius: 4px; }
.contact-form__checkbox-wrap { align-items: baseline; display: inline-flex; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 1em 0 0; font-weight: 700; }
.form-status.ok { color: #339966; }
.form-status.err { color: #b32d2e; }

/* --- widgety a pätička --- */
.widget { margin-bottom: 15%; overflow: hidden; }
.widget :last-child { margin-bottom: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 10px 0; border-top: 1px solid #e6e6e6; }
.widget > ul > li:first-child { border-top: 0; padding-top: 0; }
.widget:last-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.widget-title { text-transform: uppercase; margin: 0 0 20px; }
.search-form { position: relative; }
.search-form label { display: block; }
.search-form .search-field { padding: 0 4.5em 0 1.5em; width: 100%; }
.search-form .search-submit { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 0 3px 3px 0; }
.widget_wpcom_social_media_icons_widget ul { list-style-type: none; margin-left: 0; }
.widget_wpcom_social_media_icons_widget ul li { border: 0; display: inline; margin-right: 0.5em; padding: 0; }
.widget_wpcom_social_media_icons_widget li a { border: 0; text-decoration: none; }
.widget_wpcom_social_media_icons_widget a { display: inline-block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; text-align: center; color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.5); transition: background 0.2s; vertical-align: middle; }
.widget_wpcom_social_media_icons_widget a svg { width: 16px; height: 16px; vertical-align: middle; margin-top: -3px; fill: currentColor; }
.widget_wpcom_social_media_icons_widget a:hover { background: rgba(0, 0, 0, 0.2); }
.footer-widgets .genericon-facebook { background: #4267b2; }
.footer-widgets .genericon-instagram { background: #fa0046; }
.site-footer { font-size: 0.840901em; background: #1d1d1d; color: rgba(255, 255, 255, 0.5); }
.site-footer .widget { margin-bottom: 0; }
.footercols .widget { margin-bottom: 40px; }
.site-footer li { border: none; padding: 0; line-height: 2; }
.site-footer a { color: rgba(255, 255, 255, 0.8); font-weight: 400; }
.site-footer .widget-title { color: rgba(255, 255, 255, 0.8); }
.site-footer address { font-style: italic; }
.footer-widgets { padding: 3.5em 0; }

/* --- tlačidlo "hore" --- */
#totopbtn { display: none; position: fixed; bottom: 0; right: 0; z-index: 99; border: none; outline: none; background-color: #13c0a2; color: #fff; cursor: pointer; padding: 15px 25px 10px; border-radius: 0; line-height: 1; }
#totopbtn:hover { background: #109d85; }
#totopbtn img { display: block; }

/* --- lightbox (ako Fancybox) --- */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.75); }
.lightbox .lb-frame { position: relative; background: #fff; padding: 10px; border-radius: 4px; box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); max-width: 92vw; }
.lightbox img { display: block; max-width: calc(92vw - 20px); max-height: calc(88vh - 20px); width: auto; height: auto; }
.lightbox .lb-title { text-align: center; color: #333; font-size: 13px; padding-top: 8px; }
.lightbox .lb-close { position: absolute; top: -15px; right: -15px; width: 30px; height: 30px; border-radius: 50%; background: #000; color: #fff; border: 2px solid #fff; font-size: 18px; line-height: 24px; padding: 0; text-indent: 0; box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 0; bottom: 0; width: 35%; background: transparent; border: 0; color: #fff; font-size: 40px; opacity: 0; padding: 0 15px; text-shadow: 0 0 6px rgba(0, 0, 0, 0.8); }
.lightbox .lb-prev { left: 0; text-align: left; }
.lightbox .lb-next { right: 0; text-align: right; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { opacity: 1; background: transparent; }

/* --- blog --- */
.entry-date { text-transform: uppercase; font-size: 0.840901em; display: block; color: #999; }

/* --- responzívne --- */
@media (max-width: 991px) {
  .main-menu { display: none; }
  .site-navigation { min-width: 24px; height: 15px; margin: 0 16px 0 30px; }
  .menu-toggle { display: block; }
  .site-footer .widget { margin-bottom: 5%; }
}
@media (max-width: 767px) {
  .main { margin: 70px auto; }
  .site-description { display: none; }
  .site-footer .widget { margin-bottom: 15%; }
  .content { width: 100%; float: none; }
}
@media (max-width: 479px) {
  .site-header { padding: 10px 0; }
  .navbar { padding: 0 10px; }
  .site-navigation { margin-right: 0; }
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1.2em; }
}
