/* County.Land — Bitter + Redwood earth tones */

:root {
  /* Brand palette per Our Landmen LLC tokens */
  --redwood:    #7B2D26;  /* primary */
  --terracotta: #C76647;
  --copper:     #B07D5C;
  --sepia:      #8C6A4A;
  --cream:      #F5EFE6;
  --parchment:  #EFE6D6;
  --ink:        #1F1A14;
  --ink-soft:   #4A413A;
  --rule:       #C8B8A0;
  --rule-soft:  #E5DCCC;

  /* Type */
  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --max:   1140px;
  --gap:   1.25rem;
  --gap-l: 2.5rem;
  --gap-xl:4.5rem;

  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(139, 106, 74, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(123, 45, 38, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(139, 106, 74, 0.06) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.28  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.card { background: #FBF6EC !important; }
table.compare { background: #FBF6EC; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; max-width: 68ch; }

/* Section intros that sit directly above a card grid should span the full
   width of the grid below them, not get squashed by the 68ch p cap. */
.wrap:has(> .grid.cols-2) > p,
.wrap:has(> .grid.cols-3) > p,
.wrap:has(> .grid.cols-4) > p,
.wrap:has(> div[style*="grid-template-columns"]) > p { max-width: none; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.35rem; max-width: 64ch; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--gap-l) 0; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

section { padding: var(--gap-xl) 0; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 0.5rem;
}

/* ---------- HEADER ---------- */
header.site {
  background: var(--parchment);
  border-bottom: 2px solid var(--redwood);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--redwood); text-decoration: none; letter-spacing: -0.01em; }
.brand .dot { color: var(--terracotta); }
nav.primary { display: flex; gap: 1.4rem; align-items: center; }
nav.primary a { font-family: var(--sans); font-size: 0.92rem; color: var(--ink); text-decoration: none; }
nav.primary a:hover { color: var(--redwood); }
nav.primary a.is-active:not(.btn) { color: var(--redwood); font-weight: 700; box-shadow: inset 0 -3px 0 var(--terracotta); padding-bottom: 4px; }
nav.primary a.btn.is-active { background: var(--ink); }
@media (max-width: 720px) { nav.primary a:not(.btn) { display: none; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--redwood);
  color: var(--cream) !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--redwood);
  transition: background 0.15s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream) !important; }
.btn.ghost {
  background: transparent;
  color: var(--redwood) !important;
  border-color: var(--redwood);
}
.btn.ghost:hover { background: var(--redwood); color: var(--cream) !important; }

/* ---------- HERO ---------- */
.hero { padding: var(--gap-xl) 0 var(--gap-xl); background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%); }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 1.75rem; }
.hero .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- GRID ---------- */
.grid { display: grid; gap: var(--gap-l); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.card h3 { color: var(--redwood); margin-bottom: 0.5rem; }
.card.featured { border: 2px solid var(--redwood); }
.card .price { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--ink); display: block; margin: 0.5rem 0 0.75rem; }
.card .price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }

/* ---------- TABLE ---------- */
table.compare { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--rule-soft); }
table.compare thead th { background: var(--parchment); font-family: var(--serif); font-weight: 700; }
table.compare tbody tr:hover { background: var(--parchment); }

/* ---------- COVERAGE / COUNTY ---------- */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-weight: 600;
}
.badge.live { background: var(--redwood); color: var(--cream); }
.badge.soon { background: var(--sepia); color: var(--cream); }
.badge.wait { background: var(--rule); color: var(--ink); }

.stat-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stat-block .stat { background: var(--parchment); padding: 1rem; border-radius: var(--radius); border-left: 3px solid var(--redwood); }
.stat-block .stat .n { font-size: 1.6rem; font-weight: 700; display: block; }
.stat-block .stat .l { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 700px) { .stat-block { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FOOTER ---------- */
footer.site { background: var(--ink); color: var(--cream); padding: var(--gap-xl) 0 var(--gap); margin-top: 0; }
footer.site h4 { color: var(--terracotta); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
footer.site a { color: var(--cream); text-decoration: none; font-family: var(--sans); font-size: 0.9rem; display: block; padding: 0.2rem 0; }
footer.site a:hover { color: var(--terracotta); }
footer.site .colophon { border-top: 1px solid var(--ink-soft); margin-top: var(--gap-l); padding-top: 1rem; font-family: var(--sans); font-size: 0.8rem; color: var(--rule); text-align: center; }

/* ---------- FORMS ---------- */
input[type=text], input[type=email], select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
label { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); display: block; margin-bottom: 0.35rem; }
.form-row { margin-bottom: 1rem; }

/* ---------- DOC AESTHETIC TOUCHES ---------- */
.doc-rule { background-image: repeating-linear-gradient(180deg, transparent 0 1.6rem, var(--rule-soft) 1.6rem 1.61rem); padding: 0.5rem 0; }
blockquote.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1rem 0;
  max-width: 36em;
}

/* === Sketch-style background textures.
   Apply with class on a <section>. Tiled at low opacity, content stays readable.
   Tunable: --tex-opacity (default ~0.06) and --tex-size (default 320px tile). */
.tex { position: relative; }
.tex::before {
  content: "";
  position: absolute; inset: 0;
  background-repeat: repeat;
  background-size: var(--tex-size, 320px);
  opacity: var(--tex-opacity, 0.16);
  pointer-events: none;
  z-index: 0;
}
.tex > * { position: relative; z-index: 1; }
.tex-chain::before    { background-image: url("/assets/textures/chain.svg"); --tex-opacity: 0.18; }
.tex-ledger::before   { background-image: url("/assets/textures/ledger.svg"); --tex-opacity: 0.14; }
.tex-books::before    { background-image: url("/assets/textures/books.svg"); --tex-opacity: 0.16; }
.tex-tree::before     { background-image: url("/assets/textures/probate-tree.svg"); --tex-opacity: 0.18; }
.tex-survey::before   { background-image: url("/assets/textures/survey-grid.svg"); --tex-opacity: 0.14; --tex-size: 280px; }

/* === Tight footer (chrome.js renders this shape — sits on dark ink background) ===
   All colors !important because footer.site rules in this same stylesheet have
   high specificity and were dimming the new chrome.js content. */
footer.footer-tight { padding: 2.25rem 0 1.25rem !important; background: var(--ink) !important; color: #F5EFE6 !important; }
footer.footer-tight h4 { font-size: 0.78rem !important; margin: 0 0 0.55rem !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; color: var(--terracotta) !important; font-family: var(--sans) !important; }
footer.footer-tight a { display: block !important; font-family: var(--sans) !important; font-size: 0.88rem !important; padding: 0.18rem 0 !important; text-decoration: none !important; color: #F5EFE6 !important; }
footer.footer-tight a:hover { color: var(--terracotta) !important; }
footer.footer-tight p { font-family: var(--sans) !important; font-size: 0.86rem !important; color: #E8DEC8 !important; line-height: 1.5 !important; margin: 0.4rem 0 !important; }
footer.footer-tight p.addr { margin-top: 0.7rem !important; color: #E8DEC8 !important; }
footer.footer-tight p.addr a { display: inline !important; color: #F5EFE6 !important; padding: 0 !important; }
footer.footer-tight p.muted { font-size: 0.82rem !important; line-height: 1.5 !important; margin-top: 0.45rem !important; color: #E8DEC8 !important; }
footer.footer-tight .footer-secondary { margin-top: 1.5rem !important; padding-top: 1.25rem !important; border-top: 1px solid rgba(245,239,230,0.22) !important; }
footer.footer-tight .colophon {
  margin-top: 1rem !important; padding-top: 0.75rem !important; border-top: 1px solid rgba(245,239,230,0.22) !important;
  display: flex !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 0.5rem !important;
  font-family: var(--sans) !important; font-size: 0.82rem !important; color: #E8DEC8 !important;
}
footer.footer-tight .colophon a { display: inline !important; padding: 0 !important; font-size: inherit !important; color: #E8DEC8 !important; }
footer.footer-tight .colophon a:hover { color: var(--terracotta) !important; }

/* === MOBILE NAV (hamburger) === */
.nav-burger { display: none; cursor: pointer; padding: 0.5rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: block; }
  header.site .wrap { flex-wrap: wrap; }
  nav.primary { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.5rem; border-top: 1px solid var(--rule); margin-top: 0.5rem; }
  .nav-toggle:checked ~ nav.primary { display: flex !important; }
  nav.primary a:not(.btn) { display: block !important; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
  nav.primary a.btn { margin-top: 0.6rem; text-align: center; }
}

/* === MOBILE-WIDE STYLE PASS === */
@media (max-width: 720px) {
  html { font-size: 16px; }
  :root { --gap: 1rem; --gap-l: 1.4rem; --gap-xl: 2rem; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.15; }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.85rem); line-height: 1.2; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 1.5rem 0; }
  .hero .lede { font-size: 1.02rem; }
  .hero .ctas { flex-direction: column; align-items: stretch; }
  .hero .ctas .btn { text-align: center; }
  .hero-anim { font-size: 0.62rem !important; }
  .anim-scroll { height: 380px !important; }
  .anim-table th, .anim-table td { padding: 0.28rem 0.3rem !important; }
  /* compare tables: horizontal scroll wrapper */
  table.compare { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  table.compare th, table.compare td { padding: 0.55rem 0.65rem; font-size: 0.86rem; }
  /* general image safety */
  img, figure { max-width: 100%; height: auto; }
  /* leon county map sidebar already collapses; ensure stat block sane */
  .stat-block { gap: 0.6rem; }
  .stat-block .stat { padding: 0.7rem; }
  .stat-block .stat .n { font-size: 1.25rem; }
  /* footer cols stack */
  footer.footer-tight .grid.cols-4 { grid-template-columns: 1fr 1fr !important; }
  footer.footer-tight .grid.cols-3 { grid-template-columns: 1fr !important; }
  /* generic 2-col inline grids fallback */
  div[style*="grid-template-columns"][style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* card padding */
  .card { padding: 1.1rem; }
  /* generic centered .wrap padding tightening */
  .wrap { padding: 0 0.85rem; }
  /* leon banner smaller */
  div[style*="terracotta"][style*="text-align: center"] { font-size: 0.78rem !important; padding: 0.5rem 0 !important; }
}

@media (max-width: 480px) {
  /* hide desktop-only hero animation on smallest screens — too cramped */
  .hero-anim { display: none !important; }
}
