/*!
 * Strategically Yours — Loaded on every page: reset, shared blocks, cursor, header, footer.
 */

/*--------------------------------------------------------------
# Reset & base
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.6;
	background: var(--cream);
	color: var(--text);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--teal);
}

button {
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
}

ul,
ol {
	list-style: none;
}

::selection {
	background: var(--coral);
	color: #fff;
}

/* Paper grain over the whole page — reads as print, not screen. */
/* TEST: content:none disables this full-screen fixed overlay to check if it
   is what breaks the fixed header on iOS. */
body::after {
	content: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	opacity: 0.32;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 140px 140px;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	white-space: nowrap;
}

.skip-link:focus {
	clip-path: none;
	background: var(--cream);
	color: var(--teal);
	height: auto;
	width: auto;
	padding: 16px 24px;
	left: 8px;
	top: 8px;
	z-index: 200;
	border-radius: 4px;
}

:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 3px;
}

/*--------------------------------------------------------------
# Shared building blocks
--------------------------------------------------------------*/
/* width: 100% needed in the flex column (hero): auto inline margins would
   otherwise shrink it below --max-width. */
.sub-section {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}


.section-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -1.5px;
	color: var(--teal);
}

.section-title .coral {
	color: var(--coral);
}

.section-title .lav {
	color: var(--lavender);
}

/* Accent just changes colour inline. */
.refs-label .coral {
	color: var(--coral);
}

.button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--coral);
	color: #fff;
	padding: 9px 20px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.button-primary:hover,
.button-primary:focus-visible {
	background: var(--teal);
	transform: scale(1.04);
}

.reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

/* Buttons ----------------------------------------------------- */
.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
	background: var(--coral);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--teal);
	transform: translateY(-2px);
}

.btn-secondary {
	border: 1.5px solid var(--teal);
	color: var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--teal);
	color: #fff;
	transform: translateY(-2px);
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes scrollPulse {
	0%,
	100% {
		opacity: 1;
		transform: scaleY(1);
	}
	50% {
		opacity: 0.3;
		transform: scaleY(0.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero-name,
	.hero-lead,
	.hero-tagline,
	.hero-actions,
	.hero-scroll {
		opacity: 1 !important;
		animation: none !important;
	}

	.scroll-line {
		animation: none;
	}
}

/*--------------------------------------------------------------
# Custom cursor — cursor.js adds .has-custom-cursor (native pointer
# survives JS failure, touch, reduced-motion).
--------------------------------------------------------------*/
/* Only inside #page: the WP admin bar and plugin overlays (cookie banner)
   live outside it and must keep the native cursor. */
.has-custom-cursor #page,
.has-custom-cursor #page a,
.has-custom-cursor #page button {
	cursor: none;
}

.cursor,
.cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	border-radius: 50%;
	pointer-events: none;
	mix-blend-mode: multiply;
	will-change: transform;
}

/* multiply hides these on dark teal; cursor.js flips to normal over [data-cursor="light"]. */
.cursor.on-dark,
.cursor-ring.on-dark {
	mix-blend-mode: normal;
}

.cursor-ring.on-dark {
	border-color: var(--cream);
}

.cursor {
	width: 12px;
	height: 12px;
	background: var(--coral);
	transition: width 0.15s ease, height 0.15s ease, opacity 0.2s;
}

.cursor-ring {
	z-index: 9998;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--teal);
	transition: width 0.2s ease, height 0.2s ease, opacity 0.2s;
}

.cursor.is-active {
	width: 26px;
	height: 26px;
}

.cursor-ring.is-active {
	width: 56px;
	height: 56px;
}

.cursor.is-hidden,
.cursor-ring.is-hidden {
	opacity: 0;
}

/*--------------------------------------------------------------
# Site header
--------------------------------------------------------------*/


.site-header {
	inset: 0 0 auto;
	position: fixed;
	top: 0;
	z-index: 100;
	background: var(--cream);
	border-bottom: 1px solid rgba(65, 147, 166, 0.1);
}

/* Desktop only: frosted glass. Mobile stays solid cream. */
@media (min-width: 1024px) {
	.site-header {
		background: rgba(242, 240, 216, 0.85);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}
}

.site-header .sub-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 24px;
}

/* Logo -------------------------------------------------------- */
/* Brand mark: three dots beside the wordmark. */
.ink-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ink-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.ink-dot.is-coral {
	background: var(--coral);
}

.ink-dot.is-teal {
	background: var(--teal);
}

.ink-dot.is-lav {
	background: var(--lavender);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1;
	letter-spacing: 0;
	color: #6f6c63;
	text-decoration: none;
}

/* Recurring mark in grey; dots carry the colour. */
.site-logo-text,
.footer-logo-text {
	color: #6f6c63;
}

/* Nav --------------------------------------------------------- */
.site-header-nav {
	display: flex;
	align-items: center;
	gap: 36px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
}

.nav-links li {
	position: relative;
}

.nav-links a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--teal);
	transition: color 0.2s;
}

/* No active-page colour: home-page anchors mark several current at once. */
.nav-links a:hover {
	color: var(--coral);
}

/* Switcher labels are proper names; tr-TR uppercase would map i→İ (TURKİSH). Leave case as given. */
.nav-links .pll-parent-menu-item > a,
.nav-links .lang-item a {
	text-transform: none;
}

/* Chevron marks the rows that open — the language switcher, mainly. */
.nav-links .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.nav-links .menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	rotate: 45deg;
	translate: 0 -2px;
	transition: rotate 0.25s ease, translate 0.25s ease;
}

.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children:focus-within > a::after {
	rotate: -135deg;
	translate: 0 1px;
}

/* Invisible strip bridges the gap so hover survives; panel stays 14px clear. */
.nav-links .menu-item-has-children::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 16px;
}

/* Language switcher — Polylang renders it as a nested menu item. */
.nav-links .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	translate: -50% 0;
	min-width: 128px;
	padding: 8px 0;
	background: var(--cream);
	border: 1px solid rgba(65, 147, 166, 0.15);
	border-radius: 6px;
	box-shadow: 0 16px 40px rgba(65, 147, 166, 0.14);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.nav-links .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
}

.nav-links .sub-menu img {
	display: inline-block;
}

/* Hamburger --------------------------------------------------- */
.site-header-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	margin-right: -6px;
}

/* The bars carry a class: nth-of-type would count the screen-reader span too. */
.site-header-nav__toggle .bar {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: var(--teal);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header-nav__toggle[aria-expanded='true'] .bar:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.site-header-nav__toggle[aria-expanded='true'] .bar:nth-child(3) {
	opacity: 0;
}

.site-header-nav__toggle[aria-expanded='true'] .bar:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

/*--------------------------------------------------------------
# Site header — mobile
--------------------------------------------------------------*/
@media (max-width: 900px) {
	:root {
		--gutter: 24px;
		--header-height: 68px;
	}

	.site-header .sub-section {
		padding-block: 18px;
	}

	.site-header-nav__toggle {
		display: flex;
	}

	.site-header-nav {
		position: fixed;
		inset: var(--header-height) 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 32px;
		background: var(--cream);
		border-bottom: 1px solid rgba(65, 147, 166, 0.1);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	}

	.site-header-nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-links > li > a {
		display: block;
		padding: 16px 0;
		font-size: 15px;
		border-bottom: 1px solid rgba(65, 147, 166, 0.1);
	}

	/* Touch: switcher opens on tap (navigation.js .is-open); closed by default. */
	/* Collapse by max-height, not grid 0fr: a 2nd lang fell into an implicit row and stayed visible. */
	.nav-links .sub-menu {
		position: static;
		translate: none;
		display: block;
		min-width: 0;
		max-height: 0;
		padding: 0;
		overflow: hidden;
		background: none;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transition: max-height 0.25s ease;
	}

	.nav-links li:hover > .sub-menu,
	.nav-links li:focus-within > .sub-menu {
		max-height: 0;
	}

	.nav-links li.is-open > .sub-menu {
		max-height: 240px;
	}

	.nav-links .sub-menu a {
		padding: 12px 0 12px 16px;
		font-size: 13px;
	}

	.nav-links .menu-item-has-children::after {
		content: none;
	}

	/* Full-width row on mobile, so the chevron sits at the far edge. */
	.nav-links .menu-item-has-children > a {
		display: flex;
		justify-content: space-between;
	}

	.nav-links .menu-item-has-children > a::after {
		width: 7px;
		height: 7px;
		margin-right: 4px;
	}

	/* Tap, not hover, drives it here. */
	.nav-links .menu-item-has-children:hover > a::after,
	.nav-links .menu-item-has-children:focus-within > a::after {
		rotate: 45deg;
		translate: 0 -2px;
	}

	.nav-links .menu-item-has-children.is-open > a::after {
		rotate: -135deg;
		translate: 0 2px;
	}

	.site-header-nav_cta {
		margin-top: 24px;
	}

	.site-header-nav_cta .button-primary {
		width: 100%;
		padding-block: 14px;
	}
}


/* Crop marks, shared by the About hero, the archive headers and 404. */
.crop-mark {
	position: absolute;
	z-index: 3;
	width: 22px;
	height: 22px;
	border: 0 solid var(--coral);
}

.crop-mark.is-tl {
	top: 28px;
	left: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
	border-top-width: 2px;
	border-left-width: 2px;
}

.crop-mark.is-br {
	right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
	bottom: 28px;
	border-right-width: 2px;
	border-bottom-width: 2px;
}

/* Buttons for dark plates: the contact band and 404. */
.btn-light,

.btn-light {
	background: var(--cream);
	color: var(--teal);
}

.btn-light:hover,
.btn-light:focus-visible {
	background: var(--coral);
	color: #fff;
	transform: translateY(-2px);
}



/*--------------------------------------------------------------
# Site footer
--------------------------------------------------------------*/
.site-footer {
	padding-block: 32px;
	background: var(--cream);
	border-top: 1px solid rgba(65, 147, 166, 0.2);
}

.site-footer .sub-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: none;
	color: #6f6c63;
	transition: color 0.2s;
}

.site-logo:hover .site-logo-text,
.footer-logo:hover .footer-logo-text {
	color: var(--dark);
}

.footer-copy {
	font-size: 12px;
	letter-spacing: 0.3px;
	color: rgba(58, 58, 58, 0.6);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-links a {
	font-size: 12px;
	letter-spacing: 0.5px;
	text-decoration: none;
	color: rgba(58, 58, 58, 0.75);
	transition: color 0.2s;
}

.footer-links a:hover,
.footer-links .current-menu-item > a {
	color: var(--coral);
}

@media (max-width: 700px) {
	.site-footer .sub-section {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.footer-links {
		justify-content: center;
	}
}
