/*
 * playbook.phoenixareahome.com — Global Styles
 * CA-to-AZ Business Content Engine ("The Playbook")
 * Accessibility: 16px base font, 4.5:1 contrast, 44px touch targets
 * Palette: amber-800 (#92400e), slate-900 (#0f172a), system sans-serif
 * Hub accents: Money=#16a34a, Network=#7c3aed, Operations=#0284c7, Life=#ea580c
 */

/* === Reset & Base === */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Skip Link (Accessibility) === */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem 1rem;
  border: 2px solid #92400e;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
  color: #0f172a;
}

/* === ADRE Brokerage Disclosure Bar === */

.brokerage-bar {
  background: #f1f5f9;
  text-align: center;
  padding: 3px 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.brokerage-bar p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.3;
}

/* === Site Navigation === */

.site-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav-brand:hover { color: #92400e; }

.site-nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.site-nav-links a {
  padding: 8px 14px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}

.site-nav-links a:hover,
.site-nav-links a:focus {
  background: #fffbeb;
  color: #92400e;
}

.site-nav-links a[aria-current="page"] {
  background: #fef3c7;
  color: #78350f;
  font-weight: 600;
}

/* Mobile nav toggle */
.site-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.site-nav-toggle svg { display: block; }

/* Progressive enhancement: nav visible without JS, hidden when JS adds .js class */
@media (max-width: 640px) {
  .js .site-nav-toggle { display: block; }
  .js .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .js .site-nav-links.open { display: flex; }
  .site-nav-links a { padding: 14px 12px; }
}

/* === Main Content === */

main {
  flex: 1;
}

/* === Landing Hero === */

.pb-landing-hero {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.pb-hero-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pb-landing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-landing-hero .pb-lead {
  font-size: 1.25rem;
  color: #334155;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 0.75rem;
}

.pb-hero-note {
  font-size: 1rem;
  color: #4b5563;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.pb-hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.pb-hero-anchor {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1.5px solid #92400e;
  color: #92400e;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.18s, color 0.18s;
}

.pb-hero-anchor:hover {
  background: #92400e;
  color: #fff;
}

.pb-hero-anchor:focus-visible {
  outline: 2px solid #78350f;
  outline-offset: 2px;
}

/* === Framework Section === */

.pb-framework-section {
  background: #f8fafc;
  padding: 3rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pb-framework-inner {
  max-width: 860px;
  margin: 0 auto;
  border-left: 4px solid #92400e;
  padding-left: 1.5rem;
}

.pb-framework-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-framework-inner p {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

/* === Hub Cards Section === */

.pb-hubs-section {
  background: #fff;
  padding: 3.5rem 1.5rem;
  scroll-margin-top: 70px;
}

.pb-hubs-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pb-hubs-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
}

.pb-hubs-subheading {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 2rem;
}

.pb-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pb-hub-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pb-hub-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.pb-card-accent {
  height: 4px;
  border-radius: 7px 7px 0 0;
  margin: -1.5rem -1.5rem 1.25rem;
}

.pb-card-question {
  font-weight: 700;
  font-size: 1.125rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.pb-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.pb-card-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.pb-card-stat {
  font-size: 0.875rem;
  color: #334155;
  background: #f8fafc;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  border-left: 3px solid #e2e8f0;
}

.pb-card-stat strong {
  color: #0f172a;
}

.pb-card-link {
  margin-top: auto;
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 600;
  padding-top: 0.5rem;
  display: inline-block;
}

.pb-card-link:hover { text-decoration: underline; }

/* Hub accent colors */
.pb-accent-money      { background: #16a34a; }
.pb-accent-network    { background: #7c3aed; }
.pb-accent-operations { background: #0284c7; }
.pb-accent-life       { background: #ea580c; }

.pb-label-money      { color: #16a34a; }
.pb-label-network    { color: #7c3aed; }
.pb-label-operations { color: #0284c7; }
.pb-label-life       { color: #c2410c; }

.pb-link-money      { color: #16a34a; }
.pb-link-network    { color: #7c3aed; }
.pb-link-operations { color: #0284c7; }
.pb-link-life       { color: #c2410c; }

.pb-stat-money      { border-left-color: #16a34a; }
.pb-stat-network    { border-left-color: #7c3aed; }
.pb-stat-operations { border-left-color: #0284c7; }
.pb-stat-life       { border-left-color: #c2410c; }

/* === Audience Section ("Who This Is For") === */

.pb-audience-section {
  background: #f8fafc;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 70px;
}

.pb-audience-inner {
  max-width: 960px;
  margin: 0 auto;
}

.pb-audience-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.5rem;
  text-align: center;
}

.pb-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pb-audience-card {
  padding: 1.5rem;
  border-radius: 8px;
}

.pb-audience-for {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pb-audience-not {
  background: #fefce8;
  border: 1px solid #fef08a;
}

.pb-audience-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.pb-audience-card p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.pb-audience-card ul {
  list-style: none;
  padding: 0;
}

.pb-audience-card li {
  font-size: 0.9375rem;
  color: #475569;
  padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pb-audience-for li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.pb-audience-not li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #ca8a04;
  font-weight: 700;
}

.pb-audience-card a {
  color: #92400e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pb-audience-card a:hover {
  color: #78350f;
}

/* === Stats Section === */

.pb-stats-section {
  background: #fff;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 70px;
}

.pb-stats-inner {
  max-width: 860px;
  margin: 0 auto;
}

.pb-stats-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  text-align: center;
}

.pb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pb-stat-block {
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
}

.pb-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.pb-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.3;
}

/* === Trust Section === */

.pb-trust-section {
  background: #0f172a;
  padding: 3.5rem 1.5rem;
}

.pb-trust-inner {
  max-width: 860px;
  margin: 0 auto;
}

.pb-trust-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 1.25rem;
}

.pb-trust-text {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0;
}

/* === CTA Section === */

.pb-cta-section {
  background: #fff;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.pb-cta-section--tall { padding-top: 5rem; padding-bottom: 5rem; }

.pb-h1-404 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pb-cta-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-cta-inner p {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.pb-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #92400e;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.18s;
}

.pb-cta-btn:hover { background: #78350f; color: #fff; }

.pb-cta-btn:focus-visible {
  outline: 2px solid #78350f;
  outline-offset: 2px;
}

.pb-cta-fine {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.75rem;
}

/* === How It Works === */

.pb-how-it-works {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.pb-how-it-works h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-how-it-works p {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

/* === Disclaimer Styling (3-tier system) === */

.pb-disclaimer-footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
}

.pb-disclaimer-tool {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.55;
}

.pb-disclaimer-contextual {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.55;
}

.pb-disclaimer-contextual[data-risk="high"] {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

/* === Zone Layout System === */

.pb-zone {
  padding: 3rem 1.5rem;
}

.pb-zone-inner {
  max-width: 860px;
  margin: 0 auto;
}

.pb-lobby {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pb-data-room {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pb-tool-room {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pb-depth {
  background: #f8fafc;
}

/* === Site Footer (ADRE Compliance) === */

.site-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer p { margin: 0 0 0.5rem; }

.site-footer a {
  color: #475569;
  text-decoration: underline;
}

.site-footer a:hover { color: #92400e; }

.site-footer .eho-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.site-footer .eho-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.site-footer .brokerage-details {
  margin-bottom: 1rem;
}

.site-footer .brokerage-details .firm-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
}

.site-footer .brokerage-details p,
.site-footer .agent-details p {
  font-size: 0.875rem;
  color: #475569;
  margin: 0.25rem 0;
}

.site-footer .agent-details {
  margin-bottom: 1.25rem;
}

.site-footer hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.site-footer .disclaimer {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.site-footer .copyright {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0;
}

/* === Responsive === */

@media (max-width: 1023px) {
  .pb-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .pb-landing-hero h1 { font-size: 2rem; }
  .pb-landing-hero .pb-lead { font-size: 1.05rem; }
  .pb-landing-hero { padding: 2.5rem 1rem 2rem; }
  .pb-cards-grid { grid-template-columns: 1fr; }
  .pb-audience-grid { grid-template-columns: 1fr; }
  .pb-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-hubs-section,
  .pb-trust-section,
  .pb-audience-section,
  .pb-stats-section,
  .pb-cta-section,
  .pb-framework-section { padding-left: 1rem; padding-right: 1rem; }
  .pb-how-it-works { padding-left: 1rem; padding-right: 1rem; }
  .pb-zone { padding-left: 1rem; padding-right: 1rem; }
}
