:root {
  --ink: #121212;
  --ink-soft: #3a3a38;
  --muted: #6b6a65;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #e2e0d8;
  --accent: #1d5a73;
  --accent-soft: #e3eef2;
  --danger: #a3302a;
  --ok: #2f6b3a;
  --radius: 4px;
  --wide: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--wide);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 125%; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }
.fine { color: var(--muted); font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  font-stretch: 125%; font-weight: 400; text-transform: uppercase; letter-spacing: .22em;
  font-size: .74rem; color: var(--muted); margin: 0 0 1.1em;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--white); font: inherit; font-weight: 600; font-size: .95rem;
  font-stretch: 112%; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-invert { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-invert:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-small { padding: .5em 1em; font-size: .85rem; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.link-arrow::after { content: " →"; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.linklike.small { font-size: .75rem; color: var(--muted); }

/* Header & footer */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand img { width: 150px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .92rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.site-footer { background: var(--ink); color: #cfcdc6; padding: 3rem 0; font-size: .9rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 .4em; }

/* Home */
.hero { background: var(--white); padding: clamp(3rem, 8vw, 6.5rem) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.hero .actions { margin-top: 2rem; }
.availability-card { border: 1.5px solid var(--ink); padding: 1.8rem; background: var(--paper); }
.availability-card h2 { margin-bottom: 1rem; }
.date-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.date-list a {
  display: flex; justify-content: space-between; align-items: baseline; padding: .75rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.date-list a:hover strong { color: var(--accent); }
.date-list span { color: var(--muted); font-size: .9rem; }
.date-list strong { font-stretch: 125%; font-weight: 700; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--ink-soft); max-width: 40em; }
.numbered { list-style: none; counter-reset: n; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.numbered li { counter-increment: n; padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); display: block; font-stretch: 125%; font-weight: 300; font-size: 1.6rem; color: var(--muted); margin-bottom: .6rem; }
.numbered strong { display: block; font-stretch: 112%; font-size: 1.08rem; margin-bottom: .25rem; }
.numbered span { color: var(--ink-soft); font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.2rem; }
.points dt { font-weight: 700; margin-top: 1.1rem; }
.points dd { margin: .2rem 0 0; color: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ticks li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1rem; height: .5rem; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.suburbs { color: var(--ink-soft); line-height: 1.9; }
.cta-band { background: var(--ink); color: var(--white); padding: 3.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; }

/* Forms */
.page-head { padding-bottom: 2rem; }
.quote-form { padding-bottom: 5rem; max-width: 860px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin: 0 0 1.5rem; min-width: 0; }
.panel legend, .panel > h2 { font-stretch: 125%; font-weight: 750; font-size: 1.15rem; padding: 0; margin-bottom: .6rem; }
.panel legend { float: left; width: 100%; }
.panel legend + * { clear: both; }
.panel h2 { font-size: 1.1rem; margin-top: .4rem; }
.panel h2 ~ h2 { margin-top: 1.8rem; }
.field { display: block; margin: 0 0 1.1rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7em .8em; border: 1px solid #c9c7be;
  border-radius: var(--radius); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
.has-error input { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: .85rem; font-style: normal; margin-top: .3rem; }
.alert { background: #fbeceb; border: 1px solid #ecc6c3; color: var(--danger); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert p { margin: 0; }
.notice { background: var(--accent-soft); border: 1px solid #c3dbe4; padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.2rem; }
.span-2 { grid-column: span 2; }
.checks { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; border: 0; padding: 0; }
.check { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #c9c7be; border-radius: var(--radius); padding: .55rem .9rem; cursor: pointer; background: var(--white); }
.check:has(input:checked) { border-color: var(--ink); background: var(--paper); font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .5rem; }
.form-actions .muted { margin: 0; }
.hp { position: absolute; left: -9999px; }
.flexible { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1rem; cursor: pointer; }

/* Public availability calendar */
.cal { max-width: 460px; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .3rem 0; }
.cal-week { margin-bottom: 4px; }
.cal-month { font-stretch: 125%; font-weight: 700; font-size: .85rem; margin: .9rem 0 .4rem; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .9rem; border-radius: var(--radius); position: relative; }
.cal-day.is-past { color: #c8c6bf; }
.cal-day.is-closed { color: #a9a7a0; background: repeating-linear-gradient(135deg, transparent 0 5px, #efede7 5px 6px); }
.cal-day.is-open { background: var(--paper); border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.cal-day.is-open:hover { border-color: var(--ink); }
.cal-day.is-open input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cal-day.is-open:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cal-day.is-open:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Customer document */
.doc-body { background: #ecebe6; padding: 2rem 16px 4rem; }
.doc-toolbar { max-width: 820px; margin: 0 auto 1rem; display: flex; justify-content: flex-end; }
.doc { max-width: 820px; margin: 0 auto; background: var(--white); padding: clamp(1.5rem, 5vw, 3.5rem); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.doc-head img { width: 170px; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 1.8rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.doc-number { margin: .2rem 0 .5rem; color: var(--muted); font-stretch: 125%; }
.doc-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; font-size: .92rem; }
.doc-parties h2, .doc-notes h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 500; margin-bottom: .5rem; }
.items { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .95rem; }
.items th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; border-bottom: 1.5px solid var(--ink); padding: .6rem .4rem; }
.items td { padding: .75rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.items tfoot td { border-bottom: 0; text-align: right; padding: .4rem; }
.items tfoot tr.grand td { font-weight: 800; font-stretch: 125%; font-size: 1.15rem; border-top: 1.5px solid var(--ink); padding-top: .8rem; }
.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-notes { margin-top: 2rem; font-size: .92rem; white-space: pre-line; }
.accept { margin-top: 2.5rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.accept p { margin: 0; }

.status { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25em .7em; border-radius: 999px; background: #ecebe6; color: var(--ink-soft); vertical-align: middle; font-stretch: 100%; }
.status-new, .status-sent { background: var(--accent-soft); color: var(--accent); }
.status-accepted, .status-paid { background: #e3f0e5; color: var(--ok); }
.status-declined, .status-closed { background: #f1efe9; color: var(--muted); }

/* Admin */
.admin { background: #f1f0eb; }
.admin-header { background: var(--ink); color: var(--white); }
.admin-header .brand img { width: 100px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; font-size: .9rem; }
.admin-nav a { color: #d8d6cf; text-decoration: none; }
.admin-nav a:hover { color: var(--white); }
.admin-nav form { margin: 0; }
.admin-nav .linklike { color: #9e9c95; font-size: .85rem; }
.admin-main { padding-top: 2rem; padding-bottom: 4rem; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-title h1 { font-size: 1.8rem; margin: 0; }
.admin-title form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; text-decoration: none; }
.stat strong { display: block; font-size: 1.8rem; font-stretch: 125%; font-weight: 800; }
.stat span { color: var(--muted); font-size: .85rem; }
a.stat:hover { border-color: var(--ink); }
.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.list th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: .5rem; border-bottom: 1px solid var(--line); }
.list td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.list tr:last-child td { border-bottom: 0; }
.list a { font-weight: 600; }
.list tr.overdue td { color: var(--danger); }
.detail { display: grid; grid-template-columns: 9rem 1fr; gap: .6rem 1rem; margin: 0 0 1.5rem; }
.detail dt { color: var(--muted); font-size: .88rem; }
.detail dd { margin: 0; }
.pre { white-space: pre-line; }
.inline-form { display: flex; gap: .6rem; align-items: center; margin: 0; }
.inline-form select { width: auto; padding: .45em .6em; font-size: .9rem; }
.inline-form label { display: flex; gap: .6rem; align-items: center; }
.edit-items { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.edit-items th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: .4rem; }
.edit-items td { padding: .3rem .4rem; }
.edit-items td:first-child { width: 55%; }
.edit-items input.num { text-align: right; }
.edit-items tfoot td { text-align: right; }
.edit-items tfoot td:first-child { text-align: left; }
.edit-items tr.grand td { font-weight: 800; font-size: 1.1rem; font-stretch: 125%; }
.copy-link { font-family: ui-monospace, monospace; font-size: .85rem; background: var(--paper); }
.admin-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 1rem 0; }
.admin-cal-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .3rem; }
.admin-cal-day { background: #f7f6f2; min-height: 96px; padding: .4rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-size: .8rem; border: 1px solid transparent; }
.admin-cal-day.is-working { background: var(--white); border-color: var(--line); }
.admin-cal-day.is-other { opacity: .45; }
.admin-cal-day.is-blocked { background: repeating-linear-gradient(135deg, #fff 0 6px, #f3e3e1 6px 7px); }
.admin-cal-day.is-today { border-color: var(--ink); }
.admin-cal-day form { margin-top: auto; }
.admin-cal-date { font-weight: 700; }
.chip { display: inline-block; font-size: .72rem; padding: .1em .5em; border-radius: 3px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-job { background: var(--ink); color: var(--white); }
.chip-request { background: var(--accent-soft); color: var(--accent); }
.chip-blocked { background: #f3e3e1; color: var(--danger); }
.legend { display: flex; gap: .6rem; flex-wrap: wrap; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--white); border: 1px solid var(--line); padding: 2.5rem; width: 100%; max-width: 380px; }
.login-card img { width: 160px; margin: 0 auto 1.5rem; }
.login-card h1 { font-size: 1.2rem; text-align: center; margin-bottom: 1.5rem; }
.login-card .btn { width: 100%; }

@media (max-width: 860px) {
  .hero-grid, .two-col, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .numbered { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.btn) { display: none; }
  .doc-parties { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 120px; }
  .numbered, .grid-2, .grid-3, .doc-parties { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .panel { padding: 1.2rem; }
  .footer-meta { text-align: left; }
  .admin-cal { grid-template-columns: 1fr; }
  .admin-cal-head, .admin-cal-day.is-other { display: none; }
  .admin-cal-day { min-height: 0; }
  .list { display: block; overflow-x: auto; }
  .detail { grid-template-columns: 1fr; gap: .1rem; }
  .detail dd { margin-bottom: .6rem; }
  .doc-head { flex-direction: column; }
  .doc-title { text-align: left; }
  .edit-items td:first-child { width: auto; }
}
@media print {
  .no-print { display: none !important; }
  .doc-body { background: none; padding: 0; }
  .doc { box-shadow: none; padding: 0; max-width: none; }
}
