/*
Theme Name: Pro Signum
Theme URI: https://prosignum.hr
Author: Pro Signum d.o.o.
Description: Lagana tema za prosignum.hr — veleprodaja materijala i strojeva za reklamnu industriju. Naslovnica s obavijesti, objavama, kartom, podacima o tvrtki i zastupstvima.
Version: 1.2.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: prosignum
*/

:root {
  --black: #272823;
  --red: #FF2C35;
  --red-dark: #d6222a;
  --paper: #ffffff;
  --grey: #6b6b66;
  --line: #e8e8e4;
  --wash: #f7f7f5;
  --content: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.site-logo img { width: 240px; max-width: 60vw; }
.site-logo a { display: block; }
.site-title-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.site-title-text .pro { color: var(--red); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { color: var(--black); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--red-dark); text-decoration: none; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--red-dark); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-title {
  font-size: 1.55rem; line-height: 1.25; font-weight: 700;
  letter-spacing: -0.015em; margin: 0 0 28px;
  display: flex; align-items: baseline; gap: 12px;
}
.section-title::before {
  content: ""; width: 11px; height: 11px; background: var(--red);
  flex: 0 0 auto; transform: translateY(-1px);
}

/* ---------- Obavijest ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background: var(--wash);
  padding: 28px 32px;
}
.notice h2 { margin: 0 0 14px; font-size: 1.3rem; line-height: 1.3; }
.notice :last-child { margin-bottom: 0; }
.notice ul { padding-left: 22px; }
.notice li { margin-bottom: 8px; }

/* ---------- Objave ---------- */

.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.post-card {
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.post-card-thumb { background: var(--wash); }
.post-card-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; padding: 12px; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.post-card h3 a { color: var(--black); }
.post-card h3 a:hover { color: var(--red-dark); text-decoration: none; }
.post-card p { margin: 0; color: var(--grey); font-size: 0.95rem; }
.post-card .more {
  margin-top: auto; padding-top: 6px;
  font-weight: 600; font-size: 0.9rem; color: var(--red-dark);
}

/* ---------- Karta ---------- */

.map-embed { border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Opći podaci ---------- */

.company-info { max-width: 760px; }
.company-info p { margin: 0 0 14px; }
.company-info .lead { color: var(--grey); font-size: 0.95rem; }
.contact-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Layout: sadržaj + sidebar ---------- */

.layout { display: flex; gap: 56px; align-items: flex-start; }
.layout-main { flex: 1; min-width: 0; }
.layout-side {
  width: 260px; flex: 0 0 260px;
  padding: 56px 0 56px 40px;
  border-left: 1px solid var(--line);
}
.side-title {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.side-title::before {
  content: ""; width: 9px; height: 9px; background: var(--red); flex: 0 0 auto;
}
.side-brand { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side-brand:first-child { padding-top: 0; }
.side-brand:last-child { border-bottom: 0; padding-bottom: 0; }
.side-brand-logo img { max-height: 44px; width: auto; max-width: 180px; margin-bottom: 10px; }
.side-brand-text { font-size: 0.85rem; color: var(--grey); line-height: 1.45; }
.side-brand-text p { margin: 0; }

/* ---------- Pojedinačna objava / stranica ---------- */

.entry { padding: 56px 0; }
.layout-main > .section:first-child,
.layout-main > .entry:first-child { padding-top: 56px; }
.entry-header h1 {
  font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 28px;
}
.entry-content { max-width: 760px; }
.entry-content p { margin: 0 0 16px; }
.entry-content img { margin: 24px 0; border: 1px solid var(--line); }
.entry-content ul { padding-left: 22px; }
.entry-content a { text-decoration: underline; }

.entry-nav {
  max-width: 760px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 0.93rem;
}
.entry-nav .nav-label { display: block; color: var(--grey); margin-bottom: 2px; }
.entry-nav a { font-weight: 600; }
.entry-nav .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--black); color: #d8d8d3;
  padding: 40px 0 32px; font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-contact p { margin: 0 0 6px; }
.footer-contact strong { color: #fff; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .layout { flex-direction: column; gap: 0; }
  .layout-side {
    width: 100%; flex: none;
    padding: 40px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .side-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .footer-meta { text-align: left; }
  .entry-header h1 { font-size: 1.6rem; }
}

@media (max-width: 520px) {
  .side-brands { grid-template-columns: 1fr; }
  .notice { padding: 22px 20px; }
  .map-embed iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
