/*
Theme Name:   Astra Child
Template:     astra
Description:  Child theme του Astra για το Olympia House.
Version:      1.0.0
Text Domain:  astra-child
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
	/* Παλέτα από τις φωτογραφίες του site:
	   πράσινο ελιάς (φύλλα) + απαλό καφέ ξύλου (έπιπλα μπαλκονιού) + ζεστά σκούρα. */
	--oh-color-primary: #5c6b43;          /* κουμπιά, links, hover */
	--oh-color-primary-dark: #47532f;     /* hover κουμπιών */
	--oh-color-primary-rgb: 92, 107, 67;  /* για διαφάνειες: rgba(var(--oh-color-primary-rgb), .1) */
	--oh-color-accent: #9c7a5b;           /* τιμές, αρίθμηση, υπογραμμίσεις, hover links */
	--oh-color-accent-dark: #7f6248;
	--oh-color-dark: #23271f;             /* τίτλοι */
	--oh-color-text: #45483f;             /* κείμενο */
	--oh-color-muted: #7d7f74;            /* δευτερεύον κείμενο, icons */
	--oh-color-cream: #f7f5f0;
	--oh-color-sage: #eef0e8;
	--oh-color-deep: #1d2a24;             /* σκούρα sections (Explore) */

	--oh-font-heading: "Gilda Display", Georgia, serif;
	--oh-font-body: "DM Sans", system-ui, sans-serif;

	/* Ίδιο με το .ast-container του Astra (1200 + 2×20) ώστε όλα να ευθυγραμμίζονται με το header. */
	--oh-container: 1200px;
	--oh-gutter: 20px;
	--oh-radius: 3px;
}

/* ==========================================================================
   Base typography (υπερισχύει της τυπογραφίας του Astra Customizer)
   ========================================================================== */

body,
button,
input,
select,
textarea {
	font-family: var(--oh-font-body);
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--oh-font-heading);
	font-weight: 400;
}

/* ==========================================================================
   Ενιαία γραμματοσειρά σε όλο το site
   Τίτλοι: Gilda Display · Κείμενα: DM Sans — και στις σελίδες του Elementor,
   που είχε Roboto / Roboto Slab στο Site Settings → Global Fonts.
   ========================================================================== */

body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Gilda Display";
	--e-global-typography-secondary-font-family: "Gilda Display";
	--e-global-typography-text-font-family: "DM Sans";
	--e-global-typography-accent-font-family: "DM Sans";
}

/* Τίτλοι: και όσοι έχουν δική τους γραμματοσειρά στο widget του Elementor */
.elementor :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) {
	font-family: var(--oh-font-heading) !important;
}

/* Κείμενα widgets Elementor (χωρίς να αγγίζουμε τα icon fonts) */
.elementor :is(
	.elementor-widget-text-editor,
	.elementor-widget-text-editor :is(p, li, a, strong, em, blockquote),
	.elementor-button,
	.elementor-button-text,
	.elementor-icon-list-text,
	.elementor-testimonial-content,
	.elementor-testimonial-name,
	.elementor-testimonial-job,
	.elementor-counter-title,
	.elementor-image-box-description,
	.elementor-icon-box-description,
	.elementor-field,
	.elementor-field-label,
	.elementor-form .elementor-button
) {
	font-family: var(--oh-font-body) !important;
}

/* ==========================================================================
   Ενιαία χρώματα σε όλο το site
   Astra και Elementor είχαν δικά τους (λευκά / κίτρινα / lime links, κίτρινα κουμπιά).
   Εδώ ευθυγραμμίζονται με την παλέτα του theme.
   ========================================================================== */

/* Astra: links (color-0) και hover (color-1) */
:root {
	--ast-global-color-0: var(--oh-color-primary);
	--ast-global-color-1: var(--oh-color-accent);
}

/* Elementor Global Colors (Site Settings) — body[...] ώστε να υπερισχύει του .elementor-kit-X */
body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--oh-color-primary);
	--e-global-color-secondary: var(--oh-color-dark);
	--e-global-color-text: var(--oh-color-text);
	--e-global-color-accent: var(--oh-color-accent);
}

/* Links σε σελίδες/widgets Elementor */
body[class*="elementor-kit-"] a {
	color: var(--oh-color-primary);
}

body[class*="elementor-kit-"] a:hover,
body[class*="elementor-kit-"] a:focus-visible {
	color: var(--oh-color-accent);
}

/* Κουμπιά Elementor (όσα δεν έχουν δικό τους χρώμα στο widget) */
body[class*="elementor-kit-"] .elementor-button {
	background-color: var(--oh-color-primary);
	color: #fff;
}

body[class*="elementor-kit-"] .elementor-button:hover,
body[class*="elementor-kit-"] .elementor-button:focus-visible {
	background-color: var(--oh-color-primary-dark);
	color: #fff;
}

/* Επιλογή κειμένου & focus */
::selection {
	background-color: rgba(var(--oh-color-primary-rgb), 0.2);
	color: var(--oh-color-dark);
}

/* ==========================================================================
   Elementor integration
   Τα containers που περιέχουν section-shortcode ([oh_hero], [oh_rooms] …)
   γίνονται full width χωρίς padding/gap — το spacing το ορίζει το section.
   ========================================================================== */

.elementor .e-con.e-con:has(.elementor-shortcode > :is(.oh-section, .oh-hero, .oh-cta, .oh-page-hero-wrap, .oh-location)) {
	--width: 100%;
	--content-width: 100%;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-bottom: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
}

/* Το widget παίρνει όλο το πλάτος και ύψος "auto".
   Και με το .elementor-widget-container που βάζουν οι νεότερες εκδόσεις του Elementor.
   Χωρίς αυτό, στο κινητό (flex-wrap) το ύψος του widget μετριόταν μικρότερο από το section
   και το section "έβγαινε" πάνω στο επόμενο (π.χ. το Explore πάνω στο FAQ). */
.elementor-widget-shortcode:has(> .elementor-shortcode > :is(.oh-section, .oh-hero, .oh-cta, .oh-page-hero-wrap, .oh-location)),
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > :is(.oh-section, .oh-hero, .oh-cta, .oh-page-hero-wrap, .oh-location)) {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > :is(.oh-section, .oh-hero, .oh-cta, .oh-page-hero-wrap, .oh-location)) > .elementor-widget-container {
	height: auto;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

.oh-container {
	width: 100%;
	max-width: calc(var(--oh-container) + var(--oh-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--oh-gutter);
}

/* Section: κοινό κάθετο spacing */
.oh-section {
	padding-block: clamp(72px, 9vw, 120px);
}

/* Τίτλος section (h2) */
.oh-section .oh-heading {
	margin: 0;
	padding: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--oh-color-dark);
}

/* Εισαγωγικό κείμενο section */
.oh-section .oh-lead {
	max-width: 42ch;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--oh-color-text);
}

/* Icon μέσα σε κύκλο (apartments features, places κ.λπ.) */
.oh-icon-circle {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(var(--oh-color-primary-rgb), 0.25);
	border-radius: 50%;
	background-color: rgba(var(--oh-color-primary-rgb), 0.08);
	color: var(--oh-color-primary);
}

/* Link "VIEW ALL ROOMS" με υπογράμμιση */
.oh-link-underline.oh-link-underline,
.oh-link-underline.oh-link-underline:visited {
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--oh-color-dark);
	transition: color 0.2s ease;
}

a.oh-link-underline.oh-link-underline:hover {
	color: var(--oh-color-primary);
}

/* Link "Learn more →" */
.oh-link-arrow.oh-link-arrow,
.oh-link-arrow.oh-link-arrow:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--oh-color-dark);
	text-decoration: none;
}

a.oh-link-arrow.oh-link-arrow:hover {
	color: var(--oh-color-primary);
}

.oh-link-arrow .oh-icon {
	transition: transform 0.25s ease;
}

.oh-link-arrow:hover .oh-icon {
	transform: translateX(3px);
}

.oh-eyebrow {
	margin: 0;
	font-family: var(--oh-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Eyebrow με γραμμή αριστερά: "—— OUR ROOMS" */
.oh-eyebrow--line {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: var(--oh-color-dark);
}

.oh-eyebrow--line::before {
	content: "";
	width: 36px;
	height: 1px;
	background-color: currentColor;
	opacity: 0.6;
}

.oh-eyebrow__sep {
	display: inline-block;
	margin-inline: 0.7em;
	opacity: 0.8;
}

.oh-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--oh-radius);
	font-family: var(--oh-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.oh-btn .oh-icon {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.oh-btn:hover .oh-icon {
	transform: translateX(3px);
}

/* Διπλή κλάση ώστε να υπερισχύει του ".elementor-kit-X a" για το χρώμα links. */
.oh-btn.oh-btn--primary,
.oh-btn.oh-btn--primary:visited {
	background-color: var(--oh-color-primary);
	color: #fff;
}

.oh-btn.oh-btn--primary:hover,
.oh-btn.oh-btn--primary:focus-visible {
	background-color: var(--oh-color-primary-dark);
	color: #fff;
}

.oh-btn.oh-btn--outline,
.oh-btn.oh-btn--outline:visited {
	border-color: rgba(31, 42, 38, 0.35);
	background-color: transparent;
	color: var(--oh-color-dark);
}

.oh-btn.oh-btn--outline:hover,
.oh-btn.oh-btn--outline:focus-visible {
	border-color: var(--oh-color-primary);
	background-color: var(--oh-color-primary);
	color: #fff;
}

.oh-btn.oh-btn--light,
.oh-btn.oh-btn--light:visited {
	background-color: #fff;
	color: #000;
}

.oh-btn.oh-btn--light:hover,
.oh-btn.oh-btn--light:focus-visible {
	background-color: var(--oh-color-cream);
	color: #000;
}

/* ==========================================================================
   Page hero  (templates/parts/page-hero.php)
   Εικόνα + τίτλος στο κέντρο, κάτω από transparent header.
   ========================================================================== */

.oh-page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(420px, 62vh, 600px);
	overflow: hidden;
	background-color: var(--oh-color-dark);
	color: #fff;
	text-align: center;
	isolation: isolate;
}

.oh-page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.oh-page-hero .oh-page-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.oh-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(22, 30, 24, 0.35) 0%, rgba(22, 30, 24, 0.55) 100%);
}

.oh-page-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Πάνω κενό = ύψος του floating header + αέρας */
	padding-top: calc(var(--oh-header-offset, 128px) + clamp(24px, 4vw, 64px));
	padding-bottom: clamp(64px, 8vw, 104px);
}

.oh-page-hero .oh-page-hero__eyebrow,
.oh-page-hero .oh-page-hero__eyebrow:visited {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease;
}

.oh-page-hero a.oh-page-hero__eyebrow:hover {
	color: #fff;
}

.oh-page-hero .oh-page-hero__title {
	max-width: 18ch;
	margin: 16px 0 0;
	padding: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1.1;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.oh-page-hero .oh-page-hero__eyebrow + .oh-page-hero__title {
	margin-top: 16px;
}

.oh-page-hero .oh-page-hero__title:first-child {
	margin-top: 0;
}

/* Breadcrumbs (κάτω από τον τίτλο του hero): Home › Apartments › First Floor */
.oh-breadcrumbs {
	font-family: var(--oh-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.oh-breadcrumbs .oh-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oh-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	margin: 0;
}

.oh-breadcrumbs .oh-breadcrumbs__link,
.oh-breadcrumbs .oh-breadcrumbs__link:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: inherit;
	opacity: 0.78;
	transition: opacity 0.2s ease;
}

/* Υπογράμμιση που "μεγαλώνει" στο hover */
.oh-breadcrumbs__link span {
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.3s ease;
}

.oh-breadcrumbs .oh-breadcrumbs__link:hover,
.oh-breadcrumbs .oh-breadcrumbs__link:focus-visible {
	color: inherit;
	opacity: 1;
}

.oh-breadcrumbs__link:hover span,
.oh-breadcrumbs__link:focus-visible span {
	background-size: 100% 1px;
}

.oh-breadcrumbs__link .oh-icon {
	flex: none;
	margin-top: -2px;
}

.oh-breadcrumbs__sep {
	display: inline-flex;
	margin: 0 12px;
	opacity: 0.5;
}

.oh-breadcrumbs__current {
	padding-bottom: 2px;
	overflow-wrap: anywhere;
}

/* Μέσα στο hero: λευκά, με λεπτή γραμμή από πάνω που χωρίζει από τον τίτλο */
.oh-page-hero .oh-page-hero__breadcrumbs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: 100%;
	margin-top: 26px;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.oh-page-hero .oh-page-hero__breadcrumbs::before {
	content: "";
	width: 48px;
	height: 1px;
	background: rgba(255, 255, 255, 0.55);
}

.oh-page-hero .oh-page-hero__breadcrumbs .oh-breadcrumbs__list {
	justify-content: center;
}

.oh-page-hero--bottom .oh-page-hero__breadcrumbs {
	align-items: flex-start;
}

.oh-page-hero--bottom .oh-page-hero__breadcrumbs .oh-breadcrumbs__list {
	justify-content: flex-start;
}

/* Hero χωρίς εικόνα (σκούρο φόντο): ίδιο στυλ */
.oh-page-hero.has-no-image .oh-page-hero__breadcrumbs::before {
	background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
	.oh-breadcrumbs {
		font-size: 0.6875rem;
		letter-spacing: 0.1em;
	}

	.oh-breadcrumbs__sep {
		margin: 0 8px;
	}

	.oh-page-hero .oh-page-hero__breadcrumbs {
		margin-top: 20px;
		gap: 14px;
	}
}

@media (max-width: 767px) {
	.oh-page-hero {
		min-height: 380px;
	}

	.oh-page-hero__inner {
		padding-top: 120px;
		padding-bottom: 56px;
	}
}

/* Wrapper για δικά μας templates: το .ast-container του Astra είναι flex,
   χωρίς αυτό το περιεχόμενο "μαζεύει" και κολλάει αριστερά. */
.oh-page {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

/* Εισαγωγικό κείμενο στις σελίδες λίστας (το κείμενο της σελίδας στο Pages).
   Με τίτλο (H2) στην αρχή: τίτλος αριστερά, κείμενο δεξιά — όπως το section "Welcome" της αρχικής.
   Χωρίς τίτλο: μία στήλη στο κέντρο. */
.oh-page .oh-archive-intro {
	max-width: 760px;
	margin: 0 auto clamp(56px, 7vw, 96px);
	font-family: var(--oh-font-body);
	font-size: 0.9375rem;
	line-height: 1.8;
	color: var(--oh-color-text);
}

.oh-page .oh-archive-intro:has(> :is(h2, h3):first-child) {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: clamp(40px, 6vw, 96px);
	align-items: start;
	max-width: none;
	padding-bottom: clamp(56px, 7vw, 96px);
	border-bottom: 1px solid rgba(var(--oh-color-primary-rgb), 0.15);
}

.oh-page .oh-archive-intro > :is(h2, h3):first-child {
	grid-column: 1;
	grid-row: 1 / span 20;
	margin: 0;
	padding: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--oh-color-dark);
}

/* Λεπτή γραμμή πάνω από τον τίτλο (όπως τα eyebrows) */
.oh-page .oh-archive-intro > :is(h2, h3):first-child::before {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-bottom: 28px;
	background-color: var(--oh-color-accent);
}

.oh-page .oh-archive-intro > :not(:is(h2, h3):first-child) {
	grid-column: 2;
	max-width: 62ch;
}

.oh-page .oh-archive-intro p {
	margin: 0 0 1.25em;
}

/* Πρώτη παράγραφος λίγο πιο έντονη */
.oh-page .oh-archive-intro > :is(h2, h3):first-child + p {
	font-size: 1.0625rem;
	color: var(--oh-color-dark);
}

.oh-page .oh-archive-intro > :last-child {
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.oh-page .oh-archive-intro:has(> :is(h2, h3):first-child) {
		grid-template-columns: 1fr;
	}

	.oh-page .oh-archive-intro > :is(h2, h3):first-child {
		grid-row: auto;
		margin-bottom: 28px;
	}

	.oh-page .oh-archive-intro > :not(:is(h2, h3):first-child) {
		grid-column: 1;
	}
}

/* "Read more" links στο τέλος των κειμένων (apartments / experiences): κουμπάκια αντί για λίστα */
.entry-content ul.oh-related-links,
ul.oh-related-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: clamp(32px, 4vw, 48px) 0 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(var(--oh-color-primary-rgb), 0.15);
	list-style: none;
}

ul.oh-related-links::before {
	content: "Read more";
	flex-basis: 100%;
	margin-bottom: 6px;
	font-family: var(--oh-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--oh-color-muted);
}

html[lang^="it"] ul.oh-related-links::before {
	content: "Per saperne di più";
}

ul.oh-related-links > li {
	margin: 0;
	padding: 0;
}

ul.oh-related-links > li::marker {
	content: none;
}

.entry-content ul.oh-related-links a,
ul.oh-related-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid rgba(var(--oh-color-primary-rgb), 0.3);
	font-family: var(--oh-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--oh-color-dark);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

ul.oh-related-links a::after {
	content: "→";
	transition: transform 0.2s ease;
}

.entry-content ul.oh-related-links a:hover,
ul.oh-related-links a:hover {
	border-color: var(--oh-color-primary);
	background-color: var(--oh-color-primary);
	color: #fff;
}

ul.oh-related-links a:hover::after {
	transform: translateX(3px);
}

/* ==========================================================================
   Χωρίς υπογράμμιση στα links — σε όλο το site
   (τα global styles του WordPress / Elementor βάζουν underline σε κάθε <a>).
   Οι διακοσμητικές γραμμές του theme είναι borders / backgrounds και δεν επηρεάζονται.
   ========================================================================== */

/* !important: το Astra βάζει underline στα links του περιεχομένου με ισχυρό selector
   (.ast-single-post .entry-content a) — εμείς δεν χρησιμοποιούμε ποτέ text-decoration για στυλ. */
:root body a,
:root body a:visited,
:root body a:hover,
:root body a:focus,
:root body a:active,
:root body a :is(span, strong, em) {
	text-decoration: none !important;
}

/* ==========================================================================
   Scroll to Top (του Astra)
   Χρώματα: Customize → Global → Scroll to Top (κανονικό + hover).
   Εδώ μόνο σχήμα / μέγεθος / σκιά, όπως τα κουμπιά του site.
   ========================================================================== */

#ast-scroll-top.ast-scroll-top-icon {
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0;
	line-height: 46px;
	box-shadow: 0 10px 28px rgba(29, 42, 36, 0.22);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#ast-scroll-top.ast-scroll-top-icon:hover,
#ast-scroll-top.ast-scroll-top-icon:focus-visible {
	transform: translateY(-2px);
}

#ast-scroll-top .ast-icon.icon-arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
