/* Tooth Picks Farrier Service
   Palette: saddle leather, hunter green, cream, and aged brass (the colors of tack rooms and show rings). */
:root {
  --bg: #f7f1e5;
  --surface: #fffaf1;
  --surface-alt: #efe4cf;
  --ink: #2a1d14;
  --muted: #6b5a4a;
  --leather: #7b4a2b;
  --leather-dark: #5b351e;
  --hunter: #2e4a36;
  --hunter-dark: #1e3326;
  --brass: #b48a4a;
  --line: #dccdb2;
  --danger: #9b2c1f;
  --success: #2e6b3f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(42, 29, 20, 0.06), 0 8px 24px rgba(42, 29, 20, 0.08);
  --display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leather); }
a:hover { color: var(--leather-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 51, 38, 0.97);
  color: #f3e9d4;
  border-bottom: 3px solid var(--brass);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d8c49c; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #f3e9d4; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 6px; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(243, 233, 212, 0.4); color: #f3e9d4; border-radius: 6px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--hunter-dark); padding: 8px 20px 16px; border-bottom: 3px solid var(--brass);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(243, 233, 212, 0.1); }
  .site-nav .btn { margin: 12px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 2px solid transparent; border-radius: 999px;
  padding: 10px 22px; font: inherit; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--leather); color: #fff; }
.btn-primary:hover { background: var(--leather-dark); color: #fff; }
.btn-green { background: var(--hunter); color: #fff; }
.btn-green:hover { background: var(--hunter-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(0, 0, 0, 0.15); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #c79d5c; color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--hunter-dark);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 22, 0.1) 0%, rgba(20, 30, 22, 0.35) 45%, rgba(20, 24, 18, 0.85) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero p { font-size: 1.15rem; max-width: 52ch; color: #f1e8d6; }
.hero .eyebrow { color: #e3c98f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leather); margin-bottom: 8px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.rule { width: 64px; height: 3px; background: var(--brass); border: 0; margin: 0 0 20px; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--hunter);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.service-card.forge { border-top-color: var(--leather); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.service-card li { padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.service-card li:last-child { border-bottom: 0; }
.service-card li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 10px;
  border: 3px solid var(--brass); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.service-card li span { display: block; color: var(--muted); font-size: 0.92rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.form-aside p { color: var(--muted); }
.form-aside .steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; }
.form-aside .steps li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.form-aside .steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--hunter); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.card-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hunter); box-shadow: 0 0 0 3px rgba(46, 74, 54, 0.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.87rem; min-height: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.form-status { font-weight: 600; }
.form-status.error { color: var(--danger); }
.form-success {
  display: none; border: 2px solid var(--success); background: #eef5ee; border-radius: var(--radius);
  padding: 22px; margin-top: 4px;
}
.form-success h3 { color: var(--success); }
.form-success p:last-child { margin-bottom: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.headshot {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #111;
  box-shadow: var(--shadow); border: 6px solid var(--surface); outline: 1px solid var(--line);
}
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; }
.about-text blockquote {
  margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brass);
  font-family: var(--display); font-style: italic; color: var(--leather-dark);
}

/* ---------- Boots to Sabatons ---------- */
.partner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--hunter-dark); color: #efe4cf; border-radius: 14px; padding: 32px;
  border: 1px solid #3c5a45; box-shadow: var(--shadow);
}
.partner-logo { display: block; width: 200px; border-radius: 12px; overflow: hidden; border: 3px solid var(--brass); transition: transform 0.2s; }
.partner-logo:hover { transform: scale(1.03); }
.partner h2 { color: #fff; }
.partner .eyebrow { color: #e3c98f; }
.partner p { color: #d9ccb2; }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 1rem; font-family: var(--body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-card p { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.todo { background: #fff4d6; border: 1px dashed var(--brass); border-radius: 4px; padding: 0 6px; color: var(--muted); font-style: italic; }

.site-footer { background: var(--ink); color: #c9b99c; padding: 36px 0; font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #e3c98f; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .services-grid, .form-layout, .about-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .form-layout { gap: 24px; }
  .about-layout { gap: 28px; }
  .headshot { max-width: 360px; }
  .partner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 28px 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .card-form, .service-card { padding: 20px; }
  .hero .wrap { padding-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .partner-logo { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partner-logo { transition: none; }
}
