/* ==================================================
   SUBPAGES.CSS
   sjednocený systém pro všechny podstránky
================================================== */

/* 1. GLOBAL SUBPAGE SYSTEM */

:root{

    --subpage-padding:
        clamp(90px, 10vh, 130px);

    --subpage-radius:
        10px;
}

/* SHARED SECTION SPACING */

.light-section,
.dark-section,
.process-section,
.faq-section{
    position: relative;
    padding: var(--subpage-padding) 0;
}


/* CONTAINER */
.container{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(22px,4vw,42px);
}

/* SECTION HEADER */
.section-header{
    max-width: 860px;
    margin:
        0 auto
        clamp(42px,6vh,72px);
    text-align: center;
}

.section-header h2{
    margin-bottom: 22px;
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.section-header p{
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.9;
    opacity: .78;
    text-align: center;
}

/* LIGHT / DARK */
.dark-section{
    background:
        radial-gradient(
            circle at top left,
            #001a33 0%,
            #050608 70%
        );
    color: #fff;
}

/* LIGHT SECTION */
.light-section{
    position: relative;
    background-image: url('../img/pozadí-lidht.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color:  #050608;
    isolation: isolate;
}

/* OVERLAY */
.light-section::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.62);
    z-index: -1;
}

/* ==================================================
   2. HERO SYSTEM
================================================== */
.service-hero{
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 100px 10% 120px;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==================================================
   HERO OVERLAY
================================================== */
.service-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5,6,8,.96) 0%,
            rgba(5,6,8,.78) 42%,
            rgba(5,6,8,.42) 100%
        );
    z-index: 1;
}

/* ==================================================
   HERO CONTENT
================================================== */
.service-hero .hero-content{
    position: relative;
    z-index: 5;
    max-width: 760px;
}

/* ==================================================
   HERO BADGE
================================================== */

.service-hero .hero-badge{
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(0,212,255,.18);
    backdrop-filter:  blur(12px);
    color: var(--primary-blue);
    font-size:.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================================================
   HERO H1
================================================== */

.service-hero h1{
    margin: 0 0 22px;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: .98;
    letter-spacing: 1px;
    font-size: clamp(2.2rem, 4.6vw, 4.2rem);
    font-weight: 500;
    max-width: 700px;
}

/* ==================================================
   HERO SUBLINE
================================================== */

.service-hero .hero-subline{
    display: block;
    margin-top: 18px;
    color: rgba(255,255,255,.88);
    font-size: clamp(1.05rem,2vw,1.45rem);
    font-weight:  600;
    line-height: 1.5;
    text-transform: none;
}

/* ==================================================
   HERO TEXT
================================================== */

.service-hero p{
    position: relative;
    max-width:640px;
    margin: 0 0 42px;
    padding-left: 22px;
    color: rgba(255,255,255,.74);
    line-height:  1.9;
}

.service-hero p::before{
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 1px;
    height: 82%;
    background:
        linear-gradient(
            to bottom,
            var(--primary-blue),
            transparent
        );
    opacity: .45;
}

/* ==================================================
   HERO BUTTONS 
================================================== */
.hero-btns{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.cta-margin-top{
    margin-top: 34px;

}
/* ==================================================
   HERO BACKGROUNDS
================================================== */
.detailing-hero{
    --hero-bg:url('../img/img_sekce_cisteni_interieru/7.png');
}

.ppf-hero{
    --hero-bg:url('../img/img_sekce_ppf/aplikace-ppf-hero.jpeg');
}

.wrap-hero{
    --hero-bg:url('../img/img_sekce_celopolep/hero.png');
}

.tonovani-hero{
    --hero-bg:url('../img/img_sekce_tonovani_skel/hero.png');
}

.galerie-hero{
    --hero-bg:url('../img/img_na_web/bez_ramecku/hero-realizace.png');
}

.ceramic-hero{
    --hero-bg:url('../img/img_sekce_ochrana_laku_a_renovace/Renovace\ laku_hero.jpeg');
}

.blog-hero{
    --hero-bg:url('../img/blog-hero.jpg');
}

.reklama-hero{
    --hero-bg:url('../img/img_sekce_reklamni_polep/designovy-polep-hero.jpg');
}

/* ==================================================
   3. SERVICE LAYOUT
================================================== */

.service-grid{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(50px,6vw,100px);
    align-items: center;
}


/* ==================================================
   REVERSE
================================================== */

.service-grid.reverse .service-image{
    justify-content: flex-start;
}

.service-grid:not(.reverse) .service-image{
    justify-content: flex-end;
}

/* ==================================================
   TEXT
================================================== */

.service-text h2{
    margin-bottom: 24px;
    line-height: 1.02;
}

.service-text p{
    line-height: 1.95;
    font-size: 1.02rem;
}

/* ==================================================
   IMAGE
================================================== */

.service-image{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    isolation: isolate;
}


/* ==================================================
   IMAGE GLOW
================================================== */

.service-image::before{
    content: "";
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(0,212,255,.12) 0%,
            transparent 72%
        );
    filter:
        blur(40px);
    opacity: .9;
    z-index: 0;
}

/* ==================================================
   IMAGE STYLE
================================================== */

.service-image img{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(0,0,0,.18);
    transition:
        transform .45s ease,
        box-shadow .45s ease;
}

/* ==================================================
   IMAGE HOVER
================================================== */

.service-grid:hover .service-image img{
    transform:
        translateY(-6px)
        scale(1.01);
}



/* ==================================================
   4. CHECKLIST
================================================== */

.check-list{
    list-style: none;
    padding: 0;
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li{
    position: relative;
    padding-left: 34px;
    line-height: 1.85;
    font-weight: 600;
}

.check-list li::before{
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2px;
    left: 0;
    color: var(--primary-blue);
}


/* ==================================================
   5. PROCESS SECTION
================================================== */

.process-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-container-5{
    grid-template-columns: repeat(6,1fr);
    max-width: 1200px;
}

/* horní řada */

.process-container-5 .process-box:nth-child(1),
.process-container-5 .process-box:nth-child(2),
.process-container-5 .process-box:nth-child(3){
    grid-column: span 2;
}

/* spodní řada */

.process-container-5 .process-box:nth-child(4){
    grid-column: 2 / span 2;
}

.process-container-5 .process-box:nth-child(5){
    grid-column: 4 / span 2;
}

/* ==================================================
   PROCESS CARD
================================================== */

.process-box{
    position: relative;
    overflow: hidden;
    padding: 36px 30px;
    border-radius: var(--subpage-radius);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.05) 0%,
            rgba(255,255,255,.025) 100%
        );
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.process-box:hover{
    transform: translateY(-6px);
    border-color: rgba(0,212,255,.28);
    box-shadow: 0 20px 50px rgba(0,212,255,.12);
}

/* ==================================================
   ICON CIRCLE
================================================== */

.circle-icon{
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,.06),
            rgba(0,0,0,.9)
        );
    border:2px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 20px rgba(0,212,255,.08);
    transition:
        transform .45s ease,
        border-color .45s ease,
        box-shadow .45s ease;
}

/* ==================================================
   NUMBER
================================================== */

.step-number{
    font-family:'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: rgba(255,255,255,.14);
    transition:
        color .45s ease,
        text-shadow .45s ease,
        transform .45s ease;
}

/* ==================================================
   HOVER EFFECT
================================================== */

.process-box:hover .circle-icon{
    border-color: rgba(0,212,255,.35);
    box-shadow:
        0 0 25px rgba(0,212,255,.18),
        inset 0 0 20px rgba(0,212,255,.10);
    transform: scale(1.05);
}

.process-box:hover .step-number{
    color: var(--primary-blue);
    text-shadow: 0 0 18px rgba(0,212,255,.35);
    transform: scale(1.08);
}

/* ==================================================
   6. CARE GRID
================================================== */

.care-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

/* ==================================================
   CARE CARD
================================================== */

.care-card{
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--subpage-radius);
    text-align: center;
    border: 1px solid rgba(0,212,255,.12);
    box-shadow: 0 14px 40px rgba(0,0,0,.05);
    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.care-card:hover{
    transform: translateY(-6px);
    box-shadow:  0 20px 50px rgba(0,212,255,.12);
}

.care-card i{
    font-size: 1.7rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    display: block;
}

.care-card h4{
    margin-bottom: 12px;
    color: #050608;
}

.care-card p{
    color: rgba(5,6,8,.72);
}

/* ==================================================
   7. TARGET GRID
================================================== */

.target-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 24px;
    margin-top: 50px;
}

/* ==================================================
   TARGET ITEM
================================================== */

.target-item{

    padding:36px 30px;
    border-radius: var(--subpage-radius);
    text-align: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.target-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,212,255,.12);
}

.target-item i{

    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.target-item h3{
    margin-bottom: 14px;
}

.target-item p{
    opacity: .74;
}

/* ==================================================
   8. FAQ
================================================== */

.faq .section-title{
    text-align: center;
    margin-bottom: 60px;
}

.faq .faq-container{
    max-width: 920px;
    margin: 0 auto;
}

.faq-cta{
    margin-top: 50px;
    text-align: center;
}


.section-title{
    text-align: center;
}

.section-title .subtitle{
    text-align: center;
    margin: 18px auto 0;
}

.subtitle{
    text-align: center;
    margin: 18px auto 0;
}
/* ==================================================
   9. FILTER BAR
================================================== */

.filter-bar{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 34px 22px;
    background:
        radial-gradient(
            circle at top left,
            #001a33 0%,
            #050608 72%
        );
}

.filter-bar button{
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(0,212,255,.24);
    background: rgba(255,255,255,.03);
    color: #fff;
    font-size:.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: .35s ease;
}

.filter-bar button:hover{
    background: rgba(0,212,255,.08);
    border-color: var(--primary-blue);
}

.filter-bar button.active{

    background: var(--primary-blue);
    color: #001018;
    border-color: transparent;
}



/* ==================================================
   10. TABLET
================================================== */

@media (max-width: 992px){

    .light-section,
    .dark-section,
    .process-section,
    .faq-section{
        padding: 100px 0;
    }

    .service-hero{
        min-height: auto;
        padding: 170px 42px 100px;
    }

    .service-grid{
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .service-image{
        min-height: auto;
    }

    .service-image img{
        max-width: 100%;
        max-height: 520px;
    }

    .process-container,
    .care-grid,
    .target-grid{
        grid-template-columns: repeat(2,1fr);
    }
}

/* ==================================================
   11. MOBILE
================================================== */

@media (max-width: 768px){
    .light-section,
    .dark-section,
    .process-section,
    .faq-section{
        padding: 84px 0;
    }

    .service-hero{
        padding: 145px 22px 90px;
    }

    .service-hero h1{
        font-size: clamp(2.4rem,11vw,4rem);
        line-height: .96;
    }

    .service-hero .hero-subline{
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-hero p{
        padding-left: 18px;
        font-size: .96rem;
        line-height: 1.85;
    }

    .hero-btns{
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary{
        width: 100%;
        justify-content: center;
    }

    .service-grid{
        gap: 52px;
    }

    .service-grid.reverse .service-text{
        order:1;
    }

    .service-grid.reverse .service-image{
        order:2;
    }

    .service-text h2{
        font-size:
            clamp(2rem,9vw,3.2rem);
    }

    .service-image{
        padding: 0;
    }

    .service-image img{
        max-height: 400px;
        border-radius: 24px;
    }

    .process-container,
    .care-grid,
    .target-grid{
        grid-template-columns: 1fr;
    }

    .process-box,
    .care-card,
    .target-item{
        padding: 32px 24px;
    }

    .process-container-5{
      grid-template-columns: 1fr;
    }

    .process-container-5 .process-box{
      grid-column: auto !important;
    }

    .filter-bar{
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .filter-bar button{
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ==================================================
   12. SMALL MOBILE
================================================== */

@media (max-width: 480px){
    .service-hero{
        padding: 130px 18px 82px;
    }

    .service-hero h1{
        font-size: clamp(2.1rem,11vw,3rem);
    }

    .service-text h2{
        font-size: clamp(1.8rem,10vw,2.7rem);
    }

    .service-text p,
    .service-hero p{
        font-size: .94rem;
    }

    .check-list li{
        font-size: .92rem;
    }

    .service-image img{
        max-height: 320px;
        border-radius: 20px;
    }

    .process-box,
    .care-card,
    .target-item{
        border-radius: 20px;
    }

    .filter-bar{
        padding: 22px 16px;
    }
    .filter-bar button{
        font-size: .72rem;
    }
}