/* =====================
   VARIABLES & RESET
===================== */
:root {
    --blue: #0f355e;
    --orange: #f37021;
    --dark: #0b2238;
    --light: #ffffff;
    --gray: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =====================
   HEADER
===================== */
.header {
    background: var(--blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
}

/* Logo (klikací) */
.header-logo {
    background: white;
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
}

.header-logo img {
    height: 52px;
    width: auto;
}

/* Navigace */
.nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    font-weight: 500;
}
.nav a.active::after {
    width: 100%;
}

/* CTA (desktop) */
.header-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.desktop-only { display: flex; }

/* FB icon in header (desktop) */
.header-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-fb img {
    width: 45px;
    height: 45px;
    filter: invert(54%) sepia(92%) saturate(1812%)
            hue-rotate(346deg) brightness(101%) contrast(94%);
    transition: transform 0.2s ease;
}

.header-fb:hover img {
    transform: scale(1.08);
}

/* Hamburger (mobil) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* =====================
   BUTTONS
===================== */
.btn-primary {
    background: var(--orange);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary.small {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* =====================
   HERO
===================== */
.hero {
    position: relative;
    background: url('img/hero.avif') center / cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 53, 94, 0.75);
}

.hero-content {
    position: relative;
    color: white;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-divider {
    height: 30px;
    background: linear-gradient(
        to right,
        #f37021,
        #ff9a55,
        #f37021
    );
}

/* =====================
   SECTIONS
===================== */
.section {
    padding: 80px 0;
}

.section.dark {
    background: var(--dark);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.section-title.light {
    color: white;
}

/* =====================
   SERVICES STRIP
===================== */
.services-wrapper {
    width: 100%;
}

.services-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 380px;
}

.services-strip.hidden {
    display: none;
}

.service-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.15)
    );
    transition: background 0.3s;
}

.service-tile h3 {
    position: relative;
    font-size: 1.6rem;
    font-weight: 500;
    z-index: 2;
}

.service-tile:hover .service-overlay {
    background: rgba(15,53,94,0.75);
}

.service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s;
}

.service-tile:hover::after {
    border-bottom-color: var(--orange);
}

/* =====================
   SERVICES EXPAND
===================== */
.service-expanded {
    display: none;
    padding: 80px 5%;
    background: var(--gray);
}

.service-expanded.active {
    display: block;
}

.service-expanded-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.service-expanded-image {
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.service-expanded-text h2 {
    color: var(--blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.service-expanded-text p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-expanded-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-expanded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-expanded-grid .service-tile {
    height: 260px;
}

/* =====================
   BENEFITS
===================== */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit {
    background: var(--gray);
    padding: 30px 20px;
    border-radius: 6px;
}

.section.dark .benefit {
    background: rgba(255,255,255,0.05);
}

.icon {
    width: 48px;
    height: 48px;
    fill: var(--orange);
    margin-bottom: 15px;
}

.benefit p {
    font-size: 1rem;
    font-weight: 500;
}

/* =====================
   GALLERY
===================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: #ccc;
    height: 200px;
}

.gallery-preview .gallery-item {
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #111;
    cursor: pointer;
}

.gallery-more {
    text-align: center;
    margin-top: 30px;
}

/* =====================
   LIGHTBOX
===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
}

.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* =====================
   WHY HELIOSYS
===================== */
.why-heliosys {
    background: linear-gradient(
        to bottom,
        #ffffff,
        #f7f7f7
    );
}

.why-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.why-subtitle {
    font-size: 1.1rem;
    color: #555;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.why-card {
    background: white;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.why-card h3 {
    margin: 15px 0 10px;
    color: var(--blue);
    font-size: 1.2rem;
}

.why-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.why-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* =====================
   CONTACT (3 sloupce)
===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 40px;
}

/* Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form button {
    margin-top: 25px;
    align-self: center;
}

/* Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
}

.contact-item img {
    width: 26px;
    height: 26px;
    margin-top: 2px;
    filter: invert(54%) sepia(92%) saturate(1812%)
            hue-rotate(346deg) brightness(101%) contrast(94%);
}

/* Texty v kontaktu */
.contact-info,
.contact-info span,
.contact-info strong,
.contact-info a {
    color: white;
}

.contact-info a {
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Mapa */
.contact-map {
    min-height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 6px;
}

/* Placeholder mapy (pokud používáš) */
.map-placeholder {
    margin-top: 20px;
    height: 220px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
/* =====================
   FORM FIX (GDPR + HP)
===================== */




/* =====================
   MOBILE FAB (fixed icons)
===================== */
.mobile-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    gap: 12px;
    flex-direction: column;
}

.fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-decoration: none;
}

.fab-btn img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.fab-btn:active {
    transform: scale(0.98);
}

/* =====================
   FOOTER
===================== */
.footer {
    background: var(--blue);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1000px) {
    .services-strip {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .service-tile {
        height: 260px;
    }
}

/* Mobile header + menu + hero posun */
@media (max-width: 800px) {
    /* header: logo vlevo, hamburger vpravo, nav pod tím */
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo toggle"
            "nav nav";
        align-items: center;
        gap: 10px;
        padding: 8px 0; /* menší lišta */
    }

    .header-logo {
        grid-area: logo;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .header-logo img {
        height: 36px;
    }

    .nav-toggle {
        grid-area: toggle;
        display: flex;
        flex-direction: column; /* čárky POD sebou */
        width: 44px;
        height: 44px;
        gap: 6px;
        justify-self: end;
    }

    .nav-toggle span {
        margin: 0;
    }

    /* nav dropdown */
    .nav {
        grid-area: nav;
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        overflow: hidden;
        margin-top: 8px;
        justify-content: flex-start;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 14px;
    }

    .nav a::after {
        display: none;
    }

    .nav a + a {
        border-top: 1px solid rgba(255,255,255,0.10);
    }

    /* CTA v headeru pryč, místo toho FAB */
    .desktop-only {
        display: none;
    }

    .mobile-fab {
        display: flex;
    }

    /* hero text výš */
    .hero {
        height: 82vh;
        align-items: flex-start;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .services-strip {
        grid-template-columns: 1fr;
    }

    .service-tile {
        height: 220px;
    }
}

/* Service expand responsive */
@media (max-width: 900px) {
    .service-expanded-main {
        grid-template-columns: 1fr;
    }

    .service-expanded-image {
        height: 260px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 0;
    }

    .contact-map iframe {
        min-height: 240px;
    }
}

/* Desktop detail (contact) */
@media (min-width: 901px) {
    .contact-info {
        padding-left: 20px;
        border-left: 1px solid rgba(255,255,255,0.15);
    }
}
/* =====================
   GALERIE – CELÉ NÁHLEDY STRÁNEK
===================== */

/* wrapper galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* jednotlivý náhled */
.gallery-item {
    position: relative;
    height: 220px;                 /* výška náhledu */
    background-size: contain;      /* ✅ celý obrázek */
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--dark); /* ✅ stejná barva jako pozadí */
    border-radius: 6px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* jemný hover */
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* =====================
   GALERIE – TMAVÁ SEKCE
===================== */
.section.dark .gallery-item {
    background-color: var(--dark); /* rámeček splývá s pozadím */
}
.section.dark .gallery {
    background: inherit;
}

.section.dark .gallery-item {
    background-color: inherit;
}
/* =====================
   GALERIE – OPRAVA RÁMEČKŮ
   (žádná tmavá barva po stranách)
===================== */

/* samotný box NIKDY nesmí mít barvu */
.gallery-item {
    background-color: transparent !important;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

/* světlá stránka (galerie.php) */
.section:not(.dark) .gallery-item {
    background-color: transparent !important;
}

/* tmavá sekce (index – galerie realizací) */
.section.dark .gallery-item {
    background-color: transparent !important;
}

/* aby nic nepřidávalo tmavý rám */
.gallery,
.gallery-preview {
    background: transparent !important;
}
/* =====================
   CONTACT FORM FIX
===================== */

/* honeypot mimo layout */
.hp-field{
    position:absolute;
    left:-9999px;
}


.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}

.gdpr-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 18px;
    height: 18px;
    border: 2px solid #f97316;
    border-radius: 4px;
    background: transparent;
    margin-top: 3px;
    position: relative;
    cursor: pointer;
    transition: 0.2s ease;
}

.gdpr-consent input[type="checkbox"]:checked {
    background: #f97316;
}

.gdpr-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;
    flex: 0 0 16px; /* 👈 zabrání roztahování ve flexu */

    border: 2px solid #f97316;
    border-radius: 3px;
    background: transparent;

    margin-top: 4px;
    position: relative;
    cursor: pointer;
    transition: 0.2s ease;
}


.gdpr-consent a {
    color: #f97316;
    text-decoration: underline;
}
.rotate-btn{
    position:absolute;
    top:6px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(15,53,94,.92);
    color:#fff;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    line-height:1;
}
.rotate-btn:hover{ background:#0b2a49; }

.rotate-left{ left:6px; }
.rotate-right{ left:40px; } /* vedle sebe */

.rotate-btn:active{ transform:scale(.97); }