/* Ridings Paint Contracting. The theme follows the logo: royal blue, charcoal and white, widely tracked
   Josefin Sans capitals, a script "The" and the logo's open circle as the signature line. Brass and sage are
   the only supporting colors, used sparingly. No CSS framework: this file is the whole stylesheet, so keep it small. */
@font-face {
    font-family: "Josefin Sans";
    src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Herr Von Muellerhoff";
    src: url("../fonts/herr-von-muellerhoff-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: "Josefin Sans", "Century Gothic", Arial, sans-serif;
    --font-body: "Josefin Sans", "Century Gothic", Arial, sans-serif;
    --font-script: "Herr Von Muellerhoff", "Snell Roundhand", cursive;

    /* Brand: the logo's royal blue, charcoal and white */
    --blue: #1f4fb5;
    --blue-dark: #173d8f;
    --blue-mist: #eef2fa;
    --blue-bright: #2f6fdf; /* the truck stripes */
    --ink: #22262c; /* the truck's charcoal */
    --ink-2: #2a2e35;
    /* Supporting colors, used sparingly */
    --brass: #a8875a;
    --sage: #6f8471;

    --color-heading: var(--ink);
    --color-text: #2a2e35;
    --color-muted: #5b6169;
    --color-bg: #fff;
    --color-stone: #f6f5f2;
    --color-linen: #ece9e3;
    --color-rule: #dfdbd4;
    --on-ink: #ecebe8;
    --on-ink-muted: #a7abb2;

    /* Older names the admin pages still use */
    --navy: var(--ink);
    --clay: var(--blue);
    --clay-dark: var(--blue-dark);
    --color-cream: var(--color-stone);
    --color-sand: var(--color-linen);
    --on-navy: var(--on-ink);
    --on-navy-muted: var(--on-ink-muted);

    /* The logo's open circle: two arcs, upper right and lower left. Used as a mask so it takes any color. */
    --arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M80 6.1A96 96 0 0 1 193.9 80'/%3E%3Cpath d='M120 193.9A96 96 0 0 1 6.1 120'/%3E%3C/g%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgb(29 32 37 / .05), 0 10px 30px rgb(29 32 37 / .07);
    --radius: .25rem;
    /* Photos sit in a thin white mat with a hairline border, like a framed print */
    --frame-pad: .55rem;
    --frame-shadow: 0 12px 28px rgb(34 38 44 / .14);
    --max-width: 72rem;
    --track: .16em;

    font-family: var(--font-body);
    font-size: 106.25%;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
p { color: var(--color-muted); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Headings: the logo's widely tracked capitals. Josefin sits high in its box, so the top padding is a touch bigger. */
h1, h2, .section-title { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.25; color: var(--color-heading); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; line-height: 1.35; color: var(--color-heading); }
.script { font-family: var(--font-script); font-weight: 400; text-transform: none; letter-spacing: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 44rem; }
.centered { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--color-bg); padding: .5rem; z-index: 10; }

/* Header: the wordmark and phone on white, then a charcoal navigation band */
/* A blue top border, a fine canvas weave on warm stone, and the logo's circle drawn faintly behind the wordmark */
.site-header { position: relative; overflow: hidden; border-top: 4px solid var(--blue); background:
    repeating-linear-gradient(0deg, rgb(34 38 44 / .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(34 38 44 / .03) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #faf9f6, #efece6); }
.header-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem 1.4rem; }
.brand::before { content: ""; position: absolute; left: 50%; top: 55%; width: 7.75rem; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
    background: var(--ink); opacity: .18; -webkit-mask: var(--arc) center / contain no-repeat; mask: var(--arc) center / contain no-repeat; }
.brand { position: relative; display: inline-grid; justify-items: center; padding-top: 1.6rem; color: var(--blue); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--blue); }
.brand-the { position: absolute; top: -.35rem; left: .1rem; font-family: var(--font-script); font-size: 2.5rem; line-height: 1; color: var(--ink); rotate: -4deg; }
.brand-name { padding-left: .5em; font-size: 2rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; }
.brand-sub { margin-top: .55rem; padding-left: .32em; font-size: .78rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.header-contact { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.2rem .55rem; border: 1px solid var(--blue); border-radius: var(--radius); font-size: 1rem; font-weight: 600; letter-spacing: .08em; color: var(--blue); text-decoration: none; transition: background-color .15s, color .15s; }
.header-phone:hover { background: var(--blue); color: #fff; }
.header-phone svg, .nav-phone svg { width: 1em; height: 1em; fill: currentColor; margin-top: -.15em; }
.nav-band { background: var(--ink); }
.nav-bar { display: flex; align-items: center; justify-content: center; min-height: 3.4rem; }
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--on-ink); }
.nav-phone { display: none; align-items: center; gap: .4rem; margin-left: auto; font-size: 1rem; font-weight: 600; letter-spacing: .06em; color: var(--on-ink); text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding-block: .35rem .2rem; border-bottom: 1px solid transparent; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-ink); }
.site-nav a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / .5); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--blue); }
.nav-band :focus-visible { outline-color: #fff; }

@media (max-width: 48rem) {
    .header-top { justify-content: center; padding-block: 1.5rem 1.25rem; }
    .brand-name { font-size: 1.6rem; }
    .brand-sub { font-size: .68rem; }
    .brand-the { font-size: 2.2rem; }
    .header-contact { display: none; }
    .nav-bar { justify-content: flex-start; flex-wrap: wrap; gap: 1rem; padding-block: .75rem; }
    .nav-toggle { display: block; }
    .nav-phone { display: inline-flex; }
    .site-nav { display: none; flex-basis: 100%; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: .6rem; padding-bottom: .5rem; }
}

main.container { padding-bottom: 4rem; }
main.full-width { padding-block: 0; }

/* Buttons: squared-off, tracked capitals. Blue is the main call to action. */
.button { display: inline-block; background: var(--blue); color: #fff; padding: .95rem 2rem .8rem; border: 1px solid var(--blue); border-radius: var(--radius); text-decoration: none; font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button-accent { padding: 1.05rem 2.25rem .9rem; }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.button-light:hover { background: transparent; border-color: #fff; color: #fff; }
.home-hero .button-light { background: var(--blue); border-color: var(--blue); color: #fff; padding: 1.05rem 2.25rem .9rem; }
.home-hero .button-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
/* "Message us on Facebook": an m.me link, on the charcoal footer and contact card */
.messenger-button { display: inline-flex; align-items: center; text-align: left; gap: .6rem; padding: .75rem 1.25rem .65rem; font-size: .75rem; letter-spacing: .14em; }
.messenger-button svg { flex: none; margin-top: -.15em; }
.site-footer .messenger-button, .contact-details .messenger-button { color: var(--ink); }
.site-footer .messenger-button:hover, .contact-details .messenger-button:hover { color: #fff; }
.footer-messenger { margin-top: 1rem; }

/* Section heading with a short, fine blue line underneath */
.rule { width: 3.5rem; height: 2px; border: 0; background: var(--blue); margin: 1.1rem 0 2.25rem; }
.centered .rule { margin-inline: auto; }
.band { padding-block: 5rem; }
.band-gray { background: var(--color-stone); }

/* Content pages: full-width photo banner with the page heading over it */
.page-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; margin-inline: calc(50% - 50vw); min-height: 9rem; padding: 2.5rem max(1rem, calc(50vw - var(--max-width) / 2 + 1rem)) 2.25rem; margin-bottom: 3.5rem; }
.page-hero.has-image { min-height: clamp(16rem, 32vw, 26rem); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(29 32 37 / .82), rgb(29 32 37 / .1) 70%); }
.page-hero-eyebrow { position: relative; z-index: 2; margin: 0 0 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #cfdcf7; }
.page-hero h1 { position: relative; z-index: 2; margin: 0; max-width: 44rem; color: #fff; }
.page-hero h1::after { content: ""; display: block; width: 3.5rem; height: 2px; margin-top: 1rem; background: var(--blue); }
.page-hero.has-image h1, .page-hero.has-image .page-hero-eyebrow { text-shadow: 0 1px 3px rgb(0 0 0 / .5), 0 2px 16px rgb(0 0 0 / .3); }
.page-hero.has-image h1::after { background: #fff; }
/* Without a photo: a charcoal band in the header's canvas weave, with the logo's circle drawn large at the right */
.page-hero:not(.has-image) { justify-content: center; min-height: clamp(15rem, 22vw, 18rem); overflow: hidden; background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 5px), var(--ink); }
.page-hero:not(.has-image) .page-hero-eyebrow { color: #8fb0ef; }
.page-hero:not(.has-image)::before { content: ""; position: absolute; top: 50%; right: max(1rem, calc(50vw - var(--max-width) / 2 + 2rem)); width: clamp(14rem, 24vw, 19rem); aspect-ratio: 1; translate: 0 -50%;
    background: #fff; opacity: .25; -webkit-mask: var(--arc) center / contain no-repeat; mask: var(--arc) center / contain no-repeat; }
@media (max-width: 48rem) {
    .page-hero-eyebrow { font-size: .68rem; letter-spacing: .2em; }
    .page-hero:not(.has-image)::before { right: -5rem; opacity: .15; }
}

.content-section { margin-bottom: 3.5rem; }
.content-section h2::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: 1rem; background: var(--blue); }
.content-section img { display: block; margin-block: 1.5rem; padding: var(--frame-pad); background: #fff; border: 1px solid var(--color-rule); border-radius: .2rem; box-shadow: var(--frame-shadow); }
@media (min-width: 56rem) {
    /* Text on the left, photo on the right */
    .content-section:has(> img) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 4rem; align-items: start; }
    .content-section:has(> img) > * { grid-column: 1; }
    .content-section:has(> img) > img { grid-column: 2; grid-row: 1 / span 20; margin: .5rem 0 0; }
}

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0; border-top: 1px solid var(--color-rule); }
.feature-list li { position: relative; padding: .9rem .5rem .75rem 2.5rem; border-bottom: 1px solid var(--color-rule); color: var(--color-text); }
.feature-list li::before { content: ""; position: absolute; left: .4rem; top: 1.05rem; width: 1.1rem; height: 1.1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8.5' fill='none' stroke='%231f4fb5' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Home: full-width photo, darkened to the left, with the heading framed by the logo's open circle */
.home-hero { position: relative; display: grid; align-items: center; min-height: clamp(30rem, 58vw, 44rem); padding: 5rem max(1rem, calc(50vw - var(--max-width) / 2 + 1rem)); overflow: hidden; background: var(--ink); }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(29 32 37 / .88) 0%, rgb(29 32 37 / .6) 45%, rgb(29 32 37 / .05) 85%); }
.home-hero-panel { position: relative; z-index: 2; max-width: 38rem; padding: 4rem 0 4rem 3rem; animation: rise-in .8s .1s ease-out both; }
.home-hero-panel::before { content: ""; position: absolute; left: -2.5rem; top: 50%; width: min(34rem, 100%); aspect-ratio: 1; translate: 0 -50%; z-index: -1;
    background: #fff; opacity: .55; -webkit-mask: var(--arc) center / contain no-repeat; mask: var(--arc) center / contain no-repeat; }
.home-hero-panel h1 { color: #fff; margin: 0 0 1.25rem; font-size: clamp(1.8rem, 3.3vw, 2.6rem); letter-spacing: .12em; }
.home-hero-panel p { color: var(--on-ink); font-size: 1.2rem; margin: 0 0 2rem; }
@media (max-width: 48rem) {
    /* Phones: the photo first, then the heading on charcoal below it */
    .home-hero { display: block; min-height: 0; padding: 0; }
    .home-hero::before { display: none; }
    .home-hero-image { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 4 / 3; }
    .home-hero-panel { max-width: none; padding: 2.75rem 1.5rem 3.25rem; overflow: hidden; }
    .home-hero-panel::before { left: auto; right: -7rem; top: 2rem; translate: none; width: 18rem; opacity: .2; }
    .home-hero-panel h1 { font-size: 1.65rem; letter-spacing: .1em; }
    .home-hero-panel p { font-size: 1.05rem; }
}
@media (max-width: 48rem) {
    :root { --track: .1em; }
    h1 { font-size: 1.7rem; }
}

/* Trust strip: quick proof under the hero, on charcoal like the truck */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0; margin: 0; padding: 1.1rem 1rem 1rem; list-style: none; background: var(--ink); border-top: 1px solid rgb(255 255 255 / .1); }
.trust-strip li { padding-inline: 1.6rem; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink); }
.trust-strip li + li { border-left: 1px solid rgb(255 255 255 / .2); }
.trust-strip a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--blue-bright); }
.trust-strip a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 48rem) { .trust-strip li { padding-inline: .9rem; font-size: .68rem; letter-spacing: .14em; } }

/* About: short copy and a signature beside two overlapping framed photos, then three points */
.home-about { background: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem 4.5rem; align-items: center; }
.about-copy h3 { margin-top: 0; }
.signature { margin: 1.25rem 0 0; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.about-collage { position: relative; padding: 0 0 6rem; }
.about-collage img { display: block; object-fit: cover; padding: var(--frame-pad); background: #fff; border: 1px solid var(--color-rule); border-radius: .2rem; box-shadow: var(--frame-shadow); }
.collage-main { width: 86%; aspect-ratio: 4 / 3; }
.collage-second { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; box-shadow: 0 18px 40px rgb(34 38 44 / .22); }
.about-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--color-muted); }
.about-points li { padding-top: 1.1rem; border-top: 1px solid var(--color-rule); position: relative; }
.about-points li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--blue); }
.about-points strong, .steps strong { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-heading); }
@media (max-width: 48rem) {
    .about-grid, .about-points { grid-template-columns: 1fr; }
    .about-collage { padding-bottom: 3rem; }
}

/* How We Work: four numbered steps, each number in the logo's open circle */
.how-we-work { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.75rem; margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--color-muted); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.1rem; padding-top: .2em; font-size: 1.4rem; font-weight: 300; color: var(--blue);
    background: var(--arc) center / contain no-repeat; }
@media (max-width: 56rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

/* Recent Work: four framed photos with a link to the full gallery */
.recent-work { background: var(--color-stone); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 2rem; }
.see-all { margin-bottom: 2.25rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.see-all:hover { text-decoration: underline; text-underline-offset: .35em; }
.photo-grid.recent-grid { grid-template-columns: repeat(4, 1fr); }
.recent-grid a { display: block; }
@media (max-width: 56rem) { .photo-grid.recent-grid { grid-template-columns: repeat(2, 1fr); } }

/* Photo strip: framed prints in an even grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.photo-grid li { padding: var(--frame-pad); background: #fff; border: 1px solid var(--color-rule); border-radius: .2rem; box-shadow: var(--frame-shadow); transition: transform .3s; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid li:hover { transform: translateY(-3px); }
@media (max-width: 48rem) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } .photo-grid li { padding: .35rem; } }

/* Home "What We Do": photo tiles linking to the service and specialty pages */
.service-tiles { background: var(--color-stone); }
.tile-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; height: 100%; color: var(--color-text); text-decoration: none; }
.tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; padding: var(--frame-pad); background: #fff; border: 1px solid var(--color-rule); border-radius: .2rem; box-shadow: var(--frame-shadow); transition: opacity .3s; }
.tile-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.25rem 0 0; }
.tile-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.35; color: var(--color-heading); }
.tile-text { color: var(--color-muted); }
.tile-more { margin-top: auto; padding-top: .35rem; font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.tile:hover img { opacity: .88; }
.tile:hover .tile-more { text-decoration: underline; text-underline-offset: .35em; }
.tile:focus-visible { outline-offset: 6px; }

/* Closing band: the invitation on the left, phone, email, hours and social links on the right */
.home-contact { padding-block: 5rem; background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 5px), var(--ink); color: var(--on-ink); }
.contact-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.home-contact h2, .home-contact h3 { color: #fff; margin-top: 0; }
.home-contact p { color: var(--on-ink-muted); }
.home-contact .button { margin-top: .75rem; }
.contact-reach { padding: 2rem 0 2rem 3rem; border-left: 1px solid rgb(255 255 255 / .15); }
.contact-reach p { margin: 0 0 .5rem; }
.contact-reach a { color: #fff; }
.contact-phone { font-size: 1.6rem; font-weight: 500; letter-spacing: .08em; }
.contact-phone a { text-decoration: none; }
.contact-reach .social-icons { justify-content: flex-start; margin-top: 1.25rem; }
.home-contact .social-icons a { background: transparent; border-color: rgb(255 255 255 / .25); }
.home-contact .social-icons a:hover { border-color: #fff; }
.home-contact .social-icons img { filter: brightness(0) invert(1); }
@media (max-width: 48rem) {
    .contact-band { grid-template-columns: 1fr; }
    .contact-reach { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .15); }
}

/* About: services as cards, Why Choose Us as numbered tiles */
.services, .why-choose-us { margin-top: 3.5rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { position: relative; background: #fff; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--color-rule); border-radius: var(--radius); }
.card::before { content: ""; position: absolute; left: 1.5rem; top: -1px; width: 2.5rem; height: 2px; background: var(--blue); }
.card h3 { margin: 0 0 .75rem; }
.card h3 a { color: var(--color-heading); text-decoration-color: var(--blue); }
.card p { margin: 0; }

.why-choose-us ol { list-style: none; counter-reset: why; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin: 0; padding: 0; }
.why-choose-us li { counter-increment: why; position: relative; padding: 1.5rem 1.5rem 1.25rem 4.75rem; background: var(--color-stone); border-radius: var(--radius); color: var(--color-muted); }
.why-choose-us li::before { content: counter(why, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.35rem; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 300; line-height: 1; color: var(--brass); }
.why-choose-us strong { display: block; margin-bottom: .35rem; font-size: 1.1rem; color: var(--color-heading); }

/* Estimate call to action at the foot of content pages: charcoal, with the logo's circle at the right */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; margin-top: 4.5rem; padding: 3rem 2.75rem; background: var(--ink); border-radius: var(--radius); }
/* Two slanted stripes, as on the work truck */
.cta-band::before { content: ""; position: absolute; right: 2rem; top: -1rem; bottom: -1rem; width: 4.5rem; transform: skewX(-28deg); pointer-events: none;
    background: linear-gradient(90deg, var(--blue-bright) 0 38%, transparent 38% 56%, var(--blue) 56% 100%); opacity: .9; }
@media (min-width: 48.01rem) { .cta-band { padding-right: 9rem; } }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.cta-band p { margin: 0; color: var(--on-ink-muted); }
.cta-band .button-accent { z-index: 1; }
.cta-band .button-accent:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 48rem) { .cta-band { padding: 2.5rem 1.5rem; } }

/* Our Work gallery */
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem; }
.gallery-filters .filter { padding: .55rem 1.1rem .4rem; border: 1px solid var(--color-rule); border-radius: var(--radius); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-heading); text-decoration: none; }
.gallery-filters .filter:hover { border-color: var(--ink); }
.gallery-filters .filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: rgb(20 22 26 / .92); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 90vw; max-height: 82vh; display: block; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; padding: .5rem; }
.lightbox button { position: fixed; background: rgb(0 0 0 / .5); color: #fff; border: 0; font-size: 2.5rem; line-height: 1; width: 3rem; height: 3rem; cursor: pointer; border-radius: 50%; }
.lightbox button:focus-visible { outline: 2px solid #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Contact Us */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 48rem) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form { padding: 2.25rem; background: #fff; border: 1px solid var(--color-rule); border-top: 2px solid var(--blue); border-radius: var(--radius); }
.contact-form h2 { margin-top: 0; }
.contact-form form { display: grid; gap: .35rem; }
.contact-form label { font-weight: 600; margin-top: .75rem; color: var(--color-heading); }
.contact-form label.checkbox { font-weight: normal; display: flex; gap: .5rem; align-items: start; color: var(--color-muted); }
.contact-form input:not([type=checkbox], [type=radio]), .contact-form select, .contact-form textarea { font: inherit; padding: .7rem .8rem .55rem; border: 1px solid #c9c5be; border-radius: var(--radius); width: 100%; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 1px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form input:is([type=checkbox], [type=radio]) { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; }
.contact-form .choice { border: 0; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.contact-form .choice legend { font-weight: 600; color: var(--color-heading); padding: 0; margin-bottom: .35rem; }
.contact-form label.radio { font-weight: normal; margin: 0; display: flex; gap: .4rem; align-items: center; color: var(--color-text); }
.contact-form .field-hint { margin: .25rem 0 0; font-size: .9rem; color: var(--color-muted); }
.contact-form .button { justify-self: start; margin-top: 1.25rem; }
.contact-details { position: relative; overflow: hidden; padding: 2.25rem 2rem; background: var(--ink); border-radius: var(--radius); color: var(--on-ink); }
.contact-details h2 { margin-top: 0; color: #fff; }
.contact-details p { color: var(--on-ink); }
.contact-details a { color: #fff; }
.contact-details .social-links { list-style: none; display: flex; gap: 1rem; padding: 0; }
.field-error { color: #b00020; font-size: .9rem; }
.notice { background: var(--blue-mist); padding: 1rem 1.5rem; border-left: 2px solid var(--blue); border-radius: var(--radius); }

/* Facebook / Yelp icons, on white chips so they read on any background */
.social-icons { list-style: none; display: flex; justify-content: center; gap: .75rem; margin: 0; padding: 0; }
.social-icons a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; border: 1px solid var(--color-rule); transition: border-color .15s; }
.social-icons a:hover { border-color: var(--blue); }
.social-icons img { width: 1.3rem; height: 1.3rem; }

/* Footer: charcoal, with the name in the logo's tracked capitals */
.site-footer { background: var(--ink); color: var(--on-ink); border-top: 3px solid var(--blue); }
.footer-inner { display: grid; grid-template-columns: 2fr 1.5fr auto; gap: 2.5rem; padding-block: 3.5rem 2.25rem; }
.footer-name { margin: 0 0 .6rem; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: #fff; }
.site-footer p { margin: 0 0 .4rem; color: var(--on-ink-muted); }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-careers { margin-top: .9rem; }
.footer-careers a { font-weight: 600; }
.site-footer .social-icons a { background: transparent; border-color: rgb(255 255 255 / .25); }
.site-footer .social-icons a:hover { border-color: #fff; }
.site-footer .social-icons img { filter: brightness(0) invert(1); }
.copyright { padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; letter-spacing: .06em; }
@media (max-width: 48rem) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-inner .social-icons { justify-content: center; }
    .copyright { text-align: center; }
}

.cookie-banner { position: fixed; inset: auto 1rem 1rem 1rem; max-width: 32rem; background: var(--ink); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; z-index: 20; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--on-ink); }

/* Google reviews (home page) */
.google-reviews { background: #fff; }
.review-summary { font-size: 1.15rem; margin: 0 0 1.75rem; }
.google-reviews .stars { color: var(--brass); letter-spacing: .12em; margin: 0; }
.review-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.review { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius); }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-author img { border-radius: 50%; }
.review-author a, .review-author span:first-child { font-weight: 600; }
.review-time { display: block; font-size: .85rem; color: var(--color-muted); }
.review-text { margin: 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review-link, .review-attribution { font-size: .9rem; }
.review-attribution { margin: 1.25rem 0 0; color: var(--color-muted); }

@keyframes rise-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .home-hero-panel { animation: none; }
}

/* Admin area */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .85rem; }
.admin-home { color: #fff; font-family: var(--font-heading); font-size: 1.25rem; text-transform: uppercase; text-decoration: none; }
.admin-home span { color: var(--on-navy); font-family: var(--font-body); font-size: .9rem; text-transform: none; margin-left: .35rem; }
.admin-user { display: flex; align-items: center; gap: .75rem; margin: 0; color: var(--on-navy); font-size: .9rem; }
.button-small { padding: .4rem 1rem .3rem; font-size: .8rem; }
.admin-main { padding-block: 2rem 4rem; }
.admin-actions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.admin-action { display: grid; gap: .35rem; padding: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--color-text); text-decoration: none; border-top: 4px solid var(--clay); }
.admin-action:hover strong { text-decoration: underline; }
.admin-action strong { color: var(--color-heading); font-size: 1.15rem; }
.admin-form { max-width: 40rem; }
.admin-photo-form { display: grid; gap: 1rem; }
.admin-photo, .admin-photo-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: start; padding: 1rem; margin: 0; border: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-photo img, .admin-photo-row img, .admin-edit img { width: 100%; height: auto; border-radius: var(--radius); }
.admin-photo-fields { display: grid; gap: .35rem; }
.admin-photo-fields input, .admin-photo-fields select { font: inherit; padding: .55rem .7rem .45rem; border: 1px solid #c8c0b2; border-radius: .375rem; width: 100%; }
.admin-photo-fields label { font-weight: 600; margin-top: .4rem; }
.admin-photo-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.admin-photo-row { grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; padding: .75rem; }
.admin-photo-alt { margin: 0 0 .25rem; font-weight: 600; }
.admin-photo-meta { margin: 0; font-size: .9rem; color: var(--color-muted); }
.admin-photo-actions { display: flex; gap: 1rem; }
.badge { padding: .1rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--color-sand); color: var(--color-heading); }
.badge-needs { background: var(--clay); color: #fff; }
.badge-hidden { background: #e6e1d8; }
.admin-edit { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 48rem) {
    .admin-photo, .admin-edit { grid-template-columns: 1fr; }
    .admin-photo-row { grid-template-columns: 5rem minmax(0, 1fr); }
    .admin-photo-actions { grid-column: 1 / -1; }
}
.busy { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; font-weight: 600; color: var(--color-heading); }
.busy[hidden] { display: none; }
.spinner { flex: none; width: 1.5rem; height: 1.5rem; border: 3px solid var(--color-sand); border-top-color: var(--clay); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
form[aria-busy="true"] button[type=submit] { opacity: .6; cursor: progress; }
.admin-page-list { list-style: none; padding: 0; display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.admin-page-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-page-name { font-weight: 600; }
.badge-shown { background: #dfeee3; }
.admin-section-form { max-width: 52rem; }
.admin-section-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.admin-delete { max-width: 40rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-rule); }
