/* Iowa Cards and Collectibles
   Colors, fonts, and sizes are set once here, then used everywhere below. */
:root {
  --navy: #1C2B45;   /* headlines, logo, dark panels */
  --cream: #F6EFDF;  /* page background */
  --paper: #FBF7EC;  /* card surfaces */
  --brick: #A8392B;  /* buttons and small labels */
  --brass: #B88A2E;  /* thin rules and accents only, never text */
  --slate: #2E3445;  /* body text */

  --sand: #EDE3CD;          /* slightly deeper cream for image backdrops */
  --line: rgba(28, 43, 69, 0.12);
  --brick-dark: #8F2F23;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 43, 69, 0.05), 0 8px 24px rgba(28, 43, 69, 0.06);

  --gutter: 20px;
  --max: 1200px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 72px 0; }
.section-tight { padding: 24px 0; }

/* Every photo: rounded, covers its box, warm backdrop while loading */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--sand);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 223, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo-link { display: block; flex-shrink: 1; min-width: 0; border-radius: 8px; }
.logo { height: 44px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: var(--cream); border-color: var(--brick); }
.btn-primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-small { min-height: 48px; padding: 8px 16px; font-size: 0.9rem; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brick);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
/* On narrow phones the location line breaks after the comma */
@media (max-width: 479px) {
  .eyebrow { border-radius: 14px; line-height: 1.6; }
  .eyebrow-2 { display: block; }
}
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 34em; }
.hero .lead { margin-top: 4px; }

.trust {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust a { color: inherit; }
.trust svg {
  width: 20px; height: 20px; flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: var(--navy);
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-media { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.hero-media .photo { box-shadow: var(--shadow); }
.stat-card {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.stat-label { font-size: 0.85rem; font-weight: 500; color: var(--slate); }
.stat-value { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.15; }

/* ---------- Split (photo + copy) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split-media { aspect-ratio: 1 / 1; order: 2; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { padding-bottom: 0; }
.step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--brick);
}
.step h3 { margin-bottom: 6px; }

/* ---------- What I take ---------- */
.take-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.take-head h2 { margin: 0; }
.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.cat-link { padding: 0; border: 0; }
.cat-link a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--brick);
  color: var(--cream);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, transform .15s ease;
}
.cat-link a:hover { background: var(--brick-dark); color: var(--cream); transform: translateY(-1px); }
.cat.cat-link svg { background: rgba(246, 239, 223, 0.16); stroke: var(--cream); }
.arrow { display: inline-block; margin-left: 4px; }
.cat svg {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(168, 57, 43, 0.1);
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- What it costs (dark panel) ---------- */
.panel-dark {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 40px 20px;
}
.panel-dark h2 { color: var(--cream); }
.costs-head p { max-width: 44em; color: rgba(246, 239, 223, 0.88); }
.included { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; }
.included-label { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 239, 223, 0.8); }
.included ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.included li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 239, 223, 0.3);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
}
.tables { display: grid; gap: 16px; margin: 32px 0 0; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  color: var(--slate);
  border-radius: var(--r-md);
  overflow: hidden;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
  padding: 0 4px 12px;
}
th, td { padding: 14px 20px; text-align: left; }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }
thead th {
  background: var(--sand);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
thead th:last-child, td { text-align: right; }
tbody th { font-weight: 500; }
td {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ---------- Bento: bulk + paid ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.tile-body { padding: 28px 24px; }
.tile-photo .photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg) var(--r-lg) 0 0; height: auto; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 4px rgba(168, 57, 43, 0.15);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.4em;
  bottom: 0.2em;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }

/* ---------- Recent sales ---------- */
.sales-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px 20px;
}
.sales-list { list-style: none; margin: 20px 0 24px; padding: 0; }
.sale-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.sale-row:last-child { border-bottom: 1px solid var(--line); }
.sale-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.sale-title { flex: 1; min-width: 0; font-weight: 500; color: var(--slate); line-height: 1.35; }
.sale-price {
  flex-shrink: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.sales-note { max-width: 46em; }

/* ---------- About ---------- */
.about-card {
  display: grid;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-copy { padding: 32px 24px; }
.about-media { position: relative; aspect-ratio: 16 / 10; }
.about-media .photo { position: absolute; inset: 0; border-radius: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 24px; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--navy); color: var(--cream); }
.faq details p { padding: 0 20px 20px; margin: 0; max-width: 40em; }

/* ---------- Intake ---------- */
.intake-card {
  display: grid;
  gap: 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px 20px;
}
.small-note { font-size: 0.95rem; }
.form-frame {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.form-frame iframe { display: block; width: 100%; border: 0; min-height: 560px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 24px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-block; padding: 8px 0; font-weight: 500; }
.footer-fine { font-size: 0.875rem; }
.footer-fine p { margin-bottom: 4px; }

/* ---------- 404 page ---------- */
.notfound { padding: 80px 0 96px; }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; }
.page-404 .site-footer { margin-top: 0; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .btn-small { padding: 10px 20px; font-size: 0.95rem; }
  .tables { grid-template-columns: 1fr 1fr; align-items: start; }
  .panel-dark { padding: 56px 40px; }
  .sales-card { padding: 40px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .intake-card { padding: 40px; }
  .tile-body { padding: 32px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .logo { height: 56px; }
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-media { aspect-ratio: 1 / 1; }
  .stat-card { top: auto; left: -28px; bottom: 40px; }
  .section { padding: 112px 0; }
  .section-tight { padding: 32px 0; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .split-media { aspect-ratio: 4 / 5; max-height: 620px; order: 0; }
  .panel-dark { padding: 72px 64px; }
  .costs-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: end; }
  .costs-head h2 { margin: 0; }
  .bento { grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cat, .cat-link a { padding: 24px; min-height: 160px; justify-content: space-between; }
  .cat-link { padding: 0; }
  .tile-body { padding: 40px; }
  #paid { justify-content: center; }
  .sales-card { padding: 56px; }
  .sales-list { columns: 2; column-gap: 48px; }
  .sale-row { break-inside: avoid; }
  .sale-row:last-child { border-bottom: 0; }
  .about-card { grid-template-columns: 1fr 1fr; }
  .about-copy { padding: 64px; align-self: center; }
  .about-media { aspect-ratio: auto; min-height: 420px; }
  .faq-grid { grid-template-columns: 0.6fr 1.4fr; gap: 48px; align-items: start; }
  .faq-grid h2 { position: sticky; top: calc(var(--header-h) + 24px); }
  .intake-card { grid-template-columns: 0.75fr 1.25fr; gap: 48px; padding: 56px; align-items: start; }
  .intake-copy { position: sticky; top: calc(var(--header-h) + 32px); }
  .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
  .footer-fine { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* Respect people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

