/*
 * Path: public_html/assets/css/main.css
 * Glavni CSS javne stranice biosanacija.hr.
 */

:root{
    --navy:#061a40;
    --navy-2:#08265c;
    --navy-dark:#031025;
    --cyan:#16c8f3;
    --green:#2dd4bf;
    --white:#ffffff;
    --soft:#f4f8fb;
    --text:#172033;
    --muted:#667085;
    --border:#e4eaf0;
    --shadow:0 24px 70px rgba(6,26,64,.14);
}

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

html{
    scroll-behavior:smooth;
}

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

img{
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
}

.site-header{
    position:sticky;
    top:0;
    z-index:999;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(228,234,240,.86);
    box-shadow:0 18px 46px rgba(6,26,64,.08);
}

.header-top{
    background:linear-gradient(135deg,var(--navy-dark),var(--navy));
    color:#fff;
    font-size:13px;
}

.header-top__inner{
    max-width:1400px;
    margin:0 auto;
    padding:8px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.header-top__inner span{
    color:rgba(255,255,255,.82);
    font-weight:600;
}

.header-top__links{
    display:flex;
    align-items:center;
    gap:18px;
}

.header-top__links a{
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

.header-top__links a:hover{
    color:var(--green);
}

.site-header__inner{
    max-width:1400px;
    margin:0 auto;
    padding:14px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
}

.site-logo{
    display:flex;
    align-items:center;
    text-decoration:none;
    flex-shrink:0;
}

.site-logo__image{
    display:block;
    height:62px;
    width:auto;
}

.site-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:8px;
    border:1px solid rgba(228,234,240,.9);
    border-radius:999px;
    background:rgba(244,248,251,.78);
}

.site-nav a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 14px;
    border-radius:999px;
    text-decoration:none;
    color:var(--navy);
    font-size:13px;
    font-weight:800;
    white-space:nowrap;
    transition:.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active{
    color:#fff;
    background:linear-gradient(135deg,var(--navy),var(--navy-2));
    box-shadow:0 12px 26px rgba(6,26,64,.16);
}

.header-cta{
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    min-width:170px;
    padding:12px 18px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--cyan),var(--green));
    color:var(--navy-dark);
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    line-height:1.18;
    box-shadow:0 18px 38px rgba(22,200,243,.24);
    transition:.22s ease;
}

.header-cta span{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.header-cta strong{
    font-size:14px;
}

.header-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 22px 48px rgba(22,200,243,.32);
}

.nav-toggle{
    display:none;
    width:46px;
    height:46px;
    border:0;
    background:linear-gradient(135deg,var(--navy),var(--navy-2));
    border-radius:14px;
    cursor:pointer;
}

.nav-toggle span{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
    margin:5px auto;
    border-radius:10px;
}

.hero-slider{
    position:relative;
    min-height:760px;
    overflow:hidden;
    background:var(--navy-dark);
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    transition:opacity 900ms ease, visibility 900ms ease;
}

.hero-slide.is-active{
    opacity:1;
    visibility:visible;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg, rgba(3,16,37,.92) 0%, rgba(3,16,37,.74) 42%, rgba(3,16,37,.22) 100%),
        linear-gradient(0deg, rgba(3,16,37,.6), rgba(3,16,37,.08));
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:760px;
    padding:120px 24px;
    margin-left:calc((100vw - 1400px) / 2);
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:16px;
    color:var(--green);
    font-size:13px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.eyebrow::before{
    content:"";
    width:30px;
    height:2px;
    background:var(--green);
    border-radius:10px;
}

.hero-content h1,
.hero-content h2{
    color:#fff;
    font-size:clamp(40px,6vw,76px);
    line-height:1.02;
    letter-spacing:-.05em;
    margin-bottom:24px;
}

.hero-content p{
    max-width:660px;
    color:rgba(255,255,255,.82);
    font-size:19px;
    margin-bottom:34px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:14px 24px;
    border-radius:999px;
    text-decoration:none;
    font-weight:800;
    transition:.2s ease;
}

.btn-primary{
    background:linear-gradient(135deg,var(--cyan),var(--green));
    color:var(--navy-dark);
    box-shadow:0 18px 38px rgba(22,200,243,.22);
}

.btn-primary:hover{
    transform:translateY(-2px);
}

.btn-light{
    background:rgba(255,255,255,.13);
    color:#fff;
    border:1px solid rgba(255,255,255,.26);
}

.btn-light:hover{
    background:rgba(255,255,255,.2);
}

.btn-outline{
    color:var(--navy);
    border:1px solid var(--border);
    background:#fff;
}

.btn-outline:hover{
    border-color:var(--cyan);
    color:var(--navy-2);
}

.section{
    max-width:1400px;
    margin:0 auto;
    padding:100px 24px;
}

.section-head{
    max-width:760px;
    margin:0 auto 46px;
    text-align:center;
}

.section-head h1,
.section-head h2,
.about-content h1,
.about-content h2,
.emergency-cta h2{
    color:var(--navy);
    font-size:clamp(30px,4vw,52px);
    line-height:1.12;
    letter-spacing:-.04em;
    margin-bottom:16px;
}

.section-head p,
.about-content p,
.emergency-cta p{
    color:var(--muted);
    font-size:17px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.service-card{
    min-height:330px;
    padding:28px;
    border:1px solid var(--border);
    border-radius:26px;
    background:#fff;
    text-decoration:none;
    box-shadow:0 16px 46px rgba(6,26,64,.06);
    transition:.22s ease;
}

.service-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:rgba(22,200,243,.38);
}

.service-card img{
    width:76px;
    height:76px;
    object-fit:cover;
    border-radius:20px;
    margin-bottom:24px;
}

.service-card h3{
    color:var(--navy);
    font-size:21px;
    line-height:1.25;
    margin-bottom:12px;
}

.service-card p{
    color:var(--muted);
    font-size:15px;
}

.services-page-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.services-page-card{
    display:block;
    overflow:hidden;
    min-height:100%;
    border:1px solid var(--border);
    border-radius:30px;
    background:#fff;
    text-decoration:none;
    box-shadow:0 18px 55px rgba(6,26,64,.08);
    transition:.24s ease;
}

.services-page-card:hover{
    transform:translateY(-7px);
    box-shadow:var(--shadow);
    border-color:rgba(22,200,243,.42);
}

.services-page-card__image{
    width:100%;
    height:290px;
    overflow:hidden;
    background:var(--soft);
}

.services-page-card__image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:.35s ease;
}

.services-page-card:hover .services-page-card__image img{
    transform:scale(1.04);
}

.services-page-card__content{
    padding:28px;
}

.services-page-card__content h2{
    color:var(--navy);
    font-size:23px;
    line-height:1.22;
    letter-spacing:-.02em;
    margin-bottom:12px;
}

.services-page-card__content p{
    color:var(--muted);
    font-size:15px;
    margin-bottom:20px;
}

.services-page-card__content span{
    display:inline-flex;
    color:var(--navy);
    font-weight:800;
    font-size:14px;
}

.about-strip{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
    align-items:center;
}

.about-image img{
    width:100%;
    height:620px;
    object-fit:cover;
    border-radius:34px;
    box-shadow:var(--shadow);
}

.about-content{
    max-width:620px;
}

.check-list{
    list-style:none;
    margin:28px 0 30px;
    display:grid;
    gap:14px;
}

.check-list li{
    position:relative;
    padding-left:34px;
    color:var(--navy);
    font-weight:600;
}

.check-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--cyan),var(--green));
}

.stats-section{
    max-width:1400px;
    margin:0 auto;
    padding:36px 24px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.stat-card{
    padding:34px;
    border-radius:26px;
    background:var(--navy);
    color:#fff;
}

.stat-card strong{
    display:block;
    font-size:42px;
    line-height:1;
    margin-bottom:12px;
}

.stat-card span{
    color:rgba(255,255,255,.76);
    font-size:15px;
}

.proof-section{
    padding-top:80px;
}

.proof-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    align-items:stretch;
}

.proof-grid img{
    display:block;
    width:100%;
    height:420px;
    object-fit:cover;
    object-position:center;
    border-radius:28px;
    box-shadow:0 18px 45px rgba(6,26,64,.1);
}

.emergency-cta{
    max-width:1400px;
    margin:40px auto 100px;
    padding:58px;
    border-radius:34px;
    background:
        linear-gradient(135deg, rgba(6,26,64,.96), rgba(8,38,92,.92)),
        url('../img/naslovna-slika-bg-dole.png') center/cover;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;
    color:#fff;
}

.emergency-cta h2{
    color:#fff;
    max-width:850px;
}

.emergency-cta p{
    color:rgba(255,255,255,.76);
    max-width:720px;
}

.site-footer{
    background:var(--navy-dark);
    color:#fff;
}

.site-footer__inner{
    max-width:1400px;
    margin:0 auto;
    padding:70px 24px;
    display:grid;
    grid-template-columns:1.4fr .8fr .8fr;
    gap:50px;
}

.footer-brand strong{
    display:block;
    font-size:26px;
    margin-bottom:14px;
}

.footer-brand p,
.footer-col p{
    color:rgba(255,255,255,.72);
}

.footer-col{
    display:grid;
    gap:10px;
    align-content:start;
}

.footer-col h3{
    font-size:17px;
    margin-bottom:8px;
}

.footer-col a{
    color:rgba(255,255,255,.72);
    text-decoration:none;
}

.footer-col a:hover{
    color:#fff;
}

.site-footer__bottom{
    border-top:1px solid rgba(255,255,255,.1);
    padding:18px 24px;
    text-align:center;
    color:rgba(255,255,255,.58);
    font-size:14px;
}

@media(max-width:1320px){
    .site-header__inner{
        gap:14px;
    }

    .site-nav{
        gap:3px;
        padding:6px;
    }

    .site-nav a{
        padding:9px 10px;
        font-size:12px;
    }

    .header-cta{
        min-width:152px;
        padding:11px 14px;
    }

    .header-cta strong{
        font-size:13px;
    }
}

@media(max-width:1200px){
    .service-grid,
    .stats-section{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-content{
        margin-left:0;
    }

    .header-top{
        display:none;
    }

    .site-nav{
        position:absolute;
        left:18px;
        right:18px;
        top:92px;
        display:none;
        flex-direction:column;
        align-items:stretch;
        padding:14px;
        background:#fff;
        border:1px solid var(--border);
        border-radius:24px;
        box-shadow:var(--shadow);
    }

    .site-nav.is-open{
        display:flex;
    }

    .site-nav a{
        justify-content:flex-start;
        width:100%;
        min-height:46px;
        padding:12px 16px;
        font-size:14px;
    }

    .nav-toggle{
        display:block;
        margin-left:auto;
    }
}

@media(max-width:992px){
    .services-page-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .services-page-card__image{
        height:250px;
    }

    .site-logo__image{
        height:50px;
    }

    .header-cta{
        display:none;
    }

    .hero-slider{
        min-height:680px;
    }

    .about-strip{
        grid-template-columns:1fr;
    }

    .about-image img{
        height:440px;
    }

    .proof-grid{
        grid-template-columns:1fr;
    }

    .proof-grid img{
        height:360px;
    }

    .emergency-cta{
        margin:30px 24px 80px;
        padding:38px;
        flex-direction:column;
        align-items:flex-start;
    }

    .site-footer__inner{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .services-page-grid{
        grid-template-columns:1fr;
    }

    .services-page-card__image{
        height:230px;
    }

    .site-header__inner{
        padding:12px 16px;
    }

    .site-logo__image{
        height:42px;
    }

    .site-nav{
        top:74px;
        left:14px;
        right:14px;
    }

    .hero-slider{
        min-height:650px;
    }

    .hero-content{
        padding:90px 18px;
    }

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

    .hero-actions,
    .btn{
        width:100%;
    }

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

    .section{
        padding:72px 18px;
    }

    .service-card{
        min-height:auto;
    }

    .about-image img{
        height:320px;
        border-radius:24px;
    }

    .stat-card{
        padding:28px;
    }

    .proof-grid img{
        height:280px;
    }

    .emergency-cta{
        margin:20px 18px 70px;
        padding:30px;
        border-radius:24px;
    }
}