/* Base Styles & Reset */
@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/roboto-latin-variable-v51.woff2') format('woff2');
}

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

html {
	height: 100vh;
	width: 100%;
	font-size: var(--font-size-base);
	scrollbar-gutter: stable;
}

body {
	height: 100%;
	width: 100%;
	margin: 0;
	font-family: var(--font-family);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: var(--line-height-base);
	color: var(--color-body-text);
	background-color: var(--color-body-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-heading);
	color: var(--color-heading-text);
}

h1 {
	font-size: var(--font-size-h1);
	margin-bottom: var(--space-2);
	overflow-wrap: anywhere;
}

h2 {
	font-size: var(--font-size-h2);
}

h3 {
	font-size: var(--font-size-h3);
}

h4 {
	font-size: var(--font-size-h4);
}

p {
	margin-bottom: var(--space-2);
	color: var(--color-body-text);
}

/* Links */
a {
	color: var(--color-link);
	text-decoration: underline;
}

a:hover {
	color: var(--color-link-hover);
}

/* Buttons */
button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

/* Forms */
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none !important;
}

/* Utility Classes */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
	outline: 3px solid var(--color-electric-blue);
	outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
	outline: none;
}

/* ============================================
   Layout Styles - Header & Footer
   ============================================ */

/* Header Styles */
.tur-header {
	display: flex;
	background-color: var(--color-footer-bg);
	height: var(--header-height);
	width: 100%;
	flex-shrink: 0;
}

.tur-header .header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 24px 40px;
	width: 100%;
}

.tur-header .logo {
	display: flex;
	align-items: center;
	width: 177px;
	height: 82px;
	color: var(--color-white);
}

.tur-header .logo-image {
	display: block;
	width: 100%;
	height: 100%;
	filter: brightness(0) invert(1);
}

.tur-header .header-action {
	appearance: none;
	display: grid;
	place-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	margin-left: auto;
	color: var(--color-body-text);
	background-color: var(--color-white);
	border: 1px solid var(--color-white);
	box-shadow: 2px 2px 2px rgb(0 0 0 / 0.11);
	text-decoration: none;
	transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.tur-header .header-action:hover {
	background-color: var(--color-accent-yellow);
	border-color: var(--color-accent-yellow);
	text-decoration: none;
}

.tur-header .header-action:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

.tur-header .header-action-icon,
.tur-header .header-action-icon::before,
.tur-header .header-action-icon::after {
	display: block;
	width: 20px;
	height: 2px;
	background-color: currentcolor;
}

.tur-header .header-action-icon {
	position: relative;
}

.tur-header .header-action-icon::before,
.tur-header .header-action-icon::after {
	position: absolute;
	left: 0;
	content: '';
}

.tur-header .header-action-icon::before {
	top: -6px;
}

.tur-header .header-action-icon::after {
	top: 6px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

body.menu-open {
	overflow: hidden;
}

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.nav-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / 0.38);
}

.nav-drawer {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 477px);
	height: 100%;
	padding: 24px 40px;
	overflow-y: auto;
	color: var(--color-white);
	background-color: var(--color-footer-bg);
	box-shadow: -8px 0 24px rgb(0 0 0 / 0.18);
}

.nav-drawer-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	min-height: 48px;
}

.nav-drawer-logo {
	display: none;
	width: 138px;
	height: 64px;
	margin-right: auto;
}

.nav-drawer-logo img {
	display: block;
	width: 100%;
	height: 100%;
	filter: brightness(0) invert(1);
}

.nav-close {
	display: grid;
	place-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	color: var(--color-body-text);
	background-color: var(--color-white);
	border: 1px solid var(--color-white);
	box-shadow: 2px 2px 2px rgb(0 0 0 / 0.11);
	transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-close:hover {
	background-color: var(--color-accent-yellow);
	border-color: var(--color-accent-yellow);
}

.nav-close:focus-visible,
.nav-home-link:focus-visible {
	outline: 2px solid var(--color-accent-yellow);
	outline-offset: 3px;
}

.nav-close span,
.nav-close span::after {
	display: block;
	width: 20px;
	height: 2px;
	background-color: currentcolor;
}

.nav-close span {
	transform: rotate(45deg);
}

.nav-close span::after {
	content: '';
	transform: rotate(90deg);
}

.nav-drawer-menu {
	margin-top: 72px;
}

.nav-home-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 21px;
	min-height: 124px;
	padding: 12px 24px;
	color: var(--color-body-text);
	background-color: var(--color-white);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--transition-fast);
}

.nav-home-link:hover {
	color: var(--color-body-text);
	background-color: var(--color-accent-yellow);
	text-decoration: none;
}

.nav-home-arrow {
	position: relative;
	display: block;
	flex: 0 0 42px;
	width: 42px;
	height: 4px;
	background-color: currentcolor;
}

.nav-home-arrow::after {
	position: absolute;
	top: 50%;
	right: 0;
	width: 18px;
	height: 18px;
	border-top: 4px solid currentcolor;
	border-right: 4px solid currentcolor;
	content: '';
	transform: translateY(-50%) rotate(45deg);
}

/* Footer Styles */
.tur-footer {
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
	line-height: 1.3333;
	margin-top: auto;
	flex-shrink: 0;
}

.tur-footer .footer-inner {
	display: flex;
	flex-direction: column;
	gap: 72px;
	padding: 40px clamp(16px, 2.8vw, 40px);
}

.tur-footer .footer-main {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		'brand social'
		'columns columns';
	align-items: start;
	row-gap: 72px;
}

.tur-footer .footer-brand {
	grid-area: brand;
	color: var(--color-body-bg);
}

.tur-footer .footer-brand-logo {
	display: block;
	width: 138px;
	height: 64px;
}

.tur-footer .footer-columns {
	grid-area: columns;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.tur-footer .footer-menu {
	display: flex;
	flex-direction: column;
	gap: 40px;
	list-style: none;
}

.tur-footer .footer-menu a {
	display: inline-block;
	color: var(--color-footer-text);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
}

.tur-footer .footer-social {
	grid-area: social;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
}

.tur-footer .footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 29px;
	color: var(--color-footer-text);
	transition: opacity var(--transition-fast);
}

.tur-footer .footer-social a:hover,
.tur-footer .footer-menu a:hover,
.tur-footer .footer-bottom a:hover {
	color: var(--color-accent-yellow);
	text-decoration: none;
}

.tur-footer .footer-social svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentcolor;
}

.tur-footer .footer-social a:first-child,
.tur-footer .footer-social a:first-child svg {
	width: 28px;
	height: 28px;
}

.tur-footer .footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.tur-footer .footer-divider {
	display: none;
}

.tur-footer .footer-sponsors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.tur-footer .footer-sponsor-link {
	display: inline-flex;
	align-items: center;
}

.tur-footer .footer-sponsor-logo {
	display: block;
	width: auto;
	height: 32px;
	max-width: 120px;
	object-fit: contain;
}

.tur-footer .footer-partner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	flex-shrink: 0;
}

.tur-footer .footer-partner-text {
	font-size: var(--font-size-small);
	line-height: 1;
}

.tur-footer .footer-partner-link {
	display: inline-flex;
	align-items: center;
	color: var(--color-footer-text);
	text-decoration: none;
}

.tur-footer .footer-partner-link img {
	display: block;
	width: auto;
	height: 31px;
}

/* Responsive Layout */
@media (width <= 768px) {
	.tur-header .header {
		padding: 24px 16px;
	}

	.tur-header .logo {
		width: 138px;
		height: 64px;
	}

	.nav-drawer {
		padding: 38px 16px 24px;
	}

	.nav-drawer-logo {
		display: block;
	}

	.nav-drawer-menu {
		margin-top: 64px;
	}

	.nav-home-link {
		min-height: 112px;
		font-size: 32px;
	}
}

@media (width <= 400px) {
	.tur-footer .footer-main {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			'brand'
			'social'
			'columns';
		row-gap: 40px;
	}

	.tur-footer .footer-social {
		justify-content: flex-start;
	}
}

@media (width >= 1041px) {
	.tur-footer .footer-inner {
		gap: 40px;
	}

	.tur-footer .footer-main {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: 'brand columns social';
		gap: 0 96px;
	}

	.tur-footer .footer-brand-logo {
		width: 255px;
		height: auto;
	}

	.tur-footer .footer-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 322px));
		gap: 40px;
		justify-self: start;
	}

	.tur-footer .footer-menu {
		gap: 24px;
	}

	.tur-footer .footer-social {
		gap: 19px;
	}

	.tur-footer .footer-bottom {
		position: relative;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-top: 24px;
	}

	.tur-footer .footer-bottom::before {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background-image: repeating-linear-gradient(to right, var(--color-body-bg) 0, var(--color-body-bg) 8px, transparent 8px, transparent 16px);
		content: '';
	}

	.tur-footer .footer-divider {
		display: flex;
		align-items: center;
		gap: 24px;
	}

	.tur-footer .footer-partner {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}
}
