/*
 * Weirs Collision Center — Custom Brand CSS
 * Astra Child Theme · assets/css/weirs-custom.css
 *
 * Structure:
 *  1. CSS Variables (Weirs Brand Tokens)
 *  2. Global Resets & Typography
 *  3. Astra Header Overrides
 *  4. Buttons
 *  5. Links & Accent Colors
 *  6. Elementor Global Overrides
 *  7. Trust Bar
 *  8. CTA Sections
 *  9. Forms
 * 10. Footer
 * 11. Utility Classes
 * 12. Mobile Responsive
 */

/* ─── 1. BRAND TOKENS ────────────────────────────────────────────────────── */

:root {
	/* Weirs Green — extracted from official EPS logo */
	--weirs-green:       #008353;
	--weirs-green-dark:  #006640;
	--weirs-green-light: #e6f4ef;
	--weirs-green-glow:  rgba(0, 131, 83, 0.30);

	/* Neutrals */
	--weirs-black:      #1C1C1C;
	--weirs-grey-900:   #2A2A2A;
	--weirs-grey-700:   #4A4A4A;
	--weirs-grey-500:   #707070;
	--weirs-grey-300:   #C9C9C9;
	--weirs-grey-100:   #F5F5F5;
	--weirs-white:      #FFFFFF;

	/* Typography */
	--weirs-font-display: 'Bebas Neue', sans-serif;
	--weirs-font-head:    'Manrope', sans-serif;
	--weirs-font-body:    'Manrope', sans-serif;
}

/* ─── 2. GLOBAL TYPOGRAPHY ───────────────────────────────────────────────── */

body {
	font-family: var(--weirs-font-body);
	color: var(--weirs-black);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--weirs-font-head);
	color: var(--weirs-black);
	line-height: 1.2;
}

/* ─── 3. ASTRA HEADER OVERRIDES ─────────────────────────────────────────── */

/* Primary header background */
#masthead,
.site-header {
	background-color: var(--weirs-black) !important;
}

/* Site logo text fallback */
.site-title a,
.site-title a:hover {
	color: var(--weirs-white) !important;
}

/* Primary navigation links */
.main-header-menu .menu-item > a,
.main-navigation .menu-item > a {
	color: var(--weirs-white) !important;
	font-family: var(--weirs-font-head) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
	letter-spacing: 1.2px !important;
	transition: color 0.2s ease !important;
}

.main-header-menu .menu-item > a:hover,
.main-navigation .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
	color: var(--weirs-green) !important;
}

/* Dropdown menus */
.main-header-menu .sub-menu,
.main-navigation .sub-menu {
	border-top: 3px solid var(--weirs-green) !important;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20) !important;
}

.main-header-menu .sub-menu .menu-item > a,
.main-navigation .sub-menu .menu-item > a {
	color: var(--weirs-black) !important;
	font-size: 13px !important;
	text-transform: none !important;
	letter-spacing: 0.3px !important;
}

.main-header-menu .sub-menu .menu-item > a:hover,
.main-navigation .sub-menu .menu-item > a:hover {
	color: var(--weirs-green) !important;
	background: var(--weirs-grey-100) !important;
}

/* Astra mobile header toggle */
.ast-mobile-menu-trigger span,
.ast-mobile-menu-trigger::before,
.ast-mobile-menu-trigger::after {
	background: var(--weirs-white) !important;
}

/* ─── 4. BUTTONS ─────────────────────────────────────────────────────────── */

/* Astra default button — override to Weirs Green */
.ast-btn,
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
	background-color: var(--weirs-green) !important;
	color: var(--weirs-white) !important;
	border-color: var(--weirs-green) !important;
	font-family: var(--weirs-font-head) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	border-radius: 2px !important;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}

.ast-btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background-color: var(--weirs-green-dark) !important;
	border-color: var(--weirs-green-dark) !important;
	color: var(--weirs-white) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 24px var(--weirs-green-glow) !important;
}

/* Outline / ghost button variant */
.btn-ghost,
.weirs-btn-outline {
	background-color: transparent !important;
	color: var(--weirs-green) !important;
	border: 2px solid var(--weirs-green) !important;
}

.btn-ghost:hover,
.weirs-btn-outline:hover {
	background-color: var(--weirs-green) !important;
	color: var(--weirs-white) !important;
}

/* ─── 5. LINKS & ACCENT COLORS ───────────────────────────────────────────── */

a {
	color: var(--weirs-green);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--weirs-green-dark);
}

/* Selection highlight */
::selection {
	background: var(--weirs-green);
	color: var(--weirs-white);
}

/* ─── 6. ELEMENTOR GLOBAL OVERRIDES ─────────────────────────────────────── */

/* Elementor accent color — make sure Elementor kit is also set to #008353 */
.elementor-widget-button .elementor-button.elementor-button-link,
.elementor-widget-button .elementor-button {
	font-family: var(--weirs-font-head) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	border-radius: 2px !important;
	transition: all 0.25s ease !important;
}

/* Elementor headings */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--weirs-font-head);
}

/* Elementor dividers */
.elementor-widget-divider .elementor-divider-separator {
	border-color: var(--weirs-green) !important;
}

/* ─── 7. TRUST BAR ───────────────────────────────────────────────────────── */

.weirs-trust-bar {
	background: var(--weirs-black);
	border-bottom: 4px solid var(--weirs-green);
	padding: 22px 30px;
}

.weirs-trust-bar .trust-item {
	color: var(--weirs-white);
	font-family: var(--weirs-font-head);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.weirs-trust-bar .trust-icon {
	background: var(--weirs-green);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
}

/* ─── 8. CTA SECTIONS ────────────────────────────────────────────────────── */

.weirs-cta-primary {
	background: var(--weirs-green);
}

.weirs-cta-dark {
	background: var(--weirs-black);
}

.weirs-section-label {
	font-family: var(--weirs-font-head);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--weirs-green);
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.weirs-section-label::before {
	content: '';
	width: 32px;
	height: 2px;
	background: var(--weirs-green);
	display: block;
}

/* ─── 9. FORMS ───────────────────────────────────────────────────────────── */

/* Contact Form 7 / WPForms / Gravity Forms base overrides */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
	border: 1px solid var(--weirs-grey-300) !important;
	border-radius: 2px !important;
	font-family: var(--weirs-font-body) !important;
	transition: border-color 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
	border-color: var(--weirs-green) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px var(--weirs-green-glow) !important;
}

/* ─── 10. FOOTER ─────────────────────────────────────────────────────────── */

.site-footer,
#colophon {
	background: #0F0F0F !important;
	color: rgba(255, 255, 255, 0.65) !important;
	font-family: var(--weirs-font-body) !important;
}

.site-footer a,
#colophon a {
	color: rgba(255, 255, 255, 0.65) !important;
	transition: color 0.2s ease !important;
}

.site-footer a:hover,
#colophon a:hover {
	color: var(--weirs-green) !important;
}

/* Footer widget headings */
.site-footer .widget-title,
#colophon .widget-title {
	color: var(--weirs-white) !important;
	font-family: var(--weirs-font-head) !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	font-size: 13px !important;
	border-bottom: 2px solid var(--weirs-green) !important;
	padding-bottom: 14px !important;
	display: inline-block !important;
}

/* ─── 11. UTILITY CLASSES ────────────────────────────────────────────────── */

/* Color utilities */
.weirs-green        { color: var(--weirs-green) !important; }
.weirs-bg-green     { background-color: var(--weirs-green) !important; }
.weirs-bg-dark      { background-color: var(--weirs-black) !important; }
.weirs-bg-light     { background-color: var(--weirs-grey-100) !important; }
.weirs-text-white   { color: var(--weirs-white) !important; }

/* Typography utilities */
.weirs-font-display { font-family: var(--weirs-font-display) !important; }
.weirs-font-head    { font-family: var(--weirs-font-head) !important; }
.weirs-uppercase    { text-transform: uppercase !important; letter-spacing: 1.5px !important; }

/* Border accent */
.weirs-border-green { border-left: 4px solid var(--weirs-green) !important; }
.weirs-border-top-green { border-top: 3px solid var(--weirs-green) !important; }

/* Shadow */
.weirs-shadow-green { box-shadow: 0 8px 30px var(--weirs-green-glow) !important; }

/* Certification badge container */
.weirs-cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 20px;
	align-items: center;
}

.weirs-cert-logo {
	max-width: 120px;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.weirs-cert-logo:hover {
	filter: grayscale(0%);
	opacity: 1;
}

/* ─── 12. MOBILE RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 980px) {

	.weirs-cert-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {

	.weirs-cert-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Larger tap targets on mobile for phone CTAs */
	a[href^="tel"] {
		display: inline-block;
		padding: 4px 0;
	}
}
