/* ============================================================
   Redlands Rent — design system
   Lightweight, no framework. System body font + Fraunces display.
   ============================================================ */

:root {
  --ink: #26211d;
  --ink-soft: #5c544d;
  --ink-faint: #8a8078;
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-warm: #f3ecdf;
  --line: #e7ddd0;
  --brand: #b8431f;
  --brand-dark: #93310f;
  --brand-soft: #f6e3d7;
  --amber: #d97f2e;
  --leaf: #4e7a52;
  --footer: #211d1a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(38, 33, 29, .05), 0 6px 22px rgba(38, 33, 29, .07);
  --shadow-lift: 0 2px 4px rgba(38, 33, 29, .06), 0 14px 34px rgba(38, 33, 29, .12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-top: 2.2em; }
h3 { font-size: 1.28rem; margin-top: 1.8em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1.15em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

img, svg { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.prose { max-width: 780px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand svg { flex: 0 0 auto; }
.brand span em { font-style: normal; color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); background: var(--surface-warm); }
.nav-links a[aria-current="page"] { color: var(--brand); }

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { display: block; margin: auto; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(217, 127, 46, .35), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(147, 49, 15, .5), transparent 55%),
    linear-gradient(135deg, #7c2a0e 0%, #a53a15 55%, #c2521f 100%);
  color: #fdf3ea;
  padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd9b8;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: .45em; }
.hero p.lede {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: #fbe4d2;
  max-width: 56ch;
  margin-bottom: 1.6em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-solid { background: #fff; color: var(--brand-dark); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); color: var(--brand-dark); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(217, 127, 46, .25), transparent 60%),
    linear-gradient(180deg, #f3e7d7, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 5vw, 52px);
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 22ch; margin-bottom: .4em; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; font-size: 1.1rem; margin-bottom: 0; }

.crumbs {
  font-size: .85rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Sections ---------- */

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-tight { padding: clamp(30px, 5vw, 56px) 0; }
.section + .section { padding-top: 0; }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card h3 { margin-top: 0; font-size: 1.22rem; }
.card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.card p:last-child { margin-bottom: 0; }

.card .tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.card .more {
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  margin-top: 14px;
}
.card .more::after { content: " →"; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand);
  line-height: 1.1;
}

.stat span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.4em 0 2em; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .97rem;
  min-width: 520px;
}

caption {
  text-align: left;
  font-size: .85rem;
  color: var(--ink-faint);
  padding: 8px 2px;
  caption-side: bottom;
}

th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-warm); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbf7f0; }

/* ---------- Article / prose extras ---------- */

.note, .disclaimer {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .93rem;
  margin: 1.6em 0;
}

.note {
  background: #eef4ee;
  border: 1px solid #d4e2d5;
  color: #33523a;
}

.disclaimer {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }

.checklist { list-style: none; padding: 0 !important; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: .8em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8431f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Ads ---------- */

.ad-slot {
  margin: 2.4em auto;
  text-align: center;
  min-height: 90px;
}

.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(217, 127, 46, .3), transparent 60%),
    linear-gradient(135deg, #7c2a0e, #a53a15);
  border-radius: var(--radius);
  color: #fbe4d2;
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-top: 0; margin-bottom: .3em; }
.cta-band p { margin-bottom: 0; max-width: 48ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  color: #c9bfb6;
  margin-top: clamp(50px, 8vw, 90px);
  padding: clamp(44px, 6vw, 70px) 0 30px;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9bfb6; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 700; }
.footer-brand em { font-style: normal; color: var(--amber); }
.footer-about { max-width: 34ch; margin-top: 10px; color: #a3968c; }

.footer-bottom {
  border-top: 1px solid #38312c;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #8d8178;
  font-size: .84rem;
}

/* ---------- Utility ---------- */

.text-soft { color: var(--ink-soft); }
.updated { font-size: .82rem; color: var(--ink-faint); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
