/*
Theme Name: Qmerity
Theme URI: https://qmeritydigital.com
Author: Qmerity
Description: M3 Ultra allocation — buy sealed units or rent the cluster. Zero-JS, system fonts, single stylesheet.
Version: 2.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: qmerity
*/

:root {
  --ink: #0e1116;
  --ink-2: #171c23;
  --ink-soft: #3d454e;
  --paper: #f6f6f3;
  --card: #ffffff;
  --line: #e4e1da;
  --line-dark: #262d36;
  --accent: #e8590c;
  --accent-deep: #c74a08;
  --sealed: #2b6cb0;
  --ok: #2f9e44;
  --pend: #d9910d;
  --sold: #8a919a;
  --hero-ink: #f2f3f1;
  --hero-dim: #a9b1b9;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: var(--hero-ink); border-bottom: 1px solid var(--line-dark); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  font-weight: 800; letter-spacing: .14em; font-size: 1.05rem;
  text-decoration: none; color: var(--hero-ink);
}
.brand .tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-size: .92rem; color: var(--hero-dim); }
.site-nav a:hover { color: var(--hero-ink); }
.site-nav .btn { color: #fff; }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-dark);
  color: var(--hero-ink);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px var(--hero-dim); }
.btn-small { padding: 8px 16px; font-size: .85rem; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--hero-ink);
  padding: 64px 0 72px;
}
.ticker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--accent); border: 1px solid var(--line-dark);
  display: inline-block; padding: 7px 14px; border-radius: 7px;
  background: rgba(0,0,0,.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.02em; font-weight: 800;
  margin: 22px 0 18px; max-width: 21ch;
}
.hero .sub { max-width: 58ch; color: var(--hero-dim); font-size: 1.06rem; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-specline {
  margin-top: 36px; font-family: var(--mono); font-size: .8rem;
  color: var(--hero-dim); display: flex; gap: 26px; flex-wrap: wrap;
}
.hero-specline b { color: var(--hero-ink); font-weight: 700; }

/* seller chip (hero) */
.seller-chip {
  margin-top: 38px; display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 8px 20px 8px 8px; background: rgba(0,0,0,.25);
}
.seller-chip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.seller-chip b { font-size: .92rem; display: block; line-height: 1.25; }
.seller-chip a { font-size: .8rem; color: var(--hero-dim); text-decoration: none; border-bottom: 1px solid var(--accent); }
.seller-chip a:hover { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.kicker-num {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 10px;
}
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.section .lede { color: var(--ink-soft); margin: 10px 0 36px; max-width: 60ch; }

/* ---------- cards (sale) ---------- */
.grid-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cards.two { max-width: 780px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,17,22,.10); }
.ph {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: radial-gradient(120% 110% at 20% 0%, #2b333c 0%, #171c22 55%, #0e1116 100%);
  color: #55616f; font-weight: 800; font-size: 2.1rem; letter-spacing: .1em;
  font-family: var(--mono);
}
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.card .sub { color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
.specs { list-style: none; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.specs li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.specs li:last-child { border-bottom: 0; }
.condition { font-size: .82rem; color: var(--ink-soft); }
.condition b { color: var(--ink); }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }

/* badges */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 5px 10px; border-radius: 6px;
}
.badge-sealed { background: var(--sealed); }
.badge-available { background: var(--ok); }
.badge-pending { background: var(--pend); }
.badge-sold, .badge-rented { background: var(--sold); }
.is-sold .ph { filter: grayscale(1) brightness(.85); }
.is-sold h3, .is-sold .price { color: var(--sold); }
.is-sold .price { text-decoration: line-through; }
.soldout { font-weight: 700; color: var(--sold); font-size: .95rem; }

/* ---------- rent band ---------- */
.rent { background: var(--ink); color: var(--hero-ink); padding: 76px 0; }
.rent .kicker-num { color: var(--accent); }
.rent h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.rent .lede { color: var(--hero-dim); margin: 10px 0 32px; max-width: 62ch; }
.rent-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 30px; }
.rent-stat { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 16px 18px; background: rgba(0,0,0,.22); }
.rent-stat strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--hero-ink); }
.rent-stat span { font-size: .8rem; font-family: var(--mono); color: var(--hero-dim); }
.grid-nodes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 30px; }
.node {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--ink-2); padding: 18px 20px; position: relative;
}
.node .badge { position: static; display: inline-block; margin-bottom: 10px; }
.node h3 { font-size: 1rem; font-weight: 800; }
.node .specs { color: var(--hero-dim); }
.node .specs li { border-color: var(--line-dark); }
.node .cond { font-size: .78rem; color: var(--hero-dim); margin-top: 8px; font-family: var(--mono); }
.rent .fine { margin-top: 16px; font-size: .82rem; color: var(--hero-dim); max-width: 70ch; }
.rent-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact { background: var(--paper); padding: 84px 0; }
.contact .panel {
  background: var(--ink); color: var(--hero-ink);
  border-radius: 20px; padding: clamp(32px, 5vw, 56px);
}
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; max-width: 24ch; }
.contact p { color: var(--hero-dim); margin: 14px 0 30px; max-width: 54ch; }
.contact-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.contact .alt { margin-top: 22px; font-family: var(--mono); font-size: .85rem; color: var(--hero-dim); }
.contact .alt a { color: var(--hero-ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.contact .alt a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { background: #0a0d10; color: #79828c; font-size: .82rem; padding: 26px 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: #a8b0b9; text-decoration: none; }
.site-foot a:hover { color: #fff; }

/* fallback content (index.php) */
.plain { padding: 64px 0; }
.plain h1 { margin-bottom: 16px; }
