/* NG CMS - tema "fraza". Vizuelno 1:1 sa starim Astra + Elementor sablonom. */
:root {
  --red: #dd3334;
  --red-link: #e20303;
  --nav: #273272;
  --nav-hover: #fe0467;
  --heading: #1e293b;
  --body: #334155;
  --muted: #7a7a7a;
  --card-title: #54595f;
  --page-bg: #f9fafb;
  --wrap: 1140px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font: 400 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; color: var(--heading); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ------------------------------------------------------------ topbar + header */
.topbar { background: var(--red); color: #fff; padding: 8px 0; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.topbar__contact { display: flex; gap: 17px; padding-left: 5px; }
.topbar a, .topbar span { color: #fff; text-decoration: none; }
.topbar__ig { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-right: 22px; }
.topbar__ig:hover { color: #e4405f; }

.site-header { background: #fff; padding: 10px 0; }
.bg-page .site-header, .page-offer .site-header { background: var(--page-bg); }
.site-header__in { display: flex; align-items: center; min-height: 70px; }
.site-logo { display: block; flex: 0 0 auto; margin-left: 15px; line-height: 0; }
.site-logo img { width: 140px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; height: 70px; }
.main-nav li { height: 100%; display: flex; align-items: center; }
.main-nav a { display: flex; align-items: center; height: 100%; padding: 0 15px; font: 500 14px/1 var(--font); text-transform: uppercase; color: var(--nav); text-decoration: none; }
.main-nav a:hover, .main-nav li.is-active > a { color: var(--nav-hover); }
.main-nav li.pill > a { background: var(--red); color: #fff; border-radius: 35px; }
.main-nav li.pill > a:hover, .main-nav li.pill.is-active > a { color: #fff; }
.site-header__chat { display: flex; align-items: center; gap: 16px; margin: 0 20px 0 47px; }
.chat-ico { display: inline-flex; line-height: 0; }
.chat-ico--viber { color: #7453fa; }
.chat-ico--wa { color: #24cc63; }
.nav-toggle { display: none; margin-left: auto; width: 45px; height: 30px; border: 1px solid #ff5e13; border-radius: 3px; background: transparent; padding: 6px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1px; background: #ff5e13; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 361px; background: #222 center / cover no-repeat; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; }
.hero__in { position: relative; width: 100%; max-width: var(--wrap); padding: 0 10px; }
.hero__title { margin: 0; color: #fff; font-size: 40px; line-height: 1.4; font-weight: 600; }
.hero--home { min-height: 465px; background-position: bottom center; }
.hero--home .hero__in { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 465px; }
.hero--home .btn--hero { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.btn--hero { display: inline-block; background: var(--red); color: #fff; font: 500 30px/1 var(--font); text-transform: uppercase; text-decoration: none; padding: 12px 24px; border-radius: 3px; text-shadow: 0 0 10px rgba(0,0,0,.3); }
.hero--archive { margin-bottom: 70px; }

/* ------------------------------------------------------------ plocice kategorija (pocetna) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 41px 10px 0; align-items: start; }
.tiles__col { display: flex; flex-direction: column; gap: 35px; }
.tile { position: relative; display: flex; align-items: center; justify-content: center; height: 307px; overflow: hidden; background: #333; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__title { position: relative; color: #fff; font: 600 55px/1 var(--font); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ------------------------------------------------------------ kartice */
.section-title { margin: 0 0 20px; text-align: center; color: #000; font-size: 32px; line-height: 1.25; }
.featured { padding: 45px 10px 60px; }
.grid { display: grid; gap: 35px 30px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.15); overflow: hidden; }
/* slika u kartici: max 200px visine, prirodna sirina, centrirano na sivom prelivu (kao WP custom CSS) */
.card__thumb { position: relative; display: block; aspect-ratio: 1 / .66; background: linear-gradient(180deg, #fff 0%, #aeaeae 100%); overflow: hidden; }
.card__thumb img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; height: auto; max-width: 100%; max-height: 200px; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 30px; }
.card__title { margin: 0 0 25px; font-size: 21px; line-height: 1.2; color: var(--card-title); }
.card__title a { color: inherit; text-decoration: none; }
.card__excerpt { margin: 0 0 25px; font-size: 14px; line-height: 1.5; color: #777; }
/* stranica Nase preporuke: siva kartica, sve centrirano, slika u punoj visini */
.card--prep { background: #e5e5e5; box-shadow: none; text-align: center; }
.card--prep .card__thumb { aspect-ratio: auto; background: none; }
.card--prep .card__thumb img { position: static; transform: none; display: block; width: 100%; max-height: none; }
.card--prep .card__body { align-items: center; padding: 15px; }
.card--prep .card__title { font-size: 18px; margin: 15px 0 0; }
.card--prep .card__excerpt { font-size: 13px; margin: 20px 0 15px; }
.card--prep .btn--pill { text-transform: none; margin-top: 0; }
.btn { cursor: pointer; }
.btn--pill { display: inline-block; margin-top: auto; background: var(--red); color: #fff !important; font: 500 17px/1.3 var(--font); text-transform: uppercase; padding: 10px 30px; border-radius: 20px; }
.btn--sm { font-size: 16px; padding: 10px 30px; text-transform: none; }
.card__badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font: 700 10px/1 var(--font); text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }

/* stranice (pocetna, blog, preporuke) imaju podvucene naslove i dugmad, arhive nemaju */
.home .card__title a, .page-blog .card__title a, .page-preporuke .card__title a { text-decoration: underline; }
.home .btn--pill, .page-blog .btn--pill, .page-preporuke .btn--pill { text-decoration: underline; }
.archive .btn--pill { text-decoration: none; }

/* ------------------------------------------------------------ arhiva */
.bg-page, .page-offer { background: var(--page-bg); }
.boxed { max-width: 1200px; margin: 0 auto; background: #fff; padding: 0 40px 100px; }
.featured--archive { padding: 0 0 100px; }
.archive-list { padding-top: 30px; }
.archive-list .section-title { margin-bottom: 30px; }
.archive-list .grid { align-items: start; }
.archive-list .grid.is-masonry { grid-auto-rows: 1px; row-gap: 0; }
.card--list .btn--pill { margin-top: 0; }
.section-title.is-hidden { display: none; }
.card--list .card__thumb { aspect-ratio: auto; }
.card--list .card__thumb img { position: static; transform: none; display: block; margin: 0 auto; }
.card--list .card__title { font-size: 21px; margin-bottom: 20px; }
.card--list .card__body { padding: 20px 30px 30px; }
.card--list .card__excerpt { font-size: 13px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid #e2e8f0; color: var(--nav); text-decoration: none; border-radius: 2px; }
.pagination .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .dots { border: 0; }

/* ------------------------------------------------------------ ponuda */
.boxed--offer { padding: 48px; }
.hero--offer { min-height: 361px; }
.offer { display: grid; grid-template-columns: 676fr 278fr; gap: 20px; max-width: 974px; margin: 40px 0 0 10px; }
.offer__image { margin: 0 0 20px; }
.offer__image img { display: block; width: 100%; }
.offer__facts { background: var(--red); color: #fff; padding: 10px 10px 1px; }
.offer__facts p { margin: 0 0 20px; line-height: 1.6; }
.offer__content { font-size: 16px; line-height: 1.6; color: var(--muted); }
.offer__extra { margin-top: 20px; }

/* ------------------------------------------------------------ tekst (prose) */
.wrap-text { max-width: 1140px; margin: 0 auto; padding: 0 0 40px; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 28px; }
.prose h1 { font-size: 40px; line-height: 1.4; }
.prose h2 { font-size: 32px; line-height: 1.25; margin: 20px 0; }
.prose h3 { font-size: 26px; line-height: 1.2; margin: 20px 0; }
.prose h4 { font-size: 20px; }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 40px; }
.prose strong { color: #555; }
.prose a { color: var(--red); }
.prose img { height: auto; }
.prose iframe { max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.prose .ng-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0 0 28px; }
.prose .ng-gallery a { display: block; }
.prose .ng-gallery img { display: block; width: 100%; height: 170px; object-fit: cover; }
.prose--home { font-size: 16px; }
.prose--home p { margin-bottom: 25.6px; }
.offer__content.prose strong { color: inherit; }
/* zajednicke sekcije ponude (isti izgled kao inline stilovi sa originala) */
.ponuda-singl-sub-sec { font-size: 14px; line-height: 25.6px; } /* na originalu nasledjen 1.6em od 16px */
.prose .ponuda-singl-subtitle { font-family: inherit; line-height: 1.1; margin: 20px 0 15px; font-size: 16px; padding: 15px 20px 10px; text-transform: uppercase; position: relative; }
.ponuda-singl-sub-text p { margin: 0 0 10px; }
.ponuda-singl-sub-text ul, .ponuda-singl-sub-text ol { margin-top: 0; margin-bottom: 10px; }
.ponuda-singl-sub-text strong, .ponuda-singl-sub-text b { font-weight: bold; }
.ponuda-singl-sub-text img, .offer-map { border: 0; vertical-align: middle; max-width: 100%; height: auto; }

/* ------------------------------------------------------------ blog */
.blog-list { padding-top: 60px; padding-bottom: 80px; }
.page-heading { text-align: center; color: #000; font-size: 32px; margin: 0 0 45px; }
.grid--posts { gap: 45px 30px; }
.card--post { box-shadow: none; }
.card--post .card__body { padding: 0; }
.card--post .card__title { font-size: 18px; margin-bottom: 25px; }
.card--post .card__excerpt { margin-bottom: 5px; }
.card--post .btn--pill { margin-top: 0; }
.page-bg { background: var(--page-bg); padding: 64px 0; }
.boxed--post { padding: 48px 58px 64px; }
.post-title { text-align: center; color: #000; font-size: 40px; line-height: 1.4; margin: 60px 0 20px; }
.boxed--post .prose { font-size: 16px; }

/* ------------------------------------------------------------ kontakt (Astra + Contact Form 7 izgled) */
.page-kontakt { --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.contact { max-width: 1230px; padding: 60px 15px 80px; font-family: var(--sys); }
.page-title { font: 600 32px/1.2 var(--sys); color: var(--heading); margin: 0 0 16px; }
.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-size: 16px; line-height: 1.6; margin: 0; color: var(--body); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: 16px/1.6 var(--sys); color: #666; padding: 12px; border: 1px solid #e2e8f0; background: #f9fafb; border-radius: 2px; margin-bottom: 19px; }
.contact-form select { padding: 4px 8px; background: #fff; border-color: #aaa; border-radius: 4px; font-size: 14px; color: #444; }
.contact-form textarea { height: 282px; }
.btn--submit { align-self: flex-start; margin-top: 8px; background: var(--red); color: #fff; border: 0; padding: 15px 30px; font: 500 16px/1 var(--sys); border-radius: 0; }
.form-msg { padding: 12px 16px; border-radius: 3px; }
.form-msg--ok { background: #ecfdf5; color: #065f46; }
.form-msg--err { background: #fef2f2; color: #991b1b; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 3px solid var(--red); background: #fff; padding: 20px 0 30px; }
.site-footer__in { display: flex; align-items: flex-start; }
.site-footer__logos { flex: 0 0 20%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 5px; }
.site-footer__logos a { display: block; width: 69%; text-align: center; line-height: 0; }
.site-footer__text { flex: 0 0 27%; text-align: center; color: var(--muted); padding: 30px 10px 0; }
.site-footer__text p { margin: 0 0 1.6em; }
.site-footer__text a, .site-footer__text strong { color: var(--red); }
.site-footer__friends { flex: 0 0 50%; text-align: center; padding: 0 10px; }
.site-footer__friends h2 { color: #000; font-size: 32px; line-height: 1.25; margin: 0 0 18px; }
.site-footer__friends p { margin: 0; line-height: 25.6px; }
.site-footer__friends a { color: var(--red-link); font-size: 18px; margin: 0 4px; }

/* ------------------------------------------------------------ tablet / mobilni */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-header__chat { margin: 0 15px; }
  .main-nav a { padding: 0 10px; }
}
@media (max-width: 921px) {
  .site-header__in { flex-wrap: wrap; }
  .nav-toggle { display: flex; margin-right: 15px; }
  .main-nav { display: none; order: 3; width: 100%; margin: 10px 0 0; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; height: auto; }
  .main-nav li { height: auto; }
  .main-nav a { padding: 14px 15px; border-top: 1px solid #eee; }
  .main-nav li.pill > a { border-radius: 0; }
  .site-header__chat { order: 2; width: 100%; justify-content: center; gap: 36px; margin: 10px 0 0; }
}
@media (max-width: 767px) {
  .topbar__in { flex-direction: column; gap: 2px; font-size: 13px; }
  .topbar__ig { margin: 0; }
  .site-logo img { width: 125px; }
  .hero__title { font-size: 40px; line-height: 1.4; }
  .hero--home .hero__in { min-height: 450px; }
  .hero--home .btn--hero { white-space: normal; width: calc(100% - 20px); bottom: -30px; font-size: 30px; line-height: 1.1; padding: 12px 20px; }
  .hero--home + .tiles { padding-top: 60px; }
  .tiles { grid-template-columns: 1fr; gap: 35px; padding: 30px 20px 0; }
  .tiles__col { gap: 35px; }
  .tile { height: 196px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .featured { padding-left: 15px; padding-right: 15px; }
  .boxed { padding: 0 15px 60px; }
  .boxed--offer { padding: 20px 15px; }
  .page-offer main, .page-bg { padding: 20px 0; }
  .offer { grid-template-columns: 1fr; margin: 40px 0 0; }
  .offer__side { order: -1; }
  .site-footer__in { flex-direction: column; align-items: center; }
  .site-footer__logos, .site-footer__text { flex-basis: auto; width: 100%; }
  .wrap-text { padding: 0 15px 40px; }
  .prose h2 { font-size: 26px; }
  .prose h3 { font-size: 22px; }
}

/* ------------------------------------------------------------ Chaty (plutajuce kontakt dugme) */
.chaty { position: fixed; z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chaty__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chaty__list[hidden] { display: none; }
.chaty__ch { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 12px rgba(0,0,0,.15); }
.chaty__ch svg { display: block; }
.chaty__ch::after { content: attr(data-tip); position: absolute; top: 50%; right: 54px; transform: translateY(-50%); background: #fff; color: #333; font: 14px/1 var(--font); padding: 7px 10px; border-radius: 4px; box-shadow: 0 0 8px rgba(0,0,0,.15); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chaty--left .chaty__ch::after { right: auto; left: 54px; }
.chaty__ch:hover::after, .chaty__ch:focus-visible::after { opacity: 1; }
.chaty__btn { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: 0 0 12px rgba(0,0,0,.2); line-height: 0; }
.chaty__close { display: none; }
.chaty.is-open .chaty__open { display: none; }
.chaty.is-open .chaty__close { display: block; }

/* landing stranica (nekadasnja Elementor stranica, npr. matine) */
.hero--landing { min-height: 361px; }
.hero--landing .hero__in { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 361px; }
.hero--landing .btn--hero { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 24px; }
.prose--landing { --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; text-align: center; padding-top: 30px; font: 400 16px/24px var(--sys); color: var(--body); max-width: 1030px; }
.prose--landing h1, .prose--landing h2, .prose--landing h3, .prose--landing h4 { font-family: var(--sys); color: var(--heading); }
.prose--landing .lp-heading { margin: 40px 0 20px; font-weight: 500; }
.prose--landing .lp-heading::after { content: ""; display: block; width: 26px; margin: 10px auto 0; border-bottom: 3px dotted var(--red); }
.prose--landing h1.lp-heading { font-size: 40px; line-height: 1.4; }
.prose--landing h2.lp-heading { font-size: 32px; line-height: 1.3; }
.prose--landing h4 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 20px 0 10px; }
.prose--landing ul { text-align: center; list-style-position: inside; padding-left: 0; }
.prose--landing p { margin: 10px 0; }
.prose--landing strong { color: inherit; }
.lp-figure { margin: 20px auto; }
.lp-cta { max-width: 900px; margin: 40px auto 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 50px 60px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.lp-cta__title { margin: 0; font: 700 36px/1.25 "Lato", var(--font); color: #1e293b; }
.lp-cta__btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; text-transform: uppercase; font: 500 14px/1 var(--font); padding: 14px 30px; border-radius: 3px; white-space: nowrap; }
.sitemap-page ul { columns: 2; padding-left: 20px; }
.sitemap-page h2 { font-size: 24px; margin-top: 30px; }
@media (max-width: 767px) { .lp-cta { flex-direction: column; padding: 30px 20px; margin: 30px 15px 60px; } .sitemap-page ul { columns: 1; } }

/* dodatni naslov iznad plocica (ElementsKit heading) i razmak kad pocetna nema preporuke */
.tiles-heading { text-align: center; color: #292929; font-size: 36px; font-weight: 700; line-height: 1.25; text-transform: uppercase; margin: 30px 0 60px; padding: 0 15px; }
.tiles-heading + .tiles { padding-top: 30px; }
.featured-gap { height: 60px; }
