/*
Theme Name: Šarićevi Dvori
Template: betheme
Version: 1.0.7
Description: Child tema uz BeTheme: zaglavlje bez Slider Revolutiona (iste fotografije i natpis), male vizualne dorade. Sadržaj i izgled ostaju BeThemeovi.
Text Domain: saricevi
*/

/* ---------- Dancing Script s vlastitog poslužitelja (prije ga je učitavao Slider Revolution) ---------- */
@font-face {
	font-family: "Dancing Script";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/dancing-script-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Dancing Script";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/dancing-script-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Zaglavlje: istih 5 fotografija i natpis, bez Slider Revolutiona ---------- */
.sd-hero {
	position: relative;
	overflow: hidden;
	height: calc(100vw / 3);      /* kao slider: 1500 x 500 */
	max-height: 500px;
	min-height: 210px;            /* mobitel: prije oko 130 px, fotografija se jedva vidjela */
	background: #2a272b;
}
.sd-hero-slike, .sd-hero-slike span {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.sd-hero-slike span { opacity: 0; }
/* Ostale fotografije učitavaju se tek nakon stranice (klasa iz saricevi.js), da ne usporavaju prvi prikaz. */
.sd-hero.ucitano .sd-hero-slike span { animation: sd-izmjena 30s infinite; }
.sd-hero.ucitano .sd-hero-slike span:nth-child(2) { animation-delay: 0s; }
.sd-hero.ucitano .sd-hero-slike span:nth-child(3) { animation-delay: 6s; }
.sd-hero.ucitano .sd-hero-slike span:nth-child(4) { animation-delay: 12s; }
.sd-hero.ucitano .sd-hero-slike span:nth-child(5) { animation-delay: 18s; }
@keyframes sd-izmjena {
	0%, 16% { opacity: 0; }
	20%, 40% { opacity: 1; }
	44%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sd-hero.ucitano .sd-hero-slike span { animation: none; }
}
.sd-hero-naslov {
	position: absolute;
	right: 2.2%;
	bottom: 4%;
	margin: 0;
	font-family: "Dancing Script", cursive;
	font-weight: 400;
	font-size: clamp(40px, 6.8vw, 102px);
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .45);   /* novo: čitljivo i na svijetloj fotografiji */
}

/* ---------- 2. Čitljiviji tekst ---------- */
body, .column_attr, .post-excerpt, #Content p { color: #4a4a4a; }  /* bilo #626262 */

/* ---------- 3. Naslov "Specijaliteti kuće" bez mutne sjene ---------- */
.mcb-section .mcb-item-516f7990e h2 { text-shadow: 0 1px 1px rgba(0, 0, 0, .12); }

/* ---------- 4. Kontakt podaci kao poveznice (dodaje saricevi.js / filter u functions.php) ---------- */
a.sd-kontakt-link { display: inline !important; color: inherit; border: 0 !important; text-decoration: underline dotted; text-underline-offset: 3px; }
a.sd-kontakt-link:hover { color: #559a4e; }

/* ---------- 5. Gumb obrasca kao pravi gumb ---------- */
.wpcf7-form input[type="submit"], #Content form button[type="submit"].wp-element-button {
	background: #559a4e !important;
	color: #fff !important;
	border: 0;
	border-radius: 3px;
	padding: 14px 28px;
	font-weight: 600;
	cursor: pointer;
	width: auto !important;
}
.wpcf7-form input[type="submit"]:hover, #Content form button[type="submit"].wp-element-button:hover { background: #467f40 !important; }

/* ---------- 6. Specijaliteti i popisi objava: "Pročitajte više" kao mali gumb ---------- */
.post-footer .post-links a, .post-footer .post-more {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #559a4e;
	border-radius: 3px;
	color: #559a4e;
}
.post-footer .post-links a:hover, .post-footer .post-more:hover { background: #559a4e; color: #fff; }
.post-footer .post-links i { display: none; }

/* ---------- 7. Mobitel: gumb "Nazovite" ---------- */
.sd-poziv { display: none; }
@media (max-width: 767px) {
	.sd-poziv {
		display: flex;
		align-items: center;
		gap: 8px;
		position: fixed;
		right: 14px;
		bottom: 14px;
		z-index: 9990;
		padding: 12px 18px;
		border-radius: 30px;
		background: #559a4e;
		color: #fff !important;
		font-weight: 600;
		font-size: 15px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
		text-decoration: none;
	}
	.sd-poziv svg { width: 18px; height: 18px; fill: currentColor; }
}

/* ---------- 8. Razdjelnici ispod naslova u boji sajta (bili crveni iz BeTheme demoa) ---------- */
img[src*="home_bistro_sep"] { filter: hue-rotate(112deg) saturate(.75) brightness(.95); }

/* ---------- 9. Dorada (Filip 20. 11.: "slightly visually better") ---------- */
/* fotografije u sadržaju i popisima: blago zaobljene, s mekom sjenom */
#Content .image_frame:not(:has(img[src*="contact_icon"])) {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	border: 0;
}
#Content .image_frame img { transition: transform .4s ease; }
#Content .post-photo-wrapper .image_frame:hover img { transform: scale(1.03); }

/* bočni izbornik: mekši rubovi, zelena crta pri prijelazu */
.widget_mfn_menu ul li a {
	border-radius: 3px;
	border-left: 3px solid transparent;
	transition: border-color .2s, color .2s, background-color .2s;
}
.widget_mfn_menu ul li a:hover { border-left-color: #559a4e; color: #559a4e; }
.widget_mfn_menu ul li.current-menu-item > a { border-left-color: #467f40; }

/* "Pogledajte sve specijalitete kuće": zeleni poluprozirni gumb umjesto sivog */
#Content .button_full_width.button_size_1 {
	background: rgba(85, 154, 78, .88) !important;
	color: #fff !important;
	border-radius: 3px;
	font-weight: 600;
	transition: background-color .2s;
}
#Content .button_full_width.button_size_1:hover { background: #467f40 !important; }

/* naslovi objava na popisima: zeleni prijelaz */
.post-title h2 a { transition: color .2s; }
.post-title h2 a:hover { color: #467f40; }

/* traka kontakta na naslovnici: ikone se blago podignu */
#Content img[src*="home_bistro_contact_icon"] { transition: transform .25s; }
#Content .image_frame:hover img[src*="home_bistro_contact_icon"] { transform: translateY(-3px); }

/* mobitel: malo veći razmak redaka u tekstu */
@media (max-width: 767px) {
	#Content .column_attr p, #Content .post-excerpt { line-height: 1.75; }
}

/* mobitel: izbornik se otvara ispod zaglavlja (saricevi-mobitel-vrijeme.php ga je postavio na visinu slidera, 100vw / 3) */
@media (max-width: 767px) {
	#Top_bar .menu_wrapper { padding-top: max(210px, calc(100vw / 3)) !important; }
}

/* gdje je novo zaglavlje, stara pozadina #Header_wrapper (saricevi-lcp.php) se ne vidi: ne preuzimati je */
body:has(.sd-hero) #Header_wrapper { background-image: none !important; }

/* ---------- 10. Podnožje: oznaka zaštite s logom Hiperlink Digitala (tamno podnožje, pa svijetli logo) ---------- */
#Footer .footer_copy .sd-zastita { margin: 6px 0 0; font-size: 12px; line-height: 1; }
#Footer .sd-zastita a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .5) !important; text-decoration: none; transition: color .2s, opacity .2s; }
#Footer .sd-zastita a:hover, #Footer .sd-zastita a:focus { color: rgba(255, 255, 255, .8) !important; }
#Footer .sd-zastita img { display: block; width: auto; height: 8px; filter: brightness(0) invert(1); opacity: .5; transition: opacity .2s; }
#Footer .sd-zastita a:hover img, #Footer .sd-zastita a:focus img { opacity: .8; }
@media (max-width: 767px) {
	#Footer .footer_copy .sd-zastita { margin: 8px 0 4px; }
	#Footer .sd-zastita a { justify-content: center; }
}
