/* luccalight.cz design */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --lucca-primary: #055b94;
    --lucca-link: #45aed6;
    --lucca-link-hover: #2a95be;
    --lucca-btn-hover: #e84a00;
    --lucca-text: #454545;
    --lucca-heading: #272727;
}

body {
    padding-top: 80px;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: var(--lucca-text);
    font-size: 15px;
    line-height: 26px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: var(--lucca-heading);
}

a {
    color: var(--lucca-link);
    transition: color 400ms, background-color 400ms;
}

a:hover, a:focus {
    text-decoration: none;
    color: var(--lucca-link-hover);
}

.section-header {
    margin-bottom: 50px;
}

.section-header .section-title {
    font-size: 36px;
    color: var(--lucca-text);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    margin: 0 0 20px;
    font-weight: 500;
}

.section-header .section-title::before {
    content: "";
    position: absolute;
    width: 140px;
    bottom: 0;
    left: 50%;
    margin-left: -70px;
    height: 1px;
    background: var(--lucca-primary);
}

.section-header .section-title::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    bottom: -11px;
    left: 50%;
    margin-left: -12px;
    border: 5px solid #fff;
    border-radius: 2px;
    background: var(--lucca-primary);
}

.btn {
    border-width: 0;
    border-bottom-width: 3px;
    border-radius: 3px;
    transition: all 400ms;
}

.btn.btn-primary {
    background: var(--lucca-primary);
    border-color: var(--lucca-primary);
    border-radius: 25px;
    color: #fff;
    padding: 10px 30px;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: var(--lucca-btn-hover);
    border-color: var(--lucca-btn-hover);
    color: #fff;
}

/* Navbar luccalight style */
.navbar-lucca {
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
}

.navbar-lucca .navbar-brand {
    padding: 15px;
}

.navbar-lucca .navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-lucca .nav > li > a {
    padding: 20px 15px;
    font-size: 16px;
    color: var(--lucca-text);
}

/* Language switcher (EN | CS | DE) */
.navbar-lucca .nav > li.lang-switch > a {
    padding: 20px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.navbar-lucca .nav > li.lang-switch > a.lang-active {
    color: var(--lucca-primary);
    cursor: default;
    pointer-events: none;
}
.navbar-lucca .nav > li.lang-switch > a:not(.lang-active):hover {
    color: var(--lucca-primary);
}

.navbar-lucca .nav > li > a:hover,
.navbar-lucca .nav > li.active > a {
    color: var(--lucca-primary);
    background: transparent;
}

/* Hero / Slider */
.hero-lucca {
    padding: 100px 0 100px;
    min-height: 380px;
    background-image:
        linear-gradient(135deg, rgba(248, 249, 250, 0.88) 0%, rgba(255, 255, 255, 0.85) 100%),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-lucca h1 {
    font-size: 36px;
    font-weight: 300;
    color: var(--lucca-heading);
    margin-bottom: 20px;
}

.hero-lucca p {
    font-size: 16px;
    color: var(--lucca-text);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Products / Service boxes */
.service-box-lucca {
    margin: 25px 0;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: box-shadow 300ms, border-color 300ms;
}

.service-box-lucca:hover {
    box-shadow: 0 4px 15px rgba(5, 91, 148, 0.15);
    border-color: var(--lucca-link);
}

.service-box-lucca .media-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--lucca-heading);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-box-lucca .media-body p {
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
}

.service-box-lucca .media-body a {
    color: var(--lucca-link);
}

/* Section spacing */
section {
    padding: 80px 0;
}

#products { padding: 80px 0; }
#about { background: #f8f9fa; padding: 80px 0; }
#reference { padding: 80px 0; }
#contact { background: #f8f9fa; padding: 80px 0; }

/* Reference cards */
.reference-card-lucca {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    transition: box-shadow 300ms;
}

.reference-card-lucca:hover {
    box-shadow: 0 4px 15px rgba(5, 91, 148, 0.1);
}

.reference-card-lucca h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Reference section – cards with photos */
#reference .reference-card-lucca {
    padding: 0;
    overflow: hidden;
}

#reference .reference-card-lucca-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}

#reference .reference-card-lucca-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#reference .reference-card-lucca h4 {
    margin-top: 18px;
    margin-bottom: 10px;
    padding: 0 25px;
}

#reference .reference-card-lucca p {
    margin-bottom: 0;
    padding: 0 25px 25px;
    text-align: center;
}

/* Downloads – catalogue thumbnails */
.download-catalogues {
    margin-top: 10px;
}

.download-catalogues .col-md-6 {
    margin-bottom: 30px;
}

.download-catalogue-item {
    text-align: center;
}

.download-catalogue-actions {
    margin: 16px 0 0;
}

.download-catalogue-actions .btn {
    white-space: normal;
    max-width: 100%;
}

.download-catalogue-thumb {
    display: inline-block;
    max-width: 50%;
    vertical-align: top;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.download-catalogue-thumb:hover {
    box-shadow: 0 8px 28px rgba(5, 91, 148, 0.2);
    transform: translateY(-3px);
}

.download-catalogue-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto;
    background: #f5f5f5;
}

/* Made-to-order products – line previews */
.product-order-block {
    margin-bottom: 45px;
}

.product-order-block h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lucca-heading);
    margin-bottom: 20px;
}

.product-order-preview {
    margin-bottom: 18px;
    text-align: center;
}

.product-order-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 10px 6px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-order-preview-link:hover {
    box-shadow: 0 4px 14px rgba(5, 91, 148, 0.12);
    border-color: var(--lucca-link);
    color: inherit;
    text-decoration: none;
}

.product-order-preview-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 3px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-order-preview-img-wrap {
        height: 220px;
    }
}

.product-order-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-order-preview-caption {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lucca-heading);
}

.product-order-preview-cat {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

/* Contact */
.contact-box {
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: left;
}

.contact-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--lucca-primary);
}

/* Product grid – second row aligns under first row icons (flex, align-items: start) */
.row-products {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.row-products > [class*="col-"] {
    float: none;
    min-width: 0;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .row-products > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .row-products > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Product group panels (luccalight.cz style) */
.product-group-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: box-shadow 300ms;
}

.product-group-panel:hover {
    box-shadow: 0 4px 15px rgba(5, 91, 148, 0.1);
}

/* Default: ico_name.jpg; hover: ico_name_.jpg (stacked, crossfade) */
.product-group-panel .panel-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.product-group-panel .panel-image-wrap .panel-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-group-panel .panel-image-default {
    z-index: 1;
}

.product-group-panel .panel-image-hover {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-group-panel:hover .panel-image-hover {
    opacity: 1;
}

.product-group-panel .panel-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #055b94 0%, #45aed6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
}

.product-group-panel .panel-body {
    padding: 20px;
}

.product-group-panel .panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--lucca-heading);
    margin: 0 0 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--lucca-primary);
    padding-bottom: 8px;
}

.product-group-panel .product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.product-group-panel .product-list li {
    padding: 4px 0;
    border-bottom: 1px dotted #e5e5e5;
}

.product-group-panel .product-list li:last-child {
    border-bottom: none;
}

.product-group-panel .product-list a {
    font-size: 14px;
    color: var(--lucca-text);
}

.product-group-panel .product-list a:hover {
    color: var(--lucca-primary);
}

/* Specification tables — Model column (first column) stays on one line */
.table.spec-table > thead > tr > th:first-child,
.table.spec-table > tbody > tr > td:first-child,
table.spec-table > thead > tr > th:first-child,
table.spec-table > tbody > tr > td:first-child {
    white-space: nowrap;
}

/* Footer */
.footer-lucca {
    background: var(--lucca-primary);
    color: #fff;
    padding: 25px 0;
    text-align: center;
}

.footer-lucca a {
    color: rgba(255,255,255,0.9);
}

.footer-lucca a:hover {
    color: #fff;
}

/* Inquiry modal */
.inquiry-modal .modal-title {
    color: var(--lucca-heading);
}
.inquiry-modal-hint {
    margin-bottom: 15px;
}
.inquiry-modal #inquiry-product[readonly] {
    background: #f9f9f9;
    cursor: default;
}
