/* =========================================================================
   Gospa od Suza — WordPress sloj (dopuna base.css)
   Stranice, objave, arhiva, pretraga, kontakt, administratorska traka.
   Koristi iste dizajn-tokene (:root) definirane u base.css.
   ========================================================================= */

/* ---- Administratorska traka: sticky header ispod nje ---- */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }

/* ---- Mega izbornik bez istaknutog bloka: jedan stupac ---- */
@media (min-width: 881px) {
  .gos-mega__inner--nofeature { grid-template-columns: 1fr; }
}

/* ---- Naslovnica — Dobrodošlica: korisnička slika (zamjena zadane ilustracije) ---- */
.welcome-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   UNUTARNJE STRANICE — zaglavlje (page-hero)
   ========================================================================= */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--marian), var(--night) 84%);
  color: var(--stone); padding: 66px 0 50px;
}
/* Featured Image stranice (ako je postavljena) — isti gradijent postaje poluprozirni
   overlay preko fotografije, radi čitljivosti teksta; bez Featured Image ostaje
   gore, potpuno nepromijenjeno. Vidi gos_page_hero_open() u inc/template-tags.php. */
.page-hero.page-hero--photo {
  background-image: linear-gradient(158deg, rgba(47,67,116,.82), rgba(26,34,56,.9) 84%), var(--page-hero-img);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: ''; position: absolute; right: -6%; top: -40%;
  width: 46%; height: 150%;
  background: radial-gradient(closest-side, rgba(201,168,95,.22), transparent 70%);
  pointer-events: none;
}
.page-hero .teardrop-wm {
  position: absolute; right: 4%; top: 8%; width: 240px; opacity: .16; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; line-height: 1.08; max-width: 20ch;
}
.page-hero .page-lead {
  margin-top: 16px; max-width: 62ch; font-size: 1.06rem; color: rgba(247,243,236,.85);
}
.crumbs { font-size: .78rem; color: rgba(247,243,236,.66); margin-bottom: 14px; }
.crumbs a { color: var(--gold-soft); transition: opacity .2s; }
.crumbs a:hover { opacity: .8; }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* =========================================================================
   SADRŽAJ STRANICE / OBJAVE (proza)
   ========================================================================= */
.page-body { padding: clamp(48px, 6vw, 80px) 0; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 1.06rem; color: var(--ink); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--marian);
  font-size: 1.9rem; line-height: 1.15; margin: 1.7em 0 .5em;
}
.entry-content h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--night-2);
  font-size: 1.4rem; margin: 1.5em 0 .4em;
}
.entry-content p { margin: 0 0 1.15em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content a { color: var(--marian); border-bottom: 1px solid var(--gold); transition: color .2s; }
.entry-content a:hover { color: var(--gold-ink); }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); background: var(--stone);
  padding: 18px 24px; margin: 1.5em 0; border-radius: 0 var(--r-md) var(--r-md) 0;
}
.entry-content blockquote p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.3rem; color: var(--ink); margin: 0;
}
.entry-content img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: center; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-image { margin: 1.5em 0; }

/* Landing-rubrike: popis podstranica kao "kartice" */
.section-links {
  max-width: 760px; margin: 2em auto 0; list-style: none; padding: 0;
  display: grid; gap: 12px;
}
.section-links li { margin: 0; }
.section-links a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); transition: background .18s, border-color .18s, transform .18s;
}
.section-links a:hover { background: var(--stone); border-color: var(--gold); transform: translateX(3px); }
.section-links .sl-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--marian); }
.section-links .sl-desc { font-size: .88rem; color: var(--muted); margin-left: auto; text-align: right; }

/* =========================================================================
   NOVOSTI — filter kategorija (iznad grida)
   ========================================================================= */
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.news-filter .nf-pill {
  font-size: .82rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--marian); transition: all .2s; white-space: nowrap;
}
.news-filter .nf-pill:hover { background: var(--stone); border-color: var(--gold); }
.news-filter .nf-pill.is-active { background: var(--marian); color: #fff; border-color: var(--marian); }

/* =========================================================================
   NOVOSTI — arhiva / kategorija / pretraga (kartice)
   ========================================================================= */
.archive-wrap { padding: clamp(48px, 6vw, 80px) 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .pc-thumb {
  display: block; aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #d9cfba, #c3b69b);
}
.post-card .pc-thumb.t2 { background: linear-gradient(135deg, #cdbfa0, #a9966f); }
.post-card .pc-thumb.t3 { background: linear-gradient(135deg, #bcc6da, #8c9ec2); }
.post-card .pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600; margin-bottom: 8px;
}
.post-card h2, .post-card h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.4rem;
  line-height: 1.2; color: var(--ink); margin: 0 0 10px;
}
.post-card h2 a, .post-card h3 a { transition: color .2s; }
.post-card:hover h2 a, .post-card:hover h3 a { color: var(--marian); }
.post-card p { font-size: .92rem; color: var(--muted); flex: 1; margin: 0; }
.post-card .date { margin-top: 14px; font-size: .76rem; color: var(--muted); }

/* Pretraga: naslov */
.archive-head { margin-bottom: 40px; }
.archive-head .eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 8px;
}
.archive-head h1 { font-size: var(--fs-h2); color: var(--marian); }
.archive-head p { color: var(--muted); margin-top: 8px; }

/* =========================================================================
   POJEDINAČNA OBJAVA
   ========================================================================= */
.single-post .entry-content { margin-top: 4px; }
.post-tax { margin-top: 12px; font-size: .82rem; color: rgba(247,243,236,.8); }
.entry-footer {
  max-width: 760px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}
.entry-footer a { color: var(--marian); }
.post-nav {
  max-width: 760px; margin: 28px auto 0; display: flex; justify-content: space-between; gap: 18px;
}
.post-nav a { color: var(--marian); font-weight: 600; font-size: .9rem; }
.post-nav .pn-label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.back-to-news { max-width: 760px; margin: 0 auto 24px; }
.back-to-news a { font-size: .84rem; color: var(--marian); font-weight: 600; }

/* =========================================================================
   ŽUPNI LISTIĆI — PDF kartica i modalni pregled
   ========================================================================= */
.listic-pdf-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto 32px; padding: 22px 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.listic-pdf-card .lp-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--stone); display: flex; align-items: center; justify-content: center;
}
.listic-pdf-card .lp-icon svg { width: 24px; height: 24px; stroke: var(--marian); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.listic-pdf-card .lp-info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.listic-pdf-card .lp-eyebrow { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.listic-pdf-card .lp-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--ink); word-break: break-word; }
.listic-pdf-card .lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.listic-pdf-card .btn { padding: 11px 20px; font-size: .82rem; }
.listic-pdf-card .btn-outline { background: transparent; border: 1px solid var(--marian); color: var(--marian); }
.listic-pdf-card .btn-outline:hover { background: var(--marian); color: #fff; }

.pdf-modal {
  position: fixed; inset: 0; z-index: 120; padding: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,22,42,.6); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
.pdf-modal.open { opacity: 1; visibility: visible; }
.pdf-modal__backdrop { position: absolute; inset: 0; }
.pdf-modal__panel {
  position: relative; width: 100%; max-width: 900px; height: 88vh;
  background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateY(-16px); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.pdf-modal.open .pdf-modal__panel { transform: translateY(0); opacity: 1; }
.pdf-modal__panel iframe { width: 100%; height: 100%; border: 0; display: block; }
.pdf-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: border-color .2s;
}
.pdf-modal__close:hover { border-color: var(--gold); }

/* =========================================================================
   PAGINACIJA
   ========================================================================= */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 52px; }
.pagination .page-numbers {
  padding: 10px 15px; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--marian); font-size: .9rem; font-weight: 500; transition: all .2s;
}
.pagination a.page-numbers:hover { border-color: var(--gold); background: var(--stone); }
.pagination .current { background: var(--marian); color: #fff; border-color: var(--marian); }

/* =========================================================================
   KONTAKT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
/* min-width:0 na obje stavke: bez ovoga, Google Maps iframe (koji nosi hardkodiran
   HTML width="600" atribut iz Google-ovog embed koda) tjera CSS Grid da uzme tu
   vrijednost kao minimalnu širinu stavke (zadano grid ponašanje je min-width:auto),
   pa se cijela kolona "napuše" na 600px i prelije izvan .wrap-a — klasičan grid
   "blowout". min-width:0 dopušta gridu da stavku ispravno suzi na dodijeljeni prostor. */
.contact-card, .contact-map { min-width: 0; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 30px 26px; box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-family: 'Cormorant Garamond', serif; color: var(--marian); font-size: 1.7rem; margin-bottom: 18px; font-weight: 500; }
.contact-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold); }
.contact-row .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-row > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-row .cr-t { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* overflow-wrap: dugi nizovi bez razmaka (npr. e-mail adresa) inače se ne prelamaju
   i izlaze izvan .contact-card na uskim ekranima. */
.contact-row .cr-d { display: block; font-size: 1rem; color: var(--ink); overflow-wrap: break-word; }
.contact-row .cr-d a { color: var(--marian); }
.contact-socials { display: flex; gap: 12px; margin-top: 18px; }
.contact-socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--marian); transition: all .2s; }
.contact-socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.contact-socials svg { width: 18px; fill: currentColor; }
.contact-map { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact-map iframe, .contact-map .map-ph { display: block; width: 100%; min-height: 380px; border: 0; }
.contact-map .map-ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px;
  background: linear-gradient(160deg, #e7e0d2, #d7ccb8); color: var(--gold-ink); font-size: .9rem;
}
.contact-body { max-width: 1000px; margin: 44px auto 0; }
.contact-body .entry-content { margin: 0; }

/* =========================================================================
   404 / prazno
   ========================================================================= */
.notice-block { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.notice-block .eyebrow { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
.notice-block h1 { font-family: 'Cormorant Garamond', serif; color: var(--marian); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.notice-block p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }

/* Footer izbornik iz wp_nav_menu */
footer .footer-menu { list-style: none; margin: 0; padding: 0; }
footer .footer-menu li { font-size: .9rem; line-height: 1.9; }

/* Footer kontakt — telefon i e-mail (tel:/mailto: linkovi) */
footer .fbrand p a { transition: color .2s; }
footer .fbrand p a:hover,
footer .fbrand p a:focus-visible { color: var(--gold-soft); }

/* Mobilni izbornik — telefon i e-mail (tel:/mailto: linkovi) u podnožju */
.menu-foot .info a { color: inherit; transition: color .2s; }
.menu-foot .info a:hover,
.menu-foot .info a:focus-visible { color: var(--gold-soft); }

/* Raspored (naslovnica) — auto-prepoznati tel:/mailto: linkovi u retku kartice */
.is-row .d a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; transition: color .2s; }
.is-row .d a:hover,
.is-row .d a:focus-visible { color: var(--marian); }

/* Pristupačnost / pomoćno */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.post-hero-img { margin: 0 0 1.6em; }
.post-hero-img img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.page-links { margin-top: 1.5em; font-size: .9rem; }
.page-links a { color: var(--marian); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-sm); margin: 0 3px; }

/* =========================================================================
   RESPONZIVNO
   ========================================================================= */
@media (max-width: 880px) {
  .post-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-links .sl-desc { display: none; }
}
@media (max-width: 640px) {
  .pdf-modal { padding: 0; }
  .pdf-modal__panel { height: 100vh; max-width: none; border-radius: 0; }
  .listic-pdf-card { padding: 18px 20px; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
