/*
Theme Name: Emoustaka
Theme URI: https://emoustaka.gr/
Author: Ελευθερία Μουστάκα
Description: Ελαφρύ, responsive θέμα για το emoustaka.gr, με την ίδια χρωματική παλέτα με το προηγούμενο θέμα (Enfold). Δεν χρειάζεται page builder ούτε πρόσθετα.
Version: 1.3.2
Requires at least: 4.9
Requires PHP: 7.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emoustaka
*/

/* ------------------------------------------------------------------
   Παλέτα (από το προηγούμενο Enfold)
------------------------------------------------------------------- */
:root {
	--green: #719430;
	--green-light: #8bba34;
	--green-dark: #507210;
	--teal: #8db5b8;
	--teal-hero: #95bdc0;
	--teal-dark: #617d82;
	--header-bg: #e5e5e5;
	--bg: #ffffff;
	--bg-soft: #f8f8f8;
	--border: #ebebeb;
	--text: #1f1f1f;
	--heading: #696969;
	--meta: #969696;
	--white: #fcfcfc;

	--font: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
	--radius: 6px;
	--container: 1180px;
	--narrow: 820px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------------
   Βάση
------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--green-light); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	color: var(--heading);
	font-weight: 600;
	line-height: 1.3;
	margin: 1.6em 0 .6em;
}
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, blockquote, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

blockquote {
	border-left: 3px solid var(--green);
	margin-left: 0;
	padding: .2em 0 .2em 1.2em;
	font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
hr.short-rule { width: 50px; border-top: 2px solid var(--green); margin: 1.8em 0; }

iframe { max-width: 100%; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--green); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.section { padding: clamp(36px, 6vw, 64px) 0; }

.section-title {
	margin-top: 0;
	padding-left: .7em;
	border-left: 4px solid var(--green);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.button,
input[type="submit"],
.search-form button {
	display: inline-block;
	background: var(--green);
	color: #fff;
	border: 1px solid var(--green-dark);
	border-radius: var(--radius);
	padding: .6em 1.3em;
	font: inherit;
	font-size: .95rem;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s;
}
.button:hover, .button:focus,
input[type="submit"]:hover,
.search-form button:hover {
	background: var(--green-light);
	color: #fff;
	text-decoration: none;
}
.button-light {
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--white);
	color: var(--teal-dark);
	border-color: #dadada;
}
.button-light:hover, .button-light:focus { background: #fff; color: var(--green); }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: .6em .8em;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	border-bottom: 1px solid #dadada;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 106px;
}

.site-logo { flex-shrink: 0; line-height: 0; padding: 8px 0; }
.site-logo img { max-height: 72px; width: auto; }

.text-logo {
	display: block;
	padding-left: 12px;
	border-left: 3px solid var(--green);
	color: #000;
	line-height: 1.3;
	text-decoration: none;
}
.text-logo:hover, .text-logo:focus { color: #000; text-decoration: none; }
.text-logo span { display: block; }
.text-logo-name {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: .01em;
	margin-bottom: 2px;
}
.text-logo:hover .text-logo-name { color: var(--green); }
.text-logo-line {
	font-size: .74rem;
	font-weight: 500;
	color: #444;
}
.text-logo-license {
	margin-top: 2px;
	font-size: .64rem;
	color: #666;
}

.site-nav { display: flex; align-items: center; gap: 12px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }

#primary-menu { display: flex; align-items: stretch; }
#primary-menu > li { position: relative; }
#primary-menu > li > a {
	display: flex;
	align-items: center;
	height: 106px;
	padding: 0 16px;
	color: #000;
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
#primary-menu > li > a:hover,
#primary-menu > li:focus-within > a { color: var(--green); }
#primary-menu > .current-menu-item > a,
#primary-menu > .current-menu-ancestor > a,
#primary-menu > .current_page_item > a {
	color: var(--green);
	border-bottom-color: var(--green);
}

.menu-item-has-children > a::after {
	content: "";
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 290px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-top: 3px solid var(--green);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
	padding: 6px 0 !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}
.sub-menu a {
	display: block;
	padding: 9px 18px;
	color: var(--text);
	font-size: .92rem;
	line-height: 1.4;
	text-decoration: none;
}
.sub-menu a:hover, .sub-menu a:focus { background: #fff; color: var(--green); }
.sub-menu .current-menu-item > a { color: var(--green); }

.header-search {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #dadada;
	border-radius: 999px;
	padding: 2px 4px 2px 14px;
}
.header-search input[type="search"] {
	width: 120px;
	border: 0;
	background: transparent;
	padding: 6px 0;
	font-size: .9rem;
	transition: width .2s;
}
.header-search input[type="search"]:focus { width: 180px; outline: none; }
.header-search:focus-within { border-color: var(--green); }
.header-search button {
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border: 0; border-radius: 50%;
	background: transparent;
	color: var(--meta);
	cursor: pointer;
}
.header-search button:hover { color: var(--green); }

.menu-toggle {
	display: none;
	width: 46px; height: 46px;
	border: 1px solid #cfcfcf;
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
	position: relative;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	position: absolute;
	left: 12px;
	width: 20px; height: 2px;
	background: #333;
	transition: transform .2s, opacity .2s;
}
.menu-toggle-bars { top: 21px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
	.header-inner { min-height: 72px; }
	.site-logo img { max-height: 58px; }
	.menu-toggle { display: block; flex-shrink: 0; }
	.text-logo { padding-left: 10px; }
	.text-logo-name { font-size: 1.1rem; }
	.text-logo-line { font-size: .66rem; }
	.text-logo-license { font-size: .58rem; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg-soft);
		border-bottom: 3px solid var(--green);
		box-shadow: 0 14px 28px rgba(0, 0, 0, .1);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
		padding: 8px var(--gutter) 20px;
	}
	.menu-open .site-nav { display: flex; }

	#primary-menu { flex-direction: column; }
	#primary-menu > li > a {
		height: auto;
		padding: 13px 4px;
		border-bottom: 1px solid var(--border);
		font-size: 1.05rem;
	}
	#primary-menu > .current-menu-item > a,
	#primary-menu > .current-menu-ancestor > a { border-bottom-color: var(--border); }
	.menu-item-has-children > a::after { display: none; }

	.sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		min-width: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 2px 0 8px 14px !important;
	}
	.sub-menu a { padding: 8px 4px; font-size: .98rem; }

	.header-search { margin-top: 16px; }
	.header-search input[type="search"],
	.header-search input[type="search"]:focus { width: 100%; }
}

/* ------------------------------------------------------------------
   Αρχική
------------------------------------------------------------------- */
.hero { background: var(--teal-hero); padding: clamp(36px, 6vw, 60px) 0; }
.hero-inner {
	display: grid;
	grid-template-columns: 2fr 3fr;
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
}
.hero-photo { margin: 0; justify-self: center; }
.hero-photo img {
	display: block;
	width: 220px;
	border: 6px solid #fff;
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}
.hero-quote { border: 0; padding: 0; margin: 0; color: var(--text); }
.hero-quote p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; }
.quote-original { font-weight: 600; }
.quote-translation { text-align: right; }
.quote-author { text-align: right; font-size: 1rem; }
.quote-author cite { font-style: italic; font-weight: 600; }
.quote-author cite::before { content: "— "; }

.latest-inner {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: start;
}
.latest-art { text-align: center; padding-top: 12px; }
.latest-art img { width: 300px; }
.latest-list { margin-bottom: 1.6em; }
.latest-item { padding: 1.2em 0; border-bottom: 1px solid var(--border); }
.latest-item:first-child { padding-top: .4em; }
.latest-title { margin: 0 0 .3em; font-size: 1.15rem; }
.latest-title a { color: var(--text); }
.latest-title a:hover { color: var(--green); }
.latest-item .card-excerpt p { margin: 0; }

.video { background: var(--bg-soft); border-top: 1px solid var(--border); }
.video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 1em; color: var(--meta); font-size: .92rem; }

@media (max-width: 760px) {
	.hero-inner, .latest-inner { grid-template-columns: 1fr; }
	.hero-quote { text-align: center; }
	.quote-translation, .quote-author { text-align: center; }
	.latest-art { display: none; }
}

/* ------------------------------------------------------------------
   Title bar
------------------------------------------------------------------- */
.page-header {
	background: var(--bg-soft);
	border-bottom: 1px solid var(--border);
	padding: 28px 0 22px;
}
.page-title { margin: 0 0 .2em; color: var(--heading); }
.page-header .post-meta { margin: .4em 0 0; }
.breadcrumb { font-size: .85rem; color: var(--meta); }
.breadcrumb a { color: var(--meta); }
.breadcrumb a:hover { color: var(--green); }
.single .breadcrumb { margin-bottom: .6em; }

/* ------------------------------------------------------------------
   Περιεχόμενο
------------------------------------------------------------------- */
.entry-content > :first-child { margin-top: 0; }
.entry-content img.alignleft, .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content img.alignright, .alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--meta); }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: .5em .7em; }

.entry-thumb { margin: 0 0 1.8em; }
.entry-thumb img { display: block; width: 100%; border-radius: var(--radius); }

.post-meta { font-size: .85rem; color: var(--meta); margin: 0 0 .6em; }
.post-meta a { color: var(--meta); }
.post-meta a:hover { color: var(--green); }
.post-meta .sep { margin: 0 .3em; }

.tag-list a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 3px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px !important;
	color: var(--heading);
}
.tag-list a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.entry-tags { margin-top: 2em; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 3em;
	padding-top: 1.5em;
	border-top: 1px solid var(--border);
	font-size: .95rem;
}
.post-nav a { display: block; color: var(--text); }
.post-nav a:hover { color: var(--green); text-decoration: none; }
.post-nav span { display: block; font-size: .8rem; color: var(--meta); letter-spacing: .04em; }
.post-nav-next { text-align: right; }
@media (max-width: 600px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }
}

/* Κάρτες */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 28px;
}
.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 750 / 320; background: var(--bg-soft); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-title { margin: 0 0 .35em; font-size: 1.12rem; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green); text-decoration: none; }
.card-excerpt { font-size: .95rem; color: #444; }
.card-excerpt p { margin: 0 0 .8em; }
.read-more { margin-top: auto; font-size: .9rem; font-weight: 600; }

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 44px;
}
.pagination .page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-align: center;
	color: var(--text);
	line-height: 1.3;
}
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pagination .current { background: var(--green); border-color: var(--green-dark); color: #fff; }
.pagination .dots { border: 0; }

.intro { margin-bottom: 2.5em; }
.search-again { margin-bottom: 2.5em; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ------------------------------------------------------------------
   Σελίδες
------------------------------------------------------------------- */
/* Βιογραφικό */
.bio { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; margin-bottom: .5em; }
.bio-photo { margin: 0; flex: 0 0 auto; }
.bio-photo img { display: block; width: 300px; border-radius: var(--radius); }
.bio-contact { flex: 1 1 280px; font-size: .98rem; }
.bio-contact p { margin-bottom: .7em; }
.bio-contact a { word-break: break-word; }

/* Υπηρεσίες */
.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 28px;
}
.service {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	padding: 26px 28px 14px;
}
.service h3 { margin-top: 0; }
.service ul { padding-left: 0; list-style: none; }
.service li { position: relative; padding-left: 1.4em; }
.service li::before {
	content: "";
	position: absolute;
	left: 0; top: .72em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--green);
}

/* Επικοινωνία */
.contact {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 32px;
	align-items: start;
}
.contact-map {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-soft);
}
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-details {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-top: 4px solid var(--green);
	border-radius: var(--radius);
	padding: 24px 26px 10px;
}
@media (max-width: 760px) {
	.contact { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer {
	background: var(--teal);
	color: var(--white);
	padding: 52px 0 36px;
	font-size: .93rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr minmax(260px, 1.3fr);
	gap: 32px;
}
.footer-title {
	margin: 0 0 1em;
	color: #fff;
	font-size: .85rem;
	letter-spacing: .08em;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .25);
	line-height: 1.45;
}
.site-footer .tag-list a {
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}
.site-footer .tag-list a:hover { background: #fff; color: var(--teal-dark); }
.site-footer .button-light { color: var(--teal-dark); }
.site-footer .button-light:hover { color: var(--green); text-decoration: none; }

.fb-embed { max-width: 500px; line-height: 0; }
.fb-embed iframe {
	display: block;
	max-width: 100%;
	border: 0;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-socket { background: #fff; border-top: 1px solid var(--border); font-size: .85rem; color: var(--meta); }
.socket-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.to-top {
	position: fixed;
	right: 18px; bottom: 18px;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s, background .15s;
	z-index: 90;
}
.to-top:hover, .to-top:focus { background: var(--green-light); color: #fff; }
.scrolled .to-top { opacity: 1; visibility: visible; }

/* Σχόλια */
.comments-area { margin-top: 3em; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1em 0; border-bottom: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

.clear { clear: both; }
.home-intro { padding-bottom: 0; }
