/*
Theme Name: Website Haus
Description: Lightweight theme for The Website Haus. Pairs with the Website Haus Portal plugin.
Version: 1.0.0
Author: The Website Haus
Requires PHP: 7.4
Text Domain: haus-theme
*/

:root {
	--hx-bg: #080e1b;
	--hx-bg-2: #0c1426;
	--hx-surface: rgba(17, 25, 45, 0.55);
	--hx-line: rgba(185, 196, 218, 0.16);
	--hx-text: #f5f8ff;
	--hx-muted: #b9c4da;
	--hx-accent: #577bff;
	--hx-accent-2: #9366f5;
	--hx-grad: linear-gradient(to right, #577bff, #9366f5);
	--hx-head: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hx-body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hx-radius: 16px;
	--hx-max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hx-bg) radial-gradient(1200px 600px at 80% -10%, rgba(147, 102, 245, 0.18), transparent 60%) no-repeat;
	color: var(--hx-text);
	font-family: var(--hx-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: #9fb4ff; }
a:hover { color: #c3d0ff; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--hx-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--hx-text); }
h1 { font-size: clamp(36px, 5.2vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }

.hx-wrap { max-width: var(--hx-max); margin: 0 auto; padding: 0 24px; }
.hx-narrow { max-width: 780px; }
.hx-center { text-align: center; }

/* Header */
.hx-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 14, 27, 0.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hx-line); }
.hx-header .hx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.hx-brand { display: flex; align-items: center; gap: 10px; color: var(--hx-text); text-decoration: none; font-family: var(--hx-head); font-weight: 800; letter-spacing: 0.02em; font-size: 15px; text-transform: uppercase; }
.hx-brand img { height: 34px; width: auto; }
.hx-brand span b { background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-nav { display: flex; align-items: center; gap: 28px; }
.hx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.hx-nav a { color: var(--hx-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.hx-nav a:hover, .hx-nav .current-menu-item > a { color: var(--hx-text); }
.hx-nav-cta { display: flex; align-items: center; gap: 14px; }
.hx-menu-toggle { display: none; background: none; border: 1px solid var(--hx-line); color: var(--hx-text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
	.hx-menu-toggle { display: block; }
	.hx-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--hx-bg); border-bottom: 1px solid var(--hx-line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 16px; }
	.hx-nav.is-open { display: flex; }
	.hx-nav ul { flex-direction: column; gap: 14px; }
	.hx-nav-cta { flex-direction: column; align-items: stretch; }
}

/* Buttons */
.hx-btn { display: inline-block; padding: 13px 22px; border-radius: 14px; border: 1px solid var(--hx-line); background: rgba(255, 255, 255, 0.04); color: var(--hx-text) !important; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hx-btn:hover { transform: translateY(-1px); }
.hx-btn-primary { border: 0; background: var(--hx-grad); color: #fff !important; box-shadow: 0 10px 30px rgba(87, 123, 255, 0.28); }
.hx-btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.hx-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

/* Sections */
.hx-hero { padding: 96px 0 72px; }
.hx-hero-sm { padding: 72px 0 36px; }
.hx-hero h1 { max-width: 900px; }
.hx-grad { background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { font-size: 19px; color: var(--hx-muted); max-width: 720px; }
.hx-small { font-size: 14px; color: var(--hx-muted); }
.hx-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600; color: var(--hx-muted); margin-bottom: 14px; }
.hx-section { padding: 72px 0; }
.hx-tight { padding: 28px 0; }
.hx-alt { background: rgba(17, 25, 45, 0.35); border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hx-cta { padding: 80px 0; background: linear-gradient(135deg, rgba(87, 123, 255, 0.18), rgba(147, 102, 245, 0.18)); border-top: 1px solid var(--hx-line); }
.hx-cta p { color: var(--hx-muted); }

.hx-grid { display: grid; gap: 18px; margin: 28px 0; }
.hx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hx-grid-2, .hx-grid-3, .hx-grid-4 { grid-template-columns: 1fr; } }
.hx-card { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 26px; }
.hx-card p:last-child { margin-bottom: 0; }
.hx-card p { color: var(--hx-muted); }
.hx-featured { border-color: rgba(87, 123, 255, 0.6); box-shadow: 0 0 0 1px rgba(87, 123, 255, 0.35) inset, 0 20px 50px rgba(87, 123, 255, 0.12); }
.hx-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #fff !important; background: var(--hx-grad); padding: 3px 10px; border-radius: 99px; }
.hx-price { font-family: var(--hx-head); font-weight: 800; font-size: 40px; color: var(--hx-text) !important; letter-spacing: -0.03em; margin: 6px 0 10px; }
.hx-price small { font-size: 16px; font-weight: 600; color: var(--hx-muted); letter-spacing: 0; }
.hx-list { list-style: none; padding: 0; margin: 0 0 18px; }
.hx-list li { position: relative; padding: 5px 0 5px 28px; color: var(--hx-text); }
.hx-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--hx-accent); border-bottom: 2px solid var(--hx-accent); transform: rotate(-45deg); }
.hx-cols-2 { columns: 2; column-gap: 32px; }
@media (max-width: 760px) { .hx-cols-2 { columns: 1; } }
.hx-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-family: var(--hx-head); font-weight: 700; color: var(--hx-muted); font-size: 18px; }
.hx-steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hx-steps li { counter-increment: s; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 24px; }
.hx-steps li::before { content: "0" counter(s); display: block; font-family: var(--hx-head); font-weight: 800; font-size: 28px; background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.hx-steps strong { display: block; font-size: 17px; margin-bottom: 6px; }
.hx-steps span { color: var(--hx-muted); }
.hx-faq { border: 1px solid var(--hx-line); border-radius: 14px; padding: 16px 20px; margin: 0 0 12px; background: var(--hx-surface); }
.hx-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; float: right; color: var(--hx-muted); font-size: 20px; line-height: 1; }
.hx-faq[open] summary::after { content: "–"; }
.hx-faq p { margin: 12px 0 0; color: var(--hx-muted); }
.hx-legal h2 { font-size: 22px; margin-top: 32px; }
.hx-legal p, .hx-legal li { color: var(--hx-muted); }
.hx-notice { border-left: 4px solid var(--hx-accent); background: rgba(87, 123, 255, 0.08); padding: 12px 16px; border-radius: 10px; }

/* Blog */
.hx-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; }
.hx-post-card { display: flex; flex-direction: column; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); overflow: hidden; text-decoration: none; color: var(--hx-text); }
.hx-post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hx-post-card .hx-post-body { padding: 22px; }
.hx-post-card h2 { font-size: 21px; margin-bottom: 10px; }
.hx-post-card p { color: var(--hx-muted); font-size: 15px; }
.hx-meta { font-size: 13px; color: var(--hx-muted); text-transform: uppercase; letter-spacing: .08em; }
.hx-article { padding: 64px 0 80px; }
.hx-article .hx-entry { font-size: 18px; }
.hx-entry h2 { font-size: 30px; margin-top: 44px; }
.hx-entry h3 { margin-top: 28px; }
.hx-entry ul, .hx-entry ol { padding-left: 22px; }
.hx-entry li { margin-bottom: 6px; }
.hx-entry table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.hx-entry figure.wp-block-table { margin: 24px 0; overflow-x: auto; }
.hx-entry th, .hx-entry td { border: 1px solid var(--hx-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.hx-entry th { background: rgba(87, 123, 255, 0.1); }
.haus-takeaways { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 22px 26px; margin-bottom: 32px; }
.haus-takeaways h2 { font-size: 20px !important; margin-top: 0 !important; }
.hx-pagination { display: flex; gap: 10px; justify-content: center; }
.hx-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--hx-line); border-radius: 10px; text-decoration: none; color: var(--hx-text); }
.hx-pagination .current { background: var(--hx-grad); border: 0; }

/* Footer */
.hx-footer { border-top: 1px solid var(--hx-line); background: rgba(17, 25, 45, 0.4); padding: 56px 0 28px; margin-top: 0; }
.hx-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .hx-footer-grid { grid-template-columns: 1fr; } }
.hx-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--hx-muted); font-family: var(--hx-body); font-weight: 600; }
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li { margin: 0 0 8px; }
.hx-footer a { color: var(--hx-text); text-decoration: none; }
.hx-footer a:hover { color: #9fb4ff; }
.hx-footer p { color: var(--hx-muted); font-size: 15px; }
.hx-footer-bottom { border-top: 1px solid var(--hx-line); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--hx-muted); }
.hx-footer-bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
.hx-footer-bottom a { color: var(--hx-muted); }

/* Default page content wrapper (pages without full-width sections) */
.hx-page-plain { padding: 64px 0; }
