/* Patillo Property Sites — shared styles
   Property-suggestive palette, hand-built, no framework.
   Used by both the land-only site and the package site.
*/

:root {
  /* Earth / sky / cedar palette */
  --c-earth:        #6b4423;   /* cedar / red dirt */
  --c-earth-soft:   #a07351;
  --c-sky:          #87a7c4;   /* north texas sky */
  --c-sky-deep:     #3a5878;
  --c-cedar:        #4a6b3a;   /* live oak / juniper */
  --c-cedar-soft:   #7a9466;
  --c-stone:        #c9bfa8;
  --c-paper:        #f6f1e7;
  --c-paper-warm:   #ece4d2;
  --c-ink:          #1f1a14;
  --c-ink-soft:     #4d443a;
  --c-line:         #b8a98c;
  --c-warn:         #8b3a1f;   /* honest-copy accent for caveats */

  /* Type scale */
  --t-base: 1rem;
  --t-sm:   0.875rem;
  --t-lg:   1.125rem;
  --t-xl:   1.375rem;
  --t-2xl:  1.75rem;
  --t-3xl:  2.25rem;
  --t-4xl:  3rem;
  --t-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --t-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-serif: Georgia, "Iowan Old Style", "Palatino", serif;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;

  /* Layout */
  --w-prose:  42rem;
  --w-wide:   64rem;
  --r-sm:     4px;
  --r-md:     8px;
  --r-lg:     16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--t-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
}

a { color: var(--c-sky-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-ink); }

/* Layout primitives */
.wrap        { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s-5); }
.wrap-prose  { max-width: var(--w-prose); margin: 0 auto; padding: 0 var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-xl > * + * { margin-top: var(--s-7); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr 1fr; }
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--t-serif); line-height: 1.2; color: var(--c-ink); margin: 0 0 var(--s-3); }
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-2xl); margin-top: var(--s-7); }
h3 { font-size: var(--t-xl); margin-top: var(--s-5); }
p  { margin: 0 0 var(--s-4); }
small, .small { font-size: var(--t-sm); color: var(--c-ink-soft); }
.lede { font-size: var(--t-lg); color: var(--c-ink-soft); }
.mono { font-family: var(--t-mono); font-size: var(--t-sm); }

/* Sections */
section { padding: var(--s-7) 0; }
section + section { border-top: 1px solid var(--c-line); }
section.alt { background: var(--c-paper-warm); }
section.ink { background: var(--c-ink); color: var(--c-paper); }
section.ink h1, section.ink h2, section.ink h3 { color: var(--c-paper); }

/* Hero placeholder (drone footage slot) */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--c-sky) 0%, var(--c-cedar-soft) 50%, var(--c-earth-soft) 100%);
  color: var(--c-paper);
  padding: var(--s-8) 0;
}
.hero__placeholder-label {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  background: rgba(31,26,20,0.7);
  color: var(--c-paper);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-family: var(--t-mono);
  font-size: var(--t-sm);
}
.hero__inner { max-width: var(--w-prose); }
.hero h1 { color: var(--c-paper); font-size: clamp(2rem, 4.5vw, 3.5rem); }
.hero .lede { color: var(--c-paper); opacity: 0.92; }

/* Advantage cards */
.advantage {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.advantage__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-earth);
  margin-bottom: var(--s-3);
}
.advantage h3 { margin-top: 0; }

/* Property facts table */
.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-base);
}
.facts th, .facts td {
  text-align: left;
  padding: var(--s-3);
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.facts th { width: 35%; color: var(--c-ink-soft); font-weight: 600; }
.facts caption {
  text-align: left;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  padding: var(--s-2) var(--s-3);
  caption-side: bottom;
}

/* Caveat / footnote styling */
.caveat {
  border-left: 3px solid var(--c-warn);
  padding: var(--s-3) var(--s-4);
  background: var(--c-paper-warm);
  margin: var(--s-4) 0;
  font-size: var(--t-sm);
}
.caveat strong { color: var(--c-warn); }
.footnote {
  display: block;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  margin-top: var(--s-1);
}
sup.fn a { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--s-3) var(--s-5);
  background: var(--c-earth);
  color: var(--c-paper);
  border: none;
  border-radius: var(--r-sm);
  font-size: var(--t-base);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--ghost { background: transparent; color: var(--c-earth); border: 1px solid var(--c-earth); }
.btn--ghost:hover { background: var(--c-earth); color: var(--c-paper); }

/* Lead form */
.lead-form {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  max-width: var(--w-prose);
}
.lead-form label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  margin-top: var(--s-4);
}
.lead-form label:first-of-type { margin-top: 0; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  padding: var(--s-3);
  font: inherit;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  margin-top: var(--s-1);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--c-sky-deep);
  outline-offset: 1px;
}
.lead-form textarea { min-height: 6rem; resize: vertical; }
.lead-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.lead-form__status {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  display: none;
}
.lead-form__status--ok    { background: #e2f0d9; color: #2c4a1c; display: block; }
.lead-form__status--err   { background: #f5d7cc; color: #6b2a18; display: block; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: var(--s-4) 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+ ";
  color: var(--c-earth);
  font-family: var(--t-mono);
}
.faq details[open] summary::before { content: "− "; }
.faq details p { margin-top: var(--s-3); }

/* Top nav */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-5);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--t-sm);
}
.topnav__brand { font-weight: 700; color: var(--c-ink); text-decoration: none; }
.topnav__links a { margin-left: var(--s-4); }

/* Footer */
.footer {
  padding: var(--s-6) var(--s-5);
  background: var(--c-ink);
  color: var(--c-stone);
  font-size: var(--t-sm);
  text-align: center;
}
.footer a { color: var(--c-stone); }

/* Utility */
.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;
}
