/* ========================================================================== 
   TEHNOFORMAT / v2.1 POLISH
   Nadogradnja postojećeg v2 demoa. Redoslijed i sadržaj sekcija su očuvani.
   00 Sustav · 01 Navigacija · 02 Hero · 03 Usluge · 04 Reference · 05 O nama
   06 Područja · 07 Proces · 08 Kontakt · 09 Podnožje · 10 Kontrole
   11 Responzivnost · 12 Smanjeno kretanje.
   Učitava se nakon style.css i theme-dark.css.
   ========================================================================== */

/* 00. SUSTAV / Mirnije tamne površine, čitljiviji tekst i ujednačen ritam. */
:root {
  --surface: #161c20;
  --surface-soft: #20292f;
  --surface-cool: #29343c;
  --ink: #f4f5f3;
  --ink-soft: #dde2e4;
  --muted: #b8c2c8;
  --border: #3e4a52;
  --dark-muted: #b8c2c8;
  --section-space: clamp(76px, 8vw, 116px);
  --transition: 200ms ease;
  --intro-chrome-height: 118px;
}
html { scroll-padding-top: 108px; }
body { line-height: 1.75; }
h1, h2, h3 { font-weight: 600; letter-spacing: .005em; }
h2 { font-size: clamp(40px, 4.15vw, 58px); line-height: 1.06; text-wrap: balance; }
.eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 18px; }
.section-heading { margin-bottom: 42px; }
.section-heading--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.section-heading__side { gap: 24px; }
.section-heading__side p { font-size: 14px; line-height: 1.8; }
.button { min-height: 54px; padding: 16px 24px; gap: 25px; font-size: 13px; font-weight: 600; border-radius: 2px; }
.button--small { min-height: 44px; padding: 12px 19px; }
.button--outline-light { background: #171d2180; border-color: #a3adb3; }
.button:active { transform: translateY(1px); }
.text-link { font-size: 13px; padding-block: 7px; }
.button:focus-visible, .text-link:focus-visible, .card-link:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 5px; }
.demo-banner__inner { min-height: 32px; }
.demo-banner { font-size: 10px; }

/* 00.3 POSLOVNA TRAKA / Naziv lijevo, aktivan e-mail desno, bez demo oznaka. */
.company-bar { background: #101619; border-bottom: 1px solid #29353d; color: #c0cbd1; }
.company-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; min-height: 36px; padding-block: 5px; font-size: 11px; line-height: 1.6; }
.company-bar__name { letter-spacing: .07em; font-weight: 600; }
.company-bar__email { padding-block: 4px; color: #dbe2e6; transition: color var(--transition); }
.company-bar__email:hover { color: var(--brand-yellow); }
@media (max-width: 360px) {
  .company-bar__inner { font-size: 10px; gap: 8px; }
  .company-bar__name { letter-spacing: .03em; }
}

/* 01. NAVIGACIJA / Izvorni manji logo, precizni razmaci i jasne dodirne zone. */
.header-inner { min-height: 80px; }
.brand img { width: 175px; }
.nav-list { gap: 30px; }
.nav-link { min-height: 48px; font-size: 13px; }
.nav-link::after { transition: width var(--transition); }
.nav-link:hover, .nav-link:focus-visible { color: var(--brand-yellow); }
.submenu-toggle { width: 32px; min-height: 44px; }
.mega-menu { padding: 32px; gap: 30px; }
.mega-menu__links a { min-height: 30px; padding-block: 4px; font-size: 13px; }
.mega-menu__links a:hover { color: var(--brand-yellow); }

/* 02. HERO / Novi kadar ljudi i instalacija; poruka vidljiva na svim širinama.
   Fotografija je tematska AI ilustracija. Gradijent štiti čitljivost teksta. */
/* Hero i zaglavlje zajedno ispunjavaju početni ekran. Min-height dopušta
   dulji sadržaj na niskim ekranima i pri povećanju teksta, bez odrezivanja.
   JS mjeri stvarnu visinu zaglavlja; vrijednosti u CSS-u služe kao fallback. */
.hero {
  min-height: calc(100vh - var(--intro-chrome-height));
  min-height: calc(100svh - var(--intro-chrome-height));
}
.hero__visual { inset: 0; }
.hero__visual img { object-position: 75% 48%; }
.hero__shade {
  background: linear-gradient(90deg, #161c20f7 0%, #161c20e8 29%, #161c20b8 46%, #161c2030 73%, #161c2015 100%),
              linear-gradient(0deg, #111619c7 0%, transparent 42%);
}
.hero__layout { padding-block: 88px 80px; gap: 64px; align-items: flex-end; }
.hero__content { width: min(100%, 680px); }
.hero__headline { max-width: 660px; font-size: clamp(54px, 5.05vw, 73px); line-height: 1.04; margin-bottom: 25px; text-wrap: balance; }
.hero__description { max-width: 560px; font-size: 15px; line-height: 1.85; color: #d8dfe3; }
.hero__actions { gap: 14px; margin-top: 32px; }
.hero__location { margin-top: 32px; font-size: 12px; color: #d1d9de; }
.hero__aside { display: block; flex: 0 0 290px; margin-bottom: 0; padding: 22px 24px; border: 1px solid #a7b3bc55; background: #131b20df; }
.hero__aside-line { margin-bottom: 16px; width: 34px; height: 2px; }
.hero__aside p { font-family: var(--font-heading); font-size: 27px; line-height: 1.18; letter-spacing: .005em; color: #f4f5f3; }
.hero__caption { right: max(var(--gutter), calc((100vw - var(--container)) / 2)); bottom: 15px; font-size: 10px; }

/* 03. USLUGE / Četiri postojeće kartice, poravnati naslovi i CTA podnožja. */
.service-grid { gap: 22px; }
.service-card { background: #222b31; border-color: #3b474f; }
.service-card__image { aspect-ratio: 1.55; }
.service-card__image img { filter: none; transition: transform 350ms ease; }
.service-card__body { padding: 26px 24px 22px; }
.service-card__number { font-size: 10px; font-weight: 700; margin-bottom: 14px; letter-spacing: .12em; }
.service-card h3 { min-height: 2.22em; margin-bottom: 16px; font-size: clamp(28px, 2.15vw, 31px); line-height: 1.11; }
.service-card p { margin-bottom: 24px; color: #c2cbd0; font-size: 13px; line-height: 1.8; }
.card-link { min-height: 49px; padding-top: 15px; font-size: 13px; border-color: #49565f; }
.service-card:focus-within { border-color: var(--brand-yellow); }
.services-detail { margin-top: 26px; padding: 28px 30px; background: #1b2329; }
.services-detail__links a { min-height: 38px; font-size: 12px; align-items: center; padding-block: 6px; }
.services-detail__intro p { margin-top: 5px; }

/* 04. REFERENCE / Čisti kadrovi i ogledni projekti odobreni za prezentaciju.
   Jedinstvena napomena o oglednom sadržaju nalazi se u podnožju.
   Kartice bez stvarne projektne stranice namjerno nemaju lažni click/hover CTA. */
.references { background: #242e35; }
.reference-grid { gap: 26px; }
.reference-card { display: flex; flex-direction: column; background: #1c252b; border-color: #46535c; }
.reference-card__image { aspect-ratio: 1.46; }
.reference-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.reference-card h3 { min-height: 2.26em; font-size: 29px; line-height: 1.13; }
.reference-card__status { margin-top: auto; }
.reference-card__category { letter-spacing: .1em; font-size: 10px; }
.reference-card__status { font-size: 11px; color: #c0cad0; }
.image-label { padding: 8px 11px; left: 14px; bottom: 14px; font-size: 11px; background: #131b20f2; }
.references__note { margin-top: 26px; font-size: 12px; color: #c3cdd3; }

/* 05. O NAMA / Izvorni split raspored; tematski prikaz koordinacije izvedbe. */
.about { background: var(--surface); }
.about__grid { gap: clamp(40px, 6vw, 88px); }
.about__visual { min-height: 570px; }
.about__visual > img { object-position: 52% center; }
.about__image-note { position: absolute; left: 16px; top: 16px; padding: 7px 10px; background: #131b20ed; color: #edf1f3; font-size: 10px; }
.about__visual-label { padding: 20px 24px; }
.about__lead { font-size: 16px; line-height: 1.85; }
.about__facts { gap: 20px; margin-block: 30px; padding-top: 28px; }
.about__facts strong { font-size: 14px; }
.about__facts span:not(.about__fact-icon) { font-size: 12px; margin-top: 2px; }

/* 06. PODRUČJA PRIMJENE / Ista mreža šest vrsta objekata, prozračniji detalji. */
.applications { background: #1d262d; }
.application-item { min-height: 220px; padding: 30px 22px; gap: 30px; background: #232e35; }
.application-item:nth-child(even) { background: #27333b; }
.application-item strong { font-size: 13px; line-height: 1.7; }

/* 07. PRISTUP RADU / Pet izvornih koraka, jasnija numeracija i mirna pozadina. */
.process { background: #28343d; }
.process::before { display: none; }
.process-grid { gap: 28px; margin-top: 50px; }
.process-step { padding-top: 26px; border-top-color: #6a7a85; }
.process-step__number { font-size: 28px; margin-bottom: 24px; }
.process-step h3 { font-size: 25px; line-height: 1.16; margin-bottom: 15px; }
.process-step p { font-size: 13px; line-height: 1.8; color: #c6cfd5; }

/* 08. KONTAKT / Ujednačeni gumbi, jasne granice polja i veći tekst unosa. */
.contact__grid { gap: clamp(44px, 7vw, 102px); }
.contact-form-wrap { background: #222c33; border-color: #53626d; }
.contact-form-wrap__top { padding: 21px 30px; background: #2a3740; }
.contact-form { gap: 24px; padding: 30px; }
.form-field { gap: 9px; }
.form-field label { font-size: 13px; }
.form-field input, .form-field select, .form-field textarea { min-height: 52px; font-size: 16px; border-color: #75838d; background: #151e24; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #b2bec7; }
.form-field textarea { min-height: 130px; }
.form-disclaimer, .form-status { font-size: 12px; line-height: 1.75; }
.form-status { margin-top: 0; }
.contact__email { display: inline-block; margin-top: 10px; color: var(--brand-yellow); font-size: 14px; }
.contact__email:hover, .footer-contact__email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 09. PODNOŽJE / Dosljedna čitljivost i kompaktniji završetak stranice. */
.footer-main { padding-block: 68px 58px; }
.footer-brand p, .footer-contact p, .footer-links a { font-size: 12px; line-height: 1.85; }
.footer-links a { padding-block: 3px; }
.footer-links h3, .footer-contact h3 { font-family: var(--font-body); font-weight: 700; font-size: 12px; }
.footer-bottom { font-size: 11px; color: #b4c0c8; }
.footer-contact__email { font-size: 12px; color: #e3e8eb; overflow-wrap: anywhere; }
/* 09.1 OGLEDNI PODACI / Diskretna i vidljiva napomena umjesto oznaka na slikama. */
.footer-demo-note { max-width: 950px; padding-bottom: 24px; color: #acb9c1; font-size: 11px; line-height: 1.8; }

/* 10. DEMO KONTROLE / Pristupačan gumb za zatvaranje i jasna povratna poruka. */
.demo-toast { width: min(430px, calc(100% - 40px)); gap: 16px; padding: 20px; }
.demo-toast button { width: 44px; height: 44px; flex-basis: 44px; margin: -8px -8px 0 0; }
.demo-toast p { font-size: 13px; }
.back-to-top { width: 46px; height: 46px; }
@media (hover: hover) {
  .service-card:hover { border-color: #b0bdc5; transform: translateY(-4px); }
  .service-card:hover .service-card__image img { transform: scale(1.035); }
  .button--primary:hover, .button--dark:hover { background: #ffe467; }
  .card-link:hover { color: var(--brand-yellow); }
}

/* 11.1 MANJI DESKTOP / Ista struktura, kraći razmaci i dvostupčane usluge. */
@media (max-width: 1180px) {
  .hero__layout { gap: 32px; }
  .hero__content { width: min(100%, 620px); }
  .hero__headline { font-size: clamp(54px, 6vw, 68px); }
  .hero__aside { flex-basis: 245px; padding: 20px; }
  .hero__aside p { font-size: 25px; }
  .service-card__image { aspect-ratio: 1.85; }
  .service-card h3 { min-height: auto; }
  .nav-list { gap: 20px; }
}

/* 11.2 TABLET / Poruka se zadržava; mobilna navigacija ima velike dodirne zone. */
@media (max-width: 960px) {
  :root { --intro-chrome-height: 110px; }
  .header-inner { min-height: 72px; }
  .brand img { width: 165px; }
  .nav-list { gap: 0; }
  .nav-link { min-height: 54px; font-size: 15px; }
  .submenu-toggle { width: 44px; }
  /* Podizbornik ima vlastiti unutarnji odmak i kad je navigacija otvorena.
     Tekst ne dodiruje rub obojene plohe na tabletu ni na mobitelu. */
  .mega-menu { padding: 22px clamp(16px,2.8vw,24px) 26px; box-shadow: none; }
  .mega-menu > * { min-width: 0; }
  .mega-menu__links a { min-height: 40px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 22px; }
  .hero__layout { flex-direction: column; align-items: flex-start; gap: 30px; padding-block: 66px 64px; }
  .hero__content { width: min(100%, 610px); }
  .hero__aside { flex-basis: auto; width: min(100%, 440px); padding: 0 0 0 18px; border: 0; border-left: 2px solid var(--brand-yellow); background: transparent; }
  .hero__aside-line { display: none; }
  .hero__aside p { font-size: 25px; text-wrap: balance; }
  .hero__shade { background: linear-gradient(90deg, #161c20ed, #161c20c4 58%, #161c2033), linear-gradient(0deg, #161c20eb, transparent 65%); }
  .hero__visual img { object-position: 72% center; }
  .about__visual { min-height: 540px; }
  .contact-form { padding: 25px; }
}

/* 11.3 UŽI TABLET / Fotografija se čita iznad teksta umjesto ispod teškog vela. */
@media (max-width: 760px) {
  .hero { display: block; }
  .hero__visual { inset: 0 0 auto; height: 390px; }
  .hero__visual img { object-position: 80% 36%; }
  .hero__shade { height: 392px; background: linear-gradient(0deg, #161c20 1%, #161c2090 24%, transparent 63%); }
  .hero__layout { padding-block: 310px 64px; gap: 28px; }
  .hero__headline { font-size: clamp(46px, 7.8vw, 60px); max-width: 650px; }
  .hero__caption { top: 14px; right: 16px; bottom: auto; font-size: 9px; }
  .about__visual { min-height: 440px; }
  .reference-card__body { padding: 24px; }
  .reference-card:last-child { display: grid; }
}

/* 11.4 MOBITEL / Jedan stupac i puna čitljivost na 320 px i povećanom tekstu. */
@media (max-width: 560px) {
  :root { --section-space: 72px; --gutter: 22px; --intro-chrome-height: 108px; }
  .header-inner { min-height: 70px; }
  .brand img { width: 155px; }
  .demo-banner { font-size: 9px; line-height: 1.5; }
  .demo-banner__inner { padding-block: 7px; }
  .hero__visual { height: 310px; }
  .hero__shade { height: 312px; }
  .hero__layout { padding-top: 252px; padding-bottom: 52px; }
  .hero__headline { font-size: clamp(40px, 10.9vw, 52px); line-height: 1.04; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .09em; gap: 9px; }
  .hero .eyebrow__line { flex-basis: 20px; }
  .hero__description { font-size: 14px; line-height: 1.8; }
  .hero__actions { margin-top: 26px; }
  .hero__location { font-size: 11px; margin-top: 27px; align-items: flex-start; }
  .hero__location svg { margin-top: 3px; }
  .hero__aside p { font-size: 24px; text-wrap: initial; }
  h2 { font-size: clamp(37px, 9.7vw, 46px); line-height: 1.08; }
  .section-heading { margin-bottom: 30px; }
  .service-grid, .reference-grid { gap: 24px; }
  .service-card__image { aspect-ratio: 1.6; }
  .service-card__body { padding: 26px 24px 22px; }
  .service-card h3 { font-size: 30px; }
  .service-card p { font-size: 14px; }
  .services-detail { padding: 25px 22px; }
  .services-detail__links a { min-height: 44px; }
  .reference-card:last-child .reference-card__image { aspect-ratio: 1.46; }
  .reference-card:last-child { display: flex; }
  .reference-card h3 { min-height: auto; }
  .about__visual { min-height: 365px; }
  .about__visual-label { padding: 17px 20px; font-size: 11px; }
  .application-item { min-height: 205px; padding: 25px 18px; gap: 25px; }
  .application-item strong { font-size: 12px; }
  .process-grid { gap: 0; margin-top: 36px; }
  .process-step { grid-template-columns: 38px 1fr; padding-block: 24px; }
  .process-step__number { margin: 0; font-size: 24px; }
  .process-step h3 { margin-bottom: 9px; font-size: 24px; }
  .contact-form-wrap__top { padding: 20px; }
  .contact-form { padding: 24px 20px; }
  .contact-form .button { gap: 12px; padding-inline: 16px; }
  .footer-main { padding-block: 55px 44px; }
}

/* 12. SMANJENO KRETANJE / Bez povećavanja slika ili pomicanja kartica. */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover, .service-card:hover .service-card__image img,
  .button:hover .icon-arrow, .text-link:hover span, .card-link:hover span,
  .button:active { transform: none; }
}
