/*
Theme Name: Cararder Dealer Theme
Theme URI: https://greenleafcreative.co.uk
Author: Greenleaf Creative
Author URI: https://greenleafcreative.co.uk
Description: A reusable header and footer theme for small-business websites whose page content is built with Elementor. Sticky (or transparent-over-hero) header with top bar and slide-in mobile menu, call-to-action band, four-column footer, mobile action bar (Call / WhatsApp / Find us / Enquire), Google business markup and fallback blog templates. Everything is editable under Appearance → Customize → Cararder Dealer Theme, and a "Starting look" preset sets a whole brand's colours, fonts, wording and logo in one go. Heading and body fonts (self-hosted, nothing loaded from Google) can be chosen per site, or left to follow Elementor.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cararder-dealer-theme
Tags: custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =========================================================================
   0. Design tokens
   The colour tokens below are overridden by an inline :root block that is
   generated from the Customizer (see cdt_inline_css()).
   ========================================================================= */
:root {
	--cdt-accent: #e7222e;
	--cdt-accent-rgb: 231, 34, 46;
	--cdt-accent-hover: #eb454f;
	--cdt-accent-2: #82c3fb; /* light blue – icons, links, small details */
	--cdt-tex: none; /* becomes the carbon-fibre tile when .cdt-texture is on */
	--cdt-on-accent: #ffffff;
	--cdt-bg: #0b0b0d;
	--cdt-bg-2: #18181b;
	--cdt-fg: #ffffff;
	--cdt-fg-rgb: 255, 255, 255;

	--cdt-header-h: 76px;
	--cdt-topbar-h: 0px;
	--cdt-logo-h: 48px;
	--cdt-gutter: 20px;
	--cdt-content-w: 1140px; /* matches Elementor's default boxed width; set from the Customizer */
	--cdt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--cdt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Optional carbon-fibre weave: a white tile whose transparency makes the weave,
   so it sits on whatever background colour is chosen. Off unless the preset or
   the Customizer turns it on. */
body.cdt-texture { --cdt-tex: url("images/carbon.png"); }

@media (min-width: 1024px) {
	:root { --cdt-header-h: 92px; }
	body.cdt-has-topbar { --cdt-topbar-h: 40px; }
}
@media (min-width: 768px) {
	:root { --cdt-gutter: 24px; }
}

/* =========================================================================
   1. Base
   (Elementor's Site Settings set the page font; the header and footer inherit
   it. Our colours only apply inside the header, footer and fallback templates.
   Fonts: --cdt-font-heading / --cdt-font-body are defined by cdt_inline_css()
   ONLY when a font is chosen in Customize > Fonts. Until then the fallback in
   var() below is "inherit" and nothing changes.)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--cdt-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--cdt-font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.cdt-nav-open { overflow: hidden; }

/* Body font for the theme's own areas (the mobile drawer lives inside the header). */
.cdt-topbar,
.cdt-header,
.cdt-band,
.cdt-footer,
.cdt-action-bar,
.cdt-page-header,
.cdt-main:not(.cdt-main--builder) { font-family: var(--cdt-font-body, inherit); }

img, svg, video { max-width: 100%; height: auto; }

.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;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	background: var(--cdt-accent);
	clip: auto;
	clip-path: none;
	color: var(--cdt-on-accent);
	display: block;
	font-weight: 600;
	height: auto;
	left: 12px;
	padding: 14px 22px;
	top: 12px;
	width: auto;
	z-index: 100000;
}

.cdt-container {
	width: 100%;
	/* +28px so the header/footer content lines up with Elementor's boxed content
	   (Elementor insets boxed content by 10px; our gutter is 24px). */
	max-width: calc(var(--cdt-content-w) + 28px);
	margin-inline: auto;
	padding-inline: var(--cdt-gutter);
}
.cdt-container--narrow,
.cdt-container--w-narrow { max-width: 820px; }
.cdt-container--w-standard { max-width: calc(1140px + 28px); }
.cdt-container--w-wide { max-width: calc(1320px + 28px); }
.cdt-container--w-xwide { max-width: calc(1440px + 28px); }
.cdt-container--w-full { max-width: none; }

.cdt-icon { flex: none; display: block; }

:where(.cdt-header, .cdt-topbar, .cdt-footer, .cdt-band, .cdt-action-bar) :focus-visible {
	outline: 2px solid var(--cdt-accent-2);
	outline-offset: 3px;
}

/* =========================================================================
   2. Buttons
   Selectors are deliberately specific so Elementor's global button / link
   styling (Site Settings) can't restyle the theme's own buttons.
   ========================================================================= */
body .cdt-btn.cdt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	padding: 16px 30px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
body .cdt-btn--accent.cdt-btn {
	background: var(--cdt-accent);
	border-color: var(--cdt-accent);
	color: var(--cdt-on-accent);
}
body .cdt-btn--accent.cdt-btn:hover,
body .cdt-btn--accent.cdt-btn:focus {
	background: var(--cdt-accent-hover);
	border-color: var(--cdt-accent-hover);
	color: var(--cdt-on-accent);
}
body .cdt-btn--dark.cdt-btn {
	background: var(--cdt-bg);
	border-color: var(--cdt-bg);
	color: var(--cdt-fg);
}
body .cdt-btn--dark.cdt-btn:hover,
body .cdt-btn--dark.cdt-btn:focus {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}
body .cdt-band .cdt-btn--dark.cdt-btn:hover,
body .cdt-band .cdt-btn--dark.cdt-btn:focus {
	color: var(--cdt-on-accent);
	border-color: var(--cdt-on-accent);
}
body .cdt-btn--block.cdt-btn { display: flex; width: 100%; }
.cdt-btn .cdt-icon { width: 16px; height: 16px; transition: transform 0.25s var(--cdt-ease); }
.cdt-btn:hover .cdt-icon { transform: translateX(4px); }

/* =========================================================================
   3. Top bar (desktop only)
   ========================================================================= */
.cdt-topbar { display: none; }

@media (min-width: 1024px) {
	.cdt-topbar {
		display: block;
		height: var(--cdt-topbar-h);
		background: var(--cdt-topbar-bg, var(--cdt-bg-2));
		color: rgba(var(--cdt-topbar-fg-rgb, var(--cdt-fg-rgb)), 0.8);
		font-size: 12.5px;
		letter-spacing: 0.02em;
	}
	.cdt-topbar__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		height: 100%;
	}
	.cdt-topbar__left, .cdt-topbar__right { display: flex; align-items: center; gap: 28px; min-width: 0; }
	body .cdt-topbar .cdt-topbar__item {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: inherit;
		text-decoration: none;
		white-space: nowrap;
	}
	body .cdt-topbar a.cdt-topbar__item:hover { color: var(--cdt-accent-2); }
	.cdt-topbar .cdt-icon { width: 14px; height: 14px; color: var(--cdt-accent-2); }
}

/* =========================================================================
   4. Header
   ========================================================================= */
.cdt-header {
	--hdr-fg: var(--cdt-fg);
	--hdr-fg-rgb: var(--cdt-fg-rgb);
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--cdt-bg);
	background-image: var(--cdt-tex);
	color: var(--hdr-fg);
	border-bottom: 1px solid rgba(var(--cdt-fg-rgb), 0.08);
	transition: background-color 0.3s, box-shadow 0.3s, top 0.3s;
}
.cdt-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); }

.cdt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--cdt-header-h);
}

body .cdt-header a { color: inherit; text-decoration: none; }

/* Reset: stop Elementor's global button styling leaking onto our buttons. */
body .cdt-header button,
body .cdt-header button:hover,
body .cdt-header button:focus,
body .cdt-header button:active {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: inherit;
	line-height: 1;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 0;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
}

/* ---- Brand ----------------------------------------------------------- */
body .cdt-header .cdt-brand,
body .cdt-footer .cdt-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	line-height: 1;
	position: relative;
	z-index: 0;
}
.cdt-brand--logo .custom-logo-link,
.cdt-brand--logo { display: inline-flex; align-items: center; }
.cdt-brand--logo img {
	display: block;
	height: min(var(--cdt-logo-h), calc(var(--cdt-header-h) - 16px));
	width: auto;
	max-width: 260px;
	object-fit: contain;
}
.cdt-footer .cdt-brand--logo img { height: auto; width: min(240px, 100%); max-width: none; }

.cdt-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 7px;
	border: 1.5px solid var(--cdt-accent);
	color: var(--cdt-accent);
	font-family: var(--cdt-font-heading, inherit);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-indent: 0.08em;
}
.cdt-brand__name {
	max-width: 8.4em;
	font-family: var(--cdt-font-heading, inherit);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3em;
	line-height: 1.45;
	text-transform: uppercase;
}

/* ---- Actions (CTA + menu button) -------------------------------------- */
.cdt-header__actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 0; }
.cdt-header__cta { display: none !important; }

body .cdt-header .cdt-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
}
.cdt-toggle__bars { position: relative; display: block; width: 24px; height: 16px; }
.cdt-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s, opacity 0.25s;
}
.cdt-toggle__bars span:nth-child(1) { top: 0; }
.cdt-toggle__bars span:nth-child(2) { top: 7px; width: 70%; }
.cdt-toggle__bars span:nth-child(3) { top: 14px; }
body .cdt-header .cdt-toggle:hover .cdt-toggle__bars span:nth-child(2) { width: 100%; }

/* ---- Nav: shared ------------------------------------------------------- */
.cdt-nav__list, .cdt-nav__list ul { margin: 0; padding: 0; list-style: none; }
.cdt-nav__list li { margin: 0; }
.cdt-submenu-toggle .cdt-icon { width: 16px; height: 16px; transition: transform 0.25s var(--cdt-ease); }
.is-open > .cdt-submenu-toggle .cdt-icon { transform: rotate(180deg); }

/* ---- Mobile / tablet drawer (< 1024px) --------------------------------- */
.cdt-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.62);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.is-nav-open .cdt-backdrop { opacity: 1; visibility: visible; transition: opacity 0.3s; }

@media (max-width: 1023.98px) {
	.cdt-panel {
		--hdr-fg: var(--cdt-fg);
		--hdr-fg-rgb: var(--cdt-fg-rgb);
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 2;
		display: flex;
		flex-direction: column;
		width: min(88vw, 400px);
		padding: 84px 28px 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background-color: var(--cdt-bg);
		background-image: var(--cdt-tex);
		color: var(--hdr-fg);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.35s var(--cdt-ease), visibility 0s linear 0.35s;
	}
	.cdt-panel.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--cdt-ease); }

	.admin-bar .cdt-panel { top: 46px; }
	@media (min-width: 783px) { .admin-bar .cdt-panel { top: 32px; } }

	body .cdt-header .cdt-panel__close {
		position: absolute;
		top: 16px;
		right: 16px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
	}
	.cdt-panel__close .cdt-icon { width: 26px; height: 26px; }

	.cdt-nav__list > li { position: relative; border-bottom: 1px solid rgba(var(--hdr-fg-rgb), 0.1); }
	body .cdt-header .cdt-nav__list a {
		display: block;
		padding: 16px 52px 16px 0;
		font-size: 15px;
		font-weight: 500;
		letter-spacing: 0.12em;
		line-height: 1.4;
		text-transform: uppercase;
	}
	body .cdt-header .cdt-nav__list a:hover,
	body .cdt-header .cdt-nav__list .current-menu-item > a,
	body .cdt-header .cdt-nav__list .current-menu-ancestor > a,
	body .cdt-header .cdt-nav__list .current_page_item > a { color: var(--cdt-accent-2); }

	body .cdt-header .cdt-submenu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 54px;
	}
	.cdt-nav__list .sub-menu { display: none; padding: 0 0 14px 16px; }
	.cdt-nav__list .is-open > .sub-menu { display: block; }
	.cdt-nav__list .sub-menu li { position: relative; }
	body .cdt-header .cdt-nav__list .sub-menu a {
		padding: 10px 52px 10px 0;
		font-size: 14px;
		font-weight: 400;
		letter-spacing: 0.03em;
		text-transform: none;
		color: rgba(var(--hdr-fg-rgb), 0.78);
	}
	body .cdt-header .cdt-nav__list .sub-menu .cdt-submenu-toggle { height: 42px; }

	.cdt-panel__extra { margin-top: 32px; display: grid; gap: 22px; }
	.cdt-panel__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 15px; }
	.cdt-panel__contact a,
	.cdt-panel__static { display: flex; align-items: flex-start; gap: 12px; color: rgba(var(--hdr-fg-rgb), 0.85); }
	.cdt-panel__contact .cdt-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--cdt-accent-2); }
}

/* ---- Desktop (>= 1024px) ------------------------------------------------ */
@media (min-width: 1024px) {
	.cdt-backdrop,
	body .cdt-header .cdt-toggle,
	body .cdt-header .cdt-panel__close,
	.cdt-panel__extra { display: none; }

	.cdt-header__cta { display: inline-flex !important; }

	.cdt-panel { display: flex; align-items: center; margin-left: auto; margin-right: 12px; }
	.cdt-nav__list { display: flex; align-items: center; gap: 2px; }
	.cdt-nav__list > li { position: relative; display: flex; align-items: center; }

	body .cdt-header .cdt-nav__list > li > a {
		position: relative;
		display: block;
		padding: 0 14px;
		font-size: 12.5px;
		font-weight: 500;
		letter-spacing: 0.15em;
		line-height: var(--cdt-header-h);
		text-transform: uppercase;
		transition: color 0.2s;
	}
	body .cdt-header .cdt-nav__list > li > a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: calc(50% - 18px);
		height: 2px;
		background: var(--cdt-accent);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s var(--cdt-ease);
	}
	body .cdt-header .cdt-nav__list > li:hover > a::after,
	body .cdt-header .cdt-nav__list > li:focus-within > a::after,
	body .cdt-header .cdt-nav__list > .current-menu-item > a::after,
	body .cdt-header .cdt-nav__list > .current-menu-ancestor > a::after,
	body .cdt-header .cdt-nav__list > .current_page_item > a::after { transform: scaleX(1); }
	body .cdt-header .cdt-nav__list > li > a:hover { color: var(--hdr-fg); }

	/* Caret button beside parents. */
	.cdt-nav__list > li.menu-item-has-children > a { padding-right: 4px; }
	.cdt-nav__list > li.menu-item-has-children > a::after { right: 4px; }
	body .cdt-header .cdt-nav__list > li > .cdt-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 32px;
		margin-right: 6px;
		opacity: 0.7;
	}
	.cdt-nav__list .cdt-submenu-toggle .cdt-icon { width: 14px; height: 14px; }

	/* Dropdowns. */
	.cdt-nav__list .sub-menu {
		--hdr-fg: var(--cdt-fg);
		--hdr-fg-rgb: var(--cdt-fg-rgb);
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 5;
		min-width: 250px;
		padding: 10px 0;
		background: var(--cdt-bg-2);
		color: var(--hdr-fg);
		border-top: 2px solid var(--cdt-accent);
		box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s, transform 0.2s var(--cdt-ease), visibility 0s linear 0.2s;
	}
	.cdt-nav__list li:hover > .sub-menu,
	.cdt-nav__list li:focus-within > .sub-menu,
	.cdt-nav__list li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.2s, transform 0.2s var(--cdt-ease), visibility 0s;
	}
	.cdt-nav__list .sub-menu li { position: relative; display: block; }
	body .cdt-header .cdt-nav__list .sub-menu a {
		display: block;
		padding: 11px 24px;
		font-size: 13.5px;
		letter-spacing: 0.04em;
		color: rgba(var(--hdr-fg-rgb), 0.82);
		transition: color 0.2s, padding 0.2s;
	}
	body .cdt-header .cdt-nav__list .sub-menu a:hover,
	body .cdt-header .cdt-nav__list .sub-menu .current-menu-item > a {
		color: var(--cdt-accent-2);
		padding-left: 30px;
	}
	body .cdt-header .cdt-nav__list .sub-menu .cdt-submenu-toggle {
		position: absolute;
		top: 0;
		right: 6px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 100%;
	}
	.cdt-nav__list .sub-menu .cdt-submenu-toggle .cdt-icon { transform: rotate(-90deg); }
	.cdt-nav__list .sub-menu .sub-menu { top: -12px; left: 100%; }

	body .cdt-header .cdt-nav__list > li > a:hover,
	body .cdt-header .cdt-nav__list > .current-menu-item > a,
	body .cdt-header .cdt-nav__list > .current-menu-ancestor > a,
	body .cdt-header .cdt-nav__list > .current_page_item > a { color: var(--cdt-accent-2); }
}

/* ---- Transparent header over a hero ------------------------------------- */
.cdt-header-overlay .cdt-header {
	--hdr-fg: #ffffff;
	--hdr-fg-rgb: 255, 255, 255;
	position: fixed;
	top: var(--cdt-topbar-h);
	left: 0;
	right: 0;
	background-color: transparent;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
	border-bottom-color: transparent;
}
.cdt-header-overlay .cdt-header.is-scrolled,
.cdt-header-overlay .cdt-header.is-nav-open {
	--hdr-fg: var(--cdt-fg);
	--hdr-fg-rgb: var(--cdt-fg-rgb);
	top: 0;
	background-color: var(--cdt-bg);
	background-image: var(--cdt-tex);
	border-bottom-color: rgba(var(--cdt-fg-rgb), 0.08);
}
.cdt-header-overlay .cdt-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---- WordPress admin bar offsets ----------------------------------------- */
.admin-bar .cdt-header { top: 32px; }
.admin-bar.cdt-header-overlay .cdt-header { top: calc(32px + var(--cdt-topbar-h)); }
.admin-bar.cdt-header-overlay .cdt-header.is-scrolled,
.admin-bar.cdt-header-overlay .cdt-header.is-nav-open { top: 32px; }
.admin-bar.cdt-header-overlay .cdt-topbar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .cdt-header { top: 46px; }
	.admin-bar.cdt-header-overlay .cdt-header,
	.admin-bar.cdt-header-overlay .cdt-header.is-scrolled,
	.admin-bar.cdt-header-overlay .cdt-header.is-nav-open { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .cdt-header { top: 0; }
	.admin-bar.cdt-header-overlay .cdt-header.is-scrolled { top: 0; }
}

/* =========================================================================
   5. Call-to-action band + footer
   ========================================================================= */
.cdt-band { background: var(--cdt-accent); color: var(--cdt-on-accent); }
.cdt-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px 48px;
	padding-block: 44px;
}
body .cdt-band .cdt-band__heading {
	margin: 0;
	color: inherit;
	font-family: var(--cdt-font-heading, var(--e-global-typography-primary-font-family, inherit));
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 600;
	line-height: 1.2;
}
body .cdt-band .cdt-band__text { margin: 8px 0 0; color: inherit; opacity: 0.82; }

.cdt-footer {
	background-color: var(--cdt-bg);
	background-image: var(--cdt-tex);
	color: rgba(var(--cdt-fg-rgb), 0.72);
	font-size: 15px;
	line-height: 1.7;
}
body .cdt-footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
body .cdt-footer a:hover { color: var(--cdt-accent-2); }

.cdt-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 48px 40px;
	padding-block: 72px 56px;
}
@media (min-width: 1024px) {
	.cdt-footer__grid--cols-4 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr); }
	.cdt-footer__grid--cols-3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr); }
}
.cdt-footer__col > :first-child { margin-top: 0; }

body .cdt-footer .cdt-footer__heading {
	margin: 0 0 24px;
	color: var(--cdt-fg);
	font-family: var(--cdt-font-heading, inherit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.3;
	text-transform: uppercase;
}
.cdt-footer__heading::after {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-top: 12px;
	background: var(--cdt-accent);
}

.cdt-footer .cdt-brand { color: var(--cdt-fg); }
body .cdt-footer .cdt-footer__company-box {
	margin: 18px 0 0;
	max-width: 38ch;
	color: rgba(var(--cdt-fg-rgb), 0.62);
	font-size: 13px;
	line-height: 1.75;
}
body .cdt-footer .cdt-footer__about { margin: 22px 0 0; max-width: 34ch; }

.cdt-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.cdt-footer__contact li { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.cdt-footer__contact .cdt-icon { width: 18px; height: 18px; margin-top: 5px; color: var(--cdt-accent-2); }
.cdt-footer__contact address { font-style: normal; }

body .cdt-footer a.cdt-footer__link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	color: var(--cdt-accent-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
body .cdt-footer a.cdt-footer__link-arrow:hover { color: var(--cdt-fg); }
.cdt-footer__link-arrow .cdt-icon { width: 16px; height: 16px; transition: transform 0.25s var(--cdt-ease); }
.cdt-footer__link-arrow:hover .cdt-icon { transform: translateX(4px); }

.cdt-hours { margin: 0; }
.cdt-hours__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 18px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(var(--cdt-fg-rgb), 0.1);
}
.cdt-hours__row:first-child { padding-top: 0; }
.cdt-hours dt { margin: 0; color: var(--cdt-fg); }
.cdt-hours dd { margin: 0 0 0 auto; text-align: right; }

.cdt-footer__menu, .cdt-footer__legal-menu { margin: 0; padding: 0; list-style: none; }
.cdt-footer__menu li { margin: 0; }
body .cdt-footer .cdt-footer__menu a { display: inline-block; padding: 5px 0; }
body .cdt-footer .cdt-footer__menu a:hover { transform: translateX(4px); }

.cdt-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.cdt-social li { margin: 0; }
body .cdt-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(var(--cdt-fg-rgb), 0.25);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
body .cdt-social a:hover { background: var(--cdt-accent); border-color: var(--cdt-accent); color: var(--cdt-on-accent); }
.cdt-social .cdt-icon { width: 18px; height: 18px; }

.cdt-footer__legal { border-top: 1px solid rgba(var(--cdt-fg-rgb), 0.1); }
.cdt-footer__legal .cdt-container { padding-block: 28px 34px; }
body .cdt-footer .cdt-footer__small {
	max-width: 100ch;
	margin: 0 0 22px;
	font-size: 12.5px;
	line-height: 1.7;
	opacity: 0.7;
}
.cdt-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	font-size: 13px;
}
body .cdt-footer .cdt-footer__bar p { margin: 0; }
.cdt-footer__company { display: block; opacity: 0.7; }
.cdt-footer__legal-menu { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.cdt-footer__legal-menu li { margin: 0; }

/* =========================================================================
   6. Mobile action bar
   ========================================================================= */
.cdt-action-bar { display: none; }

@media (max-width: 767.98px) {
	.cdt-action-bar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: var(--cdt-bg);
		border-top: 2px solid var(--cdt-accent);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.cdt-action-bar ul { display: flex; margin: 0; padding: 0; list-style: none; }
	.cdt-action-bar li { flex: 1 1 0; margin: 0; min-width: 0; }
	.cdt-action-bar li + li { border-left: 1px solid rgba(var(--cdt-fg-rgb), 0.1); }
	body .cdt-action-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 5px;
		padding: 11px 4px 10px;
		color: var(--cdt-fg);
		font-size: 10.5px;
		font-weight: 600;
		letter-spacing: 0.1em;
		line-height: 1.2;
		text-decoration: none;
		text-transform: uppercase;
	}
	body .cdt-action-bar a:active { background: rgba(var(--cdt-fg-rgb), 0.08); }
	.cdt-action-bar .cdt-icon { width: 20px; height: 20px; color: var(--cdt-accent-2); }
	body.cdt-has-action-bar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
/* Hide inside the Elementor editor so it doesn't cover the canvas. */
.elementor-editor-active .cdt-action-bar { display: none !important; }
body.elementor-editor-active.cdt-has-action-bar { padding-bottom: 0; }

/* =========================================================================
   7. Fallback templates (pages not built with Elementor, blog, search, 404)
   ========================================================================= */
.cdt-main { color: #1c1c20; background: #fff; }
.cdt-main:not(.cdt-main--builder) { padding-block: 64px 88px; min-height: 40vh; }
.cdt-main--builder { padding: 0; background: transparent; color: inherit; }
.cdt-main--builder > .elementor { width: 100%; }

.cdt-page-header { background-color: var(--cdt-bg); background-image: var(--cdt-tex); color: var(--cdt-fg); padding: 64px 0 60px; }
.cdt-header-overlay .cdt-page-header { padding-top: calc(var(--cdt-header-h) + var(--cdt-topbar-h) + 48px); }
body .cdt-page-header .cdt-page-header__title {
	margin: 0;
	color: inherit;
	font-family: var(--cdt-font-heading, var(--e-global-typography-primary-font-family, inherit));
	font-size: clamp(30px, 4.4vw, 52px);
	font-weight: 600;
	line-height: 1.12;
}
body .cdt-page-header .cdt-page-header__kicker {
	margin: 0 0 14px;
	color: var(--cdt-accent-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
body .cdt-page-header .cdt-page-header__kicker a { color: inherit; text-decoration: none; }

.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.25; margin: 1.8em 0 0.6em; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--cdt-accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.entry-content img { border-radius: 2px; }
.entry-content blockquote { margin: 1.8em 0; padding: 0 0 0 24px; border-left: 3px solid var(--cdt-accent); font-size: 1.1em; }
.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, .gallery-caption { font-size: 14px; opacity: 0.7; }

.cdt-article__image { margin: 0 0 36px; }
.cdt-article__image img { width: 100%; height: auto; display: block; }

.post-navigation { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(128, 128, 128, 0.3); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; }
.post-navigation a { text-decoration: none; font-weight: 600; }
.post-navigation .nav-label { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: inherit; opacity: 0.65; font-weight: 700; }

.cdt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 36px 32px; }
.cdt-card { display: flex; flex-direction: column; background: transparent; border: 1px solid rgba(128, 128, 128, 0.28); }
.cdt-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.cdt-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--cdt-ease); }
.cdt-card:hover .cdt-card__image img { transform: scale(1.04); }
.cdt-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
body .cdt-main .cdt-card__meta { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; opacity: 0.65; }
body .cdt-main .cdt-card__title { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
body .cdt-main .cdt-card__title a { color: inherit; text-decoration: none; }
body .cdt-main .cdt-card__title a:hover { color: var(--cdt-accent); }
body .cdt-main .cdt-card__excerpt { margin: 0 0 18px; color: inherit; opacity: 0.85; }
body .cdt-main .cdt-card__more {
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--cdt-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.navigation.pagination { margin-top: 56px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body .cdt-main .page-numbers {
	min-width: 44px;
	padding: 10px 14px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	color: inherit;
	text-align: center;
	text-decoration: none;
}
body .cdt-main .page-numbers.current, body .cdt-main a.page-numbers:hover { background: var(--cdt-bg); border-color: var(--cdt-bg); color: var(--cdt-fg); }

.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin: 24px 0; }
.search-form label { flex: 1 1 220px; }
body .cdt-main .search-field {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(128, 128, 128, 0.5);
	border-radius: 2px;
	font: inherit;
	background: transparent;
	color: inherit;
}
body .cdt-main .search-submit {
	padding: 14px 24px;
	border: 1px solid var(--cdt-bg);
	border-radius: 2px;
	background: var(--cdt-bg);
	color: var(--cdt-fg);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}
body .cdt-main .search-submit:hover { background: var(--cdt-accent); border-color: var(--cdt-accent); color: var(--cdt-on-accent); }

.cdt-404 { text-align: center; }
.cdt-404 .search-form { margin-inline: auto; }
body .cdt-404 .cdt-404__code {
	margin: 0;
	font-size: clamp(90px, 18vw, 180px);
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--cdt-accent);
}
.cdt-empty { text-align: center; padding: 40px 0; }

/* Shortcode: [cdt_hours] */
.cdt-hours-list { margin: 0; }
.cdt-hours-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, 0.25); }
.cdt-hours-list dt { margin: 0; font-weight: 600; }
.cdt-hours-list dd { margin: 0; text-align: right; }

/* =========================================================================
   8. Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cdt-header, .cdt-header *, .cdt-footer *, .cdt-panel, .cdt-backdrop, .cdt-card * {
		transition-duration: 0.01ms !important;
	}
}
