/* =========================================================================
   www.mikeshandy.space

   A handyman's page: deep navy for trust, a safety orange for every action a
   visitor can take, and plenty of white. The layout follows what the popular
   handyman sites do: a phone number and a request button always in view, a
   photo hero, a services grid, three steps, the person behind the business,
   the towns served, a few photos, questions, and the form.

   House rules:
     Archivo for headings and Inter for reading text. Nothing else.
     Every font size comes from the scale on :root.
     Orange means "do something". It is never decoration.
   ========================================================================= */

:root {
    --fs-label: 13px;
    --fs-ui: 15px;
    --fs-body: 17px;
    --fs-h3: 20px;
    --fs-h2: clamp(28px, 4vw, 40px);
    --fs-h1: clamp(36px, 6.4vw, 64px);

    --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

    --navy: #16324f;
    --navy-deep: #0e2236;
    --navy-soft: #24486d;
    --orange: #f26b1d;
    --orange-deep: #d4560d;
    --sun: #ffc94a;
    --ink: #1d2733;
    --muted: #5b6878;
    --line: #dfe5ec;
    --tint: #f3f6f9;
    --white: #ffffff;
    --good: #1f8a4c;
    --bad: #c0392b;

    --radius: 14px;
    --radius-small: 9px;
    --shadow: 0 10px 30px rgba(14, 34, 54, 0.12);
    --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-soft); }

h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1em; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow { max-width: 820px; }

.hidden, [hidden] { display: none !important; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--navy);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-small);
}

.skip-link:focus { left: 8px; }

.eyebrow {
    font-family: var(--font-head);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 10px;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: var(--fs-ui);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: var(--navy);
    color: var(--white);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: default; transform: none; }

.button-accent { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(242, 107, 29, 0.35); }
.button-accent:hover { background: var(--orange-deep); }

.button-light { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.button-light:hover { background: rgba(255, 255, 255, 0.24); }

.button-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.button-outline:hover { border-color: var(--navy); }

.button-large { padding: 15px 28px; font-size: var(--fs-body); }
.button-small { padding: 7px 14px; font-size: var(--fs-label); }
.button-wide { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { display: flex; justify-content: center; margin-top: 36px; }

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: var(--fs-label);
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover { color: var(--bad); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--orange);
    flex: none;
}

.brand-mark svg { width: 24px; height: 24px; fill: var(--white); }

.brand-words { display: flex; flex-direction: column; line-height: 1.2; }
.brand-words strong { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 800; color: var(--navy); }
.brand-words span { font-size: var(--fs-label); color: var(--muted); }

.brand-light .brand-words strong { color: var(--white); }
.brand-light .brand-words span { color: rgba(255, 255, 255, 0.7); }

.site-nav { display: none; gap: 22px; }

.site-nav a {
    font-size: var(--fs-ui);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover { color: var(--orange-deep); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: var(--fs-ui);
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

.header-phone svg { width: 20px; height: 20px; fill: var(--orange); }
.header-phone span { display: none; }

.header-actions .button { padding: 9px 16px; }

.signed-in { display: none; font-size: var(--fs-label); color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    min-height: 620px;
    display: flex;
    align-items: flex-end;
}

.hero picture, .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 34, 54, 0.35) 0%, rgba(14, 34, 54, 0.82) 62%, rgba(14, 34, 54, 0.94) 100%);
}

.hero-inner { position: relative; padding-top: 120px; padding-bottom: 48px; }
.hero .eyebrow { color: var(--sun); }
.hero h1 { color: var(--white); max-width: 12em; }

.lead { font-size: var(--fs-h3); line-height: 1.5; max-width: 36em; color: rgba(255, 255, 255, 0.92); }

.trust-row {
    list-style: none;
    margin: 36px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.trust-row li { display: flex; flex-direction: column; }
.trust-row strong { font-family: var(--font-head); font-size: var(--fs-body); color: var(--sun); }
.trust-row span { font-size: var(--fs-label); color: rgba(255, 255, 255, 0.82); }

/* ---------- Bands ---------- */

.band { padding: 72px 0; }
.band-tint { background: var(--tint); }

.band-dark { background: var(--navy); color: rgba(255, 255, 255, 0.9); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--sun); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* ---------- Services ---------- */

.service-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.service {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.service:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.service p { color: var(--muted); margin: 0; }

.service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fff1e8;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--orange-deep);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Steps ---------- */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.steps li {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps p { color: var(--muted); margin: 0; }

.step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-head);
    font-size: var(--fs-h3);
    font-weight: 800;
}

/* ---------- Split sections ---------- */

.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }

.split-photo { margin: 0; }
.split-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }

.check-list li { position: relative; padding-left: 32px; font-weight: 600; }

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.check-list-light li { color: var(--white); }

/* ---------- Service area ---------- */

.area { position: relative; overflow: hidden; color: var(--white); padding: 88px 0; }

.area-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.area-shade { position: absolute; inset: 0; background: rgba(14, 34, 54, 0.78); }

.area-inner { position: relative; text-align: center; }
.area h2 { color: var(--white); }
.area .eyebrow { color: var(--sun); }

.town-list {
    list-style: none;
    padding: 0;
    margin: 28px auto 0;
    max-width: 860px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.town-list li {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: var(--fs-ui);
    font-weight: 600;
}

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.gallery figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(14, 34, 54, 0.82);
    color: var(--white);
    font-size: var(--fs-label);
    font-weight: 600;
}

/* ---------- Questions ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 22px;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 28px 18px 0;
    position: relative;
    font-family: var(--font-head);
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--navy);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-h3);
    color: var(--orange);
}

.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Contact ---------- */

.split-contact { align-items: start; }

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    font-family: var(--font-head);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}

.contact-phone svg { width: 32px; height: 32px; fill: var(--orange); }

.contact-card {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-form { display: grid; gap: 14px; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: var(--fs-ui); font-weight: 600; color: var(--navy); }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #c9d2dc;
    border-radius: var(--radius-small);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-body);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy-soft);
    box-shadow: 0 0 0 3px rgba(36, 72, 109, 0.18);
}

.field-note { margin: -6px 0 0; font-size: var(--fs-label); color: var(--muted); }

.captcha { padding: 14px; border-radius: var(--radius-small); background: var(--tint); }

/* The photo picker (typescript/app/uploads.ts, from kazman.codebot.org). The
   browser's own file button is hidden; the drop area is the label that opens it. */
.upload { position: relative; }
.upload-label { font-size: var(--fs-ui); font-weight: 600; color: var(--navy); }
.upload-label small { font-weight: 400; color: var(--muted); }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 12px;
    background: var(--tint);
    border: 2px dashed #c9d2dc;
    border-radius: var(--radius-small);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover, .upload-zone.dragging { background: #fff1e8; border-color: var(--orange); }
.upload-input:focus-visible + .upload-zone { outline: 3px solid rgba(36, 72, 109, 0.4); outline-offset: 2px; }
.upload-zone strong { font-family: var(--font-head); font-size: var(--fs-body); color: var(--navy); }
.upload-zone span { color: var(--muted); font-size: var(--fs-label); }

.upload-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    fill: none;
    stroke: var(--orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.upload-list:empty { display: none; }

.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
}

.upload-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
}

.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-words { display: flex; flex-direction: column; min-width: 0; }
.upload-words strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-label); }
.upload-words small { color: var(--muted); font-size: var(--fs-label); }

.upload-remove {
    margin-left: auto;
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: var(--fs-h3);
    line-height: 1;
    cursor: pointer;
}

.upload-remove:hover { border-color: var(--bad); color: var(--bad); }

/* The trap field: off screen for people, still in the form for scripts. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-message { margin: 0; min-height: 1.2em; font-size: var(--fs-ui); font-weight: 600; color: var(--bad); }
.form-message:empty { display: none; }

.contact-thanks { text-align: center; padding: 28px 8px; }

.thanks-mark {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e3f4ea;
}

.thanks-mark svg { width: 34px; height: 34px; fill: none; stroke: var(--good); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 56px 0 24px; font-size: var(--fs-ui); }

.site-footer h3 { color: var(--white); font-size: var(--fs-body); }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer p { margin: 0 0 8px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand .brand { margin-bottom: 12px; }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--fs-label);
}

.site-footer .footer-login { color: rgba(255, 255, 255, 0.5); }

/* ---------- Login ---------- */

.page-login { background: var(--tint); }

.login-main { display: grid; place-items: center; padding: 48px 20px 80px; }

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-card > p { color: var(--muted); }
.login-back { margin: 20px 0 0; font-size: var(--fs-ui); text-align: center; }

/* ---------- Admin ---------- */

.page-admin { background: var(--tint); }

.admin-main { padding: 36px 0 72px; }
.admin-head p { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: var(--fs-ui);
    font-weight: 600;
    text-decoration: none;
}

.tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.tab-count {
    min-width: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--muted);
    font-size: var(--fs-label);
    text-align: center;
}

.tab.active .tab-count { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.tab-count.badge-new { background: var(--orange); color: var(--white); }

.request-list { display: grid; gap: 16px; }

.request {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--line);
    border-radius: var(--radius);
}

.request.status-new { border-left-color: var(--orange); }
.request.status-contacted { border-left-color: var(--sun); }
.request.status-scheduled { border-left-color: var(--navy-soft); }
.request.status-done { border-left-color: var(--good); }
.request.status-declined { border-left-color: #9aa5b1; opacity: 0.85; }
.request.removing { opacity: 0.4; }

.request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.request-head h2 { font-size: var(--fs-h3); margin: 0 0 4px; }
.request-meta { margin: 0; font-size: var(--fs-label); color: var(--muted); }

.status-badge {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--navy);
    font-size: var(--fs-label);
    font-weight: 700;
}

.status-new .status-badge { background: var(--orange); color: var(--white); }

.request-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.request-best { font-size: var(--fs-label); color: var(--muted); }

.request-description {
    white-space: pre-line;
    padding: 14px;
    border-radius: var(--radius-small);
    background: var(--tint);
}

/* Photos sent with a request: tap one to open it full size. */
.request-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.request-photos:empty { display: none; }

.request-photo {
    display: block;
    width: 110px;
    height: 110px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--tint);
}

.request-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.request-photo:hover img { transform: scale(1.05); }

.request-photo-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.request-photo-file small { font-size: var(--fs-label); font-weight: 400; opacity: 0.8; }

.request-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.status-button {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-label);
    font-weight: 600;
    cursor: pointer;
}

.status-button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.notes-label { display: block; margin-bottom: 6px; font-size: var(--fs-ui); font-weight: 600; color: var(--navy); }

.request-notes {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d2dc;
    border-radius: var(--radius-small);
    font: inherit;
    font-size: var(--fs-ui);
    resize: vertical;
}

.request-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.notes-state { font-size: var(--fs-label); color: var(--muted); }

.empty-state {
    padding: 48px 20px;
    background: var(--white);
    border: 1px dashed #c9d2dc;
    border-radius: var(--radius);
    text-align: center;
}

.empty-state p { color: var(--muted); margin: 0; }

/* ---------- Admin navigation ---------- */

.admin-nav { display: flex; gap: 6px; }

.admin-nav-link {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--ink);
    font-size: var(--fs-label);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admin-nav-link:hover { background: var(--tint); }
.admin-nav-link.active { background: var(--navy); color: var(--white); }

/* ---------- Work schedule (taken from www.foldersreach.com) ---------- */

.avail-panel {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.avail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 8px;
}

.avail-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avail-nav h2 { margin: 0 6px; font-size: var(--fs-h3); }
.avail-nav .is-disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.avail-edit-bar { display: flex; align-items: center; gap: 8px; }

#avail-message { margin-bottom: 8px; }
#avail-message.is-good { color: var(--good); }

/* On a narrow screen the board scrolls sideways in its own box. On a wide one
   it fits, and the box lets go so the hours row can stick to the window. */
.avail-scroll { overflow-x: auto; }

@media (min-width: 1100px) {
    .avail-scroll { overflow: visible; }
}

.site-header-plain .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }

.avail-board {
    --day: 16rem;
    --end: 2.6rem;
    position: relative;
    min-width: 50rem;
    font-size: var(--fs-label);
}

.avail-row {
    display: grid;
    grid-template-columns: var(--day) minmax(0, 1fr) var(--end);
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

.avail-hours-head {
    position: sticky;
    top: var(--avail-top, 0px);
    z-index: 4;
    background: var(--white);
    box-shadow: 0 6px 10px -8px rgba(0, 0, 0, 0.35);
}

.avail-end { display: flex; align-items: center; justify-content: center; }

.avail-day {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px 6px 6px;
}

.avail-tool, .avail-tool-spacer {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
}

.avail-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.avail-tool svg, .avail-block-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avail-tool:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.avail-copy .avail-paste-icon { display: none; }

.avail-board.is-copying .avail-copy.is-source { background: var(--orange); border-color: var(--orange); color: var(--white); }
.avail-board.is-copying .avail-copy:not(.is-source) .avail-copy-icon { display: none; }
.avail-board.is-copying .avail-copy:not(.is-source) .avail-paste-icon { display: inline-block; }

.avail-close[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: var(--white); }

.avail-day-name { font-weight: 700; color: var(--navy); }
.avail-day-date { color: var(--muted); white-space: nowrap; }

.avail-day-off {
    display: none;
    color: var(--bad);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.avail-row.is-closed .avail-day-off { display: inline; }
.avail-day-total { margin-left: auto; color: var(--muted); white-space: nowrap; }

.avail-track {
    position: relative;
    min-height: 38px;
    background-image: repeating-linear-gradient(to right,
        var(--line) 0 1px, transparent 1px calc(100% / var(--hours)));
}

.avail-hours-head .avail-track {
    display: grid;
    grid-template-columns: repeat(var(--hours), 1fr);
    min-height: 0;
    background: none;
}

.avail-hour {
    padding: 5px 0 5px 3px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.avail-week-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 18px 8px 6px;
    border-bottom: 2px solid var(--line);
}

.avail-week-head h3 {
    margin: 0;
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.avail-week-range, .avail-week-total { color: var(--muted); }
.avail-week-total { margin-left: auto; font-weight: 700; }

/* Today stands out; days that have passed step back. */
.avail-row.is-today { background: #fff7f1; }
.avail-row.is-today .avail-day-date { color: var(--ink); font-weight: 700; }
.avail-row.is-past { opacity: 0.55; }

.avail-row.is-closed .avail-track {
    background-image: repeating-linear-gradient(-45deg, transparent 0 8px, var(--line) 8px 10px),
        repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--hours)));
}

.avail-row.is-closed .avail-bar { opacity: 0.45; }

.avail-bar {
    position: absolute;
    top: 5px;
    bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4px;
    overflow: hidden;
    border-radius: 5px;
    background-color: var(--navy-soft);
    color: var(--white);
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
}

.avail-row[data-editable] .avail-bar { cursor: grab; touch-action: none; }
.avail-row[data-editable] .avail-bar:active { cursor: grabbing; }
.avail-row[data-editable] .avail-bar[data-began],
.avail-row[data-editable] .avail-bar[data-locked] { cursor: default; }
.avail-bar[data-locked] { opacity: 0.6; }

.avail-remove {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: var(--fs-body);
    line-height: 1;
    opacity: 0.75;
    cursor: pointer;
}

.avail-remove:hover { opacity: 1; }

/* Busy: the hours stay on the schedule, hatched. */
.avail-block-toggle {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    padding: 2px;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

.avail-block-toggle:hover { opacity: 1; }

.avail-bar.is-blocked {
    background-image: repeating-linear-gradient(-45deg,
        rgba(0, 0, 0, 0.22) 0 4px, rgba(0, 0, 0, 0.06) 4px 9px);
}

.avail-bar.is-blocked .avail-block-toggle { opacity: 1; }

/* A short block keeps its handles and hides its label; hovering shows the times. */
.avail-bar.is-narrow .avail-hours,
.avail-bar.is-narrow .avail-block-toggle { display: none; }
.avail-bar.is-narrow .avail-remove { right: auto; left: 50%; transform: translate(-50%, -50%); }
.avail-bar.is-narrow .avail-handle { width: 6px; }

.avail-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background: rgba(255, 255, 255, 0.3);
    cursor: ew-resize;
}

.avail-handle-start { left: 0; }
.avail-handle-end { right: 0; }

/* Changed and not yet saved. */
.avail-bar.is-dirty {
    background-color: var(--orange);
    color: var(--white);
    outline: 2px dashed var(--navy);
    outline-offset: -2px;
}

.avail-now {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bad);
    pointer-events: none;
}

/* On a mouse, a day's buttons show when the pointer is over it. */
@media (hover: hover) {
    .avail-row .avail-tool { visibility: hidden; }
    .avail-row:hover .avail-tool,
    .avail-row:focus-within .avail-tool,
    .avail-row .avail-close[aria-pressed="true"],
    .avail-board.is-copying .avail-copy { visibility: visible; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
    .header-phone span { display: inline; }
    .trust-row { grid-template-columns: repeat(4, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-card { padding: 32px; }
    .signed-in { display: inline; }
}

@media (min-width: 900px) {
    .band { padding: 96px 0; }
    .hero { min-height: 700px; }
    .hero-inner { padding-bottom: 64px; }
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .split-contact { grid-template-columns: 5fr 7fr; }
    .gallery { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1100px) {
    .site-nav { display: flex; }
    .service-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
