/*
Theme Name: FastRack
Theme URI: https://addensoft.com
Author: addensoft
Author URI: https://addensoft.com
Description: Racking & shelving company theme. All content is editable with ACF Pro (Theme Settings + per-template fields).
Requires at least: 6.0
Requires PHP: 7.4
Version: 2.0.0
Text Domain: fastrack
Tags: custom-menu, featured-images, theme-options
*/

/* The main design lives in assets/css/style.css. This file holds
   WordPress-specific rules and components added for the WP build. */

/* ---------- Accessibility ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 10px;
	top: 10px;
	z-index: 100000;
	padding: 12px 20px;
	background: #fff;
	color: var(--tp-heading-primary);
}

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 30px 20px 0; }
.alignright { float: right; margin: 0 0 20px 30px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--tp-text-body); margin-top: 8px; }
.sticky, .bypostauthor { display: block; }
.admin-bar .header__sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .header__sticky { top: 0; } }

/* ---------- Header ---------- */
.site-logo { width: 100%; max-width: 280px; height: auto; }
.main-menu ul li.current-menu-item > a,
.main-menu ul li.current-menu-ancestor > a { color: var(--tp-theme-1); }
.header-info .info-item h5 a { white-space: nowrap; }
.sidebar__logo img { max-width: 180px; height: auto; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999;
}
.whatsapp img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s;
}
.whatsapp a:hover img { transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer-area { background-size: cover; background-position: center; position: relative; }
.footer-area::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 30, 0.9);
	pointer-events: none;
}
.footer-area > * { position: relative; z-index: 1; }
.footer__logo img { max-width: 100%; height: auto; }
.footer__qr { margin-top: 30px; }
.footer__qr img { max-width: 110px; background: #fff; padding: 6px; border-radius: 4px; }
.footer__qr h6 { color: #fff; font-size: 14px; margin-top: 10px; }
.footer__links ul { margin: 0; padding: 0; list-style: none; }
.footer__contact h5 { color: #fff; margin: 18px 0 6px; font-size: 16px; }
.footer__contact p, .footer__contact a { color: rgba(255, 255, 255, 0.75); }
.footer__contact a:hover { color: #fff; }
.footer__map iframe { border-radius: 6px; display: block; }
.footer__copyright { padding: 18px 0; }
.footer__copyright-text p { margin: 0; color: var(--tp-heading-primary); }

/* ---------- Content (editor output) ---------- */
.ft-entry > *:last-child { margin-bottom: 0; }
.ft-entry p { margin-bottom: 18px; line-height: 1.8; }
.ft-entry h2, .ft-entry h3, .ft-entry h4 { margin: 30px 0 15px; }
.ft-entry ul, .ft-entry ol { margin: 0 0 20px 20px; }
.ft-entry ul li { list-style: disc; margin-bottom: 6px; }
.ft-entry ol li { list-style: decimal; margin-bottom: 6px; }
.ft-entry img { max-width: 100%; height: auto; border-radius: 4px; }
.ft-entry a { color: var(--tp-theme-1); text-decoration: underline; }
.ft-entry blockquote {
	border-left: 4px solid var(--tp-theme-1);
	background: var(--tp-grey-5);
	padding: 20px 25px;
	margin: 25px 0;
	font-style: italic;
}
.ft-entry table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.ft-entry th, .ft-entry td { border: 1px solid var(--tp-border-1); padding: 10px 14px; }

/* ---------- Call to action ---------- */
.ft-cta { background: var(--tp-theme-1); color: #fff; }
.ft-cta__title { color: #fff; font-size: 30px; line-height: 1.3; margin-bottom: 8px; }
.ft-cta__text, .ft-cta__text a { color: rgba(255, 255, 255, 0.9); margin: 0; }
@media (max-width: 991px) { .ft-cta .tp-btn-white { margin-top: 25px; } }

/* ---------- Cards (products / posts) ---------- */
.ft-product-card {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s, box-shadow 0.3s;
}
.ft-product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.ft-product-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tp-grey-5); }
.ft-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ft-product-card:hover .ft-product-card__image img { transform: scale(1.06); }
.ft-product-card__body { padding: 25px 28px; display: flex; flex-direction: column; flex: 1; }
.ft-product-card__title { font-size: 21px; margin-bottom: 10px; }
.ft-product-card__title a:hover { color: var(--tp-theme-1); }
.ft-product-card__meta {
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--tp-border-1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}
.ft-product-card__meta a { color: var(--tp-theme-1); font-weight: 700; margin-left: auto; }
.ft-card__meta { font-size: 13px; color: var(--tp-text-body); margin-bottom: 6px; display: block; }

/* ---------- Product gallery ---------- */
.ft-gallery__item[hidden] { display: none !important; }
.ft-gallery__link {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: var(--tp-grey-5);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.ft-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ft-gallery__zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(222, 32, 33, 0.55);
	color: #fff;
	font-size: 28px;
	opacity: 0;
	transition: opacity 0.3s;
}
.ft-gallery__link:hover img { transform: scale(1.08); }
.ft-gallery__link:hover .ft-gallery__zoom { opacity: 1; }

/* ---------- About / message ---------- */
.ft-feature { background: #fff; height: calc(100% - 30px); }
.ft-person img { width: 100%; max-width: 320px; border-radius: 6px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.ft-person__name { margin: 20px 0 4px; font-size: 22px; }
.ft-person__role { color: var(--tp-theme-1); font-weight: 600; }
.ft-signature { max-height: 70px; }
.ft-clients-title { color: var(--tp-heading-primary); font-size: 20px; font-weight: 700; }

/* ---------- Contact form ---------- */
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .contact-filed.contact-icon-phone::after { content: "\f095"; }
.contact__form .contact-filed::after { font-family: var(--tp-ff-fontawesome); }
.contact__form button.tp-btn { border: 0; cursor: pointer; }
.contact__area { background-size: cover; background-position: center; }

/* ---------- Search form ---------- */
.ft-search-form { position: relative; max-width: 520px; margin: 0 auto; }
.ft-search-form input {
	width: 100%;
	height: 56px;
	padding: 0 60px 0 22px;
	border: 1px solid var(--tp-border-1);
	border-radius: 4px;
	background: var(--tp-grey-5);
}
.ft-search-form input:focus { border-color: var(--tp-theme-1); outline: 0; background: #fff; }
.ft-search-form button {
	position: absolute;
	right: 0;
	top: 0;
	height: 56px;
	width: 56px;
	border: 0;
	background: var(--tp-theme-1);
	color: #fff;
	border-radius: 0 4px 4px 0;
}

/* ---------- Blog ---------- */
.ft-post__thumb img { width: 100%; height: auto; border-radius: 6px; }
.ft-post__meta span { margin-right: 20px; font-size: 14px; color: var(--tp-text-body); }
.ft-post__meta i { color: var(--tp-theme-1); margin-right: 5px; }
.ft-post-nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; border-top: 1px solid var(--tp-border-1); }
.ft-post-nav a { font-weight: 700; }
.ft-post-nav a:hover { color: var(--tp-theme-1); }
.ft-comments__list { margin: 0 0 40px; padding: 0; list-style: none; }
.ft-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--tp-border-1); }
.ft-comments__list .avatar { float: left; margin-right: 15px; border-radius: 50%; }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--tp-border-1);
	padding: 12px 18px;
	background: var(--tp-grey-5);
}
.comment-form .tp-btn { border: 0; }
.tp-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; }

/* ---------- 404 ---------- */
.ft-404__code { font-size: 140px; line-height: 1; color: var(--tp-theme-1); margin-bottom: 20px; }
@media (max-width: 575px) { .ft-404__code { font-size: 90px; } }

/* ---------- Page banner ---------- */
.page__title-area { background-size: cover; background-position: center; }
@media (max-width: 767px) {
	.page__title { font-size: 36px; line-height: 1.2; }
	.ft-cta__title { font-size: 24px; }
}

/* ---------- Hero slider: keep text clear of the header and thumbnail strip ---------- */
.slider-area .sliderm-height {
	height: auto;
	min-height: 720px;
	padding: 150px 0 150px; /* top: header (~100px) + gap, bottom: thumbnail strip (~96px) + gap */
}
.slider-area .slider-contant { margin-top: 0; }
.slider-area .slider-contant span {
	font-size: clamp(22px, 3.2vw, 48px);
	line-height: 1.2;
	margin-bottom: 10px;
}
.slider-area .slider-contant .slider-title {
	font-size: clamp(38px, 6.4vw, 96px);
	line-height: 1.08;
	margin-bottom: 35px;
	overflow-wrap: break-word;
}
.slider-area .slider-button { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.slider-area .slider-button a { margin: 0 !important; }
@media (max-width: 991px) {
	.slider-area .sliderm-height { min-height: 620px; padding: 140px 0 170px; }
}
@media (max-width: 767px) {
	.slider-area .sliderm-height { min-height: 560px; padding: 130px 0 190px; }
}
@media (max-width: 575px) {
	/* the thumbnail strip sits below the slider on phones */
	.slider-area .sliderm-height { min-height: 520px; padding: 130px 0 70px; }
}

/* Keep the desktop menu on one line on small laptops/tablets (992–1199px). */
@media (min-width: 992px) and (max-width: 1199px) {
	.menu-padding { padding-left: 10px; }
	.main-menu ul { white-space: nowrap; }
	.main-menu ul li { margin-right: 16px; }
	.main-menu ul li a { font-size: 15px; }
	.main-menu ul li .sub-menu { white-space: normal; }
}
