/* ============================================================
   Whitney Valley Properties — classic estate design system
   Deep forest green · warm cream · brass accents · serif display
   ============================================================ */

:root {
    --g-950: #0C1F19;
    --g-900: #12291F;
    --g-850: #16332A;
    --g-800: #1B3A2E;
    --g-700: #25503F;
    --g-600: #2F6850;

    --cream-50: #FBF8EF;
    --cream-100: #F6F0DF;
    --cream-200: #EDE4CC;

    --gold: #B08D57;
    --gold-dark: #8F7042;
    --gold-soft: rgba(176, 141, 87, 0.14);

    --ink: #23281F;
    --ink-soft: #5A6357;
    --ink-faint: #8B927F;

    --line: #E5DEC7;
    --card-bg: #FFFEF9;
    --card-border: #E8E1CB;

    --ok-bg: #E6F1E3;  --ok-fg: #2F5D33;  --ok-line: #C9E0C8;
    --warn-bg: #FBF0D2; --warn-fg: #8A6414; --warn-line: #EBD9A9;
    --info-bg: #E7EEF6; --info-fg: #375D82; --info-line: #CBD9E8;
    --bad-bg: #FAE7E1;  --bad-fg: #A03D22;  --bad-line: #EBC8BB;
    --mute-bg: #EFECE0; --mute-fg: #6B6F63; --mute-line: #DDD8C6;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(18, 30, 22, 0.05), 0 10px 30px -24px rgba(18, 41, 31, 0.35);
    --shadow-lg: 0 18px 50px -18px rgba(10, 25, 18, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream-50);
}
img { max-width: 100%; }
a { color: var(--g-700); }
h1, h2, h3 { font-family: var(--serif); color: var(--g-950); margin: 0; font-weight: 600; }
::selection { background: rgba(176, 141, 87, 0.30); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 6px;
}
.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose { white-space: pre-line; line-height: 1.65; font-size: 14.8px; margin: 6px 0 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 0.9rem/1.2 var(--sans);
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g-800); color: var(--cream-50); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--g-700); }
.btn-gold { border-color: var(--gold); color: var(--g-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); background: var(--card-bg); color: var(--ink); }
.btn-ghost:hover { background: var(--cream-100); }
.btn-cream { background: var(--cream-100); color: var(--g-900); }
.btn-cream:hover { background: #fff; }
.btn-outline-cream { border-color: rgba(246, 240, 223, 0.55); color: var(--cream-100); }
.btn-outline-cream:hover { background: rgba(246, 240, 223, 0.12); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger-text { color: var(--bad-fg); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-col form { margin: 0; }
.btn-col .btn { width: 100%; }

/* ---------- chips ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--mute-line);
    background: var(--mute-bg);
    color: var(--mute-fg);
    white-space: nowrap;
}
.chip-PAID, .chip-RESOLVED, .chip-DONE { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.chip-PARTIAL, .chip-OPEN { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.chip-IN_PROGRESS { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.chip-DUE, .chip-P-URGENT { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.chip-ASSIGNED { background: #F3EAD9; color: #7C6234; border-color: #E2D2AE; }
.chip-P-NORMAL { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.chip-SEV-SAFETY { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.chip-SEV-HIGH { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.chip-SEV-NORMAL { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.chip-SEV-LOW { background: var(--mute-bg); color: var(--mute-fg); border-color: var(--mute-line); }
.chips-top { margin: 0 0 2px; }
.chip-role-ADMIN { background: var(--g-800); color: var(--cream-100); border-color: var(--g-800); }
.chip-role-TENANT { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }
.chip-role-CONTRACTOR { background: #F3EAD9; color: #7C6234; border-color: #E2D2AE; }
.chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }

/* ---------- app shell ---------- */
.app-body { background: var(--cream-50); }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.sidebar {
    background: linear-gradient(180deg, var(--g-900) 0%, var(--g-950) 100%);
    color: var(--cream-100);
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; color: #F2E9D2; text-decoration: none; padding: 4px 8px; }
.brand .logo { color: #CBB68B; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.02em; }
.side-nav { margin-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
    padding: 9px 12px;
    border-radius: 9px;
    border-left: 3px solid transparent;
    color: rgba(242, 236, 218, 0.72);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    transition: background 0.15s, color 0.15s;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #F5EFDC; }
.side-nav a.on { background: var(--gold-soft); border-left-color: var(--gold); color: #F7F1DF; }
.side-foot {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}
.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--g-950);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.whoami { display: flex; flex-direction: column; min-width: 0; }
.whoami strong { font-size: 13.5px; color: #F2ECDA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whoami span { font-size: 11.5px; color: rgba(242, 236, 218, 0.55); }
.linkish {
    background: none; border: none;
    color: rgba(242, 236, 218, 0.6);
    font: 500 12.5px var(--sans);
    cursor: pointer; padding: 4px;
}
.linkish:hover { color: #F2ECDA; text-decoration: underline; }

.topbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--g-900);
    position: sticky; top: 0; z-index: 40;
}
.burger { background: none; border: none; color: var(--cream-100); font-size: 20px; cursor: pointer; padding: 2px 6px; }
.brand-sm { font-family: var(--serif); font-size: 17px; color: var(--cream-100); text-decoration: none; }

.content { padding: 34px clamp(18px, 4vw, 44px) 60px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ---------- page furniture ---------- */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-head h1 { font-size: 33px; line-height: 1.1; }
.page-head .muted { margin: 6px 0 0; }
.crumb { margin: 0 0 10px; }
.crumb a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.crumb a:hover { color: var(--g-800); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
    padding: 9px 14px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs a:hover { color: var(--g-900); }
.tabs a.on { color: var(--g-900); border-bottom-color: var(--gold); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 20px; }
.card-narrow { max-width: 680px; }
.card-resolved { border-color: var(--ok-line); background: #F6FBF3; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack > .card { margin: 0; }
section.card { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.grid-side { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.grid-form { grid-template-columns: 1fr 380px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.stat-value { font-family: var(--serif); font-size: 31px; color: var(--g-900); line-height: 1.15; }
.stat-dim { color: var(--ink-faint); font-size: 22px; }
.stat-sub { font-size: 12.5px; color: var(--ink-soft); }
.stat-sub a { color: var(--gold-dark); }

.empty { color: var(--ink-soft); font-style: italic; padding: 10px 0; }
.big-empty { text-align: center; padding: 44px 20px; font-size: 16px; }
.note-block {
    background: var(--cream-100);
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    color: var(--ink-soft);
    white-space: pre-line;
    margin: 0 0 18px;
}
.from-ticket {
    background: #F3EAD9;
    border: 1px solid #E2D2AE;
    color: #6B5327;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.from-ticket a { color: #6B5327; font-weight: 600; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.3px; }
.table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}
.table th.num { text-align: right; }
.table td { padding: 11px 10px; border-bottom: 1px solid #F0EBD9; vertical-align: middle; }
.table tbody tr:hover { background: #FBF7EA; }
.table tbody tr:last-child td { border-bottom: none; }
.row-action { text-align: right; white-space: nowrap; }
.row-action form { display: inline-block; margin: 0; }

/* ---------- lists & timeline ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #F0EBD9;
}
.list li:last-child { border-bottom: none; }
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-main .muted { font-size: 12.5px; }
.list-title { font-weight: 600; color: var(--g-900); text-decoration: none; }
.list-title:hover { text-decoration: underline; }

.timeline { list-style: none; margin: 0 0 16px; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #F0EBD9; }
.timeline li:last-child { border-bottom: none; }
.tl-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--g-800);
    color: var(--cream-100);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tl-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-head { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.tl-body .prose { margin: 0; }
.tl-body .chip { align-self: flex-start; }

/* ---------- photos ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    transition: transform 0.15s, box-shadow 0.15s;
}
.photo-grid a:hover img { transform: scale(1.02); box-shadow: var(--shadow-sm); }
.photo-item { position: relative; }
.photo-item form { margin: 0; }
.photo-item .photo-del {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 25, 18, 0.65);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-item .photo-del:hover { background: var(--bad-fg); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: none; padding: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="file"], select, textarea {
    font: 400 14.5px var(--sans);
    color: var(--ink);
    padding: 9px 12px;
    border: 1px solid #D9D1B8;
    border-radius: 9px;
    background: var(--card-bg);
    width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}
.stack-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 12px; }
.inline-form .field { min-width: 160px; }
.inline-form .field.grow { flex: 1; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    background: var(--card-bg);
}
.radio input { accent-color: var(--g-700); margin: 0; }
.radio:has(input:checked) { border-color: var(--gold); background: var(--cream-100); }

/* ---------- popover forms (details) ---------- */
details.popform { position: relative; display: inline-block; }
details.popform > summary { list-style: none; cursor: pointer; }
details.popform > summary::-webkit-details-marker { display: none; }
details.popform > .popform-body, details.popform > div.popform-body {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    width: 360px;
    max-width: 88vw;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.popform-right > .popform-body { right: 0; }
details.add-inline > summary { list-style: none; cursor: pointer; display: inline-block; margin-top: 14px; }
details.add-inline > summary::-webkit-details-marker { display: none; }

.add-card { border-style: dashed; text-align: center; }
.add-card > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gold-dark);
    padding: 10px 0;
}
.add-card > summary::-webkit-details-marker { display: none; }
.add-plus { font-size: 18px; margin-right: 4px; }
.add-card form { margin-top: 14px; text-align: left; }

/* ---------- flash & code card ---------- */
.flash {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid;
    margin-bottom: 16px;
    font-size: 14.3px;
    font-weight: 500;
}
.flash-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.flash-err { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }

.code-card {
    background: linear-gradient(135deg, var(--g-850), var(--g-950));
    border: 1px solid rgba(176, 141, 87, 0.5);
    color: var(--cream-100);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    box-shadow: var(--shadow-lg);
}
.code-card-title { font-size: 13px; font-weight: 600; color: rgba(242, 236, 218, 0.75); }
.code-value {
    font-family: "Consolas", "SF Mono", monospace;
    font-size: 24px;
    letter-spacing: 2.5px;
    color: #EFD9AB;
    margin-top: 4px;
}
.code-note { font-size: 12.5px; color: rgba(242, 236, 218, 0.6); margin: 6px 0 0; max-width: 480px; }

/* ---------- misc app pieces ---------- */
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-label { font-family: var(--serif); font-size: 21px; color: var(--g-900); min-width: 165px; text-align: center; }
.property-card { text-decoration: none; display: block; transition: transform 0.15s, box-shadow 0.15s; }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.property-card h3 { font-size: 21px; margin-bottom: 4px; }
.property-meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--ink-soft); font-size: 13.5px; margin: 12px 0 0; flex-wrap: wrap; }
.property-rent { font-weight: 600; color: var(--g-800); }
.job-card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; transition: transform 0.15s, box-shadow 0.15s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.job-card h3 { font-size: 20px; }
.job-card .muted, .job-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }
.rent-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 10px; }
.rent-figures { margin: 0; }
.rent-figures strong { font-family: var(--serif); font-size: 27px; color: var(--g-900); }
.danger-zone { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.danger-zone form { margin: 0; }

/* ---------- login ---------- */
.login-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 26px;
    background:
        radial-gradient(1100px 550px at 85% -10%, rgba(47, 104, 80, 0.55) 0%, rgba(47, 104, 80, 0) 60%),
        linear-gradient(160deg, var(--g-850) 0%, var(--g-950) 70%);
}
.login-wrap { width: min(430px, 100%); text-align: center; }
.login-brand { display: inline-block; color: #E9DFC2; margin-bottom: 20px; }
.login-card {
    background: #FDFBF3;
    border-radius: 18px;
    padding: 34px 34px 28px;
    text-align: left;
    box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 27px; margin: 2px 0 20px; }
.login-card .field { margin-bottom: 14px; }
.login-note { font-size: 12.5px; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.6; }
.login-foot { margin-top: 20px; }
.login-foot a { color: rgba(242, 236, 218, 0.65); font-size: 13px; text-decoration: none; }
.login-foot a:hover { color: #F2ECDA; }
.error-card { text-align: center; }
.error-code { font-size: 68px; line-height: 1; margin: 10px 0 4px; }
.error-msg { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- landing page ---------- */
.landing { margin: 0; background: var(--cream-50); }
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px clamp(20px, 5vw, 56px);
    flex-wrap: wrap;
}
.site-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--g-900); }
.site-brand .logo { color: var(--g-800); }
.site-brand span { font-family: var(--serif); font-size: 20px; }
.site-brand em { font-style: italic; color: var(--gold-dark); }
.site-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.site-links a:hover { color: var(--g-900); }
.site-links .btn { color: var(--g-900); }

.hero {
    position: relative;
    text-align: center;
    color: var(--cream-100);
    padding: clamp(72px, 12vh, 128px) 22px 150px;
    background:
        radial-gradient(1200px 600px at 82% -12%, rgba(47, 104, 80, 0.6) 0%, rgba(47, 104, 80, 0) 62%),
        linear-gradient(162deg, var(--g-850) 0%, var(--g-950) 72%);
    overflow: hidden;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero .kicker { color: var(--gold); }
.hero h1 {
    font-size: clamp(46px, 7.5vw, 76px);
    line-height: 1.04;
    color: #F7F1DF;
    margin: 14px 0 0;
    font-weight: 600;
}
.hero-sub {
    font-size: 17px;
    color: rgba(242, 236, 218, 0.82);
    max-width: 590px;
    margin: 20px auto 32px;
    line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-hills { position: absolute; bottom: -1px; left: 0; width: 100%; height: 170px; }

.strip {
    background: #F1EAD6;
    border-top: 1px solid #E4DBBF;
    border-bottom: 1px solid #E4DBBF;
    text-align: center;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #85794F;
}
.strip .dot { margin: 0 14px; color: var(--gold); }

.section { padding: 80px 22px; text-align: center; }
.section h2 { font-size: clamp(30px, 4vw, 38px); margin: 6px 0 14px; }
.section-sub { max-width: 570px; margin: 0 auto 28px; color: var(--ink-soft); line-height: 1.7; }
.section .cards-3 { max-width: 1060px; margin: 36px auto 0; text-align: left; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0; }

.section-alt { background: linear-gradient(170deg, var(--g-850), var(--g-950)); }
.section-alt .kicker { color: var(--gold); }
.section-alt h2 { color: #F5EFDC; }
.section-alt .section-sub { color: rgba(242, 236, 218, 0.75); }

.site-footer { background: var(--g-950); color: rgba(242, 236, 218, 0.78); text-align: center; padding: 60px 22px 26px; }
.footer-main strong { font-family: var(--serif); font-size: 21px; color: #F2ECDA; display: block; margin-bottom: 10px; }
.footer-main p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.site-footer a { color: var(--gold); }
.fine {
    max-width: 1060px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(242, 236, 218, 0.14);
    font-size: 12.5px;
    color: rgba(242, 236, 218, 0.5);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .shell { display: block; }
    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 264px;
        height: 100vh;
        transform: translateX(-103%);
        transition: transform 0.25s ease;
        z-index: 50;
        box-shadow: var(--shadow-lg);
    }
    .shell.nav-open .sidebar { transform: none; }
    .topbar { display: flex; }
    .content { padding: 20px 16px 48px; }
    .grid-2, .grid-side, .grid-form { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 27px; }
    .card { overflow-x: auto; }
    .table { min-width: 560px; }
    details.popform > .popform-body, details.popform > div.popform-body { position: fixed; left: 16px; right: 16px; width: auto; top: auto; }
}
