/* ==========================================================================
   H & R Sanitation – main stylesheet
   Colors come from CSS variables printed by the Customizer (see inc/customizer.php).
   ========================================================================== */

:root {
	--hr-primary: #6ebf4b;
	--hr-dark: #51800c;
	--hr-footer-bg: #4f5726;
	--hr-ticker-color: #51800c;
	--hr-ticker-bg: #ffffff;
	--hr-ticker-border: #32381d;
	--hr-ticker-font-size: 22px;
	--hr-text: #111;
	--hr-muted: #444;
	--hr-max: 960px;
	--hr-serif: "Book Antiqua", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
	--hr-sans: Verdana, Geneva, Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--hr-text);
	font-family: var(--hr-sans);
	font-size: 15px;
	line-height: 1.55;
}

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

a { color: var(--hr-dark); }
a:hover,
a:focus { color: var(--hr-primary); }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid var(--hr-primary); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--hr-serif);
	font-weight: normal;
	color: #333;
	line-height: 1.25;
}

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	z-index: 100000;
	background: #fff;
	padding: 10px 16px;
	font-weight: bold;
}

.site {
	max-width: var(--hr-max);
	margin: 0 auto;
	padding: 0 10px;
}

/* ---------- Header ---------- */
.site-header__inner {
	position: relative;
	padding: 10px 0 14px;
}
.site-branding {
	display: flex;
	align-items: flex-end;
	gap: 40px;
	flex: 1 1 auto;
	min-width: 0;
}
.custom-logo-link { flex: 0 0 auto; display: block; line-height: 0; }
.custom-logo { width: 174px; height: auto; }
.site-title {
	margin: 0 0 2px;
	padding-top: 34px;
	font-family: var(--hr-serif);
	font-size: clamp(22px, 3.6vw, 34px);
	line-height: 1.1;
	color: #333;
}
.site-title a { color: inherit; text-decoration: none; }

.site-header__utility {
	position: absolute;
	top: 8px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	font-size: 13px;
}
.header-phone {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	letter-spacing: .04em;
}
.header-phone .icon-phone { color: var(--hr-primary); }
.header-phone a { color: #333; text-decoration: none; }
.header-phone a:hover { color: var(--hr-dark); }

.search-form { display: flex; gap: 2px; }
.search-field {
	width: 130px;
	font: inherit;
	font-size: 12px;
	padding: 2px 4px;
	border: 1px solid #999;
}
.search-submit {
	font: inherit;
	font-size: 12px;
	padding: 2px 8px;
	border: 1px solid #999;
	background: #eee;
	cursor: pointer;
}

/* ---------- Main navigation ---------- */
.main-navigation { position: relative; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul,
.main-navigation .menu {
	display: flex;
	background: linear-gradient(#3a3a3a 0%, #1a1a1a 45%, #000 46%, #2b2b2b 100%);
	box-shadow: 0 6px 8px -4px rgba(0, 0, 0, .35);
}
.main-navigation .menu > li {
	flex: 1 1 0;
	position: relative;
	border-left: 2px solid #fff;
}
.main-navigation .menu > li:first-child { border-left: 0; }
.main-navigation a {
	display: block;
	padding: 22px 10px;
	text-align: center;
	color: var(--hr-primary);
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: 16px;
	text-decoration: none;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a { color: #fff; }

/* Drop-downs */
.main-navigation .sub-menu,
.main-navigation .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	background: #1a1a1a;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > .children,
.main-navigation li:focus-within > .children { display: block; }
.main-navigation .sub-menu a,
.main-navigation .children a { padding: 12px 10px; font-size: 14px; border-top: 1px solid #333; }

.menu-toggle { display: none; }

/* ---------- Scrolling message ---------- */
.hr-ticker-wrap { margin: 18px 0 12px; }
.hr-ticker-wrap.is-empty { margin: 0 0 12px; }
.hr-ticker-note {
	margin: 0;
	padding: 6px 10px;
	background: #fff8e1;
	border: 1px dashed #c9a400;
	font-size: 13px;
}
.hr-ticker {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--hr-ticker-border);
	background: var(--hr-ticker-bg);
	color: var(--hr-ticker-color);
}
.hr-ticker__viewport {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	min-width: 0;
}
.hr-ticker__track {
	display: inline-block;
	white-space: nowrap;
	padding: 3px 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: var(--hr-ticker-font-size);
	line-height: 1.3;
	will-change: transform;
}
.hr-ticker.is-ready .hr-ticker__track {
	animation: hr-ticker-scroll var(--hr-ticker-duration, 20s) linear infinite;
}
.hr-ticker.is-paused .hr-ticker__track,
.hr-ticker[data-pause-hover="true"]:hover .hr-ticker__track,
.hr-ticker:focus-within .hr-ticker__track { animation-play-state: paused; }
.hr-ticker__item { padding: 0 6px; }
.hr-ticker a { color: inherit; }

@keyframes hr-ticker-scroll {
	from { transform: translateX(var(--hr-ticker-from, 100%)); }
	to { transform: translateX(var(--hr-ticker-to, -100%)); }
}

.hr-ticker__toggle {
	flex: 0 0 auto;
	width: 34px;
	border: 0;
	border-left: 1px solid var(--hr-ticker-border);
	background: transparent;
	color: var(--hr-ticker-color);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: .55;
}
.hr-ticker__toggle:hover,
.hr-ticker__toggle:focus { opacity: 1; }
/* Pause icon (two bars) */
.hr-ticker__icon {
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
/* Play icon (triangle) when paused */
.hr-ticker.is-paused .hr-ticker__icon {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
	border-right: 0;
	margin-left: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.hr-ticker.is-ready .hr-ticker__track { animation: none; transform: none; }
	.hr-ticker__track { white-space: normal; display: block; }
	.hr-ticker__toggle { display: none; }
}

/* ---------- Slider ---------- */
.hr-slider {
	border: 6px solid var(--hr-primary);
	background: #000;
	padding: 8px;
	margin-bottom: 26px;
}
.hr-slider__frame {
	position: relative;
	aspect-ratio: 881 / 346;
	overflow: hidden;
}
.hr-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
}
.hr-slider__slide.is-active { opacity: 1; z-index: 1; }
.hr-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hr-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 46px;
	height: 92px;
	margin-top: -46px;
	border: 0;
	background: var(--hr-primary);
	cursor: pointer;
	padding: 0;
}
.hr-slider__btn--prev { left: -8px; border-radius: 0 46px 46px 0; }
.hr-slider__btn--next { right: -8px; border-radius: 46px 0 0 46px; }
.hr-slider__btn::after {
	content: "";
	position: absolute;
	top: 50%;
	margin-top: -11px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
}
.hr-slider__btn--prev::after { left: 14px; border-right: 13px solid #111; }
.hr-slider__btn--next::after { right: 14px; border-left: 13px solid #111; }
.hr-slider__btn:hover { background: #8bd16b; }
@media (prefers-reduced-motion: reduce) {
	.hr-slider__slide { transition: none; }
}

/* ---------- Layout ---------- */
.hr-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 40px;
	padding-bottom: 30px;
}
.site-main { min-width: 0; }

.entry-title {
	font-size: 30px;
	margin: 0 0 18px;
	color: #333;
}
.hr-summary .entry-title { font-size: 22px; margin-bottom: 4px; }
.hr-summary .entry-title a { color: #333; text-decoration: none; }
.hr-summary .entry-title a:hover { color: var(--hr-dark); }
.hr-summary { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #e2eedc; }

/* The green double rule under headings, like the original site */
.hr-rule {
	padding-bottom: 14px;
	background:
		linear-gradient(90deg, rgba(110, 191, 75, .15), var(--hr-primary) 50%, rgba(110, 191, 75, .15)) left bottom / 100% 2px no-repeat;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 22px; margin: 1.6em 0 .5em; color: var(--hr-dark); }
.entry-content h3 { font-size: 18px; }
.entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-meta { margin: 0 0 10px; font-size: 12px; color: #666; }
.entry-thumb { margin-bottom: 16px; }

.hr-button,
.wp-block-button__link {
	display: inline-block;
	background: var(--hr-primary);
	color: #fff;
	padding: 9px 18px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
}
.hr-button:hover,
.hr-button:focus,
.wp-block-button__link:hover { background: var(--hr-dark); color: #fff; }

/* ---------- Sidebar ---------- */
.site-sidebar .widget { margin-bottom: 30px; }
.site-sidebar .widget-title {
	font-size: 22px;
	text-align: center;
	margin: 0 0 12px;
	color: #222;
}
.hr-quick-links,
.site-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0 0 0 30px;
}
.hr-quick-links li,
.site-sidebar .widget li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 12px;
}
.hr-quick-links li::before,
.site-sidebar .widget li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 8px;
	height: 9px;
	background: var(--hr-primary);
	border-radius: 1px 1px 2px 2px;
}
.hr-quick-links a { color: var(--hr-primary); letter-spacing: .03em; }
.hr-quick-links a:hover { color: var(--hr-dark); }

.hr-facebook__frame {
	border: 3px solid #333;
	border-radius: 6px;
	background: #2f3524;
	padding: 6px;
	box-shadow: 2px 3px 6px rgba(0, 0, 0, .35);
	max-width: 320px;
	margin: 0 auto;
}
.hr-facebook__frame iframe { display: block; width: 100%; max-width: 260px; margin: 0 auto; background: #fff; }
.hr-facebook__link { text-align: center; font-size: 13px; }

.hr-contact-card { font-size: 13px; }
.hr-contact-card__name { margin-top: 0; }
.hr-contact-card dl { margin: 0; }
.hr-contact-card dt { font-weight: bold; margin-top: 8px; color: var(--hr-dark); }
.hr-contact-card dd { margin: 0; }

.hr-admin-hint {
	background: #fff8e1;
	border: 1px dashed #c9a400;
	padding: 8px 10px;
	font-size: 12px;
}
.hr-admin-hint--slider { margin-bottom: 20px; }

/* ---------- Gift certificate box ---------- */
.hr-promo {
	max-width: 440px;
	margin: 30px auto 10px;
	border: 1px solid #888;
	padding: 10px 14px 6px;
	font-size: 13px;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, .15);
}
.hr-promo__title {
	font-family: var(--hr-sans);
	font-size: 14px;
	color: #111;
	margin: 0 0 10px;
}
.hr-promo__body::after { content: ""; display: table; clear: both; }
.hr-promo__img { float: right; max-width: 110px; margin: 0 0 8px 12px; }

/* ---------- Footer ---------- */
.footer-buttons__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 18px;
	padding: 0;
}
.footer-buttons__list a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--hr-primary);
	border-radius: 4px;
	color: var(--hr-dark);
	text-decoration: none;
	font-size: 13px;
}
.footer-buttons__list a:hover { background: var(--hr-primary); color: #fff; }

.site-footer {
	background: var(--hr-footer-bg);
	color: #fff;
	font-family: var(--hr-serif);
	font-size: 13px;
	margin: 0 -10px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d7f5c6; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	padding: 16px 10px 18px;
}
.footer-col { padding: 0 18px; }
.footer-col + .footer-col { border-left: 1px solid var(--hr-primary); }
.footer-company { font-size: 17px; margin: 0 0 10px; }
.footer-company__body { display: flex; gap: 12px; }
.footer-company__body p { margin: 0 0 10px; }
.icon-can { color: var(--hr-primary); flex: 0 0 auto; margin-top: 2px; }
.footer-tagline { font-weight: bold; }
.footer-heading {
	font-size: 14px;
	color: #fff;
	text-align: center;
	text-decoration: underline;
	margin: 0 0 14px;
}
.footer-col--news p { text-align: left; }
.footer-more { display: block; text-align: center; color: var(--hr-primary) !important; }
.footer-services { list-style: none; margin: 0; padding: 0 0 0 30px; }
.footer-services li { position: relative; padding-left: 14px; font-weight: bold; margin-bottom: 2px; }
.footer-services li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 7px;
	height: 8px;
	background: var(--hr-primary);
}
.site-credit {
	margin: 0;
	padding: 6px 10px 10px;
	text-align: center;
	font-family: var(--hr-sans);
	font-size: 10px;
	background: #fff;
	color: #333;
}

/* ---------- Misc ---------- */
.nav-links { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: 4px 8px; }
.page-numbers.current { background: var(--hr-primary); color: #fff; }
.wp-block-image figcaption,
.wp-caption-text { font-size: 12px; color: #555; }
.alignleft { float: left; margin: 0 16px 10px 0; }
.alignright { float: right; margin: 0 0 10px 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.hr-columns { grid-template-columns: 1fr; gap: 10px; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 18px; }
	.footer-col + .footer-col { border-left: 0; border-top: 1px solid var(--hr-primary); padding-top: 14px; }
}

@media (max-width: 720px) {
	.site-branding { gap: 14px; align-items: center; }
	.custom-logo { width: 120px; }
	.site-header__utility { position: static; justify-content: space-between; margin-top: 10px; }
	.search-field { width: 110px; }

	.menu-toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		padding: 14px 16px;
		border: 0;
		background: #1a1a1a;
		color: var(--hr-primary);
		font: 16px "Trebuchet MS", Arial, sans-serif;
		cursor: pointer;
	}
	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 20px;
		height: 2px;
		background: currentColor;
		position: relative;
	}
	.menu-toggle__bars::before,
	.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -6px; }
	.menu-toggle__bars::after { top: 6px; }

	.main-navigation .menu { display: none; flex-direction: column; background: #1a1a1a; }
	.main-navigation.is-open .menu { display: flex; }
	.main-navigation .menu > li { border-left: 0; border-top: 1px solid #333; }
	.main-navigation a { padding: 14px 16px; text-align: left; }
	.main-navigation .sub-menu,
	.main-navigation .children { display: block; position: static; }
	.main-navigation .sub-menu a,
	.main-navigation .children a { padding-left: 32px; }

	.hr-slider { border-width: 4px; padding: 4px; }
	.hr-slider__btn { width: 30px; height: 60px; margin-top: -30px; }
	.hr-slider__btn--prev { border-radius: 0 30px 30px 0; left: -4px; }
	.hr-slider__btn--next { border-radius: 30px 0 0 30px; right: -4px; }
	.hr-slider__btn--prev::after { left: 7px; }
	.hr-slider__btn--next::after { right: 7px; }

	.entry-title { font-size: 26px; }
	.site-title { padding-top: 0; }
}
