/* ================================================
   SIPLY.PL - Global Design System
   Inspired by arch-b.pl - dark minimal architecture
   Font: Montserrat | Palette: #111 / #f5f5f5 / white
   ================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body,
.elementor-widget-text-editor,
.elementor-text-editor,
p, li, td, th, blockquote {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    line-height: 1.8;
}

/* --- All headings - Montserrat (kolor kontroluje Elementor) --- */
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.3px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* --- Navigation / Header --- */
#site-navigation a,
.main-navigation a,
nav a,
.site-header a,
header .nav-menu a,
.primary-menu a {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #111111 !important;
    text-decoration: none !important;
}

header,
.site-header,
#masthead {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    box-shadow: none !important;
}

/* --- Logo size --- */
.site-header .site-logo img,
.site-header .custom-logo,
.site-branding .site-logo img,
#site-header .site-logo img,
header .custom-logo,
.site-header .custom-logo-link svg,
header .custom-logo-link svg {
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}
.site-header .site-branding,
#site-header .site-branding {
    max-width: 320px !important;
}
@media (max-width: 768px) {
    .site-header .site-logo img,
    .site-header .custom-logo,
    .site-branding .site-logo img,
    #site-header .site-logo img,
    header .custom-logo,
    .site-header .custom-logo-link svg,
    header .custom-logo-link svg {
        max-height: 48px !important;
    }
    .site-header .site-branding,
    #site-header .site-branding {
        max-width: 200px !important;
    }
}

/* --- IMAGE BOXES --- */
.elementor-image-box-wrapper {
    overflow: hidden !important;
    position: relative !important;
    background: #111111 !important;
    display: block !important;
    width: 100% !important;
}

.elementor-image-box-img {
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.elementor-image-box-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease, filter 0.3s ease !important;
    filter: brightness(0.80);
}

.elementor-image-box-wrapper:hover .elementor-image-box-img img {
    transform: scale(1.06) !important;
    filter: brightness(0.65);
}

.elementor-image-box-content {
    padding: 18px 16px 14px !important;
    background: #111111 !important;
    text-align: center !important;
}

.elementor-image-box-title,
.elementor-image-box-title a {
    color: #ffffff !important;
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.elementor-image-box-description {
    display: none !important;
}

/* Pergole page */
body.page-id-23 .elementor-image-box-wrapper {
    overflow: hidden !important;
    position: relative !important;
    background: transparent !important;
}
body.page-id-23 .elementor-image-box-img {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}
body.page-id-23 .elementor-image-box-img img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    filter: brightness(1) !important;
}
body.page-id-23 .elementor-image-box-wrapper:hover .elementor-image-box-img img {
    filter: brightness(0.8) !important;
}
body.page-id-23 .elementor-image-box-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%) !important;
    padding: 20px 18px 18px !important;
    text-align: left !important;
}
body.page-id-23 .elementor-image-box-title {
    font-size: 13px !important;
    letter-spacing: 2px !important;
}
body.page-id-23 .elementor-image-box-description {
    display: block !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-top: 6px !important;
    padding: 0 !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease, max-height 0.4s ease, margin-top 0.25s ease !important;
}
body.page-id-23 .elementor-image-box-wrapper:hover .elementor-image-box-description {
    opacity: 1 !important;
    max-height: 100px !important;
    margin-top: 8px !important;
}

body.page-id-23 .pergole-gallery-section .elementor-widget-image .elementor-widget-container {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    overflow: hidden !important;
    display: block !important;
}
body.page-id-23 .pergole-gallery-section .elementor-widget-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
body.page-id-23 .pergole-motion-bespoke .elementor-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}
body.page-id-23 .pergole-motion-bespoke .elementor-column {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
}
body.page-id-23 .pergole-products-grid .elementor-container,
body.page-id-23 .elementor-section[data-id="991e8d35"] .elementor-container,
body.page-id-23 .elementor-section:has(.elementor-widget-image-box) .elementor-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: flex-start !important;
}
body.page-id-23 .pergole-products-grid .elementor-column:first-child,
body.page-id-23 .elementor-section[data-id="991e8d35"] .elementor-column:first-child,
body.page-id-23 .elementor-section:has(.elementor-widget-image-box) .elementor-column:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
body.page-id-23 .pergole-products-grid .elementor-column:not(:first-child),
body.page-id-23 .elementor-section[data-id="991e8d35"] .elementor-column:not(:first-child),
body.page-id-23 .elementor-section:has(.elementor-widget-image-box) .elementor-column:not(:first-child) {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.page-id-23 .pergole-products-grid .elementor-column:not(:first-child),
    body.page-id-23 .elementor-section[data-id="991e8d35"] .elementor-column:not(:first-child),
    body.page-id-23 .elementor-section:has(.elementor-widget-image-box) .elementor-column:not(:first-child) {
        flex: 0 0 calc((100% - 20px) / 2) !important;
        max-width: calc((100% - 20px) / 2) !important;
    }
}
@media (max-width: 767px) {
    body.page-id-23 .pergole-products-grid .elementor-column:not(:first-child),
    body.page-id-23 .elementor-section[data-id="991e8d35"] .elementor-column:not(:first-child),
    body.page-id-23 .elementor-section:has(.elementor-widget-image-box) .elementor-column:not(:first-child) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* --- DIVIDER --- */
.elementor-divider-separator {
    border-color: #dddddd !important;
}

/* --- SECTIONS --- */
.elementor-section .elementor-container {
    max-width: 1280px;
}

.page-header,
.entry-header,
body.elementor-page .entry-header,
body.elementor-page .page-header,
body.home .entry-title,
body.home .page-header .entry-title,
.page .entry-title {
    display: none !important;
}

/* Hero section */
.elementor-section:first-of-type {
    position: relative;
}

.elementor-section:first-of-type .elementor-heading-title {
    font-size: 64px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.elementor-section:first-of-type .elementor-widget-text-editor,
.elementor-section:first-of-type .elementor-text-editor,
.elementor-section:first-of-type .elementor-widget-text-editor p,
.elementor-section:first-of-type .elementor-text-editor p,
.elementor-section:first-of-type p,
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-widget-text-editor,
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-text-editor,
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-widget-text-editor p,
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-text-editor p,
body .elementor .elementor-section.elementor-top-section:first-of-type p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5) !important;
}
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-widget-text-editor .elementor-text-editor,
body .elementor .elementor-section.elementor-top-section:first-of-type .elementor-widget-text-editor .elementor-text-editor p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5) !important;
}
.elementor-section:first-of-type .elementor-widget-text-editor a,
.elementor-section:first-of-type .elementor-text-editor a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Stats section */
.elementor-section:nth-of-type(2) .elementor-heading-title {
    font-size: 64px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    letter-spacing: -3px !important;
}

.elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elementor-text-editor a {
    color: #111111 !important;
    text-decoration: underline;
    font-weight: 600;
}

/* --- Responsive - mobile (text overflow fix) --- */
@media (max-width: 768px) {
    .elementor-section .elementor-container,
    .elementor-widget-heading .elementor-widget-container,
    .elementor-widget-text-editor .elementor-widget-container,
    .elementor-column-wrap {
        max-width: 100% !important;
        overflow-x: hidden;
    }
    .elementor-heading-title,
    .elementor-text-editor,
    .elementor-text-editor p {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
    }
    .elementor-section:first-of-type .elementor-heading-title {
        font-size: clamp(22px, 6.5vw, 38px) !important;
        letter-spacing: -1px !important;
    }
    .elementor-section:first-of-type .elementor-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .elementor-section .elementor-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .elementor-section.elementor-top-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (max-width: 480px) {
    .elementor-section:first-of-type .elementor-heading-title {
        font-size: 22px !important;
    }
}

.wp-block-button__link {
    border-radius: 0 !important;
    background: #111111 !important;
}

/* PRE-FOOTER */
.siply-prefooter {
    background-color: #f5f5f5 !important;
    padding: 60px 24px 50px !important;
    margin: 0 !important;
    border-top: 1px solid #eeeeee !important;
}

.siply-prefooter-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 40px 60px !important;
}

.siply-prefooter-left { flex: 1 1 320px; }
.siply-prefooter-logo {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-decoration: none !important;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px !important;
}
.siply-prefooter-title {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    line-height: 1.35 !important;
    margin: 0 0 24px !important;
    max-width: 400px;
}
.siply-prefooter-btn {
    display: inline-block;
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #111111 !important;
    background: transparent !important;
    border: 2px solid #111111 !important;
    padding: 12px 28px !important;
    text-decoration: none !important;
    margin-bottom: 28px !important;
    transition: all 0.3s ease;
}
.siply-prefooter-btn:hover {
    background: #111111 !important;
    color: #ffffff !important;
}
.siply-prefooter-social { padding-top: 20px !important; border-top: 1px solid #dddddd !important; }
.siply-prefooter-social-label { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 12px !important; color: #666666 !important; margin-right: 12px !important; }
.siply-prefooter-social-links a { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 13px !important; color: #111111 !important; text-decoration: none !important; margin-right: 16px !important; }
.siply-prefooter-social-links a:hover { text-decoration: underline !important; }
.siply-prefooter-right { flex: 0 1 320px; }
.siply-prefooter-links { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.siply-prefooter-links li { margin: 0 0 10px !important; }
.siply-prefooter-links a { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 14px !important; color: #333333 !important; text-decoration: none !important; }
.siply-prefooter-links a:hover { color: #111111 !important; text-decoration: underline !important; }
@media (max-width: 768px) {
    .siply-prefooter { padding: 40px 16px 36px !important; }
    .siply-prefooter-inner { flex-direction: column !important; }
    .siply-prefooter-title { font-size: 20px !important; }
}

/* FOOTER */
#site-footer,
.site-footer {
    background-color: #111111 !important;
    color: #ffffff !important;
    padding: 48px 24px 32px !important;
    margin-top: 0 !important;
    border-top: none !important;
}

.site-footer .footer-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px 40px !important;
}

.site-footer .siply-footer-logo { max-height: 48px !important; width: auto !important; display: block !important; }
.site-footer .site-branding,
.site-footer .site-title,
.site-footer .site-title a,
.site-footer .site-description { color: rgba(255, 255, 255, 0.9) !important; font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; }
.site-footer .site-title a:hover { color: #ffffff !important; }
.site-footer .site-description { font-size: 12px !important; font-weight: 400 !important; color: rgba(255, 255, 255, 0.65) !important; margin-top: 4px !important; }
.site-footer .site-navigation,
.site-footer nav.site-navigation { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px 28px !important; }
.site-footer .site-navigation ul,
.site-footer nav ul { display: flex !important; flex-wrap: wrap !important; list-style: none !important; margin: 0 !important; padding: 0 !important; gap: 0 28px !important; }
.site-footer .site-navigation li { margin: 0 !important; padding: 0 !important; }
.site-footer .site-navigation a { color: rgba(255, 255, 255, 0.85) !important; font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 2px !important; text-decoration: none !important; padding: 4px 0 !important; }
.site-footer .site-navigation a:hover { color: #ffffff !important; }
.site-footer .copyright,
.site-footer .siply-footer-bottom { width: 100% !important; margin-top: 24px !important; padding-top: 20px !important; border-top: 1px solid rgba(255, 255, 255, 0.12) !important; text-align: center !important; }
.site-footer .copyright p,
.site-footer .siply-footer-bottom p { margin: 0 !important; color: rgba(255, 255, 255, 0.5) !important; font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; font-size: 12px !important; font-weight: 400 !important; }
.site-footer .siply-footer-bottom a { color: rgba(255, 255, 255, 0.6) !important; text-decoration: none !important; }
.site-footer .siply-footer-bottom a:hover { color: #ffffff !important; }
.site-footer.footer-stacked .footer-inner { flex-direction: column !important; text-align: center !important; }
.site-footer.footer-stacked .site-navigation ul { justify-content: center !important; }
@media (max-width: 768px) {
    .site-footer .footer-inner { flex-direction: column !important; text-align: center !important; }
    .site-footer .site-navigation ul { justify-content: center !important; }
    #site-footer, .site-footer { padding: 36px 16px 24px !important; }
}
