/* Shared header/navigation styles (extracted from page CSS) */

html,
body {
	overflow-x: hidden;
}

/*
	Single-scroller fix (bulletproof):
	Force only ONE root element to scroll. Some browsers can end up with both
	`html` and `body` scrollable, which shows two vertical scrollbars (one with
	only a few pixels of scroll range).

	We make `body` the scroller and explicitly prevent `html` from scrolling.
*/
html {
	height: 100%;
	overflow-y: hidden !important;
}

body {
	min-height: 100vh;
	height: 100vh;
	overflow-y: auto !important;

	/*
		Per-page adjustment hook for the desktop hero nav column.
		Override per page using:
		body[data-page="SomePage.html"] { --hero-nav-page-adjust: 10px; }
	*/
	--hero-nav-page-adjust: 0px;
	--hero-nav-large-screen-y-adjust: 0px;
	--hero-nav-large-screen-x-adjust: 0px;
}

/* Page-specific nav tweaks (adjust values as needed) */
body[data-page="index.html"] {
	--hero-nav-page-adjust: -470px;
}
body[data-page="WhatMakesUsUnique.html"] {
	--hero-nav-page-adjust: -400px;
}
body[data-page="LatestNews.html"] {
	--hero-nav-page-adjust: -350px;
}
body[data-page="OurTeam.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="Contact.html"] {
	--hero-nav-page-adjust: -360px;
}
body[data-page="faq.html"] {
	--hero-nav-page-adjust: -330px;
}
body[data-page="complaints-proceedure.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="blogs.html"] {
	--hero-nav-page-adjust: -330px;
}
body[data-page="sitemap.html"] {
	--hero-nav-page-adjust: -330px;
}
body[data-page="PrivacyPolicy.html"] {
	--hero-nav-page-adjust: -330px;
}
body[data-page="scott-ewing.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="dillon-may.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="tony-wyatt.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="george-steel.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="rebecca-ireland.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="francesca-macleod-matthews.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="verity-smith.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="nicola-mitchell.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="rob-bryan.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="jacqui-perera.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="Account-Forfeiture-Explained-A-Practical-Guide.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="Account-Freezing-Orders-AFOs-What-They-Are-and-How-to-Challenge-Them.html"] {
	--hero-nav-page-adjust: -370px;
}
body[data-page="What-to-Expect-if-Youre-Contacted-by-the-Police-A-Step-by-Step-Guide.html"] {
	--hero-nav-page-adjust: -370px;
}

.gold-divider {
	width: 100%;
	height: 6px;
	background: #ab8d44;
	flex: 0 0 auto;
}

/* Hero background images are no longer used */
.hero-section {
	background-image: none !important;
}

/* Match index hero spacing site-wide */
.hero-section {
	position: relative !important;
	padding-top: 20rem !important;
	padding-bottom: 20rem !important;
}

.hero-text {
	margin-top: -9rem !important;
	margin-bottom: 4rem !important;
}

@media (min-width: 1600px) {
	body {
		--hero-nav-large-screen-y-adjust: -200px;
		--hero-nav-large-screen-x-adjust: 0px;
	}

	.hero-section {
		padding-top: 29rem !important;
		padding-bottom: 24rem !important;
	}

	.hero-text {
		margin-top: -7rem !important;
		margin-bottom: 5rem !important;
	}

	body[data-page="index.html"] {
		--hero-nav-large-screen-y-adjust: -200px;
		--hero-nav-large-screen-x-adjust: 18px;
	}
	body[data-page="WhatMakesUsUnique.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="LatestNews.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="OurTeam.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="Contact.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="faq.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="complaints-proceedure.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="blogs.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="sitemap.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="PrivacyPolicy.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="scott-ewing.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="dillon-may.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="tony-wyatt.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="george-steel.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="rebecca-ireland.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="francesca-macleod-matthews.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="verity-smith.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="nicola-mitchell.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="rob-bryan.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="jacqui-perera.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="Account-Forfeiture-Explained-A-Practical-Guide.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="Account-Freezing-Orders-AFOs-What-They-Are-and-How-to-Challenge-Them.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}
	body[data-page="What-to-Expect-if-Youre-Contacted-by-the-Police-A-Step-by-Step-Guide.html"] {
	--hero-nav-large-screen-y-adjust: -200px;
	}

}

@media (max-width: 768px) {
	.hero-section {
		padding-top: 16rem !important;
		padding-bottom: 16rem !important;
	}

	.hero-text {
		margin-top: -6rem !important;
		margin-bottom: 3rem !important;
	}
}

/* Breadcrumbs at top: avoid overlap with fixed mobile toggle */
@media (max-width: 900px) {
	.breadcrumbs {
		padding-left: 90px;
	}
}

@media (max-width: 600px) {
	.breadcrumbs {
		padding-left: 86px;
	}
}

/* Breadcrumbs: enforce index styling site-wide */
.breadcrumbs {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	background: #1a3a24 !important;
	padding: 0.75em 2em 0.75em 2em !important;
	margin: 0 !important;
	box-shadow: 0 2px 8px rgba(26, 35, 64, 0.06) !important;
	font-family: 'Crimson Text', serif !important;
	font-size: 1.1em !important;
}

.breadcrumbs ul {
	display: flex !important;
	align-items: center !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.breadcrumbs li {
	display: flex !important;
	align-items: center !important;
}

.breadcrumb-separator {
	margin: 0 0.5em !important;
	color: #b89b5e !important;
	font-size: 1.2em !important;
}

.breadcrumb-icon {
	width: 1.2em !important;
	height: 1.2em !important;
	margin-right: 0.3em !important;
	vertical-align: middle !important;
}

.breadcrumb-current {
	color: #ffffff !important;
	font-weight: bold !important;
	letter-spacing: 0.5px !important;
}

.breadcrumbs a {
	color: #ffffff !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.breadcrumbs a:hover {
	color: #b89b5e !important;
}

@media (max-width: 768px) {
	.breadcrumbs {
		padding: 0.6em 1em 0.6em 90px !important;
		font-size: 0.95em !important;
	}

	.breadcrumb-separator {
		margin: 0 0.3em !important;
		font-size: 1em !important;
	}

	.breadcrumb-icon {
		width: 1em !important;
		height: 1em !important;
	}
}

@media (max-width: 480px) {
	.breadcrumbs {
		padding: 0.5em 0.8em 0.5em 86px !important;
		font-size: 0.85em !important;
	}

	.breadcrumb-separator {
		margin: 0 0.2em !important;
	}
}

/* Used by overlays to lock background scrolling */
html.scroll-locked,
html.scroll-locked body {
	overflow: hidden !important;
}

.hero-section .ewing-law-logo {
	position: absolute;
	top: 0px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 420px;
	width: 100%;
	height: 150px;
	z-index: 10000;
	display: block;
	margin: 0 auto;
}

/* --- HERO NAV BUTTONS COLUMN (VERTICAL) --- */
.hero-nav-btns-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	position: absolute;
	/*
		Align to the same viewport Y-position on every page, while still scrolling
		away with the hero section.

		`--hero-top-offset` is set on the closest .hero-section by header.js and is
		the hero section's distance from the top of the document.
	*/
	top: calc(50vh - var(--hero-top-offset, 0px) + var(--hero-nav-page-adjust, 0px) + var(--hero-nav-large-screen-y-adjust, 0px));
	left: 0;
	/*
		Avoid using large padding to shift the nav column (it can contribute to
		document overflow/extra scroll). This matches the previous visual offset
		from padding-bottom: 355px (≈177.5px).
	*/
	transform: translateY(calc(-50% - 20px));
	z-index: 30000;
	max-width: 340px;
	width: 100%;
	padding-left: calc(2.2vw + var(--hero-nav-large-screen-x-adjust, 0px));
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	pointer-events: auto;
}

.hero-nav-fadein-btn.hero-nav-fadein-left {
	opacity: 0;
	transform: translateX(-60px);
	transition: opacity 0.8s cubic-bezier(0.77, 0.2, 0.05, 1.0), transform 0.8s cubic-bezier(0.77, 0.2, 0.05, 1.0);
	background: transparent;
	border: none;
	outline: none;
	display: flex;
	align-items: center;
	font-family: 'Crimson Text', serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.08em;
	box-shadow: none;
	margin: 0;
	padding: 0.3rem 1.2rem 0.3rem 0.2rem;
	border-radius: 0 32px 32px 0;
	cursor: pointer;
	overflow: visible;
	background: none;
}

.hero-nav-fadein-btn.hero-nav-fadein-left.visible {
	opacity: 1;
	transform: translateX(0);
}

.hero-nav-fadein-btn .gold-vert-line {
	display: inline-block;
	width: 4px;
	height: 0;
	background: linear-gradient(180deg, #ffe7a0 0%, #ab8d44 100%);
	margin-right: 1.1rem;
	border-radius: 2px;
	transition: height 0.7s cubic-bezier(0.77, 0.2, 0.05, 1.0);
	vertical-align: middle;
	box-shadow: 0 0 6px #ab8d44a0;
}

.hero-nav-fadein-btn.hero-nav-fadein-left.visible .gold-vert-line {
	height: 2.1rem;
}

.hero-nav-fadein-btn .hero-nav-btn-text {
	color: #fff;
	font-family: 'Crimson Text', serif;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: color 0.2s;
}

.hero-nav-fadein-btn:hover .hero-nav-btn-text {
	color: #ffe7a0;
}

.hero-nav-fadein-btn:hover .gold-vert-line {
	box-shadow: 0 0 16px #ffe7a0;
}

.nav-ewing-law-logo {
	width: 88px;
	height: auto;
	display: block;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 40000;
	background: linear-gradient(135deg, #1a3a24 0%, #ab8d44 100%);
	border: 2px solid #ffe7a0;
	border-radius: 12px;
	width: 56px;
	height: 56px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(171, 141, 68, 0.4);
	transition: all 0.3s ease;
}

.mobile-nav-toggle .material-icons {
	color: #ffe7a0;
	font-size: 32px;
	transition: transform 0.3s ease;
}

.mobile-nav-toggle:hover {
	background: linear-gradient(135deg, #ab8d44 0%, #1a3a24 100%);
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(255, 231, 160, 0.5);
}

.mobile-nav-toggle:active {
	transform: scale(0.95);
}

.mobile-nav-toggle.active .material-icons {
	transform: rotate(90deg);
}

/* Mobile Navigation Styles */
@media (max-width: 900px) {
	#site-header {
		position: relative;
		z-index: 99997 !important;
	}

	.mobile-nav-toggle {
		display: flex;
		z-index: 99999;
	}

	.hero-nav-btns-col {
		position: fixed;
		top: 78px;
		left: 20px;
		z-index: 99998;
		transform: none;
		background: rgba(1, 39, 14, 0.98);
		backdrop-filter: blur(12px);
		border: 2px solid #ab8d44;
		border-radius: 16px;
		padding: 1.5rem 1rem;
		max-width: 280px;
		max-height: calc(100vh - 120px);
		/* Only allow scrolling when the mobile menu is open */
		overflow-y: hidden;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
		opacity: 0;
		pointer-events: none;
		transform: translateX(-20px) scale(0.95);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.hero-nav-btns-col.mobile-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(0) scale(1);
		overflow-y: auto;
	}

	.hero-nav-fadein-btn.hero-nav-fadein-left {
		opacity: 1;
		transform: translateX(0);
		width: 100%;
		justify-content: flex-start;
		padding: 0.8rem 1rem;
		margin: 0;
		background: rgba(171, 141, 68, 0.1);
		border-radius: 10px;
		transition: all 0.2s ease;
	}

	.hero-nav-fadein-btn.hero-nav-fadein-left:hover {
		background: rgba(171, 141, 68, 0.3);
		transform: translateX(5px);
	}

	.hero-nav-fadein-btn .gold-vert-line {
		height: 2.1rem;
		margin-right: 0.8rem;
	}
}

@media (max-width: 600px) {
	.mobile-nav-toggle {
		top: 15px;
		left: 15px;
		width: 50px;
		height: 50px;
	}

	.mobile-nav-toggle .material-icons {
		font-size: 28px;
	}

	.hero-nav-btns-col {
		top: 80px;
		left: 15px;
		max-width: calc(100vw - 30px);
		padding: 1.2rem 0.8rem;
	}

	.hero-nav-fadein-btn.hero-nav-fadein-left {
		font-size: 1.1rem;
		padding: 0.7rem 0.9rem;
	}
}

/* MOBILE FIXES */
@media (max-width: 768px) {
	/* Restore natural scrolling on mobile (keeps desktop behaviour unchanged) */
	html {
		height: auto;
		overflow-y: auto !important;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	body {
		height: auto !important;
		overflow-y: visible !important;
		-webkit-overflow-scrolling: touch;
	}

	/* Lock background scroll when mobile menu is open */
	html.mobile-nav-scroll-locked,
	html.mobile-nav-scroll-locked body {
		overflow: hidden !important;
	}

	/* Prevent horizontal scroll from fixed-width cards / transforms */
	img,
	svg,
	video {
		max-width: 100%;
		height: auto;
	}

	/* Site-wide mobile normalization */
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	body {
		text-align: center;
	}

	main,
	section {
		text-align: center;
	}

	section {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Center most panel/card content on mobile */
	main [class*="card"],
	section [class*="card"] {
		text-align: center !important;
	}

	/* Keep navigation readable */
	.breadcrumbs,
	.breadcrumbs ul,
	.hero-nav-btns-col {
		text-align: left;
	}

	/* HERO (mobile only) */
	.hero-section {
		padding: clamp(3rem, 8vh, 6rem) 1rem !important;
	}

	.hero-text {
		margin: 0 auto 1.5rem auto !important;
		padding: 0 0.75rem 1.1rem 0.75rem !important;
		max-width: 46rem;
		text-align: center;
		font-size: 1rem;
	}

	.hero-text h1 {
		font-size: clamp(1.25rem, 5.4vw, 1.6rem) !important;
		line-height: 1.25 !important;
		letter-spacing: 0.01em;
		margin-top: 0 !important;
		max-width: 34ch;
		margin-left: auto;
		margin-right: auto;
		text-wrap: balance;
	}

	.hero-text p {
		font-size: clamp(1rem, 4.2vw, 1.12rem) !important;
		line-height: 1.6 !important;
		max-width: 40rem;
		margin-left: auto;
		margin-right: auto;
	}

	/* Breadcrumbs: allow wrapping + keep comfortable padding */
	.breadcrumbs {
		padding: 0.4em 0.9em 0.4em 72px !important;
		font-size: 0.88em !important;
		line-height: 1.25 !important;
	}

	.breadcrumbs ul {
		flex-wrap: wrap !important;
		gap: 0.25rem 0.35rem;
	}

	/* Text: prevent overflow on mobile */
	p,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	li {
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: auto;
	}

	a {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	/* Headings: keep readable + avoid overflow on mobile */
	h1 {
		font-size: clamp(1.45rem, 6vw, 1.95rem) !important;
		line-height: 1.2 !important;
	}

	h2 {
		font-size: clamp(1.25rem, 5.2vw, 1.65rem) !important;
		line-height: 1.25 !important;
	}

	h3 {
		font-size: clamp(1.1rem, 4.6vw, 1.4rem) !important;
		line-height: 1.3 !important;
	}

	/* Mobile nav: spacing + tap targets */
	.mobile-nav-toggle {
		top: 12px;
		left: 12px;
		width: 52px;
		height: 52px;
	}

	.mobile-nav-toggle .material-icons {
		font-size: 30px;
	}

	.hero-nav-btns-col {
		top: 72px;
		left: 12px;
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 96px);
		max-height: calc(100dvh - 96px);
		padding: 1rem 0.75rem;
		border-radius: 14px;
	}

	.hero-nav-fadein-btn.hero-nav-fadein-left {
		min-height: 44px;
		padding: 0.85rem 0.9rem;
	}

	.hero-nav-fadein-btn .hero-nav-btn-text {
		font-size: 1.1rem;
		letter-spacing: 0.06em;
	}

	.hero-nav-fadein-btn .gold-vert-line {
		margin-right: 0.75rem;
	}

	/* Disable hover transforms/shadows on touch devices */
	.mobile-nav-toggle:hover,
	.hero-nav-fadein-btn.hero-nav-fadein-left:hover,
	.qr-contact-card:hover,
	.team-card-bcl:hover,
	.testimonial-card:hover,
	.serious-example-card:hover,
	.news-card:hover,
	.book-spine:hover {
		transform: none !important;
	}

	/* Remove common fixed widths that cause overflow */
	.testimonial-card {
		width: 100% !important;
		max-width: 520px;
		margin-left: auto;
		margin-right: auto;
	}

	.testimonials-grid {
		grid-template-columns: 1fr !important;
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		gap: 1.25rem !important;
	}

	.expertise-buttons-grid {
		grid-template-columns: 1fr !important;
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.expertise-col {
		min-width: 0 !important;
	}

	.expertise-columns {
		gap: 1.5rem !important;
	}

	/* Reduce oversized section min-heights on mobile */
	.Expertise-Section,
	.testimonials-section,
	.unique-main-section {
		min-height: auto !important;
	}

	.hero-section::after {
		background: rgba(1, 39, 14, 0.16) !important;
	}

	/* Clock background + hands: scale down on mobile only */
	body {
		--clock-size: clamp(90px, 28vmin, 135px);
		--clock-height: var(--clock-size);
		--clock-center-y: 50%;
		background-attachment: scroll;
		background-position: center center;
		background-size: cover;
		background-color: #01270e;
		background-image: none !important;
	}

	#clock-bg-hands {
		position: absolute;
		inset: 0;
		height: 100vh;
	}

	.clock-minute-hand-bg,
	.clock-hour-hand-bg {
		width: var(--clock-size) !important;
		height: var(--clock-height) !important;
		max-width: none !important;
		max-height: none !important;
		z-index: -1014 !important;
	}

	.clock-minute-hand-bg {
		top: calc(var(--clock-center-y) - (var(--clock-height) * 0.13)) !important;
	}

	.clock-hour-hand-bg {
		top: calc(var(--clock-center-y) - (var(--clock-height) * 0.06)) !important;
	}

	.clock-face-invisible {
		width: var(--clock-size) !important;
		height: var(--clock-height) !important;
		max-width: none !important;
		max-height: none !important;
		top: var(--clock-center-y) !important;
		opacity: 0.42 !important;
		z-index: -1012 !important;
	}
}

@media (max-width: 480px) {
	body {
		--clock-size: clamp(600px, 24vmin, 110px);
		--clock-height: 300px;
		--clock-center-y: 40%;
		background-image: none !important;
	}

	#clock-bg-hands {
		position: absolute;
		inset: 0;
		height: 100vh;
	}

	.clock-face-invisible {
		opacity: 0.36 !important;
	}
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
