/*
Theme Name: TargetPartners 2026 Teema
Description: TargetPartners 2026 Teema
Author: Web-kehitys Miikka Asukas
Theme URI: https://miikka-asukas.fi
Author URI: https://miikka-asukas.fi
Version: 1.0
-----------------------------------------------------------------------------*/

*, *::before, *::after {

	box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, header, section, figcaption, footer, blockquote {

	margin: 0;
	padding: 0;
}

ul, ol {

	list-style: none;
}

b, strong {

	font-weight: 600;
}

html {

  --black: #000;
  --dark: #092340;
  --white: #fff;
  --light: #fdf8f4;
  --orange: #ee7326;
  --orange-dark: #aa4218;
  --blue: #134c97;
	--font:  "Ubuntu", "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --content-padding: clamp(1rem, 4vw, 2rem);
	--content-width: 80rem;
	--border-radius: 1rem;
  --shadow: 0 0 5px rgba(0, 0, 0, 0.15);;
}

html, body {

	scroll-behavior: smooth;
	height: 100%;
	width: 100%;
}

body {

	-ms-touch-action: manipulation;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1;
	font-size: 16px;
	background: var(--white);
	color: var(--dark);
  font-family: var(--font);
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3, h4, h5 {

  font-weight: 600;
}

::selection {

  background: var(--orange);
  color: var(--white);
}

::-moz-selection {

	background: var(--orange);
  color: var(--white);
}

img::selection {

  background: rgba(255, 255, 255, 0.5);
}

img {

	display: block;
	max-width: 100%;
}

a {

	color: inherit;
	text-decoration: none;
}

p {

  font-size: 1rem;
}

svg {

  display: block;
}

.sr_only {

  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Button */

button {

	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	background: transparent;
	border: none;
	cursor: pointer;
  margin: 0;
	color: var(--dark);
}

button.button, a.button {

  --size: 1rem;
	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
  width: auto;
	overflow: visible;
	font-family: var(--font);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	font-weight: 700;
  line-height: 1.2;
  text-transform: none;
	padding: clamp(0.875rem, 3vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  border: none;
	border-radius: 0.5rem;
	background: var(--orange);
	color: var(--white);
  text-align: center;
  transition: none;
	user-select: none;
}

a.button.arrow {

  display: inline-flex;
  gap: 0.5rem;
}

a.button.arrow svg {

  width: 1.25rem;
}

a.button.arrow svg path {

  fill: var(--white);
}

button.selected, a.button.selected {

  background: var(--brown);
}

button::-moz-focus-inner {

  border: 0;
  padding: 0;
}

button.loading {

	pointer-events: none;
	color: transparent !important;
}

button.loading:after {

	--size: clamp(1.5rem, 4vw, 2rem);
	--border: clamp(0.24rem, 0.75vw, 0.3rem);
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: calc(var(--size) / 2 * -1) 0 0 calc(var(--size) / 2 * -1);
  border: var(--border) solid var(--white);
  border-top: var(--border) solid var(--orange);
  border-radius: 50%;
  width: var(--size);
  height: var(--size);
  animation: spin 1s linear infinite;
	transition: none;
}

@keyframes spin {

  0% { transform: rotate(0deg);  }
  100% { transform: rotate(360deg); }
}

@media screen and (pointer: fine) {

  button.button:hover, a.button:hover {

    background: var(--orange-dark);
  }

	a[href^="tel:"]:hover, a[href^="mailto:"]:not(.button):hover {

		text-decoration: underline;
	}
}

/* Menu */

.menu {

	--color: var(--orange);
	--color-open: var(--dark);
	--width: 2.5rem;
	--height: calc(var(--width) * 0.6);
	--border: calc(var(--height) * 0.2);
  position: relative;
  display: none;
	min-width: var(--width);
  width: var(--width);
  height: var(--height);
  background: linear-gradient(var(--color) 0, var(--color) 100%);
  background-size: 100% var(--border);
  background-position: center center;
  background-repeat: no-repeat;
  transition: background .1s .1s;
  border: none;
  padding: 0;
}

.menu:before,
.menu:after {

  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  height: var(--border);
  background: var(--color);
  transition: .2s all ease;
  transform-origin: center center;
  will-change: transform, color, top;
}

.menu:before {

  top: 0;
}

.menu:after {

	bottom: 0;
}

.menu[aria-expanded="true"] {

	background-size: 100% 0;
	transition: none;
}

.menu[aria-expanded="true"]:before,
.menu[aria-expanded="true"]:after {

	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--color-open);
	transition: .2s all ease-out;
}

.menu[aria-expanded="true"]:before {

	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Header */

.header {

	position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.header .inner {

  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem var(--content-padding);
  gap: 2rem;
}

.header .logo {

  display: block;
}

.header .logo figure {

  display: flex;
  flex-flow: column nowrap;
  gap: 0.25rem;
}

.header .logo figure figcaption {

  font-size: 0.82rem;
  white-space: nowrap;
}

.header .logo img {

	display: block;
	width: 100%;
  max-width: 14rem;
}

.header .nav {

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  font-weight: 700;
}

.header .nav .mobile {

	display: none;
}

.header .nav a[aria-current="page"] {

  text-decoration: underline;
}

@media screen and (pointer: fine) {

	.header .nav a:not(.button):hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 64rem) {

	.header .inner {

		justify-content: flex-start;
	}

	.header .logo {

		margin-right: auto;
	}

	.header .menu {

		display: block;
		order: 3;
	}

	.header .nav {

		--size: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark);
    margin: 0;
    padding: 2rem;
		padding-bottom: 2.5rem;
    transform: scaleY(0);
    transform-origin: top center;
    pointer-events: none;
    transition: 0.2s ease all;
		z-index: 3;
		gap: 1.875rem;
  }

  .header .nav li {

    opacity: 0;
  }

  .header .inner .menu[aria-expanded="true"] + .nav {

    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .header .inner .menu[aria-expanded="true"] + .nav li {

    opacity: 1;
    transition: 0.2s 0.2s ease all;
  }
}

@media screen and (max-width: 60rem) {

	.header .links {

		display: none;
	}

	.header .nav .mobile {

		display: block;
	}

}

/* Landing */

.landing {

  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background-color: var(--dark);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(images/landing_3.jpg);
  aspect-ratio: 1 / 0.3;
	overflow: hidden;
}

.landing .inner {

  display: flex;
  align-items: center;
}

.landing .inner .text {

  padding: 6rem 0 4rem 6rem;
}

.landing .inner h1 {

  font-size: clamp(2.25rem, 3vw, 4.5rem);
  line-height: 1.33;
}

.landing .inner p {

  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 500;
  margin: 2rem 0;
  line-height: 1.5;
}

@media screen and (max-width: 96rem) {

  .landing {

		aspect-ratio: auto;
  }
}

@media screen and (max-width: 64rem) {

  .landing {

    display: block;
  }
}

@media screen and (max-width: 54rem) {

	.landing {

		background-position: top center;
	}

  .landing .inner {

    display: block;
  }

	.landing .inner .text {

		padding: 6rem var(--content-padding);
		text-align: center;
		background: rgba(0, 0, 0, 0.75);
		color: var(--white);
	}
}

/* Header animations */

@media screen and (prefers-reduced-motion: no-preference) {

	.landing .inner h1,
	.landing .inner p,
	.landing .inner a {

		opacity: 0;
	}

 	.landing.show .inner h1,
	.landing.show .inner p,
	.landing.show .inner a {

		animation: landing_in 0.4s ease 0s 1 forwards;
	}

	.landing.show .inner p {

		animation-delay: 200ms;
	}

	.landing.show .inner a {

		animation-delay: 400ms;
	}
}

@keyframes landing_in {

  0% {

    opacity: 0;
    transform: translateX(-30%);
  }

  100% {

    opacity: 1;
    transform: translateX(0);
  }
}

/* Content */

main {

  padding: 2rem 0 0 0;
	overflow: hidden;
}

.landing + main {

  padding-bottom: 2rem;
}

.content {

  padding: 2rem 0;
}

.content.no_padding {

  padding: 0;
}

.content.padding {

  padding-top: 4rem;
}

.content.dark {

  background: var(--dark);
  color: var(--white);
  margin-top: 2rem;
}

.content .inner {

  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.content .elem + .elem {

  padding-top: 2rem;
}

/* Text */

.content .text {

  --text-size: clamp(1rem, 3vw, 1.25rem);
}

.content .text.light {

	background: var(--light);
	padding: 2rem;
}

.content .text.center {

  text-align: center;
}

.content .text h2 {

  font-size: clamp(1.5rem, 2vw, 2rem);
  text-transform: uppercase;
}

.content .text h2 span {

  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.content .text h2 span:before {

  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 5rem;
  height: 2px;
  background: var(--orange);
}

.content .text h3 {

  font-size: clamp(1.25rem, 6vw, 1.5rem);
  text-transform: uppercase;
}

.content .text p,
.content .text ul li {

  font-size: var(--text-size);
  margin: 2rem 0;
  line-height: 1.5;
}

.content .text p + h2 {

  margin-top: 1rem;
}

.content .text img.icon {

	display: inline-block;
	width: var(--text-size);
	height: var(--text-size);
	vertical-align: middle;
}

.content .text .sep {

  padding: 0 0.5rem;
}

.content .text iframe {

	width: 100%;
	height: auto;
	min-height: 400px;
}

.content .text a:not(.button) {

  color: var(--orange);
}

.content .text ul {

  list-style: disc;
  margin-left: 1rem;
}

@media screen and (prefers-reduced-motion: no-preference) {

	.content .text h2:has(span),
	.content .text h2 span:before {

		opacity: 0;
	}

 	.content .text.show h2:has(span) {

		animation: title_in 0.4s ease 0s 1 forwards;
	}

	.content .text.show h2 span:before {

		animation: title_before_in 0.4s ease 0.2s 1 forwards;
	}
}

@keyframes title_in {

  0% {

    opacity: 0;
    transform: translateY(0%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title_before_in {

  0% {

    opacity: 0;
    transform: translateX(-50%);
  }

  100% {

    opacity: 1;
    transform: translateX(0);
  }
}

/* info */

.text.info {

	display: none;
}

.text.info.show {

	display: block;
	animation: info_in 0.4s ease 0s 1 forwards;
}

@keyframes info_in {

  0% {

    opacity: 0;
    transform: translateY(25%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* Posts */

.posts {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.posts .post {

  display: flex;
	flex-flow: column nowrap;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.posts .post figure {

  background-color: var(--dark);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
  padding-bottom: 40%;
}

.posts .post .caption {

	flex: 1;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
  padding: 2rem;
}

.posts .post h3 {

  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.5;
}

.posts .post p {

  margin: 1rem 0 2rem 0;
  line-height: 1.5;
}

.posts .post button {

  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.posts .post button svg {

  width: 1rem;
}

.posts .post button svg path {

  fill: var(--dark);
}

@media screen and (pointer: fine) {

  .posts .post button:hover {

    text-decoration: underline;
  }
}

@media screen and (max-width: 60rem) {

	.posts {

	  grid-template-columns: 1fr;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.posts .post {

		opacity: 0;
	}

 	.posts.show .post {

		animation: post_in 0.4s ease 0s 1 forwards;
		animation-delay: calc(var(--i) * 200ms);
	}
}

@keyframes post_in {

  0% {

    opacity: 0;
    transform: translateY(50%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlights */

.highlights {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 4rem 0;
	margin-top: -2rem;
}

.highlight {

  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 2rem;
}

.highlights .highlight + .highlight:before {

  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.highlight svg {

  width: 3rem;
  min-width: 3rem;
}

.highlight svg path {

  fill: var(--orange);
}

.highlight h3 {

  font-size: 1.185rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.highlight h3 span {

  display: block;
  font-size: clamp(2.5rem, 6vw, 3rem);
  line-height: 1;
  margin-bottom: 0.25rem;
}

@media screen and (max-width: 80rem) {

	.highlights {

		grid-template-columns: 1fr 1fr;
		gap: 2rem 0;
		padding: 2rem;
	}

	.highlights .highlight + .highlight:nth-of-type(3):before {

		content: none;
	}

	.highlight .caption {

		width: 100%;
		text-align: center;
	}
}

@media screen and (max-width: 40rem) {

	.highlights {

		grid-template-columns: 1fr;
		gap: 2rem 0;
	}

	.highlights .highlight {

		padding: 0;
	}

	.highlights .highlight + .highlight:before {

		content: none;
	}

	.highlight .caption {

		width: 100%;
		text-align: left;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.highlights .highlight svg,
	.highlights .highlight h3,
	.highlights .highlight p {

		opacity: 0;
	}

 	.highlights .highlight svg {

		animation: highlight_icon_in 0.4s ease 0s 1 forwards;
		animation-delay: calc(var(--i) * 100ms);
	}

	.highlights.show .highlight h3 {

		animation: highlight_title_in 0.4s ease 50s 1 forwards;
		animation-delay: calc(var(--i) * 150ms);
	}

	.highlights.show .highlight p {

		animation: highlight_title_in 0.4s ease 100s 1 forwards;
		animation-delay: calc(var(--i) * 200ms);
	}
}

@keyframes highlight_icon_in {

  0% {

    opacity: 0;
    transform: translateY(25%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlight_title_in {

  0% {

    opacity: 0;
    transform: translateY(25%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}


/* Lifts */

.lifts {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lifts .lift {

  display: flex;
  padding: 2rem;
  box-shadow: var(--shadow);
  gap: 1rem;
  border-radius: var(--border-radius);
}

.lifts .lift figure {

  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  min-width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--orange);
}

.lifts .lift:nth-child(2) figure {

  background: var(--blue);
}

.lifts .lift:nth-child(3) figure {

  background: var(--dark);
}

.lifts .lift figure svg {

  width: 2rem;
}

.lifts .lift figure svg path {

  fill: var(--white);
}

.lifts .caption {

  display: flex;
  flex-flow: column nowrap;
}

.lifts h3 {

  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.33;
  margin-top: 0.75rem;
}

.lifts .lift p {

  margin: 1rem 0 2rem 0;
  line-height: 1.5;
}

.lifts .lift a {

  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: auto;
}

.lifts .lift a svg {

  width: 1rem;
}

.lifts .lift a svg path {

  fill: var(--dark);
}

.lifts .lift:first-child a {

  color: var(--orange);
}

.lifts .lift:first-child a svg path {

  fill: var(--orange);
}

.lifts .lift:nth-of-type(2) a {

  color: var(--blue);
}

@media screen and (pointer: fine) {

  .lifts .lift a:hover {

    text-decoration: underline;
  }
}

@media screen and (max-width: 64rem) {

	.lifts {

		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.lifts .lift {

		opacity: 0;
	}

 	.lifts.show .lift {

		animation: post_in 0.4s ease 0s 1 forwards;
		animation-delay: calc(var(--i) * 200ms);
	}
}

/* Partners */

.partners {

  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.partners img {

  display: block;
  max-height: clamp(2rem, 6vw, 4rem);
  width: auto;
}

@media screen and (max-width: 64rem) {

	.partners {

	  justify-content: center;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.partners img {

		opacity: 0;
	}

 	.partners.show img {

		animation: partners_in 0.4s ease 0s 1 forwards;
		animation-delay: calc(var(--i) * 100ms);
	}
}

@keyframes partners_in {

  0% {

    opacity: 0;
  }

  100% {

    opacity: 1;
  }
}

/* Contact */

.contact {

  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  padding: 4rem 0;
}

.contact .half {

  display: block;
}

.contact h2 {

  font-size: clamp(2rem, 6vw, 4.5rem);
}

.contact p {

  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 400;
  margin: 1rem 0 0 0;
  line-height: 1.5;
}

.contact a.button {

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact a.button svg {

  width: 2rem;
  min-width: 2rem;
}

.contact a.button svg path {

  fill: var(--white);
}

.contact a.button span {

  white-space: nowrap;
}

.contact p.call {

	font-size: 1.5rem;
	font-weight: 600;
}

.contact p.call a {

	color: var(--orange);
	text-decoration: underline;
}

@media screen and (max-width: 54rem) {

	.contact {

		flex-flow: column nowrap;
		justify-content: center;
	}

	.contact .half {

		text-align: center;
	}

	.contact h2 {

		margin-bottom: 2rem;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.contact h2,
	.contact p,
	.contact a.button {

		opacity: 0;
	}

 	.contact.show h2 {

		animation: contact_left_in 0.4s ease 0s 1 forwards;
	}

	.contact.show p {

		animation: contact_left_in 0.4s ease 0.2s 1 forwards;
	}

	.contact.show a.button {

		animation: contact_right_in 0.4s ease 0.35s 1 forwards;
	}
}

@keyframes contact_left_in {

  0% {

    opacity: 0;
    transform: translateX(-30%);
  }

  100% {

    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contact_right_in {

  0% {

    opacity: 0;
    transform: translateX(30%);
  }

  100% {

    opacity: 1;
    transform: translateX(0);
  }
}

/* Article */

.content .text.post {

	color: var(--dark);
  max-width: 68.75rem;
  margin: 0 auto;
}

.content .text.post h2 {

	color: var(--orange);
	margin: 2rem 0;
}

.content .text.post h2:first-of-type {

	margin-top: 0;
	margin-bottom: 4rem;
  font-size: clamp(2rem, 6vw, 3rem);
	line-height: 1.33;
}

.content .text.post img {

	display: inline;
}

.content .text.post .wp-block-table {

	text-align: left;
	margin: 20px 0;
}

.content .text.post .wp-block-table td {

	padding: 10px 20px;
	line-height: 1.5;
}

.content .text.post .wp-block-table tr:nth-of-type(odd) td {

	background: #efefef;
}



/* Footer */

.footer {

  background: var(--dark);
  color: var(--white);
}

.footer .inner {

  display: grid;
  gap: 4rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem var(--content-padding) 2rem var(--content-padding);
}

.footer .inner .top {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer .logo img {

  width: 100%;
  max-width: 12rem;
}

.footer svg path {

  fill: var(--white);
}

.footer .nav {

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  font-weight: 500;
}

.footer .nav a[aria-current="page"] {

	text-decoration: underline;
}

.footer .links {

  display: flex;
  gap: 1rem;
}

.footer .links svg {

  width: 100%;
  max-width: 2rem;
}

.footer .claimer {

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer .claimer p,
.footer .claimer a {

  font-size: 0.875rem;
}

.footer .claimer a {

  text-decoration: underline;
}

@media screen and (max-width: 64rem) {

	.footer .nav {

		display: none;
	}
}

@media screen and (pointer: fine) {

  .footer a:hover {

    text-decoration: underline;
  }
}
