/* lukobos.sk — moderny layout */
:root {
    --blue: #0f4f92;
    --blue-dark: #0a2f58;
    --blue-soft: #edf4fc;
    --text: #1d2d40;
    --text-muted: #5e6f84;
    --border: #d7e2ee;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(10, 47, 88, 0.12);
    --radius: 18px;
    --hero-max-height: 50vh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    margin: 0;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-visual {
    width: 100%;
    max-width: none;
    height: var(--hero-max-height);
    max-height: var(--hero-max-height);
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
    background: #edf4fc;
}

.hero-image {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 58%;
    display: block;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-bar {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-image {
    display: block;
    width: auto;
    height: clamp(54px, 8vw, 78px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--blue-soft);
    color: var(--blue-dark);
    outline: none;
}

.main-layout {
    padding: 44px 0 54px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.section-label,
.mini-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.intro-story h1,
.services h2,
.projects-box h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    line-height: 1.2;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.intro-story p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
    max-width: 62ch;
}

.intro-photo {
    background: linear-gradient(160deg, #f6f9fd 0%, #edf3fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: block;
}

.intro-portrait {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 460px;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.photo-placeholder {
    border: 2px dashed #b8ccdf;
    border-radius: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--text-muted);
    gap: 10px;
}

.photo-placeholder i {
    color: var(--blue);
    font-size: 2rem;
}

.services {
    margin-top: 52px;
}

.services-lead {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    max-width: 62ch;
    margin: -6px 0 20px;
}

.service-grid {
    margin-top: 22px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
    border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(10, 47, 88, 0.14);
    border: 1px solid var(--border);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(10, 47, 88, 0.18);
}

.service-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
}

.service-card-body {
    padding: 20px 18px 22px;
}

.service-card h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.service-btn {
    display: inline-block;
    background: var(--blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.service-btn:hover,
.service-btn:focus-visible {
    background: var(--blue-dark);
    outline: none;
}

.projects-preview {
    margin-top: 52px;
}

.projects-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.projects-logo {
    display: flex;
    gap: 14px;
    align-items: center;
}

.projects-logo i {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--blue);
    background: var(--blue-soft);
}

.projects-box h2 {
    margin-bottom: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.projects-text {
    margin: 14px 0 20px;
    color: var(--text-muted);
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.project-preview-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-preview-card:hover,
.project-preview-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 47, 88, 0.12);
    outline: none;
}

.project-preview-image-wrap {
    height: 180px;
    overflow: hidden;
}

.project-preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px 8px 0 0;
    display: block;
    transition: transform 0.3s ease;
}

.project-preview-card:hover .project-preview-image,
.project-preview-card:focus-visible .project-preview-image {
    transform: scale(1.05);
}

.project-preview-body {
    padding: 14px 14px 16px;
}

.project-preview-body h3 {
    color: var(--blue-dark);
    font-size: 1.03rem;
    margin-bottom: 6px;
}

.project-preview-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.projects-cta {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.projects-cta:hover,
.projects-cta:focus-visible {
    background: var(--blue-dark);
    transform: translateY(-1px);
    outline: none;
}

.site-footer {
    background: var(--blue-dark);
    color: #dce9f7;
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.footer-logo {
    width: auto;
    height: 60px;
    margin-bottom: 14px;
}

.footer-contact h3,
.footer-company h3 {
    font-size: 1.08rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-contact p,
.footer-company p {
    margin-bottom: 8px;
}

.footer-contact i {
    width: 20px;
    color: #8fc2ff;
}

.footer-company {
    color: #dce9f7;
    font-size: 0.95rem;
    line-height: 1.55;
}

.footer-legal-block {
    margin-bottom: 14px;
}

.footer-legal-title {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #8fc2ff;
    margin-bottom: 4px;
}

.footer-contact a {
    color: #e9f4ff;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.map-placeholder--footer {
    margin-top: 14px;
    min-height: 100px;
}

.map-placeholder {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #c8ddf3;
    background: rgba(255, 255, 255, 0.04);
}

.map-placeholder i {
    color: #8fc2ff;
    font-size: 1.4rem;
}

.footer-seo-help {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 14px;
}

.footer-seo-help h3 {
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.footer-seo-tags {
    font-size: 0.78rem;
    line-height: 1.65;
    color: #c4d9ef;
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px 20px 22px;
    text-align: center;
    font-size: 0.92rem;
}

.footer-bottom strong {
    color: #ffffff;
}

.footer-privacy {
    margin-top: 14px;
    font-size: 0.92rem;
}

.footer-privacy a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(184, 212, 245, 0.45);
    color: #d7eaff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
}

.footer-privacy a:hover,
.footer-privacy a:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 212, 245, 0.7);
    outline: none;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--blue-dark);
    color: #ffffff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner p {
    font-size: 0.92rem;
    color: #e7f0fb;
    margin: 0;
}

.cookie-banner a {
    color: #bfe1ff;
    font-weight: 600;
}

.cookie-accept {
    border: none;
    background: #3b9a37;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cookie-accept:hover,
.cookie-accept:focus-visible {
    background: #2f7f2c;
    transform: translateY(-1px);
    outline: none;
}

/* Podstránka GDPR / právne texty */
.page-sub .site-header--sub {
    border-top: none;
}

.legal-main {
    padding-top: 28px;
}

.legal-article {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.legal-article h1 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: var(--blue-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

.legal-lead {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 28px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 1.12rem;
    color: var(--blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.legal-section p {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.legal-list {
    margin: 0 0 0 1.1rem;
    padding: 0;
    color: var(--text);
    font-size: 0.98rem;
}

.legal-list li {
    margin-bottom: 10px;
}

.legal-list a {
    color: var(--blue);
    font-weight: 600;
}

.legal-meta {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

.main-nav a[aria-current="page"] {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.gallery-page {
    padding: 42px 0 54px;
}

.gallery-head {
    margin-bottom: 28px;
}

.gallery-head h1 {
    color: var(--blue-dark);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.gallery-head p {
    color: var(--text-muted);
    max-width: 70ch;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-item {
    border: none;
    padding: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 20px rgba(10, 47, 88, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(10, 47, 88, 0.14);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-empty {
    color: var(--text-muted);
    padding: 24px;
    background: var(--blue-soft);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.gallery-back {
    margin-top: 28px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 34, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-bar {
        min-height: 84px;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }

    .main-nav {
        justify-content: center;
    }

    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .project-cards-grid {
        grid-template-columns: 1fr;
    }

    .main-layout {
        padding-top: 30px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-accept {
        width: 100%;
        text-align: center;
    }
}
