/* Drupkowicz theme — Drupal 10 editorial
   Source Serif 4 + Archivo
   Colors: navy #1E3A8A / EU yellow #FACC15 / cream #FEF7E6 / ink #0F172A
*/

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

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

body {
  margin: 0;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 17px;
  line-height: 1.65;
  color: #0F172A;
  background: #FEF7E6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: #1E3A8A; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #0F172A; text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 0.8rem, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.layout-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #FEF7E6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== Top utility bar ==== */
.region-utility {
  background: #0F172A;
  color: #FEF7E6;
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.region-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.region-utility a { color: #FACC15; text-decoration: none; }
.region-utility a:hover { color: #fff; }
.utility-dates { opacity: 0.85; }

/* ==== Header / branding ==== */
.region-header {
  background: #ffffff;
  border-bottom: 4px solid #1E3A8A;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}
.region-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.block-system-branding {
  display: flex;
  align-items: center;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img { height: 54px; width: auto; }
.site-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #1E3A8A;
  margin-left: 12px;
  letter-spacing: -0.02em;
}
.site-slogan {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 400;
  letter-spacing: 0;
}

/* ==== Primary menu ==== */
.region-primary-menu { background: #1E3A8A; }
.region-primary-menu .container { padding: 0 24px; }

.block-system-menu-block-main .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.block-system-menu-block-main .menu-item { position: relative; }
.block-system-menu-block-main .menu__link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 16px 18px;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.block-system-menu-block-main .menu__link:hover,
.block-system-menu-block-main .menu-item--active-trail .menu__link {
  background: rgba(255,255,255,0.08);
  border-bottom-color: #FACC15;
  color: #FACC15;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #FACC15;
  color: #FACC15;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ==== Breadcrumb ==== */
.breadcrumb {
  background: #f1e9d1;
  border-bottom: 1px solid #e4d8b5;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
}
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  color: #475569;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  color: #94a3b8;
  margin: 0 8px;
}
.breadcrumb a { color: #1E3A8A; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==== Main layout ==== */
.main-content .container {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.region-content { min-width: 0; }
.region-sidebar { min-width: 0; }

.layout-single .main-content .container {
  grid-template-columns: minmax(0,1fr);
}

/* ==== Hero / lead ==== */
.node--view-mode-hero {
  background: #fff;
  border-top: 6px solid #FACC15;
  border-left: 1px solid #e4d8b5;
  border-right: 1px solid #e4d8b5;
  border-bottom: 1px solid #e4d8b5;
  padding: 48px 40px;
  margin-bottom: 40px;
}
.node--view-mode-hero .field--name-field-kicker {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1E3A8A;
  margin-bottom: 14px;
}
.node--view-mode-hero .node__title {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem);
  margin-bottom: 20px;
  max-width: 24ch;
}
.node--view-mode-hero .field--name-field-dek {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  color: #334155;
  font-style: italic;
  max-width: 58ch;
  margin-bottom: 28px;
  line-height: 1.5;
}
.node__meta {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 0.04em;
  padding-top: 20px;
  border-top: 1px solid #e4d8b5;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.node__meta .field__label { font-weight: 600; color: #0F172A; }

/* ==== Section titles ==== */
.block-title,
.views-label,
.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1E3A8A;
  border-bottom: 2px solid #1E3A8A;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

/* ==== Views list / article teasers ==== */
.block-views { margin-bottom: 48px; }

.views-row {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.views-row:hover {
  box-shadow: 0 8px 20px rgba(30,58,138,0.08);
}
.views-row .views-field-field-category {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1E3A8A;
  margin-bottom: 10px;
}
.views-row .views-field-title a {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0F172A;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  line-height: 1.3;
}
.views-row .views-field-title a:hover { color: #1E3A8A; }
.views-row .views-field-body {
  color: #334155;
  margin-bottom: 12px;
}
.views-row .views-field-created {
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  color: #64748b;
  letter-spacing: 0.04em;
}

/* Grid teaser */
.views-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.views-grid .views-row {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.views-grid .views-field-field-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 3px solid #FACC15;
}
.views-grid .views-teaser-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.views-grid .views-field-title a { font-size: 1.15rem; }

/* ==== Sidebar blocks ==== */
.region-sidebar .block {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 24px;
  margin-bottom: 28px;
}
.region-sidebar .block-title {
  margin-top: 0;
  border-bottom: 2px solid #FACC15;
  color: #1E3A8A;
}
.region-sidebar .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.region-sidebar .menu-item {
  border-bottom: 1px solid #f0e7cb;
}
.region-sidebar .menu-item:last-child { border-bottom: none; }
.region-sidebar .menu__link {
  display: block;
  padding: 10px 0;
  color: #0F172A;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
}
.region-sidebar .menu__link:hover { color: #1E3A8A; }

.disclaimer-block {
  background: #fef3c7 !important;
  border: 1px solid #FACC15 !important;
  border-left: 4px solid #1E3A8A !important;
}
.disclaimer-block p {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
}

/* ==== Article full view ==== */
.node--view-mode-full {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 40px 44px;
}
.node--view-mode-full .field--name-field-kicker {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1E3A8A;
  margin-bottom: 14px;
}
.node--view-mode-full .node__title { max-width: 28ch; }
.node--view-mode-full .field--name-field-dek {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 28px;
  line-height: 1.5;
}
.node--view-mode-full .field--name-body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.node--view-mode-full .field--name-body h2,
.node--view-mode-full .field--name-body h3 { margin-top: 2em; }
.node--view-mode-full .field--name-body blockquote {
  border-left: 4px solid #FACC15;
  background: #FEF7E6;
  padding: 20px 28px;
  margin: 28px 0;
  font-style: italic;
  color: #1E3A8A;
}
.node--view-mode-full .field--name-body ul,
.node--view-mode-full .field--name-body ol { padding-left: 1.5em; }
.node--view-mode-full .field--name-body li { margin-bottom: 0.5em; }

/* ==== Forms ==== */
.form-item { margin-bottom: 18px; }
.form-item label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #0F172A;
}
.form-text,
.form-email,
.form-tel,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: #0F172A;
}
.form-textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.form-text:focus,
.form-email:focus,
.form-tel:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}
.button--primary {
  display: inline-block;
  background: #1E3A8A;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: 2px solid #1E3A8A;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.button--primary:hover {
  background: #FACC15;
  color: #0F172A;
  border-color: #FACC15;
}

/* ==== Contact info card ==== */
.contact-card {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.contact-card h3 {
  color: #1E3A8A;
  border-bottom: 2px solid #FACC15;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 12px;
}
.contact-card dd { margin: 4px 0 0; color: #0F172A; }

.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid #e4d8b5;
  margin-top: 24px;
}

/* ==== Team / o-nas ==== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.team-member {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 24px;
}
.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 16px;
}
.team-member h4 {
  color: #1E3A8A;
  margin-bottom: 4px;
}
.team-member .team-role {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 10px;
}

/* ==== Footer ==== */
.region-footer {
  background: #0F172A;
  color: #cbd5e1;
  padding: 56px 0 0;
  margin-top: 48px;
  border-top: 6px solid #FACC15;
}
.region-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.region-footer .block-title {
  color: #FACC15;
  border-bottom-color: #1E3A8A;
}
.region-footer a { color: #cbd5e1; text-decoration: none; }
.region-footer a:hover { color: #FACC15; }
.region-footer .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.region-footer .menu-item { margin-bottom: 8px; }
.region-footer .branch-list { list-style: none; padding: 0; margin: 0; }
.region-footer .branch-list li {
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}
.region-footer .branch-list li:last-child { border-bottom: none; }
.region-footer .branch-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: #fff;
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.region-footer .branch-name .branch-tag {
  color: #FACC15;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 8px;
}
.region-footer .branch-address {
  font-size: 0.88rem;
  color: #94a3b8;
}

.site-footer__bottom {
  background: #020617;
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: 'Archivo', sans-serif;
}
.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-footer__bottom .disclaimer-line {
  font-style: italic;
  color: #64748b;
  max-width: 62ch;
  font-size: 0.8rem;
}

/* ==== Legal document styling ==== */
.legal-document {
  background: #fff;
  border: 1px solid #e4d8b5;
  padding: 56px 60px;
  counter-reset: section;
}
.legal-document h1 {
  font-size: 2.2rem;
  border-bottom: 3px double #1E3A8A;
  padding-bottom: 16px;
  margin-bottom: 12px;
}
.legal-document .doc-meta {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
.legal-document h2 {
  counter-increment: section;
  font-size: 1.4rem;
  margin-top: 2em;
}
.legal-document h2::before {
  content: "§ " counter(section) ". ";
  color: #1E3A8A;
}
.legal-document p { font-size: 1rem; line-height: 1.75; }

.cookie-doc {
  background: #fff;
  border-left: 6px solid #FACC15;
  border-right: 1px solid #e4d8b5;
  border-top: 1px solid #e4d8b5;
  border-bottom: 1px solid #e4d8b5;
  padding: 48px 52px;
}
.cookie-doc h1 { font-size: 2rem; color: #1E3A8A; margin-bottom: 6px; }
.cookie-doc .doc-meta {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 28px;
}
.cookie-doc .cookie-section {
  background: #FEF7E6;
  padding: 20px 24px;
  margin: 20px 0;
  border: 1px solid #e4d8b5;
}
.cookie-doc .cookie-section h3 {
  margin-top: 0;
  color: #1E3A8A;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cookie-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}
.cookie-doc table th,
.cookie-doc table td {
  padding: 10px 12px;
  border: 1px solid #e4d8b5;
  text-align: left;
}
.cookie-doc table th {
  background: #1E3A8A;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cookie-doc table tr:nth-child(even) td { background: #FEF7E6; }

/* ==== Cookie banner ==== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #1E3A8A;
  border-top: 6px solid #FACC15;
  padding: 22px 26px;
  box-shadow: 0 14px 40px rgba(15,23,42,0.25);
  display: none;
  z-index: 999;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 {
  margin: 0 0 8px;
  color: #1E3A8A;
  font-size: 1.05rem;
}
.cookie-banner p {
  font-size: 0.92rem;
  margin: 0 0 14px;
  color: #334155;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  padding: 10px 18px;
  cursor: pointer;
  border: 2px solid #1E3A8A;
  background: #fff;
  color: #1E3A8A;
}
.cookie-banner button.is-primary { background: #1E3A8A; color: #fff; }
.cookie-banner button:hover { background: #FACC15; color: #0F172A; border-color: #FACC15; }

/* ==== Utility ==== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead-text { font-size: 1.12rem; color: #334155; }

/* ==== Responsive ==== */
@media (max-width: 960px) {
  .main-content .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }
  .node--view-mode-hero { padding: 32px 24px; }
  .node--view-mode-full { padding: 32px 24px; }
  .legal-document, .cookie-doc { padding: 32px 24px; }
}

@media (max-width: 720px) {
  .region-header .container { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .block-system-menu-block-main .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1E3A8A;
    padding: 8px 0;
  }
  .block-system-menu-block-main .menu.is-open { display: flex; }
  .block-system-menu-block-main .menu-item { width: 100%; }
  .block-system-menu-block-main .menu__link {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .region-primary-menu .container { padding: 0; }
  .region-primary-menu {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
  }
  .region-primary-menu .menu-toggle { display: inline-block; }
  .region-utility .container { font-size: 0.72rem; }
  .site-name { font-size: 1.1rem; }
  .site-slogan { display: none; }
}

/* ==== Drupal image field / article figure ==== */
.field--name-field-image {
  margin: 28px 0 32px;
}
.field--name-field-image .article-figure {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.field--name-field-image .article-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.field--name-field-image .article-figure.article-figure--hero img {
  height: 400px;
}
.field--name-field-image .article-figure figcaption.field__label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .field--name-field-image .article-figure img { height: 220px; }
  .field--name-field-image .article-figure.article-figure--hero img { height: 260px; }
}
