/* ==========================================================================
   Bulldog Accident Repair — ab- design system
   Look target: stanwaysautobodies.co.uk
   Tokens: Bebas Neue (display) / DM Sans (body) / DM Mono (eyebrow)
   #1A1A1A dark · #08415C accent · #0A5575 hover · #F4F4F4 light · #666 grey
   ========================================================================== */

:root {
	--ab-dark: #1a1a1a;
	--ab-accent: #08415c;
	--ab-accent-hover: #0a5575;
	--ab-white: #ffffff;
	--ab-light: #f4f4f4;
	--ab-grey: #666666;
	--ab-muted: #aaaaaa;
	--ab-display: "Bebas Neue", Impact, sans-serif;
	--ab-body: "DM Sans", system-ui, sans-serif;
	--ab-mono: "DM Mono", ui-monospace, monospace;
}

/* ---- Base rhythm ---------------------------------------------------------- */
.ab-section {
	padding-block: clamp(56px, 8vw, 112px);
}
.ab-dark {
	background-color: var(--ab-dark);
	color: var(--ab-white);
}
.ab-light {
	background-color: var(--ab-light);
	color: var(--ab-dark);
}

/* ---- Eyebrow / mono technical label --------------------------------------- */
.ab-eyebrow {
	font-family: var(--ab-mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.8rem;
	color: var(--ab-accent);
	display: inline-block;
	margin-bottom: 0.75rem;
}
.ab-dark .ab-eyebrow {
	color: var(--ab-muted);
}

/* ---- Display headline ----------------------------------------------------- */
.ab-display {
	font-family: var(--ab-display);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	font-size: clamp(2.8rem, 7vw, 6rem);
	margin: 0;
}
.ab-display--xl {
	font-size: clamp(3.4rem, 9vw, 8rem);
}

/* ---- Hero ----------------------------------------------------------------- */
.ab-hero {
	position: relative;            /* height comes from the Elementor section setting */
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: var(--ab-white);
	overflow: hidden;
}
.ab-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0.55) 60%,
		rgba(0, 0, 0, 0.8) 100%
	);
	z-index: 1;
}
.ab-hero > * {
	position: relative;
	z-index: 2;
}

/* ---- Buttons -------------------------------------------------------------- */
/* NOTE: Elementor puts the ab-btn-* CSS class on the widget's outer wrapper,
   not the inner <a>. The button's colour/padding/radius/typography come from
   the Elementor widget settings; here we only stop the inner button from
   stretching the full column so it hugs its label, left-aligned. */
.elementor-widget-button.ab-btn-quote,
.elementor-widget-button.ab-btn-ghost {
	justify-content: flex-start;
}
.ab-btn-quote .elementor-button,
.ab-btn-ghost .elementor-button {
	display: inline-flex;
	align-items: center;
	width: auto;
}

/* ---- Service cards: image + scrim + bottom-left label + hover zoom -------- */
.ab-svc-card {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 4 / 3;
	display: block;
}
.ab-svc-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.ab-svc-card:hover img {
	transform: scale(1.06);
}
/* Background image + label live inside Elementor's .elementor-element-populated.
   Put the scrim there (not on the column) so we can zoom the whole wrapper on
   hover with the gradient + label correctly layered. */
.elementor-column.ab-svc-card .elementor-element-populated {
	position: relative;
	transition: transform 0.6s ease !important;
}
.elementor-column.ab-svc-card .elementor-element-populated::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.78) 100%);
	transition: background 0.35s ease;
}
/* Hover: zoom the image + deepen the scrim (image-card "comes alive" effect). */
.elementor-column.ab-svc-card:hover .elementor-element-populated {
	transform: scale(1.07) !important;
}
.elementor-column.ab-svc-card:hover .elementor-element-populated::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.88) 100%);
}
.ab-svc-label {
	position: absolute;
	left: 20px;
	bottom: 16px;
	z-index: 2;
	color: var(--ab-white);
	font-family: var(--ab-display);
	font-size: 1.7rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
}

/* When the card is a real Elementor container with a background image
   instead of an <img>, use .ab-svc-card--bg on a min-height box. */
.ab-svc-card--bg {
	background-size: cover;
	background-position: center;
	transition: background-size 0.6s ease;
}

/* ---- Trust / why-us icon box ---------------------------------------------- */
.ab-trust {
	text-align: center;
	padding: 1.5rem 1rem;
}
.ab-trust .ab-trust-num,
.ab-trust .ab-trust-icon {
	font-family: var(--ab-display);
	font-size: 2.6rem;
	color: var(--ab-accent);
	line-height: 1;
	margin-bottom: 0.5rem;
}
.ab-trust h3 {
	font-family: var(--ab-display);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 1.4rem;
	margin: 0 0 0.4rem;
}
.ab-trust p {
	font-family: var(--ab-body);
	color: var(--ab-grey);
	font-size: 0.95rem;
	margin: 0;
}
.ab-dark .ab-trust p {
	color: var(--ab-muted);
}

/* ---- Body text helper ----------------------------------------------------- */
.ab-lead {
	font-family: var(--ab-body);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.6;
	color: var(--ab-grey);
	max-width: 60ch;
}
.ab-dark .ab-lead {
	color: var(--ab-muted);
}

/* ---- Gallery hover caption ------------------------------------------------ */
/* Column-level class — needs .elementor-column specificity to win over Elementor's
   empty-column min-height. Keeps placeholder thumbs visible until photos drop in. */
.elementor-column.ab-gal-item {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	min-height: 240px;
	background-color: #e9e9e9;
	border: 1px solid #d4d4d4;   /* defines each tile until real photos drop in */
}
.ab-gal-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.ab-gal-item:hover img {
	transform: scale(1.05);
}
.ab-gal-item .ab-gal-cap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	color: #fff;
	font-family: var(--ab-body);
	font-weight: 500;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7));
	opacity: 0;
	transition: opacity 0.3s ease;
}
.ab-gal-item:hover .ab-gal-cap {
	opacity: 1;
}

/* ---- Mobile --------------------------------------------------------------- */
/* ---- Media placeholder columns (swap for a photo via Style > Background) --- */
.elementor-column.ab-media {
	min-height: 340px;
	background-color: #232323;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
}

/* ---- Contact Form 7 ------------------------------------------------------- */
.ab-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ab-field--full {
	grid-column: 1 / -1;
}
.wpcf7 label {
	font-family: var(--ab-body);
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--ab-dark);
	display: block;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	background: #fff;
	font-family: var(--ab-body);
	font-size: 0.95rem;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--ab-accent);
}
.wpcf7 input[type="submit"] {
	margin-top: 0.5rem;
	background: var(--ab-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	padding: 0.95rem 1.9rem;
	font-family: var(--ab-body);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.25s ease;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--ab-accent-hover);
}

/* ---- Trust cards (home "why us" band) ------------------------------------- */
.elementor-column.ab-trust-card {
	background: #fff;
	border-radius: 12px;
	border-top: 3px solid var(--ab-accent);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.elementor-column.ab-trust-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}
.ab-trust-card .elementor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(8, 65, 92, 0.09);
	margin-bottom: 16px;
	transition: background 0.25s ease;
}
.ab-trust-card:hover .elementor-icon {
	background: var(--ab-accent);
}
.ab-trust-card:hover .elementor-icon i,
.ab-trust-card:hover .elementor-icon svg {
	color: #fff !important;
	fill: #fff !important;
}

/* ==========================================================================
   HEADER — clean, balanced, sticky
   ========================================================================== */

/* Logo only (hide the text site title/tagline) */
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.site-branding .site-title,
.site-branding .site-description {
	display: none !important;
}

/* Constrain the logo to a sensible header height (it ships as a big wordmark). */
.custom-logo-link img,
.ast-site-identity .custom-logo-link img,
.site-logo-img .custom-logo-link img {
	height: 58px !important;
	width: auto !important;
	max-width: none !important;
}

/* Sticky, white header with a hairline + soft shadow. */
#masthead {
	position: sticky;
	top: 0;
	z-index: 99;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.04);
}
.ast-primary-header-bar,
.main-header-bar {
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	background: transparent !important;
	border-bottom: 0 !important;
}

/* Nav links: DM Sans, uppercase, spaced, teal on hover/active. */
.main-header-menu .menu-link,
.ast-nav-menu .menu-link,
.main-header-bar .main-header-menu a {
	font-family: var(--ab-body) !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.84rem !important;
	color: var(--ab-dark) !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	transition: color 0.2s ease;
}
.main-header-menu .menu-item:hover > .menu-link,
.ast-nav-menu .menu-item:hover > .menu-link,
.ast-nav-menu .current-menu-item > .menu-link {
	color: var(--ab-accent) !important;
}

/* FREE QUOTE — a contained pill button, vertically centred (not full height). */
.ab-nav-cta {
	display: flex;
	align-items: center;
}
.ab-nav-cta .menu-link,
.ab-nav-cta a {
	display: inline-flex !important;
	align-items: center;
	align-self: center !important;
	height: 44px !important;
	min-height: 0 !important;
	background: var(--ab-accent);
	color: #fff !important;
	border-radius: 6px;
	margin-left: 16px;
	padding: 0 24px !important;
	line-height: 1 !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.25s ease, transform 0.2s ease;
}
.ab-nav-cta:hover .menu-link,
.ab-nav-cta a:hover {
	background: var(--ab-accent-hover);
	color: #fff !important;
	transform: translateY(-1px);
}
/* Force the label white + bold. Needs to out-specify the .main-header-bar
   .main-header-menu a nav-link rule above (0,3,0), so we go higher (0,4,x). */
.main-header-bar .main-header-menu .ab-nav-cta a,
.main-header-bar .main-header-menu .ab-nav-cta a *,
.main-header-bar .main-header-menu .ab-nav-cta .menu-link,
.main-header-bar .main-header-menu .ab-nav-cta .menu-link *,
.ast-primary-header-bar .ast-nav-menu .ab-nav-cta a,
.ast-primary-header-bar .ast-nav-menu .ab-nav-cta a * {
	color: #ffffff !important;
	font-weight: 700 !important;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 767px) {
	.ab-form-grid {
		grid-template-columns: 1fr;
	}
	/* nav CTA button reads full-width inside the off-canvas menu */
	.ab-nav-cta a,
	.ab-nav-cta .menu-link {
		display: inline-block;
		margin: 6px 0 0;
	}
}
@media (max-width: 600px) {
	.ab-svc-label {
		font-size: 1.4rem;
		left: 14px;
		bottom: 12px;
	}
}
