:root{
    --teal:#0b8f9a;
    --blue:#155b78;
    --green:#76a82a;
    --orange:#f28a18;
    --pink:#c0187a;
    --dark:#102b3a;
    --muted:#667085;
    --light:#f5fbfb;
    --line:#e4eef0;
    --shadow:0 18px 50px rgba(16,43,58,.12);
}

/* =========================
   BASE
========================= */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    color:var(--dark);
    background:#fff;
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1180px,92vw);
    margin:auto;
}

/* =========================
   TOP BAR
========================= */

.topbar{
    background:linear-gradient(90deg,var(--blue),var(--teal));
    color:#fff;
    font-size:14px;
}

.topbar-inner{
    display:flex;
    gap:24px;
    justify-content:flex-end;
    padding:8px 0;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header{
    position:sticky;
    top:0;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    z-index:20;
    border-bottom:1px solid var(--line);
}

.nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:22px 0;
    min-height:108px;
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
    font-weight:700;
    color:var(--blue);
    line-height:1.1;
}

.brand img{
    width:150px;
    height:auto;
    object-fit:contain;
    transition:transform .25s ease;
}

.brand:hover img{
    transform:scale(1.03);
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-menu a{
    padding:12px 16px;
    border-radius:999px;
    font-weight:700;
    font-size:15px;
    transition:.2s ease;
}

.nav-menu a:hover,
.nav-menu .active{
    background:#eaf7f7;
    color:var(--teal);
}

.nav-toggle{
    display:none;
    border:0;
    background:var(--blue);
    color:#fff;
    border-radius:10px;
    padding:10px 13px;
    font-size:22px;
}

/* Kontakt dugme u meniju */
.nav-menu a.btn-small{
    background:linear-gradient(135deg,var(--orange),#ffb13c);
    color:#fff!important;
    box-shadow:0 10px 22px rgba(242,138,24,.22);
}

.nav-menu a.btn-small:hover,
.nav-menu a.btn-small.active{
    background:linear-gradient(135deg,var(--blue),var(--teal));
    color:#fff!important;
    box-shadow:0 12px 26px rgba(21,91,120,.24);
    transform:translateY(-1px);
}

/* =========================
   BUTTONS
========================= */

.btn,
.btn-small{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--orange),#ffb13c);
    color:#fff!important;
    font-weight:800;
    padding:13px 22px;
    box-shadow:0 10px 22px rgba(242,138,24,.25);
    cursor:pointer;
}

.btn-small{
    padding:10px 16px!important;
}

/* =========================
   HOME HERO SLIDER
========================= */

.hero{
    position:relative;
    min-height:620px;
    overflow:hidden;
    background:var(--dark);
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:.7s;
}

.slide.active{
    opacity:1;
}

.slide-bg{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
}

.slide-bg:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(16,43,58,.86),
        rgba(16,43,58,.35),
        rgba(16,43,58,.15)
    );
}

.slide-content{
    position:relative;
    z-index:2;
    color:#fff;
    padding-top:145px;
    max-width:760px;
}

.eyebrow{
    display:inline-flex;
    padding:7px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.16);
    font-weight:800;
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:.08em;
}

.hero h1{
    font-size:clamp(42px,6vw,78px);
    line-height:1.02;
    margin:18px 0;
}

.hero p{
    font-size:20px;
    max-width:680px;
    color:#eef7f8;
}

.hero-controls{
    position:absolute;
    left:50%;
    bottom:34px;
    transform:translateX(-50%);
    z-index:5;
    display:flex;
    gap:10px;
}

.dot{
    width:13px;
    height:13px;
    border-radius:50%;
    border:2px solid #fff;
    background:transparent;
}

.dot.active{
    background:#fff;
}

/* =========================
   PAGE HERO
========================= */

.page-hero{
    padding:78px 0;
    background:linear-gradient(135deg,#eaf7f7,#fff 55%,#fff3e4);
}

.page-hero h1{
    font-size:52px;
    line-height:1.05;
    margin:0 0 12px;
}

/* =========================
   SECTIONS
========================= */

.section{
    padding:80px 0;
}

.section.alt{
    background:var(--light);
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:28px;
}

.section h2{
    font-size:clamp(30px,4vw,46px);
    line-height:1.1;
    margin:0;
}

.lead{
    color:var(--muted);
    font-size:18px;
}

.content{
    font-size:18px;
}

.content h2{
    font-size:34px;
    margin-top:34px;
}

/* =========================
   GRIDS
========================= */

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:36px;
    align-items:center;
}

/* =========================
   CARDS
========================= */

.card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.card-body{
    padding:24px;
}

.card h3{
    margin:0 0 10px;
    font-size:22px;
}

.card-img{
    height:230px;
    background:#dfeff1;
    object-fit:cover;
    width:100%;
}

.badge{
    display:inline-block;
    padding:6px 10px;
    background:#eaf7f7;
    color:var(--teal);
    border-radius:999px;
    font-weight:800;
    font-size:13px;
    margin-bottom:12px;
}

/* =========================
   FEATURES
========================= */

.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:25px;
}

.feature{
    padding:24px;
    border-radius:22px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}

.feature b{
    display:block;
    font-size:22px;
    color:var(--teal);
    margin-bottom:8px;
}

/* =========================
   GALLERY
========================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.gallery a{
    display:block;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.gallery img{
    height:220px;
    width:100%;
    object-fit:cover;
}

/* =========================
   JOIN / CTA
========================= */

.join{
    background:linear-gradient(135deg,var(--teal),var(--blue));
    color:#fff;
    padding:45px 0;
}

.join-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
}

.join h2{
    margin:0;
    font-size:34px;
}

.join p{
    margin:8px 0 0;
    color:#eaf7f7;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#0d2634;
    color:#d7e4e8;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap:35px;
    padding:55px 0;
}

.footer h3{
    color:#fff;
}

.footer a{
    display:block;
    margin:8px 0;
    color:#d7e4e8;
}

.footer-logo{
    width:135px;
    background:#fff;
    border-radius:16px;
    padding:6px;
    margin-bottom:16px;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.1);
    padding:17px;
    color:#a9bec5;
}

.footer-bottom a{
    display:inline;
    color:#fff;
}

/* =========================
   FORMS
========================= */

.form{
    display:grid;
    gap:14px;
}

.input,
textarea,
select{
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px;
    font:inherit;
}

/* =========================
   ADMIN
========================= */

.admin-wrap{
    display:grid;
    grid-template-columns:240px 1fr;
    min-height:100vh;
}

.admin-side{
    background:#102b3a;
    color:#fff;
    padding:24px;
}

.admin-side a{
    display:block;
    padding:11px 12px;
    border-radius:10px;
    margin:5px 0;
}

.admin-side a:hover{
    background:rgba(255,255,255,.12);
}

.admin-main{
    padding:32px;
    background:#f6fafb;
}

.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
}

.table th,
.table td{
    padding:13px;
    border-bottom:1px solid #e8eef0;
    text-align:left;
}

/* =========================
   LOGIN
========================= */

.login{
    min-height:100vh;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#eaf7f7,#fff3e4);
}

.login-card{
    width:min(420px,92vw);
    background:#fff;
    padding:32px;
    border-radius:24px;
    box-shadow:var(--shadow);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:850px){

    .topbar-inner{
        justify-content:center;
        flex-wrap:wrap;
        gap:8px;
    }

    .nav-inner{
        min-height:84px;
        padding:14px 0;
    }

    .brand img{
        width:115px;
    }

    .nav-toggle{
        display:block;
    }

    .nav-menu{
        display:none;
        position:absolute;
        left:4vw;
        right:4vw;
        top:92px;
        background:#fff;
        border:1px solid var(--line);
        box-shadow:var(--shadow);
        border-radius:20px;
        padding:12px;
        flex-direction:column;
        align-items:stretch;
    }

    .nav-menu.open{
        display:flex;
    }

    .hero{
        min-height:560px;
    }

    .slide-content{
        padding-top:110px;
    }

    .grid-3,
    .grid-2,
    .features,
    .footer-grid,
    .gallery{
        grid-template-columns:1fr;
    }

    .section-head,
    .join-inner{
        display:block;
    }

    .admin-wrap{
        display:block;
    }

    .admin-side{
        position:relative;
    }

    .gallery img{
        height:260px;
    }
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top{
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,var(--orange),#ffb13c);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 14px 28px rgba(242,138,24,.30);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease,
        box-shadow .25s ease;
}

.back-to-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(242,138,24,.36);
}

@media(max-width:768px){

    .back-to-top{
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

}