/* HACCP Istra – prezentacijska stranica */
:root {
  --ink: #142233;
  --green: #35618c;
  --green-2: #46739f;
  --frost: #eaf1f8;
  --frost-2: #d6e3f0;
  --paper: #ffffff;
  --line: #d5dfea;
  --muted: #4d5d70;
  --amber: #d9891f;
  --amber-bg: #fdf1dc;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --wrap: 1160px;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.4em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.light { background: transparent; color: var(--green); }
.btn.light:hover { background: var(--frost); color: var(--ink); }
.btn.white { background: #fff; color: var(--green); border-color: #fff; }
.btn.white:hover { background: var(--frost); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Zaglavlje */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo svg { flex: none; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--green); }
.top .btn { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.top .login { color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 22px; gap: 4px; box-shadow: 0 18px 30px -20px rgba(20,34,51,.35); }
.menu-panel a { padding: 12px 0; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--frost); }
.menu-panel .btn { margin-top: 12px; color: #fff; border-bottom: 0; }
@media (max-width: 980px) { .nav, .top .desk { display: none; } .menu { display: block; } }

/* Hero */
.hero { padding: 64px 0 96px; background: var(--frost); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--green); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .97rem; }
.facts li { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 40px 0 56px; } }

/* Temperaturna traka (glavni vizualni motiv) */
.strip { position: relative; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 22px 18px; box-shadow: 0 30px 60px -40px rgba(20,34,51,.55); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.chart-head b { font-family: var(--display); font-size: 1.05rem; }
.reading { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.reading small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.chart svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js .chart .line { animation: draw 2.2s ease-out .2s both; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.log time { font-family: var(--display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.log .warn { color: #8a5200; }
.phone { position: absolute; right: 0; bottom: -64px; width: 200px; border-radius: 26px; border: 7px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 30px 50px -25px rgba(20,34,51,.6); }
.phone img { border-radius: 18px; }
@media (max-width: 1100px) { .phone { display: none; } .strip { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .chart .line { animation: none; } }

/* Sekcije */
.band { padding: 88px 0; }
.band.frost { background: var(--frost); }
.band.ink { background: var(--ink); color: #e6edf5; }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink .muted, .band.ink .lead { color: #b7c6d6; }
.band.ink a:not(.btn) { color: #a9cdf0; }
.head { max-width: 46em; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.band.ink .head p { color: #b7c6d6; }

/* Problem → rješenje */
.pairs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.pair .p { color: var(--muted); display: flex; gap: 12px; }
.pair .s { display: flex; gap: 12px; }
.pair h3 { font-size: 1.12rem; margin-bottom: .25em; }
.pair p { margin: 0; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ico.no { background: #f3e7e5; color: #9a3b2c; }
.ico.yes { background: var(--frost); color: var(--green); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 14px; } }

/* Dan u kuhinji – vremenska crta */
.day { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.day::before { content: ""; position: absolute; left: 86px; top: 10px; bottom: 10px; width: 2px; background: var(--frost-2); }
.day li { display: grid; grid-template-columns: 74px 26px 1fr; gap: 14px; padding: 14px 0; align-items: start; }
.day time { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.3; }
.day .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--green); margin: 6px auto 0; position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--paper); }
.band.frost .day .dot { box-shadow: 0 0 0 5px var(--frost); }
.day .dot.amber { background: var(--amber); }
.day h3 { font-size: 1.1rem; margin: 0 0 .2em; }
.day p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.split.rev { grid-template-columns: .8fr 1.2fr; }
.sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .sticky { position: static; } }

/* Uređaji */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.device { background: #fff; border-radius: var(--r-l); padding: 18px; text-align: center; }
.device img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.device b { font-family: var(--display); display: block; margin-top: 6px; }
.device span { color: var(--muted); font-size: .9rem; }
.band.ink .device { background: #fff; color: var(--ink); }

/* Popisi s ikonama */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.band.ink .checks li::before { background-color: #5b8fc4; }

/* Vrste objekata */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kind { border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; background: #fff; }
.kind h3 { margin-bottom: .3em; }
.kind .who { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.kind ul { padding-left: 1.1em; margin: 0; }
.kind li { margin: 4px 0; }
.kind.main { border: 2px solid var(--green); }
@media (max-width: 900px) { .kinds { grid-template-columns: 1fr; } }

/* Funkcije */
.freq { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.freq:first-of-type { border-top: 0; }
.freq > h2 { font-size: 1.55rem; position: sticky; top: 100px; align-self: start; }
.freq > h2 small { display: block; font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.feat article h3 { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; }
.feat article h3 svg { flex: none; color: var(--green); }
.feat article p { color: var(--muted); margin-bottom: .4em; }
.feat article ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.feat figure { grid-column: 1 / -1; }
@media (max-width: 900px) { .freq { grid-template-columns: 1fr; gap: 18px; } .freq > h2 { position: static; } .feat { grid-template-columns: 1fr; } }

/* Slike zaslona */
.shots { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.shot { margin: 0; }
.shot.phone-s { width: 240px; border-radius: 24px; border: 6px solid var(--ink); background: var(--ink); overflow: hidden; }
.shot.phone-s img { border-radius: 17px; }
.shot.paper { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fff; box-shadow: 0 22px 44px -32px rgba(20,34,51,.5); }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.shot.phone-s figcaption { color: #c9d5e2; background: var(--ink); margin: 0; padding: 8px 10px 4px; text-align: center; }

/* Obrasci (numerirani – stvarni brojevi iz vodiča) */
.forms { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.forms li { break-inside: avoid; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.forms b { font-family: var(--display); color: var(--green); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .forms { columns: 1; } }

/* Cijene */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px; display: flex; flex-direction: column; background: #fff; }
.plan.main { background: var(--ink); color: #e6edf5; border-color: var(--ink); }
.plan.main h3, .plan.main .price { color: #fff; }
.plan.main .muted { color: #b7c6d6; }
.plan.main .checks li::before { background-color: #5b8fc4; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; margin: 6px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: inherit; opacity: .7; letter-spacing: 0; }
.plan .checks { margin: 20px 0 26px; flex: 1; }
.plan .tag { align-self: flex-start; background: var(--amber-bg); color: #7a4a00; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Pitanja */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Poziv na akciju */
.cta { background: var(--green); color: #fff; border-radius: var(--r-l); padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #dde8f3; margin: 0; }
.cta .actions { justify-content: flex-end; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 32px; } .cta .actions { justify-content: flex-start; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact a.card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; }
.contact a.card:hover { border-color: var(--green); background: var(--frost); }
.contact .card b { display: block; font-family: var(--display); font-size: 1.25rem; margin: 10px 0 2px; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* Podnožje */
.foot { background: var(--ink); color: #b7c6d6; padding: 56px 0 36px; font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot a { color: #e6edf5; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #2a3b50; padding-top: 22px; font-size: .85rem; }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Stranični naslov (podstranice) */
.page-hero { padding: 64px 0 40px; background: var(--frost); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 15em; }
@media (max-width: 700px) { .band { padding: 56px 0; } .page-hero { padding: 40px 0 28px; } .day::before { left: 70px; } .day li { grid-template-columns: 58px 26px 1fr; gap: 10px; } .day time { font-size: 1.05rem; } }

/* WhatsApp gumb */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(20,34,51,.55); }
.wa:hover { background: #1ebe5b; color: #fff; }
.wa svg { width: 32px; height: 32px; }
@media (max-width: 700px) { .wa { right: 14px; bottom: 14px; width: 54px; height: 54px; } .wa svg { width: 28px; height: 28px; } }
@media print { .wa { display: none; } }

/* Pravni tekstovi */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose dl { display: grid; grid-template-columns: 11em 1fr; gap: 6px 18px; margin: 0 0 1em; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.prose .box { background: var(--frost); border-radius: var(--r-m); padding: 20px 24px; margin: 0 0 1.4em; }
.prose .box p:last-child, .prose .box dl:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: 8px; } }
