/* ==========================================================================
   VerifyYourProperty.com — Global styles
   Loaded on EVERY page. Contains design tokens, base elements, layout,
   header/footer and components shared by more than one page.
   Page-only styles live in assets/css/pages/<page>.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (colours, light + dark)
   -------------------------------------------------------------------------- */
:root {
  --bg: #F4EEE3;
  --surface: #FFFCF7;
  --ink: #3A2A1C;
  --muted: #7C6952;
  --line: #E3D6C2;
  --accent: #8B5A2B;
  --accent-ink: #FFF8EF;
  --ok: #4C7A3E;
  --warn: #C08A2E;
  --bad: #A23B2E;
  --tint: #EFE3D0;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Newsreader, Georgia, "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(58, 42, 28, .35);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #241A11;
    --surface: #31241A;
    --ink: #F1E4D2;
    --muted: #C3AC92;
    --line: #4A3626;
    --accent: #CB9057;
    --accent-ink: #241A11;
    --ok: #7FBE6B;
    --warn: #E3AC55;
    --bad: #E2836A;
    --tint: #3A2A1C;
  }
}

:root[data-theme="dark"] {
  --bg: #241A11;
  --surface: #31241A;
  --ink: #F1E4D2;
  --muted: #C3AC92;
  --line: #4A3626;
  --accent: #CB9057;
  --accent-ink: #241A11;
  --ok: #7FBE6B;
  --warn: #E3AC55;
  --bad: #E2836A;
  --tint: #3A2A1C;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
}

p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.lead { color: var(--muted); max-width: 60ch; }
.section-lead { margin-top: 12px; }

.eyebrow {
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.alt { background: var(--tint); }

/* Page header used on inner pages */
.ph { padding: 64px 0 32px; }
.ph .lead { margin: 20px 0 28px; font-size: 1.12rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.08); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  margin-right: auto;
}
.nav a.l { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a.l:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: .95rem; }

@media (max-width: 760px) {
  .nav { overflow-x: auto; white-space: nowrap; gap: 16px; }
  .logo, .nav a.l { flex-shrink: 0; }
  .nav .btn { display: none; }
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
footer .logo { margin: 0; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .disc { font-size: .82rem; max-width: 90ch; }

/* --------------------------------------------------------------------------
   8. Shared components
   -------------------------------------------------------------------------- */

/* 8.1 Stats row */
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stats b { display: block; font: 600 1.9rem var(--font-serif); }
.stats span { color: var(--muted); font-size: .9rem; }

/* 8.2 Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card .tag { color: var(--accent); font-weight: 600; font-size: .95rem; }
.card h3 { margin: 4px 0 10px; font-size: 1.7rem; }
.card ul { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { padding-left: 24px; position: relative; font-size: .97rem; }
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg) translateY(-50%);
}
.card .time { font-size: .95rem; color: var(--muted); }

/* Small card variant */
.card.s { padding: 24px; }
.card.s h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.card.s p { color: var(--muted); font-size: .96rem; }
.card.s ul { margin: 14px 0 0; }

/* 8.3 Product / plan pair (home + due diligence) */
.products {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* 8.4 Numbered steps */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  counter-reset: s;
}
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before {
  content: counter(s);
  display: block;
  margin-bottom: 6px;
  font: 600 1.6rem var(--font-serif);
  color: var(--accent);
}
.steps b { display: block; margin-bottom: 4px; }
.steps span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* 8.5 Testimonial */
.t {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.t .stars { color: var(--warn); letter-spacing: 2px; }
.t p { margin: 10px 0 16px; }
.t small { color: var(--muted); display: block; line-height: 1.4; }

/* 8.6 FAQ (native <details>) */
.faq { max-width: 820px; margin-top: 32px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--muted); }

/* 8.7 Dark call-to-action band */
.final { background: #2E2013; color: #F4EEE3; text-align: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .final { background: var(--surface); color: var(--ink); }
}
:root[data-theme="dark"] .final { background: var(--surface); color: var(--ink); }
.final p { margin: 16px auto 28px; max-width: 56ch; opacity: .85; }
.final .cta-row { justify-content: center; }
.final .btn.ghost { color: inherit; border-color: currentColor; opacity: .9; }

/* --------------------------------------------------------------------------
   9. Forms (used by all three inquiry forms)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 5px; font-size: .92rem; font-weight: 600; }
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.form .btn { cursor: pointer; justify-self: start; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .82rem; color: var(--muted); max-width: 70ch; }

/* Spam trap — visually hidden field bots tend to fill in */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Inquiry form card + one visual variant per audience */
.inquiry-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);          /* keeps labels readable inside dark .final bands */
  text-align: left;
  box-shadow: 0 18px 40px -28px rgba(58, 42, 28, .4);
}
.inquiry-form .form-note { margin: 0; opacity: 1; }

.inquiry-form--buyer { border-top: 4px solid var(--accent); }
.inquiry-form--business { margin-top: 22px; border-left: 5px solid var(--warn); background: var(--surface); }
.inquiry-form--lawyer {
  margin-top: 22px;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--surface), var(--tint));
}

@media (max-width: 760px) {
  .form-two { grid-template-columns: 1fr; }
}
