/*
  Tax Protest Guard — shared stylesheet
  No frameworks, no external fonts. System font stack only.
*/

:root {
  --navy: #0F2440;
  --navy-deep: #0A1930;
  --offwhite: #FAF7F2;
  --offwhite-dim: #F1ECE3;
  --gold: #B8935A;
  --gold-dim: #7A5C34;
  --ink: #16233A;
  --muted: #4A5568;
  --line: #E4DDD0;
  --radius: 14px;
  --max: 1100px;
  --shadow: 0 12px 30px -14px rgba(15, 36, 64, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visually hidden but accessible */
.visually-hidden {
  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 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible {
  outline: 3px solid var(--gold-dim);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link is only ever focused while its own gold background is showing,
   so it needs a darker ring than the default to stay visible against it. */
.skip-link:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Links on dark (navy) backgrounds need a lighter ring than the default. */
.site-footer a:focus-visible {
  outline-color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--offwhite-dim);
}

.site-nav a.nav-cta {
  background: var(--navy);
  color: var(--offwhite);
}

.site-nav a.nav-cta:hover {
  background: var(--navy-deep);
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--offwhite);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-deep);
  flex: none;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--offwhite);
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(250, 247, 242, 0.82);
  max-width: 56ch;
  margin-bottom: 0;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 340px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 420px at 82% 18%, rgba(184, 147, 90, 0.16), transparent 60%),
    radial-gradient(480px 380px at 12% 92%, rgba(184, 147, 90, 0.10), transparent 60%);
  pointer-events: none;
}

/* Sections */
main section {
  padding: 80px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--offwhite);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 0.4em;
}

.step p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Alt band (navy) */
.band-navy {
  background: var(--navy);
  color: var(--offwhite);
}

.band-navy .section-head p {
  color: rgba(250, 247, 242, 0.78);
}

.band-navy .section-head h2 {
  color: var(--offwhite);
}

.band-navy .eyebrow {
  color: var(--gold);
}

.flat-fee-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.16);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 780px;
}

.flat-fee-icon {
  width: 48px;
  height: 48px;
  flex: none;
}

.flat-fee-card p {
  font-size: 1.08rem;
  color: rgba(250, 247, 242, 0.92);
  margin-bottom: 0;
}

.flat-fee-card strong {
  color: var(--gold);
}

/* Texas / counties section */
.texas-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.texas-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.dot-field {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  list-style: none;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dot-field li {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--offwhite-dim);
}

.dot-field li.on {
  background: var(--gold);
}

.dot-field li.on-navy {
  background: var(--navy);
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-section .section-head {
  margin-left: auto;
  margin-right: auto;
}

.mail-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--navy);
  color: var(--offwhite);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.02rem;
}

.mail-button:hover {
  background: var(--navy-deep);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 242, 0.82);
  padding: 36px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--offwhite);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inner p {
  margin: 0;
}

/* Simple pages (privacy, 404) */
.page-hero {
  background: var(--navy);
  color: var(--offwhite);
  padding: 64px 0 56px;
}

.page-hero h1 {
  color: var(--offwhite);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 0.3em;
}

.page-hero p {
  color: rgba(250, 247, 242, 0.78);
  margin-bottom: 0;
}

.doc {
  padding: 56px 0 88px;
}

.doc h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-top: 2em;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 1.02rem;
}

.doc ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc strong {
  color: var(--ink);
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.not-found h1 {
  color: var(--navy);
  font-size: 1.6rem;
}

.not-found p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 64px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .texas-grid {
    grid-template-columns: 1fr;
  }

  .flat-fee-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  main section {
    padding: 56px 0;
  }

  .dot-field {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-inner {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
}
