/* Stone Fork Home Partners — site styles
   Palette: limestone page, oak-green ink, slate for quiet text, one amber for the mark. */

:root {
  --paper: #f3f2ed;
  --paper-deep: #e7e5dc;
  --ink: #1b211e;
  --oak: #24443a;
  --oak-dark: #182f28;
  --slate: #4f6470;
  --amber: #b8761f;
  --line: #cfcbbf;
  --measure: 42rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

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

.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

/* Header */

.site-header {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Type */

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1.1rem; }
p.quiet, .quiet { color: var(--slate); }
p.lede { font-size: 1.2rem; line-height: 1.55; }

/* Sections */

.hero { padding: 4rem 0 3rem; }
.hero h1 { margin-bottom: 1.4rem; }

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section h2 { margin-bottom: 1.1rem; }

/* Buttons */

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--oak);
  line-height: 1.2;
}

.button.primary { background: var(--oak); color: #fff; }
.button.primary:hover { background: var(--oak-dark); border-color: var(--oak-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--oak); }
.button.secondary:hover { background: var(--paper-deep); color: var(--oak-dark); }

/* Steps — a real sequence, so numbers carry meaning */

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

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--oak);
  color: var(--oak);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.steps h3 { margin-top: 0; }
.steps p { margin-bottom: 0; }

/* Person block */

.person {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.person .photo {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-deep);
}

.person .photo-placeholder {
  width: 150px;
  height: 180px;
  border-radius: 6px;
  background: var(--paper-deep);
  border: 1.5px dashed var(--line);
  color: var(--slate);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
}

.person h3 { margin-top: 0.15rem; }

.contact-lines { margin: 1rem 0 0; padding: 0; list-style: none; }
.contact-lines li { margin-bottom: 0.35rem; }
.contact-lines span { color: var(--slate); display: inline-block; min-width: 5.5rem; }

@media (max-width: 34rem) {
  .person { grid-template-columns: 1fr; }
}

/* County list */

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

.counties li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
}

/* Form */

.form { display: grid; gap: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus { border-color: var(--oak); outline: none; box-shadow: 0 0 0 3px rgba(36, 68, 58, 0.15); }

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

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.93rem;
  line-height: 1.5;
}

.consent input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--oak); }

.form button {
  font: inherit;
  cursor: pointer;
  justify-self: start;
}

/* Long-form pages (privacy, SMS terms) */

.doc { padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .effective { color: var(--slate); margin-bottom: 2rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--slate);
}

.site-footer .wrap { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--slate); }
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 120ms ease, color 120ms ease; }
}
