/* Centritek Footer — public-facing styles
 *
 * Single-widget replacement for the old three-block Elementor footer.
 * Centered layout, top to bottom: logo → tagline → nav → social → bottom
 * bar. Selectors are prefixed `.ct-footer` to clear Elementor's heading/
 * button kit; loaded only when the Footer widget renders (wp_enqueue_style
 * in render(), same scoping mechanism as rentals.css / about.css).
 *
 * Tokens (normalized against docs/specs/footer.md "Colors" table — the
 * design tool's raw hex picks are intentionally not used here; see that
 * table for the mapping):
 *   orange var(--e-global-color-primary, #F56A22) · ink #1a1a1a
 *   body/muted #74787c · border rgba(26,26,26,0.18) (see below)
 *   heading font Space Grotesk · mono font IBM Plex Mono
 *
 * No background of its own: the footer inherits the page background so it
 * always matches whatever band the page ends on — which varies (the page
 * gradient ends at #CDD7EF; other pages end white). Borders are therefore
 * translucent ink rather than a fixed gray: every fixed light gray tried
 * (#ededed, #d3d7e6) disappeared against one of those backgrounds.
 */

.ct-footer {
	color: #1a1a1a;
	padding: 56px 40px 30px;
}

.ct-footer *,
.ct-footer *::before,
.ct-footer *::after {
	box-sizing: border-box;
}

.ct-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

/* Scoped under .ct-footer (0,2,0) so the accent color beats Elementor's
 * text-kit color rules on headings, paragraphs, and spans. */
.ct-footer .ct-footer__accent {
	color: var(--e-global-color-primary, #F56A22);
}

/* ---------- Logo ---------- */

.ct-footer__logo {
	display: inline-block;
}

.ct-footer .ct-footer__logo-img {
	height: 52px;
	width: auto;
	display: inline-block;
}

.ct-footer .ct-footer__logo-text {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: #1a1a1a;
}

/* ---------- Tagline ---------- */

.ct-footer .ct-footer__tagline {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1a1a1a;
	max-width: 660px;
	margin: 28px auto 0;
}

/* ---------- Nav ---------- */

.ct-footer__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 28px;
	margin: 32px 0 28px;
	padding: 0;
}

.ct-footer .ct-footer__menu a {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #74787c;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ct-footer .ct-footer__menu a:hover,
.ct-footer .ct-footer__menu a:focus-visible {
	color: var(--e-global-color-primary, #F56A22);
}

.ct-footer .ct-footer__menu a:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #F56A22);
	outline-offset: 2px;
}

/* ---------- Social ---------- */

/* Omitted entirely (including this margin) when no repeater row has a URL —
 * see Footer_Widget::render(). */
.ct-footer__social-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-bottom: 38px;
}

/* Hollow circle outline at rest, fills brand orange on hover — glyph itself
 * is `currentColor` inside the SVG, so this color also drives the icon. */
.ct-footer .ct-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(26, 26, 26, 0.18);
	color: #74787c;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ct-footer .ct-footer__social:hover,
.ct-footer .ct-footer__social:focus-visible {
	background: var(--e-global-color-primary, #F56A22);
	border-color: var(--e-global-color-primary, #F56A22);
	color: #fff;
	transform: translateY(-2px);
}

.ct-footer .ct-footer__social:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #F56A22);
	outline-offset: 2px;
}

.ct-footer .ct-footer__social svg {
	width: 20px;
	height: 20px;
}

/* ---------- Bottom bar ---------- */

.ct-footer__bottom {
	padding-top: 26px;
	border-top: 1px solid rgba(26, 26, 26, 0.18);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 28px;
}

.ct-footer .ct-footer__copyright {
	font-family: var(--e-global-typography-accent-font-family, "IBM Plex Mono"), monospace;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #74787c;
	margin: 0;
}

.ct-footer .ct-footer__phone {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
}

.ct-footer .ct-footer__phone:hover,
.ct-footer .ct-footer__phone:focus-visible {
	color: var(--e-global-color-primary, #F56A22);
}

.ct-footer .ct-footer__phone:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #F56A22);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ct-footer .ct-footer__menu a,
	.ct-footer .ct-footer__social { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.ct-footer { padding: 40px 24px 24px; }
	.ct-footer .ct-footer__tagline { font-size: 19px; }
	.ct-footer .ct-footer__menu a { font-size: 14px; }
	.ct-footer__menu { gap: 18px; }
}
