/* KULUCE GROUP — styly převzaté ze statické šablony (šablona/šablona.html) + doplňky CMS na konci */

:root {
    --brand-orange: #f97316;
    --brand-orange-dark: #c2410c;
    --brand-orange-soft: rgba(249, 115, 22, 0.06);
    --brand-orange-border: rgba(249, 115, 22, 0.15);
    --brand-dark: #1e293b;
    --brand-light: #ffffff;
    --text-muted: #64748b;
}

/* Kotvy nesmí skončit pod fixní navigací */
html {
    scroll-padding-top: 90px;
}

/* SUBTLE BACKGROUND PATTERN
   "Blueprint Dot Grid" - nerušivá oranžová mřížka
*/
body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-dark);
    background-color: var(--brand-light);
    background-image: radial-gradient(var(--brand-orange-border) 1px, transparent 0);
    background-size: 40px 40px;
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.text-brand { color: var(--brand-orange); }

/* Navigace */
.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-orange-border);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.navbar-brand img {
    height: 50px;
    width: auto;
    display: block;
}
.footer-brand-logo {
    height: 55px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
}
.hero-eyebrow-line {
    width: 40px;
    height: 2px;
    background: var(--brand-orange);
    margin-right: 15px;
}
.hero-eyebrow {
    letter-spacing: 2px;
}

/* Dekorativní "technické" prvky */
.tech-line {
    position: absolute;
    background: var(--brand-orange);
    opacity: 0.2;
}
.line-v { width: 1px; height: 100px; top: -20px; left: 50%; }
.line-h { height: 1px; width: 100px; top: 50%; left: -20px; }

.hero-img-container {
    position: relative;
    z-index: 1;
}
.hero-img-container img {
    border-radius: 20px;
    box-shadow: 25px 25px 0px var(--brand-orange-soft);
    border: 1px solid var(--brand-orange-border);
}

/* Služby - Karty s efektem technického výkresu */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--brand-orange-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
    border-color: var(--brand-orange);
}
.service-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}
/* Blueprint overlay on hover */
.service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(249, 115, 22, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 25px;
}

/* Sekce Reference - Velký vizuální důraz */
.ref-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--brand-orange-border);
    border-bottom: 1px solid var(--brand-orange-border);
}
.ref-item {
    margin-bottom: 80px;
}
.ref-item:last-child {
    margin-bottom: 0;
}
.ref-image-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--brand-orange-border);
}
.ref-image-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.ref-info-box {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--brand-orange-border);
    border-radius: 15px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.ref-badge {
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    border: 1px solid var(--brand-orange-border);
}

/* Kontakt */
.contact-icon {
    color: var(--brand-orange);
}
.contact-link {
    color: inherit;
    text-decoration: none;
}
.contact-link:hover {
    color: var(--brand-orange);
}
.contact-box {
    background: #fff;
    border: 1px solid var(--brand-orange-border);
    border-radius: 20px;
    padding: 50px;
}
.form-control {
    border: 1px solid #e2e8f0;
    padding: 12px;
}
.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px var(--brand-orange-soft);
}
.form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.btn-brand {
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    transition: 0.3s;
}
.btn-brand:hover {
    background: #ea580c;
    color: #fff;
    transform: translateY(-2px);
}
.btn-brand:disabled {
    background: var(--brand-orange);
    color: #fff;
    opacity: .7;
}

/* Footer */
footer {
    background: var(--brand-dark);
    color: #fff;
    padding: 80px 0 40px;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}
footer a.text-reset:hover {
    color: #fff !important;
}

/* Mobilní zobrazení */
@media (max-width: 767.98px) {
    .hero {
        padding: 130px 0 70px;
    }
    .ref-section {
        padding: 60px 0;
    }
    .ref-item {
        margin-bottom: 50px;
    }
    .ref-image-box img {
        height: 260px;
    }
    .ref-info-box {
        padding: 24px;
        width: 94%;
        margin-top: -40px;
    }
    .contact-box {
        padding: 24px;
    }
}

/* ===== Doplňky CMS ===== */

/* Honeypot proti robotům — pole musí zůstat prázdné */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Podstránky (GDPR, 404) */
.page-hero {
    padding: 150px 0 40px;
}
.crumbs {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.crumbs a {
    color: var(--text-muted);
}
.prose {
    max-width: 760px;
}
.prose h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
}
.prose a {
    color: var(--brand-orange-dark);
}
