/* Ко и Ко Консулт – финансово-счетоводна къща, Враца.
   Paper and deep navy from the blue of the firm's ФСК logo, brass from the key in its hand.
   STIX Two Text for headings and text, IBM Plex Mono for labels and figures, like the columns of a ledger.
   Signature: the five priorities of the firm stack up into a pillar under its motto „Съгради и съхрани!“. */

@font-face {
    font-family: "STIX Two Text";
    src: url("/fonts/stix-two-text.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("/fonts/stix-two-text-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #f5f2ea;
    --paper-2: #ebe5d7;
    --white: #ffffff;
    --ink: #1f1b1c;
    --ink-soft: #4b4547;
    --rule: #d6cdb9;
    --navy: #0b2540;
    --navy-2: #12365a;
    --navy-3: #1b4a78;
    --blue: #0071bd;
    --link: #005a98;
    --sky: #8fcaf5;
    --brass: #d9aa66;
    --brass-deep: #8a5717;
    --on-navy: #eef2f6;
    --on-navy-soft: #c3cfdc;
    --serif: "STIX Two Text", "Times New Roman", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --wrap: 72rem;
    --radius: 1.25rem;
    --shadow: 0 1px 2px rgb(11 37 64 / 0.08), 0 12px 32px -12px rgb(11 37 64 / 0.28);
    --lb-bg: rgb(6 20 36 / 0.96);
    --lb-accent: #d9aa66;
    --lb-accent-soft: rgb(217 170 102 / 0.22);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.125rem/1.6 var(--serif);
    font-feature-settings: "kern", "liga";
    overflow-wrap: break-word;
}

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

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.on-navy :focus-visible,
.foot :focus-visible,
.nav :focus-visible {
    outline-color: var(--brass);
}

h1,
h2,
h3 {
    font-family: var(--serif);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.9rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

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

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 0.5rem;
}

.skip:focus {
    top: 1rem;
}

.eyebrow {
    font: 600 0.78rem/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin: 0 0 1rem;
}

.on-navy .eyebrow {
    color: var(--brass);
}

.lead {
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
    line-height: 1.5;
}

/* ---- header: the original logo needs its white plate ---- */

.top {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    position: relative;
    z-index: 20;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding-block: 0.5rem;
}

.brand {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
}

.brand img {
    display: block;
    height: 3.5rem;
    width: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font: 600 0.95rem/1 var(--mono);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.call:hover {
    background: var(--navy-3);
}

.lang {
    display: flex;
    gap: 0.15rem;
    font: 600 0.8rem/1 var(--mono);
}

.lang a,
.lang span {
    display: inline-block;
    padding: 0.5rem 0.45rem;
    border-radius: 0.4rem;
}

.lang a {
    color: var(--ink-soft);
    text-decoration: none;
}

.lang a:hover {
    background: var(--paper);
    color: var(--ink);
}

.lang span {
    color: var(--navy);
    background: var(--paper-2);
}

.nav {
    background: var(--navy);
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    padding-block: 0.35rem;
}

.nav a {
    display: inline-block;
    padding: 0.55rem 0.7rem;
    color: var(--on-navy);
    font: 600 0.82rem/1.2 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.4rem;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    background: rgb(255 255 255 / 0.08);
}

.nav a[aria-current] {
    color: var(--brass);
    border-bottom-color: var(--brass);
    border-radius: 0.4rem 0.4rem 0 0;
}

@media (max-width: 26rem) {
    .brand img {
        height: 3rem;
    }

    .call {
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }

    .nav a {
        padding: 0.5rem 0.5rem;
        font-size: 0.76rem;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 60em) {
    .top {
        position: sticky;
        top: 0;
    }

    .brand img {
        height: 4rem;
    }

    .top-row {
        min-height: 5rem;
    }
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font: 600 0.92rem/1.2 var(--mono);
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
    background: var(--navy-3);
    border-color: var(--navy-3);
    transform: translateY(-2px);
}

.btn-brass {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--navy);
}

.btn-brass:hover {
    background: #e7bd7f;
    border-color: #e7bd7f;
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--on-navy);
}

.btn-ghost:hover {
    background: rgb(255 255 255 / 0.1);
    border-color: var(--on-navy);
}

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

/* ---- navy bands ---- */

.on-navy {
    color: var(--on-navy);
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgb(0 113 189 / 0.45), transparent 60%),
        radial-gradient(40rem 26rem at 0% 100%, rgb(217 170 102 / 0.12), transparent 65%),
        var(--navy);
}

.on-navy a:not(.btn) {
    color: var(--sky);
}

.on-navy .lead,
.on-navy p {
    color: var(--on-navy-soft);
}

.on-navy h1,
.on-navy h2,
.on-navy h3 {
    color: var(--white);
}

/* the ledger: faint ruled lines behind the hero */
.ledger {
    position: relative;
    isolation: isolate;
}

.ledger::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent calc(100% - 1px), rgb(255 255 255 / 0.06) 0) 0 0 / 6rem 100%,
        linear-gradient(transparent calc(100% - 1px), rgb(255 255 255 / 0.06) 0) 0 0 / 100% 2.25rem;
    mask-image: linear-gradient(180deg, #000 30%, transparent);
}

/* ---- home hero with the stack ---- */

.hero {
    padding-block: clamp(2.75rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 6rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 0.3em;
}

.hero .motto {
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem);
    line-height: 1.05;
    color: var(--brass);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.stack-wrap {
    margin: 0;
}

.stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.4rem;
}

.stack li {
    --w: 100%;
    width: var(--w);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.6rem;
    background: linear-gradient(100deg, var(--c1), var(--c2));
    color: var(--white);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 10px 24px -14px rgb(0 0 0 / 0.7);
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
    font-weight: 600;
    line-height: 1.2;
    animation: stack-in 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

.stack li span {
    font: 600 0.75rem/1 var(--mono);
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.stack li:nth-child(1) { --w: 100%; --c1: #12365a; --c2: #1b4a78; animation-delay: 0.15s; }
.stack li:nth-child(2) { --w: 90%; --c1: #164777; --c2: #0f5f9c; animation-delay: 0.35s; }
.stack li:nth-child(3) { --w: 80%; --c1: #0b5d9c; --c2: #0071bd; animation-delay: 0.55s; }
.stack li:nth-child(4) { --w: 70%; --c1: #0067aa; --c2: #2a83c2; animation-delay: 0.75s; }
.stack li:nth-child(5) { --w: 60%; --c1: #c99550; --c2: #e2b673; color: var(--navy); animation-delay: 0.95s; }

.stack-base {
    margin: 0.6rem 0 0;
    padding-top: 0.75rem;
    border-top: 2px solid var(--brass);
    font: 600 0.75rem/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--brass);
}

@keyframes stack-in {
    from {
        opacity: 0;
        transform: translateY(-3.5rem) scale(0.96);
    }
}

@media (min-width: 52em) {
    .hero-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: 4rem;
    }
}

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

.band {
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.band-tight {
    padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.band-paper2 {
    background: var(--paper-2);
}

.split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 52em) {
    .split {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 4rem;
        align-items: start;
    }
}

.big-quote {
    font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0;
}

.big-quote + p {
    margin-top: 1.25rem;
    color: var(--ink-soft);
}

/* the services: a bento of three */
.bento {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.bento > li {
    display: flex;
}

.svc {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 1px solid var(--rule);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.svc:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 1px 2px rgb(11 37 64 / 0.08), 0 22px 40px -16px rgb(11 37 64 / 0.4);
}

.svc-num {
    font: 600 0.8rem/1 var(--mono);
    letter-spacing: 0.12em;
    color: var(--brass-deep);
}

.svc h3 {
    margin: 0;
    color: var(--navy);
}

.svc p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.svc .more {
    margin-top: auto;
    font: 600 0.82rem/1.2 var(--mono);
    letter-spacing: 0.04em;
    color: var(--link);
}

.svc img {
    display: block;
    border-radius: 0.75rem;
    align-self: flex-start;
}

.svc-feature {
    background: var(--navy);
    color: var(--on-navy);
    border-color: var(--navy);
}

.svc-feature h3 {
    color: var(--white);
}

.svc-feature p {
    color: var(--on-navy-soft);
}

.svc-feature .svc-num {
    color: var(--brass);
}

.svc-feature .more {
    color: var(--sky);
}

.svc-feature:hover {
    border-color: var(--brass);
}

@media (min-width: 46em) {
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento > li:first-child {
        grid-row: span 2;
    }
}

@media (min-width: 64em) {
    .bento {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .bento > li:first-child {
        grid-row: auto;
    }
}

/* the founder strip with the one figure the original states */
.figure-band {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: center;
}

.figure {
    margin: 0;
    font: 600 clamp(6rem, 4rem + 9vw, 11rem)/0.85 var(--serif);
    letter-spacing: -0.04em;
    color: var(--brass);
}

.figure small {
    display: block;
    margin-top: 0.6rem;
    font: 600 0.8rem/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-navy);
}

@media (min-width: 46em) {
    .figure-band {
        grid-template-columns: auto 1fr;
    }
}

/* the price band */
.cta {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.75rem, 1rem + 3vw, 3rem);
    border-radius: calc(var(--radius) * 1.4);
    background:
        linear-gradient(120deg, rgb(255 255 255 / 0.06), transparent 50%),
        var(--navy-2);
    color: var(--on-navy);
    align-items: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 0.4em;
}

.cta p {
    color: var(--on-navy-soft);
    margin: 0;
}

@media (min-width: 52em) {
    .cta {
        grid-template-columns: 1fr auto;
    }
}

/* contact cards */
.contact-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.contact-cards li {
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--rule);
}

.contact-cards .label {
    display: block;
    margin-bottom: 0.4rem;
    font: 600 0.75rem/1.2 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass-deep);
}

.contact-cards .value {
    font-size: 1.2rem;
    line-height: 1.4;
}

.big-phone {
    font: 600 clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem)/1.2 var(--mono);
    letter-spacing: -0.02em;
    color: var(--navy);
    text-decoration: none;
}

.big-phone:hover {
    text-decoration: underline;
}

@media (min-width: 46em) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- inner pages ---- */

.page-hero {
    padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
    max-width: 22ch;
}

.page-hero .lead {
    max-width: 46rem;
    margin: 0;
}

.crumbs {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font: 600 0.78rem/1.4 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--brass);
}

.crumbs [aria-current] {
    color: var(--on-navy);
}

.prose {
    max-width: 44rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem);
    margin-top: 1.5em;
}

.prose h2:first-child {
    margin-top: 0;
}

.ticks {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.ticks li {
    position: relative;
    padding: 0.7rem 0 0.7rem 2rem;
    border-bottom: 1px solid var(--rule);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 1.25rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--brass);
    transform: rotate(45deg);
}

/* the numbered blocks of a service page */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    counter-reset: step;
}

.steps > li {
    counter-increment: step;
    display: grid;
    gap: 0.5rem 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
}

.steps > li::before {
    content: counter(step, decimal-leading-zero);
    font: 600 2.4rem/1 var(--serif);
    color: var(--brass-deep);
}

.steps h2 {
    font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
    margin: 0 0 0.5rem;
    color: var(--navy);
}

.steps .ticks {
    margin: 0;
}

.steps .ticks li:last-child {
    border-bottom: 0;
}

@media (min-width: 46em) {
    .steps > li {
        grid-template-columns: 4.5rem 1fr;
    }
}

.svc-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 60em) {
    .svc-layout {
        grid-template-columns: minmax(0, 1fr) 18.5rem;
        gap: 3.5rem;
        align-items: start;
    }
}

.aside-card {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--paper-2);
    border: 1px solid var(--rule);
}

.aside-card h2 {
    font-size: 1.3rem;
}

.photo {
    margin: 0 0 1.25rem;
}

.photo a {
    display: inline-block;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}

.photo img {
    display: block;
    transition: transform 0.4s;
}

.photo a:hover img {
    transform: scale(1.03);
}

.photo figcaption {
    margin-top: 0.6rem;
    font: 400 0.85rem/1.4 var(--mono);
    color: var(--ink-soft);
}

.motto-line {
    font-style: italic;
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 500;
    color: var(--brass-deep);
    margin: 0;
}

.others {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.others a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: var(--white);
    border: 1px solid var(--rule);
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.others a:hover {
    border-color: var(--blue);
}

.others a[aria-current] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* about: three facets of the firm */
.facets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.facets li {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--blue);
}

.facets li:nth-child(2) {
    border-top-color: var(--navy);
}

.facets li:nth-child(3) {
    border-top-color: var(--brass);
}

.facets h2 {
    font-size: 1.5rem;
}

.facets p:last-child {
    margin-bottom: 0;
}

@media (min-width: 60em) {
    .facets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gallery figure {
    margin: 0;
}

.gallery figcaption {
    margin-top: 0.6rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--navy);
}

/* ---- forms ---- */

.form-card {
    padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

.contact-form label,
.contact-form legend {
    display: block;
    margin-bottom: 0.35rem;
    font: 600 0.82rem/1.35 var(--mono);
    letter-spacing: 0.02em;
    color: var(--ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #9d9384;
    border-radius: 0.6rem;
    background: var(--white);
    color: var(--ink);
    font: 400 1.05rem/1.4 var(--serif);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
}

.contact-form .short {
    max-width: 12rem;
}

.contact-form ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
    color: #a3191b;
    font-size: 0.95rem;
}

.form-hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.contact-sent {
    margin-bottom: 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: 0.75rem;
    background: #e3f1e6;
    border: 1px solid #8cc39a;
    color: #173d22;
}

.contact-sent strong {
    display: block;
}

.offer-group {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--rule);
    border-radius: 0.9rem;
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.offer-group > legend {
    padding: 0 0.4rem;
    font: 600 0.78rem/1.2 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass-deep);
}

.offer-note {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.choice-row {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.choice-row > legend {
    width: 100%;
    float: left;
    margin-bottom: 0.45rem;
}

.choice {
    position: relative;
    display: inline-flex !important;
    margin: 0 !important;
}

.choice input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.choice span {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid #9d9384;
    border-radius: 999px;
    text-align: center;
    font: 600 0.88rem/1.2 var(--mono);
    color: var(--ink);
    background: var(--white);
    transition: background 0.15s, border-color 0.15s;
}

.choice input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.choice input:focus-visible + span {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.choice:hover span {
    border-color: var(--navy);
}

.two-up {
    display: grid;
    gap: 1rem;
}

@media (min-width: 40em) {
    .two-up {
        grid-template-columns: 1fr 1fr;
    }
}

.discreet {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 0.9rem;
    background: var(--navy);
    color: var(--on-navy);
    margin-bottom: 1.5rem;
}

.discreet svg {
    flex: none;
    margin-top: 0.2rem;
    color: var(--brass);
}

.discreet p {
    margin: 0;
    color: var(--on-navy);
}

/* ---- footer ---- */

.foot {
    background: var(--navy);
    color: var(--on-navy-soft);
    padding-top: 3.5rem;
    font-size: 1rem;
}

.foot a {
    color: var(--on-navy);
}

.foot a:hover {
    color: var(--brass);
}

.foot h2 {
    font: 600 0.78rem/1.2 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 1rem;
}

.foot-grid {
    display: grid;
    gap: 2rem;
}

.foot-plate {
    margin: 0 0 1rem;
}

.foot-plate img {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    padding: 0.4rem 0.6rem;
    background: var(--white);
    border-radius: 0.75rem;
}

.foot-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.foot-motto {
    font-style: italic;
    color: var(--brass);
    font-size: 1.25rem;
}

.foot address {
    font-style: normal;
    line-height: 1.6;
}

.foot-label {
    font: 600 0.75rem/1.2 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foot-phone {
    font: 600 1.25rem/1.4 var(--mono);
    text-decoration: none;
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.foot-bottom {
    margin-top: 3rem;
    padding-block: 1.25rem 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.14);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

@media (min-width: 46em) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .foot-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .foot-links {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    }
}

@media (min-width: 72em) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    }

    .foot-grid > div:last-child {
        grid-column: auto;
    }

    .foot-links {
        grid-template-columns: 1fr;
    }
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.not-found > div {
    max-width: 38rem;
}

.not-found .plate {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.not-found .plate img {
    display: block;
    width: 100%;
    max-width: 30rem;
    height: auto;
}

.not-found h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

/* ---- motion: reveal on scroll where supported; the finished state otherwise ---- */

@supports (animation-timeline: view()) {
    .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
    }

    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(2.5rem);
        }
    }
}

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

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

/* service cards on the services page carry an h2 */
.svc h2 {
    color: var(--navy);
}

.svc-feature h2 {
    color: var(--white);
}

.not-found h1 {
    font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
}
