/* =============================================
   KOPNITO.CZ - Static Site Stylesheet
   Faithful recreation of Hashone WP theme
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-family: sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #444; font-size: 15px; line-height: 1.8; font-family: 'Open Sans', sans-serif; }

h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 400; line-height: 1.2; font-family: 'Roboto Condensed', sans-serif; }
h1 { font-size: 28px; margin-bottom: 15px; }
h2 { font-size: 26px; margin-bottom: 15px; }
h3 { font-size: 24px; margin-bottom: 15px; }
h4 { font-size: 22px; margin-bottom: 10px; }
h5 { font-size: 20px; margin-bottom: 10px; }
h6 { font-size: 18px; margin-bottom: 10px; }
p { margin: 0 0 15px; }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { margin: 0 0 15px 20px; padding: 0; }
a { color: #4bda6a; text-decoration: none; background-color: transparent; }
a:hover { color: #4bda6a; outline: 0; }

/* --- Clearfix --- */
.hs-clearfix::before, .hs-clearfix::after,
.hs-container::before, .hs-container::after { content: ""; display: table; }
.hs-clearfix::after, .hs-container::after { clear: both; }

/* --- Container --- */
.hs-container { width: 1170px; margin: 0 auto; }

/* --- Section Base --- */
.hs-section { padding: 60px 0; }

.hs-section-title {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 32px;
    max-width: 90%;
    margin: 0 auto 50px;
}

.hs-section-title.left-title {
    text-align: left;
    max-width: 100%;
    margin-bottom: 30px;
}

.hs-section-tagline {
    text-align: center;
    max-width: 78%;
    margin: -30px auto 50px;
    font-size: 16px;
}

.hs-section-tagline.left-tagline {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
}

/* =============================================
   HEADER
   ============================================= */
#hs-masthead {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    border-top: 2px solid #4bda6a;
    height: 92px;
    background: linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.82)),
        url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1600&q=80') center/cover no-repeat;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

#hs-masthead.scrolled {
    background: linear-gradient(rgba(0,0,0,0.95), rgba(0,0,0,0.95)),
        url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1600&q=80') center/cover no-repeat;
    box-shadow: 0 3px 15px rgba(0,0,0,0.4);
}

#hs-site-branding {
    float: left;
    width: 30%;
    padding: 15px 0;
}

.hs-site-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    margin: 0 0 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1.2;
}

.hs-site-title a {
    color: #4bda6a !important;
    display: inline;
    text-decoration: none;
}

.hs-site-description {
    color: #EEE;
    margin: 0;
    font-size: 13px;
    font-style: italic;
    line-height: 1;
}

/* --- Navigation --- */
#hs-site-navigation {
    float: right;
    width: 70%;
}

.hs-main-navigation .hs-menu { float: right; }

.hs-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hs-main-navigation li {
    float: left;
    position: relative;
}

.hs-main-navigation a {
    display: block;
    text-decoration: none;
    color: #FFF;
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    line-height: 90px;
    position: relative;
    transition: color 0.3s ease;
}

.hs-main-navigation a:hover { color: #4bda6a; }

.hs-menu > ul > li > a::after {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: 12px;
    border-bottom: 2px solid #4bda6a;
    left: 100%;
    right: 100%;
    transition: all 0.3s ease;
}

.hs-menu > ul > li:hover > a::after { left: 20px; right: 20px; }

.hs-toggle-menu { display: none; }

/* =============================================
   HERO / SLIDER
   ============================================= */
#hs-home-slider-section {
    height: 220px;
    background: url('https://www.kopnito.cz/wp-content/uploads/2020/11/test-2-1.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.slide-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* hero-content hidden - slim banner only, no text */
.hero-content { display: none; }

/* =============================================
   ABOUT SECTION
   ============================================= */
#hs-about-us-section { background: #fff; }

.hs-about-sec {
    width: 49%;
    float: left;
}

.hs-progress-bar-sec {
    width: 49%;
    float: right;
}

.hs-progress-bar-sec h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #4bda6a;
    padding-bottom: 10px;
    display: inline-block;
}

.cenik-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cenik-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.8;
}

.cenik-list li:last-child { border-bottom: none; }

/* =============================================
   FEATURED / SERVICES SECTION
   ============================================= */
#hs-featured-post-section { background: #F6F6F6; }

.hs-featured-post-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-left: 0;
}

.hs-featured-post {
    width: 220px;
    text-align: center;
    float: none;
    margin-left: 0;
}

.hs-featured-post h3 {
    text-transform: uppercase;
    font-size: 18px;
    color: #333;
}

.hs-featured-icon {
    height: 40px;
    width: 80px;
    margin: 55px auto;
    position: relative;
    display: inline-block;
    color: #FFF;
    background: #4bda6a;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
}

.hs-featured-icon::before {
    content: "";
    border-bottom: 25px solid #4bda6a;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    position: absolute;
    left: 0; top: -25px;
}

.hs-featured-icon::after {
    content: "";
    border-top: 25px solid #4bda6a;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    position: absolute;
    left: 0; bottom: -25px;
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */
#hs-portfolio-section { background: #fff; padding-bottom: 60px; }

.hs-portfolio-cat-name-list {
    text-align: center;
    margin-bottom: 30px;
}

.hs-portfolio-cat-name {
    display: inline-block;
    border: 1px solid #AAA;
    padding: 4px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: default;
}

.hs-portfolio-cat-name.active {
    background: #4bda6a;
    color: #FFF;
    border-color: #4bda6a;
}

.hs-portfolio-post-wrap {
    width: 100%;
    margin: 0;
}

.hs-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hs-portfolio-item { overflow: hidden; }

.hs-portfolio-inner {
    position: relative;
    overflow: hidden;
    margin: 2px;
}

.hs-portfolio-inner img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    aspect-ratio: 550 / 500;
    object-fit: cover;
}

.hs-portfolio-item:hover .hs-portfolio-inner img {
    transform: scale(1.15);
}

.hs-portfolio-caption {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hs-portfolio-item:hover .hs-portfolio-caption { opacity: 1; }

.hs-portfolio-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background: #4bda6a;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
    transform: translateY(-20px);
    transition: transform 0.4s ease, background 0.3s ease, opacity 0.4s ease;
    opacity: 0;
}

.hs-portfolio-item:hover .hs-portfolio-image {
    transform: translateY(0);
    opacity: 1;
}

.hs-portfolio-image:hover { background: #000; }

/* =============================================
   WHY US SECTION
   ============================================= */
#hs-service-post-section {
    position: relative;
    padding: 60px 0;
    background: #F5F5F5;
}

.hs-service-left-bg {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 50%;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=800&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hs-service-posts {
    float: right;
    width: 50%;
    padding: 60px 60px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.hs-service-post {
    margin-bottom: 25px;
    overflow: hidden;
}

.hs-service-icon {
    float: left;
    font-size: 46px;
    color: #4bda6a;
    width: 60px;
    text-align: center;
}

.hs-service-excerpt {
    padding-left: 80px;
    padding-right: 20px;
}

.hs-service-excerpt h6 {
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

/* =============================================
   COUNTER SECTION
   ============================================= */
#hs-counter-section {
    background-image: url('https://images.unsplash.com/photo-1590579491624-f98f36d4c763?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #FFF;
}

.hs-counter-section { position: relative; }

.hs-counter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

#hs-counter-section .hs-container { position: relative; z-index: 2; }
#hs-counter-section .hs-section-title { color: #fff; }
#hs-counter-section .hs-section-tagline { color: #ddd; }

.hs-counter-wrap { margin-left: -3%; }

.hs-counter {
    float: left;
    width: 22%;
    margin-left: 3%;
    text-align: center;
}

.hs-counter-count {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 3px;
}

.hs-counter-icon {
    display: inline-block;
    font-size: 22px;
    color: #4bda6a;
    position: relative;
}

.hs-counter-icon::after {
    content: "";
    position: absolute;
    left: 100%;
    height: 2px;
    width: 50px;
    background: #4bda6a;
    top: 50%;
    margin-top: -1px;
    margin-left: 10px;
}

.hs-counter-icon::before {
    content: "";
    position: absolute;
    right: 100%;
    height: 2px;
    width: 50px;
    background: #4bda6a;
    top: 50%;
    margin-top: -1px;
    margin-right: 10px;
}

.hs-counter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
#hs-testimonial-section { background: #F6F6F6; }

.hs-testimonial-wrap {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slider { position: relative; min-height: 120px; }

.hs-testimonial {
    display: none;
    animation: fadeIn 0.5s ease;
}

.hs-testimonial.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hs-testimonial h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.hs-testimonial-excerpt {
    line-height: 2;
    font-size: 16px;
    color: #555;
}

.hs-testimonial-excerpt .fa-quote-left {
    margin-right: 8px;
    font-size: 30px;
    color: #d6d6d6;
    vertical-align: middle;
}

.testimonial-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 25px;
    height: 4px;
    background: #d6d6d6;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
    border-radius: 0;
}

.dot.active, .dot:hover { background: #4bda6a; }

/* =============================================
   CONTACT SECTION
   ============================================= */
#hs-contact-section {
    background-image: url('https://www.kopnito.cz/wp-content/uploads/2020/11/121672724_2704591426459924_8392151978416454539_n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #FFF;
}

.hs-contact-section { position: relative; }

.hs-contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

#hs-contact-section .hs-container { position: relative; z-index: 2; }
#hs-contact-section .hs-section-title { color: #fff; }
#hs-contact-section .hs-section-tagline { color: #ddd; }

.hs-contact-address-center {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.hs-contact-address-center ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hs-contact-address-center ul li {
    padding: 10px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hs-contact-address-center ul li:last-child { border-bottom: none; }

.hs-contact-address-center .fa {
    color: #4bda6a;
    margin-right: 10px;
    width: 18px;
}

.hs-contact-address-center a { color: #fff; text-decoration: none; }
.hs-contact-address-center a:hover { color: #4bda6a; }

/* =============================================
   FOOTER
   ============================================= */
#hs-colophon { margin-top: 0; }

#hs-bottom-footer {
    background: #333;
    padding: 30px 0;
    color: #EEE;
    font-size: 13px;
    line-height: 1.2;
}

.hs-copy-right { float: left; }
.hs-site-info { float: right; }

#hs-bottom-footer .hs-container::after { content: ""; display: table; clear: both; }

/* =============================================
   BACK TO TOP
   ============================================= */
#hs-back-top {
    background: #4bda6a;
    position: fixed;
    right: 20px;
    bottom: 20px;
    height: 36px;
    width: 36px;
    color: #FFF;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    font-size: 20px;
    z-index: 9999;
    transition: background 0.3s ease;
}

#hs-back-top.hs-hide { display: none; }
#hs-back-top:hover { background: #000; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.lightbox-close:hover { color: #4bda6a; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 1180px) {
    .hs-container { width: auto; padding: 0 15px; }
}

@media screen and (max-width: 1000px) {
    .hs-main-navigation .hs-menu {
        display: none;
        background: #111;
        float: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        border-top: 2px solid #4bda6a;
    }

    .hs-main-navigation .hs-menu.open { display: block; }

    .hs-main-navigation li { float: none; display: inline-block; }

    .hs-toggle-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 26px;
        height: 40px;
        width: 40px;
        cursor: pointer;
    }

    .hs-toggle-menu span {
        position: relative;
        height: 2px;
        width: 32px;
        margin: 0 auto;
        background: #4bda6a;
        display: block;
        top: 50%;
        margin-top: -1px;
        box-shadow: 0 10px 0 #4bda6a, 0 -10px 0 #4bda6a;
    }
}

@media screen and (max-width: 768px) {
    #hs-masthead { height: auto; min-height: 70px; }

    #hs-site-branding { width: auto; padding: 12px 0; }

    .hero-content h2 { font-size: 36px; }
    .hero-content p { font-size: 16px; }

    .hs-about-sec,
    .hs-progress-bar-sec { width: auto; float: none; }
    .hs-about-sec { margin-bottom: 40px; }

    .hs-featured-post { width: 48%; }
    .hs-featured-post:nth-child(3) { clear: both; }

    .hs-portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .hs-service-left-bg { display: none; }
    .hs-service-posts { width: auto; float: none; padding-left: 0; }

    .hs-counter-wrap { margin-left: 0; }
    .hs-counter { width: auto; float: none; margin-left: 0; margin-bottom: 40px; }

    .hs-testimonial-wrap { width: 100%; }

    .hs-copy-right { float: none; margin-bottom: 10px; }
    .hs-site-info { float: none; }

    #hs-bottom-footer { text-align: center; }
}

@media screen and (max-width: 580px) {
    .hs-featured-post { float: none; margin-left: 0; width: auto; margin-bottom: 20px; }
    .hs-featured-post-wrap { margin-left: 0; }
    .hs-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 420px) {
    .hs-portfolio-grid { grid-template-columns: 1fr; }
}

@media screen and (min-width: 1001px) {
    .hs-main-navigation .hs-menu { display: block !important; }
}

/* Hide portfolio items where image fails to load */
.hs-portfolio-inner img[src=""],
.hs-portfolio-inner img:not([src]) {
    display: none;
}

/* Counter animation */
.hs-counter-count {
    transition: none;
}
