:root {
  /* ACo. Painting brand palette — matched to letterhead/logo */
  --burgundy: #5C2828;          /* logo 'A' / primary brand red */
  --burgundy-deep: #451E1E;
  --burgundy-soft: #7A3535;
  --navy: #1F2E3E;              /* charcoal-blue — PAINTING bar + table heads */
  --navy-soft: #2E3F52;
  --navy-ink: #16212E;
  --cream: #FDF8ED;             /* letterhead background */
  --paper: #FAF3E2;
  --ivory: #FFFDF7;
  --tan: #D1B691;               /* info-block / grid-line gold */
  --tan-soft: #E7D6B8;
  --tan-faint: #F2E8D2;
  --brass: #A77B35;
  --ink: #21140C;               /* warm near-black body text */
  --muted: #6B5E48;
  --line: #D8C6A0;
  --shade: #F1E7CC;
  --success: #3F6B26;
  --warning: #964219;
  --error: #8C2436;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(33,20,12,.05), 0 6px 20px -12px rgba(33,20,12,.16);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 240px;
  background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; padding: 0 0 24px;
}
.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-chip {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 12px 14px 10px; display: flex; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(33,20,12,.06);
}
.brand-logo { width: 100%; height: auto; display: block; }
.brand-bar {
  margin: 14px 20px 0; background: var(--navy-ink);
  border-top: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy);
  padding: 5px 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.42em; color: var(--cream); text-indent: 0.42em;
}
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; padding: 18px 14px 0; }
.nav-item {
  color: rgba(253,248,237,.70); text-decoration: none;
  padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 13px; letter-spacing: 0.03em;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.nav-item.active { background: var(--burgundy); color: var(--cream); }
.nav-section-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(209,182,145,.6); padding: 14px 12px 4px;
}
.sidebar-foot {
  font-size: 12px; color: rgba(253,248,237,.55); line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,.08); padding: 14px 20px 0;
}
.sidebar-foot strong { color: var(--tan); font-weight: 600; }

.main { margin-left: 240px; padding: 30px 40px 50px; max-width: 1240px; }

/* ---------- topbar ---------- */
.topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.page-title {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  color: var(--navy); letter-spacing: -0.012em; line-height: 1.1;
}
.page-title .accent { color: var(--burgundy); }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.last-updated { font-size: 12px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--burgundy); color: var(--ivory); }
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--tan-faint); }

/* ---------- KPIs ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--tan);
}
.kpi-card.kpi-accent { border-top-color: var(--burgundy); }
.kpi-card.kpi-accent2 { border-top-color: var(--navy); }
.kpi-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--navy); margin-top: 6px; line-height: 1; }
.kpi-card.kpi-accent .kpi-value { color: var(--burgundy); }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- sections ---------- */
.section { margin-top: 42px; }
.section-head { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy);
  letter-spacing: 0.01em; display: inline-block; padding-bottom: 6px;
  border-bottom: 2px solid var(--burgundy);
}
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- table ---------- */
.table-wrap {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch;
}
.table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.table th {
  background: var(--navy); color: var(--cream); font-weight: 700; text-align: left;
  padding: 11px 12px; white-space: nowrap; font-size: 10.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  border-bottom: 2px solid var(--burgundy);
}
.table th.num { text-align: right; }
.table td { padding: 10px 12px; border-top: 1px solid var(--tan-soft); white-space: nowrap; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:nth-child(even) { background: var(--tan-faint); }
.table tbody tr:hover { background: var(--shade); }

/* ---------- status badges ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-Generated { background: var(--tan-soft); color: var(--ink); }
.badge-Sent { background: var(--brass); color: var(--ivory); }
.badge-Approved { background: var(--navy); color: var(--cream); }
.badge-Paid { background: var(--success); color: var(--ivory); }
.badge-Filed { background: var(--burgundy); color: var(--ivory); }

/* ---------- card lists (recoats) ---------- */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.recoat-card {
  background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--burgundy);
  border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.recoat-card.due { border-left-color: var(--brass); }
.recoat-main { flex: 1; min-width: 200px; }
.recoat-surface { font-weight: 600; color: var(--navy); }
.recoat-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.recoat-when { text-align: right; }
.recoat-days { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--burgundy); }
.recoat-due { font-size: 11px; color: var(--muted); }
.empty-state { background: var(--ivory); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* ---------- vault ---------- */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vault-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.vault-card:hover { border-color: var(--brass); }
.vault-type { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.vault-name { font-weight: 600; color: var(--navy); font-size: 14px; word-break: break-word; }
.vault-project { font-size: 12px; color: var(--muted); }
.vault-actions { display: flex; gap: 8px; margin-top: 4px; }
.vault-link {
  font-size: 12px; font-weight: 700; text-decoration: none; padding: 5px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--navy);
  letter-spacing: 0.03em;
}
.vault-link:hover { background: var(--tan-faint); }
.vault-link.pdf { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.vault-link.pdf:hover { background: var(--burgundy-deep); }

/* ---------- credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cred-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center;
}
.cred-name { font-weight: 600; color: var(--navy); font-size: 16px; }
.cred-date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cred-badge { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 2px; letter-spacing: 0.06em; text-transform: uppercase; }
.cred-badge.current { background: rgba(63,107,38,0.14); color: var(--success); }
.cred-badge.expiring { background: rgba(150,66,25,0.16); color: var(--warning); }
.cred-badge.lapsed { background: rgba(140,36,54,0.16); color: var(--error); }

/* ---------- digest + results ---------- */
.digest-pre, .result-pre {
  background: var(--navy); color: var(--cream); border-radius: var(--radius);
  padding: 18px 20px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  box-shadow: var(--shadow); border-left: 3px solid var(--burgundy); min-height: 40px;
}
.result-pre:empty { display: none; }

/* ---------- automations ---------- */
.auto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.auto-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.auto-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); }
.auto-card p { font-size: 13px; color: var(--muted); }
.auto-row { display: flex; gap: 8px; }
.input {
  flex: 1; font-family: var(--font-body); font-size: 14px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brass); }

/* ---------- footer ---------- */
.footer { margin-top: 52px; padding-top: 18px; border-top: 2px solid var(--burgundy); color: var(--muted); font-size: 12px; }
.footer-note { margin-top: 4px; font-size: 11px; color: var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sidebar { position: relative; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; }
  .brand { padding: 0; border: none; flex-shrink: 0; } .brand-chip { padding: 4px 8px; } .brand-logo { width: 88px; } .brand-bar { display: none; }
  .nav { flex-direction: row; flex-shrink: 0; padding: 0; } .nav-item { font-size: 12px; padding: 6px 9px; white-space: nowrap; } .nav-section-label { display: none; } .sidebar-foot { display: none; }
  .main { margin-left: 0; padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid, .cred-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .table .col-gen, .table .col-appr, .table .col-filed,
  .table .col-sent, .table .col-paid, .table .col-proj, .table .col-type { display: none; }
  .table { min-width: 0; }
  .table td.client-cell { white-space: normal; }
}

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site { background: var(--cream); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253,248,237,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: 1160px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; padding: 9px 16px; border-radius: var(--radius-sm); transition: background .15s, color .15s; }
.nav-link:hover { background: var(--tan-faint); }
.nav-link.cta { background: var(--burgundy); color: var(--ivory); }
.nav-link.cta:hover { background: var(--burgundy-deep); color: var(--ivory); }

.hero { background: var(--navy); color: var(--cream); padding: 72px 32px 80px; position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(124,53,53,.45), transparent 55%); }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; color: var(--tan); text-transform: uppercase; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 14px 0 18px; letter-spacing: -0.015em; }
.hero-title .accent { color: var(--burgundy-soft); }
.hero-sub { font-size: 18px; line-height: 1.55; color: rgba(253,248,237,.82); max-width: 620px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-lg { padding: 13px 28px; font-size: 14px; }
.site .btn-primary { background: var(--burgundy); }
.site .btn-primary:hover { background: var(--burgundy-deep); }
.site .btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.site .btn-ghost:hover { background: var(--tan-faint); }
.cta-inner .btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(253,248,237,.4); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero .btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(253,248,237,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

.section { padding: 60px 32px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-inner.narrow { max-width: 640px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--burgundy); text-transform: uppercase; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--navy); margin: 8px 0 28px; letter-spacing: -0.01em; }

.trust { background: var(--paper); }
.trust-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { border-top: 3px solid var(--burgundy); padding-top: 18px; display: flex; gap: 16px; align-items: flex-start; }
.trust-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.trust-icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--burgundy); }
@media (max-width: 760px){ .trust-item { gap: 12px; } .trust-icon { width: 28px; height: 28px; } }

.services-band { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.service-card { background: var(--ivory); border: 1px solid var(--line); border-top: 3px solid var(--tan); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.service-card .svc-icon { width: 32px; height: 32px; color: var(--burgundy); transition: color .18s; }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); transition: color .18s; }
.service-card p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.service-card:hover { background: var(--navy); border-color: var(--navy); border-top-color: var(--burgundy); transform: translateY(-3px); box-shadow: 0 12px 28px -16px rgba(31,46,62,.45); }
.service-card:hover .svc-icon { color: var(--tan); }
.service-card:hover h3 { color: var(--cream); }
.service-card:hover p { color: rgba(253,248,237,.7); }

.cta-band { background: var(--navy); color: var(--cream); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin-bottom: 10px; }
.cta-inner p { color: rgba(253,248,237,.8); margin-bottom: 22px; }
.cta-inner .cta-lead { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.4; color: var(--cream); margin-bottom: 8px; }
.cta-inner .cta-sub { font-size: 15px; color: rgba(253,248,237,.7); margin-bottom: 26px; }
.cta-inner p a { color: var(--tan); font-weight: 600; }
.cta-inner .section-eyebrow { color: var(--tan); margin-bottom: 12px; }

.commitment-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.commitment-band .commitment-mark { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 220px; max-width: 40vw; opacity: 0.06; pointer-events: none; user-select: none; }
.commitment-inner { max-width: 760px; text-align: center; position: relative; }
.commitment-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.25; color: var(--ink); margin: 10px 0 18px; }
.commitment-body { font-size: 18px; line-height: 1.65; color: var(--muted); }
.commitment-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 18px; }
.commitment-rule span { display: block; height: 1px; width: 60px; background: var(--line); }
.commitment-rule svg { width: 18px; height: 18px; fill: var(--brass); stroke: none; }
.commitment-sign { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--burgundy); font-size: 17px; margin-top: 18px; }
@media (max-width: 640px){ .commitment-title { font-size: 24px; } .commitment-body { font-size: 16px; } .commitment-rule span { width: 36px; } }
.commitment-body .accent-soft { color: var(--burgundy); font-weight: 700; font-family: var(--font-display); font-style: italic; }

.page-head { background: var(--paper); padding: 56px 32px 40px; border-bottom: 1px solid var(--line); }
.page-head .hero-sub { color: var(--muted); }

.estimate-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.estimate-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.estimate-form input, .estimate-form select, .estimate-form textarea { font-family: var(--font-body); font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { outline: none; border-color: var(--burgundy); }
.estimate-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.thanks-card { background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: var(--radius); padding: 28px; text-align: center; }
.thanks-card h2 { font-family: var(--font-display); color: var(--navy); margin-bottom: 8px; }
.thanks-card p { color: var(--muted); margin-bottom: 18px; }

.site-footer { background: var(--navy-ink); color: rgba(253,248,237,.7); padding: 56px 32px 28px; position: relative; }
.site-footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { height: 64px; width: auto; margin-bottom: 12px; }
.foot-tag { font-size: 11px; letter-spacing: 0.18em; color: var(--tan); margin-bottom: 14px; }
.site-footer h4 { font-family: var(--font-display); color: var(--cream); font-size: 15px; margin-bottom: 8px; }
.site-footer p { font-size: 13px; line-height: 1.6; }
.social-row { display: flex; gap: 10px; }
.social-link { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(209,182,145,.35); color: var(--tan); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.social-link:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.foot-copy { max-width: 1080px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(253,248,237,.4); text-align: center; }

/* Recurring brand stripe — echoes the logo's red/navy/gold band */
.brand-stripe { display: flex; width: 100%; height: 6px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1){ background: var(--burgundy); }
.brand-stripe span:nth-child(2){ background: var(--navy); }
.brand-stripe span:nth-child(3){ background: var(--brass); }
.brand-stripe span:nth-child(4){ background: var(--tan); }
.footer-stripe { position: absolute; top: 0; left: 0; right: 0; }

/* =====================================================================
   HERITAGE PREMIUM — confident, clean, timeless
   Swagger through hierarchy, not decoration. Warm palette + serif display
   stay; themed-vintage gimmicks (paper grain, rubber stamps, drop caps,
   double keylines, ornament stars) are removed for a polished heritage feel.
   ===================================================================== */
/* Stronger, tighter hero display */
.hero-title { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.02em; }
.hero-eyebrow { font-style: normal; letter-spacing: 0.34em; font-weight: 700; }

/* Clean tracked section eyebrows — no decorative stars */
.section-eyebrow { letter-spacing: 0.3em; }

/* Trust badges — premium single-rule cards (no double letterpress frames) */
.trust-item {
  background: var(--ivory); border: 1px solid var(--line); border-top: 3px solid var(--burgundy);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: flex-start;
}
.trust-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 760px){ .trust-item { gap: 12px; padding: 18px 16px; } .trust-icon { width: 28px; height: 28px; } }

/* Service cards — clean single border, drop the outline-offset frame */
.service-card { border: 1px solid var(--line); border-top: 3px solid var(--tan); border-radius: var(--radius); }

/* Commitment band — restrained heritage lockup (upright, not distressed) */
.commitment-est {
  font-size: 11px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brass); margin-top: 16px;
}
@media (max-width: 640px){ .commitment-title { font-size: 24px; } .commitment-body { font-size: 16px; } .commitment-rule span { width: 36px; } }

/* ---------- login ---------- */
.login-body { background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--cream); border-radius: var(--radius); padding: 36px 32px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-logo { height: 64px; width: auto; margin: 0 auto 8px; display: block; }
.login-bar { background: var(--navy-ink); border-top: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); padding: 5px 0; margin: 6px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.42em; color: var(--cream); text-indent: 0.42em; }
.login-card h1 { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 24px; margin-bottom: 16px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.login-card input { font-family: var(--font-body); font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink); }
.login-card input:focus { outline: none; border-color: var(--burgundy); }
.login-card button { margin-top: 6px; width: 100%; }
.login-error { background: rgba(140,36,54,.12); color: var(--error); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 8px; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.login-note a { color: var(--burgundy); }

/* ---------- owner extras ---------- */
.lead-msg { font-size: 13px; color: var(--ink); margin-top: 6px; padding: 8px 10px; background: var(--tan-faint); border-radius: var(--radius-sm); line-height: 1.5; }
.logout-link { color: var(--tan); text-decoration: none; }
.logout-link:hover { text-decoration: underline; }
.empty-cell { text-align: center; color: var(--muted); padding: 20px; }

/* ---------- responsive (public) ---------- */
@media (max-width: 860px) {
  .site-header-inner { padding: 12px 18px; }
  .site-logo img { height: 40px; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
  .hero { padding: 48px 22px 56px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 44px 20px; }
  .trust-grid, .service-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .estimate-form .form-row { grid-template-columns: 1fr; }
  .page-head { padding: 40px 20px 28px; }
}

/* =====================================================================
   GALLERY + LIGHTBOX + SOCIAL
   ===================================================================== */
.gallery-band { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(31,46,62,.82), rgba(31,46,62,0));
  text-align: left;
  opacity: 0;
  transition: opacity .25s ease;
}
@media (pointer: fine) {
  .gallery-item:hover .gallery-cap { opacity: 1; }
}
@media (pointer: coarse) {
  .gallery-cap { opacity: 1; }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,16,8,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}
.lightbox-cap {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0 20px;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
  opacity: .85;
}
.lightbox-close { top: 12px; right: 18px; font-size: 44px; }
.lightbox-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }

/* social row in footer */
.social-row { margin-top: 12px; display: flex; gap: 10px; }
.social-link {
  display: inline-block;
  padding: 6px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  background: rgba(31,46,62,.5);
  border: 1px solid var(--tan);
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
.social-link:hover { background: var(--burgundy); border-color: var(--burgundy); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-nav { font-size: 32px; }
}
