/* Foto Legal LLC site styles */
/* Inter (variable, latin subset), self-hosted. SIL Open Font License. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #8c8c8c; /* was #737373; raised for WCAG AA contrast on black */
  --line: #262626;
  --accent: #ffffff;
  --focus: #e5e5e5;
  --warn: #fafafa;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  border-bottom-color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--pad);
  top: 0.5rem;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
  padding-block: 2px;
}

.logo:hover {
  border-bottom: none;
  opacity: 0.9;
}

.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;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.nav-links a {
  color: var(--muted);
  border-bottom: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--fg);
  color: var(--bg) !important;
  background: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 2px;
  border-bottom: none !important;
}

.nav-cta:hover {
  opacity: 0.88;
  border-bottom: none !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  padding: clamp(4rem, 14vh, 8rem) 0 clamp(3rem, 10vh, 6rem);
  max-width: 48rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 .h1-brand {
  display: block;
}

.hero h1 .h1-sub {
  display: block;
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.hero .lede {
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--fg);
  text-decoration: none;
  border-bottom-width: 1px;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-bottom-color: var(--fg);
}

.btn-primary:hover {
  opacity: 0.9;
  border-bottom-color: var(--fg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background: #111;
  border-bottom-color: var(--fg);
}

.section {
  padding: clamp(2.5rem, 8vh, 5rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section p,
.prose p {
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  color: var(--muted);
  padding-left: 1.25rem;
  max-width: 40rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--fg);
  font-weight: 560;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--dim);
  max-width: 40rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  min-height: 10rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card a {
  color: var(--fg);
  font-size: 0.875rem;
  display: inline-block;
  margin-top: 1rem;
}

.page-title {
  padding: clamp(3rem, 10vh, 5.5rem) 0 1.5rem;
}

.page-title h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-title .lede {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.125rem;
}

.phone-block {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  max-width: 28rem;
}

.phone-block .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.35rem;
}

.phone-block a {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: none;
}

.phone-block a:hover {
  opacity: 0.85;
}

/* Form */
.form {
  max-width: 32rem;
  margin: 2rem 0 3rem;
  display: grid;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--dim);
  margin: 0;
}

.form-status {
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 10vh, 6rem);
  padding: 2rem var(--pad) 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.footer-top a {
  color: var(--muted);
  border-bottom: none;
  margin-right: 1.25rem;
  display: inline-block;
  padding: 0.375rem 0;
  min-height: 24px;
}

.footer-top a:hover {
  color: var(--fg);
}

.disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--dim);
  max-width: 48rem;
}

.disclaimer p {
  margin: 0 0 0.65rem;
  color: var(--dim);
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #000;
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.25rem;
    gap: 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

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

/* FAQ (question-and-answer sections) */
.faq-list {
  margin-top: 1.75rem;
  max-width: 42rem;
}

.faq-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--fg);
}

.faq-item p {
  margin: 0 0 0.65rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item ol,
.faq-item ul {
  color: var(--muted);
  padding-left: 1.35rem;
  max-width: 40rem;
  margin: 0 0 0.65rem;
}

.faq-item li {
  margin-bottom: 0.4rem;
}

.faq-item strong,
.faq-item em {
  color: var(--fg);
}

.footer-phone {
  font-size: 0.8125rem;
  color: var(--dim);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-thanks {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
  padding: 1.5rem 0;
  outline: none;
}

/* Inline links inside running text: underlined so they don't rely on color alone */
.section p a,
.prose p a,
.faq-item p a,
.faq-item li a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  border-bottom: none;
}

.section p a:hover,
.prose p a:hover,
.faq-item p a:hover,
.faq-item li a:hover {
  border-bottom: none;
  opacity: 0.85;
}

/* 404 page */
.notfound-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

/* Site-wide type standard (matches homepage): Inter stack for body text,
   --serif stack at weight 500 for all headings. Kept last so page and
   component heading rules cannot fall back to a different font. */
h1, h2, h3, h4,
.hero h1, .section h2, .prose h2, .prose h3, .card h3, .page-title h1, .faq-item h3 {
  font-family: var(--serif);
  font-weight: 500;
}

/* Guide tables: only the table scrolls sideways on narrow screens */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.prose table{border-collapse:collapse;font-size:.9rem;min-width:600px}
.prose th,.prose td{padding:.5rem;vertical-align:top;border:1px solid #ddd}

/* Guide table fixes (2026-10-15): no mid-word breaks, sticky first column,
   narrow-screen hint, opaque header above the table, tighter title gap */
.prose th,.prose td{word-break:normal;overflow-wrap:normal;hyphens:none}
.prose td a,.prose th a{overflow-wrap:anywhere}
.prose th:first-child,.prose td:first-child{min-width:9rem;position:sticky;left:0;background:var(--bg);z-index:1;border-right:2px solid #ddd}
.table-hint{display:none;font-size:.85rem;color:var(--muted);margin:0 0 .5rem}
@media (max-width:699px){.table-hint{display:block}}
.site-header{background:#000;backdrop-filter:none;-webkit-backdrop-filter:none;z-index:40}
.page-title + .section.prose{padding-top:1.5rem}
.prose table{border-collapse:separate;border-spacing:0}
.prose th,.prose td{border-width:0 1px 1px 0}
.prose tr:first-child>th,.prose tr:first-child>td{border-top-width:1px}
.prose th:first-child,.prose td:first-child{border-left-width:1px;border-right-width:2px}
.callout{margin:2rem 0;padding:1.25rem 1.5rem;border:1px solid var(--line);border-left:3px solid var(--fg);background:#0d0d0d}
.callout p{margin:0 0 1rem}
.callout p:last-child{margin-bottom:0}

/* Anchor jumps clear the sticky header; CTA buttons in callouts on their own line */
h2[id],h3[id]{scroll-margin-top:96px}
.callout .btn{display:flex;width:fit-content;margin-top:1rem}
