/* ==========================================================================
   KSM AllPaving – Main Stylesheet
   Mirrors allpaving-masonryli.com colour palette and layout
   ========================================================================== */

/* ── 1. Custom Properties ─────────────────────────────────────────────────── */
:root {
	--primary:        #1d3f66;
	--secondary:      #444444;
	--accent:         #fcb119;
	--light:          #ffffff;
	--dark:           #000000;
	--contrast:       #f9f9fa;
	--clr-body:       #404040;

	--font-main: 'Poppins', sans-serif;

	--container-max:  1400px;
	--container-pad:  20px;

	--space-xs: 1rem;
	--space-s:  2rem;
	--space-m:  4rem;
	--space-l:  6rem;

	--transition: 0.3s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}
.ksm-contact-form__input, .ksm-contact-form__textarea {font-size:16px !important; }
body {
	font-family: var(--font-main);
	font-size: 18px;
	line-height: 1.6;
	color: var(--clr-body);
	background: var(--light);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--clr-body);
}

h2 { font-size: 30px; color: var(--primary); }
h3 { font-size: 25px; }
h4 { font-size: 20px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── 3. Container ─────────────────────────────────────────────────────────── */
.howth_divcontainer {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* ── 4. Buttons ───────────────────────────────────────────────────────────── */
.howth_divbtn {
	display: inline-block;
	padding: 10px 20px;
	font-family: var(--font-main);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: opacity var(--transition);
	border-radius: 3px;
}
.howth_divbtn:hover { opacity: 0.88; }

.howth_divbtn--primary {
	background: var(--primary);
	color: var(--light);
}

.howth_divbtn--accent {
	background: var(--accent);
	color: var(--light);
	border-radius: 0;
	text-align: center;
	padding: 15px 25px;
}

.howth_divbtn--dark {
	background: var(--secondary);
	color: var(--light);
}

/* ── 5. Header ────────────────────────────────────────────────────────────── */
.howth_divsite-header {
	position: relative;
	z-index: 100;
}

/* Top bar */
.howth_divheader-topbar {
	background: var(--light);
	border-bottom: 1px solid #e2e2e2;
}

.howth_divtopbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 40px;
	font-size: 13px;
}

.howth_divutility-menu {
	display: flex;
	gap: 0;
}

.howth_divutility-menu li a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	text-transform: uppercase;
	color: var(--clr-body);
	transition: background var(--transition);
}

.howth_divutility-menu li a:hover {
	background: var(--contrast);
}

.howth_divtopbar-features {
	display: flex;
	gap: 20px;
	font-size: 13px;
	color: var(--clr-body);
}

.howth_divtopbar-features li::before {
	content: "\2666 ";
	color: var(--accent);
	margin-right: 4px;
}

/* Main header row */
.howth_divheader-main {
	background: var(--primary);
	border-bottom: 3px solid var(--accent);
	padding: 10px 0;
}

.howth_divheader-main-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.howth_divlogo-wrap {
	flex-shrink: 0;
	line-height: 0;
}

.howth_divlogo-img {
	height: 70px;
	width: auto;
	max-width: none;
}

.howth_divlogo-text {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
}

.howth_divheader-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.howth_divheader-cta-block {
	text-align: right;
}

.howth_divcta-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2px;
}

.howth_divheader-phone {
	font-size: 22px;
	font-weight: 700;
	color: var(--light);
}

.howth_divheader-phone:hover {
	color: var(--accent);
}

/* Navigation bar */
.howth_divheader-nav {
	background: var(--primary);
}

.howth_divprimary-nav {
	display: flex;
	justify-content: flex-start;
}

.howth_divnav-menu {
	display: flex;
	gap: 0;
}

.howth_divnav-menu li {
	position: relative;
}

.howth_divnav-menu > li > a {
	display: block;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--light);
	transition: background var(--transition);
}

.howth_divnav-menu > li > a:hover,
.howth_divnav-menu > li.current-menu-item > a,
.howth_divnav-menu > li.current_page_item > a {
	background: rgba(255, 255, 255, 0.1);
}

/* Dropdown menus */
.howth_divnav-menu li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: var(--primary);
	z-index: 200;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.howth_divnav-menu li:hover > ul {
	display: block;
}

.howth_divnav-menu li ul li a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	color: var(--light);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.howth_divnav-menu li ul li a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ── 6. Hamburger (mobile) ────────────────────────────────────────────────── */
.howth_divhamburger,
.howth_divnoscript-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.howth_divhamburger-bar {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--primary);
	border-radius: 2px;
	transition: var(--transition);
}

.howth_divnoscript-checkbox {
	display: none !important;
}

.howth_divnoscript-dropdown {
	display: none;
}

/* ── 7. Mobile panel ──────────────────────────────────────────────────────── */
.howth_divmobile-panel {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	height: 100%;
	background: var(--primary);
	z-index: 1000;
	overflow-y: auto;
	transition: right var(--transition);
	padding: 60px 20px 20px;
}

.howth_divmobile-panel.is-open {
	right: 0;
}

.howth_divmobile-panel-close {
	position: absolute;
	top: 10px;
	right: 16px;
	background: none;
	border: none;
	color: var(--light);
	font-size: 32px;
	cursor: pointer;
}

.howth_divmobile-menu li a {
	display: block;
	padding: 12px 0;
	color: var(--light);
	font-size: 16px;
	text-transform: uppercase;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.howth_divmobile-contact {
	margin-top: 30px;
	text-align: center;
}

.howth_divmobile-phone {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 16px;
}

.howth_divmobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.howth_divmobile-overlay.is-visible {
	display: block;
}

/* ── 8. Hero ──────────────────────────────────────────────────────────────── */
.howth_divhero {
	width: 100%;
	overflow: hidden;
}

.howth_divhero-columns {
	display: flex;
	min-height: 500px;
}

.howth_divhero-panel {
	flex: 0 0 50%;
	background: var(--secondary);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-s);
}

.howth_divhero-content {
	color: var(--light);
	margin-bottom: var(--space-s);
}

.howth_divhero-title {
	font-size: clamp(2rem, 1.6rem + 1.2vw, 4rem);
	font-weight: 700;
	line-height: 1;
	color: var(--light);
	margin-bottom: var(--space-xs);
}

.howth_divhero-subtitle {
	color: var(--light);
	font-size: 16px;
	line-height: 1.5;
}

.howth_divhero-subtitle p {
	margin-bottom: 0.5em;
}

.howth_divhero-subtitle ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 1em 0 0;
    padding-top:1rem;
    
}

.howth_divhero-subtitle ul li {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--primary);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--light);
	font-size: clamp(11px, 2.8vw, 14px);
	font-weight: 600;
	padding: 8px 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background var(--transition), border-color var(--transition);
}

.howth_divhero-subtitle ul li::before {
	content: "\2713";
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--accent);
	color: var(--light);
	font-size: 14px;
	font-weight: 700;
	border-radius: 3px;
	line-height: 1;
}

.howth_divhero-subtitle ul li:hover {
	background: rgba(252, 177, 25, 0.15);
	border-color: var(--accent);
}

/* Slanted CTA buttons (mirrors the online site) */
.howth_divslanted {
	--border-width: 0.25em;
	display: flex;
	justify-content: center;
	padding: 1em;
	font-family: sans-serif;
	background-color: var(--primary);
	white-space: nowrap;
	margin-top: var(--space-xs);
}

.howth_divslanted div {
	position: relative;
	margin-inline: 1em;
	padding: 0.5em;
	border: var(--border-width) solid white;
}

.howth_divslanted-first {
	color: rgb(42, 99, 178);
	background-color: white;
	border-radius: 0.4em 1em 0 0.4em;
	z-index: 0;
}

.howth_divslanted-first a {
	color: rgb(42, 99, 178);
	font-weight: 700;
	text-transform: uppercase;
}

.howth_divslanted-second {
	padding-inline-start: 0 !important;
	color: white;
	background-color: var(--primary);
	border-inline-start-width: 0 !important;
	border-radius: 0 0.4em 0.4em 0.3em;
}

.howth_divslanted-second a {
	color: white;
	font-weight: 700;
}

.howth_divslanted-first::after,
.howth_divslanted-second::before {
	content: " ";
	position: absolute;
	top: calc(-1 * var(--border-width));
	bottom: calc(-1 * var(--border-width));
	width: 2em;
	border: var(--border-width) solid white;
	transform: skew(25deg);
}

.howth_divslanted-first::after {
	right: -0.5em;
	border-radius: 0 0.4em 0.4em 0;
	background-color: white;
	z-index: -1;
}

.howth_divslanted-second::before {
	left: -0.7em;
	border-inline-end-width: 0;
	border-radius: 0.4em 0 0 0.4em;
}

/* Hero review badge */
.howth_divhero-reviews {
	margin-top: var(--space-s);
}

.howth_divhero-reviews .ksm-reviews-summary-wrapper {
	display: none;
}

.howth_divhero-review-badge {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.howth_divhero-stars-img {
	display: block;
}

.howth_divhero-review-text {
	color: var(--light);
	font-size: 15px;
	font-weight: 500;
}

.howth_divhero-review-link {
	display: inline-block;
	color: var(--light);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--transition);
}

.howth_divhero-review-link:hover {
	color: var(--accent);
}

/* Hero contact form (replaces image) */
.howth_divhero-form-wrap {
	flex: 0 0 50%;
	background: var(--accent);
	padding: var(--space-s);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
}

/* Hero image */
.howth_divhero-image-wrap {
	flex: 0 0 50%;
	overflow: hidden;
	height:700px;
}

.howth_divhero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── 9. Callout boxes ─────────────────────────────────────────────────────── */
.howth_divcallouts-section {
	background: var(--secondary);
	padding: 0;
}

.howth_divcallouts-grid {
	display: flex;
	max-width: var(--container-max);
	margin-inline: auto;
}

.howth_divcallout-box {
	flex: 1;
	background: var(--primary);
	border: 2px solid var(--light);
	padding: var(--space-s) var(--space-xs);
	text-align: center;
	z-index: 20;
}

.howth_divcallout-title {
	color: var(--light);
	font-size: 22px;
	margin-bottom: 0.5rem;
}

.howth_divcallout-desc {
	color: var(--light);
	font-size: 14px;
	margin: 0;
}

/* ── 10. Main content area ────────────────────────────────────────────────── */
.howth_divmain {
	padding: var(--space-m) 0;
}

.howth_divpage-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: var(--space-m);
}

.howth_divpage-grid--full {
	grid-template-columns: 1fr;
}

.content-output {
	min-width: 0;
}

.content-output img {
	width: 100%;
}

.content-output h2 {
	color: var(--primary);
	margin-bottom: 0.5em;
}

.content-output h3 {
	color: var(--primary);
	margin-bottom: 0.5em;
	margin-top: 1em;
}
.ksm-contact-form__privacy-text a {
  color: #fff !important;
}
.content-output a {
	color: var(--accent);
	border-bottom: 2px solid var(--primary);
	font-weight: 500;
}

.content-output a:hover {
	color: var(--primary);
}

.content-output ul,
.content-output ol {
	list-style: disc;
	padding-left: 1.5em;
	margin-bottom: 1em;
}

.content-output ul li,
.content-output ol li {
	margin-bottom: 0.3em;
}

.content-output .alignright {
	float: right;
	margin: 0 0 1em 1.5em;
	max-width: 40%;
}

.content-output .alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
	max-width: 40%;
}

.content-output .aligncenter {
	display: block;
	margin: 1em auto;
}

/* Gallery */
.content-output .gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 1.5em 0;
}

.content-output .gallery-item {
	margin: 0;
}

.content-output .gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
}

/* ── 11. Sidebar ──────────────────────────────────────────────────────────── */
.howth_divsidebar {
	min-width: 0;
}

.howth_divsidebar-widget {
	margin-bottom: var(--space-s);
	padding: var(--space-xs);
	background: var(--contrast);
	border-radius: 4px;
}

.howth_divsidebar-widget h3 {
	color: var(--primary);
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--accent);
}

.howth_divsidebar-widget .gallery-columns-3 {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.howth_divsidebar-widget .gallery-columns-3 .gallery-item {
	flex: 0 0 calc(33.333% - 4px);
	margin: 0;
}

.howth_divsidebar-widget .gallery-columns-3 img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ── 12. Breadcrumbs ──────────────────────────────────────────────────────── */
.howth_divbreadcrumbs {
	margin-bottom: var(--space-xs);
}

.howth_divbreadcrumbs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 13px;
}

.howth_divbreadcrumb-item a {
	color: var(--accent);
}

.howth_divbreadcrumb-item a:hover {
	text-decoration: underline;
}

.howth_divbreadcrumb-sep {
	margin: 0 4px;
	color: rgba(255, 255, 255, 0.5);
}

.howth_divbreadcrumb-current {
	color: var(--light);
}

/* ── 13. Footer ───────────────────────────────────────────────────────────── */
.howth_divsite-footer {
	background: var(--primary);
	padding-top: var(--space-m);
	padding-bottom: var(--space-s);
	color: var(--light);
}

.howth_divfooter-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-s);
	margin-bottom: var(--space-m);
}

.howth_divfooter-col {
	padding: var(--space-xs);
}

.howth_divfooter-widget-title {
	color: var(--light);
	border-bottom: 2px solid var(--light);
	text-transform: uppercase;
	font-size: 1.4rem;
	line-height: 1.1;
	padding-bottom: 0.5rem;
	margin-bottom: var(--space-s) !important;
}

.howth_divfooter-widget {
	color: var(--light);
}

.howth_divfooter-widget a {
	color: rgba(255, 255, 255, 0.85);
}

.howth_divfooter-widget a:hover {
	color: var(--accent);
}

.howth_divfooter-widget ul {
	list-style: none;
}

.howth_divfooter-widget ul li {
	margin-bottom: 0.4em;
}

.howth_divfooter-widget ul li a {
	border-bottom: 1px solid transparent;
	transition: border-bottom-color var(--transition);
}

.howth_divfooter-widget ul li a:hover {
	border-bottom-color: var(--accent);
}

.howth_divfooter-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: var(--space-xs);
	text-align: center;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

/* ── Related Pages Grid ───────────────────────────────────────────────────── */
.howth_divrelated-pages {
	padding: 60px 0;
	background-color: var(--grey-light, #f5f5f5);
}

.howth_divrelated-pages-heading {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: var(--secondary);
}

.howth_divrelated-pages-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.howth_divrelated-page-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.howth_divrelated-page-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.howth_divrelated-page-img {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.howth_divrelated-page-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.howth_divrelated-page-body {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.howth_divrelated-page-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: var(--primary);
	margin: 0;
	line-height: 1.3;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: background-color 0.2s ease;
}

.howth_divrelated-page-card:hover .howth_divrelated-page-title {
	background-color: var(--secondary);
}

.howth_divrelated-page-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.howth_divrelated-page-card:hover .howth_divrelated-page-chevron {
	transform: translateX(3px);
}

@media (max-width: 1024px) {
	.howth_divrelated-pages-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.howth_divrelated-pages-grid {
		grid-template-columns: 1fr;
	}

	.howth_divrelated-pages {
		padding: 40px 0;
	}

	.howth_divrelated-pages-heading {
		font-size: 26px;
		margin-bottom: 24px;
	}
}

/* ── 14. Reviews section ──────────────────────────────────────────────────── */
.howth_divreviews-section {
	background: var(--contrast);
	padding: var(--space-m) 0;
	margin-top: var(--space-m);
}

.howth_divreviews-heading {
	text-align: center;
	text-transform: uppercase;
	color: var(--primary);
	font-size: 24px;
	margin-bottom: var(--space-s);
}

/* ── 15. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.howth_divpage-grid {
		grid-template-columns: 1fr;
	}

	.howth_divfooter-grid {
		grid-template-columns: 1fr;
	}

	.howth_divtopbar-features {
		display: none;
	}
}

@media (max-width: 768px) {
	/* Header – compact mobile bar: hamburger left, logo centre, phone right */
	.howth_divheader-topbar {
		display: none;
	}

	.howth_divheader-nav {
		display: none;
	}

	.howth_divhamburger {
		display: flex;
		order: -1;
	}

	.howth_divsite-header {
		position: sticky;
		top: 0;
	}

	.howth_divheader-main {
		background: var(--primary);
		border-bottom: 3px solid var(--accent);
		padding: 6px 0;
	}

	.howth_divheader-main-inner {
		justify-content: space-between;
	}

	.howth_divlogo-wrap {
		flex: 1;
		text-align: center;
	}

	.howth_divlogo-img {
		height: 40px;
		display: inline-block;
	}

	.howth_divlogo-text {
		font-size: 16px;
		color: var(--light);
	}

	.howth_divhamburger-bar {
		background: var(--light);
	}

	/* Show phone as icon on mobile instead of hiding */
	.howth_divheader-cta-block {
		display: block;
	}

	.howth_divcta-label {
		display: none;
	}

	.howth_divheader-phone {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		background: var(--accent);
		border-radius: 50%;
		font-size: 0;
		color: transparent;
	}

	.howth_divheader-phone::before {
		content: "\260E";
		font-size: 20px;
		color: var(--light);
	}

	/* Hero */
	.howth_divhero-columns {
		flex-direction: column;
		min-height: auto;
	}

	.howth_divhero-panel {
		flex: none;
		padding: var(--space-xs);
	}

	.howth_divhero-image-wrap {
		flex: none;
		max-height: 300px;
	}

	.howth_divhero-form-wrap {
		flex: none;
		padding: var(--space-xs);
	}

	.howth_divhero-title {
		font-size: 2rem;
	}

	/* Slanted buttons – keep horizontal on mobile like the online site */
	.howth_divslanted {
		font-size: 14px;
		padding: 0.6em;
		gap:0.5rem;
	}

	.howth_divslanted div {
		margin-inline: 0.5em;
		padding: 0.4em 0.6em;
	}

	/* Hero list items – 2 columns on mobile */
	.howth_divhero-subtitle ul {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Callouts */
	.howth_divcallouts-grid {
		flex-direction: column;
	}

	/* Gallery */
	.content-output .gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.content-output .alignright,
	.content-output .alignleft {
		float: none;
		max-width: 100%;
		margin: 1em 0;
	}
}