/*
Theme Name: RaceDynamics Kadence Child
Theme URI: https://staging.racedynamics.de/
Description: Child theme for Kadence on the RaceDynamics staging site.
Author: RaceDynamics
Template: kadence
Version: 1.0.0
Text Domain: racedynamics-kadence-child
*/

:root {
	color-scheme: dark;
	--rd-site-bg: #090a0c;
	--rd-site-bg-alt: #111317;
	--rd-surface: #15181d;
	--rd-surface-strong: #1b1f25;
	--rd-border: rgba(255, 255, 255, 0.08);
	--rd-border-strong: rgba(214, 31, 38, 0.28);
	--rd-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

body {
	background:
		radial-gradient(circle at top, rgba(214, 31, 38, 0.14), transparent 34%),
		linear-gradient(180deg, #090a0c 0%, #0f1115 100%);
	color: var(--global-palette3);
}

body,
.entry-content,
.site-main,
.site-footer,
.mobile-navigation,
.drawer-content {
	color: #f2f4f7;
}

.site,
.site-container,
.content-bg,
body.content-style-unboxed .site {
	background: transparent;
}

.site-header-wrap,
.site-footer-wrap,
.drawer-inner,
.search-popup-inner,
.mobile-drawer-inner,
.widget-area .widget,
.content-bg,
.entry-hero-container-inner,
.site-main .entry-content-wrap,
.site-main .comments-area,
.site-main article.post,
.site-main article.page {
	background-color: var(--rd-surface);
	border-color: var(--rd-border);
	box-shadow: var(--rd-shadow);
}

.site-header-row-container-inner,
.site-bottom-footer-wrap,
.site-middle-footer-wrap,
.site-top-footer-wrap {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
	backdrop-filter: blur(12px);
}

#masthead .site-header-row-container-inner {
	border-color: rgba(255, 255, 255, 0.08);
}

#masthead .site-branding .site-title,
#masthead .site-branding .site-description,
#masthead .main-navigation a,
#masthead .header-mobile-cart-wrap .header-cart-button,
#masthead .header-cart-wrap .header-cart-button,
#mobile-header .mobile-toggle-open,
#mobile-header .mobile-navigation ul li a,
#mobile-header .mobile-navigation ul li .drawer-nav-drop-wrap {
	color: var(--global-palette3);
}

#masthead .main-navigation a,
#mobile-header .mobile-navigation ul li a,
#mobile-header .mobile-navigation ul li .drawer-nav-drop-wrap {
	font-weight: 700;
	letter-spacing: 0.05em;
}

#masthead .main-navigation a,
#mobile-header .mobile-navigation ul li a,
#mobile-header .mobile-navigation ul li .drawer-nav-drop-wrap,
#mobile-header .mobile-toggle-open {
	color: var(--global-palette1);
}

#masthead .main-navigation a:hover,
#masthead .main-navigation .current-menu-item > a,
#mobile-header .mobile-navigation ul li.current-menu-item > a,
#mobile-header .mobile-navigation ul li a:hover,
#mobile-header .mobile-navigation ul li .drawer-nav-drop-wrap:hover,
#mobile-header .mobile-toggle-open:hover,
#masthead .header-mobile-cart-wrap .header-cart-button:hover,
#masthead .header-cart-wrap .header-cart-button:hover {
	color: var(--global-palette1);
}

#masthead .site-branding .custom-logo {
	max-height: 84px;
	width: auto;
}

#mobile-header .site-branding .custom-logo,
#mobile-header .custom-logo {
	max-height: 66px;
	width: auto;
}

#masthead .site-branding,
#mobile-header .site-branding {
	line-height: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title {
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

a {
	transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
	opacity: 0.92;
}

p,
li,
.entry-content,
.site-main .entry-content p,
.site-main .entry-content li {
	line-height: 1.78;
	color: #edf1f5;
}

.site-main .entry-content p,
.site-main .entry-content li,
.rd-home-hero-copy,
.rd-gallery-intro,
#colophon .textwidget p,
#colophon .widget p,
#colophon .widget li,
#colophon .widget a {
	color: #e4e8ee;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
#colophon .widget-title,
.rd-home-kicker,
.rd-home-hero-subheadline,
.rd-home-usp-card strong,
.rd-footer-brand strong {
	color: #ffffff;
}

.rd-home-hero-copy,
.rd-home-hero-subheadline,
.rd-gallery-intro,
.rd-home-note p,
.rd-gallery-note p,
.rd-home-panel p,
.rd-home-usp-card p,
.rd-home-contact-band p,
.rd-footer-contact,
.rd-footer-contact a {
	color: #e7ebf0;
}

#mobile-header .mobile-navigation ul li a,
#mobile-header .mobile-navigation ul li .drawer-nav-drop-wrap {
	font-size: 1rem;
	line-height: 1.45;
}

#masthead .main-navigation a {
	font-size: 0.98rem;
	line-height: 1.25;
}

button,
.button,
.wp-block-button__link,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border-width: 1px;
	border-style: solid;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 12px 28px rgba(214, 31, 38, 0.2);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(214, 31, 38, 0.26);
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select {
	background: var(--rd-surface-strong);
	border: 1px solid var(--rd-border);
	color: var(--global-palette4);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--rd-border-strong);
	box-shadow: 0 0 0 3px rgba(214, 31, 38, 0.14);
	outline: 0;
}

::selection {
	background: rgba(214, 31, 38, 0.4);
	color: #ffffff;
}

#colophon {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
		linear-gradient(180deg, #0d0f12 0%, #090a0c 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#colophon .site-footer-row-container-inner {
	backdrop-filter: none;
	box-shadow: none;
}

#colophon .footer-widget-area {
	padding: 0;
}

#colophon .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
}

#colophon .widget-title {
	color: var(--global-palette3);
	font-family: var(--global-heading-font);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

#colophon .textwidget p,
#colophon .widget p,
#colophon .widget li,
#colophon .widget a {
	color: var(--global-palette5);
	font-size: 0.95rem;
}

#colophon .widget a:hover {
	color: var(--global-palette3);
}

#colophon .menu {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
}

#colophon .menu li {
	list-style: none;
}

#colophon .rd-footer-brand {
	display: grid;
	gap: 0.8rem;
	max-width: 24rem;
}

#colophon .rd-footer-brand strong {
	color: var(--global-palette3);
	font-family: var(--global-heading-font);
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#colophon .rd-footer-contact {
	display: grid;
	gap: 0.7rem;
}

#colophon .rd-footer-contact a {
	word-break: break-word;
}

#colophon .site-bottom-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rd-home-section {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.rd-home-shell {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
}

.rd-home-hero .wp-block-cover__inner-container {
	width: min(1120px, calc(100% - 2rem));
}

.rd-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.48) 100%),
		radial-gradient(circle at 18% 22%, rgba(214, 31, 38, 0.24), transparent 32%);
	z-index: 1;
}

.rd-home-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.rd-home-kicker {
	color: var(--global-palette1);
	font-family: var(--global-heading-font);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.rd-home-hero-title {
	max-width: 11ch;
	margin: 0 0 1.25rem;
	font-size: clamp(3.2rem, 7vw, 6.2rem);
	line-height: 0.9;
	text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.rd-home-hero-copy {
	max-width: 42rem;
	font-size: 1.08rem;
	line-height: 1.8;
	color: var(--global-palette3);
}

.rd-home-hero-subheadline {
	max-width: 28rem;
	margin: 0 0 1rem;
	color: var(--global-palette4);
	font-family: var(--global-heading-font);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rd-home-hero .wp-block-buttons {
	gap: 0.9rem;
}

.rd-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
	color: var(--global-palette3);
}

.rd-home-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(214, 31, 38, 0.42);
}

.rd-home-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow: var(--rd-shadow);
	padding: clamp(1.4rem, 3vw, 2rem);
	height: 100%;
}

.rd-home-panel h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
	font-size: 1.35rem;
}

.rd-home-panel p:last-child {
	margin-bottom: 0;
}

.rd-home-band {
	background:
		linear-gradient(120deg, rgba(214, 31, 38, 0.12), rgba(214, 31, 38, 0) 48%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	box-shadow: var(--rd-shadow);
}

.rd-home-note {
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--global-palette1);
	padding: 1.1rem 1.25rem;
}

.rd-home-products-wrap .products {
	margin-top: 1.5rem;
}

.rd-home-products-wrap .woocommerce ul.products {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rd-home-usp-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	height: 100%;
}

.rd-home-usp-card strong {
	display: block;
	color: var(--global-palette3);
	font-family: var(--global-heading-font);
	font-size: 1rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.55rem;
	text-transform: uppercase;
}

.rd-home-gallery-teaser {
	align-items: center;
}

.rd-home-gallery-preview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.rd-home-gallery-preview a {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--rd-shadow);
}

.rd-home-gallery-preview img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.rd-home-gallery-preview a:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

.rd-home-contact-band {
	background:
		linear-gradient(115deg, rgba(214, 31, 38, 0.16), rgba(214, 31, 38, 0.02) 48%, rgba(0, 0, 0, 0.04) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(214, 31, 38, 0.18);
	border-radius: 18px;
	box-shadow: var(--rd-shadow);
}

.rd-home-contact-band .wp-block-buttons {
	margin-top: 1.25rem;
}

.rd-home-section .wp-block-buttons {
	margin-top: 1.5rem;
}

@media (max-width: 781px) {
	.rd-home-hero {
		min-height: 540px !important;
	}

	.rd-home-hero-title {
		max-width: none;
	}

	#masthead .site-branding .custom-logo {
		max-height: 72px;
	}
}

body.post-type-archive-product .content-wrap,
body.tax-product_cat .content-wrap,
body.tax-product_tag .content-wrap,
body.single-product .content-wrap {
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(1.1rem, 2vw, 1.5rem);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: var(--rd-shadow);
	overflow: hidden;
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: rgba(214, 31, 38, 0.28);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.woocommerce ul.products li.product a img {
	margin: 0;
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
	background: #111317;
}

.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .product-action-wrap {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

.woocommerce ul.products li.product .product-details {
	padding-top: 1rem;
	padding-bottom: 0.8rem;
}

.woocommerce ul.products li.product .product-action-wrap {
	padding-bottom: 1.1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	font-size: 1.05rem;
	line-height: 1.35;
	min-height: 2.8em;
}

.woocommerce ul.products li.product .price {
	color: var(--global-palette3);
	font-weight: 700;
}

.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
	margin-bottom: 1.25rem;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	color: var(--global-palette4);
	min-width: 2.5rem;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--global-palette1);
	border-color: var(--global-palette1);
	color: #fff;
}

body.single-product div.product {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
	margin: 0;
	width: 100%;
}

body.single-product div.product .woocommerce-product-gallery {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 1rem;
	box-shadow: var(--rd-shadow);
}

body.single-product div.product .summary {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--rd-shadow);
}

body.single-product div.product .product_title {
	margin-bottom: 0.8rem;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
	color: var(--global-palette3);
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	font-weight: 700;
}

body.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
	margin-top: 1.4rem;
}

body.single-product .quantity .qty {
	min-height: 48px;
	min-width: 84px;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .up-sells.upsells.products {
	margin-top: 2.25rem;
}

body.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
	display: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
	background: rgba(214, 31, 38, 0.18);
	border-color: rgba(214, 31, 38, 0.32);
	color: var(--global-palette3);
}

body.single-product .woocommerce-Tabs-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (max-width: 781px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce ul.products li.product a img {
		aspect-ratio: 4 / 5.2;
	}
}

@media (max-width: 560px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

.rd-gallery-wrap {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.rd-gallery-shell {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
}

.rd-gallery-intro {
	max-width: 46rem;
	margin-bottom: 2rem;
}

.rd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.rd-gallery-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	box-shadow: var(--rd-shadow);
}

.rd-gallery-card img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.rd-gallery-card:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

.rd-gallery-note {
	margin-top: 1.8rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--global-palette1);
	background: rgba(255, 255, 255, 0.03);
}
