/* Tim's Trading Post and Pawn — simple, mobile-first mockup */

:root {
  --bg: #f4efe6;
  --bg-card: #fffaf2;
  --ink: #111111;
  --muted: #5c564c;
  --line: #8a7a62;
  --teal: #74b6b6;
  --teal-dark: #165250;
  --teal-darker: #0e3d3c;
  --gold: #c99d54;
  --gold-deep: #a67c32;
  --gold-text: #6b4f10;
  --gold-soft: #edd07d;
  --rust: #883020;
  --rust-dark: #6b2418;
  --black: #111111;
  --forest: var(--teal-dark);
  --forest-dark: var(--teal-darker);
  --star: #6b4f10;
  --placeholder-bg: #fff6d6;
  --placeholder-line: #6b4f10;
  --placeholder-ink: #5a4300;
  --focus: var(--teal-dark);
  --ui-line: #8a7a62;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.06);
  --radius: 14px;
  --max: 40rem;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--forest-dark); }

:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
}

.btn-primary:focus-visible,
.header-nav a.header-call:focus-visible,
.skip:focus,
.skip:focus-visible,
.site-footer a:focus-visible,
.action-bar .btn-primary:focus-visible {
  outline-color: #fffaf2;
  box-shadow: 0 0 0 6px var(--teal-dark);
}

.skip:focus,
.skip:focus-visible {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--bg-card);
  color: var(--ink);
  padding: 0.55rem 0 0.7rem;
  border-bottom: 3px solid var(--rust);
  box-shadow: 0 3px 0 var(--gold-deep);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.brand {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  display: flex;
  align-items: center;
}

.brand:hover { color: inherit; }

.brand-logo {
  display: block;
  height: 3.2rem;
  width: auto;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.45rem;
}

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.25em;
}

.header-nav a:hover { color: var(--teal-dark); }

.header-call,
.header-nav a.header-call {
  display: none;
}

.header-nav a.header-call {
  color: #fffaf2;
  background: var(--teal-dark);
}

.header-nav a.header-call:hover {
  background: var(--teal-darker);
  color: #fffaf2;
}

/* Hero */
.hero {
  padding: 1.75rem 0 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 6vw, 2.55rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  max-width: 34rem;
}


.rate-hook {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.rate-hook strong {
  color: var(--rust-dark);
}

.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.15rem;
  font-size: 1rem;
}

.stars-icons {
  color: var(--star);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.stars a { font-weight: 600; }

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--forest);
  color: #fffaf2;
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-dark);
  color: #fffaf2;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover {
  background: #e4f2f2;
  color: var(--forest-dark);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.meta p { margin: 0.2rem 0; }

.meta a { font-weight: 600; }

/* Sections */
main { padding-bottom: 5.5rem; }

section {
  padding: 0.5rem 0 1.75rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 1.15rem 0 0.4rem;
}

p { margin: 0 0 0.85rem; }

.interest {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--shadow);
}

.interest h2 { margin-top: 0; }

.steps {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.15rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fffaf2;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rate-table + .rate-table {
  margin-top: 1.35rem;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
}

.rate-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fffaf2;
  background: var(--teal-dark);
  padding: 0.7rem 0.9rem;
  width: 100%;
  margin: 0;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table thead th {
  background: #efe6d4;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.rate-table th,
.rate-table td {
  white-space: normal;
}

.rate-table tbody th {
  font-weight: 600;
  width: 58%;
}

.example {
  background: #f3eee4;
  border-left: 4px solid var(--rust);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
}

.example .label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.3rem;
}

.example p:last-child,
.example ul:last-child { margin-bottom: 0; }

.example ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.note {
  font-size: 1rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-line);
  color: var(--placeholder-ink);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  margin: 0.85rem 0 0;
  font-size: 1rem;
}

.placeholder:first-child { margin-top: 0; }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.visit-block p { margin: 0.25rem 0; }

/* Photo strip */
.photo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.photo-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #e8e0d2;
}

/* Reviews */
.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.quotes blockquote {
  margin: 0;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
  border: 1px solid #ddd4c4;
}

.quotes blockquote p {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.quotes footer {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

#reviews .stars {
  margin-bottom: 0.85rem;
}



.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.socials a,
.socials .placeholder-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  font-weight: 600;
  color: var(--forest);
}

.socials .placeholder-link {
  border-style: dashed;
  border-color: var(--placeholder-line);
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
}

/* FAQ */
.page-title {
  padding-top: 1.6rem;
  padding-bottom: 0.25rem;
}

.page-title h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.faq {
  border-top: 1px solid var(--line);
  margin: 0.5rem 0 1.25rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.8rem 0.95rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  line-height: 1.3;
  min-height: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.95rem;
  color: var(--forest);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq .answer {
  padding: 0 0 1rem;
}

.faq .answer p:last-child,
.faq .answer ul:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #e8e0d2;
  padding: 1.5rem 0 6.25rem;
  font-size: 1rem;
  border-top: 3px solid var(--rust);
  box-shadow: 0 -3px 0 var(--gold-deep);
}

.site-footer a {
  color: #f3ead8;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.a11y-statement {
  margin-top: 0.85rem;
  max-width: 36rem;
}

.site-footer nav a {
  padding: 0 0.15rem;
}

.site-footer .brand-name { color: #fffaf2; margin-bottom: 0.35rem; }

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

.fine {
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.85;
}

/* Mobile action bar */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(244, 239, 230, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.action-bar .btn { min-height: 44px; width: 100%; }

@media (min-width: 700px) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .site-header .wrap {
    width: min(68rem, calc(100% - 3rem));
  }

  .brand-logo {
    height: 4.35rem;
  }

  .header-call,
  .header-nav a.header-call {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    background: var(--teal-dark);
    color: #fffaf2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
  }

  .header-call:hover { color: #fffaf2; background: var(--teal-darker); }

  .interest { padding: 1.5rem 1.5rem 1.6rem; }

  .action-bar { display: none; }

  .site-footer { padding-bottom: 1.75rem; }

  main { padding-bottom: 2.5rem; }

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

@media (max-width: 699px) {
  .services { grid-template-columns: 1fr 1fr; }
}

.more-link { margin-top: 1.25rem; }

.rate-table td.rate-long,
.rate-table td {
  white-space: normal;
}

@media (min-width: 700px) {
  .rate-table tbody th {
    white-space: normal;
  }

  .rate-table caption {
    font-size: 1.7rem;
    padding: 0.8rem 1rem;
  }
}

.extend-callout {
  background: #f3eee4;
  border-left: 4px solid var(--rust);
  border-radius: 0 10px 10px 0;
  padding: 0.95rem 1.05rem;
  margin: 1.1rem 0 0.85rem;
}

.extend-callout h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.extend-callout p {
  margin: 0;
  font-size: 1.08rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 360px) {
  .brand-logo { height: 2.6rem; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .actions { grid-template-columns: 1fr; }
}

.extend-callout-title {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}


/* Pages: points */
.points { margin: 0 0 1rem; padding-left: 1.15rem; }
.points li { margin: 0.4rem 0; font-size: 1.05rem; }
.buy-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0 0 1rem; background: #e8e0d2; }
.h2-gap { margin-top: 1.4rem; }
.services li.has-link { padding: 0; }
.services li.has-link a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0.7rem 0.8rem; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 10px; }
.services li.has-link a:hover { background: #e4f2f2; color: var(--forest-dark); }
.area-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.area-cards a { display: flex; flex-direction: column; gap: 0.15rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.area-cards a span { color: var(--muted); font-size: 0.95rem; }
.area-cards a:hover { background: #e4f2f2; }
.footer-areas { font-size: 0.95rem; line-height: 1.7; }
@media (min-width: 700px) { .area-cards { grid-template-columns: 1fr 1fr 1fr; } }

.policy h2 { font-size: 1.25rem; margin: 1.25rem 0 0.4rem; }
.policy p { margin: 0 0 0.75rem; }
.policy .effective { color: var(--muted); font-weight: 600; }
.policy .points { margin: 0 0 0.9rem; }

/* A11y: standalone text links get a 44px tap target */
.meta a,
.stars a,
.more-link a,
.visit-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Comfortable tap targets for remaining body contact links (policies, FAQ answers, back links). */
.policy a,
.answer a,
p.more-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
