/* ==========================================================================
   Glaszetbedrijf Masker - components
   ========================================================================== */

/* ---------- Knoppen: rechthoekig als een bord, geen zachte schaduwen ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    min-height: 54px;
    padding: 0 var(--sp-6);
    border: 2px solid transparent;
    border-radius: 0;
    font-size: var(--fs-sm);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--paper); }
.btn--ghost-light { border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--lg { min-height: 62px; padding: 0 var(--sp-8); font-size: var(--fs-base); }
.btn--sm { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--red);
    padding-bottom: 2px;
}
.link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.link:hover svg { transform: translateX(3px); }
.link--light { color: var(--white); }

/* ---------- Glaslabel: de sticker die op een nieuwe ruit zit ---------- */
.glaslabel {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--ink);
    background: var(--white);
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}
.glaslabel::before { content: ""; width: 6px; background: var(--red); flex: none; }
.glaslabel span { padding: 6px 8px; }
.glaslabel b { padding: 6px 8px; border-left: 1px solid var(--ink); font-weight: 700; }

/* ---------- Status (dag- of nachtdienst) ---------- */
.status { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.status__dot { width: 8px; height: 8px; background: #2fd36b; flex: none; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Maatlijnen rond een foto: "op de millimeter ingemeten" ---------- */
.measured { position: relative; margin: 34px 34px 0 0; }
.measured img { width: 100%; height: 100%; object-fit: cover; }
.measured__h,
.measured__v {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.measured__h { left: 0; right: 0; top: -22px; height: 12px; border-left: 1px solid; border-right: 1px solid; }
.measured__h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid; }
.measured__v { top: 0; bottom: 0; right: -22px; width: 12px; border-top: 1px solid; border-bottom: 1px solid; }
.measured__v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid; }
.measured__h span,
.measured__v span { position: relative; padding: 0 6px; background: var(--bg, var(--white)); }
.measured__v span { writing-mode: vertical-rl; padding: 6px 0; }
.measured { color: var(--muted); }

/* ---------- Werkbon-vinkjes ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 var(--sp-6); border-top: 1px solid var(--line); }
.check-list li { position: relative; margin: 0; padding: var(--sp-3) 0 var(--sp-3) 2.1rem; border-bottom: 1px solid var(--line); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--ink);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e1251b' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M3 8.5l3 3L13 4'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

/* ---------- Google-score ---------- */
.rating { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.rating__g { width: 20px; height: 20px; flex: none; }
.stars { color: var(--star); letter-spacing: 0.08em; font-size: 0.95em; }
.rating strong { color: var(--ink); }
.rating--light { color: rgba(255, 255, 255, 0.75); }
.rating--light strong { color: var(--white); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-8); padding: 0; list-style: none; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.breadcrumbs li + li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs--light ol, .breadcrumbs--light [aria-current] { color: rgba(255, 255, 255, 0.75); }
.breadcrumbs--light [aria-current] { color: var(--white); }

/* ---------- FAQ: vraag en antwoord als V en A ---------- */
.faq-list { border-top: var(--rule); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: grid;
    grid-template-columns: 2.2rem 1fr 1.5rem;
    gap: var(--sp-2);
    align-items: baseline;
    padding: var(--sp-5) 0;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-stretch: 105%;
    font-size: var(--fs-md);
    line-height: 1.3;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "V."; font-family: var(--mono); font-size: var(--fs-sm); font-weight: 700; color: var(--red); }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; line-height: 1; text-align: right; color: var(--ink); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--red-dark); }
.faq-item__answer { display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--sp-2); padding: 0 var(--sp-8) var(--sp-6) 0; color: var(--muted); }
.faq-item__answer::before { content: "A."; font-family: var(--mono); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.faq-item__answer a { color: var(--red-dark); font-weight: 600; }

/* ---------- Formulier als werkbon ---------- */
.werkbon { background: var(--white); border: var(--rule); }
.werkbon__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); background: var(--ink); color: var(--white); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.werkbon__head strong { color: var(--white); font-family: var(--font); font-stretch: 125%; font-weight: 900; font-size: var(--fs-md); letter-spacing: 0.02em; }
.werkbon__body { padding: var(--sp-6); }
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 4px; }
.field label, .field legend { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: var(--sp-2) 0;
    border: 0;
    border-bottom: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    font-size: var(--fs-base);
    font-weight: 500;
}
.field textarea { min-height: 110px; resize: vertical; background: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); line-height: 32px; padding-top: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); background-color: #fffaf3; }
.field input[type="file"] { border: 1px dashed var(--ink); padding: var(--sp-3); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.form__note { font-size: var(--fs-xs); color: var(--muted); }
.form__note a { color: inherit; }

.choice-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); border: 0; margin: 0; padding: 0; }
.choice-group legend { margin-bottom: var(--sp-3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); border: 2px solid var(--ink); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Warmteverlies-meter ---------- */
.meter { display: grid; gap: var(--sp-3); }
.meter__row { display: grid; grid-template-columns: 8.5rem 1fr 3.5rem; align-items: center; gap: var(--sp-4); font-size: var(--fs-sm); }
.meter__label { font-weight: 700; color: var(--ink); }
.meter__bar { height: 18px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%); border: 1px solid var(--ink); }
.meter__fill { display: block; height: 100%; background: var(--red); }
.meter__fill--ok { background: var(--glass); }
.meter__fill--best { background: var(--ink); }
.meter__value { text-align: right; font-family: var(--mono); color: var(--ink); }
.meter__fill--w100 { width: 100%; }
.meter__fill--w50 { width: 48%; }
.meter__fill--w20 { width: 19%; }
.meter__fill--w11 { width: 10%; }
@media (max-width: 520px) { .meter__row { grid-template-columns: 6.5rem 1fr 2.8rem; gap: var(--sp-2); } }

/* ---------- Spec-rij (diensten als glasrek) ---------- */
.spec-list { border-top: var(--rule); }
.spec-row {
    display: grid;
    grid-template-columns: 112px 1fr auto 28px;
    gap: var(--sp-6);
    align-items: center;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.15s;
}
.spec-row__img { width: 112px; height: 76px; object-fit: cover; filter: grayscale(0.25); transition: filter 0.2s; }
.spec-row__name { display: block; font-weight: 850; font-stretch: 115%; font-size: var(--fs-lg); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.005em; }
.spec-row__text { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); max-width: 60ch; }
.spec-row > svg { width: 24px; height: 24px; color: var(--red); transition: transform 0.15s; }
.spec-row:hover { background: var(--paper); }
.spec-row:hover .spec-row__img { filter: none; }
.spec-row:hover > svg { transform: translateX(4px); }
.spec-row--urgent .spec-row__name { color: var(--red); }
@media (max-width: 760px) {
    .spec-row { grid-template-columns: 80px 1fr 22px; gap: var(--sp-4); }
    .spec-row__img { width: 80px; height: 64px; }
    .spec-row .glaslabel { grid-column: 2; grid-row: 2; justify-self: start; }
    .spec-row > svg { grid-column: 3; grid-row: 1; }
    .spec-row__name { font-size: var(--fs-md); }
    .spec-row__text { display: none; }
}
.spec-list--compact .spec-row { grid-template-columns: 1fr auto 24px; padding: var(--sp-4) 0; }
.spec-list--compact .spec-row__name { font-size: var(--fs-md); }
.spec-list--compact .spec-row__text { display: none; }
@media (max-width: 760px) { .spec-list--compact .spec-row .glaslabel { grid-column: 1; } .spec-list--compact .spec-row > svg { grid-column: 2; } }

/* ---------- Werkfoto ---------- */
.werkfoto { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.werkfoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.werkfoto:hover img { transform: scale(1.03); }
.werkfoto figcaption { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 1rem); padding: var(--sp-3) var(--sp-4); background: var(--white); border-top: 4px solid var(--red); }
.werkfoto__cat { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.werkfoto__title { display: block; font-weight: 800; font-stretch: 105%; font-size: var(--fs-sm); line-height: 1.25; color: var(--ink); }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--sp-8); border: var(--rule); width: fit-content; max-width: 100%; }
.filter-pills button { min-height: 44px; padding: 0 var(--sp-4); border: 0; border-right: 1px solid var(--ink); background: var(--white); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.filter-pills button:last-child { border-right: 0; }
.filter-pills button:hover { background: var(--paper); }
.filter-pills button.is-active { background: var(--ink); color: var(--white); }
.is-hidden { display: none !important; }

/* ---------- Spec-tabel ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); border-top: var(--rule); }
.spec-table th, .spec-table td { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spec-table tbody th { font-weight: 800; color: var(--ink); width: 30%; }
.table-scroll { overflow-x: auto; }
