/**
 * Elite Remodel Hub - Base
 * Reset, element defaults, layout helpers and WordPress core classes.
 */

/* ==========================================================================
   1. Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--erh-header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

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

body {
	margin: 0;
	background-color: var(--erh-body-bg);
	color: var(--erh-body-color);
	font-family: var(--erh-font-sans);
	font-size: var(--erh-fs-body);
	font-weight: var(--erh-fw-regular);
	line-height: var(--erh-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.erh-menu-open {
	overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

svg:not([fill]) {
	fill: currentColor;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--erh-grey-100);
	margin: var(--erh-space-10) 0;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--erh-space-4);
	color: var(--erh-heading-color);
	font-family: var(--erh-font-heading);
	font-weight: var(--erh-fw-semibold);
	line-height: var(--erh-lh-heading);
	letter-spacing: var(--erh-ls-heading);
}

h1 { font-size: var(--erh-fs-h1); }
h2 { font-size: var(--erh-fs-h2); }
h3 { font-size: var(--erh-fs-h3); }
h4 { font-size: var(--erh-fs-h4); }

p,
ul,
ol,
dl,
figure,
blockquote,
pre,
table {
	margin: 0 0 var(--erh-space-5);
}

p:last-child,
ul:last-child,
ol:last-child {
	margin-bottom: 0;
}

a {
	color: var(--erh-link);
	text-decoration: none;
	transition: color var(--erh-transition);
}

a:hover,
a:focus {
	color: var(--erh-link-hover);
}

strong,
b {
	font-weight: var(--erh-fw-semibold);
}

blockquote {
	padding-left: var(--erh-space-5);
	border-left: var(--erh-border-accent);
	color: var(--erh-ink);
	font-size: var(--erh-fs-lead);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: var(--erh-space-3);
	border-bottom: var(--erh-border);
	text-align: left;
}

/* ==========================================================================
   3. Accessibility
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: var(--erh-space-3) var(--erh-space-5);
	border-radius: var(--erh-radius-pill);
	background: var(--erh-navy);
	color: var(--erh-white);
	font-weight: var(--erh-fw-semibold);
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--erh-focus-ring);
	outline-offset: 3px;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */

.erh-container {
	width: 100%;
	max-width: calc(var(--erh-container) + var(--erh-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--erh-gutter);
}

.erh-container--narrow {
	max-width: calc(var(--erh-container-narrow) + var(--erh-gutter) * 2);
}

.erh-section {
	padding-block: clamp(2rem, 1rem + 3vw, 4rem);
}

.erh-site-main {
	min-height: 40vh;
}

.erh-section-head {
	max-width: 750px;
	margin: 0 auto var(--erh-space-12);
	text-align: center;
}

.erh-section-head__text {
	color: var(--erh-grey-500);
}

/* Section eyebrow - tracked gold label */
.erh-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 var(--erh-space-3);
	color: var(--erh-gold);
	font-size: var(--erh-fs-eyebrow);
	font-weight: var(--erh-fw-semibold);
	letter-spacing: var(--erh-ls-eyebrow);
	line-height: 1.4;
	text-transform: uppercase;
}
.single-service .erh-eyebrow {
	display: none;
}

.erh-heading__accent {
	color: var(--erh-gold);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.erh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--erh-space-2);
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: var(--erh-radius-btn);
	background-color: var(--erh-navy);
	color: var(--erh-white);
	font-size: var(--erh-fs-sm);
	font-weight: var(--erh-fw-bold);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--erh-transition), color var(--erh-transition),
		border-color var(--erh-transition), transform var(--erh-transition);
}

.erh-btn:hover,
.erh-btn:focus {
	background-color: var(--erh-navy-dark);
	color: var(--erh-white);
	transform: translateY(-1px);
}

.erh-btn--navy {
	background-color: var(--erh-navy);
}

.erh-btn--gold {
	background-color: var(--erh-gold);
	color: var(--erh-navy);
}

.erh-btn--gold:hover,
.erh-btn--gold:focus {
	background-color: var(--erh-gold-dark);
	color: var(--erh-navy);
}

.erh-btn--white {
	background-color: var(--erh-white);
	color: var(--erh-navy);
}

.erh-btn--white:hover,
.erh-btn--white:focus {
	background-color: var(--erh-grey-50);
	color: var(--erh-navy);
}

.erh-btn--outline {
	border-color: rgba(255, 255, 255, 0.6);
	background-color: transparent;
	color: var(--erh-white);
}

.erh-btn--outline:hover,
.erh-btn--outline:focus {
	border-color: var(--erh-white);
	background-color: var(--erh-white);
	color: var(--erh-navy);
}

.erh-btn--lg {
	padding: 16px 34px;
	font-size: var(--erh-fs-body);
}

.erh-btn--block {
	display: flex;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Pill button with a trailing circular arrow
   -------------------------------------------------------------------------- */

.erh-btn-arrow {
	--erh-arrow-color: var(--erh-navy);
	--erh-arrow-contrast: var(--erh-white);

	display: inline-flex;
	align-items: center;
	gap: var(--erh-space-2);
	text-decoration: none;
}

.erh-btn-arrow__label {
	color: var(--erh-arrow-color);
	font-size: var(--erh-fs-sm);
	font-weight: var(--erh-fw-semibold);
	line-height: 1;
	white-space: nowrap;
}

.erh-btn-arrow__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border: 1px solid var(--erh-arrow-color);
	border-radius: var(--erh-radius-circle);
	background: transparent;
	color: var(--erh-arrow-color);
	transition: background-color var(--erh-transition), color var(--erh-transition),
		transform var(--erh-transition);
}

.erh-btn-arrow__icon svg {
	width: 16px;
	height: 16px;
}

.erh-btn-arrow:hover .erh-btn-arrow__icon,
.erh-btn-arrow:focus-visible .erh-btn-arrow__icon {
	background: var(--erh-arrow-color);
	color: var(--erh-arrow-contrast);
	transform: translateX(2px);
}

.erh-btn-arrow--white {
	--erh-arrow-color: var(--erh-white);
	--erh-arrow-contrast: var(--erh-navy);
}

.erh-btn-arrow--white .erh-btn-arrow__label {
	color: var(--erh-white);
}

/* ==========================================================================
   6. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 13px 18px;
	border: var(--erh-border);
	border-radius: var(--erh-radius-md);
	background: var(--erh-white);
	color: var(--erh-slate);
	transition: border-color var(--erh-transition), box-shadow var(--erh-transition);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--erh-gold);
	box-shadow: 0 0 0 3px var(--erh-gold-10);
	outline: none;
}

::placeholder {
	color: var(--erh-grey-300);
	opacity: 1;
}

/* ==========================================================================
   7. WordPress core classes
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0 var(--erh-space-6) var(--erh-space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--erh-space-4) var(--erh-space-6);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	max-width: min(1200px, 100%);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	margin-top: var(--erh-space-2);
	color: var(--erh-grey-500);
	font-size: var(--erh-fs-sm);
	text-align: center;
}

.sticky,
.bypostauthor {
	display: block;
}

.erh-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--erh-space-2);
	justify-content: center;
	margin-top: var(--erh-space-12);
}

.erh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--erh-space-3);
	border-radius: var(--erh-radius-circle);
	background: var(--erh-grey-50);
	color: var(--erh-grey-500);
	font-weight: var(--erh-fw-medium);
}

.erh-pagination .page-numbers.current,
.erh-pagination .page-numbers:hover {
	background: var(--erh-navy);
	color: var(--erh-white);
}

/* ==========================================================================
   8. Entry / archive defaults
   ========================================================================== */

.erh-entry {
	margin-bottom: var(--erh-space-12);
}

.erh-entry__title {
	font-size: var(--erh-fs-h3);
}

.erh-entry__title a {
	color: inherit;
}

.erh-entry__title a:hover {
	color: var(--erh-gold);
}

.erh-entry__meta {
	margin-bottom: var(--erh-space-3);
	color: var(--erh-grey-500);
	font-size: var(--erh-fs-sm);
}

.erh-entry__thumb img {
	width: 100%;
	border-radius: var(--erh-radius-lg);
	object-fit: cover;
}

.erh-grid {
	display: grid;
	gap: var(--erh-space-8);
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.erh-page-header {
	margin-bottom: var(--erh-space-10);
}

.erh-page-header__title {
	font-size: var(--erh-fs-h2);
}

.erh-entry-content > * + * {
	margin-top: var(--erh-space-5);
}

.erh-entry-content h2,
.erh-entry-content h3,
.erh-entry-content h4 {
	margin-top: var(--erh-space-10);
}

.erh-entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: var(--erh-border);
	border-radius: var(--erh-radius-md);
	overflow: hidden;
	font-size: var(--erh-fs-sm);
}

.erh-entry-content th,
.erh-entry-content td {
	padding: var(--erh-space-3) var(--erh-space-4);
	border-bottom: var(--erh-border);
	text-align: left;
}

.erh-entry-content thead th {
	background: var(--erh-grey-50);
	color: var(--erh-navy);
	font-weight: var(--erh-fw-semibold);
}

.erh-entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.erh-empty-hint {
	padding: var(--erh-space-6);
	border-radius: var(--erh-radius-md);
	background: var(--erh-grey-50);
	color: var(--erh-grey-500);
	font-size: var(--erh-fs-sm);
	text-align: center;
}

.erh-comments {
	margin-top: var(--erh-space-16);
	padding-top: var(--erh-space-10);
	border-top: var(--erh-border);
}

/* ==========================================================================
   9. Stars
   ========================================================================== */

.erh-stars {
	display: inline-flex;
	gap: 2px;
}

.erh-stars__star {
	color: var(--erh-grey-100);
}

.erh-stars__star.is-on {
	color: var(--erh-gold);
}
