/*
Theme Name:   HostElevate Blog
Theme URI:    https://hostelevate.com/blog/
Description:  Child theme of Kadence for the HostElevate blog. Header, footer, colours and blog layout matching hostelevate.com.
Author:       HostElevate
Author URI:   https://hostelevate.com
Template:     kadence
Version:      1.1.0
Requires PHP: 7.4
Text Domain:  hostelevate-blog
*/

/* ============================================================
   Brand tokens. Mostly white; the green and amber are used sparingly.
   Kadence reads its colours from --global-palette1..9.
   ============================================================ */
:root {
	--heb-ink: #032A1E;
	--heb-green: #047857;
	--heb-amber: #F59E0B;
	--heb-amber-lift: #FBBF24;
	--heb-text: #14201B;
	--heb-mid: #4E5F58;
	--heb-soft: #8A9A93;
	--heb-line: #E8ECEA;
	--heb-tint: #F6F8F7;
	--heb-font: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--global-palette1: #047857;
	--global-palette2: #032A1E;
	--global-palette3: #032A1E;
	--global-palette4: #14201B;
	--global-palette5: #4E5F58;
	--global-palette6: #8A9A93;
	--global-palette7: #F6F8F7;
	--global-palette8: #FFFFFF;
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--heb-font);
	--global-heading-font-family: var(--heb-font);
}

body {
	background: #FFFFFF;
	font-family: var(--heb-font);
	color: var(--heb-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--heb-font);
	color: var(--heb-ink);
	letter-spacing: -0.02em;
}

/* Kadence's own header and footer are replaced by ours */
#masthead,
#colophon,
#mobile-drawer,
.site-header,
.site-footer { display: none !important; }

.heb-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* ============================================================
   Buttons
   ============================================================ */
.heb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 18px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.heb-btn--amber { background: var(--heb-amber); color: var(--heb-ink) !important; }
.heb-btn--amber:hover { background: var(--heb-amber-lift); }

.heb-btn--ghost { border-color: var(--heb-line); color: var(--heb-ink) !important; }
.heb-btn--ghost:hover { border-color: var(--heb-green); background: #F0FAF6; }

/* ============================================================
   Header
   ============================================================ */
.heb-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--heb-line);
}

.heb-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
}

.heb-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.heb-logo img {
	display: block;
	width: auto;
	height: 38px;
}

/* "| Blog" beside the logo, as on hostinger.com/blog */
.heb-blogmark {
	padding-left: 14px;
	border-left: 1px solid var(--heb-line);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--heb-ink) !important;
	text-decoration: none !important;
}

.heb-nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.heb-nav__link {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--heb-mid) !important;
	text-decoration: none !important;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.heb-nav__link:hover { background: var(--heb-tint); color: var(--heb-ink) !important; }
.heb-nav__link.is-active { color: var(--heb-ink) !important; font-weight: 600; }

.heb-actions {
	display: flex;
	gap: 8px;
	flex: none;
}

/* Phone menu: a <details> element, so it needs no JavaScript */
.heb-menu { display: none; position: relative; margin-left: auto; }

.heb-menu__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	list-style: none;
	cursor: pointer;
}

.heb-menu__toggle::-webkit-details-marker { display: none; }

.heb-menu__toggle span,
.heb-menu__toggle span::before,
.heb-menu__toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--heb-ink);
	content: '';
	position: relative;
}

.heb-menu__toggle span::before { position: absolute; top: -7px; }
.heb-menu__toggle span::after { position: absolute; top: 7px; }

.heb-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	display: grid;
	gap: 4px;
	width: min(320px, 86vw);
	padding: 12px;
	border: 1px solid var(--heb-line);
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 24px 50px -24px rgba(3, 42, 30, 0.35);
}

.heb-menu__panel a:not(.heb-btn) {
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 500;
	color: var(--heb-text) !important;
	text-decoration: none !important;
}

.heb-menu__panel a:not(.heb-btn):hover { background: var(--heb-tint); }
.heb-menu__panel .heb-btn { margin-top: 6px; width: 100%; box-sizing: border-box; }

/* ============================================================
   Blog listing: hero, categories, grid
   ============================================================ */
.heb-main { background: #FFFFFF; }

.heb-hero {
	padding: 64px 0 36px;
	border-bottom: 1px solid var(--heb-line);
}

.heb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--heb-ink);
}

.heb-eyebrow span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--heb-amber);
}

.heb-title {
	margin: 0 0 14px;
	font-size: clamp(36px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.045em;
	color: var(--heb-ink);
}

.heb-stop { color: var(--heb-amber); }

.heb-lead {
	max-width: 640px;
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--heb-mid);
}

.heb-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.heb-cats__link {
	padding: 8px 16px;
	border: 1px solid var(--heb-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--heb-mid) !important;
	text-decoration: none !important;
	transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.heb-cats__link:hover { border-color: var(--heb-ink); color: var(--heb-ink) !important; }

.heb-cats__link.is-active {
	border-color: var(--heb-ink);
	background: var(--heb-ink);
	color: #FFFFFF !important;
}

.heb-list { padding-top: 44px; padding-bottom: 80px; }

.heb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 28px;
}

/* ---- card ---- */
.heb-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.heb-card__media {
	display: block;
	overflow: hidden;
	text-decoration: none !important;
	border-radius: 14px;
	aspect-ratio: 16 / 9;
	background: var(--heb-tint);
}

.heb-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.heb-card:hover .heb-card__media img { transform: scale(1.04); }

/* No featured image: a calm brand panel instead */
.heb-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--heb-ink);
}

.heb-card__ph span {
	font-size: 56px;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: #FFFFFF;
}

.heb-card__ph b { color: var(--heb-amber); }

.heb-card__body { padding-top: 18px; }

.heb-card__cat {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--heb-green) !important;
	text-decoration: none !important;
}

.heb-card__title {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.heb-card__title a {
	color: var(--heb-ink) !important;
	text-decoration: none !important;
	background-image: linear-gradient(var(--heb-amber), var(--heb-amber));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease;
}

.heb-card:hover .heb-card__title a { background-size: 100% 2px; }

.heb-card__excerpt {
	margin: 0 0 14px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--heb-mid);
}

.heb-card__meta {
	display: flex;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	color: var(--heb-soft);
}

/* The newest post on the blog home: wide, image beside the text */
.heb-card--featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--heb-line);
}

.heb-card--featured .heb-card__body { padding-top: 0; }
.heb-card--featured .heb-card__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.03em; }
.heb-card--featured .heb-card__excerpt { font-size: 17px; }
.heb-card--featured .heb-card__ph span { font-size: 96px; }

/* ---- pagination ---- */
.heb-list .pagination,
.heb-list .navigation.pagination { margin-top: 56px; }

.heb-list .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.heb-list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--heb-line);
	border-radius: 10px;
	font-weight: 500;
	color: var(--heb-ink) !important;
	text-decoration: none !important;
	box-sizing: border-box;
}

.heb-list .page-numbers.current { background: var(--heb-ink); border-color: var(--heb-ink); color: #FFFFFF !important; }
.heb-list a.page-numbers:hover { border-color: var(--heb-ink); }

.heb-empty {
	padding: 60px 0;
	text-align: center;
	color: var(--heb-mid);
}

.heb-empty__title {
	margin-bottom: 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--heb-ink);
}

/* ============================================================
   Single post: a narrow, calm reading column
   ============================================================ */
.single-post .content-bg,
.single-post .entry.single-entry,
.single-post .entry-content-wrap {
	background: transparent !important;
	box-shadow: none !important;
}

.single-post .content-container,
.single-post .site-container.content-container {
	max-width: 800px;
}

.single-post .entry-header .entry-title {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--heb-ink);
}

.single-post .entry-content {
	font-size: 18px;
	line-height: 1.8;
	color: #26352F;
}

.single-post .entry-content h2 {
	margin-top: 2em;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.single-post .entry-content h3 {
	margin-top: 1.6em;
	font-size: 23px;
	letter-spacing: -0.02em;
}

.entry-content a {
	color: var(--heb-green);
	text-decoration: underline;
	text-decoration-color: rgba(4, 120, 87, 0.35);
	text-underline-offset: 3px;
}

.entry-content a:hover { text-decoration-color: var(--heb-green); }

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--heb-amber);
	font-size: 20px;
	color: var(--heb-ink);
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--heb-tint);
	font-size: 0.9em;
}

.entry-content pre {
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--heb-ink);
	color: #E6F1EC;
	font-size: 14.5px;
	line-height: 1.65;
	overflow-x: auto;
}

.entry-content pre code { padding: 0; background: none; color: inherit; }

.entry-content img { border-radius: 12px; }

/* Call to action at the end of every post */
.heb-cta {
	margin: 3em 0 1em;
	padding: 30px 32px;
	border: 1px solid var(--heb-line);
	border-radius: 18px;
	background: var(--heb-tint);
}

.heb-cta__title {
	margin: 0 0 8px !important;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--heb-ink);
}

.heb-cta__title span { color: var(--heb-amber); }

.heb-cta__text {
	margin: 0 0 18px !important;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--heb-mid);
}

/* ============================================================
   Footer
   ============================================================ */
.heb-footer {
	padding: 64px 0 28px;
	background: var(--heb-ink);
	color: #8FB0A3;
	font-size: 14.5px;
}

.heb-footer a {
	color: #8FB0A3 !important;
	text-decoration: none !important;
	transition: color 0.16s ease;
}

.heb-footer a:hover { color: #FFFFFF !important; }

.heb-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
	gap: 48px;
}

.heb-footer__brand img {
	display: block;
	width: auto;
	height: 36px;
	margin-bottom: 16px;
}

.heb-footer__brand p {
	max-width: 300px;
	margin: 0;
	line-height: 1.65;
}

.heb-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.heb-footer__title {
	margin: 0 0 14px;
	font-weight: 700;
	color: #FFFFFF;
}

.heb-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 9px;
}

.heb-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	margin-top: 52px;
	padding-top: 24px;
	border-top: 1px solid rgba(167, 243, 208, 0.12);
	font-size: 13px;
	color: #6F9184;
}

.heb-footer__base p { margin: 0; }

.heb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}


/* ============================================================
   Single post (single.php)
   ============================================================ */
.heb-post .heb-wrap { max-width: 880px; }

.heb-article__head { padding-top: 56px; }

.heb-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 0 0 22px;
	font-size: 15px;
	font-weight: 600;
	color: var(--heb-ink);
}

.heb-article__by,
.heb-article__read { font-weight: 500; color: var(--heb-mid); }

.heb-pill {
	padding: 7px 14px;
	border-radius: 999px;
	background: #E6F2EC;
	font-size: 14px;
	font-weight: 600;
	color: var(--heb-ink) !important;
	text-decoration: none !important;
}

.heb-pill:hover { background: #D5EADF; }

.heb-article__title {
	margin: 0 0 32px;
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: var(--heb-ink);
}

.heb-article__image {
	margin: 0 0 22px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--heb-tint);
}

.heb-article__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Summarize with + Share */
.heb-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px 28px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--heb-line);
}

.heb-tools__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.heb-tools__label {
	margin-right: 4px;
	font-size: 14px;
	color: var(--heb-soft);
}

.heb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--heb-line);
	border-radius: 999px;
	background: #FFFFFF;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--heb-ink) !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.heb-chip:hover { border-color: var(--heb-ink); background: var(--heb-tint); }

.heb-chip svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.heb-article__body { padding-top: 34px; padding-bottom: 40px; }

.heb-post .entry-content {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.8;
	color: #26352F;
}

.heb-post .entry-content > * + * { margin-top: 1.1em; }

.heb-post .entry-content h2 {
	margin-top: 2em;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.heb-post .entry-content h3 {
	margin-top: 1.6em;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.heb-post .entry-content ul,
.heb-post .entry-content ol { padding-left: 1.3em; }

.heb-post .entry-content li + li { margin-top: 0.4em; }

.heb-post .entry-content figure { margin: 1.8em 0; }

.heb-post .entry-content img {
	max-width: 100%;
	height: auto;
}

/* Keep reading */
.heb-related {
	padding: 56px 0 80px;
	background: var(--heb-tint);
}

.heb-related .heb-wrap { max-width: 1200px; }

.heb-related__title {
	margin: 0 0 28px;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.heb-related .heb-card__media { background: #FFFFFF; }

@media (max-width: 720px) {
	.heb-article__head { padding-top: 32px; }
	.heb-tools { flex-direction: column; }
	.heb-post .entry-content { font-size: 17px; }
	.heb-post .entry-content h2 { font-size: 25px; }
}

/* ============================================================
   Focus and smaller screens
   ============================================================ */
.heb-header a:focus-visible,
.heb-main a:focus-visible,
.heb-footer a:focus-visible,
.heb-menu__toggle:focus-visible {
	outline: 2px solid var(--heb-amber);
	outline-offset: 3px;
	border-radius: 6px;
}

@media (max-width: 1080px) {
	.heb-nav,
	.heb-actions { display: none; }

	.heb-menu { display: block; }

	.heb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.heb-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.heb-header__inner { min-height: 64px; }
	.heb-logo img { height: 32px; }
	.heb-blogmark { font-size: 16px; }

	.heb-hero { padding: 40px 0 28px; }

	.heb-grid { grid-template-columns: 1fr; gap: 36px; }

	.heb-card--featured {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.heb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.single-post .entry-content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.heb-card__media img,
	.heb-card__title a,
	.heb-btn { transition: none; }
}
