:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --text: #1f2a30;
    --muted: #5b6870;
    --accent: #1d5c63;
    --accent-dark: #143f44;
    --line: #e3e0d8;
    --ok: #1e6b3a;
    --err: #a1261d;
    --radius: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--accent-dark); }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--accent-dark); }
.brand-sub { font-size: .9rem; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 760px) {
    .nav-toggle-label { display: inline-block; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; }
    .main-nav { width: 100%; }
    .main-nav ul { display: none; flex-direction: column; padding-top: 8px; }
    .nav-toggle:checked ~ ul { display: flex; }
    .main-nav { display: flex; flex-direction: column; align-items: flex-end; }
    .main-nav ul { align-self: stretch; }
}

/* Content */
.content { padding-top: 2rem; padding-bottom: 3rem; }
.lead { font-size: 1.15rem; }
.small { font-size: .9rem; color: var(--muted); }

.intro { display: grid; grid-template-columns: 1fr 200px; gap: 2rem; align-items: start; }
.portrait { margin: 0; }
.portrait img { display: block; width: 200px; height: auto; border-radius: var(--radius); }
.portrait figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 760px) {
    .intro { grid-template-columns: 1fr; }
    .portrait img { width: 160px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.card h2 { margin-top: 0; }

.hours { border-collapse: collapse; }
.hours th { text-align: left; padding: 2px 1rem 2px 0; font-weight: 600; white-space: nowrap; vertical-align: top; }
.hours td { padding: 2px 0; }

.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.services h2 { margin-top: 0; font-size: 1.1rem; }

blockquote { margin: 2rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--accent); background: var(--surface); font-style: italic; }

.downloads li { margin: .4rem 0; }

.button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: .6rem 1.2rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); color: #fff; }

/* Form */
.contact-form { max-width: 620px; display: flex; flex-direction: column; }
.contact-form label { font-weight: 600; margin-top: .9rem; margin-bottom: .25rem; }
.contact-form input[type=text], .contact-form input[type=tel], .contact-form input[type=email], .contact-form textarea {
    font: inherit; padding: .55rem .7rem; border: 1px solid #b9b5ab; border-radius: var(--radius); background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .check { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; margin: 1.2rem 0; }
.contact-form .check input { margin-top: .35rem; }
.contact-form .button { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0; }
.notice.success { background: #e6f2ea; color: var(--ok); }
.notice.error { background: #f8e8e6; color: var(--err); }
.notice ul { margin: .3rem 0 0; }

/* Upload */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dropzone { border: 2px dashed #b9b5ab; border-radius: var(--radius); background: var(--surface); padding: 1.5rem 1rem; text-align: center; }
.dropzone p { margin: 0 0 .6rem; color: var(--muted); }
.dropzone.over { border-color: var(--accent); background: #eef5f5; }
.upload-form .dropzone .button { margin: 0; font-weight: 600; color: #fff; }
.file-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.file-list .fname { overflow-wrap: anywhere; }
.file-list .fsize { color: var(--muted); font-size: .9rem; }
.file-list progress { grid-column: 1 / -1; width: 100%; }
.file-list li.too-big .fsize { color: var(--err); font-weight: 600; }
.file-list li.sent .fname::after { content: " ✓"; color: var(--ok); }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.upload-form.busy .link { visibility: hidden; }
#overall { width: 100%; height: 1rem; }

/* Footer */
.site-footer { background: var(--accent-dark); color: #e8efef; padding: 2rem 0; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .small { color: #c4d3d4; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .2rem 0; }
