/* chrome.css — header + footer + shared atoms, 1:1 sa B_Header/B_Footer/B_Tag/B_Btn
   (Direction B v2). Sve mere doslovno iz inline style objekata etalona. */

/* ─── .lnk hover (etalon: opacity .6, BEZ transforma) ─────────────────────── */
.lnk { transition: opacity .18s ease; }
.lnk:hover { opacity: .6; }
.no-anim .lnk { transition: none; }

/* ─── Atom: eyebrow / B_Tag (mono, crtica ispred) ────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink70); line-height: normal;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink50);
  display: inline-block; flex-shrink: 0;
}

/* ─── Atom: B_SectionLabel (veći eyebrow, crtica 48) ─────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink80); line-height: normal;
}
.section-label::before {
  content: ""; width: 48px; height: 1px; background: var(--ink80); flex-shrink: 0;
}
.section-label--light { color: rgba(255,255,255,0.55); }
.section-label--light::before { background: rgba(255,255,255,0.55); }

/* ─── Atom: B_Btn / B_BtnGhost ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; border-radius: 0; line-height: normal; /* etalon B_Btn: bez lh (normal) */
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
}
.btn--ink     { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--dark    { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost   { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--block   { width: 100%; }

/* CF7 [acceptance] drži submit ONEMOGUĆENIM dok se consent ne štiklira. Bez ovoga
   dugme izgleda potpuno aktivno a ne reaguje na klik — korisnik nema pojma zašto.
   Pogađa 6 od 7 formi (T3/T4/T5/T9), pa stoji ovde a ne u per-page fajlu.
   Menja SAMO opacity i cursor — nijedan merni katalog ne meri submit dugme
   ni ova dva svojstva, pa nijedna već overena strana ne može da regresira. */
.wpcf7-submit:disabled,
.wpcf7-submit[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ─── Language toggle (EN / SR) ─────────────────────────────────────────── */
.lang-toggle { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: normal; }
.lang-toggle__opt { color: var(--ink50); text-decoration: none; }
.lang-toggle__opt.is-active { color: var(--ink); font-weight: 600; }
.lang-toggle__sep { color: var(--ink30); }

/* ═══ HEADER ═════════════════════════════════════════════════════════════ */
/* ETALON PROTIVREČI SAM SEBI (odluka Stevan 2026-07-20: per-strana, doslovno 1:1):
   T1 Home + T2 About  → header rgba(250,250,247,.94) + blur(10); footer t=2 kol, m pad48/gap32/pb40
   T3–T9 (6 strana)    → header #FAFAF7 solid;             footer t=3 kol + brand 1/-1, m pad56/gap40-32/pb56
   Default niže = T3–T9; Home/About se override-uju na dnu fajla (sekcija „PER-STRANA CHROME"). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--ink15);
}
.site-header__inner {
  width: 100%; padding: 0 var(--pad); height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px;
}
.site-header__logo { justify-self: start; display: flex; align-items: center; }
.site-header__logo img { height: 32px; width: auto; display: block; }

.site-header__nav {
  justify-self: center; display: flex; gap: 4px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
}
.site-header__nav .lnk {
  color: var(--ink70); text-decoration: none; padding: 10px 16px;
  position: relative; letter-spacing: 0.01em; line-height: normal; /* etalon body nema lh */
}
.site-header__nav .lnk.is-active { color: var(--ink); }
.site-header__underline {
  position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1.5px; background: var(--red);
}
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); display: block;
  transition: transform .3s, opacity .3s;
}
.site-header[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer { display: none; border-top: 1px solid var(--ink15); padding: 8px var(--pad) 22px; flex-direction: column; }
.site-header[data-open="true"] .nav-drawer { display: flex; }
.nav-drawer__link {
  padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--ink08);
  color: var(--ink70); font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  line-height: normal;
}
.nav-drawer__link.is-active { color: var(--ink); }
.nav-drawer__foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.nav-drawer__foot .lang-toggle { font-size: 13px; }
.nav-drawer__foot .btn { flex: 1; }

@media (max-width: 1024px) {
  .site-header__inner { display: flex; justify-content: space-between; }
  .site-header__logo img { height: 26px; }
  .site-header__nav, .site-header__actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ═══ FOOTER ═════════════════════════════════════════════════════════════ */
.site-footer { background: var(--bg); padding: 72px var(--pad) 36px; border-top: 1.5px solid var(--ink); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr 0.9fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--ink15);
}
.site-footer__logo { height: 44px; width: auto; display: block; }
.site-footer__brief { margin: 24px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink70); max-width: 320px; }
.site-footer__cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer__cta .btn { padding: 12px 20px; }

.site-footer__col { line-height: normal; } /* line-box oko inline-flex eyebrow-a (etalon body bez lh) */
.site-footer__nav { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.site-footer__nav a {
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  line-height: normal; /* etalon body nema lh — live 1.6 je pravio footer viši ~+35px @2560 */
}
.site-footer__addr { margin-top: 20px; font-size: 14px; color: var(--ink70); line-height: 1.6; font-style: normal; }
.site-footer__phone { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); line-height: normal; }
/* etalon: <a> je INLINE unutar div-a (mt10) — line-box wrappera pozicionira link (baseline +3px) */
.site-footer__email-row { margin-top: 10px; }
.site-footer__email {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 1px;
  line-height: normal;
}
.site-footer__social { margin-top: 20px; display: flex; gap: 10px; }
.site-footer__social-link {
  padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; line-height: normal;
}
.site-footer__lang { margin-top: 24px; }
.site-footer__lang .lang-toggle__opt { padding: 4px 8px; }
.site-footer__lang .lang-toggle__opt.is-active { background: var(--ink); color: #fff; }
.site-footer__lang .lang-toggle__opt:not(.is-active) { border: 1px solid var(--ink15); }
.site-footer__lang .lang-toggle__sep { display: none; }

.site-footer__legal {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink50); letter-spacing: 0.06em; text-transform: uppercase;
  line-height: normal;
}

/* default = T3–T9 B_Footer: t = repeat(3,1fr) + brand preko celog reda; m = 1fr pad56 gap40/32 pb56 */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding: 56px var(--pad) 36px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px 32px; }
}

/* eyebrow na tamnoj pozadini */
.eyebrow--light { color: rgba(255,255,255,0.85); }
.eyebrow--light::before { background: rgba(255,255,255,0.5); }

/* ═══ PER-STRANA CHROME ═══════════════════════════════════════════════════
   T1 Home + T2 About imaju u etalonu drugačiji header/footer od T3–T9.
   Pravilo 1:1 → svaka strana dobija SVOJ etalon chrome (odluka 2026-07-20). */
.home .site-header,
.page-template-template-about .site-header {
  background: rgba(250,250,247,0.94); backdrop-filter: blur(10px);
}
@media (max-width: 1024px) {
  .home .site-footer__grid,
  .page-template-template-about .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .home .site-footer__brand,
  .page-template-template-about .site-footer__brand { grid-column: auto; }
}
@media (max-width: 600px) {
  .home .site-footer,
  .page-template-template-about .site-footer { padding: 48px var(--pad) 36px; }
  /* grid-template-columns mora eksplicitno: .home .site-footer__grid iz tablet bloka
     ima veću specifičnost od default `.site-footer__grid { 1fr }` i inače pobeđuje ovde */
  .home .site-footer__grid,
  .page-template-template-about .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
}
