/* FK Composites: the service page template (Nieuwbouw is the pilot). Needs /assets/site.css first.
   Sections top to bottom: hero, fact tiles, rows + photo, photo band, named jobs on the dark field,
   steps, materials, quote band, other services, closing ask. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--step-small); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }
.on-navy .eyebrow { color: var(--navy-muted); }

/* ---------- hero: same frame as the homepage, a two-line h1 instead of the wordmark ---------- */
.hero-service h1 { font-size: clamp(3.25rem, 1.1rem + 5.4vw, 7.75rem); line-height: 0.96; letter-spacing: -0.05em; white-space: normal; max-width: 13ch; }
.hero-service .line { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; flex: none; }
.hero-service .hero-row p { max-width: 36ch; }
@media (max-width: 47.99em) {
  .hero-service .hero-photo { aspect-ratio: 3 / 2; }
  .hero-service .hero-photo img { object-position: 50% 50%; }
  .hero-service h1 { font-size: 11.4vw; max-width: none; }
  .hero-service .hero-row { gap: 1rem; padding-bottom: 1.5rem; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 1.1rem; }
}

/* ---------- three fact tiles ---------- */
.facts { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 0; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; font-size: var(--step-head); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 47.99em) {
  .facts { grid-template-columns: 1fr; gap: 0; padding-top: 2rem; }
  .facts div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-top-color: var(--line); }
  .facts div:first-child { border-top-color: var(--ink); }
  .facts dd { font-size: 1.75rem; }
  .facts dt { font-size: var(--step-small); text-align: right; }
}

/* ---------- what we do: rows beside one big photo ---------- */
.rows-sec { padding-top: var(--section); }
.rows-sec .rows-photo { grid-column: 1 / 6; grid-row: 1 / 3; align-self: start; position: sticky; top: 5.5rem; aspect-ratio: 4 / 5; margin: 0; }
.rows-sec .rows-head { grid-column: 7 / 13; }
.rows-sec .rows-head p { margin-top: 1.25rem; color: var(--muted); max-width: 40ch; }
.rows { grid-column: 7 / 13; margin-top: clamp(2rem, 4vw, 3.5rem); padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .n { grid-row: 1 / 3; font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.35rem; }
.rows h3 { font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.15; }
.rows p { margin-top: 0.4rem; color: var(--muted); max-width: 44ch; }
@media (max-width: 64em) {
  .rows-sec .rows-head, .rows { grid-column: 1 / 13; }
  .rows-sec .rows-photo { grid-column: 1 / 13; grid-row: auto; position: static; aspect-ratio: 4 / 3; margin-top: 2rem; order: 1; }
  .rows-sec .rows-head { order: 0; }
  .rows { order: 2; }
}
@media (max-width: 47.99em) {
  .rows li { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.5rem; padding: 1.1rem 0 1.2rem; }
  .rows h3 { font-size: 1.3125rem; }
  .rows p { font-size: 1rem; }
}

/* ---------- photo band caption ---------- */
.band-sec.svc { padding-top: var(--section); }

/* ---------- named jobs on the dark field ---------- */
.jobs-sec { margin-top: var(--section); }
.jobs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.jobs-head h2 { max-width: 17ch; }
.jobs-head p { max-width: 30ch; color: var(--navy-muted); }
.jobs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.jobs-photo { grid-column: 1 / 5; position: sticky; top: 5.5rem; margin: 0; }
.jobs-photo .frame { aspect-ratio: 4 / 5; background: var(--navy-2); }
.jobs-photo figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--navy-muted); }
.jobs-wrap { grid-column: 6 / 13; }
.jobs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.jobs th, .jobs td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-weight: 400; }
.jobs thead th { font-size: var(--step-small); color: var(--navy-muted); padding-block: 0 0.75rem; border-top: 0; }
.jobs td:last-child, .jobs th:last-child { padding-right: 0; text-align: right; }
.jobs tbody th { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.25; }
.jobs td { color: var(--navy-muted); }
.jobs .yr { color: var(--paper); }
.jobs .win { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: var(--step-small); font-weight: 500; letter-spacing: -0.01em; color: var(--paper); }
.jobs .win .icon { width: 0.95rem; height: 0.95rem; color: var(--brand); }
.jobs .note { display: block; margin-top: 0.3rem; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--navy-muted); }
.jobs-more { margin-top: 2rem; color: var(--navy-muted); }
.jobs-more .link { color: var(--paper); font-weight: 500; }
@media (max-width: 64em) {
  .jobs-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .jobs-photo { grid-column: 1 / 13; position: static; margin-bottom: 2rem; }
  .jobs-photo .frame { aspect-ratio: 16 / 10; }
  .jobs-photo .frame img { object-position: 50% 62%; }
  .jobs-wrap { grid-column: 1 / 13; }
}
@media (max-width: 47.99em) {
  .jobs-photo .frame { aspect-ratio: 4 / 3; }
  .jobs-photo .frame img { object-position: 50% 88%; }
  .jobs thead { display: none; }
  .jobs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: 0.95rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .jobs th, .jobs td { padding: 0; border: 0; }
  .jobs tbody th { grid-column: 1; grid-row: 1; font-size: 1.1875rem; }
  .jobs .yr { grid-column: 2; grid-row: 1; text-align: right; }
  .jobs .ds, .jobs .bd { grid-column: 1 / 3; font-size: var(--step-small); }
  .jobs .ds { margin-top: 0.35rem; }
  .jobs .ds::after { content: " · " attr(data-bd); }
  .jobs .bd { display: none; }
}

/* ---------- how it goes: three steps ---------- */
.steps-sec { padding-top: var(--section); }
.steps-sec h2 { grid-column: 1 / 8; }
.steps { grid-column: 1 / 13; margin-top: clamp(2rem, 4vw, 3.5rem); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: step; }
.steps li { position: relative; padding: clamp(1.5rem, 2.6vw, 2.25rem); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; min-height: 17rem; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 500; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: auto; padding-top: 2.5rem; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.15; }
.steps p { margin-top: 0.6rem; color: var(--muted); }
.steps li:last-child { background: var(--navy); color: var(--paper); }
.steps li:last-child p, .steps li:last-child::before { color: var(--navy-muted); }
@media (max-width: 64em) {
  .steps-sec h2 { grid-column: 1 / 13; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .steps h3 { padding-top: 1.25rem; }
}

/* ---------- materials: three rows and a link ---------- */
.mat-sec { padding-top: var(--section); }
.mat-side { grid-column: 1 / 6; }
.mat-side p { margin-top: 1.25rem; color: var(--muted); max-width: 34ch; }
.mat-side .link { margin-top: 1.5rem; font-weight: 500; }
.mat { grid-column: 7 / 13; margin: 0; }
.mat div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.mat div:last-child { border-bottom: 1px solid var(--line); }
.mat dt { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.25; }
.mat dd { color: var(--muted); }
@media (max-width: 64em) {
  .mat-side, .mat { grid-column: 1 / 13; }
  .mat { margin-top: 2rem; }
}
@media (max-width: 47.99em) {
  .mat div { grid-template-columns: 1fr; row-gap: 0.25rem; padding: 1rem 0; }
  .mat dt { font-size: 1.125rem; }
  .mat dd { font-size: 1rem; }
}

/* ---------- quote band: one wide photo, their own line on it ---------- */
.quote-band { position: relative; margin-top: var(--section); min-height: 82svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--navy); overflow: clip; }
.quote-band figure { position: absolute; inset: 0; margin: 0; overflow: clip; }
.quote-band figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; background: var(--navy); }
/* taste-skill-ignore */ .quote-band figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--scrim), 0.88) 0%, rgba(var(--scrim), 0.55) 35%, rgba(var(--scrim), 0.1) 70%), linear-gradient(to right, rgba(var(--scrim), 0.55), rgba(var(--scrim), 0) 60%); }
.quote-band blockquote { position: relative; padding: 0 var(--margin) clamp(2.5rem, 6vw, 5rem); }
.quote-band blockquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 18ch; text-wrap: balance; }
.quote-band blockquote p::before { content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 1.5rem; border-radius: 2px; background: var(--brand); }
.quote-band footer { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.72); font-size: var(--step-small); }
@media (max-width: 47.99em) {
  .quote-band { min-height: 78svh; }
  .quote-band blockquote p { font-size: 9vw; }
}

/* ---------- other services: two photo cards ---------- */
.more-sec { padding-top: var(--section); }
.more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.more-head .link { font-weight: 500; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 0; list-style: none; }
.card { display: block; text-decoration: none; }
.card .frame { aspect-ratio: 4 / 3; }
.card .frame img { transition: scale 900ms var(--ease-expo); }
.card-text { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: 1rem; }
.card h3 { font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.15; }
.card p { margin-top: 0.3rem; color: var(--muted); }
.card-go { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .frame img { scale: 1.2; }
  .card:hover .card-go { background: var(--brand); color: var(--paper); box-shadow: none; }
}
@media (max-width: 47.99em) {
  .more-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cards { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- closing ask ---------- */
.contact .hint { margin-top: 0.9rem; font-size: var(--step-small); color: var(--muted); }
.contact .mail-addr { display: inline-block; margin-top: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }

/* ---------- contact buttons through the page (26 Nov: more asks, all to /contact/) ---------- */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.cta-rows { grid-column: 7 / 13; }
.cta-steps { grid-column: 1 / 13; }
.cta-phone { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.cta-phone .icon { width: 1.05rem; height: 1.05rem; color: var(--brand); }
.cta-phone:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.button.ghost-dark { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.button.ghost-dark::before { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .button.ghost-dark:hover { color: var(--ink); } }
.quote-band .cta-inline { margin-top: 1.75rem; }
.band-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem; text-align: right; }
.band-cta { font-weight: 500; }
@media (max-width: 64em) {
  .cta-rows { grid-column: 1 / 13; order: 3; }
  .band-side { align-items: flex-start; text-align: left; }
}
@media (max-width: 47.99em) {
  .cta-inline .button { flex: 1 1 100%; }
  .cta-inline .cta-phone { width: 100%; justify-content: center; }
}
