/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme of Blocksy for the OSKO project.
Author: SDLab
Template: blocksy
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* ===== OSKO · homepage paper image ===== */

/* Soft, neutral shadow under the paper — always on, no heavy drop shadow / 3D */
body.home .elementor-element.elementor-element-4743d25 img {
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06))
		drop-shadow(0 16px 32px rgba(0, 0, 0, 0.05));
}

/* Homepage hero — exactly one screen, no scroll.
   Blocksy already makes #main-container a full-height flex column and
   .site-main flex-grow. Propagate that height down to the Elementor
   container so it fills the space between header and footer; the image
   stays centered via the Elementor container settings (justify/align). */
body.home .site-main {
	display: flex;
	flex-direction: column;
}

body.home .site-main > .ct-container-full,
body.home .ct-container-full > article,
body.home article > .entry-content,
body.home .entry-content > [data-elementor-type="wp-page"] {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

body.home [data-elementor-type="wp-page"] > .elementor-element-9998b02 {
	flex: 1 1 auto;
	min-height: 0; /* override Elementor's 100vh so it fits the remaining space */
}

/* ===== OSKO · Services page ===== */

/* Page container: column */
.elementor-element-a1000001 {
	flex-direction: column !important;
	padding: clamp(24px, 5vw, 72px) clamp(16px, 4vw, 60px) !important;
}

/* Hero heading */
.elementor-element-a1000002.elementor-widget-heading .elementor-heading-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: clamp(28px, 5vw, 64px);
}

/* --- Tabs: vertical layout, minimal chrome --- */
.elementor-element-a1000003.elementor-widget-tabs .elementor-tabs {
	display: flex;
	gap: clamp(24px, 5vw, 80px);
}
.elementor-element-a1000003.elementor-widget-tabs .elementor-tabs-wrapper {
	width: auto !important;
	min-width: min(300px, 42vw);
	flex-shrink: 0;
	flex-direction: column;
	gap: 2px;
	overflow: visible;
	position: relative;
	border: none;
}
.elementor-element-a1000003.elementor-widget-tabs .elementor-tabs-content-wrapper {
	border: none;
	flex-grow: 1;
	min-width: 0;
}

/* Titles */
.elementor-element-a1000003 .elementor-tab-desktop-title {
	width: fit-content;
	position: relative;
	margin: 0;
	padding: 16px 6px 18px;
	border: none !important;
	background: transparent !important;
	font-weight: 400;
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	line-height: 1.25;
	color: #7D7D7D; /* inactive: light gray */
	transition: color 300ms ease;
}
.elementor-element-a1000003 .elementor-tab-desktop-title:hover {
	color: #16181c; /* black on hover */
}
.elementor-element-a1000003 .elementor-tab-desktop-title.elementor-active {
	color: #16181c;
	font-weight: 500;
}

/* Remove Elementor's connector lines on the active vertical tab */
.elementor-element-a1000003.elementor-widget-tabs.elementor-tabs-view-vertical .elementor-tab-desktop-title.elementor-active:before,
.elementor-element-a1000003.elementor-widget-tabs.elementor-tabs-view-vertical .elementor-tab-desktop-title.elementor-active:after {
	border: none !important;
	box-shadow: none !important;
	transform: none !important;
	inset: auto !important;
	height: auto !important;
	width: auto !important;
}

/* Tab numbers 01–04: to the left of the title, vertically centered, font 50% */
.elementor-element-a1000003 .elementor-tab-desktop-title::before,
.elementor-element-a1000003 .elementor-tab-mobile-title::before {
	content: "0" attr(data-tab) !important;
	display: inline-block !important;
	position: static !important; /* fix overlap on the active tab (Elementor sets absolute) */
	font-size: 50%;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.08em;
	margin-inline-end: 0.8em;
	vertical-align: middle;
	color: inherit;
}

/* Moving active line (injected by osko-services.js) */
.osko-tabs-line {
	position: absolute;
	left: 6px;
	height: 1px;
	background: #16181c;
	pointer-events: none;
	transition: top 420ms cubic-bezier(.4, 0, .2, 1), width 420ms cubic-bezier(.4, 0, .2, 1);
}

/* Content panels */
.elementor-element-a1000003 .elementor-tab-content {
	padding: 0;
	border: none !important;
	display: none !important;
}
.elementor-element-a1000003 .elementor-tab-content.elementor-active {
	display: block !important;
}

/* Panel content */
.osko-panel {
	display: flex;
	flex-direction: column;
	gap: 24px; /* sections 03/04 */
}
/* sections 01 & 02: tighter gap 10px */
.elementor-tab-content[data-tab="1"] .osko-panel,
.elementor-tab-content[data-tab="2"] .osko-panel {
	gap: 10px;
}
/* sections 03 & 04: gap 0 */
.elementor-tab-content[data-tab="3"] .osko-panel,
.elementor-tab-content[data-tab="4"] .osko-panel {
	gap: 0;
}

.osko-visual {
	position: relative;
	flex: 0 1 320px;
	width: 320px;
	max-width: 320px;
	aspect-ratio: 10 / 11; /* match new portrait images */
	background-size: cover;
	background-position: center;
	overflow: hidden;
	border-radius: 14px;
}
/* Section 2 (Structural Design) image 280px */
.elementor-tab-content[data-tab="2"] .osko-visual {
	width: 280px !important;
	max-width: 280px !important;
	flex: 0 1 280px;
}

.osko-visual__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	clip-path: inset(0 100% 0 0);
	transition: clip-path 780ms cubic-bezier(.65, 0, .35, 1);
}
.osko-visual__img.osko-in {
	clip-path: inset(0 0 0 0);
}

.osko-copy {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 780ms cubic-bezier(.65, 0, .35, 1);
	max-width: 56ch;
}
.osko-copy.osko-in {
	clip-path: inset(0 0 0 0);
}
.osko-copy__num {
	display: block;
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #7D7D7D;
	margin-bottom: 10px;
}
.osko-copy__title {
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	line-height: 1.15;
	margin: 0 0 12px;
}
.osko-copy__text {
	color: #5a6068;
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0;
	letter-spacing: 0.1em;
}

/* Reduced motion: static crossfade, no spatial motion */
@media (prefers-reduced-motion: reduce) {
	.osko-visual__img {
		clip-path: none !important;
		opacity: 0;
		transition: opacity 200ms ease;
	}
	.osko-visual__img.osko-in {
		opacity: 1;
	}
	.osko-copy {
		clip-path: none !important;
		opacity: 0;
		transition: opacity 200ms ease;
	}
	.osko-copy.osko-in {
		opacity: 1;
	}
	.osko-tabs-line {
		transition: none;
	}
}

/* Mobile: stack the list above the panel (Elementor accordion behaviour) */
@media (max-width: 767px) {
	.elementor-element-a1000003.elementor-widget-tabs .elementor-tabs {
		flex-direction: column;
	}
	.elementor-element-a1000003.elementor-widget-tabs .elementor-tabs-wrapper {
		min-width: 0;
	}
}

/* Services content: boxed (constrained + centered) */
.elementor-element-a1000001 {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Services: boxed + centered — force at every wrapper level
   (the theme's is-layout-constrained max-width var chain is broken on :root) */
body.page-id-65 .ct-container-full > article,
body.page-id-77 .ct-container-full > article,
body.page-id-65 article > .entry-content,
body.page-id-77 article > .entry-content,
body.page-id-65 .entry-content > .elementor-65,
body.page-id-77 .entry-content > .elementor-77,
body.page-id-65 .elementor-65 > .elementor-element-a1000001,
body.page-id-77 .elementor-77 > .elementor-element-a1000001 {
	width: 100% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Tab 01 compare row: after -> arrow -> before */
.osko-compare {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 128%; /* bigger than 100% on wide desktop to enlarge images */
	max-width: 100%; /* but never overflow the content column (fixes iPad overflow) */
}
.osko-compare__visual {
	flex: 0 1 320px;
	width: 320px;
	min-width: 0;
	max-width: 320px;
	aspect-ratio: 10 / 11; /* match the new portrait images */
	overflow: hidden;
	border-radius: 14px;
}
.osko-compare__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center; /* keep the top of the image visible */
	display: block;
}
.osko-compare__arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.osko-compare__arrow svg { width: 28px; height: auto; }

@media (max-width: 767px) {
	.osko-compare {
		flex-direction: column;
		align-items: center;
	}
	.osko-compare__visual {
		flex: none;
		width: 70%; /* 30% smaller on mobile */
	}
	.osko-compare__arrow-svg {
		transform: rotate(90deg);
	}
	.osko-compare__arrow {
		padding: 2px 0;
	}
}

/* VIEW DETAILS link under each copy block */
.osko-copy__link {
	display: inline-flex;
	align-items: center;
	gap: 1.4em; /* arrow offset 2x */
	margin-top: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #7D7D7D; /* gray by default */
	text-decoration: none;
	transition: color 300ms ease, gap 300ms ease;
}
.osko-copy__link:hover {
	color: #16181c; /* black on hover */
	gap: 1.8em; /* arrow slides slightly to the right */
}
.osko-copy__link-arrow {
	width: 40px;
	height: auto;
	flex-shrink: 0;
}

/* Mobile: clean accordion (≤767px) */
@media (max-width: 767px) {
	/* mobile tab titles */
	.elementor-element-a1000003 .elementor-tab-mobile-title {
		padding: 18px 0;
		margin: 0;
		border: none !important;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
		border-radius: 0 !important;
		background: transparent !important;
		font-size: 24px;
		font-weight: 500;
		line-height: 1.3;
		color: #16181c;
		text-align: left;
	}
	.elementor-element-a1000003 .elementor-tab-mobile-title::before {
		font-size: 50%;
		color: inherit;
	}
	.elementor-element-a1000003 .elementor-tab-mobile-title:last-of-type {
		border-bottom: none !important;
	}
	/* content panels */
	.elementor-element-a1000003 .elementor-tab-content {
		padding: 24px 0 32px;
		border: none !important;
	}
	.osko-panel {
		gap: 24px;
	}
	.osko-copy__text {
		font-size: 1rem;
	}
	.osko-copy__link {
		margin-top: 16px;
	}
	.osko-copy__link-arrow {
		width: 34px;
	}
}

/* Osko — full-screen responsive hero image (fills viewport under 96px header), no scroll, no footer */
.elementor-element-oskoimg2 {
	overflow: hidden !important;
	height: calc(100vh - 96px) !important;
	display: flex !important;
	align-items: flex-end !important;
}
.elementor-element-oskoimg2 img {
	width: 100% !important;
	height: 118vh !important;
	display: block !important;
	object-fit: cover !important;
	object-position: bottom !important;
}
html:has(body.home), body.home {
	overflow: hidden;
	height: 100%;
}
body.home #footer {
	display: none !important;
}
body.home .otgs-development-site-front-end {
	display: none !important;
}

/* Osko: remove Blocksy sticky-footer stretch on home (no empty gap under bottom image) */
body.home #main-container {
	min-height: 0 !important;
}

/* ===== Osko Contact page ===== */
.elementor .osko-contact-root {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 72px 60px 0 !important;
	flex-wrap: wrap !important;
}
.elementor .elementor-element-contactsh {
	flex: 0 0 100% !important;
	width: 100% !important;
}

.osko-contact-left h1 {
	font-size: 2.1em; /* same as section titles (H3) on Services */
	line-height: 1.2;
	letter-spacing: 0;
	margin-bottom: 26px;
}
.osko-ctl {
	margin-bottom: 18px;
}
.osko-ctl__label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #7D7D7D;
	margin-bottom: 4px;
}
.osko-ctl__value {
	font-size: 20px;
	color: var(--theme-palette-color-1, #000);
	text-decoration: none;
	word-break: break-word;
}

.osko-contact-form { width: 100%; }
.osko-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.osko-field { display: flex; flex-direction: column; }
.osko-field--full { grid-column: 1 / -1; }
.osko-field > label {
	font-size: 13px;
	color: #7D7D7D;
	margin-bottom: 6px;
}
.osko-field input,
.osko-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--theme-border-color, #e0e0e0);
	border-radius: 8px;
	font-size: 15px;
	background: var(--theme-palette-color-7, #f8fafa);
	outline: none;
}
.osko-field input::placeholder,
.osko-field textarea::placeholder { color: #7D7D7D; opacity: 1; }
.osko-field input:focus,
.osko-field textarea:focus { border-color: #000; }
.osko-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--theme-palette-color-2, #C5C5C5);
	border-radius: 10px;
	padding: 26px 16px;
	cursor: pointer;
	text-align: center;
	background: var(--theme-palette-color-7, #f8fafa);
}
.osko-dropzone__text { font-size: 15px; }
.osko-dropzone__hint { margin-top: 6px; color: #7D7D7D; font-size: 12px; }
.osko-btn {
	margin-top: 6px;
	background: var(--theme-palette-color-1, #000);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 30px;
	font-size: 15px;
	cursor: pointer;
}
.osko-btn:hover { background: var(--theme-palette-color-4, #000); }

/* mobile: stack columns */
@media (max-width: 900px) {
	.osko-contact-root { flex-direction: column !important; gap: 40px; }
	.osko-contact-left, .osko-contact-right { width: 100% !important; }
}
@media (max-width: 640px) {
	.osko-form-grid { grid-template-columns: 1fr; }
}

/* Send button (form) — same style as VIEW DETAILS, no arrow, underlined */
.osko-form-submit {
	text-align: left;
}
.osko-send-link {
	display: inline-block;
	align-self: flex-start;
	margin-top: 20px;
	margin-left: 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #7D7D7D;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 300ms ease;
}
.osko-send-link:hover {
	color: #16181c;
}

/* ===== Home hero title (over the image, left-aligned like header logo) ===== */
.elementor-element-herotitle {
	position: absolute;
	z-index: 2;
	left: calc((100vw - min(90vw, 1440px)) / 2);
	top: clamp(140px, 22vh, 260px);
	width: auto;
	max-width: 70vw;
}
.elementor-element-herotitle h1 {
	margin: 0;
	font-family: 'ct_font_akturi_light_regular', sans-serif !important; /* original */
	font-size: 72px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #16181c;
}

/* Home hero title reveal (left -> right) */
@keyframes osko-hero-reveal {
	from { clip-path: inset(0 100% 0 0); }
	to   { clip-path: inset(0 0 0 0); }
}
.elementor-element-herotitle {
	animation: osko-hero-reveal 1s cubic-bezier(.65, 0, .35, 1) both;
}

/* Mobile: hero title fits without touching edges and no wrap */
@media (max-width: 767px) {
	.elementor-element-herotitle {
		left: 20px;
		right: 20px;
		max-width: calc(100vw - 40px);
		top: 120px;
	}
	.elementor-element-herotitle h1 {
		font-size: 34px;
		white-space: normal;
		word-break: break-word;
	}
}

/* Home hero image always full-bleed (edge to edge) on any screen (EN 23 + ET 76) */
.elementor-element-a1e455e,
.elementor-element-9998b02 {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
}
.elementor-element-9998b02 {
	align-items: stretch !important;
}

/* Contact form: selected files list */
.osko-file-list {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.osko-file-item {
	font-size: 13px;
	color: #16181c;
	background: var(--theme-palette-color-6, #F2F7F6);
	padding: 6px 10px;
	border-radius: 6px;
}
