/*
Theme Name: TOP TRAILER - Dealer Network
Theme URI: https://top-trailer.eu
Author: TOP TRAILER
Author URI: https://top-trailer.eu
Description: Dwustronicowa wizytówka marki TOP TRAILER przeznaczona do pozyskiwania dealerów i dystrybutorów w Polsce oraz Europie.
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top-trailer
*/

:root {
	--tt-black: #171313;
	--tt-black-soft: #242020;
	--tt-orange: #ff5a17;
	--tt-orange-dark: #de4410;
	--tt-white: #ffffff;
	--tt-paper: #f5f4f1;
	--tt-grey: #6c6866;
	--tt-line: #dedbd6;
	--tt-shadow: 0 22px 60px rgba(23, 19, 19, .12);
	--tt-radius: 2px;
	--tt-container: 1240px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tt-paper);
	color: var(--tt-black);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body.admin-bar .tt-header {
	top: 32px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tt-container {
	width: min(calc(100% - 48px), var(--tt-container));
	margin-inline: auto;
}

.tt-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--tt-orange);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tt-kicker::before {
	width: 34px;
	height: 3px;
	content: "";
	background: currentColor;
}

.tt-title {
	max-width: 850px;
	margin: 0;
	font-size: clamp(42px, 5.2vw, 72px);
	font-weight: 900;
	letter-spacing: -.055em;
	line-height: .98;
}

.tt-title--small {
	font-size: clamp(36px, 4vw, 58px);
}

.tt-lead {
	max-width: 720px;
	margin: 24px 0 0;
	color: var(--tt-grey);
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.7;
}

.tt-button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	padding: 15px 23px;
	border: 1px solid var(--tt-orange);
	border-radius: var(--tt-radius);
	background: var(--tt-orange);
	color: var(--tt-black);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .01em;
	line-height: 1.2;
	transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.tt-button:hover,
.tt-button:focus-visible {
	border-color: #ff713b;
	background: #ff713b;
	transform: translateY(-2px);
}

.tt-button--dark {
	border-color: var(--tt-black);
	background: var(--tt-black);
	color: var(--tt-white);
}

.tt-button--dark:hover,
.tt-button--dark:focus-visible {
	border-color: var(--tt-black-soft);
	background: var(--tt-black-soft);
}

.tt-button--outline {
	border-color: rgba(255, 255, 255, .4);
	background: transparent;
	color: var(--tt-white);
}

.tt-button--outline:hover,
.tt-button--outline:focus-visible {
	border-color: var(--tt-white);
	background: rgba(255, 255, 255, .08);
}

.tt-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

/* Header */
.tt-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid var(--tt-line);
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(12px);
}

.tt-header__inner {
	display: grid;
	min-height: 84px;
	grid-template-columns: 285px 1fr auto;
	align-items: center;
	gap: 38px;
}

.tt-logo {
	display: inline-flex;
	width: 260px;
	max-width: 100%;
	align-items: center;
}

.tt-logo img {
	width: 100%;
}

.tt-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
}

.tt-nav a {
	position: relative;
	padding: 31px 0 28px;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.tt-nav a::after {
	position: absolute;
	right: 0;
	bottom: 22px;
	left: 0;
	height: 2px;
	content: "";
	background: var(--tt-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.tt-nav a:hover::after,
.tt-nav a:focus-visible::after,
.tt-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.tt-header__phone {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid var(--tt-black);
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
}

.tt-header__phone:hover,
.tt-header__phone:focus-visible {
	border-color: var(--tt-orange);
	color: var(--tt-orange-dark);
}

.tt-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--tt-line);
	background: var(--tt-white);
	cursor: pointer;
}

.tt-menu-toggle span,
.tt-menu-toggle::before,
.tt-menu-toggle::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	content: "";
	background: var(--tt-black);
}

/* Home hero */
.tt-hero {
	position: relative;
	overflow: hidden;
	background: var(--tt-black);
	color: var(--tt-white);
}

.tt-hero::after {
	position: absolute;
	z-index: 1;
	right: -70px;
	bottom: -90px;
	width: 330px;
	height: 230px;
	content: "";
	opacity: .16;
	background:
		linear-gradient(135deg, transparent 42%, var(--tt-orange) 42% 47%, transparent 47% 52%, var(--tt-orange) 52% 57%, transparent 57% 62%, var(--tt-orange) 62% 67%, transparent 67%);
}

.tt-hero__grid {
	display: grid;
	min-height: 690px;
	grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}

.tt-hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 90px max(48px, calc((100vw - var(--tt-container)) / 2)) 90px max(24px, calc((100vw - var(--tt-container)) / 2));
}

.tt-hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(50px, 5.5vw, 84px);
	font-weight: 900;
	letter-spacing: -.065em;
	line-height: .94;
}

.tt-hero__lead {
	max-width: 650px;
	margin: 27px 0 0;
	color: rgba(255, 255, 255, .76);
	font-size: 18px;
	line-height: 1.7;
}

.tt-hero__image {
	position: relative;
	min-height: 690px;
}

.tt-hero__image::before {
	position: absolute;
	z-index: 2;
	inset: 0;
	content: "";
	background: linear-gradient(90deg, var(--tt-black) 0, rgba(23, 19, 19, .35) 28%, transparent 68%);
}

.tt-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tt-hero__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 42px;
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	font-weight: 700;
}

.tt-hero__contact a:hover {
	color: var(--tt-orange);
}

.tt-strip {
	background: var(--tt-orange);
}

.tt-strip__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.tt-strip__item {
	min-height: 110px;
	padding: 25px 30px;
	border-right: 1px solid rgba(23, 19, 19, .18);
}

.tt-strip__item:last-child {
	border-right: 0;
}

.tt-strip strong {
	display: block;
	font-size: 18px;
	line-height: 1.2;
}

.tt-strip span {
	display: block;
	margin-top: 7px;
	font-size: 13px;
	font-weight: 600;
}

/* Sections */
.tt-section {
	padding: 105px 0;
}

.tt-section--white {
	background: var(--tt-white);
}

.tt-section--dark {
	background: var(--tt-black);
	color: var(--tt-white);
}

.tt-about {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
	align-items: center;
	gap: 80px;
}

.tt-about__image {
	position: relative;
	min-height: 540px;
}

.tt-about__image::before {
	position: absolute;
	z-index: 2;
	top: -18px;
	right: -18px;
	width: 120px;
	height: 120px;
	border-top: 8px solid var(--tt-orange);
	border-right: 8px solid var(--tt-orange);
	content: "";
}

.tt-about__image img {
	width: 100%;
	height: 540px;
	object-fit: cover;
}

.tt-about__copy p {
	margin: 24px 0 0;
	color: var(--tt-grey);
	font-size: 18px;
	line-height: 1.8;
}

.tt-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 42px;
	background: var(--tt-line);
	border: 1px solid var(--tt-line);
}

.tt-value {
	padding: 23px;
	background: var(--tt-white);
}

.tt-value strong {
	display: block;
	font-size: 16px;
	line-height: 1.3;
}

.tt-value span {
	display: block;
	margin-top: 7px;
	color: var(--tt-grey);
	font-size: 13px;
	line-height: 1.5;
}

.tt-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 48px;
}

.tt-section__head p {
	max-width: 450px;
	margin: 0;
	color: var(--tt-grey);
}

.tt-models {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tt-model {
	position: relative;
	overflow: hidden;
	min-height: 360px;
	background: var(--tt-black);
	color: var(--tt-white);
	box-shadow: var(--tt-shadow);
}

.tt-model::after {
	position: absolute;
	inset: 35% 0 0;
	content: "";
	background: linear-gradient(180deg, transparent, rgba(23, 19, 19, .96));
}

.tt-model img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	transition: transform .45s ease;
}

.tt-model:hover img {
	transform: scale(1.035);
}

.tt-model__caption {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 26px;
}

.tt-model__caption span {
	display: block;
	margin-bottom: 6px;
	color: var(--tt-orange);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tt-model__caption strong {
	display: block;
	font-size: 22px;
	line-height: 1.15;
}

.tt-models-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 36px;
	padding: 26px 30px;
	border-left: 5px solid var(--tt-orange);
	background: var(--tt-white);
}

.tt-models-note p {
	margin: 0;
	color: var(--tt-grey);
}

.tt-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 40px;
	padding: 60px;
	background: var(--tt-orange);
	color: var(--tt-black);
}

.tt-cta h2 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(35px, 4vw, 58px);
	font-weight: 900;
	letter-spacing: -.05em;
	line-height: 1;
}

.tt-cta p {
	max-width: 700px;
	margin: 18px 0 0;
	font-weight: 600;
}

/* Dealer page */
.tt-subhero {
	position: relative;
	overflow: hidden;
	min-height: 540px;
	background: var(--tt-black);
	color: var(--tt-white);
}

.tt-subhero__image,
.tt-subhero__overlay {
	position: absolute;
	inset: 0;
}

.tt-subhero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tt-subhero__overlay {
	background: linear-gradient(90deg, rgba(23, 19, 19, .98) 0, rgba(23, 19, 19, .88) 44%, rgba(23, 19, 19, .25) 100%);
}

.tt-subhero__content {
	position: relative;
	z-index: 2;
	display: flex;
	min-height: 540px;
	max-width: 800px;
	flex-direction: column;
	justify-content: center;
	padding: 80px 0;
}

.tt-subhero h1 {
	margin: 0;
	font-size: clamp(50px, 6vw, 82px);
	font-weight: 900;
	letter-spacing: -.06em;
	line-height: .95;
}

.tt-subhero p {
	max-width: 660px;
	margin: 25px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: 19px;
	line-height: 1.7;
}

.tt-benefits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 50px;
}

.tt-benefit {
	min-height: 210px;
	padding: 30px;
	border-top: 4px solid var(--tt-orange);
	background: var(--tt-white);
	box-shadow: 0 12px 40px rgba(23, 19, 19, .07);
}

.tt-benefit__number {
	display: block;
	margin-bottom: 28px;
	color: var(--tt-orange);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
}

.tt-benefit strong {
	display: block;
	font-size: 18px;
	line-height: 1.3;
}

.tt-benefit p {
	margin: 10px 0 0;
	color: var(--tt-grey);
	font-size: 14px;
	line-height: 1.6;
}

.tt-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 48px;
	background: rgba(255, 255, 255, .16);
}

.tt-step {
	min-height: 260px;
	padding: 38px;
	background: var(--tt-black-soft);
}

.tt-step span {
	display: block;
	color: var(--tt-orange);
	font-size: 48px;
	font-weight: 900;
	line-height: 1;
}

.tt-step strong {
	display: block;
	margin-top: 30px;
	font-size: 21px;
}

.tt-step p {
	margin: 11px 0 0;
	color: rgba(255, 255, 255, .66);
	font-size: 14px;
}

.tt-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
	align-items: start;
	gap: 34px;
}

.tt-form-card {
	padding: 45px;
	background: var(--tt-white);
	box-shadow: var(--tt-shadow);
}

.tt-form-card h2 {
	margin: 0;
	font-size: clamp(34px, 4vw, 52px);
	letter-spacing: -.045em;
	line-height: 1;
}

.tt-form-card__intro {
	margin: 15px 0 30px;
	color: var(--tt-grey);
}

.tt-form {
	display: grid;
	gap: 18px;
}

.tt-form__row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.tt-form label {
	display: grid;
	gap: 7px;
	color: #403b39;
	font-size: 13px;
	font-weight: 800;
}

.tt-form input,
.tt-form textarea,
.tt-form select {
	width: 100%;
	padding: 14px 15px;
	border: 1px solid #cfcac3;
	border-radius: 0;
	background: var(--white, #fff);
	color: var(--tt-black);
	outline: none;
}

.tt-form input:focus,
.tt-form textarea:focus,
.tt-form select:focus {
	border-color: var(--tt-orange);
	box-shadow: 0 0 0 3px rgba(255, 90, 23, .14);
}

.tt-form textarea {
	min-height: 130px;
	resize: vertical;
}

.tt-form__consent {
	display: grid !important;
	grid-template-columns: 20px 1fr;
	align-items: start;
	gap: 10px !important;
	font-weight: 500 !important;
}

.tt-form__consent input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.tt-form button {
	width: max-content;
	min-height: 54px;
	padding: 15px 24px;
	border: 0;
	background: var(--tt-orange);
	color: var(--tt-black);
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.tt-form button:hover,
.tt-form button:focus-visible {
	background: #ff713b;
}

.tt-form__note {
	color: var(--tt-grey);
	font-size: 12px;
}

.tt-honeypot {
	position: absolute !important;
	left: -9999px !important;
}

.tt-notice {
	padding: 15px 17px;
	border-left: 4px solid var(--tt-orange);
	background: #fff1e9;
	color: var(--tt-black);
	font-weight: 700;
}

.tt-contact-card {
	position: sticky;
	top: 120px;
	padding: 40px;
	background: var(--tt-black);
	color: var(--tt-white);
}

.tt-contact-card h2 {
	margin: 0;
	font-size: 32px;
	letter-spacing: -.035em;
	line-height: 1.1;
}

.tt-contact-card > p {
	margin: 14px 0 30px;
	color: rgba(255, 255, 255, .66);
}

.tt-contact-link {
	display: block;
	padding: 19px 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.tt-contact-link small {
	display: block;
	color: var(--tt-orange);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tt-contact-link strong {
	display: block;
	margin-top: 3px;
	font-size: 21px;
}

.tt-contact-link:hover strong {
	color: var(--tt-orange);
}

.tt-contact-card__markets {
	margin-top: 28px;
	padding: 20px;
	background: rgba(255, 255, 255, .06);
	font-size: 13px;
}

/* Standard page fallback */
.tt-page {
	min-height: 60vh;
	padding: 90px 0;
	background: var(--tt-white);
}

.tt-page__content {
	max-width: 850px;
}

.tt-page__content h1 {
	font-size: clamp(42px, 5vw, 68px);
	line-height: 1;
}

/* Footer */
.tt-footer {
	border-top: 1px solid var(--tt-line);
	background: var(--tt-white);
}

.tt-footer__main {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) auto auto;
	align-items: start;
	gap: 70px;
	padding: 58px 0 45px;
}

.tt-footer__brand img {
	width: 260px;
}

.tt-footer__brand p {
	margin: 15px 0 0;
	color: var(--tt-grey);
	font-size: 14px;
}

.tt-footer__links {
	display: grid;
	gap: 10px;
	font-size: 14px;
	font-weight: 750;
}

.tt-footer__links a:hover {
	color: var(--tt-orange-dark);
}

.tt-footer__contact {
	display: grid;
	gap: 7px;
	font-size: 15px;
	font-weight: 800;
}

.tt-footer__contact a:hover {
	color: var(--tt-orange-dark);
}

.tt-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0 25px;
	border-top: 1px solid var(--tt-line);
	color: var(--tt-grey);
	font-size: 12px;
}

@media (max-width: 1080px) {
	.tt-header__inner {
		grid-template-columns: 235px 1fr auto;
		gap: 22px;
	}

	.tt-logo {
		width: 225px;
	}

	.tt-nav {
		gap: 20px;
	}

	.tt-header__phone {
		display: none;
	}

	.tt-hero__grid {
		grid-template-columns: 1fr 1fr;
	}

	.tt-hero__content {
		padding-right: 35px;
	}

	.tt-benefits {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 840px) {
	body.admin-bar .tt-header {
		top: 46px;
	}

	.tt-container {
		width: min(calc(100% - 32px), var(--tt-container));
	}

	.tt-header__inner {
		position: relative;
		min-height: 72px;
		grid-template-columns: 1fr auto;
	}

	.tt-logo {
		width: 220px;
	}

	.tt-menu-toggle {
		display: block;
	}

	.tt-nav {
		position: absolute;
		top: 72px;
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		padding: 10px 16px 18px;
		border-top: 1px solid var(--tt-line);
		background: var(--tt-white);
		box-shadow: 0 16px 30px rgba(23, 19, 19, .12);
	}

	.tt-nav.is-open {
		display: grid;
	}

	.tt-nav a {
		padding: 12px 0;
	}

	.tt-nav a::after {
		bottom: 7px;
	}

	.tt-hero__grid {
		display: block;
		min-height: auto;
	}

	.tt-hero__content {
		min-height: 590px;
		padding: 75px 24px;
		background: linear-gradient(90deg, rgba(23, 19, 19, .98), rgba(23, 19, 19, .74));
	}

	.tt-hero__image {
		position: absolute;
		inset: 0;
		min-height: 100%;
		opacity: .45;
	}

	.tt-hero__image::before {
		background: linear-gradient(90deg, var(--tt-black), transparent);
	}

	.tt-strip__grid,
	.tt-values,
	.tt-steps {
		grid-template-columns: 1fr;
	}

	.tt-strip__item {
		min-height: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(23, 19, 19, .18);
	}

	.tt-about {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.tt-about__image {
		min-height: 430px;
	}

	.tt-about__image img {
		height: 430px;
	}

	.tt-cta,
	.tt-contact-grid {
		grid-template-columns: 1fr;
	}

	.tt-contact-card {
		position: static;
	}

	.tt-footer__main {
		grid-template-columns: 1fr 1fr;
	}

	.tt-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 580px) {
	.tt-section {
		padding: 76px 0;
	}

	.tt-logo {
		width: 205px;
	}

	.tt-hero__content {
		min-height: 620px;
		padding: 65px 18px;
	}

	.tt-hero h1 {
		font-size: clamp(45px, 14vw, 62px);
	}

	.tt-hero__lead {
		font-size: 16px;
	}

	.tt-buttons {
		display: grid;
	}

	.tt-button {
		width: 100%;
	}

	.tt-hero__contact {
		display: grid;
		gap: 8px;
	}

	.tt-models,
	.tt-benefits,
	.tt-form__row {
		grid-template-columns: 1fr;
	}

	.tt-model,
	.tt-model img {
		min-height: 320px;
		height: 320px;
	}

	.tt-models-note,
	.tt-section__head {
		display: grid;
		align-items: start;
	}

	.tt-cta {
		padding: 38px 26px;
	}

	.tt-form-card,
	.tt-contact-card {
		padding: 30px 23px;
	}

	.tt-subhero,
	.tt-subhero__content {
		min-height: 500px;
	}

	.tt-footer__main {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.tt-footer__brand {
		grid-column: auto;
	}

	.tt-footer__bottom {
		display: grid;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
