/* Faringdon Field — styles
   Warm countryside dog brand. Mobile-first. AA contrast. CLS-safe. */

:root {
  --primary: #3F6B4C;
  --primary-dark: #2C4D38;
  --accent: #C9883B;
  --accent-dark: #A96E26;      /* fills/borders only — fails AA as text */
  --accent-text: #8A5A1C;      /* darker accent for text on cream/white (AA) */
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --ink: #23291F;
  --muted: #5C6256;            /* ~5.8:1 on cream, passes AA for body text */
  --success: #4E8C5A;
  --border: #E4DBC9;
  --shadow: 0 1px 2px rgba(35,41,31,.06), 0 8px 24px rgba(35,41,31,.08);
  --shadow-lg: 0 12px 40px rgba(35,41,31,.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--primary-dark); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.12rem; color: var(--ink); }
p { margin: 0 0 1rem; }
a { color: var(--primary); }
img, svg { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--primary-dark); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 720px; }
.center { text-align: center; }
.center .ticks { display: inline-block; text-align: left; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; color: #3a4233; max-width: 65ch; }
.section .lede { margin-bottom: 1.6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.25rem;
  background: rgba(250,246,238,.9); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--primary-dark); font-weight: 700; }
.brand__mark { display: inline-flex; }
.brand__name { font-family: var(--font-head); font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--primary); }
.site-nav a:first-child, .site-nav a:nth-child(2) { display: none; }
@media (min-width: 760px) { .site-nav a:first-child, .site-nav a:nth-child(2) { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--small { padding: .5rem 1rem; font-size: .9rem; background: var(--primary); color: #fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, #F4E6C9 0%, rgba(244,230,201,0) 60%),
    linear-gradient(180deg, #FBF7EC 0%, var(--bg) 100%);
  padding: 1.5rem 0 2.5rem;
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 1.5rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 700;
  color: var(--accent-text); margin: 0 0 .6rem;
}
.hero__subhead { font-size: 1.15rem; color: #3a4233; max-width: 60ch; }
.hero__points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.hero__points li { position: relative; padding-left: 1.7rem; color: var(--ink); }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem;
  background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(78,140,90,.15);
}
.hero__visual { order: 2; } /* mobile: copy, then vote, then the illustration */
.scene { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* Vote module */
.vote { width: 100%; }
.vote__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem;
}
.vote__kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); margin: 0 0 .3rem; }
.vote__q { font-size: clamp(1.35rem, 4vw, 1.7rem); margin: 0 0 1rem; }
.vote__options { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.vote-btn {
  width: 100%; min-height: 52px; text-align: left; font-family: var(--font-body);
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1rem; cursor: pointer; display: flex; align-items: center; gap: .6rem;
  transition: border-color .15s, background .15s, transform .1s;
}
.vote-btn:hover { border-color: var(--primary); }
.vote-btn:active { transform: translateY(1px); }
.vote-btn--yes { border-color: var(--success); background: #F1F7F0; }
.vote-btn--yes:hover { background: #E6F1E5; }
.vote-btn__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: var(--success); color: #fff; font-size: .9rem;
}
.vote-btn[aria-pressed="true"], .vote-btn.is-selected { border-color: var(--primary); background: #EEF4EC; box-shadow: 0 0 0 3px rgba(63,107,76,.15); }
.vote__trust { font-size: .9rem; color: var(--muted); margin: .2rem 0 0; }

/* Progressive details */
.vote__details { margin-top: 1.2rem; border-top: 1px dashed var(--border); padding-top: 1.1rem; }
.vote__chosen { font-weight: 600; color: var(--primary-dark); margin: 0 0 1rem; padding: .6rem .8rem; background: #F1F7F0; border-radius: var(--radius-sm); }
.field { margin: 0 0 1rem; }
.field label, .field__label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 .35rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(63,107,76,.15); }
.field textarea { resize: vertical; min-height: 76px; }
.field__note { font-size: .85rem; margin: .35rem 0 0; }
.field__note.is-ok { color: var(--success); }
.field__note.is-far { color: var(--accent-text); }

/* Chips (price + times) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: .5rem .9rem; cursor: pointer;
  min-height: 40px;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--block + .vote__finePrint { margin-top: .6rem; }
.vote__finePrint { font-size: .82rem; color: var(--muted); text-align: center; }

/* Thanks state */
.vote__thanks { text-align: center; padding: 1rem 0; }
.vote__thanksIcon { font-size: 2.4rem; margin-bottom: .3rem; }
.vote__share { margin-top: 1rem; color: var(--muted); }
.linklike { background: none; border: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Counter */
.counter { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.counter__bar { height: 10px; background: #EDE7D8; border-radius: 999px; overflow: hidden; }
.counter__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--success), var(--primary)); border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.counter__text { font-size: .92rem; color: var(--muted); margin: .5rem 0 0; text-align: center; }
.counter__text strong { color: var(--primary-dark); }

/* Sections */
.section { padding: 3rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--cta { background: linear-gradient(180deg, #F1F5EC, var(--bg)); }
.section--closing { background: var(--primary-dark); color: #EAF0E6; padding: 3.5rem 0; }
.section--closing h2 { color: #fff; }
.section--closing .lede { color: #D5E0CE; }
.section--closing .ticks li { color: #EAF0E6; }
.section--closing .ticks li::before { background: var(--accent); }

/* Ticks / lists */
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.ticks--center { justify-items: start; max-width: 30rem; margin-inline: auto; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem;
  background: var(--success); color: #fff; border-radius: 50%; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; counter-reset: s; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__n { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.steps li strong { display: block; }
.steps li p { margin: .2rem 0 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .cards--who, .cards--features { grid-template-columns: repeat(4, 1fr); } }
.cards li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem; }
.section--alt .cards li { background: var(--bg); }
.cards li h3 { margin: 0 0 .35rem; }
.cards li p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Drive list */
.drive { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: .5rem; }
@media (min-width: 600px) { .drive { grid-template-columns: 1fr 1fr; } }
.drive li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.section--alt .drive li { background: var(--bg); }
.drive li span:last-child { color: var(--accent-text); font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { margin-top: 1.2rem; display: grid; gap: .6rem; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1rem; }
.section--alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; color: #3a4233; }

/* CTA section button spacing */
.section--cta .btn, .section--closing .btn { margin-top: .5rem; }

/* Footer */
.site-footer { background: #2A3324; color: #C8D2BE; padding: 2.5rem 0 6rem; }
.site-footer .wrap { max-width: 720px; }
.site-footer__brand { font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin: 0 0 .5rem; }
.site-footer a { color: #EBD9B6; }
.site-footer .small { margin-top: 1rem; }
.site-footer .muted { color: #9AA48C; }

/* Sticky mobile bar */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(250,246,238,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(35,41,31,.1);
}
@media (min-width: 760px) { .stickybar { display: none !important; } .site-footer { padding-bottom: 2.5rem; } }

/* Desktop hero two-column */
@media (min-width: 880px) {
  .hero { padding-top: 2.5rem; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; grid-template-areas: "copy vote" "visual vote"; align-items: start; column-gap: 2.5rem; }
  .hero__copy { grid-area: copy; }
  .hero__visual { grid-area: visual; order: 0; margin-top: .5rem; }
  .vote { grid-area: vote; position: sticky; top: 5rem; }
}
