/* NURÉ — footer: bülten satırı, bağlantı sütunları (mobilde akordeon), telif ve ödeme rozetleri. */

.nure-footer {
	--nure-footer-text: #ede7e1;
	--nure-footer-muted: #c2b6ab;
	--nure-footer-line: rgba(237, 231, 225, 0.16);
	--nure-footer-pad: var(--wp--style--root--padding-left, clamp(1rem, 3.5vw, 2.5rem));
	margin: 0;
	padding: 0 var(--nure-footer-pad);
	background: var(--wp--preset--color--espresso);
	color: var(--nure-footer-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}

.wp-block-group.nure-footer > * {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1440px) - 2 * var(--nure-footer-pad));
	margin: 0 auto;
}

/* Akış düzeninin blok aralıkları yerine gap kullanılır. */
.nure-footer.nure-footer :where(h2, p, ul, form, div, label) {
	margin-block: 0;
}

.nure-footer a {
	color: inherit;
	text-decoration: none;
}

.nure-footer a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.nure-footer :where(a, button, input, summary):focus-visible {
	outline: 1px solid var(--nure-footer-text);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------
 * Bülten
 * ------------------------------------------------------------------ */
.nure-footer__newsletter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 32px 72px;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--nure-footer-line);
}

.nure-footer .nure-footer__newsletter-title {
	color: var(--nure-footer-text);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nure-footer__newsletter-intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nure-footer .nure-footer__newsletter-text {
	max-width: 420px;
	color: var(--nure-footer-muted);
	font-size: 14px;
}

.nure-newsletter {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nure-newsletter__field {
	display: flex;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid rgba(237, 231, 225, 0.55);
	transition: border-color 0.2s ease;
}

.nure-newsletter__field:focus-within {
	border-bottom-color: var(--nure-footer-text);
}

.nure-newsletter__input {
	flex: 1;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--nure-footer-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.02em;
	-webkit-appearance: none;
	appearance: none;
}

.nure-newsletter__input::placeholder {
	color: var(--nure-footer-muted);
	opacity: 1;
}

.nure-footer .nure-newsletter__input:focus-visible {
	outline: none;
}

.nure-newsletter__input[aria-invalid="true"] {
	color: #f6d9cc;
}

.nure-newsletter__submit {
	flex: none;
	min-height: 44px;
	margin-bottom: 5px;
	padding: 0 26px;
	border: 1px solid var(--nure-footer-text);
	border-radius: 0;
	background: transparent;
	color: var(--nure-footer-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.nure-newsletter__submit:hover,
.nure-newsletter__submit:focus-visible {
	background: var(--nure-footer-text);
	color: var(--wp--preset--color--espresso);
}

/* ETK / İYS onay kutusu */
.nure-newsletter__consent {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding-top: 12px;
	color: var(--nure-footer-text);
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}

.nure-newsletter__check {
	flex: none;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--nure-footer-text);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nure-newsletter__check::after {
	content: "";
	width: 10px;
	height: 6px;
	margin-top: -3px;
	border-bottom: 1.5px solid var(--wp--preset--color--espresso);
	border-left: 1.5px solid var(--wp--preset--color--espresso);
	transform: rotate(-45deg) scale(0);
	transition: transform 0.15s ease;
}

.nure-newsletter__check:checked {
	background: var(--nure-footer-text);
}

.nure-newsletter__check:checked::after {
	transform: rotate(-45deg) scale(1);
}

.nure-newsletter__note {
	color: var(--nure-footer-muted);
	font-size: 12px;
	line-height: 1.5;
}

.nure-footer .nure-newsletter__note a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nure-newsletter__status {
	padding-top: 4px;
	font-size: 13px;
}

.nure-newsletter__status:empty {
	display: none;
}

.nure-newsletter__status.is-error {
	color: #f6d9cc;
}

/* ---------------------------------------------------------------------
 * Sütunlar
 * ------------------------------------------------------------------ */
.nure-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
	gap: 40px 40px;
	padding: 56px 0 52px;
}

.nure-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-right: 24px;
}

.nure-footer__logo.nure-logo .nure-logo__img {
	height: 32px;
}

.nure-footer .nure-footer__about {
	max-width: 280px;
	color: var(--nure-footer-muted);
	font-size: 13px;
	line-height: 1.7;
}

.nure-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nure-footer .nure-footer__title {
	color: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--body);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nure-footer .nure-footer__links {
	padding: 0;
	list-style: none;
}

.nure-footer__links li {
	margin: 0;
	padding: 0;
	color: var(--nure-footer-muted);
}

.nure-footer__links a {
	display: inline-block;
	padding: 5px 0;
	color: var(--nure-footer-text);
	line-height: 1.45;
}

.nure-footer__contact li {
	padding: 5px 0;
	line-height: 1.45;
}

.nure-footer__contact li:has(> a) {
	padding: 0;
}

.nure-footer__contact li:last-child {
	font-size: 12px;
}

/* İnce ikonlu sosyal bağlantılar */
.nure-social {
	display: flex;
	gap: 4px;
	margin: 0 0 0 -10px;
	padding: 0;
	list-style: none;
}

.nure-social li {
	margin: 0;
}

.nure-social__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--nure-footer-text, currentColor);
	transition: opacity 0.18s ease;
}

.nure-footer .nure-social__link:hover {
	text-decoration: none;
	opacity: 0.75;
}

.nure-social__link svg {
	width: 22px;
	height: 22px;
}

/* ---------------------------------------------------------------------
 * Alt çizgi: telif, şirket bilgisi, ödeme rozetleri
 * ------------------------------------------------------------------ */
.nure-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 22px 0 28px;
	border-top: 1px solid var(--nure-footer-line);
}

.nure-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	color: var(--nure-footer-muted);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.nure-payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--nure-footer-text, currentColor);
	font-family: var(--wp--preset--font-family--body);
}

.nure-payments__item {
	margin: 0;
	line-height: 0;
}

.nure-payments__item svg {
	display: block;
	height: 26px;
	width: auto;
}

/* ---------------------------------------------------------------------
 * Tablet
 * ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.nure-footer__main {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nure-footer__brand {
		grid-column: 1 / -1;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 32px;
		padding: 0 0 8px;
	}

	.nure-footer .nure-footer__about {
		max-width: 420px;
	}
}

/* ---------------------------------------------------------------------
 * Mobil: tek sütun, bağlantı grupları akordeon
 * ------------------------------------------------------------------ */
@media (max-width: 781px) {
	.nure-footer__newsletter {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 48px 0 40px;
	}

	.nure-newsletter__field {
		gap: 10px;
	}

	.nure-newsletter__submit {
		padding: 0 18px;
	}

	.nure-footer__main {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 36px 0 12px;
	}

	.nure-footer__brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 0 0 28px;
	}

	.nure-footer__col {
		gap: 0;
		border-top: 1px solid var(--nure-footer-line);
	}

	.nure-footer__col:last-child {
		border-bottom: 1px solid var(--nure-footer-line);
	}

	.nure-footer .nure-footer__title {
		margin: 0;
		padding: 16px 0;
	}

	.nure-footer__col.is-accordion .nure-footer__title {
		padding: 0;
	}

	.nure-footer__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 54px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		letter-spacing: inherit;
		text-align: left;
		text-transform: inherit;
		cursor: pointer;
	}

	.nure-footer__toggle-icon {
		width: 16px;
		height: 16px;
		color: var(--nure-footer-text);
	}

	.nure-footer__toggle-v {
		transform-origin: center;
		transition: transform 0.25s var(--nure-ease, ease);
	}

	.nure-footer__toggle[aria-expanded="true"] .nure-footer__toggle-v {
		transform: scaleY(0);
	}

	.nure-footer__col .nure-footer__links {
		padding-bottom: 14px;
	}

	.nure-footer__col .nure-footer__links[hidden] {
		display: none;
	}

	.nure-footer__links a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}

	.nure-footer__col--contact {
		padding-bottom: 16px;
	}

	.nure-footer__col--contact .nure-footer__title {
		padding-bottom: 6px;
	}

	.nure-footer__col--contact .nure-footer__links {
		padding-bottom: 4px;
	}

	.nure-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 24px 0 32px;
		border-top: 0;
	}

	.nure-footer__legal {
		flex-direction: column;
		gap: 4px;
	}
}
