/*
Theme Name: Servis Bele Tehnike
Theme URI: https://www.servisbeletehnike.eu/
Author: Migrated from the original Joomla/Themler design
Description: WordPress conversion of the original servisbeletehnike.eu Joomla theme. Preserves the visual structure, header, slider, service blocks, brand sliders and footer.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: servis-bele-tehnike
*/

/* WordPress compatibility layer over the original Themler CSS */
html { scroll-behavior: smooth; }
body.admin-bar .bd-headerarea-1 { }
img { max-width: 100%; height: auto; }

.sbt-wp-content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 30px 44px;
    min-height: 260px;
    box-sizing: border-box;
}
.sbt-wp-content:after { content: ""; display: table; clear: both; }
.sbt-wp-content .entry-title {
    margin-top: 0;
    margin-bottom: 24px;
}
.sbt-wp-content p,
.sbt-wp-content li {
    line-height: 1.6;
}
.sbt-wp-content a { color: #7b091e; }
.sbt-wp-content a:hover { color: rgba(123, 9, 30, .75); }

.bd-hmenu-3 .navbar-collapse { padding-left: 0; padding-right: 0; }
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li {
    display: inline-block;
    float: none;
    list-style: none;
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > a {
    display: block;
    padding: 15px 20px;
    color: #777;
    text-decoration: none;
    white-space: nowrap;
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li.current-menu-item > a,
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li.current_page_item > a,
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > a:hover {
    color: #7b091e;
    background: transparent;
}
.bd-hmenu-3 .bd-horizontalmenu-1 { text-align: center; }

@media (max-width: 767px) {
    .bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li {
        display: block;
        width: 100%;
        text-align: left;
    }
    .bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > a {
        padding: 12px 18px;
    }
    .sbt-wp-content { padding: 28px 20px 36px; }
}

.sbt-form {
    max-width: 680px;
}
.sbt-form .sbt-field { margin-bottom: 16px; }
.sbt-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.sbt-form input[type="text"],
.sbt-form input[type="email"],
.sbt-form input[type="tel"],
.sbt-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    background: #fff;
    font: inherit;
}
.sbt-form textarea { min-height: 160px; resize: vertical; }
.sbt-form button {
    border: 0;
    background: #7b091e;
    color: #fff;
    padding: 10px 22px;
    cursor: pointer;
    font: inherit;
}
.sbt-form button:hover { opacity: .88; }
.sbt-form .sbt-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.sbt-message {
    padding: 12px 14px;
    margin: 0 0 18px;
    border-left: 4px solid #7b091e;
    background: #f5f5f5;
}
.sbt-reference-list p { margin: 0 0 12px; }

.bd-footerarea-1 iframe { border: 0; }

/* SEO/semantic markup: preserve the original Themler typography without extra H1 elements. */
.sbt-brand-title {
    line-height: 51.42857144px;
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: bold;
}
.sbt-phone-title {
    line-height: 51.42857144px;
    font-family: Aclonica, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
    font-size: 36px;
}
.sbt-phone-title a {
    color: inherit;
    text-decoration: none;
}
.sbt-service-note {
    color: #f50f0f;
    font-size: 20px;
    line-height: 1.4;
}
.sbt-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff !important;
    text-decoration: none !important;
}
.sbt-slide-link:hover,
.sbt-slide-link:focus {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Internal service links give search engines and visitors a clear service hierarchy. */
.sbt-service-links {
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}
.sbt-service-links-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 30px 40px;
    box-sizing: border-box;
}
.sbt-service-links h2 {
    margin: 0 0 8px;
    text-align: center;
}
.sbt-service-links-intro,
.sbt-service-cta {
    text-align: center;
}
.sbt-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0 22px;
}
.sbt-service-card {
    display: block;
    padding: 22px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333 !important;
    text-decoration: none !important;
    min-height: 118px;
    box-sizing: border-box;
}
.sbt-service-card:hover,
.sbt-service-card:focus {
    border-color: #7b091e;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
}
.sbt-service-card strong {
    display: block;
    margin-bottom: 8px;
    color: #7b091e;
    font-size: 18px;
}
.sbt-service-card span {
    line-height: 1.5;
}
.sbt-service-cta a {
    color: #7b091e;
    font-weight: 600;
}

@media (max-width: 767px) {
    .sbt-brand-title {
        line-height: 42.85714287px;
        font-size: 30px;
    }
    .sbt-phone-title {
        font-size: 32px;
    }
    .sbt-service-note {
        font-size: 17px;
    }
    .sbt-service-grid {
        grid-template-columns: 1fr;
    }
    .sbt-service-links-inner {
        padding: 30px 20px 34px;
    }
}


/* 1.0.3: cleaner, faster typography and navigation */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

/* Keep the complete header visually centered regardless of legacy Themler rules. */
.bd-section-5 > .bd-container-inner,
.bd-section-5 .bd-container-inner {
    text-align: center;
}
.sbt-brand-title,
.sbt-phone-title,
.sbt-service-note {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
    box-sizing: border-box;
}
.sbt-brand-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    line-height: 1.35;
    letter-spacing: .2px;
}
.sbt-phone-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
}
.sbt-service-note {
    max-width: 1080px;
    padding: 0 20px;
}

/* Compact page typography: service page titles no longer dominate the layout. */
.sbt-wp-content {
    max-width: 1080px;
    padding-top: 32px;
}
.sbt-wp-content .entry-title {
    margin: 0 0 22px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    color: #555;
    text-transform: none;
}
.sbt-wp-content .entry-content {
    font-size: 16px;
    line-height: 1.65;
}
.sbt-wp-content .entry-content h2 {
    margin: 30px 0 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
    color: #7b091e;
    text-transform: none;
}

/* Simple service submenu. */
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li {
    position: relative;
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 11px;
    opacity: .65;
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 245px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li:hover > .dropdown-menu,
.bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li:focus-within > .dropdown-menu {
    display: block;
}
.bd-hmenu-3 .bd-horizontalmenu-1 .dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}
.bd-hmenu-3 .bd-horizontalmenu-1 .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}
.bd-hmenu-3 .bd-horizontalmenu-1 .dropdown-menu a:hover,
.bd-hmenu-3 .bd-horizontalmenu-1 .dropdown-menu a:focus {
    color: #7b091e;
    background: #f5f5f5;
}

@media (max-width: 767px) {
    .sbt-brand-title {
        font-size: 27px;
        line-height: 1.3;
    }
    .sbt-phone-title {
        font-size: 29px;
    }
    .sbt-service-note {
        font-size: 16px;
    }
    .sbt-wp-content .entry-title {
        font-size: 24px;
    }
    .sbt-wp-content .entry-content h2 {
        font-size: 19px;
    }
    .bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > .dropdown-menu {
        display: block;
        position: static;
        min-width: 0;
        width: 100%;
        padding: 0 0 5px 14px;
        border: 0;
        border-left: 2px solid #ddd;
        box-shadow: none;
        background: transparent;
    }
    .bd-hmenu-3 .bd-horizontalmenu-1 .dropdown-menu a {
        padding: 9px 16px;
        white-space: normal;
        color: #777;
    }
}

/* 1.0.5: keep the service dropdown above the slider/header and prevent clipping. */
@media (min-width: 768px) {
    .bd-hmenu-3,
    .bd-hmenu-3 .navbar-collapse,
    .bd-hmenu-3 .bd-horizontalmenu-1,
    .bd-hmenu-3 .bd-horizontalmenu-1 ul.nav {
        overflow: visible !important;
    }
    .bd-hmenu-3,
    .bd-hmenu-3 .navbar-collapse,
    .bd-hmenu-3 .bd-horizontalmenu-1 {
        position: relative;
        z-index: 5000;
    }
    .bd-hmenu-3 .bd-horizontalmenu-1 ul.nav > li > .dropdown-menu {
        z-index: 6000;
    }
}
