/*
 * swap.phoenixareahome.com — Global Styles
 * Remote Tech Worker Content Engine ("The Swap")
 * Accessibility: 16px base font, 4.5:1 contrast, 44px touch targets
 * Palette: blue-600 (#2563eb), slate-900 (#0f172a), system sans-serif
 */

/* === 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 #2563eb;
  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: #1e40af; }

.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: #eff6ff;
  color: #2563eb;
}

.site-nav-links a[aria-current="page"] {
  background: #dbeafe;
  color: #1d4ed8;
  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 === */

.landing-hero {
  background: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

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

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

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

.hero-note {
  font-size: 1rem;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

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

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

.hero-anchor:hover {
  background: #2563eb;
  color: #fff;
}

.hero-anchor:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

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

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

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

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

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

/* === Swap Cards Section === */

.swaps-section {
  background: #fff;
  padding: 3.5rem 1.5rem;
}

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

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

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

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

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

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

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

.card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.875rem;
}

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

.card-gain-label { color: #15803d; }
.card-tradeoff-label { color: #92400e; }

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

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

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

/* Per-dimension accent and link colors */
.accent-career  { background: #2563eb; }
.accent-money   { background: #0891b2; }
.accent-space   { background: #7c3aed; }
.accent-social  { background: #db2777; }
.accent-climate { background: #ea580c; }
.accent-family  { background: #16a34a; }

.link-career  { color: #2563eb; }
.link-money   { color: #0891b2; }
.link-space   { color: #7c3aed; }
.link-social  { color: #db2777; }
.link-climate { color: #ea580c; }
.link-family  { color: #16a34a; }

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

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

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

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

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

/* === Neighborhoods Section === */

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

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

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

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

.archetype-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.archetype-pill {
  background: #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
}

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

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

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

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

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #2563eb;
  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;
}

.cta-btn:hover { background: #1d4ed8; color: #fff; }

.cta-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

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

[class$="-cta-alt"] {
  font-size: 1rem;
  color: #475569;
  margin-top: 1rem;
}

[class$="-cta-alt"] a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

[class$="-cta-alt"] a:hover {
  color: #1d4ed8;
}

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

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

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

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

/* === 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: #2563eb; }

.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) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

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