/* =============================================================================
   Components
============================================================================= */

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

   One accent colour, one primary action per screen. The copper button is the
   only saturated thing on the page, which is what makes it impossible to miss
   without shouting.
--------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease), transform 0.12s var(--ease);
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

.btn--primary {
    background: var(--copper-600);
    border-color: var(--copper-600);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--copper-700);
    border-color: var(--copper-700);
    color: var(--white);
}

.btn--secondary {
    background: transparent;
    border-color: var(--slate-700);
    color: var(--slate-900);
}

.btn--secondary:hover { background: var(--slate-900); color: var(--white); }

/* On a photograph or a dark section, the outline button needs a light edge. */
.on-dark .btn--secondary,
.section--dark .btn--secondary {
    border-color: rgb(255 255 255 / 0.5);
    color: var(--white);
}

.on-dark .btn--secondary:hover,
.section--dark .btn--secondary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--slate-900);
}

.btn--quiet {
    min-height: auto;
    padding: 0;
    background: none;
    border: none;
    color: var(--copper-700);
    font-weight: 600;
}

.btn--quiet:hover { color: var(--copper-600); }

.btn--lg { min-height: 3.4rem; padding: 0.9rem 1.9rem; font-size: 1.04rem; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

@media (max-width: 480px) {
    .btn-row { flex-direction: column; align-items: stretch; }
}

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

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88svh, 44rem);
    padding-top: calc(var(--header-h) + var(--space-8));
    padding-bottom: var(--space-9);
    background: var(--slate-900);
    color: var(--white);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media picture,
.hero__media img,
.hero__media .photo-slot {
    width: 100%;
    height: 100%;
}

.hero__media img { object-fit: cover; object-position: center 40%; }

/* The overlay is a gradient rather than a flat wash: the text side stays dark
   enough to read against, the far side keeps the photograph legible. */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgb(14 24 34 / 0.90) 0%, rgb(14 24 34 / 0.72) 42%, rgb(14 24 34 / 0.38) 100%),
        linear-gradient(to top, rgb(14 24 34 / 0.55) 0%, transparent 45%);
}

.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--copper-300);
}

.hero h1 { color: var(--white); }

.hero__subtitle {
    max-width: 38rem;
    margin-top: var(--space-5);
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--stone-200);
}

.hero .btn-row { margin-top: var(--space-7); }

/* The reassurance line under the CTAs — facts, no numbers invented. */
.hero__assurances {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin-top: var(--space-6);
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    color: var(--stone-300);
}

.hero__assurances li { display: flex; align-items: center; gap: var(--space-2); }
.hero__assurances li + li { margin-top: 0; }

.hero__assurances li::before {
    content: "";
    width: 0.3rem;
    height: 0.3rem;
    background: var(--copper-300);
    transform: rotate(45deg);
    flex: none;
}

/* ---------------------------------------------------------------------------
   Trust bar
--------------------------------------------------------------------------- */

.trust-bar {
    background: var(--slate-800);
    color: var(--white);
    border-bottom: 1px solid var(--border-dark);
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-dark);
    border-inline: 1px solid var(--border-dark);
}

@media (min-width: 640px)  { .trust-bar__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .trust-bar__grid { grid-auto-flow: column; grid-template-columns: none; } }

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    background: var(--slate-800);
}

.trust-item__icon {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    color: var(--copper-300);
}

.trust-item__label {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.3;
}

.trust-item__note {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-on-dark-faint);
}

/* ---------------------------------------------------------------------------
   Cards
--------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

@media (min-width: 620px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease),
                transform 0.25s var(--ease);
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--stone-100);
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.card:hover .card__media img { transform: scale(1.03); }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-5);
}

.card__title { margin-bottom: var(--space-3); font-size: var(--step-1); }

.card__title a { text-decoration: none; }

/* The whole card is clickable, while the link text stays the accessible name. */
.card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card { position: relative; }

.card__text {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    color: var(--copper-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.card__more svg {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s var(--ease);
}

.card:hover .card__more svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   Photo slot — the stand-in shown until a real photograph is supplied

   It states what picture belongs there and at what size, so the hole in the
   site doubles as the brief for the person holding the camera.
--------------------------------------------------------------------------- */

.photo-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-5);
    background:
        repeating-linear-gradient(
            135deg,
            var(--stone-100) 0 10px,
            var(--stone-200) 10px 20px
        );
    color: var(--slate-500);
    text-align: center;
}

.photo-slot__mark { width: 3rem; height: 1.4rem; color: var(--slate-400); }

.photo-slot__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--copper-700);
}

.photo-slot__desc {
    max-width: 26rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.photo-slot__size { font-size: 0.72rem; color: var(--stone-400); }

.hero .photo-slot {
    align-items: flex-end;
    justify-content: flex-end;
    gap: var(--space-1);
    padding: var(--space-6);
    background: var(--slate-800);
    color: var(--slate-400);
    text-align: right;
}

.hero .photo-slot__mark,
.hero .photo-slot__desc { display: none; }

.hero .photo-slot__label,
.hero .photo-slot__size { font-size: 0.7rem; color: var(--stone-400); }

/* ---------------------------------------------------------------------------
   Problem finder

   Written from the homeowner's side: people arrive with a symptom, not with
   the name of a trade. Each tile names a symptom and routes it to the form.
--------------------------------------------------------------------------- */

.problem-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

@media (min-width: 560px)  { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px)  { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: rgb(255 255 255 / 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.problem:hover {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(217 148 92 / 0.5);
}

.problem__icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    color: var(--copper-300);
}

.problem__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
}

.problem__text {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--stone-300);
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
}

.filter {
    min-height: 2.6rem;
    padding: 0.5rem 1.05rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease);
}

.filter:hover { border-color: var(--slate-500); }

.filter[aria-pressed="true"] {
    background: var(--slate-900);
    border-color: var(--slate-900);
    color: var(--white);
}

.gallery {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

@media (min-width: 620px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.project { display: flex; flex-direction: column; }

.project__media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--stone-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.project__media img { width: 100%; height: 100%; object-fit: cover; }

.project__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-4);
}

.project__city {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--copper-700);
}

.project__year { font-size: 0.8rem; color: var(--text-muted); }

.project__title { margin-top: var(--space-2); font-size: var(--step-1); }

.project__text {
    margin-top: var(--space-3);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.project.is-hidden { display: none; }

/* Marks the sample entries shipped with the site. Deleting the placeholders
   from app/config/projects.php removes both the ribbon and the entry. */
.project__flag {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 2;
    padding: 0.25rem 0.6rem;
    background: var(--copper-600);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   Before / after slider

   The handle is a real range input, so it works with a keyboard and with
   assistive technology out of the box. The visible handle is decorative.
--------------------------------------------------------------------------- */

.ba {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--stone-100);
    --pos: 50%;
}

.ba__layer { position: absolute; inset: 0; }
.ba__layer img,
.ba__layer .photo-slot { width: 100%; height: 100%; object-fit: cover; }

.ba__layer--after { clip-path: inset(0 0 0 var(--pos)); }

.ba__range {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.ba__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 3rem;
    height: 100%;
    cursor: ew-resize;
}

.ba__range::-moz-range-thumb {
    width: 3rem;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: ew-resize;
}

.ba__range:focus-visible { outline: 3px solid var(--copper-500); outline-offset: -3px; }

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    z-index: 2;
    width: 2px;
    margin-left: -1px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgb(14 24 34 / 0.25);
    pointer-events: none;
}

.ba__grip {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transform: translate(-50%, -50%);
    color: var(--slate-800);
}

.ba__grip svg { width: 1.1rem; height: 1.1rem; }

.ba__tag {
    position: absolute;
    bottom: var(--space-3);
    z-index: 2;
    padding: 0.28rem 0.7rem;
    background: rgb(14 24 34 / 0.78);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.ba__tag--before { left: var(--space-3); }
.ba__tag--after  { right: var(--space-3); }

.ba-item + .ba-item { margin-top: var(--space-8); }

.ba-item__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-4);
}

.ba-grid {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ba-item + .ba-item { margin-top: 0; } }

/* ---------------------------------------------------------------------------
   Reviews
--------------------------------------------------------------------------- */

.stars { display: inline-flex; gap: 0.1rem; color: var(--copper-600); }
.stars svg { width: 1rem; height: 1rem; }
.on-dark .stars, .section--dark .stars { color: var(--copper-300); }

.review {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.review__text {
    flex: 1;
    margin-top: var(--space-4);
    font-size: 1rem;
    line-height: 1.6;
}

.review__author {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.review__name { font-weight: 600; }
.review__city { color: var(--text-muted); }

/* Shown while there are no real reviews yet — an honest empty state that says
   what will go here and what the visitor can do in the meantime. */
.reviews-empty {
    max-width: 46rem;
    margin-inline: auto;
    padding: var(--space-8);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
}

.reviews-empty__mark {
    width: 3.5rem;
    height: 1.6rem;
    margin: 0 auto var(--space-5);
    color: var(--stone-400);
}

/* ---------------------------------------------------------------------------
   Process — drawn as a timber truss

   The steps are the bottom chord; the diagonals above them are the web
   members. It is the one place where the ornament is also the diagram: a
   sequence of joints carrying a load from one end to the other.
--------------------------------------------------------------------------- */

.process { position: relative; }

.process__truss { display: none; }

@media (min-width: 900px) {
    .process__truss {
        display: block;
        width: 100%;
        height: 5.5rem;
        margin-bottom: -1px;
        color: var(--copper-300);
    }
}

.process__steps {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border-dark);
    padding-top: var(--space-6);
}

@media (min-width: 560px) { .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .process__steps { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }

.step { position: relative; padding-top: var(--space-4); }

.step::before {
    content: "";
    position: absolute;
    top: -0.3rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--copper-300);
    transform: rotate(45deg);
}

.step__number {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: var(--tracking-label);
    color: var(--slate-400);
}

.step__title {
    margin-top: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
}

.step__text {
    margin-top: var(--space-2);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--stone-300);
}

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

.area {
    display: grid;
    gap: var(--space-8);
    align-items: start;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) { .area { grid-template-columns: 1fr 1.1fr; gap: var(--space-10); } }

.area__map {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--slate-900);
    border-radius: var(--radius);
    overflow: hidden;
}

.area__map svg { width: 100%; height: 100%; }

.city-list {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, 1fr);
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    list-style: none;
    padding: 0;
}

@media (min-width: 620px) { .city-list { grid-template-columns: repeat(3, 1fr); } }

.city-list li { margin: 0; }

.city-list a {
    display: block;
    padding: var(--space-4);
    background: var(--surface);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.city-list a:hover { background: var(--slate-900); color: var(--white); }

.area__other {
    margin-top: var(--space-5);
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Quote form
--------------------------------------------------------------------------- */

.quote-form {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 950px) { .quote-form { grid-template-columns: 1fr 1.25fr; gap: var(--space-10); } }

.form-card {
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 620px) { .form-card { padding: var(--space-8); } }

.field { margin-bottom: var(--space-5); }

.field label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    font-weight: 600;
}

.field .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 1rem;      /* 16px minimum, or iOS zooms the page on focus */
    transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2352657A' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.7rem;
    padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--copper-600);
    box-shadow: 0 0 0 3px rgb(168 95 46 / 0.14);
    outline: none;
}

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--danger); }

.field__error {
    display: block;
    margin-top: var(--space-2);
    color: var(--danger);
    font-size: 0.87rem;
    font-weight: 500;
}

.field__hint {
    display: block;
    margin-top: var(--space-2);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.field-row {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }

/* File input, styled without hiding the native control from assistive tech. */
.field--file input[type="file"] {
    padding: 0.6rem;
    background: var(--bg-warm);
    border-style: dashed;
    font-size: 0.9rem;
    cursor: pointer;
}

.field--file input[type="file"]::file-selector-button {
    margin-right: var(--space-4);
    padding: 0.45rem 0.9rem;
    background: var(--slate-900);
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Consent checkbox */
.field--check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.field--check input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin-top: 0.2rem;
    flex: none;
    accent-color: var(--copper-600);
}

.field--check label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

/* The honeypot. Hidden from sight and from assistive technology, but present
   in the DOM — an automated submitter fills it, a person never sees it. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    margin-top: var(--space-4);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
}

.form-alert {
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--danger);
    background: rgb(155 44 31 / 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
}

.form-alert--success {
    border-left-color: var(--success);
    background: rgb(46 94 62 / 0.07);
}

/* --- Reassurance column beside the form ---------------------------------- */

.form-aside__list { list-style: none; padding: 0; margin-top: var(--space-6); }

.form-aside__list li {
    display: flex;
    gap: var(--space-3);
    padding-block: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: 0.94rem;
    line-height: 1.5;
}

.form-aside__list li + li { margin-top: 0; }

.form-aside__list svg {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    color: var(--copper-600);
}

.form-aside__phone {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--slate-900);
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
}

.form-aside__phone svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--copper-300); }
.form-aside__phone small { display: block; font-size: 0.8rem; color: var(--stone-300); }
.form-aside__phone strong { font-family: var(--font-display); font-size: var(--step-1); }

/* ---------------------------------------------------------------------------
   Final call to action
--------------------------------------------------------------------------- */

.cta-final {
    position: relative;
    padding-block: var(--space-11);
    background: var(--slate-900);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* A single rafter line across the band, the same mark as everywhere else,
   here at architectural scale. */
.cta-final__truss {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 7rem;
    color: rgb(217 148 92 / 0.22);
    pointer-events: none;
}

.cta-final__inner { position: relative; z-index: 1; max-width: 44rem; margin-inline: auto; }
.cta-final h2 { font-size: var(--step-5); }
.cta-final p { margin-top: var(--space-4); font-size: var(--step-1); color: var(--stone-300); }
.cta-final .btn-row { justify-content: center; margin-top: var(--space-7); }

/* ---------------------------------------------------------------------------
   Page header, breadcrumb, FAQ
--------------------------------------------------------------------------- */

.page-head {
    padding-block: var(--space-9) var(--space-8);
    background: var(--slate-900);
    color: var(--white);
}

.page-head h1 { font-size: var(--step-5); color: var(--white); }
.page-head .lead { margin-top: var(--space-5); max-width: 48rem; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding: 0;
    list-style: none;
    font-size: 0.83rem;
    color: var(--stone-400);   /* slate-400 measured 3.96:1 on the dark banner */
}

.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--slate-400); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--copper-300); }

.faq { border-top: 1px solid var(--border); }

.faq__item { border-bottom: 1px solid var(--border); }

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) 0;
    background: none;
    border: 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__icon {
    flex: none;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--copper-600);
    transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__icon { transform: rotate(180deg); }

.faq__a { padding-bottom: var(--space-5); max-width: var(--container-text); color: var(--slate-700); }

/* ---------------------------------------------------------------------------
   Two-column feature block (company, service pages)
--------------------------------------------------------------------------- */

.split {
    display: grid;
    gap: var(--space-8);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
    .split--wide-text { grid-template-columns: 1.15fr 1fr; }
    .split--media-first > :first-child { order: 2; }
}

.split__media {
    aspect-ratio: 4 / 5;
    background: var(--stone-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--landscape { aspect-ratio: 4 / 3; }

/* --- Fact list used under "Pourquoi nous faire confiance" ----------------- */

.facts { list-style: none; padding: 0; margin-top: var(--space-6); }

.facts li {
    display: flex;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-top: 1px solid var(--border);
}

.facts li + li { margin-top: 0; }
.section--dark .facts li { border-color: var(--border-dark); }

.facts svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; color: var(--copper-600); }
.section--dark .facts svg { color: var(--copper-300); }

.facts strong { display: block; }
.facts span { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--text-muted); }
.section--dark .facts span { color: var(--stone-300); }

/* --- RGE callout, shown only when the qualification is actually held ------ */

.rge-callout {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    margin-block: var(--space-7);
    background: var(--sand-50);
    border: 1px solid var(--sand-100);
    border-left: 3px solid var(--copper-600);
    border-radius: var(--radius);
}

.rge-callout svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--copper-600); }
.rge-callout h3 { font-size: var(--step-1); }
.rge-callout p { margin-top: var(--space-3); font-size: 0.95rem; }

/* --- Local pages --------------------------------------------------------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding: 0;
    list-style: none;
}

.chip-row li { margin: 0; }

.chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgb(255 255 255 / 0.09);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    font-size: 0.83rem;
}

.issue-list { list-style: none; padding: 0; margin-top: var(--space-5); }

.issue-list li {
    position: relative;
    padding-left: 1.5rem;
    padding-block: var(--space-2);
    font-size: 0.97rem;
}

.issue-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 1.5px solid var(--copper-600);
    border-right: 1.5px solid var(--copper-600);
    transform: rotate(45deg);
}

/* --- A job card leads to the job's own page ------------------------------ */

.project__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project__link:hover .project__title { color: var(--copper-700); }
.project__link:hover .project__media img { transform: scale(1.03); }
.project__media img { transition: transform 0.5s var(--ease); }

.project__more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    color: var(--copper-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.project__more svg { width: 0.9rem; height: 0.9rem; transition: transform 0.2s var(--ease); }
.project__link:hover .project__more svg { transform: translateX(3px); }

/* --- Detail photographs on a job page ------------------------------------ */

.detail-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 620px)  { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }

.detail-grid__item {
    aspect-ratio: 4 / 3;
    background: var(--stone-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-grid__item img { width: 100%; height: 100%; object-fit: cover; }
