/*
Theme Name:   Artekton (Kadence Child)
Theme URI:    https://kyrimakis.gr/
Description:  Child theme for the Artekton Construction website.
Author:       Dimitris
Template:     kadence
Version:      1.0.0
Text Domain:  artekton-child
*/

/* ---------------------------------------------------------------
   Brand tokens (mirror these in Kadence Global Palette)
   --------------------------------------------------------------- */
:root {
	--art-red:        #B3261E;
	--art-red-dark:   #8E2B1F;
	--art-charcoal:   #1D1C1A;
	--art-stone-grey: #5E574F;
	--art-ochre:      #C9BBA4;
	--art-border:     #E2DACB;
	--art-limestone:  #F3EFE7;
	--art-white:      #FFFFFF;
}

/* ---------------------------------------------------------------
   Mobile call button (output by functions.php)
   Shown only on narrow screens, fixed bottom-right.
   --------------------------------------------------------------- */
.art-call-btn {
	display: none;
}

@media (max-width: 768px) {
	.art-call-btn {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 999;
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 52px;
		padding: 0 20px;
		border-radius: 999px;
		background: var(--art-red);
		color: var(--art-white);
		font-weight: 700;
		font-size: 16px;
		text-decoration: none;
		box-shadow: 0 4px 14px rgba(29, 28, 26, 0.3);
	}

	.art-call-btn:hover,
	.art-call-btn:focus {
		background: var(--art-red-dark);
		color: var(--art-white);
	}

	/* Keep the call button clear of Kadence's scroll-to-top button */
	#kt-scroll-up {
		bottom: 84px !important;
	}
}
/* Top bar */
.art-topbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	font-size: 14px;
}
.art-topbar a,
.site-top-header-wrap a {
	color: var(--art-limestone);
	text-decoration: none;
}
.art-topbar a:hover,
.site-top-header-wrap a:hover {
	color: var(--art-white);
	text-decoration: underline;
}

/* Hide the top bar on phones: the floating call button covers it */
@media (max-width: 768px) {
	.site-top-header-wrap { display: none; }
}

/* Top bar: links without underline */
.site-top-header-wrap .header-html a {
	text-decoration: none;
}

/* Top bar: language switcher */
.site-top-header-wrap .header-navigation a,
.site-top-header-wrap .lang-item a {
	color: var(--art-limestone);
	font-size: 14px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.site-top-header-wrap .header-navigation a:hover,
.site-top-header-wrap .lang-item a:hover {
	color: var(--art-white);
	text-decoration: underline;
}

/* Current language: white and bold */
.site-top-header-wrap .current-lang a {
	color: var(--art-white);
	font-weight: 600;
}
/* Contact details in the mobile drawer */
.art-drawer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 16px;
	font-size: 16px;
}
.art-drawer-contact a {
	color: var(--art-charcoal);
	text-decoration: none;
}

/* Service cards: lift on hover */
.art-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	text-decoration: none;
}
.art-card:hover,
.art-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(29, 28, 26, 0.12);
	border-color: var(--art-ochre);
}
.art-card img {
	transition: transform 0.4s ease;
}
.art-card:hover img {
	transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
	.art-card,
	.art-card img {
		transition: none;
	}
	.art-card:hover,
	.art-card:hover img {
		transform: none;
	}
}
/* Whole card clickable via the title link */
.art-card {
	position: relative;
}
.art-card .art-card-link a {
	color: inherit;
	text-decoration: none;
}
.art-card .art-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.art-card:focus-within {
	outline: 2px solid var(--art-red);
	outline-offset: 2px;
}
/* ---------------------------------------------------------------
   Projects: homepage cards ([artekton_projects])
   --------------------------------------------------------------- */
.art-projects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
}
.art-project {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.art-project__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: var(--art-ochre);
}
.art-project__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.art-project:hover .art-project__img img {
	transform: scale(1.04);
}
.art-project__meta {
	margin: 0;
	font-size: 14px;
	color: var(--art-stone-grey);
}
.art-project__title {
	margin: 6px 0 12px;
	font-size: 22px;
	line-height: 1.25;
}
.art-project__title a {
	color: var(--art-charcoal);
	text-decoration: none;
}
/* Whole card clickable through the title link */
.art-project__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.art-project:hover .art-project__title a {
	color: var(--art-red);
}
.art-project:focus-within {
	outline: 2px solid var(--art-red);
	outline-offset: 4px;
	border-radius: 6px;
}
.art-project__tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.art-project__tags li {
	margin: 0;
	font-size: 13px;
	color: var(--art-charcoal);
	background: var(--art-limestone);
	border: 1px solid var(--art-border);
	padding: 4px 10px;
	border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.art-project__img img { transition: none; }
	.art-project:hover .art-project__img img { transform: none; }
}

/* ---------------------------------------------------------------
   Projects: single project page
   --------------------------------------------------------------- */
.art-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px 24px;
	margin: 0 0 32px;
	padding: 20px 24px;
	background: var(--art-limestone);
	border: 1px solid var(--art-border);
	border-radius: 6px;
}
.art-facts dt {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--art-stone-grey);
}
.art-facts dd {
	margin: 4px 0 0;
	font-weight: 600;
	color: var(--art-charcoal);
}
.art-project-note {
	margin-top: 40px;
	padding-left: 0;
}
.art-project-note h2 {
	font-size: 24px;
	margin-bottom: 8px;
}
.art-project__tags--single {
	margin-top: 32px;
}
