/*
Theme Name: HackProz
Theme URI: https://hackproz.com
Author: HackProz
Description: The HackProz site design: header, menu, phone menu, member strip and footer around the HackProz Academy plugin. Mobile first. Install the HackProz Academy plugin first; everything is edited in WordPress admin → HackProz and Appearance → Menus.
Version: 2.0.2
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: hackproz
*/
/* ================= tokens ================= */
:root {
	--hpt-navy: #0b1424; --hpt-ink: #0f1e36; --hpt-tx: #475467; --hpt-mu: #667085; --hpt-ln: #e4eaf2; --hpt-soft: #f5f8fc;
	--hpt-amber: #f5a524; --hpt-amber-ink: #241500; --hpt-blue: #0f6fde; --hpt-wa: #1f9d55; --hpt-on: #e6ecf5; --hpt-on-mu: #93a3bd;
	--hpt-head: "Sora", system-ui, sans-serif; --hpt-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hpt-gl: max(16px, env(safe-area-inset-left, 0px)); --hpt-gr: max(16px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--hpt-tx); font: 400 15.5px/1.6 var(--hpt-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--hpt-blue); }
h1, h2, h3, h4 { font-family: var(--hpt-head); color: var(--hpt-ink); line-height: 1.2; letter-spacing: -.02em; }
.hpt-skip { position: absolute; left: -9999px; }
.hpt-skip:focus { left: 12px; top: 12px; z-index: 100000; padding: 10px 14px; background: #fff; border-radius: 10px; }
.hpt-wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--hpt-gl); padding-right: var(--hpt-gr); }
:where(.hpt-i, .hpa-i) { width: 20px; height: 20px; flex: none; }

/* ================= buttons ================= */
.hpt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid transparent; font: 700 14px var(--hpt-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.hpt-btn .hpa-i { width: 16px; height: 16px; }
.hpt-btn:hover { transform: translateY(-1px); }
.hpt-btn--amber { background: var(--hpt-amber); color: var(--hpt-amber-ink); box-shadow: 0 8px 18px -10px rgba(245,165,36,.9); }
.hpt-btn--line { background: #fff; color: var(--hpt-ink); border-color: var(--hpt-ln); }
.hpt-btn--wa { background: var(--hpt-wa); color: #fff; }
.hpt-btn--block { width: 100%; min-height: 48px; }
.hpt-ibtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--hpt-ink); cursor: pointer; }
.hpt-ibtn .hpa-i { width: 22px; height: 22px; }
.hpt-wa { color: var(--hpt-wa); }

/* ================= header ================= */
.hpt-hdr { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--hpt-ln); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .hpt-hdr { top: 46px; }
@media (min-width: 783px) { .admin-bar .hpt-hdr { top: 32px; } }
.hpt-hdr-in { display: flex; align-items: center; gap: 6px; height: 58px; max-width: 1160px; margin: 0 auto; padding: 0 var(--hpt-gr) 0 max(8px, env(safe-area-inset-left, 0px)); }
.hpt-logo, .custom-logo-link { display: flex; align-items: center; margin-right: auto; }
.hpt-logo img, .custom-logo { height: 38px; width: auto; display: block; }
.hpt-nav { display: none; }
.hpt-right { display: flex; align-items: center; gap: 6px; }
.hpt-desk { display: none !important; }
.hpt-user { display: inline-flex; align-items: center; gap: 8px; padding: 3px; border-radius: 99px; text-decoration: none; color: var(--hpt-ink); font-weight: 700; font-size: 14px; }
.hpt-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hpt-navy); color: var(--hpt-amber); font: 800 14px var(--hpt-head); }
.hpt-menu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
	.hpt-hdr-in { height: 68px; gap: 10px; padding: 0 var(--hpt-gr) 0 var(--hpt-gl); }
	.hpt-menu-btn, .hpt-mob { display: none !important; }
	.hpt-desk { display: inline-flex !important; }
	.hpt-logo, .custom-logo-link { margin-right: 18px; }
	.hpt-logo img, .custom-logo { height: 44px; }
	.hpt-nav { display: block; margin-right: auto; }
	.hpt-nav .hpt-menu { display: flex; gap: 2px; }
	.hpt-nav a { display: block; padding: 8px 13px; border-radius: 10px; color: var(--hpt-tx); font-weight: 600; font-size: 14.5px; text-decoration: none; }
	.hpt-nav a:hover, .hpt-nav a[aria-current="page"] { background: var(--hpt-soft); color: var(--hpt-ink); }
	.hpt-user { padding: 3px 14px 3px 3px; border: 1px solid var(--hpt-ln); }
}

/* ================= phone menu ================= */
.hpt-veil { position: fixed; inset: 0; z-index: 9990; background: rgba(5,10,20,.55); }
.hpt-veil[hidden], .hpt-drawer[hidden] { display: none; }
.hpt-drawer { position: fixed; z-index: 9991; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 6px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--hpt-navy); color: var(--hpt-on); overflow-y: auto; animation: hpt-in .25s both; }
@keyframes hpt-in { from { transform: translateX(-100%); } }
.hpt-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.hpt-drawer-top .hpt-ibtn { color: #fff; }
.hpt-logo--inv img { height: 34px; filter: invert(1); } /* light logo on navy (drawer, footer) */
.hpa-footer .hpt-logo--inv img { height: 40px; }
.hpt-drawer-user { margin: 4px 0 6px; font-size: 13px; color: var(--hpt-on-mu); }
.hpt-drawer a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; color: var(--hpt-on); font-weight: 600; text-decoration: none; }
.hpt-drawer a:hover, .hpt-drawer a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
.hpt-drawer .hpa-i { width: 18px; height: 18px; color: var(--hpt-amber); }
.hpt-menu--extra { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 6px; }
.hpt-drawer-foot { margin-top: auto; display: grid; gap: 8px; }
.hpt-drawer-foot .hpt-btn--line { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.14); }
html.hpt-noscroll { overflow: hidden; }

/* ================= pages ================= */
.hpt-main { min-height: 50vh; }
.hpt-page { padding-top: 28px; padding-bottom: 48px; }
.hpt-title { font-size: 28px; margin: 0 0 18px; }
.hpt-prose { max-width: 760px; }
.hpt-prose p, .hpt-prose li { font-size: 16px; }
.hpt-prose h2 { font-size: 21px; margin: 28px 0 10px; }
.hpt-meta { color: var(--hpt-mu); font-size: 13px; margin: 0 0 6px; }
.hpt-hero-img { width: 100%; border-radius: 18px; margin: 0 0 18px; }
.hpt-posts { display: grid; gap: 14px; }
.hpt-post { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--hpt-ln); border-radius: 18px; color: var(--hpt-tx); text-decoration: none; }
.hpt-post img { width: 100%; border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; }
.hpt-post b { display: block; color: var(--hpt-ink); font: 700 17px/1.3 var(--hpt-head); margin: 2px 0 4px; }
.hpt-post small { color: var(--hpt-mu); }
@media (min-width: 900px) { .hpt-posts { grid-template-columns: repeat(3, 1fr); } .hpt-title { font-size: 36px; } .hpt-page { padding-top: 44px; } }
.hpt-404 { text-align: center; padding-top: 70px; padding-bottom: 90px; }
.hpt-404-n { display: block; font: 800 72px/1 var(--hpt-head); color: var(--hpt-amber); }
.hpt-404-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ================= WooCommerce pages (checkout, account, order) ================= */
.woocommerce-checkout .hpt-page, .woocommerce-account .hpt-page, .woocommerce-order-received .hpt-page { max-width: 760px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-page form .input-text { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--hpt-ln); border-radius: 14px; background: #fff; font: 16px var(--hpt-body); color: var(--hpt-ink); }
.woocommerce form .form-row input.input-text:focus { outline: none; border-color: var(--hpt-amber); box-shadow: 0 0 0 4px rgba(245,165,36,.18); }
.woocommerce form .form-row label { font-weight: 600; font-size: 13.5px; color: var(--hpt-ink); }
.woocommerce table.shop_table { border: 1px solid var(--hpt-ln); border-radius: 16px; border-collapse: separate; overflow: hidden; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; border-top: 1px solid var(--hpt-ln); text-align: left; }
.woocommerce table.shop_table tr:first-child th, .woocommerce table.shop_table thead th { border-top: 0; }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.woocommerce #payment ul.payment_methods li { padding: 12px; border: 1.5px solid var(--hpt-ln); border-radius: 14px; background: #fff; }
.woocommerce #payment ul.payment_methods li:has(input:checked) { border-color: var(--hpt-amber); background: #fffaf0; }
.woocommerce #payment ul.payment_methods li > label { font-weight: 700; color: var(--hpt-ink); }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--hpt-navy); color: #fff; font: 700 14px var(--hpt-body); text-decoration: none; cursor: pointer; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--hpt-soft); border: 1px solid var(--hpt-ln); }
.woocommerce-error { background: #fdecea; border-color: #f7c6c0; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hpt-ln); color: var(--hpt-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--hpt-navy); color: #fff; border-color: var(--hpt-navy); }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.woocommerce-order-overview li { padding: 10px 12px; border-radius: 12px; background: var(--hpt-soft); font-size: 13px; }
.woocommerce-order-overview li strong { display: block; color: var(--hpt-ink); }
.col2-set, .u-columns { display: grid; gap: 18px; }
@media (min-width: 900px) { .u-columns { grid-template-columns: 1fr 1fr; } }

/* plugin app bar at the bottom on phones: keep content clear of it */
@media (max-width: 899px) { body.hpa-has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }
/* HackProz pages are already edge to edge in this theme: no 100vw break-out (it shifts by the scrollbar width). */
.hpt-main .hpa-bleed { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
