/*
 * Osnovni stilovi teme, preneseni iz vdtheme/style.css (odjeljci 1–8).
 * Boje i font dolaze iz theme.json preko CSS varijabli --wp--preset--*.
 * Sve mjere su u rem, uz html { font-size: 62.5% }, pa je 1rem = 10px
 * (na ekranima do 1280px 58.25%, kao u staroj temi).
 */

/* 1. Reset */
*, *::after, *::before { margin: 0; padding: 0; box-sizing: inherit; }
img { border: 0; max-width: 100%; height: auto; }
hr { box-sizing: content-box; height: 0; margin-top: 30px; margin-bottom: 35px; border-width: 0; border-top: 1px solid #e1e1e1; }
button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; }
input { line-height: normal; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; }
input, textarea, button, select, a { -webkit-tap-highlight-color: transparent; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; transition: all 0.6s ease; }
strong { font-weight: 700; }
ul, ol { padding-left: 4rem; }

/* Fokus za tipkovnicu: stara tema ga je skrivala, što otežava pristupačnost. */
:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
.cky-btn-revisit-wrapper button:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
/* Na tamnom zaglavlju (preko slike) svijetla tirkizna. */
.site-header:not(.scrolled) :focus-visible { outline-color: var(--wp--preset--color--primary-light); }

/* 2. Body */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-size: 58.25%;
	overflow-wrap: break-word;
}
@media only screen and (min-width: 80.0625em) {
	html { font-size: 62.5%; }
}
body { box-sizing: border-box; }
main { position: relative; }

/* 3. Placeholder i označavanje */
::placeholder { color: inherit; opacity: 1; }
::selection { background-color: var(--wp--preset--color--primary); color: #fff; }

/* 4. Kontejneri */
.container {
	position: relative;
	width: 100%;
	max-width: 148rem;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 2rem;
}
.container-lg { max-width: 192rem; padding: 0; }
.container-md { max-width: 168rem; }
.container-sm { max-width: 110rem; }

/* 5. Naslovi */
h1, h2, h3, h4, h5, h6 { margin-bottom: 2rem; }
h1, .hero h2 { font-size: 3.4rem; }
.title h1, .title h2 { font-size: 3.4rem; font-weight: 700; line-height: 1.3; }
p { margin-bottom: 2rem; }
.title { margin-bottom: 5rem; }
.title-center { text-align: center; }
.heading-sm { font-size: 1.4rem; color: var(--wp--preset--color--primary); font-weight: 300; margin: 0; }
.title-mb-sm { margin-bottom: 3rem; }
@media only screen and (min-width: 48.0625em) {
	h1, .hero h2 { font-size: 4rem; }
	.title h1, .title h2 { font-size: 4rem; }
}
@media only screen and (min-width: 56.3125em) {
	.title { margin-bottom: 10rem; }
}
@media only screen and (min-width: 80.0625em) {
	h1, .hero h2 { font-size: 5rem; }
	.title h1, .title h2 { font-size: 5rem; }
}

/* 6. Gumbi (blok Gumb koristi stil iz theme.json; .btn ostaje za gumbe u kodu) */
.btn {
	display: inline-block;
	padding: 1rem 2.6rem;
	font-weight: 700;
	border-radius: 10px;
}
.btn-primary { background-color: var(--wp--preset--color--primary); color: #fff; }
.btn-primary:hover { background-color: var(--wp--preset--color--primary-dark); color: #fff; }
/* Blok Gumb, stil "Obrub" (npr. "Pogledajte cjenik" uz "Rezervirajte termin", migracija 26):
   bez ovoga theme.json daje bijeli tekst, a obrub prozirnu pozadinu. Obrub 2px, pa je
   unutarnji razmak manji za 2px da gumb bude iste visine kao puni. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	padding: calc(1rem - 2px) calc(2.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

/* 7. Forme */
input, textarea, select {
	display: block;
	width: 100%;
	border: 1px solid #e6e6e6;
	padding: 1.4rem;
	outline: none;
	background-color: var(--wp--preset--color--light);
	border-radius: 10px;
	font-weight: 400;
	font-size: 1.4rem;
}
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--wp--preset--color--primary); }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--wp--preset--color--heading); }
button { transition: all 0.4s ease-in-out; border: 0; }
fieldset { border: 0; margin-bottom: 2rem; }

/* 8. Razmaci */
.space { padding: 7rem 0; }
.mt-5 { margin-top: 5rem; }
.mb-5 { margin-bottom: 5rem; }
.mt-10 { margin-top: 7rem; }
.mb-10 { margin-bottom: 7rem; }
.no-pt { padding-top: 0 !important; }
.no-pb { padding-bottom: 0 !important; }
.no-m { margin: 0 !important; }
@media only screen and (min-width: 56.3125em) {
	.space { padding: 14rem 0; }
	.mt-10 { margin-top: 10rem; }
	.mb-10 { margin-bottom: 10rem; }
}

/* Razmaci između dijelova predloška dolaze iz CSS-a sekcija, kao u staroj temi. */
.wp-site-blocks > *,
.wp-site-blocks main > * { margin-block: 0; }

/* 9. Putokaz */
.breadcrumbs { padding: 1rem 0; font-size: 1.4rem; color: #fff; }
.breadcrumbs ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}
.breadcrumbs ul li { display: inline-block; font-weight: 600; }
.breadcrumbs ul li:not(:last-child)::after { content: "/"; display: inline-block; margin: 0 1rem; }
.breadcrumbs ul li a { display: inline-block; font-weight: 400; }

/* 10. Zaglavlje */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	transition: all 0.4s ease-in-out;
	z-index: 10;
	color: #fff;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.admin-bar .site-header { top: 46px; }
@media screen and (min-width: 783px) {
	.admin-bar .site-header { top: 32px; }
}
.site-header.scrolled {
	padding: 1rem 0;
	background-color: #fff;
	color: var(--wp--preset--color--heading);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.site-header ul { list-style: none; padding: 0; margin: 0; }
.site-header .container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding-right: 8rem;
}
.site-header nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	background-color: #fff;
	color: var(--wp--preset--color--heading);
	overflow-y: auto;
	transition: all 0.46s cubic-bezier(0.7, 0, 0.3, 1);
	z-index: 10;
	transform: translate3d(100%, 0, 0);
	visibility: hidden;
}
.site-header .nav-inner {
	transform: translate3d(-100%, 0, 0);
	transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
	padding: 2rem;
}
.site-header nav.open { transform: translateZ(0); visibility: visible; }
.site-header nav.open .nav-inner { transform: translateZ(0); }
.header-logo { display: inline-block; width: 23rem; position: relative; height: 7.4rem; }
.header-logo img {
	display: block;
	width: 23rem;
	height: auto;
	position: absolute;
	left: 0;
	top: 0;
	transition: all 0.4s ease-in-out;
}
.header-logo img.logo-second { opacity: 0; visibility: hidden; }
.site-header.scrolled .header-logo img.logo-second { opacity: 1; visibility: visible; }
.site-header.scrolled .header-logo img.logo-first { opacity: 0; visibility: hidden; }
.site-header nav li { display: block; }
.site-header nav li a { display: block; padding: 1rem; font-weight: 600; font-size: 1.8rem; color: var(--wp--preset--color--text); }
.site-header.scrolled nav li a { color: var(--wp--preset--color--slate); }
.site-header nav li a:hover,
.site-header nav li.current-menu-item > a,
.site-header nav li.current_page_item > a { color: var(--wp--preset--color--primary); }
/* Naslovnica u glavnom izborniku: samo kućica, tekst "Početna" za čitače ekrana. */
.menu-home-icon { display: inline-block; width: 2rem; height: 2rem; vertical-align: -0.3rem; }
.menu-home-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.site-header .menu-item-has-children { position: relative; }
.site-header .sub-menu { display: none; }
.site-header .submenu-open > .sub-menu { display: block; }
.site-header .sub-menu::before {
	content: "";
	position: absolute;
	top: -1rem;
	left: 2rem;
	width: 0;
	height: 0;
	border-left: 0.8rem solid transparent;
	border-right: 0.8rem solid transparent;
	border-bottom: 1rem solid #fff;
}
.site-header .sub-menu li a { display: block; color: var(--wp--preset--color--slate); padding: 1rem 2rem; font-size: 1.6rem; }
.submenu-toggle {
	position: absolute;
	right: 0;
	top: 0.6rem;
	width: 4.4rem;
	height: 4.4rem;
	background: none;
	color: var(--wp--preset--color--slate);
}
.submenu-toggle::before {
	content: "";
	display: block;
	width: 1rem;
	height: 1rem;
	margin: auto;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}
.submenu-open > .submenu-toggle::before { transform: rotate(-135deg); }
.menu-toggle {
	display: block;
	order: 3;
	width: 60px;
	height: 45px;
	padding: 0;
	background: none;
	transform: rotate(0deg) scale(0.4);
	transition: 0.5s ease-in-out;
	cursor: pointer;
	z-index: 11;
	position: absolute;
	right: 0;
	top: 1.3rem;
}
.menu-toggle span:not(.screen-reader-text) {
	display: block;
	position: absolute;
	height: 6px;
	width: 100%;
	background: #fff;
	border-radius: 9px;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transform-origin: left center;
	transition: 0.25s ease-in-out;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 36px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: -3px; left: 8px; }
.menu-toggle.open span:nth-child(2) { width: 0%; opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 39px; left: 8px; }
body.fizio-menu-open { overflow: hidden; }
body.fizio-menu-open .menu-toggle span:not(.screen-reader-text),
.site-header.scrolled .menu-toggle span:not(.screen-reader-text) { background-color: var(--wp--preset--color--heading) !important; }
.mobile-logo { margin-bottom: 4rem; display: inline-block; }
.mobile-logo img { height: auto; display: block; width: 23rem; }
.site-header > .container > .btn { display: none; }
@media only screen and (min-width: 30.0625em) {
	.site-header .nav-inner { padding: 2rem 5rem 5rem 5rem; }
}
@media only screen and (min-width: 33.75em) {
	.site-header > .container > .btn { margin-left: auto; display: inline-block; }
}
@media only screen and (min-width: 40.0625em) {
	.header-logo img { width: 33rem; }
	.header-logo { height: 10rem; width: 33rem; }
	.site-header { padding: 1.5rem 0 3rem 0; }
	.menu-toggle { top: 2.6rem; }
	.mobile-logo img { width: 26rem; }
}
@media only screen and (min-width: 75.0625em) {
	.menu-toggle,
	.submenu-toggle,
	.mobile-logo { display: none; }
	.site-header nav {
		position: static;
		width: auto;
		height: auto;
		min-height: auto;
		overflow-y: visible;
		transition: none;
		background-color: transparent;
		color: inherit;
		padding: 0;
		margin: 0 auto;
		transform: none;
		visibility: visible;
	}
	.site-header nav li { display: inline-block; }
	.site-header nav li a { display: inline-block; font-size: inherit; color: #fff; }
	.site-header.scrolled nav li a { color: var(--wp--preset--color--text); }
	/* Prozirno zaglavlje preko slike: svijetla tirkizna bolje se vidi na tamnoj pozadini. */
	.site-header:not(.scrolled) nav li a:hover,
	.site-header:not(.scrolled) nav li.current-menu-item > a,
	.site-header:not(.scrolled) nav li.current_page_item > a { color: var(--wp--preset--color--primary-light); }
	.site-header .nav-inner { transform: none; padding: 0; }
	.site-header .sub-menu {
		position: absolute;
		left: 0;
		top: 6rem;
		transition: all 0.4s ease-in-out;
		width: 30rem;
		background-color: #fff;
		border-radius: 10px;
		opacity: 0;
		visibility: hidden;
		padding: 1rem 0;
		display: block;
	}
	.site-header .menu-item-has-children:hover > .sub-menu,
	.site-header .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; }
	.site-header .sub-menu li { display: block; }
	.site-header .sub-menu li a { display: block; font-size: inherit; color: var(--wp--preset--color--slate); }
	.site-header > .container > .btn { margin-left: 0; white-space: nowrap; }
	/* Zaglavlje preko cijele širine: logo uz lijevi rub, gumb uz desni, više mjesta za izbornik. */
	.site-header .container { max-width: none; padding: 0 3rem; }
}
/* Uža računala (do 1500px): izbornik s 9 stavki u jednom redu uz manji logo i razmake. */
@media only screen and (min-width: 75.0625em) and (max-width: 93.75em) {
	.header-logo, .header-logo img { width: 22rem; }
	.header-logo { height: 6.7rem; }
	.site-header nav li a { padding: 1rem 0.6rem; font-size: 1.6rem; }
	.site-header > .container > .btn { padding: 1rem 1.8rem; }
}

/* 11. Vrh stranice (blok Cover s istaknutom slikom) */
.top-content.wp-block-cover {
	position: relative;
	min-height: 50rem;
	padding: 0;
	color: #fff;
}
.top-content::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(26, 30, 32, 0.8) 0%, rgba(26, 30, 32, 0) 90%);
	pointer-events: none;
}
.top-content.wp-block-cover .wp-block-cover__inner-container { z-index: 2; width: 100%; }
.top-content .container {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-direction: column;
}
.top-content h1 { color: #fff; }
.top-content .title { margin-bottom: 0; }
@media only screen and (min-width: 42.5625em) {
	.top-content.wp-block-cover { min-height: 65rem; }
}

/* 16. Podnožje */
.site-footer { border-top: 1px solid var(--wp--preset--color--border); padding: 5rem 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-content { width: 100%; }
.footer-box { width: 100%; }
.footer-map { width: 100%; margin-top: 5rem; }
.info-row { display: flex; flex-direction: row; margin-bottom: 2rem; }
.info-row img { width: 1.3rem; height: 3rem; object-fit: contain; }
.info-row p { margin-left: 2rem; margin-bottom: 0; }
.footer-heading { font-size: 1.17em; }
.footer-links ul { column-count: 2; column-gap: 3rem; }
.footer-links a { display: block; padding: 2px 0; }
.footer-logo img { width: 30rem; height: auto; display: block; margin-bottom: 3rem; }
.footer-links { margin-top: 5rem; }
.social { display: flex; align-items: center; gap: 1.2rem; margin-top: 4rem; }
.social a { display: flex; }
.social img { display: block; width: 3.6rem; height: auto; }
/* Slika karte (snimka Google Maps sa stare stranice, scripts/snimi-kartu.mjs) dok posjetitelj
   ne klikne "Prikaži kartu"; mala kartica s gumbom je dolje lijevo, da se vidi oznaka ordinacije. */
.map-consent {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	height: 45rem;
	padding: 1.2rem;
	text-align: center;
	font-size: 1.2rem;
	background: var(--wp--preset--color--light) url(../images/karta.webp?v=2) no-repeat center / cover;
}
.map-consent__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1rem;
	background-color: rgba(255, 255, 255, 0.94);
	border-radius: 8px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.map-consent .btn { padding: 0.6rem 1.4rem; font-size: 1.3rem; border-radius: 6px; }
/* Navod izvora karte (Googleovi uvjeti korištenja). */
.map-consent__izvor {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.2rem 0.8rem;
	font-size: 1.1rem;
	color: var(--wp--preset--color--slate);
	background-color: rgba(255, 255, 255, 0.8);
}
.map-consent .map-link { text-decoration: underline; }
.map-consent.is-loaded { padding: 0; border: 0; }
.map-consent iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.8) contrast(0.95); }
.copyright {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	padding: 1rem 0;
	font-size: 1.4rem;
	font-weight: 400;
}
.copyright .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.v { margin-top: 5px; }
.v img { display: block; }
@media only screen and (min-width: 40.0625em) {
	.copyright .container { flex-direction: row; text-align: left; }
	.v { margin-left: auto; margin-top: 0; }
}
@media only screen and (min-width: 48.0625em) {
	.site-footer .container {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
	}
	.footer-content { width: 50%; }
	.footer-box { width: 50%; }
	.footer-links { padding-left: 7rem; margin-top: 0; }
}
@media only screen and (min-width: 64.0625em) {
	.site-footer .container { gap: 3%; }
	/* U vdtheme je .container::after (clearfix) bio nevidljivi četvrti stupac,
	   pa je zbog razmaka od 3% karta završavala 3% prije ruba. Zadržano radi istog izgleda. */
	.site-footer .container::after { content: ""; }
	.footer-content { width: 40%; }
	.footer-box, .footer-map { width: 31.3%; margin-top: 0; }
	.footer-links { width: 22%; margin: 0 auto; padding-left: 0; }
	.site-footer { padding: 0; }
}
@media only screen and (min-width: 80.0625em) {
	.footer-logo img { width: 40rem; }
}

/* 17. Traka za kolačiće (CookieYes; tekst i boje u migracijama 11 i 20)
   "Odbij" i "Prihvati" jednako veliki i jednako istaknuti, "Postavke" kao poveznica.
   CookieYes svoj CSS umeće skriptom nakon ovog, pa selektori imaju klasu više. */
.cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize {
	padding-left: 0.8rem;
	padding-right: 0.8rem;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept,
.cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject { min-width: 12rem; }
@media (max-width: 576px) {
	/* CookieYes na mobitelu slaže tri gumba jedan ispod drugog (pola ekrana). */
	.cky-consent-container .cky-consent-bar { padding: 1.6rem 0 0.8rem; }
	.cky-consent-container .cky-notice-des { max-height: none; overflow-y: visible; }
	.cky-consent-container .cky-notice-btn-wrapper { flex-flow: row wrap; gap: 0 1rem; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject,
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		margin: 1.2rem 0 0;
	}
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject { order: 1; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept { order: 2; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize {
		order: 3;
		flex: 1 1 100%;
		margin: 0.4rem 0 0;
	}
}

/* Tekst samo za čitače ekrana */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #fff;
	clip-path: none;
	color: var(--wp--preset--color--heading);
	display: block;
	font-size: 1.4rem;
	height: auto;
	left: 0.5rem;
	padding: 1.5rem 2.3rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}
