/* JHP Consulting - vzhled puvodni sablony LT Fiscal (Helix Ultimate) */
:root {
    --jhp-blue: #023e7c;
    --jhp-orange: #f2784b;
    --jhp-navy: #292b54;
    --jhp-text: #999;
    --jhp-bg: #f5f6fa;
    --jhp-header: 100px;
}

html { scroll-behavior: smooth; }

body.jhp {
    margin: 0;
    background: #fff;
    color: var(--jhp-text);
    font: 400 14px/21px "Open Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.jhp *, body.jhp *::before, body.jhp *::after { box-sizing: border-box; }
body.jhp a, body.jhp a:hover, body.jhp a:focus, body.jhp #jhp-nav a { text-decoration: none !important; }
body.jhp a { color: var(--jhp-blue); }
body.jhp a:hover { color: #00b0bf; }
body.jhp img { max-width: 100%; height: auto; }

.jhp-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
[id] { scroll-margin-top: var(--jhp-header); }

/* ---------- hlavicka ---------- */
#jhp-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--jhp-header);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, .1);
}
.jhp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.jhp-logo { display: block; line-height: 0; }
body.jhp .jhp-logo img { height: 80px; width: auto; max-width: none; }
#jhp-nav { display: flex; align-items: center; }

#jhp-nav ul.mod-menu, #jhp-nav ul.nav { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0; margin: 0 0 0 -15px; padding: 0; list-style: none; }
#jhp-nav ul.mod-menu > li > a,
#jhp-nav ul.mod-menu > li > span {
    display: block; padding: 0 12px;
    font: 700 14px/var(--jhp-header) Montserrat, sans-serif;
    letter-spacing: .35px; text-transform: capitalize; color: var(--jhp-blue);
}
#jhp-nav ul.mod-menu > li > a:hover,
#jhp-nav ul.mod-menu > li.active > a { color: #00152e; }
.jhp-lang { margin-left: 12px; }
.jhp-lang .mod-languages { line-height: 0; }
.jhp-lang .mod-languages p { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jhp-lang .mod-languages ul { align-items: center; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jhp-lang .mod-languages img { width: 16px; height: auto; display: block; }
.jhp-lang .mod-languages li:not(.lang-active) img { opacity: .6; }

.jhp-menu-toggle {
    display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.jhp-menu-toggle span { display: block; height: 3px; background: var(--jhp-blue); border-radius: 2px; }

/* ---------- slider ---------- */
#lt-slider { position: relative; }
.jhp-slider { position: relative; height: clamp(420px, 51.9vw, 664px); overflow: hidden; background: #e7e7e7; }
.jhp-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
    background-size: cover; background-position: center top;
}
.jhp-slide.is-active { opacity: 1; }
.jhp-slide .jhp-container { position: relative; height: 100%; max-width: none; padding: 0; }
.jhp-slide-title {
    position: absolute; left: 10.5%; top: 22%; margin: 0;
    font: 700 clamp(34px, 5.23vw, 67px)/1.24 "Open Sans", sans-serif; color: var(--jhp-blue);
    transform: translateX(-24px); opacity: 0; transition: transform .8s ease .25s, opacity .8s ease .25s;
}
.jhp-slide.is-active .jhp-slide-title { transform: none; opacity: 1; }

/* ---------- sekce ---------- */
.jhp-section { position: relative; }
.jhp-title {
    margin: 0 0 8px; text-align: center;
    font: 700 45px/54px "Open Sans", sans-serif; color: var(--jhp-blue);
}
.jhp-title-left { text-align: left; }
.jhp-divider { width: 44px; height: 4px; margin: 18px auto 0; background: var(--jhp-orange); }
.jhp-cols { display: grid; gap: 30px; }
.jhp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.jhp-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Nase sluzby */
.jhp-services { padding: 90px 0 24px; }
.jhp-services .jhp-cols { margin-top: 45px; }
.jhp-service { display: flex; align-items: flex-start; gap: 20px; }
.jhp-service h3 { margin: 0; font: 700 19px/31px "Open Sans", sans-serif; color: var(--jhp-blue); }
/* ikona v sestiuhelniku: pseudoelement, nezavisi na HTML v clanku (TinyMCE mazal prazdne <span>) */
.jhp-service > .jhp-hex { display: none; }
.jhp-service::before {
    content: ""; flex: 0 0 66px; width: 66px; height: 76px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: var(--jhp-blue) center / 34px no-repeat; transition: background-color .3s ease;
}
.jhp-service:hover::before { background-color: var(--jhp-orange); }
.jhp-service:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23fff'%3E%3Crect x='4' y='6' width='4' height='4'/%3E%3Crect x='11' y='6' width='17' height='4'/%3E%3Crect x='4' y='14' width='4' height='4'/%3E%3Crect x='11' y='14' width='17' height='4'/%3E%3Crect x='4' y='22' width='4' height='4'/%3E%3Crect x='11' y='22' width='17' height='4'/%3E%3C/g%3E%3C/svg%3E"); }
.jhp-service:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23fff'%3E%3Crect x='3' y='4' width='3' height='24'/%3E%3Crect x='3' y='25' width='26' height='3'/%3E%3Crect x='8' y='15' width='4' height='9'/%3E%3Crect x='14' y='8' width='4' height='16'/%3E%3Crect x='20' y='12' width='4' height='12'/%3E%3C/g%3E%3C/svg%3E"); }
.jhp-service:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23fff'%3E%3Crect x='3' y='4' width='3' height='24'/%3E%3Crect x='3' y='25' width='26' height='3'/%3E%3C/g%3E%3Cpath d='M8 21l6-7 4 3 8-9' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M20 8h8v8z' fill='%23fff'/%3E%3C/svg%3E"); }

/* Sluzby - fotky + seznam */
.jhp-cases { padding: 108px 0 134px; }
.jhp-case img { display: block; width: 100%; height: auto; margin: 0 0 38px; }
.jhp-case h3 { margin: 0 0 12px; font: 400 20px/49px "Open Sans", sans-serif; color: var(--jhp-blue); }
.jhp-case ul { margin: 0; padding: 0 0 0 40px; list-style: disc; }

/* Clen komory auditoru */
.jhp-business { padding: 50px 0; background-size: cover; background-position: center; }
.jhp-overlay { background: rgba(0, 0, 0, .43); margin: -50px 0; padding: 50px 0; }
.jhp-business-inner { display: flex; align-items: center; justify-content: center; gap: 50px; }
.jhp-business-inner img { flex: 0 0 160px; width: 160px; height: 160px; }
.jhp-business-text { margin: 0; font: 700 25px/35px "Open Sans", sans-serif; color: #fff; }

/* Nas tym */
.jhp-team { padding: 70px 0 75px; }
.jhp-team .jhp-cols { margin-top: 90px; gap: 30px; }
.jhp-member { display: flex; align-items: center; border: 1px solid rgba(0, 0, 0, .07); min-height: 348px; }
.jhp-member img { flex: 0 0 234px; width: 234px; height: 346px; object-fit: cover; align-self: stretch; }
/* tri clenove tymu: fotka nahore, text pod ni */
.jhp-team .jhp-cols-3 .jhp-member { flex-direction: column; align-items: stretch; min-height: 0; }
.jhp-team .jhp-cols-3 .jhp-member img { flex: none; width: 100%; height: auto; aspect-ratio: 318 / 412; object-fit: cover; object-position: top; }
.jhp-team .jhp-cols-3 .jhp-member-text { padding: 24px 24px 28px; }
.jhp-member-text { padding: 20px 14px 20px 22px; font-size: 14px; line-height: 27px; }
.jhp-member-text p { margin: 0 0 10px; }
.jhp-member-text h3 { margin: 0; font: 700 21px/30px "Open Sans", sans-serif; color: var(--jhp-blue); }
.jhp-member-text h4 { margin: 0; font: 400 12px/18px "Open Sans", sans-serif; color: #cfcfcf; text-transform: uppercase; }

/* Pruh s textem */
.jhp-banner { display: flex; align-items: center; min-height: 317px; padding: 50px 0; background-size: cover; background-position: 0 0; }
.jhp-banner .jhp-container { width: 100%; }
.jhp-banner h3 { margin: 0; font: 500 28px/33.6px "Open Sans", sans-serif; color: #000; }

/* O spolecnosti */
.jhp-company { padding: 50px 0 50px; }
.jhp-company .jhp-cols { margin-top: 90px; }
.jhp-quote {
    position: relative; padding: 30px; background: #fff; text-align: left;
    border: 3px solid transparent; box-shadow: 0 0 0 1px #e5e5e5;
}
.jhp-quote.jhp-center { text-align: center; }
.jhp-quote p { margin: 0; }
.jhp-quote::after {
    content: ""; position: absolute; left: 50%; bottom: -13px; width: 22px; height: 22px; margin-left: -11px;
    background: #fff; transform: rotate(45deg); box-shadow: 1px 1px 0 0 #e5e5e5;
}
.jhp-photos { margin-top: 99px !important; }
.jhp-photo { text-align: center; }
.jhp-photo img { width: 297px; height: 198px; border-radius: 117px; object-fit: cover; }

/* Reference */
.jhp-project { min-height: 258px; padding: 90px 0; background-size: cover; background-position: center; }
.jhp-project .jhp-overlay { background: rgba(0, 0, 0, .2); margin: -90px 0; padding: 90px 0; }
.jhp-project-title { margin: 0; text-align: center; font: 700 30px/40px "Open Sans", sans-serif; color: #fff; }

/* Kontakt */
.jhp-contact { min-height: 500px; padding: 80px 0 98px; background: var(--jhp-bg); }
.jhp-contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 30px; align-items: start; }
.jhp-contact-title { padding-top: 70px; }
.jhp-contact-title h2 { margin: 0; }
.jhp-contact-form { padding-top: 40px; }
.jhp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.jhp-form label { display: block; margin: 0 0 4px; font: 400 13px/18px "Open Sans", sans-serif; color: var(--jhp-blue); }
.jhp-form label b { color: #d9534f; }
.jhp-form input[type=text], .jhp-form input[type=email], .jhp-form textarea {
    display: block; width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #e4e6ee; border-radius: 4px;
    font: 400 14px/21px "Open Sans", sans-serif; color: #444;
}
.jhp-form textarea { height: 135px; resize: vertical; }
.jhp-form input:focus, .jhp-form textarea:focus { outline: 2px solid rgba(2, 62, 124, .35); outline-offset: 0; }
.jhp-form .jhp-send { align-self: end; }
.jhp-form button[type=submit] {
    display: block; width: 100%; height: 57px; border: 0; border-radius: 4px; cursor: pointer;
    background: var(--jhp-blue); color: #fff; font: 700 18px/1 "Open Sans", sans-serif; text-transform: uppercase;
    transition: background .2s;
}
.jhp-form button[type=submit]:hover { background: #0a5aa8; }
.jhp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- paticka ---------- */
#jhp-footer { background: var(--jhp-navy); color: #fff; padding: 31px 0 30px; min-height: 145px; }
#jhp-footer a { color: #fff; }
#jhp-footer a:hover { color: #a2a2a2; }
.jhp-footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.jhp-footer-right { text-align: right; }
#jhp-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 32px; height: 32px; border: 0; border-radius: 3px; cursor: pointer;
    background: #1c1c1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 10l5-5 5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
    opacity: .75;
}
#jhp-top[hidden] { display: none; }

/* ---------- podstranky (clanky, kontakt, chyby) ---------- */
.jhp-main-sub { padding-top: calc(var(--jhp-header) + 50px); padding-bottom: 60px; min-height: 60vh; }
body.jhp .com-content-article, body.jhp .item-page { margin: 0; }
body.jhp.jhp-home .jhp-main-sub { padding: 0; }
body.jhp.homepage #jhp-main { padding: 0; }
body.jhp.homepage .com-content-article { padding: 0; }
#jhp-messages {
    position: fixed; top: calc(var(--jhp-header) + 12px); left: 50%; transform: translateX(-50%); z-index: 200;
    width: min(640px, calc(100% - 30px));
}
#jhp-messages:empty { display: none; }

/* ---------- responzivita ---------- */
@media (max-width: 991px) {
    .jhp-cols-3 { grid-template-columns: 1fr; }
    .jhp-service { max-width: 420px; margin: 0 auto; width: 100%; }
    .jhp-case { max-width: 420px; margin: 0 auto; width: 100%; }
    .jhp-cols-2 { grid-template-columns: 1fr; }
    .jhp-contact-grid { grid-template-columns: 1fr; }
    .jhp-contact-title { padding-top: 0; }
    .jhp-contact-form { padding-top: 0; }
    .jhp-title { font-size: 36px; line-height: 44px; }
}
@media (max-width: 767px) {
    :root { --jhp-header: 60px; }
    body.jhp .jhp-logo img { height: 46px; }
    .jhp-menu-toggle { display: flex; }
    #jhp-nav {
        display: none; position: absolute; top: var(--jhp-header); left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; box-shadow: 0 6px 8px rgba(0, 0, 0, .1); padding: 8px 15px 14px;
    }
    #jhp-nav.is-open { display: flex; }
    #jhp-nav ul.mod-menu, #jhp-nav ul.nav { flex-direction: column; margin: 0; }
    #jhp-nav ul.mod-menu > li > a { line-height: 44px; padding: 0 4px; }
    .jhp-lang { margin: 6px 0 0 4px; }
    .jhp-business-inner { flex-direction: column; gap: 20px; text-align: center; }
    .jhp-member { flex-direction: column; align-items: stretch; }
    .jhp-member img { flex: none; width: 100%; height: auto; max-height: 420px; }
    .jhp-banner h3 { font-size: 22px; line-height: 28px; }
    .jhp-form { grid-template-columns: 1fr; }
    .jhp-photo img { width: 100%; max-width: 297px; }
    .jhp-footer-inner { flex-direction: column; }
    .jhp-footer-right { text-align: left; }
    .jhp-slide-title { left: 8%; }
}
