/*
Theme Name: Developer Test
Template: twentytwentyfive
Description: Block-editor build of the "Developer Test" Figma homepage (Rp8jYvoataAi5QcIE1TcR4). Child of Twenty Twenty-Five.
Author: 121 Group
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: developer-test
*/

/* ---------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------- */
:root {
	--dt-ink: #2b2a34;
	--dt-mist: #eaeef1;
	--dt-mist-light: #f0f4f7;
	--dt-teal: #add7d7;
	--dt-blush: #f0dad0;
	--dt-rose: #e4b7a8;
	--dt-serif: Georgia, "Times New Roman", Times, serif;
	--dt-sans: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	/* Content box: 1290px wide; at 1440 it sits 110px from the left and 40px from the right (as in Figma). */
	--dt-gutter: 40px;
	--dt-cw: min(1290px, calc(100vw - 2 * var(--dt-gutter)));
	--dt-left: max(var(--dt-gutter), calc(50vw - 610px));
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

.dt-wrap {
	box-sizing: border-box;
	width: var(--dt-cw);
	max-width: none !important;
	margin-left: var(--dt-left) !important;
	margin-right: 0 !important;
}

.dt-main,
.dt-main > * {
	margin-block: 0;
}

/* Figma wraps text normally; Twenty Twenty-Five sets text-wrap pretty/balance. */
.dt-main :is(h1, h2, h3, p),
.dt-header :is(h1, h2, h3, p) {
	text-wrap: wrap;
}

.dt-main figure.wp-block-image {
	margin: 0;
}

.dt-main .wp-block-image img,
.dt-header .wp-block-image img {
	display: block;
}

/* Buttons share one base. */
.dt-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 4px;
	font-family: var(--dt-sans);
	text-decoration: none;
	transition: filter 0.2s ease;
}

.dt-btn .wp-block-button__link:hover,
.dt-btn .wp-block-button__link:focus-visible {
	filter: brightness(0.95);
}

/* ---------------------------------------------------------------
 * Header (sits on top of the hero video)
 * ------------------------------------------------------------- */
.dt-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
}

.admin-bar .dt-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.dt-header__inner {
	position: relative;
}

.dt-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 28px;
}

.dt-region {
	display: flex !important;
	align-items: center;
	gap: 0 !important;
	box-sizing: border-box;
	width: 191px;
	height: 38px;
	padding: 0 14px 0 14px;
	background: #fff;
	border-radius: 6px;
	color: #000;
	cursor: default;
}

.dt-region::after {
	content: "";
	flex: 0 0 10px;
	width: 10px;
	height: 7px;
	margin-left: auto;
	background: url("assets/icons/chevron-small.svg") center / contain no-repeat;
}

.dt-region__flag img {
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.dt-region__label {
	margin: 0 0 0 5px !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.dt-contact .wp-block-button__link {
	height: 38px;
	padding: 0 28px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	background: var(--dt-teal);
	color: var(--dt-ink);
}

.dt-header__main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-top: 44px !important;
}

.dt-logo {
	margin: 0 0 0 3px !important;
}

.dt-logo img {
	width: 60px;
	height: 60px;
}

/* Navigation: inline on desktop, overlay (hamburger) below 1200px. */
.dt-nav {
	--navigation-layout-justification-setting: flex-end;
	margin-right: 4px;
	font-family: var(--dt-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #fff;
}

.dt-nav .wp-block-navigation__container {
	gap: 0 44px;
}

.dt-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	color: #fff;
}

.dt-nav .wp-block-navigation-item__content::after {
	content: "";
	width: 10px;
	height: 7px;
	background: currentColor;
	-webkit-mask: url("assets/icons/chevron-small.svg") center / contain no-repeat;
	mask: url("assets/icons/chevron-small.svg") center / contain no-repeat;
}

.dt-nav .wp-block-navigation-item__content:hover,
.dt-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--dt-teal);
}

@media (min-width: 1200px) {
	.dt-nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.dt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: flex !important;
		position: static !important;
		width: auto;
		background: transparent !important;
		color: inherit !important;
		padding: 0 !important;
		z-index: auto;
	}

	.dt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.dt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
	.dt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: flex;
		margin: 0;
		padding: 0;
	}
}

/* Hamburger button: white box with three lines (Figma mobile). */
.dt-nav .wp-block-navigation__responsive-container-open {
	box-sizing: border-box;
	width: 46px;
	height: 38px;
	padding: 0;
	align-items: center;
	justify-content: center;
	background: #fff url("assets/icons/hamburger.svg") center / 28px 20px no-repeat;
	border-radius: 6px;
}

.dt-nav .wp-block-navigation__responsive-container-open svg {
	opacity: 0;
}

/* Open overlay menu. */
.dt-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff !important;
	color: var(--dt-ink) !important;
	padding: 28px 21px !important;
}

.dt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 24px;
}

.dt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--dt-ink);
	font-size: 18px;
}

/* ---------------------------------------------------------------
 * Hero (Cover block with the video)
 * ------------------------------------------------------------- */
.dt-hero.wp-block-cover {
	min-height: 1038px !important;
	padding: 0 !important;
	align-items: flex-start;
	background: #0d0c16;
}

.dt-hero .wp-block-cover__background {
	opacity: 0.55 !important;
	background-color: #000 !important;
}

.dt-hero .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: none !important;
	color: #fff;
}

.dt-hero__content {
	padding-top: 263px;
}

.dt-hero__title {
	max-width: 520px;
	margin: 0 !important;
	font-size: 53px !important;
	line-height: 75px !important;
	color: #fff !important;
}

.dt-hero__lead {
	margin: 25px 0 0 !important;
	font-family: var(--dt-serif);
	font-size: 24px;
	line-height: 34px;
	color: #fff;
}

.dt-cards {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	margin: 127px 0 0 -5px !important;
	width: calc(100% + 1px);
}

.dt-card {
	display: flex !important;
	flex: 1 1 0 !important;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	min-height: 252px;
	padding: 28px 45px 32px 32px;
	color: #fff;
}

.dt-card--1 { background: #0d0c16; }
.dt-card--2 { background: #21202a; }
.dt-card--3 { background: #3f3e48; }

.dt-card__head {
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.dt-card__title {
	margin: 0 !important;
	font-size: 32px !important;
	line-height: 45px !important;
	color: #fff !important;
}

.dt-card__icon {
	flex: 0 0 auto;
	margin-top: 10px !important;
}

.dt-card__icon img { height: auto; }
.dt-card--1 .dt-card__icon img { width: 50px; }
.dt-card--2 .dt-card__icon img { width: 42px; }
.dt-card--3 .dt-card__icon img { width: 64px; }

.dt-card__text {
	margin: 12px 0 0 !important;
	font-size: 16px;
	line-height: 28px;
	color: #a9a8ae;
}

.dt-card__toggle {
	align-self: center;
	margin: auto 0 0 !important;
	padding-top: 22px;
}

.dt-card__toggle img {
	width: 20px;
	height: 12px;
}

/* ---------------------------------------------------------------
 * Lower area background: light "<" band (Figma desktop)
 * ------------------------------------------------------------- */
.dt-lower {
	position: relative;
	background-color: var(--dt-mist);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='1540' viewBox='0 0 1440 1540'%3E%3Cpolygon fill='%23F0F4F7' points='985,0 1253,0 572,534 1855,1540 1130,1540 76,713'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(var(--dt-left) - 110px) 0;
	background-size: 1440px 1540px;
	padding-bottom: 29px;
}

/* ---------------------------------------------------------------
 * Logo strip
 * ------------------------------------------------------------- */
.dt-logos {
	padding-top: 59px;
}

.dt-logos__title {
	margin: 0 0 0 1px !important;
	font-size: 26px !important;
	line-height: 36px !important;
}

.dt-logos__slider {
	display: flex !important;
	align-items: center;
	margin-top: 35px !important;
	height: 50px;
}

.dt-logos__track {
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 0 !important;
	padding: 0 64px 0 61px;
	transition: opacity 0.2s ease;
}

.dt-logos__track.is-fading {
	opacity: 0;
}

.dt-logos__track .wp-block-image {
	flex: 0 0 auto;
}

.dt-logos__track img {
	height: auto;
	max-width: none;
}

.dt-logo--meraki img { width: 190px; mix-blend-mode: multiply; }
.dt-logo--sodastream img { width: 182px; }
.dt-logo--ft img { width: 162px; mix-blend-mode: multiply; }
.dt-logo--facebook img { width: 153px; }
.dt-logo--fifa img { width: 92px; }

.dt-logos__arrow {
	flex: 0 0 auto;
	width: 14px;
	height: 24px;
	padding: 0;
	border: 0;
	background: url("assets/icons/arrow-left.svg") center / contain no-repeat;
	cursor: pointer;
}

.dt-logos__arrow--prev { margin-left: 4px; }
.dt-logos__arrow--next { margin-right: 0; background-image: url("assets/icons/arrow-right.svg"); }

.dt-logos__arrow:hover,
.dt-logos__arrow:focus-visible {
	filter: brightness(0.6);
}

/* ---------------------------------------------------------------
 * Training: white card overlapping the photo
 * ------------------------------------------------------------- */
.dt-training {
	position: relative;
	margin-top: 103px !important;
	padding-top: 120px;
}

.dt-training__photo {
	width: 48.527% !important;
	margin-left: 39.147% !important;
	aspect-ratio: 626 / 443;
}

.dt-training__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 50%;
	border-radius: 6px;
}

.dt-training__card {
	position: absolute !important;
	top: 0;
	left: 1.163%;
	z-index: 2;
	box-sizing: border-box;
	width: 54.109%;
	min-height: calc(var(--dt-cw) * 0.34341 + 32px);
	padding: 92px 40px 60px 109px;
	background: #fff;
	border-radius: 8px;
}

.dt-eyebrow {
	margin: 0 !important;
	font-size: 16px;
	font-weight: 800;
	color: var(--dt-ink);
	line-height: 20px;
	text-transform: uppercase;
}

.dt-training__title {
	max-width: 440px;
	margin: 21px 0 0 !important;
	font-size: 34px !important;
	line-height: 48px !important;
}

.dt-training__text {
	max-width: 420px;
	margin: 14px 0 0 !important;
	line-height: 28px;
}

.dt-training__buttons {
	margin-top: 29px !important;
}

.dt-btn--teal .wp-block-button__link {
	min-width: 174px;
	height: 51px;
	padding: 0 35px;
	font-size: 18px;
	font-weight: 600;
	background: var(--dt-teal);
	color: #0d0c16;
}

/* ---------------------------------------------------------------
 * Consulting box
 * ------------------------------------------------------------- */
.dt-consult {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 441px;
	column-gap: 50px;
	box-sizing: border-box;
	width: calc(var(--dt-cw) - 5px) !important;
	margin-top: 192px !important;
	margin-left: calc(var(--dt-left) + 2px) !important;
	padding: 45px 46px 42px 88px;
	background: var(--dt-blush);
	border-radius: 8px;
}

.dt-consult__body {
	grid-column: 1;
	grid-row: 1;
}

.dt-consult__photo {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
}

.dt-consult__photo img {
	width: 441px;
	height: 385px;
	object-fit: cover;
}

.dt-consult__title {
	margin: 11px 0 0 !important;
	font-size: 33px !important;
	line-height: 48px !important;
}

.dt-tiles {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 134px));
	justify-content: space-between;
	max-width: 645px;
	column-gap: 12px;
	row-gap: 19px;
	margin-top: 31px !important;
}

.dt-tile {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	height: 121px;
	padding-top: 9px;
	background: var(--dt-rose);
	border-radius: 4px;
}

.dt-tile__label {
	margin: 0 !important;
	font-family: var(--dt-serif);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 20px;
}

.dt-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	margin-top: 14px !important;
}

.dt-tile__icon img { width: 48px; height: 48px; }
.dt-tile__icon img[src*="icons/develop"] { width: 35px; height: 50px; }
.dt-tile__icon img[src*="icons/coach"] { width: 41px; height: 42px; }
.dt-tile__icon img[src*="icons/advise"] { width: 50px; height: 42px; }

.dt-consult__text {
	max-width: 620px;
	margin: 28px 0 0 !important;
	line-height: 29px;
}

.dt-consult__buttons {
	margin-top: 22px !important;
	padding-bottom: 18px;
}

.dt-btn--dark .wp-block-button__link {
	min-width: 144px;
	height: 48px;
	padding: 0 31px;
	font-size: 14px;
	font-weight: 600;
	background: var(--dt-ink);
	color: #fff;
}

/* ---------------------------------------------------------------
 * Large tablet / small laptop (1024–1199): same layout, tighter.
 * ------------------------------------------------------------- */
@media (max-width: 1199px) {
	.dt-header__main {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		margin-top: 0 !important;
		pointer-events: none;
	}

	.dt-header__main > * {
		pointer-events: auto;
	}

	.dt-logo {
		position: absolute;
		left: 50%;
		top: 17px;
		transform: translateX(-50%);
		margin: 0 !important;
	}

	.dt-nav {
		position: absolute;
		right: 0;
		top: 28px;
		margin: 0;
	}

	.dt-contact {
		margin-right: 62px !important;
	}

	.dt-hero__content {
		padding-top: 200px;
	}

	.dt-consult {
		grid-template-columns: minmax(0, 1fr) 38%;
		padding-left: 6%;
	}

	.dt-consult__photo img {
		width: 100%;
		height: auto;
		aspect-ratio: 441 / 385;
	}

	.dt-tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 16px;
	}

	.dt-logos__track {
		padding: 0 24px;
	}

	.dt-logo--meraki img { width: 140px; }
	.dt-logo--sodastream img { width: 134px; }
	.dt-logo--ft img { width: 120px; }
	.dt-logo--facebook img { width: 113px; }
	.dt-logo--fifa img { width: 68px; }
}

@media (max-width: 1023px) {
	.dt-hero__title {
		font-size: 48px !important;
		line-height: 60px !important;
	}

	.dt-card__title {
		font-size: 26px !important;
		line-height: 35px !important;
	}

	.dt-card {
		padding: 23px 24px 23px 26px;
	}

	.dt-card__text {
		font-size: 14px;
		line-height: 22px;
	}

}

/* ---------------------------------------------------------------
 * Tablet + phone (≤ 899): everything stacks like the Figma mobile frame.
 * ------------------------------------------------------------- */
@media (max-width: 899px) {
	.dt-cards {
		flex-direction: column;
		gap: 18px !important;
		margin: 94px 0 0 3px !important;
		width: calc(100% - 3px);
	}

	.dt-card {
		flex: 0 0 auto !important;
		min-height: 203px;
	}

	.dt-hero.wp-block-cover {
		min-height: 0 !important;
		padding-bottom: 28px !important;
	}

	.dt-lower {
		background-image: none;
		background-color: #e7ecf0;
		padding-bottom: 47px;
	}

	/* Logos: no heading/arrows, stacked FIFA, sodastream, facebook, FT (Meraki not shown). */
	.dt-logos {
		padding-top: 9px;
	}

	.dt-logos__title {
		max-width: 260px;
		margin: 0 auto !important;
		font-size: 21px !important;
		line-height: 31px !important;
		text-align: center;
	}

	.dt-logos__arrow {
		display: none !important;
	}

	.dt-logos__slider {
		display: block !important;
		height: auto;
		margin-top: 37px !important;
	}

	.dt-logos__track {
		flex-direction: column;
		padding: 0;
	}

	.dt-logo--fifa { order: 1; }
	.dt-logo--sodastream { order: 2; margin-top: 54px !important; }
	.dt-logo--facebook { order: 3; margin-top: 46px !important; }
	.dt-logo--meraki { order: 4; margin-top: 47px !important; }
	.dt-logo--ft { order: 5; margin-top: 44px !important; }

	.dt-logo--meraki img { width: 190px; }
	.dt-logo--sodastream img { width: 184px; }
	.dt-logo--ft img { width: 162px; }
	.dt-logo--facebook img { width: 153px; }
	.dt-logo--fifa img { width: 92px; }

	/* Training: one white card with the photo inside it. */
	.dt-training {
		display: flex !important;
		flex-direction: column;
		box-sizing: border-box;
		width: calc(var(--dt-cw) - 3px) !important;
		margin-top: 58px !important;
		margin-left: calc(var(--dt-left) + 3px) !important;
		padding: 18px 19px 30px 20px;
		background: #fff;
		border-radius: 8px;
	}

	.dt-training__card {
		display: contents !important;
	}

	.dt-training__card > * {
		order: 3;
	}

	.dt-training__card > .dt-eyebrow {
		order: 1;
	}

	.dt-training__photo {
		order: 2;
		width: 100% !important;
		margin: 17px 0 0 !important;
		aspect-ratio: 307 / 219;
	}

	.dt-eyebrow {
		font-size: 14px;
	}

	.dt-tile__label {
		font-size: 15px;
	}

	.dt-training__title {
		margin-top: 17px !important;
		font-size: 24px !important;
		line-height: 34px !important;
	}

	.dt-training__text {
		margin-top: 13px !important;
	}

	.dt-training__buttons {
		margin-top: 25px !important;
	}

	.dt-btn--teal .wp-block-button__link {
		height: 52px;
	}

	/* Consulting: photo first, tiles 2 x 2. */
	.dt-consult {
		display: flex !important;
		flex-direction: column;
		width: calc(var(--dt-cw) + 1px) !important;
		margin-top: 32px !important;
		margin-left: calc(var(--dt-left) + 1px) !important;
		padding: 23px 21px 28px 21px;
	}

	.dt-consult__photo {
		order: 1;
	}

	.dt-consult__body {
		order: 2;
	}

	.dt-consult__photo img {
		width: 100%;
		height: auto;
		aspect-ratio: 307 / 219;
		border-radius: 6px;
	}

	.dt-consult__title {
		margin-top: 24px !important;
		font-size: 24px !important;
		line-height: 34px !important;
	}

	.dt-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 18px;
		row-gap: 19px;
		margin-top: 19px !important;
	}

	.dt-tile {
		height: 129px;
		padding-top: 10px;
	}

	.dt-tile__icon {
		height: 54px;
		margin-top: 17px !important;
	}

	.dt-tile__icon img { width: 52px; height: 52px; }
	.dt-tile__icon img[src*="icons/develop"] { width: 38px; height: 54px; }
	.dt-tile__icon img[src*="icons/coach"] { width: 48px; height: 49px; }
	.dt-tile__icon img[src*="icons/advise"] { width: 54px; height: 45px; }

	.dt-card__toggle {
		padding-top: 20px;
	}

	.dt-consult__text {
		margin-top: 21px !important;
	}

	.dt-consult__buttons {
		margin-top: 25px !important;
		padding-bottom: 0;
	}
}

/* ---------------------------------------------------------------
 * Phone (≤ 767): header + hero values from the 390px Figma frame.
 * ------------------------------------------------------------- */
@media (max-width: 767px) {
	:root {
		--dt-gutter: 21px;
		--dt-left: 21px;
	}

	.dt-wrap {
		margin-left: 21px !important;
	}

	.dt-training.dt-wrap {
		margin-left: 24px !important;
	}

	.dt-consult.dt-wrap {
		margin-left: 22px !important;
	}

	.dt-header__top {
		padding-top: 28px;
	}

	.dt-region {
		width: 56px;
		padding: 0 10px 0 11px;
		margin-left: -2px;
	}

	.dt-region__label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.dt-contact {
		display: none !important;
	}

	.dt-logo {
		top: 28px;
	}

	.dt-logo img {
		width: 38px;
		height: 38px;
	}

	.dt-hero__content {
		padding-top: 119px;
	}

	.dt-hero__title {
		max-width: 350px;
		font-size: 35px !important;
		line-height: 48.5px !important;
		margin-left: -2px !important;
	}

	.dt-hero__lead {
		margin: 16px 0 0 -2px !important;
		font-size: 16px;
		line-height: 22px;
	}

	.dt-card__icon {
		margin-top: 8px !important;
	}

	.dt-card--1 .dt-card__icon img { width: 40px; }
	.dt-card--2 .dt-card__icon img { width: 34px; }
	.dt-card--3 .dt-card__icon img { width: 52px; }

	.dt-card__text {
		margin-top: 11px !important;
		font-size: 13px;
	}
}
