/* ==========================================================================
   "Υπηρεσίες" page template (templates/page-ypiresia.php)
   Figma medpap.gr: Desktop 1:9 / Mobile 24:1393.
   Tokens: text #231F20, green #00963F, grey panel #F5F5F5, Open Sans.
   Desktop type: H1 40/56 700, H2 32/40 700, H3 28/40 600, body 18/28 400.
   Mobile type:  H1 28/36,   H2 24/32,   H3 22/30,   body 16/24.
   ========================================================================== */

.zp_svc {
	--zp-svc-text: #231F20;
	--zp-svc-green: #00963F;
	--zp-svc-panel: #F5F5F5;
	--zp-svc-pad: 100px;
	--zp-svc-sticky: 0px; /* height of the sticky site header, set by service.js */
	display: block;
	width: 100%;
	color: var(--zp-svc-text);
	font-family: "Open Sans", sans-serif;
	background: #fff;
}

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

/* --- Breadcrumb bar (68px in Figma) ------------------------------------- */
.zp_svc__crumbs {
	padding: 0 var(--zp-svc-pad);
	min-height: 68px;
	display: flex;
	align-items: center;
}

/* --- Hero --------------------------------------------------------------- */
.zp_svc__hero {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px var(--zp-svc-pad) 64px;
}

.zp_svc__title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 56px;
	color: var(--zp-svc-text);
}

.zp_svc__subtitle {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
}

.zp_svc__hero-media {
	width: 100%;
	height: 600px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.zp_svc__hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* --- Layout: sticky sidebar + content ----------------------------------- */
.zp_svc__layout {
	display: grid;
	grid-template-columns: 318px minmax(0, 1fr);
	column-gap: 100px;
	align-items: start;
	padding: 0 var(--zp-svc-pad) 75px;
}

.zp_svc__sidebar {
	position: sticky;
	top: calc(var(--zp-svc-sticky) + 32px);
	padding-top: 32px;
}

.zp_svc__toc {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.zp_svc__toc-title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 40px;
	white-space: nowrap;
}

.zp_svc__toc-toggle {
	display: none;
}

.zp_svc__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.zp_svc__toc-item {
	margin: 0;
	padding: 0;
}

.zp_svc__toc-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 20px 12px 24px;
	border: 1px solid var(--zp-svc-text);
	border-radius: 5px;
	background: #fff;
	color: var(--zp-svc-green);
	font-size: 26px;
	font-weight: 600;
	line-height: 40px;
	text-decoration: none;
	transition: background-color .2s, border-color .2s;
}

.zp_svc__toc-link:hover,
.zp_svc__toc-link:focus-visible {
	color: var(--zp-svc-green);
	border-color: var(--zp-svc-green);
	background: var(--zp-svc-panel);
	text-decoration: none;
}

.zp_svc__toc-link.is-active {
	border-color: var(--zp-svc-green);
	box-shadow: inset 0 0 0 1px var(--zp-svc-green);
}

.zp_svc__toc-link .zp_svc__arrow {
	color: var(--zp-svc-text);
}

/* Shared arrow icon (Figma: 25.5x32 chevron rotated -90deg = pointing right) */
.zp_svc__arrow {
	flex: 0 0 auto;
	width: 26px;
	height: 32px;
	transform: rotate(-90deg);
	transition: transform .25s;
	color: var(--zp-svc-text);
}

.zp_svc__arrow path {
	fill: currentColor;
}

/* --- Content ------------------------------------------------------------ */
.zp_svc__content {
	display: flex;
	flex-direction: column;
	gap: 65px;
	padding-top: 32px;
	min-width: 0;
}

.zp_svc__lead {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 40px;
}

.zp_svc__section {
	display: flex;
	flex-direction: column;
	gap: 32px;
	scroll-margin-top: calc(var(--zp-svc-sticky) + 32px);
}

.zp_svc__h2 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
}

.zp_svc__h3 {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 40px;
}

.zp_svc__text {
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
}

.zp_svc__text p,
.zp_svc__text ul,
.zp_svc__text ol {
	margin: 0 0 28px;
}

.zp_svc__text ul,
.zp_svc__text ol {
	padding-left: 27px;
}

.zp_svc__text li {
	margin: 0;
}

.zp_svc__text > :last-child {
	margin-bottom: 0;
}

.zp_svc__text a {
	color: var(--zp-svc-green);
	text-decoration: underline;
}

.zp_svc__text strong {
	font-weight: 700;
}

.zp_svc__text h4 {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 30px;
}

.zp_svc__text > * + h4 {
	margin-top: 28px;
}

/* Buttons used as toggles: reset the theme button styles */
.zp_svc__expand-btn,
.zp_svc__acc-btn,
.zp_svc__faq-btn,
.zp_svc__toc-toggle,
.zp_svc__expand-btn:hover,
.zp_svc__acc-btn:hover,
.zp_svc__faq-btn:hover,
.zp_svc__toc-toggle:hover,
.zp_svc__expand-btn:focus,
.zp_svc__acc-btn:focus,
.zp_svc__faq-btn:focus,
.zp_svc__toc-toggle:focus {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--zp-svc-text);
	font-family: inherit;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}

.zp_svc__expand-btn:focus-visible,
.zp_svc__acc-btn:focus-visible,
.zp_svc__faq-btn:focus-visible,
.zp_svc__toc-toggle:focus-visible {
	outline: 2px solid var(--zp-svc-green);
	outline-offset: 4px;
}

/* --- Expandable line ("Drop Down") -------------------------------------- */
.zp_svc__expand-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	font-size: 24px;
	font-weight: 400;
	line-height: 40px;
}

.zp_svc__expand-btn[aria-expanded="true"] .zp_svc__arrow {
	transform: rotate(0deg);
}

.zp_svc__expand-panel {
	margin-top: 16px;
}

.zp_svc__expand-panel[hidden] {
	display: none;
}

/* --- Accordion (exams / info) ------------------------------------------ */
.zp_svc__acc {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.zp_svc__acc-item {
	border-bottom: 1px solid var(--zp-svc-green);
	padding-bottom: 12px;
}

.zp_svc__acc-title {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.zp_svc__acc-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 400;
	line-height: 40px;
}

.zp_svc__acc-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	color: var(--zp-svc-green);
}

.zp_svc__acc-icon svg {
	width: 100%;
	height: 100%;
}

.zp_svc__acc-label {
	flex: 1 1 auto;
	min-width: 0;
}

.zp_svc__acc-btn[aria-expanded="true"] .zp_svc__arrow {
	transform: rotate(0deg);
}

.zp_svc__acc-panel {
	margin-top: 12px;
}

.zp_svc__acc-panel[hidden] {
	display: none;
}

.zp_svc__acc-body {
	padding: 24px;
	background: var(--zp-svc-panel);
	border-radius: 10px 10px 0 0;
}

/* --- Equipment ----------------------------------------------------------- */
.zp_svc__equip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.zp_svc__equip-item {
	display: flex;
	align-items: center;
	gap: 32px;
}

.zp_svc__equip-item--large {
	grid-column: 1 / -1;
}

.zp_svc__equip-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.zp_svc__equip-media {
	flex: 0 0 160px;
	width: 160px;
	height: 160px;
}

.zp_svc__equip-item--large .zp_svc__equip-media {
	flex-basis: 318px;
	width: 318px;
	height: 319px;
}

.zp_svc__equip-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

/* --- CTA ------------------------------------------------------------------ */
.zp_svc__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: var(--zp-svc-panel);
	border-radius: 10px;
	text-align: center;
}

.zp_svc__cta-icon {
	width: 153px;
	height: 125px;
}

.zp_svc__cta-text {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.25;
}

.zp_svc__cta-phone {
	color: var(--zp-svc-green);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.zp_svc__cta-phone:hover {
	color: var(--zp-svc-green);
	text-decoration: underline;
}

/* --- FAQ ------------------------------------------------------------------ */
.zp_svc__faq {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.zp_svc__faq-item {
	border: 1px solid var(--zp-svc-green);
	border-radius: 10px;
	padding: 12px 24px;
	background: #fff;
	scroll-margin-top: calc(var(--zp-svc-sticky) + 32px);
}

.zp_svc__faq-q {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.zp_svc__faq-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 28px;
	font-weight: 600;
	line-height: 40px;
}

.zp_svc__faq-label {
	flex: 1 1 auto;
	min-width: 0;
}

/* +/- box: closed = white with green border and plus, open = grey with minus */
.zp_svc__faq-toggle {
	position: relative;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--zp-svc-green);
	border-radius: 10px;
	background: #fff;
	transition: background-color .2s, border-color .2s;
}

.zp_svc__faq-plus {
	width: 16px;
	height: 16px;
	display: block;
}

.zp_svc__faq-plus path {
	fill: var(--zp-svc-green);
}

.zp_svc__faq-toggle::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 1.8px;
	border-radius: 20px;
	background: var(--zp-svc-green);
	opacity: 0;
}

.zp_svc__faq-btn[aria-expanded="true"] .zp_svc__faq-toggle {
	background: var(--zp-svc-panel);
	border-color: var(--zp-svc-panel);
}

.zp_svc__faq-btn[aria-expanded="true"] .zp_svc__faq-plus {
	opacity: 0;
}

.zp_svc__faq-btn[aria-expanded="true"] .zp_svc__faq-toggle::after {
	opacity: 1;
}

.zp_svc__faq-panel {
	margin-top: 24px;
}

.zp_svc__faq-panel[hidden] {
	display: none;
}

.zp_svc__faq-a {
	padding: 24px;
	background: var(--zp-svc-panel);
	border-radius: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1440px) {
	.zp_svc {
		--zp-svc-pad: 60px;
	}

	.zp_svc__layout {
		grid-template-columns: 280px minmax(0, 1fr);
		column-gap: 60px;
	}

	.zp_svc__toc-link {
		font-size: 22px;
		line-height: 32px;
		padding: 10px 20px;
	}

	.zp_svc__toc-title {
		font-size: 24px;
		line-height: 32px;
	}

	.zp_svc__hero-media {
		height: 480px;
	}
}

@media screen and (max-width: 1024px) {
	.zp_svc {
		--zp-svc-pad: 40px;
	}

	.zp_svc__layout {
		display: block;
	}

	/* Sidebar becomes a dropdown ("Ενότητες") above the content */
	.zp_svc__sidebar {
		position: relative;
		top: auto;
		padding-top: 20px;
	}

	.zp_svc__toc {
		gap: 24px;
	}

	.zp_svc__toc-title {
		font-size: 22px;
		line-height: 30px;
	}

	.zp_svc__toc-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 6px 12px;
		border: 1px solid var(--zp-svc-text);
		border-radius: 5px;
		background: #fff;
		color: var(--zp-svc-green);
		font-size: 22px;
		font-weight: 600;
		line-height: 30px;
	}

	.zp_svc__toc-toggle:hover,
	.zp_svc__toc-toggle:focus {
		padding: 6px 12px;
		border: 1px solid var(--zp-svc-text);
		border-radius: 5px;
		background: #fff;
		color: var(--zp-svc-green);
	}

	.zp_svc__toc-toggle[aria-expanded="true"] .zp_svc__arrow {
		transform: rotate(0deg);
	}

	.zp_svc__toc-list {
		display: none;
		gap: 12px;
	}

	.zp_svc__toc-list.is-open {
		display: flex;
	}

	.zp_svc__toc-link {
		font-size: 18px;
		line-height: 28px;
		padding: 8px 16px;
	}

	.zp_svc__content {
		padding-top: 24px;
		gap: 48px;
	}

	.zp_svc__hero {
		padding-top: 20px;
		padding-bottom: 40px;
		gap: 20px;
	}

	.zp_svc__hero-media {
		height: auto;
		aspect-ratio: 4 / 3;
		max-height: 480px;
	}

	.zp_svc__equip {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.zp_svc {
		--zp-svc-pad: 20px;
	}

	.zp_svc__crumbs {
		min-height: 48px;
	}

	.zp_svc__title {
		font-size: 28px;
		line-height: 36px;
	}

	.zp_svc__subtitle,
	.zp_svc__text {
		font-size: 16px;
		line-height: 24px;
	}

	.zp_svc__text p,
	.zp_svc__text ul,
	.zp_svc__text ol {
		margin-bottom: 24px;
	}

	.zp_svc__lead {
		font-size: 20px;
		line-height: 30px;
	}

	.zp_svc__content {
		gap: 40px;
	}

	.zp_svc__section {
		gap: 12px;
	}

	.zp_svc__h2 {
		font-size: 24px;
		line-height: 32px;
	}

	.zp_svc__h3 {
		font-size: 22px;
		line-height: 30px;
		margin-top: 12px;
	}

	.zp_svc__arrow {
		width: 21px;
		height: 26px;
	}

	.zp_svc__expand-btn {
		gap: 16px;
		font-size: 20px;
		line-height: 28px;
	}

	.zp_svc__acc {
		gap: 20px;
	}

	.zp_svc__acc-btn {
		align-items: flex-start;
		font-size: 18px;
		line-height: 28px;
	}

	.zp_svc__acc-icon {
		height: 28px;
	}

	.zp_svc__acc-body {
		padding: 20px;
	}

	.zp_svc__equip-item {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.zp_svc__equip-text {
		gap: 12px;
	}

	.zp_svc__equip-media,
	.zp_svc__equip-item--large .zp_svc__equip-media {
		flex-basis: auto;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.zp_svc__cta-text {
		font-size: 20px;
		line-height: 28px;
	}

	.zp_svc__faq-item {
		padding: 12px;
	}

	.zp_svc__faq-btn {
		align-items: flex-start;
		gap: 12px;
		font-size: 20px;
		line-height: 30px;
	}

	.zp_svc__faq-toggle {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}

	.zp_svc__faq-panel {
		margin-top: 12px;
	}
}
