/*
Theme Name: Back 2 Clear
Theme URI: https://www.back2clearheadlights.com
Author: Ataraxia Solutions Inc
Description: Elementor-ready theme for Back 2 Clear Headlights — mobile auto & truck headlight restoration. Includes a one-click demo importer (Appearance → Back 2 Clear Setup) that creates fully editable Elementor pages: Home, Services, About Us and Contact.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
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: back2clear
Tags: custom-logo, custom-menu, full-width-template, theme-options, one-column
*/

/* ---------- Tokens (accent can be changed in Customizer) ---------- */
:root {
	--b2c-primary: #1E3FD0;
	--b2c-accent: #6F8BFF;
	--b2c-navy: #070C24;
	--b2c-navy-2: #0A1238;
	--b2c-light: #EEF2FA;
	--b2c-text: #0A1238;
	--b2c-muted: #4D5781;
	--b2c-border: #C9D1E8;
	--b2c-font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--b2c-font-body: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--b2c-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--b2c-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--b2c-primary); }
a:hover { color: var(--b2c-navy-2); }
h1, h2, h3, h4, h5, h6 { font-family: var(--b2c-font-head); line-height: 1.1; margin: 0 0 .5em; }

.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:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: #fff; color: var(--b2c-navy);
}
:focus-visible { outline: 2px solid var(--b2c-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.b2c-header {
	background: var(--b2c-navy);
	border-top: 3px solid var(--b2c-primary);
	position: relative;
	z-index: 50;
}
.b2c-header.is-sticky { position: sticky; top: 0; }
.admin-bar .b2c-header.is-sticky { top: 32px; }
.b2c-header__inner {
	max-width: 1280px; margin: 0 auto; padding: 10px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.b2c-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 4px 8px; line-height: 0; }
.b2c-logo img { height: 44px; width: auto; display: block; }
.b2c-site-title { color: #fff; font-family: var(--b2c-font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; text-decoration: none; }

.b2c-nav { display: flex; align-items: center; gap: 24px; }
.b2c-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.b2c-menu li { position: relative; }
.b2c-menu a {
	color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; display: inline-block;
}
.b2c-menu a:hover,
.b2c-menu .current-menu-item > a,
.b2c-menu .current_page_item > a { color: var(--b2c-accent); }
.b2c-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 200px;
	list-style: none; margin: 0; padding: 8px 16px; background: var(--b2c-navy-2);
}
.b2c-menu li:hover > .sub-menu, .b2c-menu li:focus-within > .sub-menu { display: block; }

.b2c-header__phone { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.b2c-header__phone:hover { color: var(--b2c-accent); }
.b2c-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px;
	background: var(--b2c-primary); color: #fff; border: 0; border-radius: 0; cursor: pointer;
	font-family: var(--b2c-font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.b2c-btn:hover, .b2c-btn:focus { background: var(--b2c-navy-2); color: #fff; }
.b2c-header .b2c-btn:hover { background: #fff; color: var(--b2c-navy); }

.b2c-menu-toggle {
	display: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
	width: 44px; height: 44px; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center;
}
.b2c-menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
	.b2c-header__inner { padding: 10px 20px; flex-wrap: wrap; }
	.b2c-menu-toggle { display: inline-flex; }
	.b2c-nav {
		display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,.12);
	}
	.b2c-nav.is-open { display: flex; }
	.b2c-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.b2c-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
	.b2c-menu .sub-menu { display: block; position: static; padding: 0 0 0 16px; background: transparent; }
	.b2c-header__phone { padding: 14px 0; font-size: 14px; }
	.b2c-nav .b2c-btn { min-height: 48px; margin-top: 8px; }
}
@media (max-width: 782px) { .admin-bar .b2c-header.is-sticky { top: 46px; } }

/* ---------- Footer ---------- */
.b2c-footer { background: var(--b2c-navy); color: #8E98C2; font-size: 13px; }
.b2c-footer__inner {
	max-width: 1280px; margin: 0 auto; padding: 48px 32px 24px;
	display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.b2c-footer h2 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.b2c-footer p { margin: 0 0 6px; }
.b2c-footer a { color: #C2CAE6; text-decoration: none; }
.b2c-footer a:hover { color: #fff; }
.b2c-footer ul { list-style: none; margin: 0; padding: 0; }
.b2c-footer li { margin-bottom: 6px; }
.b2c-footer__bottom {
	border-top: 1px solid #1A2452; text-align: center; padding: 18px 24px; font-size: 12px;
}
@media (max-width: 767px) {
	.b2c-footer__inner { grid-template-columns: 1fr; padding: 40px 20px 16px; gap: 24px; }
}

/* ---------- Default (non-Elementor) content ---------- */
.b2c-content { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.b2c-content .entry-title { font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; font-weight: 800; }
.b2c-content .entry-content > * { margin-bottom: 1.2em; }
.b2c-archive-item { padding: 24px 0; border-bottom: 1px solid var(--b2c-border); }
.b2c-archive-item h2 { font-size: 24px; }
.b2c-archive-item h2 a { color: var(--b2c-text); text-decoration: none; }
.b2c-pagination { margin-top: 32px; }

/* Elementor full-width pages: no extra spacing */
.elementor-page .b2c-main { padding: 0; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Booking form ---------- */
.b2c-form {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
	font-family: var(--b2c-font-body);
}
.b2c-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--b2c-text); }
.b2c-form__field--full { grid-column: 1 / -1; }
.b2c-form input, .b2c-form select, .b2c-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-weight: 400; font-size: 15px;
	color: var(--b2c-text); background: #fff; border: 1px solid var(--b2c-border); border-radius: 0;
}
.b2c-form textarea { min-height: 120px; resize: vertical; }
.b2c-form input:focus, .b2c-form select:focus, .b2c-form textarea:focus { border-color: var(--b2c-primary); outline: 2px solid rgba(30,63,208,.15); }
.b2c-form .b2c-btn { grid-column: 1 / -1; min-height: 52px; font-size: 13px; }
.b2c-form__hp { position: absolute !important; left: -9999px !important; }
.b2c-form__notice { grid-column: 1 / -1; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.b2c-form__notice--ok { background: #E7F6EC; color: #145A2E; }
.b2c-form__notice--err { background: #FDECEC; color: #8A1C1C; }
.b2c-form__note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--b2c-muted); }
@media (max-width: 767px) { .b2c-form { grid-template-columns: 1fr; } }

/* ---------- Footer social icons ---------- */
.b2c-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.b2c-social li { margin: 0; }
.b2c-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 1px solid #26326A; color: #C2CAE6;
	transition: background .2s, border-color .2s, color .2s;
}
.b2c-social a:hover, .b2c-social a:focus-visible { background: var(--b2c-primary); border-color: var(--b2c-primary); color: #fff; }
.b2c-social svg { display: block; }
