/* ==========================================================================
   TempleTX brand DNA — base layer for every page.
   Source of truth: real-estate-redefined/DESIGN-PATTERNS.md + CLAUDE.md style ref.
   Sets the dark canvas + typography globally so custom-HTML pages render correctly
   on the clean theme without per-page full-bleed `!important` overrides.
   ========================================================================== */
:root {
  /* Canvas */
  --midnight: #0f172a;
  --midnight-deep: #080d18;
  --midnight-elevated: #131e36;
  --midnight-card: #1a2d42;
  --midnight-card-strong: #223656;
  --card-border: #2d4a6b;
  --ai-box-bg: #162032;

  /* Ink (body copy standard set 2026-06-11: #e2e8f0 @ weight 400) */
  --snow: #f8fafc;          /* headlines + strong */
  --body: #e2e8f0;          /* MANDATORY paragraph/list/table/FAQ body on dark pages */
  --snow-muted: #cbd5e1;
  --snow-subtle: #94a3b8;   /* small UPPERCASE labels / eyebrows ONLY — never body */
  --snow-faint: #64748b;

  /* Accent — emerald, used sparingly */
  --emerald: #10b981;
  --emerald-deep: #059669;
  --emerald-bright: #34d399;

  /* Hairlines */
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.10);
  --hairline-emerald: rgba(16, 185, 129, 0.22);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Dark canvas everywhere — no white container bleed (the AgentFire problem) */
html, body {
  background: var(--midnight);
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* GeneratePress content wrappers: let custom-HTML pages span full width */
.site-content, .content-area, .inside-article, main, article {
  background: var(--midnight);
}

/* Migration chrome: custom pages are full-width, no stock WP sidebar widgets. */
.widget-area,
.sidebar,
#secondary,
#right-sidebar {
  display: none !important;
}

.site-content .content-area,
.content-area {
  float: none;
  width: 100% !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--snow);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.eyebrow, .label-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--emerald);
  font-size: 11px;
}

a { color: var(--emerald-bright); }
a:hover { color: var(--emerald); }

/* Signature display flourish: italic-emerald accent inside H2 (use once per H2) */
h2 em { font-style: italic; color: var(--emerald-bright); font-weight: 500; }

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

/* ==========================================================================
   PREMIUM BRANDED CHROME — header + footer
   ========================================================================== */
.ttx-header {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(8, 13, 24, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.ttx-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; gap: 28px;
}
.ttx-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.ttx-brand__mark {
  font-family: var(--font-display); font-weight: 600; font-size: 25px;
  letter-spacing: -0.01em; color: var(--snow);
}
.ttx-brand__tx { color: var(--emerald-bright); font-style: italic; padding: 0 1px; }
.ttx-brand__sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--snow-subtle); margin-top: 6px;
}
.ttx-nav { display: flex; align-items: center; gap: 26px; }
.ttx-nav a {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  color: var(--snow-muted); text-decoration: none; position: relative; padding: 4px 0;
  transition: color .18s ease;
}
.ttx-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--emerald-bright); transition: width .22s cubic-bezier(.2,.8,.2,1);
}
.ttx-nav a:hover { color: var(--snow); }
.ttx-nav a:hover::after { width: 100%; }
.ttx-cta {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; white-space: nowrap;
  color: #04150e; background: var(--emerald); padding: 11px 20px; border-radius: 8px;
  text-decoration: none; transition: all .2s ease; box-shadow: 0 0 0 1px var(--hairline-emerald);
}
.ttx-cta:hover { background: var(--emerald-bright); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(16,185,129,.5); }
.ttx-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.ttx-burger span { display: block; width: 22px; height: 2px; background: var(--snow); transition: .2s; }

@media (max-width: 980px) {
  .ttx-header__inner { gap: 14px; }
  .ttx-burger { display: flex; }
  .ttx-cta { padding: 9px 14px; font-size: 13px; }
  .ttx-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--midnight-deep); border-bottom: 1px solid var(--hairline);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .ttx-header.is-open .ttx-nav { max-height: 70vh; }
  .ttx-nav a { padding: 15px 28px; border-top: 1px solid var(--hairline); }
  .ttx-nav a::after { display: none; }
}

.ttx-footer { background: var(--midnight-deep); border-top: 1px solid var(--hairline); color: var(--snow-muted); }
.ttx-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 56px 28px 40px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px;
}
.ttx-footer__brand .ttx-brand__mark { font-size: 24px; }
.ttx-footer__id { font-size: 13.5px; line-height: 1.7; color: var(--snow-muted); margin: 18px 0 14px; }
.ttx-footer__id em { color: var(--emerald-bright); font-style: italic; }
.ttx-footer__contact a { font-family: var(--font-mono); font-size: 13px; color: var(--snow); text-decoration: none; }
.ttx-footer__contact a:hover { color: var(--emerald-bright); }
.ttx-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ttx-footer__col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald); margin: 0 0 16px;
}
.ttx-footer__col a {
  display: block; font-size: 14px; color: var(--snow-muted); text-decoration: none;
  margin-bottom: 11px; transition: color .16s ease;
}
.ttx-footer__col a:hover { color: var(--snow); }
.ttx-footer__bar {
  max-width: 1240px; margin: 0 auto; padding: 22px 28px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--snow-faint);
}
.ttx-footer__bar a { color: var(--snow-faint); text-decoration: none; }
.ttx-footer__bar a:hover { color: var(--snow-muted); }
@media (max-width: 820px) {
  .ttx-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .ttx-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .ttx-footer__bar { flex-direction: column; }
}
