/* Türkün Blok — site styles on top of Twenty Twenty-Five. */

/* Header ------------------------------------------------------------------ */
.turkun-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.admin-bar .turkun-header { top: var(--wp-admin--admin-bar--height, 32px); }
.turkun-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 280px;
	padding: 8px 0;
	border: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.turkun-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px;
}
.turkun-header .wp-block-polylang-language-switcher ul,
.turkun-lang ul {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}
.turkun-lang .current-lang a { font-weight: 800; }

/* Home slider (core Cover blocks inside a Group with class turkun-slider) ---- */
.turkun-slider { position: relative; overflow: hidden; }
.turkun-slider > .wp-block-cover { margin: 0; }
.turkun-slider.is-ready { display: grid; }
.turkun-slider.is-ready > .wp-block-cover {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.turkun-slider.is-ready > .wp-block-cover.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
	.turkun-slider > .wp-block-cover.is-active .wp-block-cover__image-background {
		animation: turkun-kenburns 9s ease-out both;
	}
}
@keyframes turkun-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.turkun-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}
.turkun-slider__arrow--prev { left: 12px; }
.turkun-slider__arrow--next { right: 12px; }
.turkun-slider__dots {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.turkun-slider__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.turkun-slider__dots button[aria-current="true"] { background: #fff; }

/* Founder quote ------------------------------------------------------------ */
.turkun-founder-photo img {
	border: 1px solid #dbdde1;
	border-radius: 50%;
	padding: 14px;
	background: #fff;
}
.turkun-founder-photo { margin-top: -90px !important; position: relative; z-index: 4; }

/* Timeline ---------------------------------------------------------------- */
.turkun-timeline {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 14px;
}
.turkun-timeline > .wp-block-group {
	flex: 0 0 260px;
	margin: 0 !important;
	padding: 18px 20px;
	border-top: 3px solid var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--accent-2);
	scroll-snap-align: start;
}
.turkun-timeline h3 { margin: 0 0 6px; font-weight: 800; }
.turkun-timeline p { margin: 0; font-size: 14px; line-height: 1.6; }

/* Section sidebar (circle icon + vertical menu) ----------------------------- */
.turkun-sidebar .wp-block-image img {
	width: 110px;
	height: 110px;
	padding: 14px;
	border: 1px solid #dbdde1;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}
.turkun-sidebar .wp-block-image { margin-top: -70px; position: relative; z-index: 2; }
.turkun-sidebar .wp-block-navigation { font-size: 14px; }
.turkun-sidebar .wp-block-navigation .current-menu-item > a,
.turkun-sidebar .wp-block-navigation a[aria-current="page"] { font-weight: 800; }

/* News list on category pages ----------------------------------------------- */
.turkun-news-list .wp-block-post { padding-bottom: 18px; border-bottom: 1px solid var(--wp--preset--color--accent-3); }
.turkun-news-list .wp-block-post-title { font-size: 18px; margin: 0 0 4px; }
.turkun-news-list .wp-block-post-date { font-size: 13px; color: var(--wp--preset--color--accent-4); }
.turkun-news-list .wp-block-post-excerpt__more-link { font-size: 14px; }

/* Contact form (Contact Form 7) --------------------------------------------- */
.wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 form > .turkun-full,
.wpcf7 form > .wpcf7-response-output { grid-column: 1 / -1; }
.wpcf7 label { display: block; font-size: 14px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cfc8cf;
	border-radius: 2px;
	font: inherit;
}
.wpcf7 textarea { height: 140px; }
.wpcf7 input[type="submit"] {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	font: inherit;
	cursor: pointer;
}
@media (max-width: 640px) { .wpcf7 form { grid-template-columns: 1fr; } }

.turkun-whatsapp .wp-block-button__link { background: #25d366; }

/* Cookie bar --------------------------------------------------------------- */
.turkun-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: none !important;
	margin: 0 !important;
}
.turkun-cookie.is-visible { display: flex !important; }

/* Footer ------------------------------------------------------------------- */
.turkun-copyright { margin: 0; text-align: center; font-size: 13px; }

/* Small screens ------------------------------------------------------------ */
@media (max-width: 781px) {
	.turkun-founder-photo { margin-top: -60px !important; }
	.turkun-sidebar .wp-block-image { margin-top: 0; }
}

/* Page banners (featured image or banner image under the header) -------------- */
.turkun-banner { margin-top: 0 !important; margin-bottom: 0 !important; }
.turkun-banner img { width: 100%; height: 280px; object-fit: cover; display: block; }
@media (max-width: 781px) { .turkun-banner img { height: 180px; } }

/* Header row: let the menu take the free space and stay on one line on desktop. */
.turkun-header .alignwide > .wp-block-group { flex: 1 1 auto; justify-content: flex-end; }
@media (min-width: 1000px) {
	.turkun-header .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
}

/* The cookie bar sits inside the constrained footer; undo the content-width cap. */
.turkun-footer > .turkun-cookie { max-width: none !important; width: auto; }

/* Home "about" row: video poster on the left, text panel filling the full height on the right. */
.turkun-about > .wp-block-column { display: flex; flex-direction: column; justify-content: center; }
.turkun-about .turkun-video { margin: 0; height: 100%; }
.turkun-about .turkun-video a { position: relative; display: block; height: 100%; }
.turkun-about .turkun-video img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.turkun-about .turkun-video a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(144, 0, 70, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 34px no-repeat;
}

/* Mobile overlay menu: plain left-aligned list instead of desktop dropdown boxes. */
.turkun-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.turkun-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none;
	padding: 4px 0 8px 14px;
	min-width: 0;
}
.turkun-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start; }
.turkun-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}
.turkun-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.turkun-about .turkun-video img { max-height: 520px; }
.turkun-about .turkun-video a::after { top: 78%; }

/* Section sidebars: group labels and post lists ---------------------------- */
.turkun-sidebar-label { margin: 14px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--wp--preset--color--accent-1); }
.turkun-sidebar-list .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.turkun-sidebar-list .wp-block-post-title { margin: 0 0 10px; font-size: 14px; font-weight: 400; }

/* Converted content: card grids (magazines, logos), accordions, galleries ------- */
.turkun-card-grid { gap: 28px; margin-block: 24px; }
.turkun-card { padding: 18px; border: 1px solid var(--wp--preset--color--accent-3); text-align: center; }
.turkun-card .wp-block-image { margin-inline: auto; }
.turkun-card .wp-block-image img { max-height: 260px; width: auto; object-fit: contain; }
.turkun-card h3 { font-size: 16px; margin-top: 0; }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--accent-3); padding: 10px 0; }
.wp-block-details summary { cursor: pointer; font-weight: 800; color: var(--wp--preset--color--accent-1); }
.wp-block-details[open] summary { margin-bottom: 8px; }
.turkun-inline-featured { margin: 0 0 16px 24px !important; }
.turkun-inline-featured img { border-radius: 2px; }
@media (max-width: 781px) { .turkun-inline-featured { float: none !important; margin: 0 0 16px !important; } }
.turkun-inline-featured { width: 240px !important; max-width: 40%; }
.turkun-inline-featured img { width: 100%; height: auto; }

/* Small screens: page content first, the section menu after it, without the circle icon. */
@media (max-width: 781px) {
	.wp-block-column:has(> .turkun-sidebar),
	.wp-block-column:has(> aside > .turkun-sidebar),
	.wp-block-column:has(> aside.turkun-sidebar) { order: 2; border-top: 1px solid var(--wp--preset--color--accent-3); padding-top: 18px; }
	.turkun-sidebar .wp-block-image { display: none; }
}
@media (max-width: 781px) { .turkun-banner img { height: 180px !important; } }

/* v2 (after the 23 October meeting) ------------------------------------------- */

/* Home video plays in place: the player takes the poster's box. */
.turkun-about .turkun-video__player { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 520px; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* Home social columns: Instagram feed (or profile picture) and the Facebook page timeline. */
.turkun-fb { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.turkun-instagram-fallback img { display: block; width: 100%; height: auto; }
#sb_instagram { padding-bottom: 0 !important; }

/* History: every year written out, one under the other. */
.turkun-history { border-left: 2px solid var(--wp--preset--color--accent-1); margin: 24px 0 0 8px; padding-left: 28px; }
.turkun-history-item { position: relative; margin: 0 0 22px !important; }
.turkun-history-item::before { content: ""; position: absolute; left: -36px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--wp--preset--color--accent-1); }
.turkun-history-item h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--wp--preset--color--accent-1); }
.turkun-history-item p { margin: 0 0 6px; }

/* Management message: one letter with the photo beside it. */
.turkun-letter p { margin: 0 0 14px; }
.turkun-signature { margin-top: 22px !important; }

/* Information society services: a two-column company card. */
.turkun-info-table table { border-collapse: collapse; width: 100%; }
.turkun-info-table td { padding: 10px 14px; border-bottom: 1px solid var(--wp--preset--color--accent-3); vertical-align: top; }
.turkun-info-table td:first-child { width: 36%; font-weight: 800; }

/* Company pages: logo, contact lines and a map instead of the directions button. */
.turkun-company .turkun-company-logo img { max-width: 220px; height: auto; }
.turkun-map { display: block; width: 100%; height: 260px; border: 0; margin-top: 8px; }

/* Sustainability page */
.turkun-lead-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; color: var(--wp--preset--color--accent-1); }
.turkun-stats { margin: 32px 0 !important; gap: 18px; }
.turkun-stat { height: 100%; padding: 22px 18px; border: 1px solid var(--wp--preset--color--accent-3); text-align: center; }
.turkun-stat-number { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--wp--preset--color--accent-1); }
.turkun-stat-label { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.turkun-sus-row { margin: 34px 0 !important; gap: 40px; }
.turkun-sus-row h3 { margin-top: 0; }
.turkun-sus-row img { width: 100%; height: auto; }

/* Footer: legal links and the company's registry line. */
.turkun-legal-links, .turkun-legal-line { margin: 6px 0 0 !important; text-align: center; }
.turkun-legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.turkun-legal-line { opacity: .75; }
.turkun-legal-table thead th { text-align: left; padding: 10px 14px 10px 0; font-weight: 800; border-bottom: 2px solid var(--wp--preset--color--accent-3); }
.turkun-legal-table td:first-child { width: auto; }
.turkun-legal-date { margin-top: 2rem !important; font-size: .9rem; opacity: .7; }
.turkun-form-note { font-size: .9rem; opacity: .85; }
.turkun-footer > .turkun-legal-links, .turkun-footer > .turkun-legal-line { max-width: none !important; text-align: center !important; }
