/* Point Blank Studio — site.css
   Jedna obitelj fontova (Archivo, varijabilna širina i debljina).
   Širina slova je glavni izražajni alat: uske, teške naslove za "mali namjerno",
   normalnu širinu za tekst. Crvena točka = poanta. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eeece6;
  --paper-2: #e4e1d9;
  --ink: #161514;
  --ink-2: #3a3835;
  --grey: #66635d;
  --rule: #c9c5bb;
  --red: #a8322b;
  --night: #161514;
  --night-2: #22201e;
  --on-night: #ecebe5;
  --on-night-2: #a29e95;
  --rule-night: #3c3936;
  --red-night: #d0574c;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1480px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (max-width: 600px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--red-night); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* The point — crvena točka */
.pt {
  display: inline-block;
  width: .19em; height: .19em;
  margin-left: .045em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}
.night .pt { background: var(--red-night); }

.nw { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline;
  font-size: 19px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand .pt { width: .3em; height: .3em; margin-left: .02em; }
.brand small { margin-left: .55em; font-size: 14px; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--grey); }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .lang { padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid var(--rule); }
.nav .lang a { color: var(--grey); }
.nav .lang a:hover { color: var(--ink); }

.menu-btn {
  display: none;
  background: none; border: 0; color: inherit; font: inherit;
  font-size: 15px; font-weight: 500; padding: 10px 0; cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; }
  .menu-btn .bars { width: 22px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .25s var(--ease), top .25s var(--ease);
  }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { top: 8px; }
  .menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 28px;
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav .lang { padding: 12px 0 0; margin-top: 12px; border-left: 0; border-top: 1px solid var(--rule); }
  .nav a { display: block; font-size: 30px; font-weight: 600; font-stretch: 88%; letter-spacing: -.02em; padding: 8px 0; border: 0; }
  .no-js .nav { display: block; position: static; padding: 0 0 16px; border: 0; }
  .no-js .menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 9vh, 120px) 0 clamp(56px, 10vh, 120px); }
.hero h1 {
  font-size: clamp(54px, 16.2vw, 252px);
  line-height: .86;
  font-weight: 640;
  font-stretch: 86%;
  letter-spacing: -.045em;
  margin-left: -.04em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
@media (max-width: 600px) { .hero h1 { font-size: 17.6vw; } }
.hero-foot {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-top: clamp(36px, 6vh, 72px);
}
.hero-foot p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 34em; margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .hero-foot p { grid-column: 6 / span 6; }
  .hero-foot .cta { grid-column: 12 / span 1; justify-self: end; }
}
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid currentColor; padding-bottom: 4px; width: max-content;
}
.cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.cta:hover { color: var(--red); }
.cta:hover svg { transform: translateY(3px); }

/* Jedan orkestrirani trenutak: redovi se dižu, točka slijeće zadnja */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero h1 .pt { transform: scale(0); animation: land .55s cubic-bezier(.3, 1.6, .5, 1) .95s forwards; }
  .js .hero-foot { opacity: 0; animation: fade .8s ease 1.15s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes land { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section + .section:not(.night) { border-top: 1px solid var(--rule); }
.night { background: var(--night); color: var(--on-night); }
.night a:hover { text-decoration-color: var(--red-night); }

.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2 {
  font-size: clamp(40px, 6.4vw, 96px); line-height: .92;
  font-weight: 620; font-stretch: 86%; letter-spacing: -.04em;
}
.sec-head p { max-width: 32em; color: var(--grey); margin: 0; }
.night .sec-head p { color: var(--on-night-2); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .sec-head h2 { grid-column: 1 / span 7; }
  .sec-head p { grid-column: 8 / span 5; }
}

/* ---------- Approach (Mali namjerno) ---------- */
.small-big {
  font-size: clamp(76px, 17vw, 300px); line-height: .82;
  font-weight: 800; font-stretch: 62%; letter-spacing: -.02em;
  margin: 0 0 clamp(40px, 6vw, 88px) -.03em;
}
.approach-lead { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: clamp(56px, 7vw, 104px); }
.approach-lead p { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.4; max-width: 30em; margin: 0; }
@media (min-width: 900px) {
  .approach-lead { grid-template-columns: repeat(12, 1fr); }
  .approach-lead p { grid-column: 5 / span 8; }
}
.principles { display: grid; grid-template-columns: 1fr; gap: 36px 32px; border-top: 1px solid var(--rule-night); padding-top: 32px; }
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles h3 { font-size: 21px; font-weight: 600; font-stretch: 96%; letter-spacing: -.01em; margin-bottom: 10px; }
.principles p { color: var(--on-night-2); margin: 0; font-size: 17px; }

/* ---------- Services ---------- */
.services li {
  display: grid; grid-template-columns: 1fr; gap: 8px 32px;
  padding: 26px 0 28px; border-top: 1px solid var(--rule);
}
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services h3 { font-size: clamp(25px, 2.6vw, 38px); line-height: 1.05; font-weight: 560; font-stretch: 94%; letter-spacing: -.025em; }
.services p { color: var(--grey); margin: 0; max-width: 32em; }
@media (min-width: 900px) {
  .services li { grid-template-columns: repeat(12, 1fr); align-items: baseline; }
  .services h3 { grid-column: 1 / span 6; }
  .services p { grid-column: 8 / span 5; }
}

/* ---------- Reference: jednobojna traka logotipa ---------- */
.refs { padding: 0 0 clamp(56px, 7vw, 96px); }
.services-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.refs .wrap { display: grid; grid-template-columns: 1fr; gap: 20px 32px; align-items: center; }
.refs h2 { font-size: 14px; font-weight: 500; color: var(--grey); }
.refs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(32px, 5vw, 72px); }
.refs a { display: block; opacity: .5; transition: opacity .25s; }
.refs a:hover, .refs a:focus-visible { opacity: 1; }
.refs img { width: auto; }
.refs .l-beexpro img { height: 34px; }
.refs .l-chargeport img { height: 19px; }
.refs .l-faency img { height: 56px; }
.refs .l-brodac img { height: 30px; }
@media (min-width: 900px) {
  .refs .wrap { grid-template-columns: repeat(12, 1fr); }
  .refs h2 { grid-column: 1 / span 2; }
  .refs ul { grid-column: 3 / span 10; justify-content: space-between; }
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 56px 32px; }
.contact h2 { font-size: clamp(44px, 7vw, 108px); line-height: .9; font-weight: 640; font-stretch: 86%; letter-spacing: -.045em; margin-bottom: 28px; }
.contact .intro p { color: var(--on-night-2); max-width: 26em; }
.direct { margin-top: 36px; display: grid; gap: 18px; }
.direct dt { font-size: 14px; color: var(--on-night-2); }
.direct dd { font-size: 20px; font-weight: 500; }
.direct a { text-decoration: none; border-bottom: 1px solid var(--rule-night); }
.direct a:hover { border-bottom-color: var(--red-night); }
@media (min-width: 960px) {
  .contact { grid-template-columns: repeat(12, 1fr); }
  .contact .intro { grid-column: 1 / span 6; }
  .contact form { grid-column: 8 / span 5; }
}

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--on-night-2); }
.field label .opt { color: #9a968d; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--on-night);
  background: transparent; border: 0; border-bottom: 1px solid #57534e; border-radius: 0;
  padding: 8px 0 10px; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red-night); box-shadow: 0 1px 0 0 var(--red-night); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: -8px 0 0; font-size: 15px; min-height: 0; }
.form-status.err { color: #f08a7f; }
.btn:disabled { opacity: .6; cursor: progress; }
.form .note { font-size: 14px; color: #8d8981; margin: 0; }
.btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-size: 17px; font-weight: 600;
  background: var(--on-night); color: var(--night); border: 0; border-radius: 0;
  padding: 16px 26px; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--red-night); color: #fff; }
.btn .pt { background: var(--red); width: 8px; height: 8px; margin: 0; }
.btn:hover .pt { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); font-size: 14px; padding: 0 0 40px; }
.site-footer .wrap { border-top: 1px solid var(--rule-night); padding-top: 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.foot-top .brand { color: var(--on-night); }
.site-footer .brand small { color: var(--on-night-2); }
.foot-top nav ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-top nav a { text-decoration: none; color: var(--on-night); }
.foot-top nav a:hover { text-decoration: underline; }
.legal { max-width: 70em; line-height: 1.6; margin: 0; }
.legal span { white-space: nowrap; }

/* ---------- Simple pages (hvala, 404) ---------- */
.links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; }
.links a { font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.links a:hover { color: var(--red); }
.simple { min-height: 62vh; display: flex; align-items: center; padding: 48px 0 96px; }
.simple h1 { font-size: clamp(52px, 10vw, 160px); line-height: .88; font-weight: 640; font-stretch: 84%; letter-spacing: -.045em; margin-bottom: 28px; }
.simple p { font-size: clamp(19px, 1.6vw, 23px); max-width: 30em; color: var(--ink-2); }

@media print {
  .site-header nav, .menu-btn, form, .skip { display: none !important; }
  .night, .site-footer { background: #fff !important; color: #000 !important; }
}
