/* Osbornes Car Body Repair Specialists, Truro: freshly sprayed, in the livery of the Osbornes vans.
   Navy of the logo's plate, yellow of its letters, primer grey and white sheets. One theme. */

@font-face {
    font-family: "Chakra Petch";
    src: url("/fonts/chakra-petch-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Chakra Petch";
    src: url("/fonts/chakra-petch-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Libre Franklin";
    src: url("/fonts/libre-franklin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #003466;
    --deep: #001b38;
    --lit: #0f4f8f;
    --sky: #2a6aa8;
    --yellow: #ffcc00;
    --yellow-deep: #e6b800;
    --primer: #e6e9ed;
    --sheet: #ffffff;
    --rule: #d3d9e1;
    --ink: #0c1a2b;
    --ink-2: #45546b;
    --on-navy: #e3ecf7;
    --on-navy-2: #b9cbe2;
    --radius: 18px;
    --radius-sm: 10px;
    --display: "Chakra Petch", "Arial Narrow", sans-serif;
    --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    --lb-accent: #ffcc00;
    --lb-accent-soft: rgba(255, 204, 0, 0.22);
    --menu-focus: #ffcc00;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

h1,
h2,
h3 {
    margin: 0 0 0.45em;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--navy);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--lit);
}

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

.wrap {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    color: var(--deep);
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--deep);
}

.btn-yellow:hover {
    background: #ffd83d;
    color: var(--deep);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: var(--lit);
    color: #fff;
}

.btn-ghost {
    border-color: rgba(227, 236, 247, 0.7);
    color: #fff;
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.btn-navy:focus-visible {
    outline-color: var(--lit);
}

.text-link {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    text-decoration-thickness: 2px;
    text-decoration-color: var(--yellow-deep);
}

.icon {
    flex: none;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 52, 102, 0.94);
    color: #fff;
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 17, 38, 0.18);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    min-height: 72px;
    padding-block: 10px;
}

.brand {
    flex: none;
    margin-right: auto;
    border-radius: 6px;
}

.brand img {
    width: auto;
    height: 46px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--on-navy);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav a[aria-current] {
    color: var(--yellow);
    box-shadow: inset 0 -3px 0 var(--yellow);
    border-radius: 0;
}

.nav a:focus-visible,
.top-call:focus-visible,
.brand:focus-visible {
    outline-color: var(--yellow);
}

.top-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--deep);
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.top-call:hover {
    background: #ffd83d;
    color: var(--deep);
}

.top {
    --menu-fg: #fff;
}

/* ---- menu: /js/menu.js folds the navigation behind a button on a phone ---- */

.menu-toggle {
    display: none;
}

@media (max-width: 760px) {
    .has-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 14px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: var(--menu-bg, transparent);
        color: var(--menu-fg, inherit);
        font: inherit;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .has-menu .menu-toggle:focus-visible {
        outline: 3px solid var(--menu-focus, currentColor);
        outline-offset: 3px;
    }

    .has-menu .menu-nav:not(.is-open) {
        display: none;
    }

    .has-menu .menu-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        width: 100%;
        margin-inline: 0;
        gap: 2px;
        padding-block: 6px 4px;
        background: var(--menu-panel, none);
    }

    .has-menu .menu-nav.is-open a {
        padding-block: 12px;
    }
}

@media (max-width: 420px) {
    .has-menu .menu-toggle {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* three bars that turn into a cross while the menu is open */
.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .menu-bars,
    .menu-bars::before,
    .menu-bars::after {
        transition: none;
    }
}

/* the header on a phone: logo, phone button and menu button on one row; the open menu under it */
@media (max-width: 760px) {
    .top-row {
        gap: 8px 10px;
        min-height: 64px;
    }

    .brand img {
        height: 38px;
    }

    .has-menu .nav {
        order: 5;
    }

    .has-menu .menu-nav.is-open a {
        border-radius: var(--radius-sm);
        box-shadow: none;
    }

    .has-menu .menu-nav.is-open a[aria-current] {
        background: rgba(255, 204, 0, 0.12);
    }
}

@media (max-width: 420px) {
    .top-row {
        width: min(1180px, 100% - 24px);
        gap: 8px;
    }

    .brand img {
        height: 31px;
    }

    .top-call {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .top-call .icon {
        display: none;
    }
}

/* ---- the panel: the home page's first screen, a freshly sprayed door ---- */

.panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 60% at 78% 0%, rgba(120, 170, 225, 0.35), transparent 60%),
        linear-gradient(177deg, var(--sky) 0%, var(--lit) 20%, var(--navy) 50%, #002b56 60%, var(--deep) 100%);
}

.panel-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

/* the swage line of the door: a lit crease with its shadow under it, in a band of its own under the text */
.crease {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: clamp(34px, 5vw, 52px);
    z-index: -1;
    height: 14px;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0.25) 78%, transparent 100%) top / 100% 3px no-repeat,
        linear-gradient(90deg, transparent 0%, rgba(0, 17, 38, 0.6) 25%, rgba(0, 17, 38, 0.35) 80%, transparent 100%) 0 3px / 100% 9px no-repeat;
    transform: rotate(-1.1deg);
    transform-origin: left center;
}

.sheen {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    z-index: -1;
    width: 34%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.24) 47%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0.24) 53%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%);
    transform: translateX(-160%) skewX(-14deg);
    pointer-events: none;
}

.panel-inner {
    position: relative;
    padding-block: clamp(44px, 8vw, 112px) clamp(96px, 11vw, 150px);
}

.panel-kicker {
    margin-bottom: 18px;
    line-height: 1.3;
    color: var(--yellow);
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.panel h1 {
    max-width: 14ch;
    margin-bottom: 0.35em;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: #fff;
}

.panel-lead {
    max-width: 52ch;
    margin-bottom: 28px;
    color: var(--on-navy);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.panel-call {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.panel-call span {
    color: var(--on-navy);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
}

.panel-phone {
    width: fit-content;
    color: var(--yellow);
    font-family: var(--display);
    font-size: clamp(2.5rem, 9vw, 5.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(0, 17, 38, 0.35);
}

.panel-phone:hover {
    color: #ffe066;
}

.panel-phone:focus-visible {
    outline-color: var(--yellow);
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* one moment as the page opens: the crease draws, then the light sweeps across the lacquer */
@media (prefers-reduced-motion: no-preference) {
    .crease {
        animation: crease 1.1s cubic-bezier(0.5, 0, 0.2, 1) 0.15s both;
    }

    .sheen {
        animation: sweep 2.2s cubic-bezier(0.55, 0.05, 0.25, 1) 0.8s both;
    }

    .panel-inner > * {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .panel-inner > :nth-child(2) { animation-delay: 0.06s; }
    .panel-inner > :nth-child(3) { animation-delay: 0.12s; }
    .panel-inner > :nth-child(4) { animation-delay: 0.18s; }
    .panel-inner > :nth-child(5) { animation-delay: 0.24s; }
}

@keyframes crease {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes sweep {
    from { transform: translateX(-160%) skewX(-14deg); }
    to { transform: translateX(400%) skewX(-14deg); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---- livery band: the five reasons, in the yellow of the logo ---- */

.livery {
    position: relative;
    background: var(--yellow);
    color: var(--deep);
}

.livery::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--deep);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.livery-inner {
    padding-block: clamp(40px, 6vw, 72px);
}

.livery h2 {
    margin-bottom: 0.7em;
    color: var(--deep);
}

.livery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px 28px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.livery-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    border-top: 3px solid var(--deep);
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
}

.livery-note {
    max-width: 62ch;
    margin: 0;
    color: #1b2633;
    font-size: 1.1rem;
}

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

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section-primer {
    background: var(--primer);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.section-head h2 {
    margin-bottom: 0.25em;
}

.section-head p {
    margin: 0;
    color: var(--ink-2);
    font-size: 1.12rem;
}

/* two ways to a free quotation */
.routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.route {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 4vw, 40px);
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    background: var(--sheet);
}

.route-icon {
    margin-bottom: 18px;
    color: var(--navy);
}

.route h3 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.route p {
    color: var(--ink-2);
    font-size: 1.1rem;
}

.route-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: auto 0 0;
    padding-top: 10px;
}

.route-links .text-link {
    font-size: 1rem;
}

.route-dark {
    border-color: transparent;
    background: linear-gradient(165deg, var(--lit), var(--navy) 45%, var(--deep));
    color: #fff;
}

.route-dark .route-icon {
    color: var(--yellow);
}

.route-dark p {
    color: var(--on-navy);
}

.route-dark a:not(.btn) {
    color: var(--yellow);
}

/* calling lady drivers */
.ladies {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.ladies-photo {
    margin: 0;
}

.ladies-photo img {
    border-radius: var(--radius);
    box-shadow: 12px 12px 0 var(--yellow);
}

.ladies-text {
    max-width: 60ch;
}

.ladies-text p {
    font-size: 1.12rem;
}

.ladies-names {
    padding: 14px 18px;
    border-left: 5px solid var(--yellow-deep);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--sheet);
}

.people {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0 0;
}

.people div {
    min-width: 180px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border-top: 5px solid var(--yellow);
}

.people dt {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.people dd {
    margin: 0;
    color: var(--ink-2);
}

/* your right to choose: a statement on navy */
.choose {
    position: relative;
    overflow: hidden;
    background: linear-gradient(178deg, var(--lit) 0%, var(--navy) 42%, var(--deep) 100%);
    color: var(--on-navy);
}

.choose::before {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 26px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.12) 80%, transparent);
    transform: rotate(-1.4deg);
}

.choose-inner {
    position: relative;
    padding-block: clamp(56px, 8vw, 104px);
}

.choose h2 {
    color: var(--yellow);
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.choose-quote {
    max-width: 22ch;
    margin-bottom: 0.6em;
    color: #fff;
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.9rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.choose-inner > p:not(.choose-quote) {
    max-width: 56ch;
    font-size: 1.15rem;
}

.choose .btn {
    margin-top: 10px;
}

.choose-flat .choose-quote {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

/* on the accident repairs page the statement follows the navy page head: there it is a yellow band */
.choose-flat {
    background: var(--yellow);
    color: #1b2633;
}

.choose-flat::before {
    display: none;
}

.choose-flat h2,
.choose-flat .choose-quote {
    color: var(--deep);
}

/* the services as a job sheet */
.jobs {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.jobs-text p {
    color: var(--ink-2);
    font-size: 1.12rem;
}

.jobs-text strong {
    color: var(--ink);
}

.jobsheet {
    margin: 0;
    padding: 10px clamp(18px, 3vw, 30px);
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    background: var(--sheet);
    list-style: none;
    box-shadow: 0 18px 40px -28px rgba(0, 27, 56, 0.45);
}

.jobsheet li {
    position: relative;
    padding: 13px 0 13px 40px;
    border-bottom: 1px solid var(--rule);
    font-weight: 500;
    line-height: 1.4;
}

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

.jobsheet li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--yellow);
}

.jobsheet li::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 15px;
    width: 7px;
    height: 13px;
    border: solid var(--deep);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.jobsheet a {
    font-weight: 700;
}

/* the bodyshop: a sideways strip of photos */
.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 max(16px, (100% - 1180px) / 2) 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, (100% - 1180px) / 2);
    list-style: none;
}

.strip li {
    flex: none;
    scroll-snap-align: start;
}

.strip a {
    display: block;
    border-radius: var(--radius-sm);
}

.strip img {
    width: auto;
    height: 189px;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
}

.strip a:hover img {
    transform: translateY(-3px);
}

/* history */
.history {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 5vw, 64px);
    align-items: center;
}

.history .history-figure {
    margin: 0;
    color: var(--navy);
    font-family: var(--display);
    font-size: clamp(6rem, 16vw, 12rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.history-figure span {
    color: var(--yellow-deep);
}

.history p {
    max-width: 58ch;
    color: var(--ink-2);
    font-size: 1.12rem;
}

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

.page-head {
    position: relative;
    overflow: hidden;
    background: linear-gradient(176deg, var(--sky) 0%, var(--lit) 26%, var(--navy) 60%, var(--deep) 100%);
    color: #fff;
}

.page-head::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4) 35%, rgba(255, 255, 255, 0.1) 85%, transparent);
    transform: rotate(-1.2deg);
}

.page-head .wrap {
    position: relative;
    z-index: 1;
    padding-block: clamp(44px, 7vw, 88px);
}

.page-head h1 {
    max-width: 20ch;
    color: #fff;
}

.lead {
    max-width: 60ch;
    margin: 0;
    color: var(--on-navy);
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--on-navy);
    font-size: 0.98rem;
}

.crumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: var(--on-navy-2);
}

.crumbs a {
    color: var(--yellow);
}

.crumbs a:focus-visible {
    outline-color: var(--yellow);
}

.feature-card {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(28px, 4vw, 44px);
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius);
    background: var(--yellow);
    color: var(--deep);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.feature-card:hover {
    color: var(--deep);
    transform: translateY(-2px);
}

.feature-name {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.feature-summary {
    max-width: 70ch;
    font-size: 1.1rem;
}

.service-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}

.service-block {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--primer);
}

.service-block > p {
    color: var(--ink-2);
}

.service-block .jobsheet {
    box-shadow: none;
}

.service-block-dark {
    background: linear-gradient(170deg, var(--lit), var(--navy) 40%, var(--deep));
    color: #fff;
}

.service-block-dark > p {
    color: var(--on-navy);
}

.service-block-dark h2 {
    color: #fff;
}

.service-block-dark .jobsheet {
    border-color: transparent;
    color: var(--ink);
}

.split-photo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.split-photo figure {
    margin: 0;
}

.split-photo img {
    border-radius: var(--radius);
}

.split-photo p {
    max-width: 58ch;
    color: var(--ink-2);
    font-size: 1.1rem;
}

.prose-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.prose {
    max-width: 66ch;
}

.prose p {
    font-size: 1.1rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.prose h2:not(:first-child) {
    margin-top: 1.4em;
}

.side-card {
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--primer);
}

.side-card h2 {
    font-size: 1.5rem;
}

.side-card p {
    color: var(--ink-2);
}

.side-card figure {
    margin: 22px 0 0;
}

.side-card img,
.photo-frame img {
    border-radius: var(--radius-sm);
}

.photo-frame {
    margin: 0;
}

.prose-cols > .photo-frame img {
    box-shadow: -12px 12px 0 var(--yellow);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-grid .wide {
    grid-column: span 2;
}

.photo-grid a {
    display: block;
    height: 100%;
    border-radius: var(--radius-sm);
}

.photo-grid img {
    width: 100%;
    height: 100%;
    max-height: 290px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.contact-card,
.form-card {
    padding: clamp(22px, 3.5vw, 38px);
    border-radius: var(--radius);
}

.contact-card {
    background: linear-gradient(170deg, var(--lit), var(--navy) 40%, var(--deep));
    color: var(--on-navy);
}

.contact-card h2 {
    color: #fff;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.contact-card a {
    color: var(--yellow);
}

.contact-card a:focus-visible {
    outline-color: var(--yellow);
}

.contact-list {
    margin: 0 0 24px;
}

.contact-list div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(227, 236, 247, 0.2);
}

.contact-list dt {
    color: var(--on-navy-2);
    font-size: 0.95rem;
}

.contact-list dd {
    margin: 0;
    font-size: 1.1rem;
}

.big-phone {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mail {
    overflow-wrap: anywhere;
}

.form-card {
    border: 2px solid var(--rule);
    background: var(--sheet);
}

.form-card > p {
    color: var(--ink-2);
}

.form-card > p a {
    overflow-wrap: anywhere;
}

.contact-form label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #a9b4c3;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

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

.contact-form > div {
    margin-bottom: 16px;
}

.contact-form button {
    cursor: pointer;
    font-family: var(--display);
}

.form-hint {
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 0.92rem;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: #fff6cc;
    border: 1px solid var(--yellow-deep);
}

/* ---- call band and footer ---- */

.call-band {
    background: var(--yellow);
    color: var(--deep);
}

.call-band-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: center;
    justify-content: space-between;
    padding-block: clamp(36px, 5vw, 60px);
}

.call-band h2 {
    margin-bottom: 0.25em;
    color: var(--deep);
}

.call-band p {
    max-width: 52ch;
    margin: 0;
    color: #1b2633;
    font-size: 1.1rem;
}

.call-band-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.band-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--deep);
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.band-phone .icon {
    width: 28px;
    height: 28px;
}

.band-phone:hover {
    color: var(--navy);
}

.band-phone:focus-visible {
    outline-color: var(--deep);
}

.call-band .btn-navy:focus-visible {
    outline-color: var(--deep);
}

.foot {
    background: var(--deep);
    color: var(--on-navy);
    font-size: 1rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-block: clamp(44px, 6vw, 72px) 32px;
}

.foot-brand img {
    width: 250px;
    margin-bottom: 16px;
}

.foot-brand a {
    display: inline-block;
}

.foot h2 {
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 1.2rem;
}

.foot p,
.foot address {
    margin: 0 0 10px;
    font-style: normal;
}

.foot a {
    color: #fff;
}

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

.foot a:focus-visible {
    outline-color: var(--yellow);
}

.foot-phone {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.foot-mail {
    overflow-wrap: anywhere;
}

.foot-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-links li {
    margin-bottom: 8px;
}

.foot-bottom {
    padding-block: 18px 26px;
    border-top: 1px solid rgba(227, 236, 247, 0.16);
    color: var(--on-navy-2);
    font-size: 0.94rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    background: linear-gradient(177deg, var(--sky) 0%, var(--lit) 22%, var(--navy) 55%, var(--deep) 100%);
    color: var(--on-navy);
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    margin: 0 auto 32px;
    width: 280px;
}

.not-found h1 {
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.not-found a:not(.btn) {
    color: var(--yellow);
}

.not-found a:focus-visible {
    outline-color: var(--yellow);
}

/* ---- narrow screens ---- */

@media (max-width: 900px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-brand {
        grid-column: 1 / -1;
    }

    .jobs,
    .prose-cols,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .ladies,
    .split-photo,
    .history {
        grid-template-columns: minmax(0, 1fr);
    }

    .ladies-photo img {
        box-shadow: 8px 8px 0 var(--yellow);
    }

    .photo-grid .wide {
        grid-column: auto;
    }

    .service-lists {
        grid-template-columns: minmax(0, 1fr);
    }

    .prose-cols > .photo-frame img {
        box-shadow: 8px 8px 0 var(--yellow);
    }
}

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

    .panel-actions .btn {
        flex: 1 1 100%;
    }

    .strip img {
        height: 160px;
    }
}

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

    .sheen {
        display: none;
    }

    .btn:hover,
    .feature-card:hover,
    .strip a:hover img {
        transform: none;
    }
}

/* ---- 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;
    }
}

.not-found a[href^="tel:"] {
    white-space: nowrap;
}
