/* ================================================================ */
/* NechesLand — shared stylesheet                                    */
/* Brand: Bitter slab serif, Redwood/cream earth-tone palette        */
/* ================================================================ */

:root {
  --bg:        #F5F0E6;
  --paper:     #FBF7EE;
  --paper-2:   #EFE5D2;
  --ink:       #2C2825;
  --ink-mute:  #6B5F54;
  --rule:      #C9B89A;
  --accent:    #B85A2C;
  --accent-dk: #8E3F18;
  --moss:      #5C6B3F;
  --field-bg:  #FFFFFF;
  --field-br:  #D9C9AC;
  --good:      #3F5A2D;
  --good-bg:   #E8F0E2;
  --warn:      #7A2E18;
  --warn-bg:   #F5E2DD;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bitter', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; }
a:hover { border-bottom-color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ----- Layout primitives ----- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
/* wrap-narrow: centered 720px column. All inner text and content blocks
   share the same centered column — consistent left/right alignment site-wide. */
.wrap-narrow { max-width: 1080px; margin: 0 auto; padding: 0 24px; text-align: center; }
.wrap-narrow > h1,
.wrap-narrow > h2,
.wrap-narrow > h3,
.wrap-narrow > h4,
.wrap-narrow > p,
.wrap-narrow > ul,
.wrap-narrow > ol,
.wrap-narrow > blockquote,
.wrap-narrow > .eyebrow,
.wrap-narrow > .lede,
.wrap-narrow > .cta-row,
.wrap-narrow > .form-card,
.wrap-narrow > .wizard,
.wrap-narrow > .review,
.wrap-narrow > .grid,
.wrap-narrow > .grid-2,
.wrap-narrow > .grid-3,
.wrap-narrow > .grid-4,
.wrap-narrow > .divider,
.wrap-narrow > form { max-width: 720px; margin-left: auto; margin-right: auto; }
/* Visual blocks (hero artwork, landmarks, captions) get the full width
   of the centered column for impact */
.wrap-narrow > .image-caption,
.wrap-narrow > .county-hero,
.wrap-narrow > .landmark { max-width: none; }
.wrap-narrow > .cta-row { justify-content: center; }
/* lists: centered, no leading bullet column to throw alignment */
.wrap-narrow > ul,
.wrap-narrow > ol {
  text-align: center;
  list-style: none;
  padding-left: 0;
}
/* form fields keep left-aligned labels for usability */
.wrap-narrow > .form-card,
.wrap-narrow > .wizard,
.wrap-narrow > .review { text-align: left; }
/* image captions and landmark cards: center their text inside the centered card */
.wrap-narrow > .image-caption { text-align: center; }
.wrap-narrow > .landmark { text-align: center; }
.wrap-narrow > .landmark .body { text-align: center; }
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
@media (max-width: 540px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  section { padding: 44px 0; }
}

/* ----- Header / Nav ----- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 18px;
}
@media (min-width: 821px) {
  header.site .bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 32px;
  }
  header.site .bar > .mark { justify-self: start; }
  header.site .bar > nav { justify-self: center; }
  header.site .bar > .cta-search { justify-self: end; }
}
header.site .mark {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
header.site .mark span { display: inline; }
header.site .mark .m-neches { color: var(--accent); }
header.site .mark .m-land   { color: var(--ink); }
header.site .mark .m-com    { color: var(--moss); }
header.site .mark:hover { border-bottom-color: transparent; }
header.site nav ul {
  display: flex; gap: 26px; list-style: none;
  font-size: 14.5px;
}
header.site nav a {
  color: var(--ink); border-bottom: 1px solid transparent;
  font-weight: 600;
  padding-bottom: 3px;
  letter-spacing: 0.01em;
}
header.site nav a:hover, header.site nav a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
header.site .cta-search {
  background: var(--accent); color: var(--paper);
  padding: 9px 18px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.04em; border-radius: 2px; border: none;
  white-space: nowrap;
}
header.site .cta-search:hover {
  background: var(--accent-dk); border-bottom-color: transparent; color: var(--paper);
}

/* ----- County sub-nav (sits below main header on county-related pages) ----- */
.subnav {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.subnav .wrap {
  display: flex; gap: 4px; flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px; padding-bottom: 10px;
}
.subnav a {
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
.subnav a:hover {
  color: var(--accent);
  border-color: var(--rule);
  background: var(--paper);
}
.subnav a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--paper);
}
@media (max-width: 820px) {
  header.site nav { display: none; }
  header.site nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 14px 24px; }
  header.site nav.open ul { flex-direction: column; gap: 14px; }
  header.site .menu-toggle { display: inline-block; }
}
@media (min-width: 821px) {
  header.site .menu-toggle { display: none; }
}
.menu-toggle {
  background: transparent; border: 1px solid var(--rule);
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); padding: 7px 12px; border-radius: 2px;
  cursor: pointer;
}

/* ----- Hero (image-backed) ----- */
/* Painterly fallback gradient applies when --bg-image is unset.
   When --bg-image is set inline, the URL wins via the var() fallback chain. */
.hero-img {
  position: relative;
  background: var(--paper-2);
  background-image: var(--bg-image,
    radial-gradient(ellipse at 30% 35%, rgba(184,90,44,.30), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(92,107,63,.35), transparent 60%),
    linear-gradient(180deg, #C9904A 0%, #8E5538 45%, #4A3528 100%)
  );
  background-size: cover;
  background-position: center;
  min-height: 460px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--rule);
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,40,37,.10) 0%, rgba(44,40,37,.45) 100%);
  pointer-events: none;
}
.hero-img .wrap, .hero-img .wrap-narrow {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-img h1, .hero-img p, .hero-img .eyebrow {
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.hero-img .eyebrow { color: #F2C68A; }
.hero-img .btn-secondary { color: var(--paper); border-color: var(--paper); }
.hero-img .btn-secondary:hover { background: var(--paper); color: var(--ink); }

/* Smaller hero variant for inner pages */
.hero-img.compact { min-height: 340px; }
.hero-img.compact .wrap, .hero-img.compact .wrap-narrow {
  padding-top: 48px; padding-bottom: 48px;
}

/* ----- Typography ----- */
.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.15rem; font-weight: 700;
  margin: 22px 0 8px;
}
p { margin-bottom: 16px; }
p.lede { font-size: 1.18rem; }
p.muted { color: var(--ink-mute); }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
em { font-style: italic; }

/* Decorative section divider — sketched line with center diamond */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 36px 0 28px;
  color: var(--rule);
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--rule);
}
.divider span {
  width: 8px; height: 8px;
  background: var(--accent); transform: rotate(45deg);
}

/* ----- Buttons ----- */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px; align-items: center;
}
.btn {
  display: inline-block;
  font-family: 'Bitter', Georgia, serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: 2px;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dk); border-bottom: none; color: var(--paper); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ----- Cards / grids ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 22px;
  border-radius: 3px;
}
.card h3 { margin-top: 0; color: var(--accent); }
.card p:last-child { margin-bottom: 0; }

.card-image {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card-image:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px -10px rgba(44,40,37,.30);
  border-bottom: 1px solid var(--accent);
}
a.card-image:hover h3 { color: var(--accent); }
.card-image .image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background-image: var(--bg-image,
    radial-gradient(ellipse at 30% 35%, rgba(184,90,44,.25), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(92,107,63,.30), transparent 60%),
    linear-gradient(180deg, #C9904A 0%, #8E5538 100%)
  );
  background-size: cover;
  background-position: center;
}
.card-image .image-wrap::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 -40px 40px -20px rgba(44,40,37,.35);
}
.card-image .body { padding: 20px 22px 22px; }
.card-image h3 { margin-top: 0; }
.card-image p:last-child { margin-bottom: 0; }

/* ----- Counties chips ----- */
.counties {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 24px;
}
.counties span {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 13px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  font-weight: 600;
}

/* ----- Trust strip (small icons under hero) ----- */
.strip {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.strip .row {
  display: block;
}
.strip .row > div {
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.strip strong { color: var(--accent); }

/* ----- Form ----- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 26px 24px;
  border-radius: 3px;
  margin-top: 22px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 700;
  margin-bottom: 6px;
}
.field .hint {
  display: block; font-size: 13px; color: var(--ink-mute);
  margin-bottom: 8px; font-weight: 400; line-height: 1.5;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: 'Bitter', Georgia, serif;
  font-size: 16px;
  padding: 11px 13px;
  background: var(--field-bg);
  border: 1px solid var(--field-br);
  border-radius: 2px;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 90, 44, 0.15);
}
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .row-fields { grid-template-columns: 1fr; gap: 0; } }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; margin-top: 8px;
}
.form-note { font-size: 13px; color: var(--ink-mute); flex: 1 1 240px; }

.success, .error {
  padding: 16px 18px; border-radius: 2px;
  margin-top: 16px; font-size: 15px; display: none;
}
.success { background: var(--good-bg); border: 1px solid #8FA67A; color: var(--good); }
.error { background: var(--warn-bg); border: 1px solid #C7836E; color: var(--warn); }

/* ----- Wizard ----- */
.wizard {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 32px 32px 28px;
  margin-top: 8px;
  min-height: 420px;
  display: flex; flex-direction: column;
}
@media (max-width: 540px) { .wizard { padding: 24px 20px; } }
.wizard .progress {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.wizard .progress span {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--rule);
}
.wizard .progress span.done { background: var(--accent); }
.wizard .step { display: none; flex: 1; }
.wizard .step.active { display: flex; flex-direction: column; }
.wizard .step h2 { margin-bottom: 12px; }
.wizard .step p.q-hint { font-size: 14px; color: var(--ink-mute); margin-bottom: 22px; }
.wizard .step .field:last-of-type { margin-bottom: auto; }
.wizard .nav-row {
  display: flex; gap: 12px; align-items: center;
  padding-top: 22px; border-top: 1px dashed var(--rule);
  margin-top: 18px;
}
.wizard .nav-row .spacer { flex: 1; }
.wizard .step-num {
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.wizard .review {
  background: var(--bg); border: 1px solid var(--rule);
  padding: 16px 18px; border-radius: 2px;
  font-size: 15px; line-height: 1.7;
  margin-bottom: 16px;
}
.wizard .review div { margin-bottom: 6px; }
.wizard .review strong { color: var(--accent); display: inline-block; min-width: 120px; }
.wizard .thanks {
  text-align: center; padding: 32px 12px;
}
.wizard .thanks h2 { color: var(--accent); margin-bottom: 12px; }
.wizard .h-callout {
  background: var(--bg); border-left: 3px solid var(--accent);
  padding: 10px 14px; margin-bottom: 18px;
  font-size: 14px; color: var(--ink-mute);
  display: none;
}
.wizard .h-callout.show { display: block; }

/* ----- FAQ accordion (zero-JS) ----- */
.faq details {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  font-weight: 700; font-size: 1.02rem;
  padding-right: 28px; position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  font-size: 22px; font-weight: 400; color: var(--accent);
  transition: transform .15s;
}
.faq details[open] summary::after { content: '–'; }
.faq details > p, .faq details > ul {
  margin-top: 10px; color: var(--ink); font-size: 15.5px;
}

/* ----- Footer ----- */
footer.site {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 36px 0 28px;
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.8;
  margin-top: 48px;
}
footer.site .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { footer.site .grid { grid-template-columns: 1fr; gap: 18px; } }
footer.site h4 {
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px; font-weight: 700;
}
footer.site strong { color: var(--ink); font-weight: 700; }
footer.site a { color: var(--ink-mute); border-bottom: 1px solid transparent; }
footer.site a:hover { color: var(--accent); border-bottom-color: var(--accent); }
footer.site .legal {
  font-size: 12.5px; line-height: 1.65;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
}

/* ----- TBD highlight (visible during dev) ----- */
.tbd {
  background: #FFF6CC; padding: 1px 4px;
  border-bottom: 1px dashed #B89000;
  border-radius: 1px;
}

/* ----- Utility ----- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
