/*
Theme Name: SHP Welding
Author: Real Demand Global Marketers Incorporated
Description: Custom theme for SHP Welding, a consumer welding and fabrication business. Includes a built-in waiting screen for visitors while the site is being built, and a Games Arcade page template with four welding and block-building mini games.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
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: weldworks
*/

:root {
  --bg: #101215;
  --steel: #171a1f;
  --plate: #20242b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #ece7dd;
  --muted: #a9a79f;
  --hot: #ff8a1f;
  --hot-2: #ffd27a;
  --on-hot: #15100a;
  --radius: 6px;
  --wrap: 1140px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { max-width: 100%; height: auto; }
a { color: var(--hot-2); text-underline-offset: 3px; }
a:hover { color: var(--hot); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--hot-2); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--hot); color: var(--on-hot); padding: 10px 16px; border-radius: var(--radius); }
.kicker { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--hot); margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font-family: var(--head); font-size: 19px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid var(--hot); background: var(--hot); color: var(--on-hot);
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--hot-2); border-color: var(--hot-2); color: var(--on-hot); box-shadow: 0 0 28px rgba(255, 138, 31, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--hot-2); border-color: var(--hot-2); box-shadow: none; }
.btn-sm { font-size: 16px; padding: 9px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 18, 21, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { margin-right: auto; }
.brand img { display: block; max-height: 46px; width: auto; }
.brand-name { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--head); font-size: 25px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #6d727a, var(--hot) 70%, #fff); box-shadow: 8px 0 16px rgba(255, 138, 31, .7); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-family: var(--head); font-size: 18px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--hot); }
.site-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; flex-direction: column; background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.nav-toggle { display: none; font: inherit; font-family: var(--head); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 14px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--steel); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul ul { display: flex; position: static; border: 0; background: transparent; padding-left: 14px; }
  .bar .btn-sm { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--steel); }
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 380px at 85% 100%, rgba(255, 138, 31, .2), transparent 70%), linear-gradient(180deg, var(--steel), var(--bg)); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--hot); }
.seam { height: 6px; border-radius: 3px; margin: 30px 0; max-width: 340px; background: linear-gradient(90deg, #5d626a, #8b9098 55%, var(--hot) 88%, #fff); box-shadow: 150px 0 40px -8px rgba(255, 138, 31, .55); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 34px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; border-top: 3px solid var(--hot); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.steps { counter-reset: step; }
.steps .card { border-top-color: var(--line-strong); }
.steps .card::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--head); font-size: 44px; font-weight: 700; line-height: 1; color: var(--hot); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-list li { border-left: 3px solid var(--hot); padding: 2px 0 2px 16px; }
.contact-list span { display: block; font-family: var(--head); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-list b, .contact-list a { font-size: 20px; font-weight: 500; color: var(--text); text-decoration: none; white-space: pre-line; }
.contact-list a:hover { color: var(--hot); }

/* ---------- Content ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: var(--steel); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 5.5vw, 64px); margin: 0; }
.content { padding: clamp(36px, 6vw, 72px) 0; }
.entry { max-width: 760px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hot); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.entry-content th, .entry-content td { border: 1px solid var(--line-strong); padding: 9px 12px; text-align: left; }
.entry-content pre { background: var(--plate); padding: 16px; border-radius: var(--radius); overflow: auto; }
.entry-content img { border-radius: var(--radius); }
.alignwide { width: min(var(--wrap), 100vw - 40px); max-width: none; }
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sticky, .bypostauthor, .gallery-caption { display: block; }
.post-list { display: grid; gap: 18px; }
.post-list .card h2 { font-size: 30px; margin-bottom: 6px; }
.post-list .card h2 a { color: var(--text); text-decoration: none; }
.post-list .card h2 a:hover { color: var(--hot); }
.meta { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.pagination .current { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select { font: inherit; color: var(--text); background: var(--plate); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; max-width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 34px; color: var(--muted); font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--hot); }
.site-footer .legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Waiting screen ---------- */
body.cs {
  --hot: #c8892b; --hot-2: #e3b565; --on-hot: #14110b;
  min-height: 100vh; display: grid; place-items: center; padding: 48px 0;
  background: radial-gradient(900px 420px at 50% 112%, rgba(200, 137, 43, .13), transparent 70%), linear-gradient(180deg, #15171b, #0f1114);
}
.cs-main { width: min(880px, calc(100% - 44px)); text-align: center; }
.cs-main .brand { margin: 0 0 34px; display: flex; justify-content: center; }
.cs .brand-mark { background: linear-gradient(90deg, #6d727a, var(--hot)); box-shadow: none; }
.cs-main h1 { font-size: clamp(38px, 6.6vw, 72px); font-weight: 500; letter-spacing: .02em; max-width: 16ch; margin-inline: auto; }
.cs-main .lede { margin-inline: auto; font-size: 19px; }
.cs-main .actions { justify-content: center; }
.cs .btn:hover { box-shadow: none; }
.cs-weld { position: relative; height: 4px; margin: 30px auto; max-width: 360px; border-radius: 2px; background: #07080a; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.cs-bead { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: linear-gradient(90deg, #6d727a, #a3a8b0); animation: cs-weld 8s linear infinite; }
.cs-bead::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, var(--hot-2) 45%, rgba(200, 137, 43, 0) 72%); box-shadow: 0 0 22px 6px rgba(200, 137, 43, .5); animation: cs-arc 8s linear infinite; }
@keyframes cs-weld { 0% { width: 0; } 78%, 100% { width: 100%; } }
@keyframes cs-arc { 0%, 77% { opacity: 1; } 80%, 100% { opacity: 0; } }
.cs-status { display: inline-flex; align-items: center; gap: 10px; }
.cs-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }
.cs-points { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-points li { padding: 22px 14px; border-left: 1px solid var(--line); }
.cs-points li:first-child { border-left: 0; }
.cs-points b { display: block; font-family: var(--head); font-size: 30px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; color: var(--text); }
.cs-points span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-services { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-family: var(--head); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-services li + li::before { content: "/"; margin: 0 12px; color: var(--hot); }
.cs-meta { margin-top: 30px; color: var(--muted); font-size: 15px; }
.cs-meta p { margin: 0 0 4px; }
@media (max-width: 620px) {
  .cs-points { grid-template-columns: 1fr 1fr; }
  .cs-points li:nth-child(odd) { border-left: 0; }
  .cs-points li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Games arcade ---------- */
.wg-arcade { display: grid; gap: 22px; grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.wg-picks { display: grid; gap: 10px; }
.wg-pick { font: inherit; text-align: left; cursor: pointer; color: var(--text); background: var(--plate); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; transition: border-color .2s, background .2s; }
.wg-pick strong { display: block; font-family: var(--head); font-size: 23px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.wg-pick span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wg-pick:hover { border-color: var(--line-strong); border-left-color: var(--hot); }
.wg-pick[aria-pressed="true"] { border-color: var(--hot); background: rgba(255, 138, 31, .09); }
.wg-pick[aria-pressed="true"] span { color: var(--hot); }
.wg-hud { display: flex; gap: 26px; font-family: var(--head); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.wg-hud b { color: var(--hot-2); font-size: 26px; font-weight: 600; margin-left: 6px; font-variant-numeric: tabular-nums; }
.wg-screen { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #15181d; }
.wg-screen canvas { display: block; width: 100%; aspect-ratio: 3 / 2; touch-action: none; cursor: crosshair; }
.wg-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; text-align: center; background: rgba(16, 18, 21, .84); }
.wg-overlay[hidden] { display: none; }
.wg-overlay h2 { margin: 0 0 6px; }
.wg-overlay p { max-width: 46ch; color: var(--muted); margin-bottom: 18px; }
.wg-help { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
@media (max-width: 860px) {
  .wg-arcade { grid-template-columns: 1fr; }
  .wg-picks { grid-template-columns: 1fr 1fr; }
  .wg-pick strong { font-size: 19px; }
}

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