/* ==========================================================================
   JacksonCountyFLLandForSale.com — Cave Earth
   Palette: Cave Shadow #2C2118 · Wet Limestone #6B7B72 · Dry Karst #C4B49A
            Spring Cream #F5F0E8 · Rust Vein #8B4A2F
   Type: Lora (headings) · Inter (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cave:      #2C2118;
  --cave-deep: #1E1610;
  --limestone: #6B7B72;
  --karst:     #C4B49A;
  --cream:     #F5F0E8;
  --rust:      #8B4A2F;
  --rust-dark: #6E3822;
  --body-ink:  #3D2E22;
  --card-bg:   #FFFFFF;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap:      960px;
  --wrap-text: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--body-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cave);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---- Layout helpers ---- */
.wrap      { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-text { max-width: var(--wrap-text); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header / nav ---- */
.site-header {
  background: var(--cave);
  border-bottom: 3px solid var(--rust);
}
.nav-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { text-decoration: none; line-height: 1.15; }
.brand-top {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--karst);
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; color: var(--karst); }
.nav-links a.nav-cta {
  background: var(--rust);
  color: var(--cream);
  opacity: 1;
  padding: 0.45rem 1rem;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--rust-dark); color: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--karst); opacity: 1; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.78rem;
  padding: 0.9rem 0 0;
  color: var(--limestone);
}
.breadcrumbs a { color: var(--limestone); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rust); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--body-ink); }

/* ---- Hero ---- */
.hero {
  background: var(--cave);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--rust);
}
.hero .eyebrow { color: var(--karst); }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--karst);
  max-width: 600px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Inner-page hero (shorter) */
.hero.hero-inner-page { padding: 2.25rem 0 2rem; }
.hero.hero-inner-page h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.7rem;
}

/* ---- Buttons ---- */
.btn-group { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--rust); color: var(--cream); }
.btn-primary:hover { background: var(--rust-dark); color: var(--cream); }
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--limestone);
}
.btn-outline-light:hover { border-color: var(--karst); color: var(--karst); }
.btn-outline-dark {
  background: transparent;
  color: var(--rust);
  border: 1.5px solid var(--rust);
}
.btn-outline-dark:hover { background: var(--rust); color: var(--cream); }

/* ---- Stat strip ---- */
.stat-strip { background: var(--karst); padding: 1.2rem 0; }
.stat-strip .wrap { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cave);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rust-dark);
  margin-top: 0.2rem;
}

/* ---- Sections ---- */
.section { padding: 3.25rem 0; }
.section-tight { padding: 2.25rem 0; }
.section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 1rem;
}
.section h3 { font-size: 1.1rem; margin: 1.75rem 0 0.6rem; }
.section p { max-width: var(--wrap-text); margin-bottom: 1rem; }
.section ul, .section ol {
  max-width: var(--wrap-text);
  margin: 0 0 1rem 1.4rem;
}
.section li { margin-bottom: 0.45rem; }

/* Dark section */
.section-dark { background: var(--cave); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: var(--karst); }
.section-dark .eyebrow { color: var(--karst); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.75rem;
}
.card {
  background: var(--card-bg);
  border-top: 3px solid var(--rust);
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(44, 33, 24, 0.08);
}
.card h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.card p { font-size: 0.875rem; color: var(--limestone); line-height: 1.6; margin: 0; }
.card a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card .card-link { display: inline-block; margin-top: 0.6rem; }

/* Linked card variant (whole card clickable) */
a.card-link-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.card-link-block:hover {
  box-shadow: 0 4px 14px rgba(44, 33, 24, 0.16);
  transform: translateY(-2px);
  color: inherit;
}

/* ---- Listings iframe ---- */
.idx-frame-shell {
  background: var(--card-bg);
  border: 1px solid var(--karst);
  padding: 0.5rem;
  margin-top: 1.5rem;
}
.idx-frame-shell iframe {
  width: 100%;
  height: 1100px;
  border: 0;
  display: block;
}
.listing-switch {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.listing-switch a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--rust);
  color: var(--rust);
}
.listing-switch a:hover { background: var(--rust); color: var(--cream); }
.listing-switch a[aria-current="page"] { background: var(--rust); color: var(--cream); }

/* ---- FAQ ---- */
.faq-list { max-width: var(--wrap-text); margin-top: 1.25rem; }
.faq-list details {
  background: var(--card-bg);
  border-left: 3px solid var(--rust);
  margin-bottom: 0.6rem;
  padding: 0.9rem 1.1rem;
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cave);
  cursor: pointer;
}
.faq-list details p { margin: 0.7rem 0 0; font-size: 0.92rem; }

/* ---- Prose article pages ---- */
.article { padding: 2.5rem 0 3.25rem; }
.article h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
.article h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: 0.45rem; }
.article .lede-text {
  font-size: 1.08rem;
  color: var(--cave);
  line-height: 1.7;
}

/* Callout */
.callout {
  background: var(--card-bg);
  border-left: 3px solid var(--karst);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout strong { color: var(--cave); }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  background: var(--card-bg);
}
th, td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--cream);
}
th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--cave);
}
td { font-variant-numeric: tabular-nums; }

/* ---- CTA band ---- */
.cta-band { background: var(--rust); padding: 2.75rem 0; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: 1.35rem;
  color: var(--cream);
  margin: 0;
}
.cta-band p { color: var(--karst); font-size: 0.88rem; margin: 0.3rem 0 0; }
.cta-band .btn-cta {
  background: var(--cream);
  color: var(--rust);
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-band .btn-cta:hover { background: var(--karst); color: var(--rust-dark); }

/* ---- Contact form ---- */
.contact-form {
  max-width: 560px;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; gap: 0.3rem; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cave);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--karst);
  background: var(--card-bg);
  color: var(--body-ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--rust);
}
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--limestone);
  max-width: 560px;
}
.honey-field { position: absolute; left: -9999px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--cave-deep);
  color: var(--karst);
  padding: 2.75rem 0 0;
  margin-top: 0;
  font-size: 0.85rem;
}
.footer-cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.25rem;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--karst);
}
.footer-brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.65;
  margin-bottom: 0.9rem;
}
.footer-agent { color: var(--cream); font-weight: 600; margin-bottom: 0.35rem; }
.footer-contact a { color: var(--karst); text-decoration: none; }
.footer-contact a:hover { color: var(--cream); }
.footer-broker {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--limestone);
}
.footer-broker strong { color: var(--karst); }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a { color: var(--karst); text-decoration: none; }
.site-footer li a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(198, 180, 154, 0.2);
  padding: 1.1rem 1.25rem;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--limestone);
}
.footer-bottom a { color: var(--limestone); text-decoration: none; }
.footer-bottom a:hover { color: var(--karst); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .nav-bar { justify-content: center; text-align: center; }
  .nav-links { justify-content: center; gap: 1rem; }
  .hero { padding: 2.5rem 0 2.25rem; }
  .stat-strip .wrap { gap: 1.5rem; }
  .idx-frame-shell iframe { height: 1400px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card-link-block { transition: none; }
}
