/*
Theme Name: Steagus LLC
Theme URI: https://steagus.com
Author: Steagus, LLC
Description: Original theme for steagus.com. Replicates the locked Steagus visual system (Steagus Palette System v1.0) without any dependency on Lore or its knowledge-base/FAQ/forum functionality.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: steagus-llc
*/

/* ============================================================
   DESIGN TOKENS
   Palette source: _docs/steagus-palette-system-v1.0.md — steagus.com section
   Fonts: Merriweather (headings) / Open Sans (body)
   ============================================================ */
:root{
  --surface: #FAFAF7;
  --surface-container: #F0EFEA;
  --text: #1A1A18;
  --text-muted: #6B6862;
  --accent: #0C0C0C;
  --accent-secondary: #8C6F4E;
  --border: #D6D4CC;
  --border-vivid: #8A8884;
  --system-voice: #3b6d11;
  --system-voice-bg: #eaf3de;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a{ color: var(--accent-secondary); }

h1, h2, h3, h4, h5, h6{
  font-family: "Merriweather", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--text);
}

img{ max-width: 100%; height: auto; }

/* ============================================================
   CROSS-SITE HUB BAR — same on every Steagus property.
   Source of truth: _shared/brand/hub.css
   ============================================================ */
:root{
  --acc-community:  #6E9DC9;
  --acc-publishing: #5E8C66;
  --acc-games:      #D8752E;
  --acc-oethus:     #C2792F;
  --hub-bg:        #141416;
  --hub-anchor:    #F0EDE6;
  --hub-idle:      #8f8f95;
  --hub-hover-bg:  #232327;
  --hub-active:    #ffffff;
  --hub-height:    40px;
}

.hub{
  display:flex;
  align-items:center;
  height:var(--hub-height);
  padding:0 16px;
  background:var(--hub-bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:12.5px;
  user-select:none;
  position:sticky;
  top:0;
  z-index:1000;
}
.hub-brand{
  margin-right:auto;
  color:var(--hub-anchor);
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-decoration:none;
}
.hub-brand:hover{ color:#fff; }
.hub-links{
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
}
.hub-links::-webkit-scrollbar{ display:none; }
.hub-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 12px;
  border-radius:6px;
  color:var(--hub-idle);
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  position:relative;
  transition:background .15s ease, color .15s ease;
}
.hub-link:hover{ background:var(--hub-hover-bg); color:var(--hub-active); }
.hub-dot{ width:6px; height:6px; border-radius:50%; flex:0 0 auto; }
.l-community  .hub-dot{ background:var(--acc-community); }
.l-publishing .hub-dot{ background:var(--acc-publishing); }
.l-games      .hub-dot{ background:var(--acc-games); }
.l-oethus     .hub-dot{ background:var(--acc-oethus); }
.hub-link.active{ color:var(--hub-active); }
.hub-link.active::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:2px;
  height:2px;
  border-radius:2px;
}
.l-community.active::after  { background:var(--acc-community); }
.l-publishing.active::after { background:var(--acc-publishing); }
.l-games.active::after      { background:var(--acc-games); }
.l-oethus.active::after     { background:var(--acc-oethus); }
.hub-link:focus-visible,
.hub-brand:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
  border-radius:6px;
}
@media (prefers-reduced-motion:reduce){ .hub-link{ transition:none; } }

/* ============================================================
   SITE HEADER — logo + primary nav. A standalone full-width bar,
   deliberately separate from the inset .page-shell card below it.
   The space between them is --header-gap (Customizer: Appearance >
   Customize > Steagus Layout > Header gap).
   ============================================================ */
:root{
  --header-gap: 48px; /* overridden by the Customizer setting */
}
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: var(--surface);
}
.site-header .brand{
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.site-header .custom-logo-link img{
  display: block;
  width: 48px;
  height: 48px;
}
.site-header .brand-text .brand-name{
  font-weight: 700;
  font-size: 16px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  display: block;
}
.site-header .brand-text .brand-tagline{
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  display: block;
}

.primary-nav ul{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a{
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.primary-nav a:hover{ border-color: var(--border); }
.primary-nav .current-menu-item > a{ border-color: var(--text); }

/* ============================================================
   PAGE SHELL — the rounded, textured "paper lifted off the page"
   card every page's content sits inside, floating separate from
   the header above it. margin-top is the adjustable header gap.
   Replaces Lore's .core__columns-bg/.main__inner.
   ============================================================ */
.page-shell{
  max-width: 1180px;
  margin: var(--header-gap) auto 40px;
  padding: 60px 20px 60px;
  border-radius: 15px;
  overflow: hidden;
  background-image: url('https://steagus.com/wp-content/uploads/2025/03/kiwihug-zGZYQQVmXw0-unsplash-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  border: 1px solid gray;
}

/* ============================================================
   CONTENT — hero, division grid, prose, cta, footer
   ============================================================ */
main{
  max-width: 720px;
  margin: 0 auto;
}

section{ margin-bottom: 56px; }
section:last-of-type{ margin-bottom: 32px; }

.hero{
  text-align: center;
  margin-bottom: 64px;
}
.hero h1{
  font-size: 34px;
  margin: 0 0 14px;
}
.hero p{
  font-size: 16px;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto;
}

.section-title{
  font-size: 22px;
  margin: 0 0 20px;
}

/* Flexbox, not grid, on purpose — grid ignores the per-block width/grow
   controls WordPress gives you on children of a "Row" layout Group.
   Flex is what makes "3 cards side by side" vs "1 card full-width" vs
   "one narrow custom-width card" all work from the block sidebar. */
.division-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.division-card{
  display: block;
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
}
.division-card:hover{ border-color: var(--border-vivid); }
.division-card h3{
  font-size: 18px;
  margin: 0 0 8px;
}
.division-card p{
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.division-card .cta{
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-secondary);
}

.prose p{
  font-size: 15.5px;
  margin: 0 0 16px;
}

.inline-link{
  color: var(--accent-secondary);
  text-decoration: underline;
}
.inline-link:hover{ opacity: .8; }

.contact-cta{
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.contact-cta:hover{ opacity: .9; }

/* Reserved exclusively for system-originated confirmations — see
   _docs/steagus-palette-system-v1.0.md. */
.system-voice-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--system-voice-bg);
  border: 1px solid var(--system-voice);
  color: var(--system-voice);
  font-size: 13.5px;
  font-weight: 600;
}

/* text-emphasis helpers, ported from the old Additional CSS */
.sm_emphasis{
  font-weight: bold;
  color: var(--accent-secondary);
  font-variant: small-caps;
}
.sm_emphasis_div{
  background-color: var(--surface-container);
  border: solid 1px var(--accent-secondary);
  padding: 15px;
  border-radius: 5px;
  margin: 0 0 10px;
  color: var(--text);
}
.sm_emphasis_div_plain{
  border: solid 1px var(--text);
  padding: 15px;
  border-radius: 5px;
}
.sm_section_break{ margin: 15px 0; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer{
  text-align: center;
  padding: 32px 20px 40px;
}
.site-footer .copyright{
  font-size: 11px;
  color: var(--text-muted);
  margin: 16px 0 0;
}

/* ============================================================
   CROSS-SITE SOCIAL ICONS
   Source of truth: _shared/brand/social.css
   ============================================================ */
.social-icons{
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-icon{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text-muted);
}
.social-icon:hover{ color: var(--text); }
.social-icon .badge{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.social-icon .badge svg{ width: 20px; height: 20px; }
.social-icon .badge.mastodon{ background: #7906CB; }
.social-icon .badge.bluesky{ background: #1185FE; }
.social-icon .badge.imgur{ background: #1BB76E; }
.social-icon:hover .badge{ animation: social-pulse 1.4s ease-in-out infinite; }
.social-icon:hover .badge svg{ animation: social-shake 0.4s ease-in-out infinite; }
.social-icon:hover .badge.mastodon{ box-shadow: 0 0 10px 3px #9207F5; }
.social-icon:hover .badge.bluesky{ box-shadow: 0 0 10px 3px #55D0FF; }
.social-icon:hover .badge.imgur{ box-shadow: 0 0 10px 3px #00ff66; }
.social-icon:hover .badge{ border-color: #000; }

@keyframes social-pulse{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes social-shake{
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-1px, 1px) rotate(-1deg); }
  40% { transform: translate(-1px, -1px) rotate(1deg); }
  60% { transform: translate(1px, 1px) rotate(0); }
  80% { transform: translate(1px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@media (prefers-reduced-motion: reduce){
  .social-icon:hover .badge{ animation: none; }
  .social-icon:hover .badge svg{ animation: none; }
}

/* ============================================================
   BASIC WORDPRESS / GUTENBERG BLOCK DEFAULTS
   (No KBA/FAQ/forum/widget-archive styling — none of that exists
   in this theme.)
   ============================================================ */
.wp-block-separator{ border-color: var(--border); }
.wp-block-quote{ border-left: 3px solid var(--border); padding-left: 16px; }
.wp-block-quote cite{ color: var(--text-muted); }
.wp-block-table td, .wp-block-table th{ border-color: var(--border); }

/* Fluent Forms and any other plugin-rendered form: neutral fallback,
   individual forms are styled per-form via their own Custom CSS field. */
input, select, textarea{
  color: var(--text);
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}
button, input[type="submit"]{
  font-family: inherit;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px){
  .site-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .primary-nav ul{ flex-wrap: wrap; }
  .page-shell{ padding: 40px 16px; }
}
