/* Small Operations Development
   Look: shop paper, work-order ink, safety orange. One typeface (Archivo),
   with its width axis doing the work: expanded for headings, condensed for form labels. */

:root {
    --paper: #F2F4F1;
    --surface: #FFFFFF;
    --ink: #18232E;
    --ink-soft: #4A5763;
    --rule: #C9D0CC;
    --signal: #C2410C;
    --signal-dark: #9A3412;
    --steel: #24506E;
    --ticket: #FBF6E4;
    --ticket-rule: #D9CFAE;
    --error: #A11D1D;
    --placeholder: #FFE8A3;

    --font: "Archivo", "Helvetica Neue", Helvetica, system-ui, sans-serif;
    --wrap: 1160px;
    --measure: 66ch;
    --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
}

h1, h2, h3 {
    margin: 0 0 0.5em;
    line-height: 1.1;
    font-weight: 760;
    font-stretch: 118%;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.2rem; font-stretch: 108%; line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--steel); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
main:focus { outline: none; }

img { max-width: 100%; height: auto; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem;
    background: var(--ink); color: var(--paper);
    padding: 0.75rem 1rem; z-index: 10; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* Placeholder copy you still need to fill in. Remove the class once it's real. */
.ph { background: var(--placeholder); padding: 0 0.2em; border-radius: 2px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.3rem;
    font: inherit;
    font-weight: 650;
    font-stretch: 106%;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-primary { background: var(--signal); border-color: var(--signal); color: #FFFFFF; }
.btn-primary:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--steel); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; }

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

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-stretch: 125%;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 30px; height: 30px; }
.brand-light, .brand-light:hover { color: #FFFFFF; }

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.4rem;
}
.site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 560;
    border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--ink); }
.site-nav a.active { border-bottom-color: var(--signal); }

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

.hero { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6.5rem); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.hero h1 { max-width: 15ch; }

.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.fine { font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.25rem; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero .ticket { max-width: 30rem; }
}

/* ---------- Work ticket (the one loud thing on the site) ---------- */

.ticket {
    position: relative;
    margin: 0;
    padding: 1.4rem 1.5rem 1.25rem;
    background: var(--ticket);
    border: 1px solid var(--ticket-rule);
    border-top: 6px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(24, 35, 46, 0.09);
    transform: rotate(-1.2deg);
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.4rem;
    border-bottom: 2px solid var(--ink);
}
.ticket-title { font-weight: 800; font-stretch: 125%; font-size: 1.15rem; }
.ticket-no { font-stretch: 75%; font-weight: 700; color: var(--signal-dark); font-variant-numeric: tabular-nums; }

.ticket-fields { margin: 0; }
.ticket-fields > div {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: 0.6rem;
    border-bottom: 1px dashed var(--ticket-rule);
}
.ticket-fields dt { font-stretch: 75%; font-weight: 650; font-size: 0.92rem; color: var(--ink-soft); padding-top: 0.1em; }
.ticket-fields dd { margin: 0; font-weight: 520; line-height: 1.45; }

.ticket-status { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.ticket-status li { display: flex; align-items: center; gap: 0.65rem; font-weight: 540; }

.box {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--surface);
    border: 2px solid var(--ink);
    color: var(--signal-dark);
}
.box svg { width: 0.95rem; height: 0.95rem; }

.ticket-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--ticket-rule);
}
.signoff { font-stretch: 75%; font-size: 0.92rem; color: var(--ink-soft); }

.stamp {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 3px solid var(--signal);
    border-radius: var(--radius);
    color: var(--signal);
    font-weight: 850;
    font-stretch: 125%;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-7deg);
    animation: stamp-down 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.6s both;
}

@keyframes stamp-down {
    from { opacity: 0; transform: rotate(-7deg) scale(1.9); }
    to { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.section-alt { background: var(--surface); }
.section-flush { border-top: 0; padding-top: 0; }

.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.125rem; color: var(--ink-soft); }

.closer { margin-top: 2.5rem; margin-bottom: 0; font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { max-width: 20ch; }
.page-head-tight { padding-bottom: 2rem; }

/* Requirement grid: reads like the fields on a spec sheet */
.req-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 2.25rem 2.5rem;
}
.req-grid li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.req-grid h3 { margin-bottom: 0.4em; }
.req-grid p { margin: 0; color: var(--ink-soft); }

/* Offers */
.offers { border-top: 2px solid var(--ink); }
.offer {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr) minmax(11rem, auto);
    gap: 1rem 2.5rem;
    align-items: start;
    padding-block: 2rem;
    border-bottom: 1px solid var(--rule);
}
.offer h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); font-stretch: 118%; margin: 0; }
.offer p { margin-bottom: 0.6rem; }

.price { font-weight: 720; font-stretch: 94%; font-size: 1.1rem; margin: 0; }
.price small { display: block; margin-top: 0.2rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }

@media (max-width: 820px) {
    .offer { grid-template-columns: minmax(0, 1fr); }
}

/* Steps: an actual sequence, so numbered */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 2rem 2rem;
}
.steps-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.6rem;
    font-weight: 800;
    font-stretch: 125%;
    line-height: 1;
    color: var(--signal);
    font-variant-numeric: tabular-nums;
}
.steps li::after {
    content: "";
    position: absolute;
    top: 1.3rem;
    left: 2.6rem;
    right: 0;
    border-top: 2px solid var(--rule);
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Fit + case study */
.fit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 900px) {
    .fit-grid { grid-template-columns: minmax(0, 1fr); }
}

.trades { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trades li {
    padding: 0.4rem 0.95rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-weight: 560;
    background: var(--surface);
}

.case {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 6px solid var(--steel);
    padding: 1.6rem 1.6rem 1.25rem;
}
.case h3 { font-size: 1.25rem; }
.case blockquote {
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--rule);
    font-size: 1.1rem;
    font-weight: 520;
}
.case blockquote p { margin: 0; }

/* Referral band */
.band-steel { background: var(--steel); color: #FFFFFF; padding-block: clamp(3rem, 6vw, 4.5rem); }
.band-steel p { color: #E3ECF2; }
.band-inner, .cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}
.band-inner > div, .cta-inner > div { flex: 1 1 32rem; }
.band-inner p, .cta-inner p { margin-bottom: 0; }

/* Closing call to action */
.cta-band { background: var(--ink); color: #FFFFFF; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band p { color: #C9D3DB; font-size: 1.125rem; }

/* Detail pages */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
.detail-grid h3 { margin-top: 0.2rem; }
.detail-grid .price { margin-top: 1.5rem; }

.ticks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--ink);
    background: var(--surface);
}
.ticks li::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.42em;
    width: 0.35rem;
    height: 0.62rem;
    border: solid var(--signal-dark);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.ticks-warn li::after { display: none; }
.ticks-warn li::before { border-color: var(--signal); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); margin-top: 1.5rem; }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding-block: 0.9rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--signal-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); margin-bottom: 1.25rem; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 860px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
}
.photo-ph {
    aspect-ratio: 4 / 5;
    max-width: 22rem;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 2px dashed var(--rule);
}

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

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

.contact-form { max-width: 46rem; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 640px) {
    .field-row { grid-template-columns: minmax(0, 1fr); }
}

.field { display: grid; gap: 0.35rem; margin-bottom: 1.25rem; }
.field label { font-weight: 650; }
.optional, .hint { font-weight: 450; color: var(--ink-soft); font-size: 0.95rem; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid #6F7C87;
    border-radius: var(--radius);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }

.field .invalid { border-color: var(--error); border-width: 2px; }
.validation-message { color: var(--error); font-weight: 560; font-size: 0.95rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-left-width: 2px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.notice h2 { font-size: 1.6rem; }
.notice-error { border-color: var(--error); }
.notice-error p { margin: 0; }

.contact-aside h2 { font-size: 1.15rem; font-stretch: 108%; margin-top: 1.5rem; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside p { color: var(--ink-soft); }

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

.site-footer { background: var(--ink); color: #C9D3DB; padding-top: 3.5rem; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFD3BF; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 2rem 3rem;
    padding-bottom: 2.5rem;
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.footer-heading { font-size: 1rem; font-stretch: 110%; color: #FFFFFF; margin-bottom: 0.6rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }

.footer-legal { border-top: 1px solid #33424F; padding-block: 1.25rem; font-size: 0.92rem; }
.footer-legal p { margin: 0; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stamp { animation: none; }
}
