/* =========================================================================
   Theraphysio v3 — ύφος: σκούρο header, teal/mint, Sofia Sans, outline κάρτες
   ========================================================================= */

html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--mint); }
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part + * { margin-block-start: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.tp-header { background: var(--wp--preset--color--header); }
.tp-header .wp-block-site-title a { color: var(--wp--preset--color--mint); }
.tp-header .wp-block-site-tagline { color: #cfd8d6; font-size: .78rem; margin: 0; letter-spacing: .02em; }
.tp-header .wp-block-navigation { color: var(--wp--preset--color--light); }
.tp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--mint); text-decoration: none; }
.tp-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--header) !important; color: var(--wp--preset--color--light) !important;
	border: 0 !important; min-width: 300px !important; padding: .4rem 0 !important; text-transform: none;
}
.tp-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: .6rem 1.2rem !important; }
.tp-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--primary); color: #fff; }
.tp-phone-btn .wp-block-button__link { letter-spacing: 2px; white-space: nowrap; }
.wp-block-navigation__responsive-container.is-menu-open { text-transform: uppercase; }

/* ---------- Τυπογραφία ---------- */
.tp-eyebrow {
	text-transform: uppercase; letter-spacing: 2px !important;
	font-size: .85rem !important; font-weight: 700; color: var(--wp--preset--color--primary);
	margin-bottom: .25rem !important;
}
.tp-eyebrow.is-dark { color: var(--wp--preset--color--header); }
.tp-display { font-size: clamp(2.2rem, 4.2vw, 3.5rem) !important; line-height: 1.15 !important; font-weight: 700 !important; }

/* ---------- Hero ---------- */
.tp-hero { position: relative; }
.tp-hero .wp-block-cover__inner-container { width: 100%; }
.tp-hero h1 { color: var(--wp--preset--color--contrast); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 34ch; }
.tp-hero .tp-eyebrow { color: var(--wp--preset--color--header); }

/* Teal κουτιά εμπιστοσύνης πάνω στο hero */
.tp-trust { margin-top: -110px !important; position: relative; z-index: 2; }
.tp-trust-box {
	background: var(--wp--preset--color--primary); color: #fff; border-radius: 10px;
	padding: 2rem 1.5rem !important; text-align: center; height: 100%;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.tp-trust-box img { filter: brightness(0) invert(1); width: 56px; height: 56px; margin: 0 auto .75rem; display: block; }
.tp-trust-box p { margin: 0; font-size: 1.15rem; font-weight: 500; }
@media (max-width: 781px) { .tp-trust { margin-top: -60px !important; } }

/* ---------- Εικόνες με στρογγυλεμένες γωνίες ---------- */
.tp-photo img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-photo.is-tall img { aspect-ratio: 4 / 5; }

/* Όραμα / Αποστολή */
.tp-feature { display: flex; gap: .9rem; align-items: flex-start; }
.tp-feature img { width: 44px; height: 44px; flex: 0 0 44px; }
.tp-feature h3 { font-size: 1.3rem; font-weight: 500; margin: 0 0 .25rem; }
.tp-feature p { margin: 0; font-size: .95rem; }

/* Λίστα με βελάκια (Γιατί εμάς) */
.tp-checklist { list-style: none; padding-left: 0; }
.tp-checklist li { position: relative; padding: .35rem 0 .35rem 1.9rem; font-weight: 600; color: var(--wp--preset--color--contrast); }
.tp-checklist li::before {
	content: ""; position: absolute; left: 0; top: .62rem; width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Κάρτες υπηρεσιών (outline με εικονίδιο) ---------- */
.tp-subpages { display: grid; gap: 1.75rem; }
.tp-subpages--outline { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.tp-subpages--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.tp-subpages--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.tp-sub-outline {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem;
	border: 2px solid var(--wp--preset--color--header); border-radius: 10px;
	padding: 2.75rem 2rem 2.5rem; color: var(--wp--preset--color--body-text); text-decoration: none !important;
	transition: background .25s ease, transform .25s ease;
}
.tp-sub-outline:hover { background: rgba(255,255,255,.28); transform: translateY(-3px); }
.tp-sub-outline .tp-sub-icon { width: 76px; height: 76px; margin-bottom: .5rem; }
.tp-sub-outline .tp-sub-title { font-weight: 500; font-size: 1.4rem; color: var(--wp--preset--color--contrast); margin: 0; }
.tp-sub-outline .tp-sub-excerpt { margin: 0; font-size: .95rem; max-width: 40ch; }

.tp-sub-card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--wp--preset--shadow--soft); transition: transform .25s ease; }
.tp-sub-card:hover { transform: translateY(-3px); }
.tp-sub-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wp--preset--color--surface); }
.tp-subpages--people .tp-sub-media { aspect-ratio: 4 / 5; }
.tp-sub-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-sub-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.tp-sub-card .tp-sub-title { margin: 0; font-size: 1.3rem; font-weight: 600; }
.tp-sub-card .tp-sub-title a { color: var(--wp--preset--color--contrast); }
.tp-sub-excerpt { margin: 0; font-size: .95rem; }
.tp-subpages--people .tp-sub-excerpt { color: var(--wp--preset--color--primary); font-weight: 600; }
.tp-sub-more { margin-top: auto; padding-top: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; }

/* Λίστα συνδέσμων (sidebar / footer) */
.tp-subpages--links { gap: 0; }
.tp-sub-link { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; color: inherit; text-decoration: none !important; }
.tp-sub-link span[aria-hidden] { order: -1; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; font-size: .6rem; line-height: 1; flex: 0 0 16px; }
.tp-sub-link:hover { text-decoration: underline !important; }

/* ---------- Σελίδα υπηρεσίας ---------- */
.tp-crumbs { font-size: .85rem; color: #6b6b6b; display: flex; gap: .6rem; flex-wrap: wrap; }
.tp-crumbs a { color: inherit; }
.tp-service-aside { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.tp-aside-cta { border-radius: 10px; overflow: hidden; }
.tp-aside-cta .wp-block-cover__inner-container { text-align: center; }
.tp-aside-list { background: var(--wp--preset--color--primary); color: #fff; border-radius: 10px; padding: 1.6rem 1.6rem 1.2rem !important; }
.tp-aside-list h3 { color: #fff; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .75rem; margin: 0 0 .5rem; }
.tp-aside-list .tp-sub-link { color: #fff; font-size: .95rem; }
.tp-service-body h2 { font-size: 1.6rem; margin-top: 2rem; }
.tp-service-body ul { columns: 2; column-gap: 2rem; padding-left: 1.1rem; }
@media (max-width: 600px) { .tp-service-body ul { columns: 1; } }
@media (max-width: 781px) { .tp-service-aside { position: static; } }

/* ---------- Βιογραφικό ---------- */
.tp-bio-content h2 { font-size: 1.4rem; margin-top: 2rem; color: var(--wp--preset--color--primary); }

/* ---------- Footer ---------- */
.tp-footer { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--light); }
.tp-footer h3 { color: #fff; font-size: 1.15rem; font-weight: 500; margin-bottom: .75rem; }
.tp-footer a { color: var(--wp--preset--color--light); }
.tp-footer .tp-sub-link { font-size: .92rem; padding: .3rem 0; }
.tp-footer .wp-block-site-title a { color: #fff; }
.tp-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.tp-contact-item svg { flex: 0 0 26px; margin-top: 2px; }
.tp-contact-item strong { display: block; font-weight: 600; font-size: 1.05rem; color: #fff; }
.tp-contact-item span, .tp-contact-item a { font-size: .9rem; }
.tp-footer-bar { background: var(--wp--preset--color--footer-bar); color: var(--wp--preset--color--body-text); font-size: .85rem; }
.tp-footer-bar a { color: var(--wp--preset--color--body-text); }

/* ---------- Details / FAQ ---------- */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--surface); padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--wp--preset--color--contrast); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* ---------- Χάρτης ---------- */
.tp-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 10px; display: block; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--contrast); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; max-width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .85rem 1rem;
	border: 1px solid #bdbdbd; border-radius: 5px; background: #fff; font: inherit; color: inherit;
}
.wpcf7 textarea { min-height: 130px; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 0; border-color: transparent; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: .9rem; display: flex; gap: .5rem; }
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 5px; cursor: pointer;
	padding: 1rem 1.8rem; font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .9rem;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.tp-call-fallback { font-size: 1.25rem; }

/* ---------- Mobile μπάρα Κλήση / Ραντεβού ---------- */
.tp-mobile-bar { display: none; }
@media (max-width: 781px) {
	.tp-mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 99; left: 0; right: 0; bottom: 0;
		padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem;
		background: var(--wp--preset--color--header);
	}
	.tp-mobile-bar a {
		display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem;
		border-radius: 5px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem;
	}
	.tp-mb-call { background: var(--wp--preset--color--light); color: var(--wp--preset--color--header); }
	.tp-mb-book { background: var(--wp--preset--color--primary); color: #fff; }
	body { padding-bottom: 76px; }
	.tp-header .tp-phone-btn { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tp-sub-outline, .tp-sub-card { transition: none; }
}
.tp-service-aside .wp-block-buttons { display: grid; gap: .75rem; }
.tp-service-aside .wp-block-button, .tp-service-aside .wp-block-button__width-100 { width: 100% !important; }
@media (max-width: 781px) { .tp-hero { min-height: 540px !important; padding-bottom: 110px !important; } }

/* =========================================================================
   Κίνηση (ενεργοποιείται μόνο αν τρέξει το motion.js → html.tp-motion)
   ========================================================================= */
.tp-motion [data-tp-reveal] {
	opacity: 0;
	transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
	transition-delay: var(--tp-delay, 0ms);
	will-change: opacity, transform;
}
.tp-motion [data-tp-reveal="up"]    { transform: translate3d(0, 40px, 0); }
.tp-motion [data-tp-reveal="left"]  { transform: translate3d(-60px, 0, 0); }
.tp-motion [data-tp-reveal="right"] { transform: translate3d(60px, 0, 0); }
.tp-motion [data-tp-reveal="zoom"]  { transform: scale(.92); }
.tp-motion [data-tp-reveal].is-in   { opacity: 1; transform: none; }
@media (max-width: 781px) {
	.tp-motion [data-tp-reveal="left"], .tp-motion [data-tp-reveal="right"] { transform: translate3d(0, 30px, 0); }
}

/* Hero: αργό zoom της φωτογραφίας (Ken Burns) */
@keyframes tp-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.tp-hero .wp-block-cover__image-background { animation: tp-kenburns 9s ease-out both; }

/* Header compact στο scroll */
.tp-header { transition: padding .3s ease, box-shadow .3s ease; }
.tp-header.is-scrolled { padding-top: .55rem !important; padding-bottom: .55rem !important; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Hover εφέ */
.wp-element-button, .wp-block-button__link { transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(51,135,136,.3); }
.tp-sub-outline .tp-sub-icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.tp-sub-outline:hover .tp-sub-icon { transform: translateY(-6px) scale(1.08); }
.tp-sub-outline:hover { border-color: var(--wp--preset--color--primary); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.tp-trust-box { transition: transform .3s ease; }
.tp-trust-box:hover { transform: translateY(-5px); }
.tp-photo { overflow: hidden; border-radius: 10px; }
.tp-photo img { transition: transform 1.2s ease; }
.tp-photo:hover img { transform: scale(1.04); }
.tp-sub-link span[aria-hidden] { transition: transform .25s ease; }
.tp-sub-link:hover span[aria-hidden] { transform: translateX(3px); }

/* Τηλέφωνο στο header: απαλός παλμός για προσοχή */
@keyframes tp-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(51,135,136,.55); } 70% { box-shadow: 0 0 0 12px rgba(51,135,136,0); } }
.tp-phone-btn .wp-block-button__link { animation: tp-pulse 2.6s ease-out 1.5s 3; }
.tp-mb-book { animation: tp-pulse 2.6s ease-out 2s 2; }

@media (prefers-reduced-motion: reduce) {
	.tp-hero .wp-block-cover__image-background, .tp-phone-btn .wp-block-button__link, .tp-mb-book { animation: none; }
	.wp-block-button__link:hover, .tp-trust-box:hover, .tp-photo:hover img { transform: none; }
}
