/*
Theme Name: Transteger
Theme URI: https://transteger.eu
Author: Transteger MB
Author URI: https://transteger.eu
Description: Custom theme for Transteger MB - international cargo transportation company. Refrigerated and general cargo transport across EU and UK.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transteger
*/

/* ===== Transteger Custom Overrides ===== */
:root {
	--primary: #1B3A5C;
	--accent: #E8A020;
	--accent-hover: #d4911a;
}

/* Hero background overlay */
.atf-hero-area::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(135deg, rgba(27,58,92,0.85) 0%, rgba(27,58,92,0.6) 100%);
	z-index: 1;
}
.atf-hero-area { position: relative; }
.atf-hero-area .container { position: relative; z-index: 2; }

/* Preloader */
#atf-loader {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: #fff;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s;
}
#atf-loader.loaded { opacity: 0; pointer-events: none; }
.loader-truck {
	font-size: 3rem;
	animation: drive 1.5s ease-in-out infinite;
}
@keyframes drive {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(30px); }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* ATP Badge */
.atp-badge {
	background: var(--accent);
	color: #fff;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	display: inline-block;
}

/* Stats counter cards */
.stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 30px 20px;
	text-align: center;
	box-shadow: 0 5px 30px rgba(0,0,0,0.08);
	transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .stat-icon {
	width: 60px; height: 60px;
	border-radius: 50%;
	background: rgba(232,160,32,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	font-size: 1.5rem;
	color: var(--accent);
}
.stat-card h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-card p { color: #666; margin: 0; font-weight: 500; }

/* Route map styling */
.route-item {
	display: flex;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}
.route-item:last-child { border-bottom: none; }
.route-item i { color: var(--accent); margin-right: 12px; font-size: 1.1rem; }

/* CTA section gradient */
.cta-gradient {
	background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%);
}

/* Contact form improvements */
#contact .form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 0.2rem rgba(232,160,32,0.25);
}

/* Contact icons - subtle style */
.atf-contact-details .atf-contact-icon {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	border-radius: 50% !important;
	background: rgba(232,160,32,0.12) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.atf-contact-details .atf-contact-icon i {
	color: var(--accent) !important;
	font-size: 1rem !important;
	background: none !important;
	width: auto !important;
	height: auto !important;
	line-height: normal !important;
}

/* Footer links */
.atf-footer-area a:hover { color: var(--accent) !important; }

/* Footer logo pulse */
.footer-logo-pulse {
	color: var(--accent);
	display: inline-block;
	animation: logo-pulse 2s ease-in-out infinite;
}
@keyframes logo-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.2); opacity: 0.8; text-shadow: 0 0 12px rgba(232,160,32,0.6); }
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), #f0c060);
	z-index: 99999;
	width: 0%;
	transition: width 0.1s linear;
}

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-contact {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.floating-contact .fc-tooltip {
	background: #fff;
	color: var(--primary);
	padding: 10px 18px;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.15);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(10px);
	transition: all 0.3s;
	pointer-events: none;
}
.floating-contact:hover .fc-tooltip {
	opacity: 1;
	transform: translateX(0);
}
.floating-contact .fc-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	box-shadow: 0 5px 25px rgba(232,160,32,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	animation: fc-pulse 2s infinite;
	text-decoration: none;
}
.floating-contact .fc-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 35px rgba(232,160,32,0.5);
	color: #fff;
}
@keyframes fc-pulse {
	0%, 100% { box-shadow: 0 5px 25px rgba(232,160,32,0.4); }
	50% { box-shadow: 0 5px 25px rgba(232,160,32,0.6), 0 0 0 10px rgba(232,160,32,0.1); }
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
	background: #fff;
	border-radius: 16px;
	padding: 35px 30px;
	box-shadow: 0 5px 30px rgba(0,0,0,0.06);
	position: relative;
	transition: all 0.3s;
	height: 100%;
}
.testimonial-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.testimonial-card .tc-quote {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 3rem;
	color: rgba(232,160,32,0.15);
	line-height: 1;
}
.testimonial-card .tc-stars {
	color: var(--accent);
	font-size: 0.9rem;
	margin-bottom: 15px;
}
.testimonial-card .tc-text {
	color: #555;
	font-style: italic;
	line-height: 1.7;
	margin-bottom: 20px;
}
.testimonial-card .tc-author {
	display: flex;
	align-items: center;
	border-top: 1px solid #eee;
	padding-top: 18px;
}
.testimonial-card .tc-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	margin-right: 14px;
	flex-shrink: 0;
}
.testimonial-card .tc-name {
	font-weight: 700;
	color: var(--primary);
	font-size: 0.95rem;
}
.testimonial-card .tc-role {
	font-size: 0.8rem;
	color: #999;
}

/* ===== TRUST BADGES ===== */
.trust-strip {
	background: var(--primary);
	padding: 30px 0;
	overflow: hidden;
}
.trust-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: rgba(255,255,255,0.7);
	font-size: 0.85rem;
	text-align: center;
	transition: color 0.3s;
}
.trust-badge:hover {
	color: #fff;
}
.trust-badge i {
	font-size: 1.8rem;
	color: var(--accent);
}
.trust-badge span {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== COUNTER ANIMATION ===== */
.stat-card h2 .counter-value {
	display: inline;
}

/* ===== SECTION DIVIDER ===== */
.section-wave {
	position: relative;
	margin-top: -2px;
}
.section-wave svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
	display: inline-block;
	width: 3px;
	height: 1em;
	background: var(--accent);
	margin-left: 4px;
	animation: blink 0.7s infinite;
	vertical-align: text-bottom;
}
@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* ===== 3D TILT CARDS ===== */
.tilt-card {
	transform-style: preserve-3d;
	perspective: 1000px;
}
.tilt-card .tilt-inner {
	transition: transform 0.15s ease-out;
	transform-style: preserve-3d;
}
.tilt-card .tilt-shine {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
	background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
}
.tilt-card:hover .tilt-shine {
	opacity: 1;
}

/* ===== SKILL BARS ===== */
.skill-bar {
	margin-bottom: 22px;
}
.skill-bar .skill-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 0.9rem;
}
.skill-bar .skill-name {
	font-weight: 600;
	color: var(--primary);
}
.skill-bar .skill-percent {
	font-weight: 700;
	color: var(--accent);
}
.skill-bar .skill-track {
	height: 10px;
	background: #e9ecef;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}
.skill-bar .skill-fill {
	height: 100%;
	width: 0;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transition: width 1.5s ease-out;
	position: relative;
}
.skill-bar .skill-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
	animation: shimmer 2s infinite;
}
@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* ===== MARQUEE TRUST ===== */
.marquee-strip {
	background: var(--primary);
	padding: 18px 0;
	overflow: hidden;
	position: relative;
}
.marquee-track {
	display: flex;
	animation: marquee 25s linear infinite;
	width: max-content;
}
.marquee-track:hover {
	animation-play-state: paused;
}
.marquee-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 50px;
	color: rgba(255,255,255,0.85);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.marquee-item i {
	color: var(--accent);
	font-size: 1.3rem;
}
.marquee-item .marquee-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.5;
}
@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ===== PARALLAX ===== */
.parallax-section {
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
}
@media (max-width: 991px) {
	.parallax-section {
		background-attachment: scroll;
	}
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-left, .reveal-right, .reveal-up {
	opacity: 0;
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up { transform: translateY(50px); }
.reveal-left.revealed, .reveal-right.revealed, .reveal-up.revealed {
	opacity: 1;
	transform: translate(0);
}

/* ===== FLOATING SHAPES ===== */
.floating-shapes {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.floating-shapes .shape {
	position: absolute;
	border-radius: 50%;
	opacity: 0.06;
	background: var(--accent);
}
.shape-1 {
	width: 300px; height: 300px;
	top: -50px; right: -80px;
	animation: float-shape 8s ease-in-out infinite;
}
.shape-2 {
	width: 200px; height: 200px;
	bottom: -40px; left: -60px;
	animation: float-shape 10s ease-in-out infinite reverse;
}
.shape-3 {
	width: 150px; height: 150px;
	top: 40%; left: 10%;
	animation: float-shape 12s ease-in-out infinite 2s;
}
@keyframes float-shape {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(20px, -20px) scale(1.05); }
	66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Advantage cards */
.advantage-card {
	background: #fff;
	border-radius: 12px;
	padding: 35px 25px;
	box-shadow: 0 5px 30px rgba(0,0,0,0.06);
	height: 100%;
	transition: all 0.3s;
	border-top: 3px solid transparent;
}
.advantage-card:hover {
	transform: translateY(-5px);
	border-top-color: var(--accent);
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.advantage-card .adv-icon {
	width: 70px; height: 70px;
	border-radius: 50%;
	background: rgba(232,160,32,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	color: var(--accent);
	margin-bottom: 20px;
	transition: transform 0.3s ease;
}

/* Hero form */
.hero-contact-form {
	background: rgba(255,255,255,0.95);
	border-radius: 16px;
	padding: 35px 30px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hero-contact-form h3 {
	color: var(--primary);
	font-weight: 700;
	margin-bottom: 20px;
}
.hero-contact-form .form-control {
	border-radius: 8px;
	padding: 12px 16px;
	border: 1px solid #ddd;
}
.hero-contact-form .atf-themes-btn {
	width: 100%;
	padding: 14px;
	font-size: 1rem;
}

/* DSV partner highlight */
.partner-highlight {
	background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
	border-radius: 12px;
	padding: 30px;
	border-left: 4px solid var(--accent);
}

/* Menu fix - fit all items in one line */
.atf-main-menu > nav > ul > li {
	margin-left: 8px !important;
}
.atf-main-menu > nav > ul > li > a {
	font-size: 15px !important;
	padding: 0 6px !important;
}

/* Header z-index fix */
.atf-header-height {
	position: relative;
	z-index: 1000;
}
.atf-header-bottom-wrapper {
	position: relative;
	z-index: 1000;
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.6rem;
	color: var(--primary);
	cursor: pointer;
	padding: 8px 14px;
	min-width: 48px;
	min-height: 48px;
	position: relative;
	z-index: 1100;
	-webkit-tap-highlight-color: transparent;
}

@media (max-width: 991px) {
	.mobile-menu-toggle {
		display: block !important;
	}
	.atf-main-menu {
		display: block !important;
		position: static !important;
		width: 0 !important;
		height: 0 !important;
		overflow: visible !important;
	}
	nav.atf-main-menu-content {
		display: none !important;
		position: fixed !important;
		top: 48px !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		background: #fff !important;
		box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
		z-index: 1099 !important;
		padding: 20px 0 !important;
		border-radius: 0 0 12px 12px !important;
	}
	nav.atf-main-menu-content.mobile-open {
		display: block !important;
	}
	.atf-main-menu-content ul {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.atf-main-menu > nav > ul > li {
		margin-left: 0 !important;
		margin-bottom: 5px;
	}
	.atf-main-menu > nav > ul > li > a {
		font-size: 16px !important;
		padding: 10px 20px !important;
		display: block !important;
	}
	.atf-header-bottom-right {
		display: none !important;
	}
	.atf-header-bottom-area .col-xl-7,
	.atf-header-bottom-area .col-lg-9 {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	.atf-hero-area {
		padding: 30px 0 40px !important;
		min-height: auto !important;
		height: auto !important;
		align-items: flex-start !important;
	}
	.atf-hero-area .title {
		font-size: 1.8rem !important;
	}
	.hero-contact-form {
		margin-top: 30px;
		padding: 25px 20px;
	}
	section[style*="margin-top:-50px"] {
		margin-top: 0 !important;
		padding-top: 30px;
	}
	.stat-card {
		margin-bottom: 15px;
		padding: 20px 15px;
	}
	.stat-card h2 {
		font-size: 1.8rem;
	}
	.cta-gradient h2 {
		font-size: 1.6rem !important;
	}
	.atf-section-padding {
		padding: 50px 0 !important;
	}
	.atf-header-top-area {
		display: none !important;
	}
	.atf-footer-area .col-lg-2,
	.atf-footer-area .col-lg-3 {
		margin-bottom: 25px;
	}
}

@media (max-width: 576px) {
	.atf-hero-area .title {
		font-size: 1.5rem !important;
	}
	.atf-hero-area .description {
		font-size: 0.95rem !important;
	}
	.atf-hero-btn .atf-themes-btn {
		padding: 10px 18px !important;
		font-size: 0.85rem;
	}
	.advantage-card {
		padding: 25px 18px;
	}
	.route-item span {
		font-size: 0.9rem;
	}
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: 15px; }
.lang-switch a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { color: #fff; }
.lang-switch .lang-sep { color: rgba(255,255,255,0.4); }

/* Form messages */
.form-message {
	padding: 12px 18px;
	border-radius: 8px;
	margin-top: 15px;
	font-weight: 500;
	display: none;
}
.form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}
.form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}
