/*
Theme Name: Karras Case
Author: Sotirios Boutris - RDC
Author URI: https://www.rdc.gr
Description: Custom Wordpress theme for Karras Case
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karrascase
Template: hello-elementor
*/

/* ==========================================================================
   Karras Case — πιστή αναπαραγωγή του karrascase.com.gr (Bootstrap 2 + format.css)
   Desktop (>=980px): σταθερό πλάτος 940px, όπως το πρωτότυπο.
   Tablet / κινητό (<980px): ίδια εμφάνιση σε μία στήλη, μενού που ανοίγει.
   ========================================================================== */

:root {
	--kc-red: #b61f2b;
	--kc-text: #555;
	--kc-menu-bg: #f5f5f5;
	--kc-width: 940px;
}

/* ---------- Βάση (bootstrap.css body, a, h1, p) ---------- */
html {
	background: #6f9bd0;
}

body.kc-site {
	margin: 0;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 13px;
	line-height: 20px;
	color: var(--kc-text);
	background: transparent;
	min-height: 100%;
}

/* Φόντο σε όλη την οθόνη, τεντωμένο όπως το #bg του πρωτοτύπου */
body.kc-site::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url("assets/img/bg-back.png") 0 0 / 100% 100% no-repeat;
}

.kc-site a {
	color: var(--kc-red);
	text-decoration: none;
}

.kc-site a:hover,
.kc-site a:focus {
	color: var(--kc-text);
}

.kc-site span {
	color: var(--kc-text);
}

.kc-site p {
	margin: 0 0 10px;
}

.kc-site strong,
.kc-site b {
	font-weight: bold;
}

.kc-site h1,
.kc-site .elementor-widget-heading h1.elementor-heading-title {
	margin: 0 0 15px;
	font-family: inherit;
	font-size: 22px;
	font-weight: normal;
	line-height: 20px;
	color: var(--kc-red);
	text-rendering: optimizelegibility;
}

.kc-site img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border: 0;
}

/* Τα Elementor containers του layout (κλάση kc-box) έχουν padding/gap 0 από τα settings τους·
   οι διαστάσεις και τα κενά ορίζονται παρακάτω. */

/* ---------- Header: λογότυπα + σημαίες (.row.top) ---------- */
.kc-site .kc-header {
	width: var(--kc-width);
	max-width: none;
	margin: 0 auto;
	flex-direction: column;
}

.kc-site .kc-top {
	position: relative;
	height: 88px;
	margin-top: 10px;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.kc-site .kc-top__logo {
	width: auto;
	line-height: 0;
}

.kc-logo {
	display: inline-block;
	cursor: pointer;
	line-height: 0;
}

.kc-logo__img {
	display: block;
	width: auto;
	height: 88px;
}

.kc-site .kc-top__flags {
	position: absolute;
	top: 0;
	right: 0;
	width: auto;
}

.kc-flags {
	overflow: hidden;
}

.kc-flags__link {
	float: right;
	margin: 5px 5px 0;
	line-height: 0;
}

.kc-flags__img {
	display: block;
	width: 22px;
	height: 16px;
}

.kc-site .kc-top__case {
	position: absolute;
	top: 36px;
	right: 0;
	width: 140px;
	line-height: 0;
}

.kc-site .kc-top__case img {
	display: block;
	width: 140px;
	height: 52px;
}

/* ---------- Slider κεφαλίδας (.slider + supersized) ---------- */
.kc-site .kc-top__slider {
	width: 100%;
}

.kc-slider {
	position: relative;
	box-sizing: content-box;
	width: 100%;
	height: 350px;
	margin: 10px 0;
	border: 4px solid var(--kc-red);
	border-top-right-radius: 8px;
	border-bottom-left-radius: 8px;
	z-index: 0;
	user-select: none;
}

.kc-slider__stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.kc-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
	z-index: 1;
}

.kc-slider__slide.is-prev {
	visibility: visible;
	opacity: 1;
	z-index: 2;
	transition: none;
}

.kc-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 3;
	transition: opacity 0.7s ease, visibility 0s linear 0s;
}

.kc-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.kc-slider__prev,
.kc-slider__next {
	position: absolute;
	top: 156px;
	z-index: 5;
	width: 40px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: url("assets/img/back_dull.png") 0 0 no-repeat;
	cursor: pointer;
	font-size: 0;
	box-shadow: none;
}

.kc-slider__prev {
	left: 10px;
}

.kc-slider__next {
	right: 10px;
	background-image: url("assets/img/forward_dull.png");
}

.kc-slider__prev:hover,
.kc-slider__prev:focus,
.kc-slider__next:hover,
.kc-slider__next:focus {
	background-color: transparent;
	outline: none;
}

.kc-slider__prev:focus-visible,
.kc-slider__next:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.kc-slider__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 4;
	box-sizing: content-box;
	width: 98%;
	height: 35px;
	padding: 0 1%;
	background: url("assets/img/nav-bg.png") repeat-x;
	overflow: hidden;
}

.kc-slider__caption {
	margin: 8px 110px 5px 10px;
	color: #fff;
	font-size: 13px;
	line-height: 14px;
	text-align: justify;
}

/* ---------- Κυρίως περιοχή (.row-fluid.main) ---------- */
.kc-site .kc-main {
	position: relative;
	left: 5px;
	box-sizing: content-box;
	width: var(--kc-width);
	max-width: none;
	min-height: 520px;
	margin: 0 auto;
	padding: 10px 5px;
	background-color: #fff;
	border-top: 4px solid var(--kc-red);
	border-bottom: 4px solid var(--kc-red);
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.kc-site .kc-main__side {
	flex: 0 0 220px;
	width: 220px;
}

.kc-site .kc-main__content {
	flex: 0 0 700px;
	box-sizing: border-box;
	width: 700px;
	margin-left: 20px;
	padding-right: 5px;
}

.kc-site .kc-main__content .elementor-widget-theme-post-content,
.kc-site .kc-main__content .elementor-widget-theme-post-content > .elementor-widget-container {
	width: 100%;
}

.kc-site .kc-content {
	flex-direction: column;
}

.kc-site .kc-content > .elementor-widget {
	width: 100%;
}

.kc-site .kc-content .elementor-widget-text-editor {
	color: var(--kc-text);
	font-size: 13px;
	line-height: 20px;
}

/* Κάθετο μενού (.nav-left) */
.kc-menu__toggle {
	display: none;
}

.kc-site .nav-left {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kc-site .nav-left li {
	padding: 5px;
	margin: 0 0 4px;
	background-color: var(--kc-menu-bg);
	border-bottom: 1px solid var(--kc-red);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;
}

.kc-site .nav-left li > a {
	display: block;
	color: var(--kc-text);
	text-decoration: none;
}

.kc-site .nav-left li > a:hover,
.kc-site .nav-left li > a:focus {
	color: var(--kc-red);
}

.kc-site .nav-left .active > a {
	color: var(--kc-red);
	font-weight: bold;
}

.kc-site .nav-left ul {
	list-style: none;
	margin: 5px 0;
	padding: 0;
}

.kc-site .nav-left ul li {
	margin: 0;
	padding-left: 20px;
	border-bottom: 1px dotted #ddd;
	background: none;
	box-shadow: none;
}

/* ---------- Ανταλλακτικά (.parts) ---------- */
.kc-site .kc-parts {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	row-gap: 20px;
	text-align: center;
}

.kc-site .kc-part {
	flex: 0 0 280px;
	box-sizing: border-box;
	width: 280px;
	padding: 0 15px;
	flex-direction: column;
	align-items: center;
}

.kc-site .kc-part > .elementor-widget {
	width: 100%;
}

.kc-site .kc-part .elementor-widget-image {
	line-height: 0;
	text-align: center;
}

.kc-site .kc-part .elementor-widget-image a {
	display: inline-block;
}

.kc-site .kc-part .elementor-widget-image img {
	box-sizing: content-box;
	width: 250px;
	height: 160px;
	max-width: 100%;
	padding: 4px;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kc-site .kc-part .elementor-widget-image img:hover {
	border: 1px solid #6e6e6e;
}

.kc-site .kc-part .elementor-widget-text-editor {
	line-height: 20px;
	text-align: center;
}

.kc-site .kc-part .elementor-widget-text-editor p {
	margin: 0;
}

/* ---------- Επικοινωνία ---------- */
.kc-site .kc-contact {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
}

/* Όπως ο <table width="50%"> του πρωτοτύπου: 50%, αλλά μεγαλώνει όσο ζητά το περιεχόμενο */
.kc-site .kc-contact__form {
	display: table;
	flex: 0 0 auto;
	width: 50%;
	margin-right: 20px;
}

.kc-site .kc-contact__map {
	flex: 0 0 300px;
	width: 300px;
	margin-top: 10px;
	line-height: 0;
}

.kc-site .kc-contact__map iframe {
	display: block;
	width: 300px;
	height: 300px;
	border: 0;
}

/* Η φόρμα στήνεται σαν τον πίνακα του πρωτοτύπου (στήλη labels με auto πλάτος) */
.kc-form {
	display: table;
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
}

.kc-form__row {
	display: table-row;
}

.kc-form__label,
.kc-form__field {
	display: table-cell;
	padding: 2px;
	vertical-align: middle;
}

.kc-form__row--top > .kc-form__label {
	vertical-align: top;
}

.kc-form__label {
	margin: 0;
	font-weight: normal;
	color: var(--kc-text);
}

.kc-form__field .wpcf7-form-control-wrap {
	display: inline;
}

.kc-site .kc-form input[type="text"],
.kc-site .kc-form input[type="tel"],
.kc-site .kc-form input[type="email"],
.kc-site .kc-form textarea {
	box-sizing: border-box;
	width: 224px;
	max-width: 100%;
	height: 30px;
	margin: 10px 0;
	padding: 4px 6px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: var(--kc-text);
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(182, 31, 43, 0.075);
	transition: border linear 0.2s, box-shadow linear 0.2s;
}

.kc-site .kc-form input {
	vertical-align: middle;
}

.kc-site .kc-form textarea {
	width: 220px;
	height: 50px;
	resize: vertical;
	vertical-align: top;
}

.kc-site .kc-form input:focus,
.kc-site .kc-form textarea:focus {
	border-color: var(--kc-red);
	outline: 0;
}

.kc-form__buttons {
	display: flex;
	gap: 0;
}

.kc-site .kc-form .kc-btn {
	display: inline-block;
	box-sizing: border-box;
	height: 30px;
	margin: 0;
	padding: 4px 12px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 20px;
	color: var(--kc-red);
	text-align: center;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	vertical-align: middle;
	cursor: pointer;
	background-color: #f5f5f5;
	background-image: linear-gradient(to bottom, #fff, #e6e6e6);
	background-repeat: repeat-x;
	border: 1px solid #c5c5c5;
	border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: background-position 0.1s linear;
}

.kc-site .kc-form .kc-btn:hover,
.kc-site .kc-form .kc-btn:focus {
	color: var(--kc-text);
	background-color: #e6e6e6;
	background-position: 0 -15px;
}

.kc-site .kc-form .wpcf7-spinner {
	display: none;
}

.kc-site .kc-form .wpcf7-not-valid-tip {
	margin-top: -8px;
	font-size: 12px;
	color: var(--kc-red);
}

.kc-site .kc-form-wrap .wpcf7-response-output {
	margin: 10px 0 0;
	padding: 5px 10px;
	border-radius: 4px;
}

/* ---------- Footer ---------- */
.kc-site .kc-footer {
	position: relative;
	left: 5px;
	box-sizing: content-box;
	width: var(--kc-width);
	max-width: none;
	margin: 10px auto 20px;
	padding: 5px;
	color: #fffeff;
	background-color: var(--kc-red);
	border-top-right-radius: 8px;
	border-bottom-left-radius: 8px;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.kc-site .kc-footer a {
	color: #fffeff;
	text-decoration: underline;
}

.kc-site .kc-footer a:hover {
	color: #fffeff;
}

.kc-site .kc-footer span {
	color: inherit;
}

.kc-site .kc-footer__left {
	flex: 0 0 65.957%;
	width: 65.957%;
}

.kc-site .kc-footer__design {
	flex: 0 0 31.915%;
	width: 31.915%;
	margin-left: 2.128%;
	margin-top: 35px;
	text-align: right;
	color: #fffeff;
}

.kc-site .kc-footer__design p {
	margin: 0;
}

/* Οι σελίδες του site δεν έχουν τίτλο από το theme (Hello) */
.kc-site .page-header {
	display: none;
}

/* ==========================================================================
   Tablet & κινητό (<980px): μία στήλη, μενού που ανοίγει
   ========================================================================== */
@media (max-width: 979px) {
	.kc-site .kc-header,
	.kc-site .kc-main,
	.kc-site .kc-footer {
		left: 0;
		box-sizing: border-box;
		width: calc(100% - 32px);
		max-width: 724px;
	}

	.kc-site .kc-top {
		height: auto;
		min-height: 60px;
		padding-right: 120px;
	}

	.kc-logo__img {
		width: 346px;
		max-width: 100%;
		height: auto;
	}

	.kc-site .kc-top__logo {
		flex: 1 1 auto;
	}

	.kc-site .kc-top__case {
		top: 28px;
		width: 110px;
	}

	.kc-site .kc-top__case img {
		width: 110px;
		height: auto;
	}

	.kc-slider {
		box-sizing: border-box;
		height: auto;
		aspect-ratio: 940 / 350;
	}

	.kc-slider__prev,
	.kc-slider__next {
		top: 50%;
		margin-top: -19px;
	}

	.kc-site .kc-main {
		flex-direction: column;
		min-height: 0;
		padding: 10px;
	}

	.kc-site .kc-main__side,
	.kc-site .kc-main__content {
		flex: 0 0 auto;
		width: 100%;
		margin-left: 0;
		padding-right: 0;
	}

	.kc-site .kc-main__side {
		margin-bottom: 15px;
	}

	/* Κουμπί μενού στο ύφος των στοιχείων του μενού */
	.kc-menu__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: 8px 10px;
		font-family: Verdana, Geneva, sans-serif;
		font-size: 13px;
		font-weight: bold;
		line-height: 20px;
		color: var(--kc-red);
		text-align: left;
		cursor: pointer;
		background-color: var(--kc-menu-bg);
		border: 0;
		border-bottom: 1px solid var(--kc-red);
		border-radius: 0;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;
	}

	.kc-menu__toggle:hover,
	.kc-menu__toggle:focus {
		color: var(--kc-red);
		background-color: var(--kc-menu-bg);
	}

	.kc-menu__bars,
	.kc-menu__bars::before,
	.kc-menu__bars::after {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--kc-red);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.kc-menu__bars {
		position: relative;
	}

	.kc-menu__bars::before,
	.kc-menu__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.kc-menu__bars::before {
		top: -6px;
	}

	.kc-menu__bars::after {
		top: 6px;
	}

	.kc-menu.is-open .kc-menu__bars {
		background: transparent;
	}

	.kc-menu.is-open .kc-menu__bars::before {
		transform: translateY(6px) rotate(45deg);
	}

	.kc-menu.is-open .kc-menu__bars::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.kc-site .kc-menu .nav-left {
		display: none;
		margin-top: 4px;
	}

	.kc-site .kc-menu.is-open .nav-left {
		display: block;
	}

	.kc-site .nav-left li {
		padding: 8px 10px;
	}

	.kc-site .kc-parts {
		justify-content: center;
	}

	.kc-site .kc-contact {
		flex-direction: column;
	}

	.kc-site .kc-contact__form {
		display: block;
		width: 100%;
		margin-right: 0;
	}

	.kc-site .kc-contact__map {
		flex: 0 0 auto;
		width: 100%;
		margin-top: 15px;
	}

	.kc-site .kc-contact__map iframe {
		width: 100%;
	}

	.kc-site .kc-footer {
		flex-direction: column;
	}

	.kc-site .kc-footer__left,
	.kc-site .kc-footer__design {
		flex: 0 0 auto;
		width: 100%;
		margin-left: 0;
	}

	.kc-site .kc-footer__design {
		margin-top: 10px;
	}
}

@media (max-width: 600px) {
	.kc-site .kc-top {
		padding-right: 0;
		padding-top: 26px;
		flex-direction: column;
		align-items: flex-start;
	}

	.kc-site .kc-top__flags {
		top: 0;
		right: 0;
	}

	.kc-site .kc-top__case {
		position: static;
		margin-top: 8px;
		align-self: flex-end;
	}

	.kc-slider__bar {
		height: auto;
		min-height: 28px;
	}

	.kc-slider__caption {
		margin: 7px 10px 6px;
		font-size: 12px;
		text-align: left;
	}

	.kc-site h1,
	.kc-site .elementor-widget-heading h1.elementor-heading-title {
		line-height: 26px;
	}

	.kc-slider__prev,
	.kc-slider__next {
		margin-top: -31px;
	}

	.kc-form,
	.kc-form__row,
	.kc-form__label,
	.kc-form__field {
		display: block;
	}

	.kc-form__label:empty {
		display: none;
	}

	.kc-site .kc-form input[type="text"],
	.kc-site .kc-form input[type="tel"],
	.kc-site .kc-form input[type="email"],
	.kc-site .kc-form textarea {
		width: 100%;
		margin: 2px 0 6px;
	}

	.kc-site .kc-footer__design {
		text-align: left;
	}
}
