/*
Theme Name: Hello Elementor Child - NuMa r.y.
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor
Author: Janne
Author URI: https://www.nurmijarvenmaila.fi/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =====================================================
   PERUSASETUKSET
   ===================================================== */

:root {
	--numa-blue: #173d7a;
	--numa-header-top: #9fb1bc;
	--numa-header-bottom: #d9e2e7;
	--numa-text: #000000;
}

body {
	margin: 0;
	color: var(--numa-text);
	font-family: Arial, Helvetica, sans-serif;
}

/* Normaalin kappaletekstin fonttikoko */
p {
	font-size: 20px;
}

/* Listausten fonttikoko */
ul li,
ol li {
	font-size: 20px;
}

/* =====================================================
   TEEMAN HEADER, DESKTOP
   ===================================================== */

.site-header {
	width: 100%;
	min-height: 150px;
	padding: 0 40px;
	background: linear-gradient(180deg, var(--numa-header-top) 0%, var(--numa-header-bottom) 100%);
	border-bottom: none;
	box-shadow: none;
}

/* Headerin sisempi rakenne */
.site-header .header-inner,
.site-header > .container,
.site-header .site-header-inner {
	max-width: 1280px;
	width: 100%;
	min-height: 150px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	background: transparent;
}

/* Logoalue */
.site-header .site-branding,
.site-header .site-logo,
.site-header .custom-logo-link {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-right: 30px;
}

/* Logo */
.site-header .site-branding img,
.site-header .site-logo img,
.site-header .custom-logo {
	max-height: 130px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* Sivuston nimi, jos tekstilogo on käytössä */
.site-title,
.site-title a {
	color: #111111;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

/* Navigaatio */
.site-header .site-navigation {
	display: flex;
	align-items: center;
	flex: 1;
	background: transparent;
	border: none;
}

/* Valikko */
.site-header .site-navigation ul.menu,
.site-header .site-navigation ul {
	display: flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
	border: none;
}

/* Linkit */
.site-header .site-navigation a {
	color: #000000;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	padding: 12px 0;
	background: transparent;
}

.site-header .site-navigation a:hover,
.site-header .site-navigation .current-menu-item > a,
.site-header .site-navigation .current-menu-parent > a {
	color: var(--numa-blue);
}

/* Pudotusvalikon nuoli 
.site-header .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.site-header .menu-item-has-children > a::after {
	content: "▼";
	font-size: 10px;
	color: #6b7280;
	line-height: 1;
	transform: translateY(-1px);
}*/

/* Varmistetaan ettei headerin sisälle jää valkoista taustaa */
.site-header *,
.site-header .site-navigation,
.site-header .site-navigation ul,
.site-header .site-branding {
	border-color: transparent;
}

/* =====================================================
   YLÄVALIKON LINKKIEN TASAUS
   Pitää kaikki päävalikon linkit samalla korkeudella
   ===================================================== */

.site-header .site-navigation ul.menu,
.site-header .site-navigation ul {
	display: flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
	border: none;
}

/* Jokainen päävalikon kohta samalle tasolle */
.site-header .site-navigation li,
.site-header .site-navigation ul.menu > li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	line-height: 1;
}

/* Linkit keskitetään pystysuunnassa */
.site-header .site-navigation a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	padding: 12px 0;
	background: transparent;
}

/* Jos linkissä on pudotusvalikon nuoli, sekin pysyy samalla linjalla */
.site-header .menu-item-has-children > a {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* =====================================================
   OTTELUPALKKI, DESKTOP
   Näkyy oikeassa yläkulmassa ilman valkoista taustaa
   ===================================================== */

@media (min-width: 1025px) {
	.numa-kotiottelu-topbar {
		position: fixed;
		top: 24px;
		right: 24px;
		z-index: 99999;

		display: flex !important;
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;

		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
	}

	body.admin-bar .numa-kotiottelu-topbar {
		top: 56px;
	}

	.numa-kotiottelu-topbar__title {
		padding: 4px 2px;
		font-size: 12px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: #111827;
		text-align: right;
		background: transparent !important;
	}

	.numa-kotiottelu-topbar__list {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 7px;
		background: transparent !important;
	}

	.numa-kotiottelu-topbar__item {
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 8px 13px;
		border-radius: 999px;
		background: rgba(17, 24, 39, 0.94) !important;
		color: #ffffff;
		font-size: 13px;
		line-height: 1;
		white-space: nowrap;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}

	.numa-kotiottelu-topbar__category {
		font-size: 10px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		opacity: 0.8;
	}

	.numa-kotiottelu-topbar__opponent {
		font-weight: 800;
	}

	.numa-kotiottelu-topbar__details {
		opacity: 0.88;
	}
}


/* =====================================================
   OTTELUPALKKI, TABLET + MOBIILI
   Näkyy alhaalla korttina
   ===================================================== */

@media (max-width: 1024px) {
	.numa-kotiottelu-topbar {
		position: fixed;
		top: auto;
		right: 12px;
		left: 12px;
		bottom: 12px;
		z-index: 99999;

		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;

		background: rgba(255, 255, 255, 0.96);
		border: 1px solid rgba(17, 24, 39, 0.10);
		border-radius: 18px;
		padding: 12px;
		box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);

		opacity: 1;
		transform: translateY(0);
		transition:
			opacity 0.35s ease,
			transform 0.35s ease,
			visibility 0.35s ease;
	}

	body.admin-bar .numa-kotiottelu-topbar {
		top: auto;
	}

	.numa-kotiottelu-topbar__title {
		padding: 4px 2px 2px;
		font-size: 12px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: #111827;
		text-align: center;
	}

	.numa-kotiottelu-topbar__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.numa-kotiottelu-topbar__item {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		padding: 8px 10px;
		border-radius: 999px;
		background: #111827;
		color: #ffffff;
		font-size: 12px;
		line-height: 1;
		white-space: nowrap;
		box-shadow: none;
	}

	.numa-kotiottelu-topbar__category {
		font-size: 10px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		opacity: 0.8;
	}

	.numa-kotiottelu-topbar__opponent {
		font-weight: 800;
	}

	.numa-kotiottelu-topbar__details {
		opacity: 0.88;
	}

	.numa-kotiottelu-topbar.is-hidden {
		opacity: 0;
		transform: translateY(24px);
		visibility: hidden;
		pointer-events: none;
	}
}


/* =====================================================
   TABLET HEADER
   ===================================================== */

@media (max-width: 1024px) {
	.site-header {
		min-height: 95px;
		padding: 0 20px;
	}

	.site-header .header-inner,
	.site-header > .container,
	.site-header .site-header-inner {
		min-height: 95px;
	}

	.site-header .site-branding,
	.site-header .site-logo,
	.site-header .custom-logo-link {
		margin-right: 24px;
	}

	.site-header .site-branding img,
	.site-header .site-logo img,
	.site-header .custom-logo {
		max-height: 72px;
	}

	.site-header .site-navigation ul.menu,
	.site-header .site-navigation ul {
		gap: 26px;
	}

	.site-header .site-navigation a {
		font-size: 15px;
	}
}


/* =====================================================
   MOBIILI HEADER
   ===================================================== */

@media (max-width: 767px) {
	.site-header {
		min-height: 82px;
		padding: 0 16px;
		display: flex;
		align-items: center;
	}

	.site-header .header-inner,
	.site-header > .container,
	.site-header .site-header-inner {
		min-height: 82px;
	}

	.site-header .site-branding,
	.site-header .site-logo,
	.site-header .custom-logo-link {
		margin-right: 0;
	}

	.site-header .site-branding img,
	.site-header .site-logo img,
	.site-header .custom-logo {
		max-height: 60px;
	}

	.site-title,
	.site-title a {
		font-size: 28px;
		line-height: 1.1;
	}

	.site-description {
		font-size: 14px;
		line-height: 1.3;
	}

	.site-navigation-toggle,
	.site-header .site-navigation-toggle {
		width: 54px;
		height: 54px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}
}


/* =====================================================
   PIENET PUHELIMET
   ===================================================== */

@media (max-width: 480px) {
	.numa-kotiottelu-topbar__item {
		width: 100%;
		justify-content: center;
		white-space: normal;
		line-height: 1.25;
		text-align: center;
	}
}

/* =====================================================
   FOOTER
   Sama liukuväri kuin headerissa, mutta päinvastoin
   ===================================================== */

.site-footer {
	background: linear-gradient(
		180deg,
		var(--numa-header-bottom) 0%,
		var(--numa-header-top) 100%
	);
	border-top: none;
	box-shadow: none;
	color: #000000;
	padding: 40px 40px;
}

/* Footerin sisempi sisältö */
.site-footer .footer-inner,
.site-footer .site-footer-inner,
.site-footer > .container {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background: transparent;
}

/* Footerin linkit */
.site-footer a {
	color: #000000;
	text-decoration: none;
	font-weight: 600;
}

.site-footer a:hover {
	color: var(--numa-blue);
}

/* Footerin tekstit */
.site-footer p,
.site-footer span,
.site-footer div {
	color: #000000;
}

/* Footerin logo */
.site-footer img,
.site-footer .custom-logo {
	max-height: 90px;
	width: auto;
	display: block;
}

/* Mobiili */
@media (max-width: 767px) {
	.site-footer {
		padding: 32px 20px;
		text-align: center;
	}

	.site-footer .footer-inner,
	.site-footer .site-footer-inner,
	.site-footer > .container {
		flex-direction: column;
		justify-content: center;
		gap: 18px;
	}

	.site-footer img,
	.site-footer .custom-logo {
		max-height: 72px;
	}
}