/* Midstate Local — one-page static site. No build step. */
:root {
  --bg: #ffffff;
  --paper: #f7f5f2;
  --ink: #2c2c32;
  --muted: #5c5c64;
  --line: #e4e0da;
  --accent: #c44a1c;
  --accent-ink: #9b3916;
  --max: 68rem;
  --pad: 1.25rem;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

a { color: var(--accent-ink); }
a:hover, a:focus-visible { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 0.75rem; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  display: block;
  flex: 0 1 auto;
  max-width: min(19rem, 100%);
  text-decoration: none;
}

.logo img { width: 100%; height: auto; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

/* Sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding-top: 2.75rem; padding-bottom: 3rem; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.7rem); max-width: 18ch; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.45rem;
}

/* Buttons / contact bar */
.contact-bar,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 2.75rem;
  text-align: center;
}

a.button:hover,
a.button:focus-visible {
  color: #fff;
  background: #1a1a1e;
}

a.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

a.button.secondary:hover,
a.button.secondary:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 1.25rem;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.card.featured {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.card .price {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.7rem;
  color: var(--ink);
}

.card p:not(.kicker) { margin: 0.4rem 0 0; color: var(--muted); }
.card .kicker { color: var(--accent); margin: 0 0 0.4rem; }
.card h3 { margin-bottom: 0.15rem; }
.grid.two > .card { height: 100%; }

.care {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}

.care h3 { margin-bottom: 0.35rem; }
.care p { margin: 0; color: var(--muted); }

/* How it works */
.steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

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

/* FAQ */
.faq-list {
  margin: 1.25rem 0 0;
  padding: 0;
}

.faq-list > div {
  border-top: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq-list > div:last-child { border-bottom: 1px solid var(--line); }

.faq-list dt {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

/* Contact */
.contact .lead { margin-bottom: 1.1rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.2rem 0;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-brand {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* Narrow phones */
@media (max-width: 419px) {
  html { font-size: 17px; }
  .logo { max-width: 14.5rem; }
  nav { width: 100%; }
  nav a { padding: 0.4rem 0.5rem 0.4rem 0; }
  a.button { width: 100%; }
  section { padding: 2.25rem 0; }
  .hero { padding-top: 1.85rem; }
}
