/*
Theme Name: Helivolt
Theme URI: https://wordpress.templates.codememory.com/helivolt/
Author: Code Memory
Author URI: https://codememory.com
Description: Helivolt is a WordPress theme for solar panel installers and renewable energy companies: residential and commercial solar, battery storage, EV chargers, farm and ground-mount systems and heat pumps. Six demos, a quote bar in the hero, a solar savings calculator (system size, panels, price after incentives, payback, 25-year savings and CO2), services priced per kW or per job, a filterable installation portfolio, financing plans, team profiles and quote requests with a live guide price saved in your dashboard. Works with the block editor and with Elementor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helivolt
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, custom-header, custom-background, editor-style, featured-images, footer-widgets, full-width-template, block-styles, wide-blocks, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/*
 * Contents
 * 1. Base   2. Layout   3. Buttons and forms   4. Top bar and header   5. Page header band
 * 6. Posts and cards   7. Single post   8. Comments   9. Widgets   10. Footer
 * 11. Mobile bar and back to top   12. 404   13. WordPress classes   14. Small screens
 * Colours and fonts come from CSS variables set in the Customizer (inc/customizer-css.php).
 */

/* 1. Base */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--hv-paper, #f3f6f2);
	color: var(--hv-ink, #0e2a30);
	font-family: var(--hv-font-body, system-ui, sans-serif);
	font-size: var(--hv-size, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: lining-nums;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1.6em 0 0.6em;
	font-family: var(--hv-font-head, "Trebuchet MS", sans-serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--hv-ink);
}
h1 em,
h2 em,
h3 em { font-style: normal; color: var(--hv-link); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.025rem; }
h6 { font-size: 0.95rem; font-family: var(--hv-font-body); font-weight: 700; letter-spacing: 0.02em; }

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 1.25em; }
ul, ol { padding-inline-start: 1.3em; }
li > ul, li > ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin: 0 0 1em; margin-inline-start: 1.25em; }

a { color: var(--hv-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--hv-accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--hv-accent);
	outline-offset: 2px;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }

hr { border: 0; border-top: 1px solid var(--hv-line); margin: 2.5em 0; }

code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code, kbd { background: var(--hv-accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre { overflow-x: auto; padding: 1.25em; background: var(--hv-ink-2); color: #f3f2ef; border-radius: var(--hv-radius); }
pre code { background: none; padding: 0; color: inherit; }

table { width: 100%; border-collapse: collapse; }
th,
td { overflow-wrap: anywhere; }
th, td { padding: 0.7em 0.9em; border-bottom: 1px solid var(--hv-line); text-align: start; }
th { font-weight: 700; }

blockquote { margin-inline: 0; padding: 0.4em 0 0.4em 1.4em; border-inline-start: 5px solid var(--hv-accent); font-family: var(--hv-font-head); font-size: 1.2em; font-weight: 500; line-height: 1.45; }
blockquote cite { display: block; margin-top: 0.6em; font-size: 0.85em; font-style: normal; color: var(--hv-muted); }

mark, ins { background: var(--hv-accent-soft); color: inherit; text-decoration: none; padding: 0 0.15em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
small { font-size: 0.85em; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

.hv-icon { display: inline-block; flex: none; vertical-align: middle; }

/* 2. Layout */
.hv-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 20px;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site > .site-footer { margin-top: auto; }

.hv-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-block: 56px 80px;
}
.has-sidebar .hv-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.has-sidebar.sidebar-left .hv-layout { grid-template-columns: 320px minmax(0, 1fr); }
.has-sidebar.sidebar-left .hv-layout .site-main { order: 2; }

.hv-page { padding-block: 56px 80px; max-width: 1240px; margin-inline: auto; }
.hv-full { padding: 0; }
.hv-full > .entry-content,
.hv-page .entry-content { min-height: 1px; }

/* Readable column for posts and pages, with wide and full blocks breaking out. */
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1240px; }
.entry-content > .alignfull { max-width: none; }
.hv-layout .entry-content > *,
.hv-layout .entry-content > .alignwide { max-width: 100%; }
.hv-full > * { max-width: none; }

/* 3. Buttons and forms */
.hv-btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.95em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--hv-ink);
	color: var(--hv-on-ink);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.hv-btn:hover,
button:hover,
input[type="submit"]:hover { color: var(--hv-on-accent); background: var(--hv-accent); }
.hv-btn--accent,
input[type="submit"],
.comment-form .submit {
	background: var(--hv-accent);
	color: var(--hv-on-accent);
}
.hv-btn--accent:hover,
input[type="submit"]:hover { color: var(--hv-on-ink); background: var(--hv-ink); }
.hv-btn--ghost { background: transparent; color: var(--hv-ink); border-color: currentColor; }
.hv-btn--ghost:hover { color: var(--hv-on-ink); background: var(--hv-ink); border-color: var(--hv-ink); }

.hv-icon-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--hv-paper);
	color: var(--hv-ink);
	border: 0;
}
.hv-icon-btn:hover { color: var(--hv-accent); background: var(--hv-accent-soft); transform: none; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.75em 0.95em;
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	background: var(--hv-surface);
	color: var(--hv-ink);
	font: inherit;
	line-height: 1.4;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--hv-accent); outline: none; box-shadow: 0 0 0 3px var(--hv-accent-soft); }
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 700; }
fieldset { border: 1px solid var(--hv-line); border-radius: var(--hv-radius); padding: 1em 1.25em; margin: 0 0 1.25em; }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { flex: none; width: 52px; height: 52px; padding: 0; border-radius: 50%; background: var(--hv-accent); color: var(--hv-on-accent); }

/* 4. Top bar and header */
.hv-topbar {
	position: relative;
	background: var(--hv-ink-2);
	color: #dfe8e6;
	font-size: 0.875rem;
}
.hv-topbar::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #ffc23d, var(--hv-accent) 45%, transparent 100%); }
.hv-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 42px; }
.hv-topbar__text { display: flex; align-items: center; gap: 8px; margin: 0; }
.hv-topbar__text .hv-icon { width: 16px; height: 16px; color: var(--hv-link-on-ink); }
.hv-topbar__nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.hv-topbar a { color: inherit; text-decoration: none; }
.hv-topbar a:hover { color: var(--hv-link-on-ink); }
.hv-topbar__phone { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hv-topbar__phone strong { color: #fff; font-size: 0.95rem; }
.hv-topbar__phone .hv-icon { width: 16px; height: 16px; }
.hv-topbar__label { padding: 2px 10px; border-radius: 999px; background: var(--hv-accent); color: var(--hv-on-accent); font-weight: 700; font-size: 0.78rem; }
.hv-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hv-accent); }
.hv-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hv-accent); animation: hv-pulse 1.8s infinite; }
@keyframes hv-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	70%,
	100% { transform: scale(3); opacity: 0; }
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--hv-surface);
	border-bottom: 0;
	box-shadow: 0 1px 0 var(--hv-line);
}
.hv-sticky .site-header { position: sticky; top: 0; }
.admin-bar.hv-sticky .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 14px 34px -20px rgba(14, 42, 48, 0.45); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 82px; }

.site-branding { flex: none; }
.site-title { margin: 0; font-family: var(--hv-font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.site-title a { display: inline-flex; align-items: center; gap: 11px; color: var(--hv-ink); text-decoration: none; }
.site-title a::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #ffc23d 0 34%, transparent 35%), conic-gradient(from 0deg, var(--hv-accent) 0 10%, transparent 10% 12.5%, var(--hv-accent) 12.5% 22.5%, transparent 22.5% 25%, var(--hv-accent) 25% 35%, transparent 35% 37.5%, var(--hv-accent) 37.5% 47.5%, transparent 47.5% 50%, var(--hv-accent) 50% 60%, transparent 60% 62.5%, var(--hv-accent) 62.5% 72.5%, transparent 72.5% 75%, var(--hv-accent) 75% 85%, transparent 85% 87.5%, var(--hv-accent) 87.5% 97.5%, transparent 97.5%); -webkit-mask: radial-gradient(circle, #000 0 58%, transparent 59% 64%, #000 65%); mask: radial-gradient(circle, #000 0 58%, transparent 59% 64%, #000 65%); }
.site-description { margin: 2px 0 0; font-size: 0.8rem; color: var(--hv-muted); }
.custom-logo { max-height: 56px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.site-header__tools { display: flex; align-items: center; gap: 10px; }

.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation > ul { display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--hv-ink);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.main-navigation a:hover { color: var(--hv-ink); background-color: var(--hv-accent-soft); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { color: var(--hv-ink); background-color: var(--hv-accent-soft); box-shadow: inset 0 -2px 0 var(--hv-accent); }
.main-navigation .menu-item-has-children > a { padding-inline-end: 4px; }
.main-navigation .menu-item-has-children { display: flex; align-items: center; }
.sub-toggle { width: 26px; height: 26px; padding: 0; background: none; color: var(--hv-ink); border: 0; }
.sub-toggle:hover { color: var(--hv-accent); background: none; transform: none; }
.sub-toggle .hv-icon { width: 16px; height: 16px; }
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 240px;
	padding: 8px;
	background: var(--hv-surface);
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	box-shadow: 0 28px 50px -24px rgba(14, 42, 48, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.main-navigation .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { padding: 9px 14px; border-radius: calc(var(--hv-radius) - 4px); font-size: 0.95rem; font-weight: 500; box-shadow: none; }
.main-navigation .sub-menu a:hover { background-color: var(--hv-paper); color: var(--hv-link); }

.hv-menu-toggle { display: none; }
.hv-menu-toggle .hv-icon-close,
.hv-menu-toggle[aria-expanded="true"] .hv-icon-menu { display: none; }
.hv-menu-toggle[aria-expanded="true"] .hv-icon-close { display: inline-block; }

.hv-scheme-toggle .hv-icon-sun { display: none; }
html[data-hv-scheme="dark"] .hv-scheme-toggle .hv-icon-sun,
.hv-scheme-dark .hv-scheme-toggle .hv-icon-sun { display: inline-block; }
html[data-hv-scheme="dark"] .hv-scheme-toggle .hv-icon-moon,
.hv-scheme-dark .hv-scheme-toggle .hv-icon-moon { display: none; }
html[data-hv-scheme="light"] .hv-scheme-dark .hv-scheme-toggle .hv-icon-sun { display: none; }
html[data-hv-scheme="light"] .hv-scheme-dark .hv-scheme-toggle .hv-icon-moon { display: inline-block; }

/* Centered layout */
.hv-header-centered .site-header__inner { flex-direction: column; gap: 10px; padding-block: 18px 10px; }
.hv-header-centered .site-header__actions { justify-content: center; width: 100%; }

/* Contact layout: logo + phone + hours, then the menu in its own bar */
.hv-head-contact { display: flex; gap: 28px; margin-inline-start: auto; }
.hv-header-contact__item { display: flex; align-items: center; gap: 12px; color: var(--hv-ink); text-decoration: none; }
.hv-header-contact__item small { display: block; color: var(--hv-muted); font-size: 0.8rem; }
.hv-header-contact__item strong { display: block; font-family: var(--hv-font-head); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.hv-header-contact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hv-accent-soft); color: var(--hv-ink); }
.hv-head-contact .hv-header-contact__item:first-child .hv-header-contact__icon { background: var(--hv-accent); color: var(--hv-on-accent); }
.hv-header-contact .site-header__inner { flex-wrap: wrap; gap: 0 32px; padding-top: 14px; }
.hv-header-contact .site-header__actions { flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--hv-line); padding-block: 8px; }

.hv-search-panel { background: var(--hv-surface); border-bottom: 1px solid var(--hv-line); padding-block: 20px; }
.hv-search-panel .search-form { max-width: 640px; margin-inline: auto; }

/* 5. Page header band */
.hv-page-header {
	position: relative;
	overflow: hidden;
	padding-block: 88px 96px;
	background-color: var(--hv-ink-2);
	background-image: radial-gradient(circle at 88% 120%, rgba(255, 194, 61, 0.38) 0, rgba(255, 138, 31, 0.16) 22%, transparent 46%);
	color: #fff;
	text-align: start;
}
.hv-page-header::after {
	content: "";
	position: absolute;
	inset-inline-end: -120px;
	bottom: -260px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 1px solid rgba(255, 194, 61, 0.28);
	box-shadow: 0 0 0 60px rgba(255, 194, 61, 0.05), 0 0 0 120px rgba(255, 194, 61, 0.035);
	pointer-events: none;
}
.hv-page-header .hv-page-title { color: #fff; }
.hv-page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hv-page-header.has-image .hv-page-header__bg { opacity: 0.26; }
.hv-page-header .hv-container { position: relative; z-index: 1; }
.hv-page-title { margin: 14px 0 0; color: inherit; max-width: 960px; }
.hv-page-subtitle { margin: 18px 0 0; max-width: 680px; color: #d9e4e2; font-size: 1.15rem; }
.hv-page-header.has-image .hv-page-subtitle { color: #ecebe7; }
.hv-page-subtitle p:last-child { margin: 0; }
.hv-breadcrumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; color: var(--hv-muted); font-size: 0.9rem; font-weight: 600; }
.hv-breadcrumbs a { color: var(--hv-ink); text-decoration: none; }
.hv-breadcrumbs a:hover { color: var(--hv-link); }
.hv-page-header .hv-breadcrumbs { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--hv-link-on-ink); }
.hv-page-header .hv-breadcrumbs a { color: #fff; }
.hv-breadcrumbs .sep { opacity: 0.6; }

/* 6. Posts and cards */
.hv-posts { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.has-sidebar .hv-posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hv-related .hv-posts--three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.hv-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 8px;
	background: var(--hv-surface);
	border: 0;
	border-radius: calc(var(--hv-radius) + 6px);
	box-shadow: 0 1px 0 var(--hv-line), 0 22px 44px -36px rgba(14, 42, 48, 0.55);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hv-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--hv-line), 0 30px 54px -30px rgba(14, 42, 48, 0.5); }
.hv-card .post-thumbnail { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--hv-radius); background: var(--hv-line); }
.hv-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hv-card:hover .post-thumbnail img { transform: scale(1.04); }
.hv-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 18px 16px; }
.hv-card .entry-title { margin: 10px 0 10px; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.hv-card .entry-title a { color: var(--hv-ink); text-decoration: none; }
.hv-card .entry-title a:hover { color: var(--hv-accent); }
.hv-card .entry-summary { color: var(--hv-muted); font-size: 0.97rem; }
.hv-card .entry-summary > :last-child { margin-bottom: 0; }
.hv-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--hv-ink); font-size: 0.98rem; font-weight: 700; text-decoration: none; }
.hv-more .hv-icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--hv-accent); color: var(--hv-on-accent); transition: transform 0.15s ease; }
.hv-more:hover .hv-icon { transform: translateX(4px); }
.hv-card.sticky { border-color: var(--hv-accent); box-shadow: inset 0 3px 0 var(--hv-accent); }
.hv-sticky-badge { align-self: flex-start; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: var(--hv-accent); color: var(--hv-on-accent); font-size: 0.78rem; font-weight: 700; }
.hv-card--result .hv-card__body { padding: 22px 24px; }
.hv-result-type { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--hv-link); }

.hv-list-list .hv-posts { grid-template-columns: 1fr; }
.hv-list-list .hv-card:not(.hv-card--result) { flex-direction: row; }
.hv-list-list .hv-card .post-thumbnail { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.85rem; color: var(--hv-muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--hv-accent); }
.entry-meta .hv-icon { width: 15px; height: 15px; margin-inline-end: 6px; color: var(--hv-accent); }
.hv-label { display: inline-block; color: var(--hv-link) !important; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }

.pagination,
.comments-pagination,
.posts-navigation { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding-inline: 14px;
	border: 1px solid var(--hv-line);
	border-radius: 999px;
	background: var(--hv-surface);
	color: var(--hv-ink);
	font-weight: 600;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--hv-accent); border-color: var(--hv-accent); color: var(--hv-on-accent); }
.pagination .dots:hover { background: var(--hv-surface); color: var(--hv-ink); border-color: var(--hv-line); }

.hv-empty { padding: 40px; background: var(--hv-surface); border: 1px dashed var(--hv-line); border-radius: var(--hv-radius); }
.hv-empty__title { margin-top: 0; }

/* 6b. Services, projects, team and service types (Helivolt Core post types) */
.hv-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 56px 80px; align-items: start; }
.hv-detail--member { grid-template-columns: 360px minmax(0, 1fr); }
.hv-detail__main .post-thumbnail { margin: 0 0 32px; border-radius: var(--hv-radius); overflow: hidden; }
.hv-detail__main .post-thumbnail img { width: 100%; height: auto; aspect-ratio: 32 / 19; object-fit: cover; }
.hv-detail__main .entry-content > * { max-width: none; }
.hv-detail__aside { position: sticky; top: 120px; display: grid; gap: 20px; }
.hv-side-card { position: relative; display: grid; gap: 12px; padding: 30px 28px 28px; overflow: hidden; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: calc(var(--hv-radius) + 6px); box-shadow: 0 30px 50px -40px rgba(14, 42, 48, 0.55); }
.hv-side-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #ffc23d, var(--hv-accent)); }
.hv-side-card .hv-btn { width: 100%; }
.hv-side-card__label { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; color: var(--hv-muted); }
.hv-side-card__price { margin: 0; font-family: var(--hv-font-head); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--hv-ink); }
.hv-side-card__note { margin: -4px 0 4px; color: var(--hv-muted); font-size: 0.9rem; }
.hv-side-card__row { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.hv-side-card__row .hv-icon,
.hv-facts .hv-icon { color: var(--hv-link); }
.hv-facts { display: grid; gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.hv-facts li { display: flex; gap: 12px; align-items: flex-start; }
.hv-side-list { padding: 24px 28px; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: calc(var(--hv-radius) + 6px); }
.hv-side-list ul { margin: 12px 0 0; padding: 0; list-style: none; }
.hv-side-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--hv-line); color: var(--hv-ink); font-weight: 500; text-decoration: none; }
.hv-side-list li:last-child a { border-bottom: 0; }
.hv-side-list a .hv-icon { width: 16px; height: 16px; color: var(--hv-accent); }
.hv-side-list a:hover { color: var(--hv-accent); }
.hv-included { margin-top: 40px; padding: 30px 32px; border: 0; border-radius: calc(var(--hv-radius) + 6px); background: var(--hv-accent-soft); }
.hv-included h2 { margin-top: 0; font-size: 1.45rem; }
.hv-included ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.hv-included li { display: flex; gap: 10px; align-items: flex-start; }
.hv-included li .hv-icon { margin-top: 4px; color: var(--hv-link); }
.hv-member-photo { margin: 0 0 14px; overflow: hidden; border-radius: 999px 999px calc(var(--hv-radius) + 6px) calc(var(--hv-radius) + 6px); background: linear-gradient(160deg, #ffc23d, var(--hv-accent)); padding: 8px 8px 0; }
.hv-member-photo img { border-radius: 999px 999px calc(var(--hv-radius) + 2px) calc(var(--hv-radius) + 2px); }
.hv-member-photo img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center 25%; }
.hv-schedule__title { margin: 48px 0 20px; font-size: 1.6rem; }
.hv-schedule { position: relative; margin: 0; padding: 0; list-style: none; }
.hv-schedule::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 7px; border-inline-start: 2px dashed var(--hv-line); }
.hv-schedule li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 0 0 22px 34px; }
.hv-schedule li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; border: 3px solid var(--hv-accent); background: var(--hv-paper); }
.hv-schedule li:first-child::before,
.hv-schedule li:last-child::before { background: var(--hv-accent); }
.hv-schedule__time { font-weight: 700; color: var(--hv-link); }
.hv-schedule__item { font-size: 1.05rem; }
.hv-glance__title { margin: 48px 0 20px; font-size: 1.6rem; }
.hv-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; border-top: 1px solid var(--hv-line); }
.hv-glance div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--hv-line); }
.hv-glance dt { color: var(--hv-muted); font-size: 0.95rem; font-weight: 600; }
.hv-glance dd { margin: 0; font-weight: 700; text-align: end; }
.hv-side-team strong { display: block; }
.hv-side-team small { display: block; color: var(--hv-muted); font-weight: 500; }
.hv-archive-grid { padding-block: 56px 80px; }
.post-navigation.hv-container { margin-bottom: 64px; }

/* 7. Single post */
.hv-single { min-width: 0; }
.hv-single .entry-header { margin-bottom: 28px; }
.hv-single .hv-breadcrumbs { color: var(--hv-muted); margin-bottom: 18px; }
.hv-single .hv-breadcrumbs a { color: var(--hv-ink); }
.hv-single .entry-title { margin: 12px 0 16px; overflow-wrap: anywhere; }
.entry-meta--line { padding-block: 14px; border-block: 1px solid var(--hv-line); }
.hv-single .post-thumbnail { margin: 0 0 36px; border-radius: var(--hv-radius); overflow: hidden; }
.hv-single .post-thumbnail img { width: 100%; height: auto; aspect-ratio: 32 / 19; object-fit: cover; }
.hv-single .hv-card .post-thumbnail,
.hv-detail__main .hv-card .post-thumbnail { margin: 0; }
.hv-single .hv-card .post-thumbnail img,
.hv-detail__main .hv-card .post-thumbnail img { height: 100%; aspect-ratio: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-top: 0; }
.entry-footer { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px; font-size: 0.9rem; color: var(--hv-muted); }
.entry-footer .hv-icon { width: 15px; height: 15px; margin-inline-end: 6px; color: var(--hv-accent); }
.entry-footer a { color: var(--hv-ink); }
.tags-links a { display: inline-block; margin: 2px 2px 2px 0; padding: 2px 10px; border: 1px solid var(--hv-line); text-decoration: none; }
.hv-meta-label { font-weight: 700; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; }
.page-links a,
.page-links > .post-page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--hv-line); text-decoration: none; }
.page-links .current { background: var(--hv-accent); color: var(--hv-on-accent); border-color: var(--hv-accent); }

.hv-author-box { display: flex; gap: 20px; margin-top: 44px; padding: 26px; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius); }
.hv-author-box img { border-radius: 50%; }
.hv-author-box__name { margin: 0 0 6px; font-family: var(--hv-font-head); font-size: 1.15rem; font-weight: 700; }
.hv-author-box__name a { color: var(--hv-ink); text-decoration: none; }
.hv-author-box p:last-child { margin: 0; color: var(--hv-muted); }

.post-navigation { margin-top: 44px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px 22px; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius); text-decoration: none; color: var(--hv-ink); }
.post-navigation a:hover { border-color: var(--hv-accent); }
.post-navigation .nav-next { text-align: end; grid-column: 2; }
.nav-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--hv-link); }
.nav-title { display: block; margin-top: 4px; font-family: var(--hv-font-head); font-weight: 700; overflow-wrap: anywhere; }

.hv-related { margin-top: 56px; }
.hv-related__title { margin-top: 0; font-size: 1.5rem; }

/* 8. Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hv-line); }
.comments-title,
.comment-reply-title { margin-top: 0; font-size: 1.5rem; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-inline-start: clamp(14px, 4vw, 44px); }
.comment-body { position: relative; margin-bottom: 18px; padding: 22px 24px; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius); }
.bypostauthor > .comment-body { border-color: var(--hv-accent); box-shadow: inset 4px 0 0 var(--hv-accent); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 12px; font-size: 0.82rem; }
.comment-metadata a { color: var(--hv-muted); text-decoration: none; }
.comment-content { overflow-wrap: anywhere; }
.comment-content > :last-child { margin-bottom: 0; }
.reply { margin-top: 10px; font-size: 0.875rem; font-weight: 700; }
.comment-awaiting-moderation { display: block; margin-top: 8px; color: var(--hv-link); font-style: italic; }
.pingback .comment-body,
.trackback .comment-body { padding-block: 14px; }
.comment-respond { margin-top: 36px; }
.comment-list .comment-respond { margin: 0 0 18px; padding: 22px; background: var(--hv-surface); border-radius: var(--hv-radius); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes,
.logged-in-as { color: var(--hv-muted); font-size: 0.9rem; }
#cancel-comment-reply-link { margin-inline-start: 10px; font-size: 0.85rem; }

/* 9. Widgets */
.widget-area .widget {
	margin-bottom: 28px;
	padding: 26px;
	background: var(--hv-surface);
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	overflow-wrap: anywhere;
}
.widget-title,
.widget .wp-block-heading { margin: 0 0 16px; font-size: 1.15rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding-block: 8px; border-bottom: 1px solid var(--hv-line); }
.widget li:last-child { border-bottom: 0; }
.widget li ul { margin-top: 8px; padding-inline-start: 14px; }
.widget li li:last-child { padding-bottom: 0; }
.widget a { color: var(--hv-ink); text-decoration: none; }
.widget a:hover { color: var(--hv-accent); }
.widget select { max-width: 100%; }

/* 10. Footer */
.site-footer {
	--hv-link: var(--hv-link-on-ink);
	position: relative;
	overflow: hidden;
	border-top: 0;
	background: var(--hv-ink-2);
	background-image: radial-gradient(circle at 92% 0%, rgba(255, 194, 61, 0.22) 0, rgba(255, 138, 31, 0.08) 24%, transparent 48%);
	color: #d3dedc;
	font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--hv-link); }
.site-footer__widgets { padding-block: 72px 40px; }
.hv-footer-grid { display: grid; gap: 40px; }
.hv-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hv-cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.site-footer .widget { margin-bottom: 28px; }
.site-footer .widget-title,
.site-footer .wp-block-heading { margin: 0 0 18px; color: #fff; font-size: 1.1rem; }
.site-footer .widget-title { font-size: 1.1rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #ffc23d, var(--hv-accent) 40%, rgba(255, 138, 31, 0) 100%); }
.site-footer .widget-title::after,
.site-footer .widget > .wp-block-heading::after { content: ""; display: block; width: 28px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--hv-accent); }
.site-footer .widget li { padding-block: 6px; border: 0; }
.site-footer .widget input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer .wp-block-social-links { margin-top: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 24px; }
.site-footer__text { margin: 0; }
.site-footer__nav ul,
.hv-social ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav { margin-inline-start: auto; }

/* 11. Mobile bar and back to top */
.hv-mobile-bar { display: none; }
.hv-to-top {
	position: fixed;
	inset-inline-end: 22px;
	bottom: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hv-accent);
	color: var(--hv-on-accent);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.hv-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.hv-to-top:hover { color: var(--hv-on-accent); }

/* 12. 404 */
.hv-404 { padding-block: 90px 110px; text-align: center; }
.hv-404__inner { max-width: 680px; }
.hv-404__code {
	margin: 0;
	font-family: var(--hv-font-head);
	font-size: clamp(5rem, 16vw, 10rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--hv-link);
}
.hv-404 .search-form { max-width: 460px; margin: 28px auto; }

/* 13. WordPress classes */
.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;
}
.screen-reader-text:focus {
	background: var(--hv-surface);
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--hv-ink);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 8px;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}
.skip-link:focus { position: fixed !important; }

.alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; clear: both; }
.alignnone { margin-block: 0.4em 1.2em; }

.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption img { display: block; }
.wp-caption-text,
.gallery-caption,
figcaption { margin-top: 0.6em; font-size: 0.85rem; color: var(--hv-muted); text-align: center; }

.gallery { display: grid; gap: 12px; margin-bottom: 1.5em; }
.gallery-item { margin: 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }
.gallery-item img { width: 100%; border-radius: var(--hv-radius); }

.sticky { position: relative; }
.bypostauthor { position: relative; }
.post-password-form { padding: 24px; background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius); }
.post-password-form input[type="password"] { max-width: 280px; margin-inline-end: 8px; }

/* 14. Small screens */
@media (max-width: 1080px) {
	.hv-menu-toggle { display: inline-flex; }
	.main-navigation {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: none;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding: 12px 20px 24px;
		background: var(--hv-surface);
		border-bottom: 1px solid var(--hv-line);
		box-shadow: 0 30px 40px -30px rgba(4, 6, 8, 0.5);
	}
	.main-navigation.is-open { display: block; }
	.main-navigation > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation li { flex-wrap: wrap; border-bottom: 1px solid var(--hv-line); }
	.main-navigation .menu-item-has-children > a { flex: 1; }
	.main-navigation a { padding: 14px 4px; }
	.sub-toggle { width: 44px; height: 44px; }
	.main-navigation .sub-menu,
	.main-navigation .sub-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 8px;
		padding-inline-start: 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.main-navigation li.is-open > .sub-menu { display: block; }
	.main-navigation .sub-menu li { border: 0; }
	.has-sidebar .hv-layout,
	.has-sidebar.sidebar-left .hv-layout { grid-template-columns: minmax(0, 1fr); }
	.has-sidebar.sidebar-left .hv-layout .site-main { order: 0; }
	.hv-head-contact { display: none; }
	.hv-header-contact .site-header__inner { padding-top: 0; }
	.hv-header-contact .site-header__actions { border: 0; flex-basis: auto; }
	.hv-detail,
	.hv-detail--member { grid-template-columns: 1fr; }
	.hv-detail__aside { position: static; }
	.hv-header-centered .site-header__inner { flex-direction: row; padding-block: 0; }
	.hv-header-centered .site-header__actions { justify-content: flex-end; }
	.hv-cols-4,
	.hv-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar.hv-sticky .site-header { top: 46px; }
}

@media (max-width: 640px) {
	th, td { padding: 0.5em 0.4em; }
	.hv-page-header::after { width: 320px; height: 320px; bottom: -180px; }
	.hv-topbar__text { display: none; }
	.hv-topbar__nav { display: none; }
	.site-header__inner { min-height: 70px; gap: 12px; }
	.site-title { font-size: 1.3rem; }
	.site-title a::before { width: 24px; height: 24px; }
	.site-header__tools { gap: 6px; }
	.site-header__cta { display: none; }
	.custom-logo { max-height: 44px; }
	.hv-layout,
	.hv-page { padding-block: 40px 56px; }
	.hv-page-header { padding-block: 52px 46px; }
	.hv-glance { grid-template-columns: 1fr; }
	.hv-posts { grid-template-columns: 1fr; }
	.hv-list-list .hv-card:not(.hv-card--result) { flex-direction: column; }
	.hv-list-list .hv-card .post-thumbnail { min-height: 0; aspect-ratio: 3 / 2; }
	.hv-cols-4,
	.hv-cols-3,
	.hv-cols-2 { grid-template-columns: 1fr; }
	.site-footer__nav { margin-inline-start: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
	.hv-author-box { flex-direction: column; }
	.alignleft,
	.alignright { float: none; margin-inline: 0; }
	.has-mobile-bar { padding-bottom: 64px; }
	.has-mobile-bar .hv-to-top { bottom: 80px; }
	.hv-mobile-bar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 60;
		display: flex;
		background: var(--hv-ink-2);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
	}
	.hv-mobile-bar a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 60px;
		color: #fff;
		font-weight: 700;
		text-decoration: none;
	}
	.hv-mobile-bar__cta { background: var(--hv-accent) linear-gradient(90deg, #ffc23d, var(--hv-accent)); color: var(--hv-on-accent) !important; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
