/* ==========================================================================
   DVD Dunjkovec — zajednička stilska datoteka
   ========================================================================== */

:root {
  --red-900: #7a1418;
  --red-700: #a3201f;
  --red-600: #c02b26;
  --red-500: #d9382f;
  --red-200: #eec2bd;
  --red-50: #f9e7e5;
  --ink-900: #1a1a1a;
  --ink-700: #3a3a3a;
  --ink-500: #6b6b6b;
  --paper-0: #ffffff;
  --paper-50: #faf8f6;
  --paper-100: #f2ede9;
  --line: #e4dcd6;
  --amber-600: #b5720a;
  --amber-100: #fbeed3;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(26, 20, 18, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper-50);
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

a {
  color: var(--red-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink-900);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-700);
  margin-bottom: 0.5rem;
  display: block;
}

.section {
  padding: 56px 0;
}

.section--muted {
  background: var(--paper-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ---------- Top utility bar (hitni brojevi) ---------- */
.topbar {
  background: var(--ink-900);
  color: #efe6e0;
  font-size: 0.85rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
}

.topbar-sep {
  opacity: 0.4;
}

.topbar a {
  color: #efe6e0;
}

.topbar strong {
  color: inherit;
  font-weight: 700;
}

/* ---------- Header / navigacija ---------- */
.site-header {
  background: var(--paper-0);
  border-bottom: 3px solid var(--red-700);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.brand-link {
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

nav.main-nav {
  display: flex;
  gap: 4px;
}

nav.main-nav a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--paper-100);
  color: var(--red-700);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-900);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--red-900), var(--red-700) 55%, var(--red-600));
  color: #fff;
  padding: 72px 0 84px;
}

.hero .eyebrow {
  color: #ffcfae;
}

.hero h1 {
  color: #fff;
  max-width: 760px;
}

.hero p.lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: #fbe5da;
}

.hero--photo {
  background-image: linear-gradient(160deg, rgba(122,20,24,0.90), rgba(163,32,31,0.82) 55%, rgba(192,43,38,0.78)), url("../images/galerija-1.jpg");
  background-size: cover;
  background-position: center 55%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--red-700);
}

.btn-primary:hover {
  background: var(--red-50);
  text-decoration: none;
}

.btn-outline {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.btn-solid {
  background: var(--red-700);
  color: #fff;
}

.btn-solid:hover {
  background: var(--red-600);
  text-decoration: none;
}

/* ---------- Info strip ---------- */
.infostrip {
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
}

.infostrip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-item .icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.info-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

/* ---------- Upozorenje traka ---------- */
.alert-bar {
  background: var(--red-50);
  border-top: 1px solid var(--red-200);
  border-bottom: 1px solid var(--red-200);
}

.alert-bar .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
}

.alert-bar .icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.alert-bar strong {
  color: var(--red-700);
}

.alert-bar.is-quiet {
  background: var(--paper-100);
  border-color: var(--line);
}

.alert-bar.is-quiet .icon {
  background: var(--ink-500);
}

.alert-bar.is-quiet strong {
  color: var(--ink-700);
}

/* ---------- Kartice / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--paper-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Novosti / Facebook ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.news-fallback {
  background: var(--paper-0);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--ink-500);
}

.fb-embed-wrap {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 560px;
}

.news-side .card {
  margin-bottom: 20px;
}

/* ---------- Placeholder oznake za unos podataka ---------- */
.todo {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-600);
  border: 1px dashed #d8ac54;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.82em;
  font-weight: 700;
}

/* ---------- Vremenska crta (povijest) ---------- */
.timeline {
  position: relative;
  margin-top: 28px;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-700);
  box-shadow: 0 0 0 4px var(--paper-50);
}

.timeline-year {
  display: inline-block;
  background: var(--red-50);
  color: var(--red-700);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.timeline-item p {
  max-width: 68ch;
}

.timeline-item p:last-child {
  margin-bottom: 0;
}

.today-stat {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
}

/* ---------- Tablice (ustroj, dokumenti) ---------- */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

table.data-table th {
  background: var(--paper-100);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

table.data-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Dokumenti lista ---------- */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.doc-row .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--paper-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.doc-row .doc-meta {
  flex: 1;
}

.doc-row .doc-meta h4 {
  margin: 0 0 2px;
}

.doc-row .doc-meta span {
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* ---------- Upozorenja kartice ---------- */
.warning-card {
  border-left: 5px solid var(--ink-700);
  background: var(--paper-0);
  border-radius: var(--radius);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.warning-card.is-critical {
  border-left-color: var(--red-700);
}

.warning-card .warning-date {
  font-size: 0.8rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  background: var(--paper-0);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-500);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-block {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.contact-line .icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.emergency-box {
  background: var(--red-700);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
}

.emergency-box h3 {
  color: #fff;
  margin-top: 0;
}

.emergency-box .num {
  font-size: 2rem;
  font-weight: 800;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink-900);
  box-shadow: 0 -4px 16px rgba(26, 20, 18, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.cookie-banner p {
  margin: 0;
  max-width: 640px;
  font-size: 0.9rem;
  color: #efe6e0;
}

.cookie-banner a {
  color: #ff9a8d;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.btn-cookie-decline {
  background: #efe6e0;
  color: var(--ink-900);
  border-color: #efe6e0;
}

.btn-cookie-decline:hover {
  background: #fff;
  border-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #d8cec7;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 28px;
}

.footer-grid > div {
  min-width: 0;
  overflow-wrap: break-word;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.site-footer a {
  color: #d8cec7;
}

.site-footer ul.plain li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  font-size: 0.82rem;
  color: #a89c95;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .news-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-0);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px;
    display: none;
    box-shadow: var(--shadow);
  }

  nav.main-nav.is-open {
    display: flex;
  }

  .site-header .wrap {
    position: relative;
  }

  .wrap {
    padding: 0 26px;
  }

  .footer-grid {
    gap: 8px;
  }

  .footer-grid > div + div {
    margin-top: 10;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 28px;
    gap: 6px;
  }
}
