/* =====================================================================
   Tuning Concept — homepage styles
   Light/white storefront with a dark sticky header + nav and a red animated
   marquee bar (riardi-tuning.com vibe). Loaded only on the front page.
   All colours are CSS variables so the owner can re-skin in one place.
   ===================================================================== */

:root {
	--tc-bg:        #ffffff; /* page + light sections */
	--tc-soft:      #f4f6f9; /* alternating light section */
	--tc-card:      #ffffff; /* tiles / cards */
	--tc-ink:       #16181d; /* dark header */
	--tc-ink-2:     #1f232a; /* dark nav */
	--tc-ink-3:     #101216; /* footer */
	--tc-line:      #e4e7ec; /* borders on light */
	--tc-line-dk:   #2c313a; /* borders on dark */
	--tc-text:      #1b1e24; /* primary text on light */
	--tc-muted:     #69707d; /* secondary text on light */
	--tc-on-dark:   #eef0f3; /* text on dark */
	--tc-on-dark-m: #9aa1ad; /* muted text on dark */
	--tc-accent:    #e10600; /* performance red */
	--tc-accent-2:  #ff2a20;
	--tc-radius:    10px;
	--tc-maxw:      1280px;
	--tc-font:      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.tc-home {
	margin: 0;
	background: var(--tc-bg);
	color: var(--tc-text);
	font-family: var(--tc-font);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* contain marquee track + badge; no stray horizontal scroll */
}
/* overflow-x: clip on the root contains the moving marquee and the cart badge
   without creating a scroll container (so the sticky header keeps working).
   This stylesheet only loads on the front page. */
html { overflow-x: clip; }
body.tc-home a { color: inherit; text-decoration: none; }
body.tc-home img { max-width: 100%; height: auto; display: block; }
body.tc-home *, body.tc-home *::before, body.tc-home *::after { box-sizing: border-box; }

.tc-container { width: 100%; max-width: var(--tc-maxw); margin: 0 auto; padding: 0 20px; }

.tc-skip-link { position: absolute; left: -9999px; }
.tc-skip-link:focus { left: 12px; top: 12px; z-index: 1000; background: var(--tc-accent); color: #fff; padding: 10px 16px; border-radius: 6px; }

/* ---- Buttons -------------------------------------------------------- */
.tc-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 6px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	font-size: 14px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.tc-btn--accent { background: var(--tc-accent); color: #fff; box-shadow: 0 8px 22px rgba(225,6,0,.30); }
.tc-btn--accent:hover { background: var(--tc-accent-2); transform: translateY(-2px); }
.tc-btn--ghost { background: transparent; color: var(--tc-text); border-color: var(--tc-line); }
.tc-btn--ghost:hover { border-color: var(--tc-accent); color: var(--tc-accent); }

/* ---- 1. Marquee bar (red, moving) ---------------------------------- */
.tc-marquee {
	background: linear-gradient(180deg, var(--tc-accent-2), var(--tc-accent));
	color: #fff;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: 1px solid rgba(0,0,0,.15);
}
.tc-marquee__track {
	display: inline-flex;
	align-items: center;
	animation: tc-marquee 28s linear infinite;
	will-change: transform;
}
.tc-marquee:hover .tc-marquee__track { animation-play-state: paused; }
.tc-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 30px;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tc-marquee__item::before { /* separator */
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	margin-right: 24px;
}
.tc-marquee__ico { font-size: 15px; }
@keyframes tc-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---- 2. Header (dark) ---------------------------------------------- */
.tc-header {
	background: var(--tc-ink);
	border-bottom: 1px solid var(--tc-line-dk);
	position: sticky;
	top: 0;
	z-index: 60;
}
.tc-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
	min-height: 86px;
	padding: 12px 0;
}

.tc-search {
	grid-column: 1;
	justify-self: start;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 360px;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tc-search__input {
	flex: 1 1 auto;
	background: transparent;
	border: 0;
	color: #1b1e24;
	padding: 11px 18px;
	font-size: 14px;
	outline: none;
}
.tc-search__input::placeholder { color: #9aa0aa; }
.tc-search__btn {
	background: transparent;
	border: 0;
	color: var(--tc-accent);
	padding: 0 16px 0 6px;
	font-size: 16px;
	cursor: pointer;
}
.tc-search__btn:hover { color: var(--tc-accent-2); }

.tc-logo {
	grid-column: 2;
	text-align: center;
	white-space: nowrap;
	line-height: 1;
	font-style: italic;
}
.tc-logo__main, .tc-logo__accent { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.tc-logo__main { color: var(--tc-accent); }
.tc-logo__accent { color: #fff; }
.tc-logo__sub {
	display: block;
	margin-top: 5px;
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--tc-on-dark-m);
}

.tc-header__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 20px; }
.tc-header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; color: #fff; }
.tc-header__phone .num { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.tc-header__phone .num::before { content: "\260E"; color: var(--tc-accent); }
.tc-header__phone .person { font-size: 12px; color: var(--tc-on-dark-m); }
.tc-header__icons { display: flex; align-items: center; gap: 16px; }
.tc-iconbtn { position: relative; color: #fff; font-size: 20px; display: inline-flex; }
.tc-iconbtn:hover { color: var(--tc-accent-2); }
.tc-iconbtn--wa { color: #25D366; }
.tc-iconbtn--wa:hover { color: #1ebe57; }

/* WhatsApp inquiry button + floating bubble (also defined inline site-wide
   in functions.php for Storefront shop/product pages). */
.tc-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #25D366;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 9px 16px;
	font-weight: 700;
	line-height: 1.2;
}
.tc-wa-btn:hover { background: #1ebe57; color: #fff; }
.tc-wa-float {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 9999;
	width: 58px; height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,.28);
	transition: transform .15s ease;
}
.tc-wa-float:hover { transform: scale(1.08); color: #fff; }
.tc-badge {
	position: absolute;
	top: -8px; right: -10px;
	background: var(--tc-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 17px; height: 17px; line-height: 17px;
	text-align: center;
	border-radius: 9px;
	padding: 0 4px;
}

.tc-navtoggle {
	display: none;
	grid-column: 1;
	justify-self: start;
	width: 44px; height: 40px;
	background: transparent;
	border: 1px solid var(--tc-line-dk);
	border-radius: 6px;
	cursor: pointer;
	position: relative;
}
.tc-navtoggle__bar,
.tc-navtoggle__bar::before,
.tc-navtoggle__bar::after {
	content: "";
	position: absolute;
	left: 50%; transform: translateX(-50%);
	width: 22px; height: 2px;
	background: #fff;
}
.tc-navtoggle__bar { top: 19px; }
.tc-navtoggle__bar::before { top: -7px; }
.tc-navtoggle__bar::after { top: 7px; }

/* ---- 3. Primary nav (dark, centered) ------------------------------- */
.tc-nav { background: var(--tc-ink-2); border-bottom: 1px solid var(--tc-line-dk); }
.tc-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tc-nav__list > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--tc-on-dark);
	border-bottom: 2px solid transparent;
}
.tc-nav__list > li > a:hover { color: #fff; border-bottom-color: var(--tc-accent); }
.tc-nav__ico { font-size: 14px; opacity: .85; }
.tc-caret { font-size: 10px; }

.tc-nav__has-dropdown { position: relative; }
.tc-nav__dropdown {
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--tc-line);
	border-top: 2px solid var(--tc-accent);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 18px 40px rgba(20,22,28,.18);
	list-style: none;
	margin: 0; padding: 6px 0;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: .16s ease;
	z-index: 70;
}
.tc-nav__has-dropdown:hover > .tc-nav__dropdown,
.tc-nav__has-dropdown.is-open > .tc-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tc-nav__dropdown a { display: block; padding: 10px 18px; font-size: 14px; color: var(--tc-text); }
.tc-nav__dropdown a:hover { background: var(--tc-soft); color: var(--tc-accent); }

/* ---- 4. Hero ------------------------------------------------------- */
.tc-hero { background-size: cover; background-position: center right; background-color: #0d0e11; }
.tc-hero__inner {
	min-height: 500px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-top: 56px; padding-bottom: 56px;
}
.tc-hero__title {
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.08;
	font-weight: 800;
	margin: 0 0 18px;
	max-width: 720px;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.tc-hero__subtext { font-size: clamp(16px, 2vw, 20px); color: #e7e9ee; max-width: 600px; margin: 0 0 30px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* ---- Sections shell ------------------------------------------------ */
.tc-section { padding: 62px 0; background: var(--tc-bg); }
.tc-section--alt { background: var(--tc-soft); }
.tc-section__title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	text-align: center;
	margin: 0 0 40px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--tc-text);
}
.tc-section__title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--tc-accent); margin: 14px auto 0; }
.tc-section__title--left { text-align: left; }
.tc-section__title--left::after { margin-left: 0; }
.tc-section__cta { text-align: center; margin-top: 34px; }

/* ---- 5/6. Tile grids (white product-style cards) ------------------- */
.tc-grid { display: grid; gap: 22px; }
.tc-grid--feat   { grid-template-columns: repeat(4, 1fr); }   /* curated 8 = 2 rows */
.tc-grid--brands { grid-template-columns: repeat(6, 1fr); }

.tc-tile {
	display: flex;
	flex-direction: column;
	background: var(--tc-card);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20,22,28,.05);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tc-tile__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	transition: transform .35s ease;
}
.tc-tile__label {
	display: block;
	padding: 14px 12px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--tc-text);
	background: var(--tc-card);
}
.tc-tile:hover { transform: translateY(-4px); border-color: var(--tc-accent); box-shadow: 0 16px 32px rgba(20,22,28,.13); }
.tc-tile:hover .tc-tile__img { transform: scale(1.05); }

/* Brand logos are transparent PNGs of varied shapes — show them whole on
   white, with breathing room, instead of cropping with cover. */
.tc-tile--brand .tc-tile__img {
	aspect-ratio: 3 / 2;
	background-color: #fff;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-origin: content-box;
	padding: 22px;
}
.tc-tile--brand:hover .tc-tile__img { transform: none; } /* don't zoom-crop logos */
.tc-tile--brand .tc-tile__label { font-size: 14px; padding: 12px; }

/* ---- 7. Trust badges ----------------------------------------------- */
.tc-trust { background: var(--tc-soft); border-top: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); }
.tc-trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; }
.tc-trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tc-trust__ico { font-size: 30px; }
.tc-trust__label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--tc-text); }

/* ---- 8. Featured products (WooCommerce shortcode output) ----------- */
.tc-featured ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin: 0; padding: 0; list-style: none;
}
.tc-featured ul.products li.product {
	background: var(--tc-card);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	padding: 14px;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	box-shadow: 0 2px 10px rgba(20,22,28,.05);
}
.tc-featured ul.products li.product a { color: var(--tc-text); }
.tc-featured ul.products li.product .price { color: var(--tc-accent); font-weight: 700; }
.tc-featured__empty,
.tc-featured > .woocommerce-info {
	color: var(--tc-muted);
	text-align: center;
	padding: 30px;
	border: 1px dashed var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-soft);
}

/* ---- 9. About ------------------------------------------------------ */
.tc-about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tc-about__media img { border-radius: var(--tc-radius); border: 1px solid var(--tc-line); width: 100%; box-shadow: 0 6px 24px rgba(20,22,28,.10); }
.tc-about__body p { color: var(--tc-text); font-size: 17px; margin: 0 0 26px; }

/* ---- 10. Footer (dark) --------------------------------------------- */
.tc-footer { background: var(--tc-ink-3); border-top: 3px solid var(--tc-accent); color: var(--tc-on-dark-m); }
.tc-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 54px 20px 38px; }
.tc-footer__title { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; color: #fff; }
.tc-footer__title--follow { margin-top: 28px; }
.tc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.tc-footer__col li { margin-bottom: 11px; }
.tc-footer__col a, .tc-footer__contact li { color: var(--tc-on-dark-m); font-size: 14px; }
.tc-footer__col a:hover { color: var(--tc-accent-2); }
.tc-social { display: flex; gap: 12px; }
.tc-social__link {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--tc-line-dk);
	border-radius: 50%;
	color: #fff; font-weight: 700;
	transition: .2s ease;
}
.tc-social__link:hover { background: var(--tc-accent); border-color: var(--tc-accent); color: #fff; }
.tc-footer__bottom { border-top: 1px solid var(--tc-line-dk); padding: 18px 0; text-align: center; color: var(--tc-on-dark-m); font-size: 13px; }
.tc-footer__bottom p { margin: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
	.tc-grid--brands { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
	.tc-grid--feat   { grid-template-columns: repeat(2, 1fr); }
	.tc-featured ul.products { grid-template-columns: repeat(2, 1fr); }
	.tc-about__inner { grid-template-columns: 1fr; gap: 28px; }

	/* Header collapses: toggle | logo | icons, search on its own row */
	.tc-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
	.tc-navtoggle { display: block; }
	.tc-logo { grid-column: 2; }
	.tc-header__right { grid-column: 3; gap: 12px; }
	.tc-header__phone { display: none; }
	.tc-search { grid-column: 1 / -1; grid-row: 2; max-width: 100%; }

	/* Collapsible mobile nav */
	.tc-nav .tc-nav__list { display: none; flex-direction: column; gap: 0; }
	.tc-nav.is-open .tc-nav__list { display: flex; }
	.tc-nav__list > li > a { padding: 14px 6px; border-bottom: 1px solid var(--tc-line-dk); }
	.tc-nav__dropdown {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0;
		background: var(--tc-ink); display: none;
	}
	.tc-nav__dropdown a { color: var(--tc-on-dark); }
	.tc-nav__dropdown a:hover { background: var(--tc-ink-2); color: #fff; }
	.tc-nav__has-dropdown.is-open > .tc-nav__dropdown { display: block; }
}

@media (max-width: 560px) {
	.tc-grid--feat   { grid-template-columns: repeat(2, 1fr); }
	.tc-grid--brands { grid-template-columns: repeat(2, 1fr); }
	.tc-trust__inner { grid-template-columns: repeat(2, 1fr); }
	.tc-footer__cols { grid-template-columns: 1fr; gap: 30px; }
	.tc-featured ul.products { grid-template-columns: 1fr; }
	.tc-hero__inner { min-height: 420px; }
	.tc-logo__main, .tc-logo__accent { font-size: 24px; }
}

/* ---- Reduced motion: stop the marquee animation -------------------- */
@media (prefers-reduced-motion: reduce) {
	.tc-marquee__track { animation: none; justify-content: center; width: 100%; }
}
