/*
Theme Name: pro.perty.id
Theme URI: https://pro.perty.id/
Description: Branded child theme for pro.perty.id — the gear registry & community. Site-wide header/footer, homepage landing, neutral-gray palette with a red accent. The red "pro" marks pro membership.
Author: pro.perty.id
Author URI: https://pro.perty.id/
Template: twentytwentyfive
Version: 0.3.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: propertyid
*/

/* ---- Design tokens: neutral gray base, red accent ---- */
/* Tokens now live in propertyid-tracking/assets/css/tokens.css (the
   'propertyid-tokens' handle this stylesheet depends on) — one :root
   for the whole network. Do not re-declare them here. */

/* Brand identity red — lives ONLY on ".ID" (the second dot + the letters),
   per the brand sheet (v2): red is identity, never on "pro" or the first
   dot. Identity Red #C8102E is the mark's own constant (distinct from the
   UI accent --pid-accent for now; align the full palette to the sheet in a
   later pass). */
.pid-id{color:#C8102E;font-weight:800}

/* ---- Scoped reset for our branded markup ---- */
.pid-site *{box-sizing:border-box}
.pid-site{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--pid-ink);
  line-height:1.6;
}
.pid-wrap{max-width:var(--pid-maxw);margin:0 auto;padding:0 1.25rem}

/* ---- Header ---- */
.pid-header{background:#fff;border-bottom:1px solid var(--pid-line)}
.pid-header .pid-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:64px;flex-wrap:wrap}
.pid-logo{font-weight:800;letter-spacing:-.02em;font-size:1.6rem;color:var(--pid-ink);text-decoration:none;white-space:nowrap}
.pid-beta{font-size:.42em;font-weight:700;color:var(--pid-muted);text-transform:lowercase;letter-spacing:.04em;margin-left:.18em;line-height:0;vertical-align:super}
.pid-nav{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.pid-nav a{color:var(--pid-ink);text-decoration:none;font-size:.95rem;font-weight:500}
.pid-nav a:hover{color:var(--pid-accent)}
/* Members: the site header tucks behind a pull tab and slides down on click. */
.pid-hdr-tab{display:none}
.pid-hdr-tucked .pid-hdr-tab{display:flex;align-items:center;gap:.35rem;margin:0 max(1.25rem,calc(50vw - 22.75rem)) 0 auto;padding:.2rem .9rem .25rem;border:1px solid var(--pid-line);border-top:none;border-radius:0 0 10px 10px;background:#fff;font:inherit;font-weight:800;font-size:.85rem;letter-spacing:-.01em;color:var(--pid-ink);cursor:pointer;line-height:1.2}
.pid-hdr-tucked .pid-hdr-tab:hover{color:var(--pid-accent)}
.pid-hdr-tucked .pid-hdr-chev{display:inline-block;transition:transform .2s ease;color:var(--pid-muted);font-size:.9em}
.pid-hdr-tucked.pid-hdr-open .pid-hdr-chev{transform:rotate(180deg)}
.pid-hdr-tucked .pid-header{border-bottom:none}
.pid-hdr-tucked .pid-hdr-body{max-height:0;overflow:hidden;transition:max-height .25s ease;pointer-events:auto;background:#fff}
.pid-hdr-tucked.pid-hdr-open .pid-hdr-body{max-height:240px;border-bottom:1px solid var(--pid-line);box-shadow:0 10px 28px rgba(0,0,0,.14)}
/* Overlay: the tucked header floats above the page (fixed, transparent, click-through)
   so opening it never pushes content — it slides down over the masthead. */
.pid-hdr-tucked .pid-header{display:flex;flex-direction:column-reverse;position:fixed;top:0;left:0;right:0;z-index:120;background:transparent;pointer-events:none}
.pid-hdr-tucked .pid-hdr-tab{pointer-events:auto}
/* Pointer devices: hovering the tab (or the open header) slides it down; leaving slides it back. */
@media (hover: hover){
.pid-hdr-tucked .pid-header:hover .pid-hdr-body{max-height:240px;border-bottom:1px solid var(--pid-line);box-shadow:0 10px 28px rgba(0,0,0,.14)}
.pid-hdr-tucked .pid-header:hover .pid-hdr-chev{transform:rotate(180deg)}
.pid-hdr-tucked .pid-hdr-tab{cursor:default}
}

/* ---- Buttons ---- */
.pid-btn{display:inline-block;background:var(--pid-accent);color:#fff;text-decoration:none;font-weight:600;
  padding:.6rem 1.15rem;border-radius:10px;border:1px solid var(--pid-accent);cursor:pointer;font-size:1rem;line-height:1.2}
.pid-btn:hover{background:var(--pid-accent-ink);border-color:var(--pid-accent-ink);color:#fff}
.pid-btn--ghost{background:#fff;color:var(--pid-ink);border-color:var(--pid-line)}
.pid-btn--ghost:hover{background:#fff;border-color:var(--pid-accent);color:var(--pid-accent)}
.pid-btn--sm{padding:.45rem .8rem;font-size:.9rem}

/* ---- Hero (neutral gray) ---- */
.pid-hero{background:
   radial-gradient(1100px 400px at 50% -10%, #e9e9ec 0%, rgba(233,233,236,0) 70%),
   var(--pid-bg);
  padding:4.5rem 0 3.5rem;text-align:center}
.pid-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--pid-accent-ink);background:var(--pid-accent-soft);padding:.3rem .7rem;border-radius:999px;margin-bottom:1rem}
.pid-hero h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.1;letter-spacing:-.03em;margin:.25rem 0 1rem;font-weight:800}
.pid-hero p.lede{font-size:clamp(1.05rem,2.2vw,1.3rem);color:var(--pid-muted);max-width:40rem;margin:0 auto 1.75rem}
.pid-cta{display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap;margin-bottom:2.25rem}

/* ---- Lookup box ---- */
.pid-lookup{max-width:30rem;margin:0 auto}
.pid-lookup label{display:block;font-size:.85rem;color:var(--pid-muted);margin-bottom:.4rem;font-weight:600}
.pid-lookup .pid-lookup-row{display:flex;gap:.5rem}
.pid-lookup input{flex:1;font:inherit;padding:.65rem .8rem;border:1px solid var(--pid-line);border-radius:10px;
  background:#fff;letter-spacing:.06em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.pid-lookup input:focus{outline:2px solid var(--pid-accent);outline-offset:1px;border-color:var(--pid-accent)}

/* ---- Sections ---- */
.pid-section{padding:3.5rem 0;background:var(--pid-bg)}
.pid-section--alt{background:#fff;border-top:1px solid var(--pid-line);border-bottom:1px solid var(--pid-line)}
.pid-section h2{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.02em;text-align:center;margin:0 0 .5rem;font-weight:800}
.pid-section .pid-sub{text-align:center;color:var(--pid-muted);max-width:38rem;margin:0 auto 2.5rem;font-size:1.05rem}

/* ---- Steps ---- */
.pid-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
@media (max-width:760px){.pid-steps{grid-template-columns:1fr}}
.pid-step{background:var(--pid-card);border:1px solid var(--pid-line);border-radius:var(--pid-radius);padding:1.75rem}
.pid-step .pid-num{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:999px;
  background:var(--pid-accent-soft);color:var(--pid-accent);font-weight:800;margin-bottom:.9rem}
.pid-step h3{margin:.25rem 0 .5rem;font-size:1.15rem;font-weight:700}
.pid-step p{margin:0;color:var(--pid-muted)}

/* ---- Community teaser (neutral dark gray) ---- */
.pid-community{background:linear-gradient(135deg,#27272a,#18181b);color:#fff;border-radius:var(--pid-radius);
  padding:2.75rem 2rem;text-align:center}
.pid-community h2{color:#fff}
.pid-community p{color:#d4d4d8;max-width:40rem;margin:0 auto 1.5rem}
.pid-community .pid-btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.pid-community .pid-btn--ghost:hover{border-color:#fff;color:#fff}
.pid-boards{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:1.75rem}
.pid-boards span{font-size:.82rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);
  padding:.35rem .7rem;border-radius:999px;color:#e4e4e7}

/* ---- Footer ---- */
.pid-footer{background:#fff;border-top:1px solid var(--pid-line);padding:2rem 0}
.pid-footer .pid-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.pid-footer .pid-muted{color:var(--pid-muted);font-size:.9rem}
.pid-footer nav{display:flex;gap:1.1rem;flex-wrap:wrap}
.pid-footer nav a{color:var(--pid-muted);text-decoration:none;font-size:.9rem}
.pid-footer nav a:hover{color:var(--pid-accent)}

/* 0.3.0 — 404 / invite-only additions */
.pid-code-inline{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;color:#dc2626}
.pid-invite-note{display:block;margin-top:.75rem;font-size:.95rem}
