/*
Theme Name: Kapou Mesa Mas
Theme URI: https://kapoumesamas.com
Author: Kapou Mesa Mas
Description: Θέμα blocks για την ψυχολόγο Δέσποινα Τολανούδη. Όλο το περιεχόμενο (κεφαλίδα, αρχική σελίδα, υποσέλιδο) επεξεργάζεται από τον Επεξεργαστή ιστότοπου.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: kapoumesamas
*/

/* Layout concept: soft lavender sections alternating with white, serif type, arch-shaped hero photo,
   one dark Spotify-style podcast band and one dark contact band. Colours/fonts come from theme.json. */
:root {
  color-scheme: light;
  --color-brand: var(--wp--preset--color--brand, #20074a);
  --color-accent: var(--wp--preset--color--accent, #7430ea);
  --color-light: var(--wp--preset--color--light, #e4e1e9);
  --color-neutral: var(--wp--preset--color--neutral, #f3f1f5);
  --color-neutral-dark: color-mix(in srgb, var(--color-light) 100%, black 4%);
  --color-text: var(--wp--preset--color--text, #333);
  --body-font: var(--wp--preset--font-family--body, 'Noto Serif', Georgia, serif);
  --heading-font: var(--wp--preset--font-family--heading, 'Literata', Georgia, serif);
  --h1: clamp(2.4rem, 1.5rem + 2.6vw, 3.8rem);
  --h2: calc(1rem + (var(--h1) - 1rem) * 0.8);
  --h3: calc(1rem + (var(--h1) - 1rem) * 0.6);
  --h5: calc(1rem + (var(--h1) - 1rem) * 0.32);
  --max: 90rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; }
h1 { font-size: var(--h1); } h2 { font-size: var(--h2); } h3 { font-size: var(--h3); } h5 { font-size: var(--h5); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.section { padding: 6rem 1.5rem; }
.section-inner { max-width: var(--max); margin-left: auto; margin-right: auto; }
.bg-neutral { background: var(--color-neutral); }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: .75rem; }

/* ========== Buttons (core Button block) ========== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-buttons:not(:first-child) { margin-top: 2rem; }
.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; position: relative; overflow: hidden; transition: filter .2s, background .2s, color .2s, transform .25s var(--ease), box-shadow .25s; }
.wp-element-button:hover, .wp-block-button__link:hover { filter: brightness(115%); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(32, 7, 74, .18); text-decoration: none; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::after { animation: shine .8s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--color-brand); border: 1px solid var(--color-brand); padding: .7rem 1.5rem; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--color-brand); color: #fff; filter: none; }
@media (max-width: 640px) {
  .site-main .wp-block-buttons > .wp-block-button { width: 100%; }
  .site-main .wp-block-buttons .wp-block-button__link { width: 100%; padding-top: 1rem; padding-bottom: 1rem; }
}

/* ========== Header (template part "Κεφαλίδα") ========== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; background: var(--color-neutral); border-bottom: 1px solid var(--color-neutral-dark); transition: box-shadow .3s, transform .3s var(--ease); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(32, 7, 74, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; min-height: 6rem; padding: 0 3%; gap: clamp(.75rem, 1.5vw, 1.5rem); transition: min-height .3s; }
.logo { display: flex; align-items: center; flex: none; flex-wrap: nowrap; gap: clamp(.4rem, .8vw, .6rem); white-space: nowrap; }
.logo .wp-block-site-logo img { width: clamp(44px, 2.4rem + 1.4vw, 64px); height: auto; }
.logo .wp-block-site-title { margin: 0; font-family: var(--heading-font); font-size: clamp(1.15rem, .55rem + .9vw, 1.5rem); font-weight: 400; line-height: 1.2; }
.logo .wp-block-site-title a { color: var(--color-brand); text-decoration: none; }
@media (max-width: 400px) { .logo .wp-block-site-title { font-size: 1.1rem; } .logo .wp-block-site-logo img { width: 40px; } }

/* Navigation block */
.main-nav { flex: 1; justify-content: center; }
.main-nav .wp-block-navigation__container { gap: clamp(1rem, 3.2vw - 1.4rem, 2.2rem); }
.main-nav .wp-block-navigation-item__content { color: var(--color-brand); font-size: clamp(.92rem, .7rem + .3vw, 1rem); white-space: nowrap; text-decoration: none; position: relative; transition: color .2s; }
.main-nav .wp-block-navigation-item__content:hover { color: var(--color-accent); text-decoration: none; }
@media (min-width: 1101px) {
  .main-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .main-nav .wp-block-navigation-item__content:hover::after, .main-nav .wp-block-navigation-item__content.is-active::after { transform: scaleX(1); }
  .main-nav .wp-block-navigation-item__content.is-active { color: var(--color-accent); }
  .site-header.is-scrolled .header-inner { min-height: 4.5rem; }
}
/* Collapse to the menu button below 1100px (core default is 600px) */
.main-nav .wp-block-navigation__responsive-container-open { color: var(--color-brand); }
.main-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
@media (min-width: 600px) and (max-width: 1100px) {
  .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 1100px) { .main-nav { flex: 0 0 auto; order: 3; } }
/* Open menu overlay */
.main-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--color-neutral) !important; color: var(--color-brand) !important; padding: 2rem 1.5rem; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: center !important; justify-content: center; gap: 1.6rem; padding-bottom: 10vh; }
.main-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: center !important; gap: 1.6rem; }
.main-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--heading-font); font-size: 1.6rem; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.nav-extras { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1rem; }
.nav-extras .wp-block-buttons, .nav-extras .wp-block-button { width: min(320px, 80vw); }
.nav-extras .wp-block-button__link { width: 100%; }

/* Contact icons (Social Icons block) + booking button */
.header-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(.75rem, 1.2vw, 1.5rem); }
.header-actions .wp-block-buttons:not(:first-child) { margin-top: 0; }
@media (max-width: 1359px) { .header-actions .wp-block-buttons { display: none; } }
@media (max-width: 1100px) { .header-actions { display: none; } .nav-extras .wp-block-buttons { display: flex; } }
.wp-block-social-links.contact-icons { display: flex; flex-wrap: nowrap; gap: clamp(.3rem, .5vw, .5rem); margin: 0; padding: 0; }
.wp-block-social-links.contact-icons .wp-social-link { background: transparent !important; color: var(--color-brand) !important; border: 1px solid var(--color-brand); border-radius: 50%; width: 40px; height: 40px; margin: 0; transition: background .2s, color .2s, transform .25s var(--ease); }
.wp-block-social-links.contact-icons .wp-social-link a { width: 100%; height: 100%; padding: 0; display: flex; align-items: center; justify-content: center; color: inherit !important; }
.wp-block-social-links.contact-icons .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.wp-block-social-links.contact-icons .wp-social-link:hover { background: var(--color-brand) !important; color: #fff !important; transform: translateY(-3px); }
.nav-extras .wp-block-social-links.contact-icons { gap: .8rem; }
.nav-extras .wp-block-social-links.contact-icons .wp-social-link { width: 48px; height: 48px; }

/* Narrow screens: header slides away when scrolling down, returns on any upward scroll */
@media (max-width: 1100px) {
  .site-header:has(.is-menu-open) { transform: none !important; }
  .site-header.header-hidden { transform: translateY(calc(-100% - 4px)); box-shadow: none; }
}
/* Short screens (phones in landscape): slimmer header */
@media (max-height: 560px) {
  .header-inner { min-height: 4rem; }
  .logo .wp-block-site-logo img { width: 40px; }
}

/* ========== Hero ========== */
.hero { padding-top: 2rem; padding-bottom: 0; overflow: hidden; overflow: clip; }
.wp-block-columns.hero-grid { display: grid !important; grid-template-columns: 1fr 1fr; align-items: center !important; gap: 0 clamp(2rem, 5vw, 6rem); margin-bottom: 0; }
.wp-block-columns.hero-grid > .wp-block-column, .wp-block-columns.about-grid > .wp-block-column { flex-basis: auto !important; min-width: 0; margin: 0; }
.hero-grid p { font-size: 1.1rem; }
.hero-tag { font-family: var(--heading-font); font-style: italic; font-size: 1.4rem !important; color: var(--color-accent); }
.hero-grid > .wp-block-column:first-child > * { animation: rise .9s var(--ease) both; }
.hero-grid > .wp-block-column:first-child > :nth-child(2) { animation-delay: .12s; }
.hero-grid > .wp-block-column:first-child > :nth-child(3) { animation-delay: .24s; }
.hero-grid > .wp-block-column:first-child > :nth-child(4) { animation-delay: .36s; }
.hero-grid > .wp-block-column:first-child > :nth-child(5) { animation-delay: .48s; }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; animation: morph 14s ease-in-out infinite; pointer-events: none; }
.hero-visual::before { width: 55%; top: 6%; left: -12%; background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.hero-visual::after { width: 40%; bottom: 4%; right: -8%; background: color-mix(in srgb, var(--color-brand) 18%, transparent); animation-duration: 18s; animation-direction: reverse; }
.wp-block-image.arch { margin: 0; animation: rise 1.1s .15s var(--ease) both; }
.wp-block-image.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 47% 50%; border-top-left-radius: 999px; border-top-right-radius: 999px; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .5rem; margin: 0 !important; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--color-brand); font-size: .9rem !important; white-space: nowrap; box-shadow: 0 12px 30px rgba(32, 7, 74, .15); animation: float 6s ease-in-out infinite; }
.chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-accent); }
.chip-1 { top: 22%; left: -6%; }
.chip-2 { top: 52%; right: 2%; animation-delay: -2s; }
.chip-3 { bottom: 10%; left: 6%; animation-delay: -4s; }
@media (max-width: 900px) {
  .wp-block-columns.hero-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .chip { font-size: .8rem !important; padding: .45rem .85rem; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .hero-visual::before { left: -4%; } .hero-visual::after { right: 0; }
}

/* ========== Services ========== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 2.5vw, 3rem); margin-top: 4rem; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--color-neutral); border-radius: 12px; overflow: hidden; text-align: center; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.card .wp-block-image { margin: 0; overflow: hidden; }
.card .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s var(--ease); }
.card-body { padding: 2rem 2.2rem 2.4rem; }
.card h3 { font-size: clamp(1.45rem, 1.2rem + .6vw, var(--h5)); margin-bottom: .8rem; }
.card p { margin: 0; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(32, 7, 74, .12); }
.card:hover .wp-block-image img { transform: scale(1.06); }

/* ========== About ========== */
.about { position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 45%), radial-gradient(circle at 90% 85%, color-mix(in srgb, var(--color-brand) 10%, transparent), transparent 50%); pointer-events: none; }
.wp-block-columns.about-grid { position: relative; display: grid !important; grid-template-columns: 1fr 1.1fr; align-items: center !important; gap: 0 clamp(2rem, 5vw, 7rem); margin-bottom: 0; }
.wp-block-image.about-img { margin: 0; max-width: 600px; transition: transform .6s var(--ease); }
.wp-block-image.about-img img { width: 100%; background: #fff; border-top-right-radius: 140px; padding: 3rem; }
.wp-block-image.about-img:hover { transform: rotate(-1.5deg) scale(1.02); }
@media (max-width: 767px) {
  .wp-block-columns.about-grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .about-grid > .wp-block-column:first-child { order: 2; }
}

/* ========== Education & career ========== */
.cv-grid { display: grid; grid-template-columns: 1fr; column-gap: clamp(2rem, 4vw, 5rem); row-gap: 4rem; margin-top: 5rem; text-align: center; }
@media (min-width: 640px) { .cv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cv-grid { grid-template-columns: repeat(3, 1fr); } }
.cv-icons { display: flex !important; justify-content: center; gap: .8rem; margin-bottom: 1.4rem; }
.cv-icons .wp-block-image { margin: 0; }
.cv-icons img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--color-neutral-dark); transition: transform .4s var(--ease); }
.cv-grid h3 { font-size: var(--h5); margin-bottom: .8rem; }
.cv-grid > *:hover .cv-icons img { transform: translateY(-4px) rotate(-4deg); }

/* ========== Footer (template part "Υποσέλιδο") ========== */
.site-footer { background: linear-gradient(rgba(32, 7, 74, .86), rgba(32, 7, 74, .9)), url('assets/images/office-bg.webp') center 40% / cover no-repeat; color: #fff; text-align: center; }
@media (hover: hover) and (pointer: fine) { .site-footer { background-attachment: fixed; } }
.footer-inner { max-width: 64rem; margin: 0 auto; padding: 7rem 1.5rem 2rem; }
.footer-quote-main { font-family: var(--heading-font); font-size: var(--h2); line-height: 1.1; margin: 0 auto 1rem; max-width: 46rem; text-wrap: balance; }
.footer-quote-sub { font-size: 1.2rem; font-style: italic; opacity: .85; margin: 0 auto 4rem; }
.site-footer h2 { color: #fff; font-size: var(--h3); margin-bottom: 2rem; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.contact-card { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.8rem 1.25rem; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); transition: background .25s, transform .3s var(--ease), border-color .25s; }
.contact-card:hover, .contact-card:focus-within { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); transform: translateY(-4px); }
.contact-card::before { content: ""; width: 26px; height: 26px; margin-bottom: .4rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.contact-card--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.contact-card--email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.contact-card--address { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.contact-card p { margin: 0; }
.contact-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.contact-value { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-value a { color: #fff; text-decoration: none; }
.contact-value a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
@media (min-width: 640px) and (max-width: 900px) {
  .contact-card { padding: 1.4rem .6rem; }
  .contact-value { font-size: .85rem; overflow-wrap: normal; }
}
.footer-small { font-size: .85rem; color: rgba(255, 255, 255, .7); margin: 4rem 0 0; }
.footer-small a { color: #fff; text-decoration: underline; }

/* Privacy notice (first visit; shown by script) */
.privacy-notice { display: none; position: fixed; left: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 1000; max-width: 26rem; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: #fff; color: var(--color-text); text-align: left; border: 1px solid var(--color-neutral-dark); box-shadow: 0 18px 45px rgba(32, 7, 74, .18); font-size: .9rem; line-height: 1.5; }
.privacy-notice.is-visible { display: flex; animation: rise .6s .8s var(--ease) both; }
.privacy-notice p { margin: 0; flex: 1; min-width: 0; }
.privacy-notice a { text-decoration: underline; }
.privacy-notice .wp-block-buttons { margin: 0; flex: none; }
.privacy-notice .wp-block-button__link { padding: .6rem 1.1rem; }
.privacy-notice.is-leaving { opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
@media (max-width: 640px) {
  .privacy-notice { left: 1rem; right: 1rem; max-width: none; }
  body.has-notice .to-top { bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ========== Pages and posts ========== */
.entry { max-width: 46rem; margin: 0 auto; }
.entry h1, .entry .wp-block-post-title { font-size: calc(var(--h1) * .8); }
.entry h2 { font-size: var(--h3); margin-top: 2.5rem; }
.entry h3 { font-size: calc(var(--h5) * .85); margin-top: 1.8rem; }
.entry ul { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 0 0 1rem; }
.entry img { border-radius: 12px; }
.entry .wp-block-post-content a { text-decoration: underline; }
.post-list { max-width: 46rem; margin: 0 auto; }
.post-list .wp-block-post-template { list-style: none; padding: 0; display: grid; gap: 3rem; }
.post-list .wp-block-post-date { font-size: .85rem; color: #666; }
.not-found { text-align: center; }

/* ========== Motion ========== */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: translate(14px, -16px) rotate(14deg); }
}
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: linear-gradient(90deg, var(--color-accent), var(--color-brand)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.admin-bar .scroll-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .scroll-progress { top: 46px; } }
.to-top { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 900; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-brand); color: #fff; box-shadow: 0 10px 25px rgba(32, 7, 74, .25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--color-accent); text-decoration: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Scroll reveal (only added by script to elements below the fold) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .site-footer { background-attachment: scroll; }
  .reveal { opacity: 1; transform: none; }
}

/* ========== Podcast block (Spotify-style) ========== */
.podcast-spotify {
  --sp-bg: #121212; --sp-elev: #1f1f1f; --sp-text: #ffffff; --sp-sub: #b3b3b3; --sp-green: #1ed760; --sp-green-hover: #3be477;
  background: linear-gradient(180deg, #5b2d94 0, #331a57 260px, var(--sp-bg) 560px);
  color: var(--sp-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.sp-shell { max-width: 72rem; margin: 0 auto; }
.podcast-spotify h2, .podcast-spotify h3, .podcast-spotify h4 { font-family: inherit; color: var(--sp-text); }
.sp-hero { display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 2rem); }
.sp-cover { width: clamp(150px, 22vw, 232px); height: auto; aspect-ratio: 1; object-fit: cover; flex: none; border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.sp-hero-text { min-width: 0; }
.sp-type { margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; }
.sp-title { margin: 0 0 .9rem; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.sp-author { margin: 0; font-size: .95rem; color: var(--sp-sub); }
.sp-author strong { color: var(--sp-text); font-weight: 700; }
.sp-actions { display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0 2.5rem; }
.sp-play-big { width: 56px; height: 56px; flex: none; border: 0; border-radius: 50%; background: var(--sp-green); color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .15s, background .15s; }
.sp-play-big:hover { transform: scale(1.06); background: var(--sp-green-hover); }
.sp-play-big svg { width: 26px; height: 26px; fill: currentColor; }
.sp-follow { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; color: var(--sp-text); font-size: .9rem; font-weight: 700; transition: border-color .15s, transform .15s; }
.sp-follow:hover { border-color: #fff; transform: scale(1.04); text-decoration: none; color: var(--sp-text); }
.sp-follow svg { width: 22px; height: 22px; fill: var(--sp-green); }
.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .sp-body { grid-template-columns: 1fr; } }
.sp-list-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: -.01em; }
.sp-episodes { list-style: none; margin: 0; padding: 0; }
.sp-episode { display: flex; gap: 1.25rem; padding: 1rem; margin: 0 -1rem; border-radius: 8px; border-top: 1px solid rgba(255, 255, 255, .08); transition: background .15s; }
.sp-episode:first-child { border-top-color: transparent; }
.sp-episode:hover, .sp-episode.is-current { background: var(--sp-elev); border-top-color: transparent; }
.sp-episode:hover + .sp-episode, .sp-episode.is-current + .sp-episode { border-top-color: transparent; }
.sp-ep-thumb { width: 112px; height: 112px; flex: none; border-radius: 8px; object-fit: cover; }
.sp-ep-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.sp-ep-title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.sp-episode.is-current .sp-ep-title { color: var(--sp-green); }
.sp-badge { display: inline-block; vertical-align: middle; margin-left: .35rem; padding: .1rem .45rem; border-radius: 4px; background: var(--sp-green); color: #000; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sp-ep-desc { margin: 0; color: var(--sp-sub); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-ep-meta { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; color: var(--sp-sub); font-size: .85rem; }
.sp-ep-play { width: 36px; height: 36px; flex: none; margin-right: .4rem; border: 0; border-radius: 50%; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; }
.sp-ep-play:hover { transform: scale(1.08); }
.sp-episode.is-current .sp-ep-play { background: var(--sp-green); }
.sp-ep-play svg { width: 16px; height: 16px; fill: currentColor; }
.sp-ep-progress { flex: 1; max-width: 10rem; height: 4px; margin-left: .5rem; border-radius: 2px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; visibility: hidden; }
.sp-ep-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--sp-green); }
.sp-episode.is-current .sp-ep-progress { visibility: visible; }
@media (max-width: 560px) {
  .sp-hero { flex-direction: column; align-items: flex-start; }
  .sp-ep-thumb { width: 64px; height: 64px; }
  .sp-episode { gap: .9rem; }
}
.sp-about { background: var(--sp-elev); border-radius: 8px; padding: 1.5rem; }
.sp-about-text { margin: 0 0 1rem; color: var(--sp-sub); font-size: .95rem; line-height: 1.6; }
.sp-more { color: var(--sp-text); font-weight: 700; font-size: .9rem; }
.sp-more:hover { color: var(--sp-green); }
.sp-play-big svg + svg, .sp-ep-play svg + svg, .sp-player-toggle svg + svg { display: none; }
.podcast-spotify.is-playing .sp-play-big svg:first-child, .sp-episode.is-playing .sp-ep-play svg:first-child, .sp-player.is-playing .sp-player-toggle svg:first-child { display: none; }
.podcast-spotify.is-playing .sp-play-big svg + svg, .sp-episode.is-playing .sp-ep-play svg + svg, .sp-player.is-playing .sp-player-toggle svg + svg { display: block; }
.sp-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 1rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: #000; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); animation: rise .35s var(--ease) both; }
.sp-player-thumb { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.sp-player-info { min-width: 0; }
.sp-player-title { margin: 0; font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-player-meta { margin: 0; font-size: .75rem; color: #b3b3b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-player-main { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.sp-player-buttons { display: flex; align-items: center; gap: 1.1rem; }
.sp-skip, .sp-player-close { background: none; border: 0; color: #b3b3b3; padding: .25rem; cursor: pointer; display: inline-flex; }
.sp-skip:hover, .sp-player-close:hover { color: #fff; }
.sp-skip svg, .sp-player-close svg { width: 24px; height: 24px; fill: currentColor; }
.sp-skip text { fill: currentColor; }
.sp-player-toggle { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
.sp-player-toggle:hover { transform: scale(1.06); }
.sp-player-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.sp-player-progress { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 38rem; }
.sp-time { font-size: .7rem; color: #b3b3b3; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
.sp-seek { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; cursor: pointer; background: linear-gradient(to right, #fff var(--p, 0%), #4d4d4d var(--p, 0%)); }
.sp-seek:hover { background: linear-gradient(to right, #1ed760 var(--p, 0%), #4d4d4d var(--p, 0%)); }
.sp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; opacity: 0; transition: opacity .15s; }
.sp-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; opacity: 0; }
.sp-seek:hover::-webkit-slider-thumb, .sp-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.sp-seek:hover::-moz-range-thumb, .sp-seek:focus-visible::-moz-range-thumb { opacity: 1; }
body.has-player { padding-bottom: 84px; }
body.has-player .to-top, body.has-player .privacy-notice { bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .sp-player { grid-template-columns: auto minmax(0, 1fr) auto auto; row-gap: .4rem; }
  .sp-player-thumb { width: 44px; height: 44px; }
  .sp-player-main { display: contents; }
  .sp-player-buttons { grid-column: 3; gap: .5rem; }
  .sp-player-buttons .sp-skip { display: none; }
  .sp-player-close { grid-column: 4; }
  .sp-player-progress { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  body.has-player { padding-bottom: 104px; }
}

/* Core layout rules (body .is-layout-flex) are more specific than plain classes: reinforce visibility rules. */
@media (max-width: 1100px) { .site-header .header-actions.wp-block-group { display: none !important; } }
.wp-block-group.privacy-notice { display: none !important; }
.wp-block-group.privacy-notice.is-visible { display: flex !important; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { justify-content: center !important; min-height: calc(100% - 3rem); }
.main-nav .is-menu-open .wp-block-navigation__container { order: 1; }
.main-nav .is-menu-open .nav-extras { order: 2; margin-top: 1.5rem; }
@media (max-width: 900px) { .wp-block-columns.hero-grid > .wp-block-column.hero-visual { margin-left: auto; margin-right: auto; } }
.privacy-notice .wp-block-button__link { text-decoration: none; }

/* ========== Greek typography: hyphenation ========== */
/* Real Greek syllable hyphenation (the page is lang="el"); only words of 8+ letters, at least 4 letters kept on each side. */
h1, h2, h3, h4, p, li, blockquote { overflow-wrap: break-word; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 8 4 4; }
/* Narrow columns (cards, CV items, reviews, podcast) always hyphenate long words. */
.card h3, .card p, .cv-grid h3, .cv-grid p, .sp-ep-desc, .sp-about-text, .kmm-review__text, .privacy-notice p { -webkit-hyphens: auto; hyphens: auto; }
/* Phones and small tablets: body text and smaller headings hyphenate too. */
@media (max-width: 767px) {
  p, li, h3, h4, .wp-block-post-content h2 { -webkit-hyphens: auto; hyphens: auto; }
}
/* Never hyphenate big display headings, labels, buttons, names, emails or phone numbers. */
h1, .sp-title, .footer-quote-main, .eyebrow, .contact-label, .contact-value, .wp-element-button, .wp-block-button__link,
.wp-block-site-title, .wp-block-navigation-item__content, .chip, .kmm-review__name, .sp-ep-title { -webkit-hyphens: manual; hyphens: manual; }
.contact-value { word-break: normal; }
