/*
 * Header, menu drawer, mobile action bar, footer, plain pages.
 * Widths: ≥1240px one header row (wordmark · menu · actions); 820-1239px the menu takes a second row (below 1240px
 * the one-row menu would get under ~470px and the Greek items would wrap to two lines);
 * <820px the menu is a drawer (html.js) or a scrolling row of links (html.no-js), and the action bar is fixed to the bottom.
 */

/* ---------- Header ---------- */
.pt-header {
	position: relative;
	background: var(--wine);
	border-bottom: 1px solid var(--line);
}

.pt-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand nav actions";
	align-items: center;
	column-gap: 40px;
	min-height: var(--header-h);
}

.pt-wordmark {
	grid-area: brand;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -.005em;
	color: var(--marble);
	text-decoration: none;
	white-space: nowrap;
}
.pt-wordmark__img { max-height: 48px; width: auto; }

/* Menu (desktop): a quiet row, the current page in lamp. */
.pt-nav { grid-area: nav; min-width: 0; }
.pt-nav__head, .pt-nav__call { display: none; }

.pt-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 26px;
}
.pt-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 17px;
	color: var(--marble-soft);
	text-decoration: none;
	white-space: nowrap;
}
.pt-menu a:hover { color: var(--marble); }
.pt-menu .current-menu-item > a,
.pt-menu .current_page_item > a,
.pt-menu a[aria-current="page"] { color: var(--lamp); }

.pt-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 22px;
}

.pt-lang { display: flex; align-items: center; }
.pt-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 6px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--mute);
	text-decoration: none;
}
.pt-lang a:hover { color: var(--marble); }
.pt-lang a[aria-current="true"] { color: var(--marble); text-decoration: underline; text-decoration-color: var(--marble-edge); text-underline-offset: .35em; }

.pt-header__call {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 17px;
	font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--lamp);
	text-decoration: none;
	white-space: nowrap;
}
.pt-header__call:hover { text-decoration: underline; text-decoration-color: currentColor; }

.pt-header__book { min-height: 44px; padding: 0 22px; font-size: 16px; }

.pt-header__menu {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px 0 10px;
	border: 0;
	background: none;
	color: var(--marble);
	font-size: 16px;
	font-weight: 500;
}

.pt-nav-backdrop { display: none; }

/* 820-1239px: the menu moves to its own row under the wordmark and the actions. */
@media (min-width: 820px) and (max-width: 1239px) {
	.pt-header__bar {
		grid-template-columns: auto 1fr;
		grid-template-areas: "brand actions" "nav nav";
		row-gap: 0;
		padding-top: 12px;
	}
	.pt-header__actions { justify-self: end; gap: 18px; }
	.pt-nav { border-top: 1px solid var(--line); padding: 4px 0 6px; }
	.pt-menu { column-gap: 26px; }
}

/* ---------- Under 820px ---------- */
@media (max-width: 819px) {
	.pt-header__bar {
		grid-template-columns: auto 1fr;
		grid-template-areas: "brand actions" "nav nav";
		column-gap: 12px;
	}
	.pt-wordmark { font-size: 23px; }
	.pt-header__actions { justify-self: end; gap: 4px; }
	/* The phone and «Κράτηση» are in the action bar at the bottom. */
	.pt-header__call, .pt-header__book { display: none; }
	.pt-lang a { min-width: 40px; }

	/* Without JavaScript: the menu is a row of links under the bar that scrolls sideways if it must. */
	.no-js .pt-nav { border-top: 1px solid var(--line); margin-inline: calc(-1 * var(--gutter)); }
	.no-js .pt-menu {
		flex-wrap: nowrap;
		overflow-x: auto;
		column-gap: 22px;
		padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.no-js .pt-menu a { font-size: 16px; }

	/* With JavaScript: a drawer from the right. */
	.js .pt-header__menu { display: inline-flex; }
	.js .pt-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
		background: var(--wine2);
		border-left: 1px solid var(--line);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .32s var(--ease), visibility 0s linear .32s;
	}
	.js .pt-nav.is-open {
		transform: none;
		visibility: visible;
		transition: transform .32s var(--ease), visibility 0s;
	}
	.js .pt-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: var(--header-h);
		margin-bottom: 12px;
		border-bottom: 1px solid var(--line);
	}
	.pt-nav__title { font-size: 16px; color: var(--mute); }
	.pt-nav__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		border: 0;
		background: none;
		color: var(--marble);
	}
	.js .pt-menu { flex-direction: column; align-items: stretch; }
	.js .pt-menu a {
		display: flex;
		min-height: 56px;
		font-family: var(--serif);
		font-weight: 300;
		font-size: 28px;
		line-height: 1.2;
		white-space: normal;
		color: var(--marble);
	}
	.js .pt-menu .current-menu-item > a,
	.js .pt-menu .current_page_item > a,
	.js .pt-menu a[aria-current="page"] { color: var(--lamp); }
	.js .pt-nav__call { display: block; margin-top: auto; padding-top: 28px; }
	.pt-nav__call a {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		min-height: 48px;
		font-size: 19px;
		font-weight: 500;
		font-variant-numeric: lining-nums tabular-nums;
		color: var(--lamp);
		text-decoration: none;
	}

	.js .pt-nav-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 50;
		background: var(--shade);
	}
	.pt-nav-open, .pt-nav-open body { overflow: hidden; }
}

/* ---------- Mobile action bar ---------- */
.pt-actionbar { display: none; }

@media (max-width: 819px) {
	/* Room at the bottom so the bar never hides the end of the footer. */
	body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
	/* Keyboard focus and #anchors scroll clear of the fixed bar. */
	html { scroll-padding-bottom: calc(var(--bar-h) + 16px); }

	.pt-actionbar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--wine2);
		border-top: 1px solid var(--line);
	}
	.pt-actionbar__list {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}
	.pt-actionbar__list li + li { border-left: 1px solid var(--line); }
	.pt-actionbar__link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: var(--bar-h);
		padding: 6px 4px;
		font-size: 15px;
		font-weight: 500;
		line-height: 1.1;
		color: var(--marble);
		text-decoration: none;
	}
	.pt-actionbar__link .pt-icon { width: 22px; height: 22px; }
	.pt-actionbar__link--book { background: var(--lamp); color: var(--wine); font-weight: 700; }
	.pt-actionbar__link:focus-visible { outline-offset: -4px; }
	.pt-actionbar__link--book:focus-visible { outline-color: var(--wine); }
}

/* ---------- Footer ---------- */
.pt-footer {
	margin-top: 96px;
	padding: 72px 0 32px;
	border-top: 1px solid var(--line);
	color: var(--mute);
	font-size: 17px;
}

.pt-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}

.pt-footer__brand .pt-wordmark { font-size: 30px; }
.pt-footer__about { margin-top: 14px; max-width: 38ch; line-height: 1.55; }

.pt-footer__heading {
	margin-bottom: 14px;
	font-family: var(--serif);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	color: var(--marble);
}

.pt-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--marble-soft);
	text-decoration: none;
}
.pt-footer__menu a:hover { color: var(--marble); text-decoration: underline; }

.pt-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	margin-top: 56px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.pt-footer__base > * { margin: 0; }
.pt-footer__legal { display: flex; flex-wrap: wrap; gap: 0 28px; }
.pt-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); }
.pt-footer__legal a:hover { color: var(--marble); }

@media (max-width: 819px) {
	.pt-footer { margin-top: 64px; padding-top: 56px; }
	.pt-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.pt-footer__base { margin-top: 40px; }
}

/* ---------- Contact list (footer, contact band, contact page) ---------- */
.pt-contact a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--marble);
	text-decoration: none;
}
.pt-contact .pt-icon { color: var(--mute); }
.pt-contact__label { min-width: 5.2em; color: var(--mute); }
.pt-contact__value { font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.pt-contact a:hover .pt-contact__value { text-decoration: underline; text-decoration-color: var(--marble-edge); text-underline-offset: .2em; }

/* ---------- Plain pages and 404 ---------- */
.pt-page { padding-block: 72px 24px; }
.pt-page__head { margin-bottom: 36px; }
.pt-page__title { max-width: 18ch; }
.pt-credits__list { list-style: none; padding: 0; }
.pt-credits__list li { padding-block: 14px; border-top: 1px solid var(--line); }
.pt-credits__list li:last-child { border-bottom: 1px solid var(--line); }
.pt-credits__list strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.pt-credits__meta { color: var(--mute); }
.pt-credits__meta a { color: var(--marble); }
.pt-404 .pt-lead { margin-top: 20px; }
.pt-404 .pt-actions { margin-top: 36px; }
.pt-404 > p:last-child { margin-top: 28px; }

@media (max-width: 599px) {
	.pt-page { padding-top: 48px; }
}
