:root {
    --bg: #0f172a;
    --fg: #0b1220;
    --text: #0b1220;
    --muted: #5b667a;
    --line: #d7dde7;
    --white: #ffffff;
    --accent: #1f3b8a;
    --max: 1100px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 56px 0;
}

.muted {
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        display: inline-block;
        padding: 10px 16px;
        border: 1px solid var(--line);
        background: #fff;
    }

/* header / nav */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* bitno za mob */
    flex: 0 1 auto; /* dopušta smanjivanje */
}

.logo-img {
    height: 40px;
    width: auto;
    flex: 0 0 auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

    .brand-name strong {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
  
    }

    .brand-name span {
        font-size: 12px;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
 
    }

nav.primary {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/*    .menu a {
        display: inline-block;
        padding: 8px 10px;
        border: 1px solid transparent;
    }

        .menu a:hover, .menu a:focus {
            border-color: var(--line);
            outline: none;
        }*/
    .menu a {
        display: inline-block;
        padding: 8px 14px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 14px;
        letter-spacing: 0.5px;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .menu a:hover,
        .menu a:focus {
            background: #0b1220;
            color: #fff;
            border-color: #0b1220;
        }

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.burger {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
	
	font-weight:600;          /* bold */
  font-size:14px;
  color:#0b1220;            /* tamna industrijska boja */
  letter-spacing:0.5px;
  cursor:pointer;
}

.burger:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(11,18,32,0.2);
}


/* Mobile menu panel - no border overlap */
.mobile-panel{
  border-top:1px solid var(--line);
  background:#fff;
}

.mobile-panel ul{
  list-style:none;
  margin:0;
  padding:12px 16px 16px;

  display:grid;          /* umjesto flex */
  gap:10px;              /* razmak između "buttona" */
}

.mobile-panel a{
  display:block;
  width:100%;

  padding:12px 12px;
  border:1px solid var(--line);
  background:#fff;

  line-height:1.2;
  white-space:normal;    /* da se tekst normalno lomi */
}

/* hero */
.hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.75)), url("../images/background-img.png"); 
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    padding: 56px 0;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: 0.2px;
    font-weight: 750;
    max-width: 900px;
}

.hero p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255,255,255,.9);
}

/* usluge */
.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

    .section-head h2 {
        margin: 0;
        font-size: 26px;
    }

    .section-head p {
        margin: 0;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    border: 1px solid var(--line);
    padding: 18px;
    background: #fff;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #fff;
}

.card h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .2px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* footer */
footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */




/* O meni – single column layout */
.about-content{
  display:block;
}

.skills{
  margin-top:40px;
}
.about-text p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 15px;
}

.skills h2 {
        margin-top: 0;
        font-size: 20px;
        margin-bottom: 18px;
    }

.skills-group {
    margin-bottom: 18px;
}

    .skills-group h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--muted);
    }

    .skills-group p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
    }

/* Kontakt – single column layout */
.contact-grid{
  display:block;
}

.contact-box + .contact-box{
  margin-top:30px;
	  background: #fff;
}

    .contact-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 14px;
    }


.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

    .field label {
        font-size: 13px;
        color: var(--muted);
    }

input, textarea {
    border: 1px solid var(--line);
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.field.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

    .field.checkbox input {
        margin-top: 3px;
        width: 16px;
        height: 16px;
    }

.btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


.btn{
  display:inline-block;
  border:1px solid #0b1220;
  background:#0b1220;      /* tamna pozadina */
  color:#fff;              /* bijeli tekst */
  padding:10px 16px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
}

.btn:hover{
  background:#000;
  border-color:#000;
}



.status {
    margin: 12px 0 0;
    color: var(--muted);
}

.fineprint {
    margin: 10px 0 16px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .contact-list li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

/* honeypot */
.hp {
    display: none !important;
}

/* Usluge, lista */

.service-list {
    margin: 12px 0 0 0;
    padding-left: 18px;
}

    .service-list li {
        margin-bottom: 8px;
        line-height: 1.6;
        font-size: 14px;
    }




/* Clean list reset */

.service-list,
.why-card ul,
.process-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* Custom marker */

    .service-list li,
    .why-card li {
        position: relative;
        padding-left: 18px;
        margin-bottom: 10px;
        line-height: 1.6;
        font-size: 14px;
    }

        .service-list li::before,
        .why-card li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.7em; /* poravnanje s prvim redom */
            width: 10px;
            height: 1px;
            background: #0b1220;
        }

/* ordered list */
/*.process-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

    .process-list li {
        counter-increment: step;
        position: relative;
        padding-left: 40px;
        margin-bottom: 18px;
        line-height: 0.9;
    }

        .process-list li::before {
            content: counter(step, decimal-leading-zero);
            position: absolute;
            left: 0;
            top: 0;
            font-weight: 600;
            color: #0b1220;
        }*/
/* PROCESS LIST – refined style */

/* PROCESS LIST – aligned with other lists */

.process-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin-top: 14px;
}

    .process-list li {
        counter-increment: step;
        position: relative;
        padding-left: 22px; /* skoro isto kao unordered */
        margin-bottom: 12px;
        line-height: 1.6;
        font-size: 14px;
    }

        .process-list li::before {
            content: counter(step, decimal-leading-zero);
            position: absolute;
            left: 0;
            top: 0.7em; /* poravnanje s prvim redom */
            transform: translateY(-50%);
            font-size: 12px;
            font-weight: 600;
            color: #0b1220;
        }


/*.site-header {
    border-top: 3px solid #0b1220;
    box-shadow: 0 -1px 0 #d7dde7 inset;*/ /* druga tanka svijetla linija ispod */
/*}*/

/*.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-top: 3px solid #0b1220;*/ /* industrijski akcent */
    /*border-bottom: 1px solid #d7dde7;*/ /* samo jedna donja linija */
/*}*/

/* Page hero za non index */
/*.page-hero {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 36px 0;
}
*/
.site-header {
    border-top: 3px solid #0b1220;
    border-bottom: none;
}

.page-hero {
    padding: 36px 0;
    background: #fff;
}

    .page-hero h1 {
        margin: 0 0 10px;
        font-size: clamp(24px, 3vw, 34px);
    }

    .page-hero p {
        margin: 0;
        color: var(--muted);
        max-width: 760px;
        line-height: 1.6;
    }

    /* Optional: subtle industrial strip behind text */
    .page-hero::before {
        content: "";
        display: block;
        height: 10px;
        background: #0b1220;
        margin-bottom: 26px;
    }




/* Dark page hero for inner pages (index-like feeling, no image) */
.page-hero--dark {
    color: #fff;
    background: linear-gradient(180deg, rgba(2,6,23,.92), rgba(2,6,23,.98));
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
}

    .page-hero--dark h1 {
        margin: 0 0 10px;
        font-size: clamp(24px, 3.2vw, 36px);
        letter-spacing: 0.2px;
        font-weight: 750;
    }

    .page-hero--dark p {
        margin: 0;
        max-width: 760px;
        line-height: 1.6;
        color: rgba(255,255,255,.85);
    }

.nav-cta {
    border: 1px solid #0b1220 !important;
    padding: 8px 14px;
}

    .nav-cta:hover {
        background: #0b1220;
        color: #fff;
    }

/* hidenn wins */
.mobile-panel[hidden]{
  display:none !important;
}

html, body{
  overflow-x: hidden;
}
.card, .wrap, .grid{
  min-width: 0;
}

.service-list li,
.why-card li,
.process-list li{
  overflow-wrap: break-word;  /* lomi samo preduge dijelove */
  word-break: normal;         /* ne lomi normalne riječi */
  hyphens: auto;              /* ako browser podržava (HR često radi ok) */
}

#usluge{
  scroll-margin-top: 80px;
}

/* Tablet: 2 columns, brand wraps */
@media (max-width: 900px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Allow brand text to wrap (no ellipsis) */
  .brand-name strong,
  .brand-name span{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .brand-name span{
    display:block;
  }

  .brand{
    min-width:0;
  }

  .brand-name{
    min-width:0;
  }
}

/* Mobile: burger menu, 1 column */
@media (max-width: 720px){
  nav.primary{ display:none !important; }
  .burger{ display:inline-block !important; }

  .grid{ grid-template-columns: 1fr; }

  /* mobile panel is allowed to exist; hidden attribute controls visibility */
  .mobile-panel{ display:block; }

  /* keep brand flexible next to burger */
  .brand{
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-name{
    min-width: 0;
  }

  /* optional: make tagline a bit smaller */
  .brand-name span{
    font-size:12px;
    margin-top:2px;
  }
}/* Tablet: 2 columns, brand wraps */
@media (max-width: 900px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Allow brand text to wrap (no ellipsis) */
  .brand-name strong,
  .brand-name span{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .brand-name span{
    display:block;
  }

  .brand{
    min-width:0;
  }

  .brand-name{
    min-width:0;
  }
}

/* Mobile: burger menu, 1 column */
@media (max-width: 720px){
  nav.primary{ display:none !important; }
  .burger{ display:inline-block !important; }

  .grid{ grid-template-columns: 1fr; }

  /* mobile panel is allowed to exist; hidden attribute controls visibility */
  .mobile-panel{ display:block; }

  /* keep brand flexible next to burger */
  .brand{
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-name{
    min-width: 0;
  }

  /* optional: make tagline a bit smaller */
  .brand-name span{
    font-size:12px;
    margin-top:2px;
  }
}
