/* Cowbell Services palette: deep navy + warm brass (a cowbell's color), on a soft cream page. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --fg: #1d2433;
  --muted: #5f6878;
  --line: #e7e1d6;
  --panel: #f4efe6;
  --navy: #1b2a41;
  --navy-2: #24385a;
  --brass: #b8862b;
  --brass-soft: #f3e6c8;
  --accent: #1f4f7a;
  --accent-fg: #ffffff;
  --on-dark: #f6f1e7;
  --banner-bg: #b8862b;
  --banner-fg: #ffffff;
  --shadow: 0 1px 2px rgba(27, 42, 65, .06), 0 6px 18px rgba(27, 42, 65, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151c;
    --surface: #171c25;
    --fg: #e8e4dc;
    --muted: #a3a9b4;
    --line: #2a313d;
    --panel: #1c2230;
    --navy: #0c1220;
    --navy-2: #16213a;
    --brass: #d9a94a;
    --brass-soft: #3a2f17;
    --accent: #8db8e3;
    --accent-fg: #0d1320;
    --on-dark: #efe9de;
    --banner-bg: #7a5715;
    --banner-fg: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 460px; }

.banner { background: var(--banner-bg); color: var(--banner-fg); }
.banner p { margin: 0; padding: 10px 0; font-weight: 600; text-align: center; }

/* header */
header { background: var(--navy); color: var(--on-dark); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--on-dark); text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--brass); flex: none; }
header nav { display: flex; gap: 18px; }
header nav a { color: var(--on-dark); opacity: .8; text-decoration: none; font-size: 14px; }
header nav a:hover { opacity: 1; }

/* hero (home page) */
.hero {
  position: relative; color: #fff;
  background: var(--navy-2) linear-gradient(120deg, #1b2a41 0%, #2b4670 55%, #8a6a2a 100%);
  background-size: cover; background-position: center 62%;
}
.hero.has-photo { background-image: linear-gradient(90deg, rgba(17,26,41,.88) 0%, rgba(17,26,41,.62) 45%, rgba(17,26,41,.15) 100%), url("img/hero-rowhouse.jpg"); }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin: 0 0 12px; max-width: 16ch; }
.hero p { font-size: 18px; margin: 0 0 22px; max-width: 42ch; color: #f1ece2; }
.hero .button { background: var(--brass); color: #1b1307; }
.hero .button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); margin-left: 8px; }

/* home page collage: three homes split by thin brass diagonals (the brass is the
   section background showing through the gaps between the clipped panels) */
.hero-collage { position: relative; background: var(--bg); }
.collage { position: relative; height: clamp(240px, 42vw, 440px); background: var(--brass); overflow: hidden; }
.collage .panel { position: absolute; top: 0; bottom: 0; background-size: cover; background-position: center; }
.collage .p1 { left: 0;   width: 42%; clip-path: polygon(0 0, 100% 0, 81% 100%, 0 100%); background-position: 8% center; }
.collage .p2 { left: 33%; width: 39%; clip-path: polygon(24.4% 0, 98.7% 0, 78.2% 100%, 3.8% 100%); }
.collage .p3 { left: 63%; width: 37%; clip-path: polygon(24.3% 0, 100% 0, 100% 100%, 2.7% 100%); }
.collage .tag {
  position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(17, 26, 41, .72); color: #fff; white-space: nowrap;
}
.collage .p1 .tag { left: 14px; }
.collage .p2 .tag { left: 28%; }
.collage .p3 .tag { left: 28%; }
.hero-card {
  position: relative; margin: -70px auto 0; max-width: 760px; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow); padding: 26px 28px; border-top: 4px solid var(--brass);
}
.hero-card h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 8px; }
.hero-card p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.hero-card .button + .button { margin-left: 8px; }
@media (max-width: 560px) {
  .collage .tag { font-size: 11px; padding: 3px 8px; top: 10px; }
  .collage .tag[data-short] { font-size: 0; }
  .collage .tag[data-short]::after { content: attr(data-short); font-size: 11px; }
  .collage .p2 .tag, .collage .p3 .tag { left: 22%; }
  .hero-card { margin: -40px 0 0; padding: 20px; border-radius: 0 0 14px 14px; }
  .hero-card .button { display: block; text-align: center; }
  .hero-card .button + .button { margin: 10px 0 0; }
}

/* inner pages: the same collage, shorter, with the page title in the overlapping card */
.hero-collage.short .collage { height: clamp(140px, 20vw, 210px); }
.page-card { max-width: none; margin: -56px 0 0; padding: 20px 24px; }
.page-card h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 4px; }
.page-card p { font-size: 16px; margin: 0; }
.page-card p.updated { font-size: 14px; }
@media (max-width: 560px) { .page-card { margin: -36px 0 0; padding: 16px 18px; } }

/* page header strip (inner pages) */
.page-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 26px; padding-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 28px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

main { padding: 34px 0 52px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 34px 0 10px; }
.lede { color: var(--muted); margin: 0 0 26px; }

/* action cards */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 8px; }
.action {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass);
  border-radius: 12px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.action .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; margin-bottom: 12px; }
.action .icon svg { width: 22px; height: 22px; }
.action h2 { margin: 0 0 6px; font-size: 18px; }
.action p { margin: 0 0 16px; color: var(--muted); font-size: 15px; flex: 1; }
.action .button { align-self: flex-start; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  padding: 11px 18px; border-radius: 9px; font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.button:disabled { opacity: .6; cursor: default; }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

/* contact band */
.band { background: var(--navy); color: var(--on-dark); margin-top: 40px; }
.band .wrap { padding-top: 30px; padding-bottom: 30px; }
.band h2 { margin: 0 0 6px; color: var(--on-dark); }
.band a { color: #f0cf8a; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; margin: 0; }
.contact dt { color: #d8c79f; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.contact dd { margin: 0; }

/* split layout with photo (sign-in, request access) */
.split { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 460px) 1fr; } }
.side-photo { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--brass-soft); min-height: 220px; }
.side-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.side-photo .caption { padding: 14px 16px; background: var(--surface); color: var(--muted); font-size: 14px; }

/* listings */
.listings { display: grid; gap: 14px; }
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow); }
@media (min-width: 640px) { .listing:has(img) { grid-template-columns: 240px 1fr; } }
.listing img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; display: block; }
.listing-body { padding: 16px 18px; }
.listing-body h2 { margin: 0 0 4px; font-size: 18px; }
.listing-body p { margin: 0 0 12px; }
.listing .facts { color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--brass); border-radius: 12px; padding: 26px 20px; }
.empty p { margin: 0 0 12px; }

/* forms */
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0 0 4px; color: var(--navy-2); border-bottom: 2px solid var(--brass-soft); width: 100%; }
@media (prefers-color-scheme: dark) { legend { color: var(--fg); } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
label { display: block; font-size: 14px; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 11px; font: inherit; font-weight: 400;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { width: auto; margin-top: 4px; flex: none; accent-color: var(--brass); }
.fine { font-size: 13px; color: var(--muted); }
.q { display: block; font-size: 14px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 6px; }
.check.inline { margin: 4px 0; align-items: center; }
.check.inline input { margin-top: 0; }
.reveal { margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 22px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); }
.notice.ok { border-left-color: #2e7d4f; }
.notice.warn { border-left-color: var(--brass); }

.doc h2 { font-size: 18px; }
.doc p, .doc li { max-width: 70ch; }
.doc .updated { color: var(--muted); font-size: 14px; }

footer { background: var(--navy); color: var(--on-dark); font-size: 14px; }
footer .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; opacity: .85; }
footer a { color: var(--on-dark); }
.band + footer { border-top: 1px solid rgba(255,255,255,.08); }
