/**
 * Eventure Theme - Custom Styles
 *
 * This file is for custom CSS that goes beyond what theme.json provides.
 * It's enqueued on both front-end and editor.
 */

/* ============================================
   Smooth Scroll
   ============================================ */

html {
	scroll-behavior: smooth;
}

@view-transition {
	navigation: auto;
}

/* ============================================
   Transition helpers
   ============================================ */

a,
button,
.wp-block-button__link {
	transition: all 0.2s ease-in-out;
}

.site-header {
	position: fixed;
	width: 100%;
	z-index: 1000;
	margin-top: 1.5rem;
	/* position: absolute; */
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	top: 1.5rem;

	.header-content {
		max-width: 668px;
		width: 100%;
		margin-top: 0.5rem;

		> .header-inner {
			width: 100%;
		}
	}

	.wp-block-buttons {
		margin-left: auto;
		position: absolute;
		right: 1.5rem;

		.wp-block-button__link {
			font-size: 1.25rem !important;
			border-radius: 5.625rem !important;
		}
	}
}

.header-left .wp-block-navigation {
	flex-shrink: 0;
	width: auto;

	button svg {
		fill: #fff;
		width: 32px;
		height: auto;
	}
}

.lang-switcher {
	display: flex;
	align-items: center;
	position: relative;
	font-size: 1.5rem;
	font-family: var(--wp--preset--font-family--mplus-1);
	color: var(--wp--preset--color--white);
	cursor: pointer;

	.lang-switcher__current {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		user-select: none;
	}

	.lang-switcher__dropdown {
		position: absolute;
		top: calc(100% + 0.5rem);
		right: 0;
		list-style: none;
		margin: 0;
		padding: 0.25rem 0;
		background: var(--wp--preset--color--violet-900);
		border-radius: 4px;
		min-width: 80px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-4px);
		transition:
			opacity 0.2s ease,
			transform 0.2s ease,
			visibility 0.2s;
		z-index: 100;

		li a {
			display: block;
			padding: 0.4rem 1rem;
			color: var(--wp--preset--color--white);
			text-decoration: none;
			font-size: 1rem;
			letter-spacing: 0.05em;

			&:hover {
				background: rgba(255, 255, 255, 0.1);
			}
		}
	}

	&:hover .lang-switcher__dropdown,
	&:focus-within .lang-switcher__dropdown {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.page-subtitle {
	font-size: 2rem;
	color: #919191;
	margin-top: 0px;
	margin-bottom: 4rem;
}

.c--perks-list {
	padding: 0px;
	margin: 0px;
	list-style-type: none;
	margin-top: 3rem;

	li {
		display: flex;
		align-items: center;
		gap: 1.5rem;
		background-color: #fff;
		border-radius: 1rem;
		padding: 1rem;

		&:not(:last-child) {
			margin-bottom: 2.5rem;
		}

		.counter {
			min-width: 55px;
			height: 55px;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 999px;
			background-color: var(--wp--preset--color--violet-50);
			color: var(--wp--preset--color--violet-300);
			font-size: 2rem;
		}

		.title {
			margin-top: 0px;
			font-size: 1.25rem;
			color: var(--wp--preset--color--violet-900);
		}

		p {
			margin: 0px;
			font-size: 1rem;
		}
	}
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
	background: transparent;
    border: none;
    border-bottom: 1px solid #b977af;
    min-height: 36px;
    font-size: 1rem;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease;

	&:focus {
		border-color: var(--wp--preset--color--violet-900);
		outline: none;
	}
}

textarea {
	resize: vertical;
}

label:has(input),
label:has(textarea) {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	font-weight: 700;
}

label:has(textarea) {
	align-items: flex-start;
	flex-direction: column;

	.wpcf7-form-control-wrap {
		width: 100%;
	}
}

div > p:has(input[type="submit"]):has(.wpcf7-acceptance) {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wpcf7-acceptance {
	.wpcf7-list-item {
		margin: 0 !important;
	}
	label  {
		font-weight: 400;
		text-align: left;
	}
}

.wpcf7-not-valid-tip {
	position: absolute;
	font-size: 0.875rem;
}

/* ============================================
   CF7 Submit Button — match primary button
   ============================================ */

.wpcf7 input[type="submit"] {
	background-color: var(--wp--preset--color--violet-900);
	color: var(--wp--preset--color--violet-50);
	border: none;
	border-radius: 40px;
	padding: 0.75rem 1.5rem;
	padding-right: 3.5rem;
	font-family: var(--wp--preset--font-family--century-gothic);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.01556 24.9255L24.9255 9.01561M24.9255 9.01561V23.8649M24.9255 9.01561H10.0762' stroke='%23F5EBF3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 34px 34px;
	transition: all 0.2s ease-in-out;
}

.wpcf7-form > p {
	margin-block-start: 1.5rem;
	margin-block-end: 1.5rem;
}

.wpcf7 input[type="submit"]:hover {
	background-color: var(--wp--preset--color--violet-50);
	color: var(--wp--preset--color--violet-900);
	background-image: url("data:image/svg+xml,%3Csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.01556 24.9255L24.9255 9.01561M24.9255 9.01561V23.8649M24.9255 9.01561H10.0762' stroke='%233F1639' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wpcf7 p:has(input[type="submit"]) {
	text-align: right;
}

.wpcf7 .wpcf7-spinner {
	display: none !important;
}

.wpcf7-response-output {
	font-size: 1.25rem;
}

.wpcf7-acceptance {
	label, span {
		font-family: var(--wp--preset--font-family--century-gothic);
		font-size: 1rem;
	}
}

input[type="checkbox"],
input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--violet-900);
	cursor: pointer;
	transition: background-color 0.2s ease;

	&:checked {
		background-color: var(--wp--preset--color--violet-900);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F5EBF3'%3E%3Cpath d='M13.485 3.515a1.25 1.25 0 0 1 0 1.768l-6.22 6.22a1.25 1.25 0 0 1-1.768 0l-2.97-2.97a1.25 1.25 0 1 1 1.768-1.768L6.38 8.85l5.336-5.335a1.25 1.25 0 0 1 1.768 0z'/%3E%3C/svg%3E");
		background-size: 14px;
		background-position: center;
		background-repeat: no-repeat;
	}
}

input[type="radio"] {
	border-radius: 50%;

	&:checked {
		background-image: none;
		background-color: transparent;
		border-width: 6px;
		border-color: var(--wp--preset--color--violet-900);
	}
}

/* ============================================
   Buttons — icon gap & hover shadow
   ============================================ */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	line-height: 1.2;
	word-break: keep-all;
}

.wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	-webkit-mask: url('../icons/arrow-top-right.svg') no-repeat center / contain;
	mask: url('../icons/arrow-top-right.svg') no-repeat center / contain;
	background-color: currentColor;
	transition: transform 0.2s ease-in-out;
}

.wp-block-button__link:hover::after {
	transform: rotate(45deg);
}

/* ============================================
   Button variant: Gradient
   ============================================ */

.wp-block-button.is-style-gradient-button .wp-block-button__link {
	border-radius: 90px;
	padding-top: 8px;
	padding-bottom: 8px;
	max-width: 240px;
	text-wrap: wrap;
}

.wp-block-button.is-style-gradient-button .wp-block-button__link:hover {
	box-shadow: 0px 4px 4px 0px #00000040;
}

/* ============================================
   Button variant: Light
   ============================================ */

.wp-block-button.is-style-light-button .wp-block-button__link {
	text-wrap: wrap;
}

.wp-block-button.is-style-light-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--violet-900);
	color: var(--wp--preset--color--white);
	box-shadow: 0px 4px 4px 0px #00000040;
}

body.home {
	.hero-section,
	main.wp-block-group {
		margin-block-start: 0px !important;
		padding-top: 0px !important;
	}

	/* Section-level padding for homepage rows */
	.wp-block-post-content > .wp-block-group {
		padding-top: var(--wp--preset--spacing--80);
		padding-bottom: var(--wp--preset--spacing--80);
	}
}

/* ============================================
   Banner with text
   ============================================ */

.c--banner-with-text {
	.wp-block-cover__inner-container {
		width: 100% !important;
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 1rem;
	}

	.wp-block-button__link {
		/* display: flex;
		align-items: center; */
		justify-content: center;
		gap: 0;
		width: 58px;
		aspect-ratio: 1;
		font-size: 0px;
	}
}

/* ============================================
   Footer
   ============================================ */

.footer-logo img {
	opacity: 0.85;
}

.has-dark-background-color .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0;
}

.footer-contact-nav .wp-block-navigation__container {
	column-gap: 1.5rem;
	row-gap: 0.25rem;
}
