/* Cook County Buyers - shared styles for sellfinewatches.com
   One stylesheet for every page, so the pages look like one shop. */

:root {
  --paper: #f7f4ef;
  --card: #fffdf9;
  --ink: #1c1a17;
  --muted: #5e584f;
  --line: #e4ddd2;
  --gold: #8c734a;
  --deep-gold: #5c4a2e;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 43rem;
  --wide: 66rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--deep-gold); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--deep-gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 1.25rem; }

.skip { position: absolute; left: -999rem; top: 0; background: var(--ink); color: var(--card); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); margin-bottom: 1rem; }
h2::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; font-weight: 700; margin: 1.9rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-gold);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.2rem; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

/* ---------- Header ---------- */

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.75rem; padding-block: 0.5rem; }
.logo { display: block; margin-right: auto; line-height: 0; }
.logo img { height: 7.5rem; width: auto; }
.nb { white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.site-nav a {
  display: inline-block;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

.btn,
.header-phone {
  display: inline-block;
  background: var(--deep-gold);
  color: var(--card);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--deep-gold);
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover,
.header-phone:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }
.header-phone { font-size: 0.95rem; padding: 0.7rem 1.1rem; }
.btn-quiet { background: transparent; color: var(--deep-gold); }
.btn-quiet:hover { background: var(--deep-gold); border-color: var(--deep-gold); color: var(--card); }

.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 1.1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }

/* ---------- Main ---------- */

main { display: block; padding-block: 2.25rem 4rem; }
main > section,
main > .block { max-width: var(--measure); margin-inline: auto; margin-bottom: 3.5rem; }
main > section.wide,
main > .block.wide { max-width: var(--wide); }
main > section:last-child { margin-bottom: 0; }

.hero { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .btn { margin-top: 0.4rem; }
.hero .frame.square { max-width: 15rem; }
.page-head h1 { margin-bottom: 1.1rem; }

figure { margin: 0; }
.frame { background: var(--card); border: 1px solid var(--line); padding: 0.5rem; }
.frame img { width: 100%; }
figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.5rem 0.25rem 0.1rem; }

.with-thumb { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
.with-thumb .frame { width: 7.5rem; margin: 0.4rem 0 0.9rem; }

/* Tables: a normal table on wide screens, stacked cards on a phone. */
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); margin: 1.25rem 0 0.5rem; }
caption { caption-side: top; text-align: left; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.6rem; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tbody th { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

.promise { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.75rem 1.5rem 1rem; }
.promise h2::before { display: none; }
.promise h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep-gold); margin-bottom: 0.75rem; }
.promise-line { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.15rem); font-weight: 600; line-height: 1.18; margin-bottom: 1rem; text-wrap: balance; }

.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.4rem; margin: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.2rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1;
  color: var(--deep-gold);
  border: 1px solid var(--gold); border-radius: 50%;
  background: var(--card);
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: 0.2rem; width: 1px; background: var(--line); }
.steps strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.2rem; }
.steps p:last-child { margin-bottom: 0; }

.factors { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.factors li { padding: 0.8rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.factors strong { color: var(--deep-gold); }

.models { list-style: none; padding: 0; margin: 1rem 0 1.25rem; columns: 2; column-gap: 1.5rem; }
.models li { padding: 0.45rem 0; margin: 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

.state-links { list-style: none; padding: 0; margin: 1rem 0 1.25rem; border-top: 1px solid var(--line); }
.state-links li { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

.faq h3 { font-size: 1.35rem; margin-top: 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.faq p { margin-bottom: 1.1rem; }

.cta-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.cta-card { background: var(--card); border: 1px solid var(--line); padding: 1.4rem 1.25rem 1.5rem; display: flex; flex-direction: column; }
.cta-card h3 { margin-top: 0; }
.cta-card p { flex: 1; }
.cta-card .btn { align-self: flex-start; }

.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1rem 1.15rem; margin: 1.25rem 0; }
.note p:last-child { margin-bottom: 0; }

.close { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.close p:last-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; margin: 1.25rem 0 0; }

.sitemap-list { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.sitemap-list li { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.sitemap-list ul { list-style: none; padding: 0.4rem 0 0 1.25rem; margin: 0; }
.sitemap-list ul li { border: 0; padding: 0.3rem 0; }

/* ---------- Contact form (Jotform embed) ---------- */

.form-embed { background: var(--card); border: 1px solid var(--line); padding: 0.75rem; margin: 1.5rem 0 1rem; min-height: 12rem; }
.form-embed iframe { display: block; width: 100%; border: 0; }
.form-fallback { margin: 0 0 1.25rem; }
.form-fallback p { margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); padding-block: 2.75rem 3rem; font-size: 1rem; }
.site-footer a { color: var(--paper); text-decoration-color: var(--gold); }
.site-footer a:hover { color: var(--card); text-decoration-thickness: 2px; }
.footer-grid { display: grid; gap: 2rem; }
.footer-name { font-weight: 600; }
.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: 0.35rem; }
.footer-appt { color: var(--line); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.2rem; }
.footer-phone { margin-top: 0.9rem; font-weight: 600; }
.footer-links,
.social { list-style: none; padding: 0; margin: 0; }
.footer-links li,
.social li { margin: 0; }
.footer-links a,
.social a { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0; }
.social svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .with-thumb { grid-template-columns: 1fr 9.5rem; }
  .with-thumb .frame { width: auto; grid-column: 2; grid-row: 1 / span 6; align-self: start; margin-top: 2rem; }
  .with-thumb > :not(.frame) { grid-column: 1; }
  .models { columns: 3; }
  .state-links { columns: 2; column-gap: 2rem; border-top: 0; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 1.4fr; }
  .form-embed { padding: 1.25rem; }
  .promise { padding: 2.25rem 2.25rem 1.5rem; }
}

@media (min-width: 56rem) {
  body { font-size: 1.125rem; }
  main { padding-block: 3.25rem 5rem; }
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero .frame.square { max-width: 24rem; justify-self: end; }
  .cta-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Phones ---------- */

@media (max-width: 47.99rem) {
  .header-inner { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo phone" "nav nav"; gap: 0 1rem; padding-block: 0.4rem 0; }
  .logo { grid-area: logo; margin-right: 0; }
  .logo img { height: 6rem; }
  .header-phone { grid-area: phone; justify-self: end; }
  .site-nav { grid-area: nav; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 0.4rem; }

  table, thead, tbody, tr, th, td { display: block; }
  caption { display: block; padding: 0.9rem 1rem 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding: 1rem 1rem 0.9rem; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, td { padding: 0; border: 0; }
  tbody th { margin-bottom: 0.5rem; }
  td { margin-top: 0.55rem; }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .btn, .form-embed, .form-fallback { display: none; }
  body { background: #fff; }
}
