/*
Theme Name: HomeWorx Site
Theme URI: https://homeworx.co.za
Author: SerenityTech
Description: The theme for the HomeWorx marketing website: logo with the menu beside it, Contact us and a full-height Log in block on the right, a light four-column footer. Clean, fast, system fonts only. Works on its own and with the HomeWorx Website plugin and Elementor.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeworx-site
*/

:root {
	--hxs-navy: #0E2147;
	--hxs-blue: #1B4D72;
	--hxs-orange: #ED8231;
	--hxs-orange-dark: #C4581A;
	--hxs-teal: #62B7A1;
	--hxs-text: #33415A;
	--hxs-muted: #5C6B80;
	--hxs-light: #F5F8F9;
	--hxs-line: #DFE7EC;
	--hxs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hxs-header: 78px;
	--hxs-wrap: 1208px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hxs-header) + 12px); }
body { margin: 0; background: #fff; color: var(--hxs-text); font-family: var(--hxs-font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--hxs-blue); }
a:hover { color: var(--hxs-navy); }
h1, h2, h3, h4 { color: var(--hxs-navy); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hxs-orange); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hxs-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--hxs-navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hxs-skip:focus { left: 12px; }

/* ---------------- Header: logo, menu beside it, Contact us, full-height Log in block ---------------- */
.hxs-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--hxs-line); }
.admin-bar .hxs-header { top: 32px; }
.hxs-bar { max-width: var(--hxs-wrap); margin: 0 auto; padding: 0 0 0 20px; display: flex; align-items: stretch; min-height: var(--hxs-header); }
.hxs-logo { display: flex; align-items: center; gap: 10px; padding-right: 32px; flex: none; text-decoration: none; }
.hxs-logo img { height: 44px; width: 44px; display: block; }
.hxw-fonts .hxs-logo .hxs-name { font-family: "Paytone One", var(--hxs-font); font-weight: 400; letter-spacing: 0; }
.hxs-logo .hxs-name { font-size: 1.5rem; font-weight: 800; color: var(--hxs-navy); letter-spacing: -0.02em; }
.hxs-nav { flex: 1 1 auto; display: flex; }
.hxs-menu { list-style: none; margin: 0; padding: 0; display: flex; flex: 1 1 auto; align-items: stretch; }
.hxs-menu > li { position: relative; display: flex; }
.hxs-menu > li > a { display: flex; align-items: center; padding: 0 16px; color: var(--hxs-navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hxs-menu > li > a:hover, .hxs-menu > li.current-menu-item > a { color: var(--hxs-blue); }
.hxs-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.hxs-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--hxs-line); border-top: 3px solid var(--hxs-orange); box-shadow: 0 18px 40px -18px rgba(14, 33, 71, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.hxs-menu > li:hover > .sub-menu, .hxs-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hxs-menu .sub-menu a { display: block; white-space: nowrap; padding: 9px 20px; color: var(--hxs-text); text-decoration: none; font-weight: 500; }
.hxs-menu .sub-menu a:hover { background: var(--hxs-light); color: var(--hxs-navy); }
.hxs-menu .sub-menu .hxw-menu-sep { border-top: 1px solid var(--hxs-line); margin-top: 6px; padding-top: 6px; }
/* Contact us pushes itself and Log in to the right. */
.hxs-menu > li.hxw-menu-cta { margin-left: auto; }
.hxs-menu > li.hxw-menu-cta > a { color: var(--hxs-orange-dark); font-weight: 700; }
.hxs-menu > li.hxw-menu-cta > a::before, .hxs-menu > li.hxw-menu-login > a::before { content: ""; width: 18px; height: 18px; margin-right: 8px; background: currentColor; -webkit-mask: var(--hxs-ico) center/contain no-repeat; mask: var(--hxs-ico) center/contain no-repeat; }
.hxs-menu > li.hxw-menu-cta > a::before { --hxs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 01-11.6 7.1L4 20l1-4.4A8 8 0 1121 12z'/%3E%3C/svg%3E"); }
.hxs-menu > li.hxw-menu-login > a { background: var(--hxs-navy); color: #fff; padding: 0 30px; font-weight: 700; }
.hxs-menu > li.hxw-menu-login > a:hover { background: var(--hxs-blue); color: #fff; }
.hxs-menu > li.hxw-menu-login > a::before { --hxs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E"); }
.hxs-burger { display: none; margin-left: auto; align-self: center; background: none; border: 0; padding: 12px 18px; cursor: pointer; color: var(--hxs-navy); font: 700 .95rem var(--hxs-font); }
.hxs-burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.hxs-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hxs-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hxs-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
	.hxs-bar { padding-right: 0; flex-wrap: wrap; min-height: 64px; }
	.hxs-logo { padding: 8px 20px 8px 0; }
	.hxs-logo img { height: 38px; width: 38px; }
	.hxs-logo .hxs-name { font-size: 1.3rem; }
	.hxs-burger { display: block; }
	.hxs-nav { display: none; flex-basis: 100%; border-top: 1px solid var(--hxs-line); padding: 8px 0 16px; }
	.hxs-nav.is-open { display: block; }
	.hxs-menu { flex-direction: column; }
	.hxs-menu > li { display: block; }
	.hxs-menu > li > a { padding: 12px 20px; }
	.hxs-menu > li.menu-item-has-children > a::after { display: none; }
	.hxs-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
	.hxs-menu > li.hxw-menu-cta { margin: 8px 20px 0; }
	.hxs-menu > li.hxw-menu-cta > a { padding: 12px 0; }
	.hxs-menu > li.hxw-menu-login { margin: 8px 20px 0; }
	.hxs-menu > li.hxw-menu-login > a { justify-content: center; border-radius: 10px; padding: 14px 20px; }
}
@media (max-width: 782px) { .admin-bar .hxs-header { top: 0; position: relative; } }

/* ---------------- Content ---------------- */
.hxs-main { display: block; min-height: 50vh; }
.hxs-container { max-width: 860px; margin: 0 auto; padding: 56px 20px 72px; }
.hxs-container.is-wide { max-width: var(--hxs-wrap); }
.hxs-page-title { margin-bottom: 24px; }
.hxs-meta { color: var(--hxs-muted); font-size: .9rem; margin: -12px 0 24px; }
.hxs-entry > *:first-child { margin-top: 0; }
.hxs-entry .alignwide { max-width: var(--hxs-wrap); }
.hxs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.hxs-list li { border-bottom: 1px solid var(--hxs-line); padding-bottom: 24px; }
.hxs-list h2 { font-size: 1.4rem; margin-bottom: 6px; }
.hxs-list h2 a { color: var(--hxs-navy); text-decoration: none; }
.hxs-pager { display: flex; justify-content: space-between; margin-top: 32px; }
.hxs-404 { text-align: center; padding: 96px 20px; }
.hxs-404 p { color: var(--hxs-muted); }
.hxs-btn { display: inline-block; background: var(--hxs-orange); color: #fff; border-radius: 10px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.hxs-btn:hover { background: var(--hxs-orange-dark); color: #fff; }

/* Block editor basics for pages not built by the plugin. */
.wp-block-image img { border-radius: 10px; }
.wp-block-button__link { border-radius: 10px; }

/* The logo file has a white background: blend it into the light footer. */
.hxs-site-footer .hxw-foot-brand img { mix-blend-mode: multiply; }

/* ---------------- Footer fallback (the plugin replaces it with its own four columns) ---------------- */
.hxs-footer { background: var(--hxs-light); border-top: 1px solid var(--hxs-line); padding: 28px 20px; color: var(--hxs-muted); font-size: .9rem; }
.hxs-footer-in { max-width: var(--hxs-wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.hxs-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.hxs-footer a { color: var(--hxs-text); text-decoration: none; }

/* ---------------- Blog ---------------- */
.hxs-wrap { max-width: var(--hxs-wrap); margin: 0 auto; padding: 0 20px; }
.hxs-blog-head { background: #F5EDE6; padding: 56px 0 44px; }
.hxs-blog-head h1 { color: var(--hxs-orange-dark); margin: 0 0 10px; }
.hxw-fonts .hxs-blog-head h1, .hxw-fonts .hxs-list h2, .hxw-fonts .hxs-side h2 { font-family: "Paytone One", var(--hxs-font); font-weight: 400; letter-spacing: 0; }
.hxs-lead { font-size: 1.2rem; font-weight: 700; color: var(--hxs-navy); margin: 0; max-width: 680px; }
.hxw-fonts .hxs-lead { font-family: "Montserrat", var(--hxs-font); }
.hxs-kicker { margin: 0 0 6px; font-weight: 600; color: var(--hxs-muted); }
.hxs-kicker a { color: var(--hxs-blue); }
.hxs-blog { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.hxs-blog-main { min-width: 0; }
.hxs-list .hxs-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.hxs-list .hxs-card:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.hxs-thumb img { border-radius: 6px; display: block; width: 100%; height: auto; }
.hxs-meta a { color: var(--hxs-blue); }
.hxs-side h2 { font-size: 1.15rem; margin: 0 0 12px; }
.hxs-side ul { list-style: none; margin: 0 0 32px; padding: 0; }
.hxs-side li { margin: 0; }
.hxs-cats > li > a, .hxs-latest a { display: inline-block; padding: 6px 0; color: var(--hxs-navy); font-weight: 600; text-decoration: none; }
.hxs-cats .children { margin: 0 0 6px; padding-left: 14px; border-left: 2px solid var(--hxs-line); }
.hxs-cats .children a { display: inline-block; padding: 4px 0; color: var(--hxs-text); font-weight: 500; text-decoration: none; font-size: .95rem; }
.hxs-side a:hover { color: var(--hxs-orange-dark); }
.hxs-cats .current-cat > a { color: var(--hxs-orange-dark); }
.hxs-empty { color: var(--hxs-muted); }
.hxs-entry iframe { max-width: 100%; }
.hxs-entry .wp-block-embed__wrapper { position: relative; }
.hxs-back { margin-top: 40px; font-weight: 600; }
@media (max-width: 900px) {
	.hxs-blog { grid-template-columns: 1fr; gap: 32px; }
	.hxs-list .hxs-card { grid-template-columns: 1fr; }
}
