/* Kalibović i partneri — jedini stylesheet.
   ───────────────────────────────────────────────────────────────────────────
   Nastao spajanjem dvaju `<style>` blokova starog weba (jedan u `<head>`,
   drugi usred tijela stranice). Spajanje je išlo po pravilu kaskade: isti
   selektor → svojstva se stope, kasnije pobjeđuje, položaj ostaje od prvog
   pojavljivanja. Oba su bloka nizala selektore istim redom, pa je ishod
   identičan — provjereno usporedbom izračunatih stilova u pregledniku.

   Izbačeno jer nema elementa ni skripte koja bi ih palila: `.googleMap`,
   `.dragger`, `.no-svg .logo`, `.chromeframe`, `.lt-ie8`, pravila za
   `.search` i obrasce. Izbačeni su i prefiksi `-moz-`/`-o-`/`-ms-` te
   `-webkit-` za svojstva koja su odavno standardna.                        */

/* ── Reset i osnova ─────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;      /* iOS inače poveća tekst u landscapeu */
}

body {
    margin: 0;
    font-size: .875rem;
    font-family: Calibri, "Helvetica Neue", sans-serif;
    color: #999;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

img {
    border: 0;
    vertical-align: middle;
}

svg:not(:root) { overflow: hidden; }

/* ⚠️ `content-box` nije ukras: crtice pod naslovima imaju `height: 0` i crta
   im je sam gornji rub. S `border-box` iz zvjezdice gore rub bi se uračunao u
   visinu i crtica bi narasla za piksel. */
hr {
    box-sizing: content-box;
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

b, strong { font-weight: 700; }

p {
    margin: 0 0 .625rem;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 200;
    text-align: left;
}

li {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 20px;
    font-weight: 200;
    text-align: left;
}

dl, menu, ol, ul { margin: 1em 0; }
menu, ol, ul     { padding: 0 0 0 40px; }
nav ul, nav ol   { list-style: none; }

a { color: #356CC5; text-decoration: none; }
a:focus { outline: none; }

::selection { background: #b3d4fc; text-shadow: none; }

/* ── Ikone (fontello) ───────────────────────────────────────────────────────
   Od četiri izvorna formata ostaju `woff` i `ttf`; `eot` je bio za Internet
   Explorer, a `svg` za Safari prije 2013.                                   */

@font-face {
    font-family: 'fontello';
    src: url(../font/fontello.woff?43359692) format("woff"),
         url(../font/fontello.ttf?43359692) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

[class^="icon-"]::before,
[class*=" icon-"]::before {
    font-family: "fontello";
    font-style: normal;
    font-weight: 400;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin: 0 .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
}

.icon-angle-double-down::before { content: '\e800'; }
.icon-download-cloud::before    { content: '\e801'; }
.icon-menu::before              { content: '\e802'; }
.icon-paste::before             { content: '\e803'; }
.icon-book::before              { content: '\e804'; }
.icon-chat::before              { content: '\e805'; }
.icon-edit::before              { content: '\e806'; }
.icon-search::before            { content: '\e807'; }
.icon-link-ext::before          { content: '\e809'; }
.icon-chart-bar::before         { content: '\e80b'; }

/* ── Mreža ──────────────────────────────────────────────────────────────── */

.c    { margin: 0 2%; float: left; }
.c2   { width: 46%; }
.c3   { width: 29.3333%; }
.c13  { width: 29.3333%; }
.c23  { width: 58.6666%; }
.c > img { width: 100%; height: auto; }

.textContent { width: 960px; margin: 0 auto; padding: 80px 0; }

.clearfix::before,
.clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }

.centered { text-align: center; }

@media screen and (max-width: 980px) {
    .textContent { width: 96%; padding: 80px 2%; }
}
@media screen and (max-width: 880px) {
    .c2, .c23, .c13 { width: 96%; }
    .c3 { width: 46%; }
}
@media screen and (max-width: 550px) {
    .c3   { width: 96%; }
    .item { min-height: auto !important; }
}

/* ── Zaglavlje i navigacija ─────────────────────────────────────────────── */

#header {
    position: relative;
    height: 100vh;
    max-height: 640px;
    background: url(../img/letac2.webp) center center fixed no-repeat;
    background-size: cover;
}

/* iOS ne crta `background-attachment: fixed` — sliku rastegne preko cijele
   visine dokumenta. Klasu `ipad` postavlja `js/site.js`. */
.ipad #header,
.ipad .devider { background-attachment: scroll; }

.topBar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 4999;
    width: 100%;
    height: 88px;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, .21);
}

.whiteTrans { background: rgba(255, 255, 255, .95); }

.logo {
    display: block;
    width: 163px;
    height: 75px;
    text-indent: -9999px;
    overflow: hidden;
    position: absolute;
    z-index: 5000;
    padding: 0 10px;
    left: 20px;
    top: 6px;
    background: url(../img/kalibovicipartneri_logo.svg) left top no-repeat;
}

#mainNav {
    position: fixed;
    z-index: 5001;
    right: 10px;
    top: 37px;
}

#mainNav a {
    display: block;
    float: left;
    padding: 2px 8px 5px;
    margin-left: 10px;
    color: #fff;
    background: #46627E;
    font-size: 18px;
}

body:not(.mobRes) #mainNav a { transition: opacity .5s; }
body:not(.mobRes) #mainNav a:hover,
body:not(.mobRes) #mainNav a:focus,
body:not(.mobRes) #mainNav a.current { opacity: .6; }

/* Gumb za izbornik: do 590 px širine skripta stavi `mobRes` na `<body>`. */
.togTrigger {
    display: none;
    position: absolute;
    z-index: 5002;
    top: 33px;
    right: 20px;
    font-size: 28px;
    color: #46627E;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.mobRes .togTrigger { display: block; }

.mobRes #mainNav {
    margin-top: 0;
    width: 100%;
    z-index: 300;
    right: auto;
    top: 88px;
    background: #F9FAFB;
    display: none;
}
.mobRes #mainNav.move {
    display: block;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, .21);
}
.mobRes #mainNav a {
    float: none;
    margin-left: auto;
    padding: 10px 20px;
    background: #46627E;
}
.mobRes #mainNav a:hover { background: #F9FAFB; color: #46627E; }

.introText {
    color: #fff;
    display: block;
    font-size: 47px;
    font-weight: 300;
    left: 1%;
    line-height: 45px;
    position: absolute;
    top: 70%;
    text-shadow: 1px 1px 2px rgb(150, 150, 150);
}

.goDown {
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    bottom: -40px;
    color: #666;
    display: block;
    left: 50%;
    margin-left: -45px;
    padding: 4px;
    position: absolute;
}
.goDown:hover { text-decoration: none; }
.goDown i {
    background: #fff;
    border-radius: 50%;
    display: block;
    font-size: 2em;
    height: 80px;
    line-height: 66px;
    text-align: center;
    width: 80px;
    z-index: 30;
}

/* ── Sekcije ────────────────────────────────────────────────────────────── */

.section { padding-top: 22px; }
.section#onama .textContent  { padding-bottom: 0; }
.section#usluge              { padding-top: 88px; }
.section#usluge .textContent { padding-top: 20px; padding-bottom: 0; }
.section#kontakt             { padding-top: 88px; }

.textContent hr { background: #d9d9d9; height: 0; margin: 20px auto 30px; width: 100px; }
.textContent h1 { color: #777; font-size: 43px; font-weight: 400; text-transform: uppercase; }
.textContent h2 { font-size: 26px; text-transform: uppercase; }

/* Traka sa slikom preko cijele širine, između sekcija. */
.devider {
    height: 300px;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}
.devider.short     { height: auto; text-align: center; padding: 87px 0 0; }
.devider.short h2  { font-size: 32px; margin: 0; color: #fff; background: #46627e; display: block; padding: 10px; }

/* Kartica usluge. Fiksna visina naslova drži ikone u istoj liniji kad je
   naslov u dva reda; `min-height` drži i same kartice u ravnini. */
.item      { margin-bottom: 50px; min-height: 400px; }
.item h2   { height: 64px; margin-bottom: 10px; }
.item p    { line-height: 1.2; }
.item i    { font-size: 56px; margin: 10px 0; }

.section.izvjesca .textContent { padding: 30px 0; }
a.download {
    font-size: 22px;
    display: block;
    padding: 5px;
    color: #999;
    transition: color .5s ease;
}
a.download:hover { color: #069; }

#kontakt  { position: relative; }

/* ⚠️ `height: auto` je nužan uz `width` i `height` u oznaci `<img>`. Bez
   njega preglednik uzme visinu iz oznake doslovno (637 px) i karta se
   rastegne; s njim je oznaka samo omjer, pa stranica ne poskoči dok se
   slika učitava. */
.lokacija { width: 100%; height: auto; }

/* ── Podnožje ───────────────────────────────────────────────────────────── */

.footer { background: #46627e; color: #fff; }
.footer .textContent { padding: 40px 0 5px; }

.bottomLinks { padding-bottom: 20px; }
.bottomLinks > .c { padding-bottom: 20px; }
.bottomLinks .title { font-size: 20px; font-weight: 700; display: block; padding-bottom: 7px; }
.bottomLinks a {
    color: #fff;
    padding: 5px 0;
    display: inline-block;
    margin-bottom: 5px;
}
.bottomLinks a:hover { text-decoration: underline; }

/* Strelica uz vanjsku poveznicu.
   Ovdje je stajalo i `.no-touch .bottomLinks a { padding: 0 }`, koje nikad
   nije radilo: klasu `no-touch` nije postavljao nitko — Modernizr je pisao
   `no-touchevents`. Izbačeno je zajedno s Modernizrom; da je oživljeno,
   podnožje bi se skratilo za 50 px u odnosu na postojeći web. */
.bottomLinks a[target="_blank"]::after {
    font-family: 'fontello';
    content: " \e809";
    padding-left: 5px;
    color: #C6D2D7;
    font-size: 10px;
}

.linkSet { float: left; width: 50%; }

.veryBottom { font-size: 12px; margin: 0; line-height: 1.2; }

/* ── Animacija pri dolasku u vidno polje ────────────────────────────────── */

.animated {
    animation-delay: 200ms;
    animation-duration: 1200ms;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fadeInUp { animation-name: fadeInUp; }

/* Tko je u postavkama sustava isključio animacije, ne dobiva ni ovu. */
@media (prefers-reduced-motion: reduce) {
    .animated { animation: none; }
}

/* ── Uske širine ────────────────────────────────────────────────────────── */

@media screen and (max-width: 760px) {
    .linkSet { width: 100%; }
}
@media screen and (max-width: 500px) {
    p { line-height: 1.3; }
    .textContent hr { display: none; }
    .textContent h1 { font-size: 32px; text-align: left; }
}
@media screen and (max-width: 440px) {
    .introText { font-size: 36px; line-height: 37px; }
}

/* ── Ispis ──────────────────────────────────────────────────────────────── */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a, a:visited { text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; }
    a[href^="#"]::after { content: ""; }
    img { max-width: 100% !important; page-break-inside: avoid; }
    p, h2, h3 { orphans: 3; widows: 3; }
    h2, h3 { page-break-after: avoid; }
    @page { margin: .5cm; }
}
