/*
 * Sirvion redesign — rustig, zakelijk en menselijk.
 * Deze laag vervangt de uitgesproken industriële styling zonder de toegankelijke
 * structuur en functionaliteit van de homepage aan te tasten.
 */
:root {
  --ink: #171817;
  --ink-soft: #20211f;
  --paper: #fff;
  --paper-deep: #fff;
  --text: #1b1c1a;
  --muted: #62645f;
  --line: #d9dad5;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
  --radius: .55rem;
  --section: clamp(4.75rem, 7vw, 7rem);
  --announcement-height: 1.875rem;
}

html { scroll-padding-top: calc(var(--announcement-height) + 5rem); }

body { background: var(--paper); font-size: 1.025rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.eyebrow,
.trust-strip span,
.service-content > span,
.service-content a,
.ba-label,
.comparison-caption span,
.why-list li > span,
.process-list span,
.field label,
.field legend { font-weight: 600; }
.eyebrow-light { color: var(--primary-hover); }
.button,
.text-link,
.contact-info dd { font-weight: 600; }
h2 { font-size: clamp(2.6rem, 4.8vw, 5rem); }
h3 { letter-spacing: -.025em; line-height: 1.15; }
.eyebrow { margin-bottom: 1.25rem; color: var(--primary-hover); font-size: .72rem; letter-spacing: .075em; }
.eyebrow::before { display: none; }
.eyebrow-light { color: var(--primary-hover); }
.button {
  min-height: 3.3rem;
  padding-inline: 1.3rem;
  border-color: #fff;
  border-radius: .3rem;
  background: #fff;
  box-shadow: none;
  color: #171817;
  font-weight: 600;
}
.button:hover { border-color: #f0f0ec; background: #f0f0ec; color: #171817; }
.button span,
.text-link span { display: inline-flex; align-items: center; }
.button .sv-icon-arrow,
.text-link .sv-icon-arrow { width: 1.1rem; height: 1.1rem; }
.text-link {
  min-height: 3.1rem;
  gap: 0;
  padding: .75rem 1.15rem;
  border: 1px solid #f15a24;
  border-radius: .3rem;
  background: #f15a24;
  color: #fff;
  font-weight: 600;
}
.text-link:hover { border-color: #d94716; background: #d94716; color: #fff; }

/* Calm white navigation */
.site-header { top: var(--announcement-height); bottom: auto; height: 4.35rem; border-bottom: 1px solid transparent; background: transparent; color: var(--text); backdrop-filter: none; }
.site-header.is-scrolled { top: 0; height: 4rem; border-color: var(--line); background: rgba(255,255,255,.94); color: var(--text); box-shadow: 0 .25rem 1.5rem rgba(0,0,0,.04); }
.site-header:not(.is-scrolled) .desktop-nav a { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.desktop-nav a { color: #51534f; font-size: .84rem; font-weight: 600; }
.desktop-nav a:hover { color: var(--text); }
.menu-toggle { border: 0; color: var(--text); }
.menu-toggle span { width: 1.35rem; height: 1.5px; margin: 3.5px auto; }
.logo { letter-spacing: .11em; }
.brand-logo { display: block; width: 7.8rem; height: auto; }
.site-header.is-scrolled .brand-logo { content: url("../assets/sirvion-logo-clean-dark.svg"); }
.logo-mark { transform: none; }
.logo-mark i { height: .34rem; transform: skewX(-16deg); }

/* Dark, full-bleed hero: the Sirvion team is the visual proof. */
.site-header:not(.is-scrolled) { color: #fff; }
.hero { min-height: max(42rem, 88svh); display: flex; align-items: center; padding: 9rem 0 8rem; background: #151615; color: #fff; }
.hero-image { inset: 0; width: 100%; height: 100%; object-position: 55% 60%; filter: saturate(.7) brightness(.64) contrast(1.04); }
.hero-overlay { inset: 0; width: 100%; background: linear-gradient(90deg,rgba(10,11,10,.92) 0%,rgba(10,11,10,.74) 42%,rgba(10,11,10,.25) 100%),linear-gradient(0deg,rgba(10,11,10,.55),transparent 58%); }
.hero-grid { display: none; }
.hero-content { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.hero-content > .eyebrow, .hero h1, .hero-bottom { width: min(70%, 64rem); }
.hero h1 { max-width: none; margin-bottom: 2rem; font-size: clamp(3.05rem, 3.45vw, 4.25rem); }
.hero h1 em { color: #fff; font-style: normal; }
.hero h1 em::after { display: none; }
.hero-bottom { display: block; }
.hero-copy { max-width: 37rem; color: rgba(255,255,255,.82); font-size: clamp(1.05rem,1.25vw,1.2rem); line-height: 1.65; }
.hero .button-ghost { border-color: #fff; background: #fff; color: #171817; }
.hero .button-ghost:hover { border-color: #f0f0ec; background: #f0f0ec; color: #171817; }
.hero .button:not(.button-ghost) { border-color: #f15a24; background: #f15a24; color: #fff; }
.hero .button:not(.button-ghost):hover { border-color: #d94716; background: #d94716; color: #fff; }
.hero-proof { display: none; }

.trust-strip { position: fixed; inset: 0 0 auto; z-index: 1001; height: var(--announcement-height); overflow: hidden; border-top: 0; background: #f15a24; color: #fff; backdrop-filter: none; transition: transform .28s var(--ease); }
.trust-strip.is-hidden { transform: translateY(-100%); }
.trust-track { display: flex; width: max-content; animation: trust-marquee 27s linear infinite; will-change: transform; }
.trust-group { display: flex; flex: 0 0 auto; align-items: center; }
.trust-strip span { flex: 0 0 auto; padding: .58rem 1.6rem; border: 0; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .07em; }
.trust-strip span::before { margin-right: .65rem; color: #fff; content: "•"; }
@keyframes trust-marquee { to { transform: translateX(-50%); } }

/* Light editorial intro: keep the homepage rhythm airy and easy to scan. */
.intro { background: #f7f7f5; color: var(--text); }
.intro-layout { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,6rem); align-items: start; }
.intro h2 { max-width: 13ch; color: var(--ink); }
.intro-kicker { margin: 0 0 1.25rem; color: var(--primary); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; line-height: 1.3; }
.intro .eyebrow { color: var(--primary); }
.intro-copy p { color: var(--muted); }
.intro-copy .lead { color: var(--text); }
.intro-copy p:nth-of-type(2) { color: var(--muted); }
.intro-collage { grid-column: 1 / -1; display: block; margin: 0; }
.intro-collage figure { min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius); background: #d9dad5; }
.intro-collage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.04); transition: transform .7s var(--ease); }
.intro-collage figure:hover img { transform: scale(1.035); }
.intro-collage-detail { aspect-ratio: 1500 / 845; }
.intro-collage-detail img { object-position: center; }
/* A single, measured entrance for the Sirvion result collage. */
.intro-collage > * { opacity: 0; transform: translateY(1rem); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro-collage.is-visible > * { opacity: 1; transform: none; }
.intro-collage.is-visible > :nth-child(1) { transition-delay: .05s; }
.intro-collage.is-visible > :nth-child(2) { transition-delay: .14s; }
.intro-collage.is-visible > :nth-child(3) { transition-delay: .22s; }
.intro-collage.is-visible > :nth-child(4) { transition-delay: .3s; }
.intro-copy { align-self: end; }
.section-heading { grid-template-columns: minmax(0,1fr) minmax(16rem,25rem); }
.section-heading h2 { max-width: 14ch; }
.services-heading { grid-template-columns: 1fr; }
.services .section-heading h2 { max-width: none; }
.section-heading__subheading { max-width: 18ch; margin: .75rem 0 0; color: var(--ink-soft); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.section-heading { gap: clamp(3rem, 5vw, 5rem); margin-bottom: clamp(2.5rem, 4vw, 3rem); }
.services { padding-top: var(--section); background: var(--paper); }
.service-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.25rem; }
.service-card,
.service-card:nth-child(2),
.service-card:nth-child(4),
.service-card-wide,
.service-card-wide:nth-child(5),
.service-card:last-child {
  min-height: 23rem;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.service-card:nth-child(1),
.service-card:nth-child(2) { min-height: 26rem; grid-column: span 3; }
.service-card::after {
  background:
    linear-gradient(28deg, rgba(241,90,36,.88) 0%, rgba(241,90,36,.52) 30%, rgba(241,90,36,0) 66%),
    linear-gradient(0deg, rgba(10,10,10,.46) 0%, rgba(10,10,10,0) 62%);
}
.service-content { grid-template-columns: 1fr; padding: 1.6rem; }
.service-content > span { display: none; }
.service-content h3 { font-size: clamp(1.45rem,2vw,1.8rem); }
.service-content a {
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  padding: .72rem 1rem;
  border: 1px solid #fff;
  border-radius: .3rem;
  background: #fff;
  color: #171817;
  font-size: .78rem;
  font-weight: 600;
}
.service-content a:hover { border-color: #f0f0ec; background: #f0f0ec; }
.service-card-dark { background: #fff; color: var(--text); }
.service-card-dark::after, .service-card-dark .service-graphic { display: none; }
.service-card-dark .service-content { min-height: 100%; align-content: end; padding: 2rem; }
.service-card-dark .service-content p { color: var(--muted); }
.service-card-dark .service-content a { border-color: #171817; background: #171817; color: #fff; }
.service-carousel-dots { display: none; }

/* A single green durability statement between services and results. */
.sustainability-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8.5rem) 0;
  background: #244b3a;
  color: #f7f9f3;
}
.sustainability-band::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(46vw, 45rem);
  background: #49775f;
  clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}
.sustainability-band__mark {
  position: absolute;
  left: clamp(-9rem, -4vw, -2.5rem);
  bottom: clamp(-5rem, -2vw, -1.5rem);
  z-index: 1;
  width: clamp(32rem, 52vw, 56rem);
  aspect-ratio: 447.273 / 441.438;
  background: rgba(255,255,255,.2);
  -webkit-mask: url("../images/sirvion-icon.svg") center / contain no-repeat;
  mask: url("../images/sirvion-icon.svg") center / contain no-repeat;
  pointer-events: none;
}
.sustainability-band__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .62fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
}
.sustainability-band .eyebrow { margin: 0 0 1.25rem; color: #cbe7c7; }
.sustainability-band h2 { max-width: none; margin: 0; color: #fff; }
.sustainability-band__copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: rgba(247,249,243,.82);
  font-size: 1.06rem;
  line-height: 1.65;
}
.sustainability-band__link {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2rem;
  padding: .75rem 1.05rem;
  border: 1px solid #d7ead2;
  border-radius: 999px;
  background: #d7ead2;
  color: #1e4535;
  font-size: .86rem;
  font-weight: 700;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sustainability-band__link:hover { border-color: #fff; background: #fff; color: #1e4535; transform: translateY(-1px); }
.sustainability-band__link:focus-visible { outline: 2px solid #fff; outline-offset: .25rem; }
.sustainability-band__link .sv-icon-arrow { width: 1.05rem; height: 1.05rem; display: block; flex: 0 0 auto; }
.sustainability-band__principles { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.38); list-style: none; }
.sustainability-band__principles li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.sustainability-band__principle-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  margin-top: .08rem;
  border: 1px solid rgba(215,234,210,.72);
  border-radius: 50%;
  color: #d7ead2;
}
.sustainability-band__principle-icon svg { width: 1rem; height: 1rem; }
.sustainability-band__principles strong { display: block; color: #fff; font-family: var(--display); font-size: 1rem; letter-spacing: -.02em; }
.sustainability-band__principles p { margin: .28rem 0 0; color: rgba(247,249,243,.76); font-size: .9rem; line-height: 1.5; }

/* Results stay dark: this is the single visual statement */
.results { background: #1d1e1c; }
.results-heading { grid-template-columns: 1.2fr .8fr; }
.results-heading h2 { max-width: 13ch; }
.results-heading { margin-bottom: clamp(2.5rem, 4vw, 3rem); }
.results h2 em { color: inherit; }
.before-after { border-radius: .45rem; }
.comparison-caption h3 { font-size: 1.35rem; letter-spacing: -.02em; }

/* Reasons become a light, straightforward checklist */
.why { background: var(--paper-deep); color: var(--text); }
.why-layout { grid-template-columns: .85fr 1.15fr; }
.why-sticky h2 { max-width: 12ch; font-size: clamp(2.7rem,4.6vw,4.5rem); }
.why-sticky > p:last-child { color: var(--muted); }
.why-list li { grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.7rem 0; border-color: #cfd0cb; }
.why-list li > span { display: none; }
.why-icon { width: 2rem; height: 2rem; margin-top: .15rem; fill: none; stroke: #f15a24; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.why-list h3 { margin-bottom: .5rem; font-size: clamp(1.35rem,2vw,1.7rem); }
.why-list p { color: var(--muted); }

.process-list h3 { font-size: 1.45rem; }
.process-list p { font-size: .94rem; }
.process-progress { display: none; }

/* Business section: a clear Sirvion-orange statement. */
.business { min-height: 42rem; background: #f15a24; }
.business > img,
.business-overlay { display: none; }
.business .eyebrow-light,
.business li::before { color: #fff; }
.business h2 { max-width: 15ch; font-size: clamp(2.8rem,5vw,5rem); }
.project figcaption strong { font-family: var(--display); font-weight: 700; }
.projects { background: #fff; }
.review-grid blockquote > p { font-size: clamp(1.1rem,1.4vw,1.3rem); }

.cta-band { background: #222320; }
.cta-band h2 { font-size: clamp(2.8rem,5vw,5rem); }
.cta-line { display: none; }
.contact-info h2 { max-width: 11ch; font-size: clamp(2.8rem,4.6vw,4.7rem); }
.quote-form { border: 1px solid var(--line); box-shadow: 0 1rem 3rem rgba(0,0,0,.045); }
.faq h2 { max-width: 11ch; font-size: clamp(2.8rem,4.4vw,4.4rem); }

/* Section titles may use the full space; only the hero title stays deliberately compact. */
.intro h2,
.section-heading h2,
.results-heading h2,
.why-sticky h2,
.business h2,
.cta-band h2,
.contact-info h2,
.faq h2 { max-width: none; }

@media (min-width: 821px) {
  .intro-layout { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); grid-template-rows: auto auto; row-gap: clamp(1rem, 2vw, 2rem); align-items: start; }
  .intro-layout > div:first-child { grid-column: 1; grid-row: 1; max-width: none; }
  .intro-copy { grid-column: 1; grid-row: 2; align-self: start; padding-top: clamp(.5rem, 1.2vw, 1.25rem); }
  .intro-collage { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .intro h2,
  .section-heading h2,
  .results-heading h2,
  .why-sticky h2,
  .business h2,
  .cta-band h2,
  .contact-info h2,
  .faq h2 { font-size: clamp(2.8rem, 4.2vw, 4.75rem); }
}

.mobile-menu nav a { padding-block: .65rem; font-family: var(--display); font-size: clamp(1.8rem,6vh,3.4rem); font-weight: 600; letter-spacing: -.03em; transition: color .2s var(--ease); }
.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible,
.mobile-menu nav a:active,
.mobile-menu nav a.is-active { color: #f15a24; }
.mobile-menu nav span { display: none; }

.contact-island { position: fixed; bottom: 1.25rem; left: 50%; z-index: 999; display: flex; align-items: center; gap: .35rem; padding: .35rem; border: 1px solid rgba(20,21,19,.1); border-radius: 99rem; background: rgba(255,255,255,.94); box-shadow: 0 .85rem 2.4rem rgba(15,16,15,.2); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transform: translate(-50%, calc(100% + 1.75rem)); transition: opacity .35s var(--ease), transform .5s cubic-bezier(.2,.8,.2,1); }
.contact-island.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.contact-island a { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 1.05rem; border-radius: 99rem; font-size: .82rem; font-weight: 700; transition: transform .2s var(--ease), background .2s var(--ease); }
.contact-island a:hover { transform: translateY(-1px); }
.contact-island-offer { background: #f15a24; color: #fff; }
.contact-island-offer:hover { background: #d94716; color: #fff; }
.contact-island-phone { background: #171817; color: #fff; }
.contact-island-phone:hover { background: #30312e; color: #fff; }
.contact-island a svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.contact-island-offer svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.contact-island-phone svg { fill: currentColor; }
body.menu-open .contact-island { opacity: 0; transform: translate(-50%, calc(100% + 1.75rem)); }

.quote-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1.25rem; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
.quote-modal.is-open { visibility: visible; opacity: 1; }
.quote-modal-backdrop { position: absolute; inset: 0; background: rgba(11,12,11,.66); backdrop-filter: blur(8px); }
.quote-modal-panel { position: relative; width: min(100%, 47rem); max-height: min(48rem, calc(100svh - 2.5rem)); overflow: auto; padding: clamp(1.4rem,4vw,3rem); border-radius: 1rem; background: #fff; box-shadow: 0 1.5rem 5rem rgba(0,0,0,.32); transform: translateY(1rem) scale(.985); transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.quote-modal.is-open .quote-modal-panel { transform: translateY(0) scale(1); }
.quote-step-number { margin: 0; color: #f15a24; font-size: .68rem; font-weight: 600; letter-spacing: .09em; }
.quote-back { border: 0; background: transparent; color: #555752; font: inherit; font-size: .8rem; font-weight: 600; }
.quote-modal-progress { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: 0 0 clamp(2rem,5vw,3.5rem); }
.quote-modal-progress span { height: 3px; background: #dadbd6; transition: background .3s ease; }
.quote-modal-progress span.is-active { background: #f15a24; }
.quote-step { animation: quoteStepIn .32s ease both; }
.quote-step h2, .quote-success h2 { max-width: none; margin: .55rem 0 1rem; font-size: clamp(2.35rem,5vw,3.8rem); line-height: 1.03; letter-spacing: -.045em; }
.quote-step > p:not(.quote-step-number), .quote-success p { max-width: 39rem; margin: 0; color: #646660; font-size: 1rem; line-height: 1.6; }
.quote-service-options { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; margin: 2rem 0 1.1rem; padding: 0; border: 0; }
.quote-service-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quote-service-options label { position: relative; min-height: 4.5rem; display: grid; place-items: center; padding: .75rem; border: 1px solid #d9dad5; border-radius: .55rem; background: #fff; color: #232421; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.quote-service-options label:hover { transform: translateY(-1px); border-color: #f15a24; }
.quote-service-options input { position: absolute; opacity: 0; }
.quote-service-options input:checked + span { color: #fff; }
.quote-service-options label:has(input:checked) { border-color: #f15a24; background: #f15a24; color: #fff; }
.quote-service-options input:focus-visible + span { outline: 2px solid #171817; outline-offset: .35rem; }
.quote-modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quote-modal-fields label { display: grid; gap: .45rem; color: #353633; font-size: .76rem; font-weight: 600; }
.quote-modal-fields input, .quote-modal-fields textarea { width: 100%; min-height: 3.25rem; padding: .8rem .9rem; border: 1px solid #d7d8d3; border-radius: .45rem; outline: 0; background: #fff; color: #171817; font: inherit; font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease; }
.quote-modal-fields textarea { min-height: 6.5rem; resize: vertical; }
.quote-modal-fields input:focus, .quote-modal-fields textarea:focus { border-color: #f15a24; box-shadow: 0 0 0 3px rgba(241,90,36,.12); }
.quote-photo-upload { position: relative; place-content: center; min-height: 3.25rem; padding: .7rem .9rem; border: 1px dashed #f15a24; border-radius: .45rem; background: #fff; cursor: pointer; }
.quote-photo-upload small { display: block; margin-top: .15rem; color: #797b74; font-weight: 500; }
.quote-photo-upload input { position: absolute; inset: 0; width: 100%; min-height: 100%; opacity: 0; cursor: pointer; }
.quote-next, .quote-submit { min-height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; margin-top: 1.45rem; padding: 0 1.25rem; border: 0; border-radius: .45rem; background: #f15a24; color: #fff; font: inherit; font-size: .9rem; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.quote-next:hover, .quote-submit:hover { background: #d94716; transform: translateY(-1px); }
.quote-step-error { min-height: 1.1rem; margin: .8rem 0 0; color: #b42318; font-size: .78rem; font-weight: 600; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-privacy { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.15rem; color: #5f615b; font-size: .76rem; line-height: 1.5; }
.quote-privacy input { margin-top: .14rem; accent-color: #f15a24; }
.quote-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quote-success { padding: 2rem 0; animation: quoteStepIn .32s ease both; }
.quote-success > span { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: #f15a24; color: #fff; font-weight: 800; }
.quote-success .quote-back { margin-top: 1.5rem; color: #f15a24; }
body.quote-modal-open { overflow: hidden; }
@keyframes quoteStepIn { from { opacity: 0; transform: translateX(.75rem); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card-wide,
  .service-card-wide:nth-child(5) { grid-column: auto; }
  .service-card:last-child { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  :root { --section: clamp(4rem, 10vw, 5rem); }
  .site-header:not(.is-scrolled) { color: #fff; }
  .site-header:not(.is-scrolled) .menu-toggle { color: #fff; }
  .hero { min-height: 52rem; align-items: flex-end; padding: 8rem 0 10rem; color: #fff; }
  .hero-image { inset: 0; width: 100%; height: 100%; object-position: 59% center; }
  .hero-overlay { inset: 0; width: 100%; background: linear-gradient(0deg,rgba(15,16,15,.92) 5%,rgba(15,16,15,.48) 75%,rgba(15,16,15,.18)); }
  .hero-content > .eyebrow, .hero h1, .hero-bottom { width: 100%; }
  .hero h1 { max-width: none; font-size: clamp(2.75rem,8.6vw,4rem); }
  .hero h1 em { color: #fff; }
  .hero-copy { max-width: 38rem; color: rgba(255,255,255,.83); }
  .hero .button-ghost { border-color: #fff; background: #fff; color: #171817; }
  .hero .button-ghost:hover { border-color: #f0f0ec; background: #f0f0ec; color: #171817; }
  .hero .button:not(.button-ghost) { border-color: #f15a24; background: #f15a24; color: #fff; }
  .intro-layout { grid-template-columns: 1fr; }
  .section-heading,
  .results-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section-heading h2,
  .results-heading h2 { max-width: none; }
  .section-heading__subheading { max-width: 28ch; }
  .section-heading > p,
  .results-heading > p:last-child { max-width: 34rem; }
  .sustainability-band { padding-block: clamp(4.75rem, 12vw, 6rem); }
  .sustainability-band::after { top: auto; width: 100%; height: 52%; clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%); }
  .sustainability-band__layout { grid-template-columns: 1fr; gap: 2.75rem; }
  .sustainability-band h2 { max-width: none; }
  .sustainability-band__mark { left: -10rem; bottom: -8rem; width: 33rem; }
  .why-layout { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  :root { --announcement-height: 2rem; --section: 3.5rem; }
  .site-header { top: var(--announcement-height); }
  .site-header { height: 4.05rem; }
  .site-header.is-scrolled { height: 3.7rem; }
  .brand-logo { width: 7rem; }
  .contact-island { right: var(--gutter); bottom: 1rem; left: var(--gutter); justify-content: space-between; transform: translateY(calc(100% + 1.5rem)); }
  .contact-island.is-visible { transform: translateY(0); }
  .contact-island a { flex: 1; padding: 0 .85rem; }
  body.menu-open .contact-island { transform: translateY(calc(100% + 1.5rem)); }
  .quote-modal { padding: .7rem; }
  .quote-modal-panel { max-height: calc(100svh - 1.4rem); padding: 1.25rem; border-radius: .75rem; }
  .quote-modal-progress { margin: 0 0 2rem; }
  .quote-service-options { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
  .quote-service-options label { min-height: 3.8rem; }
  .quote-modal-fields { grid-template-columns: 1fr; }
  .quote-field-wide { grid-column: auto; }
  .hero { min-height: 49rem; padding-bottom: 9rem; }
  .hero h1 { font-size: clamp(2.55rem,9vw,3.35rem); line-height: 1.04; }
  .trust-strip span:nth-child(n+3) { display: block; }
  .section-heading,
  .results-heading { gap: .9rem; }
  body[data-page="home"] .services .section-heading { margin-bottom: 1.5rem; }
  .section-heading h2,
  .results-heading h2 { font-size: clamp(2.25rem,9.7vw,2.9rem); line-height: 1.1; }
  .section-heading > p,
  .results-heading > p:last-child { font-size: .98rem; line-height: 1.55; }
  .sustainability-band { padding-block: 4.5rem; }
  .sustainability-band h2 { max-width: none; font-size: clamp(2.3rem, 10.2vw, 3rem); }
  .sustainability-band__copy > p:not(.eyebrow) { font-size: 1rem; }
  .sustainability-band__mark { left: -8rem; bottom: -6rem; width: 26rem; }
  .sustainability-band__principles { margin-right: -.25rem; }
  .why-list li { grid-template-columns: 2.75rem 1fr; gap: .75rem; }
  .why-icon { width: 1.75rem; height: 1.75rem; }
  .service-grid {
    display: flex;
    gap: .9rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: .75rem var(--gutter) 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card-wide,
  .service-card-wide:nth-child(5),
  .service-card:last-child {
    min-height: 28rem;
    flex: 0 0 min(88vw, 23rem);
    grid-column: auto;
    opacity: .55;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .service-card.is-current { box-shadow: 0 .9rem 2.2rem rgba(29,30,28,.12); opacity: 1; transform: none; }
  .service-carousel-dots { display: flex; justify-content: center; gap: .45rem; margin-top: -.5rem; }
  .service-carousel-dots button { width: .42rem; height: .42rem; margin: 0; padding: 0; border: 0; border-radius: 99px; background: #b7b8b2; transition: width .3s var(--ease), background .3s var(--ease); }
  .service-carousel-dots button[aria-current="true"] { width: 1.4rem; background: #f15a24; }
  .process-list {
    display: flex;
    gap: .9rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 1.25rem var(--gutter) 2.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .process-list::-webkit-scrollbar { display: none; }
  .process-list::before { display: none; }
  .process-list li {
    min-height: 14rem;
    flex: 0 0 min(84vw, 20rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    border: 1px solid #e3e4df;
    border-radius: var(--radius);
    background: #fff;
    opacity: .52;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  }
  .process-list li::before { display: none; }
  .process-list li.is-current { border-color: #f15a24; box-shadow: 0 .9rem 2.2rem rgba(29,30,28,.1); opacity: 1; transform: translateY(-.2rem); }
  .process-list li span { position: absolute; top: 1.5rem; left: 1.65rem; display: block; margin: 0; color: #f15a24; font-size: .72rem; letter-spacing: .08em; }
  .process-list li h3 { margin: 0 0 .7rem; }
  .process-list li p { margin: 0; }
  .process-progress { --progress: 0%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; margin-top: -.5rem; padding: 0 var(--gutter); color: #777972; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
  .process-progress-current { color: #f15a24; }
  .process-progress-line { height: 2px; overflow: hidden; background: #d9dad5; }
  .process-progress-line i { display: block; width: var(--progress); height: 100%; background: #f15a24; transition: width .35s var(--ease); }
  .business h2, .cta-band h2, .contact-info h2, .faq h2 { font-size: clamp(2.5rem,11vw,3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation-play-state: paused; }
  .process-list { scroll-behavior: auto; }
  .process-list li { transition: none; }
  .intro-collage > * { opacity: 1; transform: none; }
}

@media (min-width: 1600px) {
  .hero h1 { font-size: clamp(3.45rem,3.15vw,4.5rem); }
}

/* Homepage hero: the Sirvion mark is the visual layer, not a separate card. */
.home-hero {
  position: relative;
  min-height: max(47rem, 100svh);
  display: flex;
  align-items: stretch;
  padding: calc(var(--announcement-height) + 5.2rem) 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: #171817;
}
.home-hero__mark {
  position: absolute;
  top: clamp(-15rem, -10vw, -6rem);
  right: clamp(-18rem, -10vw, -4rem);
  z-index: 0;
  width: clamp(34rem, 72vw, 78rem);
  max-width: none;
  height: auto;
  opacity: .095;
  pointer-events: none;
  user-select: none;
}
.home-hero__layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(max(47rem, 100svh) - var(--announcement-height) - 5.2rem);
}
.home-hero__content { position: relative; z-index: 1; width: min(100%, 42rem); min-width: 0; padding: clamp(3.5rem, 7vh, 6rem) 0; }
.home-hero h1 { width: 100%; max-width: none; margin: 0; color: #171817; font-size: clamp(3.15rem, 4.45vw, 5.2rem); font-weight: 550; letter-spacing: -.055em; line-height: .98; text-wrap: pretty; }
.home-hero h1 em { color: #f15a24; font-style: normal; }
.home-hero__intro { max-width: 37rem; margin: 1.8rem 0 0; color: #62655f; font-size: clamp(1rem, 1.22vw, 1.17rem); line-height: 1.62; }
.home-hero__actions { display: flex; width: min(100%, 37rem); gap: .7rem; margin-top: 2.2rem; }
.home-hero__action { flex: 1 1 0; width: auto; min-height: 3.55rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.8rem; padding: 0 1.25rem; border: 0; border-radius: 999px; background: #f0f1ed; color: #171817; font-size: .84rem; font-weight: 650; line-height: 1; transition: background .22s ease, color .22s ease, transform .22s ease; }
.home-hero__action svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.home-hero__action--primary { background: #f15a24; color: #fff; }
.home-hero__action:hover { background: #f15a24; transform: translateY(-2px); }
.home-hero__action--primary:hover { background: #d94716; color: #fff; }
.home-hero__action--secondary:hover, .home-hero__action--secondary:focus-visible { background: #dedfda; color: #171817; }

@media (max-width: 820px) {
  .home-hero { min-height: max(41rem, 72svh); padding: calc(var(--announcement-height) + 4rem) 0 3rem; }
  .home-hero__mark { top: 2rem; right: clamp(-13rem, -16vw, -4rem); width: clamp(25rem, 112vw, 42rem); opacity: .09; }
  .home-hero__layout { min-height: auto; }
  .home-hero__content { padding: 3.6rem 0 1.4rem; }
  .home-hero h1 { max-width: none; font-size: clamp(3rem, 10.5vw, 4.6rem); }
}

@media (max-width: 580px) {
  .home-hero { padding: calc(var(--announcement-height) + 3.7rem) 0 2.5rem; }
  .home-hero__mark { top: 3.5rem; right: -10rem; width: 31rem; opacity: .085; }
  .home-hero__content { padding: 2.9rem 0 1rem; }
  .home-hero h1 { max-width: none; font-size: clamp(2.75rem, 12vw, 3.9rem); line-height: 1; }
  .home-hero__intro { margin-top: 1.4rem; font-size: .98rem; }
  .home-hero__actions { display: flex; width: 100%; margin-top: 1.7rem; }
  .home-hero__action { width: auto; }
}

/* Eén consistente display-schaal voor alle grote sectietitels. */
main h2 {
  font-family: var(--display);
  font-size: 2rem !important;
  font-weight: 550 !important;
  letter-spacing: -.055em;
  line-height: 1.1;
}

@media (max-width: 820px) {
  main h2 { font-size: 2rem !important; }
}

@media (max-width: 580px) {
  main h2 { font-size: 2rem !important; line-height: 1.1; }
}

/* Dienstencards blijven visueel stabiel; alleen de inhoud mag rustig infaden. */
.service-card.reveal,
.service-card.reveal.is-visible,
.service-card.is-current {
  transform: none;
}
.service-card.reveal { transition: opacity .35s var(--ease), box-shadow .35s var(--ease); }

/* Zakelijke doelgroepen als heldere, zelfstandige kaarten. */
.business ul {
  max-width: 46rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 2rem 0 2.25rem;
}
.business li {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .55rem;
  background: #ff7544;
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 550;
  line-height: 1.15;
}
.business-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.business-icon svg { width: 1.2rem; height: 1.2rem; }
.business li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.business li::before { display: none; content: none; }

/* Diensten: één heldere kaart met beeld boven en informatie eronder. */
.service-grid { align-items: start; }
.service-card,
.service-card:nth-child(2),
.service-card:nth-child(4),
.service-card-wide,
.service-card-wide:nth-child(5),
.service-card:last-child {
  min-height: 0;
  height: auto;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  color: #171817;
}
.service-card::after { display: none; }
.service-card img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: none;
}
.service-card:hover img { transform: none; }

/* Alle primaire acties delen de ronde, herkenbare hero-vorm. */
.button,
.text-link,
.service-content a,
.quote-next,
.quote-submit,
.quote-service-options label,
.choice-field label span {
  border-radius: 999px;
}
.service-content,
.service-card-dark .service-content {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: block;
  width: 100%;
  padding: 1.4rem 1.5rem 1.5rem;
  background: #fff;
  color: #171817;
}
.service-content > span { display: none; }
.service-content h3 { margin: 0 0 .55rem; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.service-content p,
.service-card-dark .service-content p { margin: 0 0 1.15rem; color: #656761; font-size: .92rem; line-height: 1.5; }
.service-usps {
  display: grid;
  gap: .38rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.service-usps li {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  color: #40423e;
  font-size: .77rem;
  line-height: 1.3;
}
.service-usps li::before {
  flex: 0 0 auto;
  color: #f15a24;
  content: "+";
  font-size: 1rem;
  font-weight: 600;
  line-height: .8;
}
.service-content a,
.service-card-dark .service-content a {
  width: fit-content;
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  padding: .72rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #f15a24;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.service-content a:hover,
.service-card-dark .service-content a:hover { border: 0; background: #d94716; color: #fff; }
.service-content a b.sv-icon-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 0;
}
.service-content a b.sv-icon-arrow .sv-icon-arrow {
  display: block;
  color: inherit;
  stroke: currentColor;
}
.service-card-dark .service-graphic { display: none; }

.footer-logo { display: inline-block; width: 10.5rem; }
.footer-logo img { display: block; width: 100%; height: auto; }

/* De oude inline offerteflow is vervangen door de fullscreen aanvraagmodal. */
section.contact#offerte { display: none; }

/* Desktop: compacte kaarten lijnen per rij uit, maar groeien mee met hun inhoud. */
@media (min-width: 821px) {
  .service-grid { align-items: stretch; }
  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card-wide,
  .service-card-wide:nth-child(5),
  .service-card:last-child {
    height: auto;
    min-height: 25.5rem;
    align-self: stretch;
    grid-template-rows: 11.75rem auto;
  }
  .service-card img {
    height: 11.75rem;
    aspect-ratio: auto;
  }
  .service-content,
  .service-card-dark .service-content { padding: 1.2rem 1.35rem 1.3rem; }
  .service-content p,
  .service-card-dark .service-content p { margin-bottom: .9rem; }
  .service-usps { margin-bottom: .95rem; }
}

/* Werkwijze: compacte, inhoudelijke illustraties per stap. */
.process-card-image {
  width: 4.15rem;
  height: 4.15rem;
  display: block;
  margin: .9rem 0 1rem;
  object-fit: contain;
}

/* Ervaringen: rustige reviewkaarten die op elk scherm horizontaal te verkennen zijn. */
.review-carousel { position: relative; }
.review-grid {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: .65rem 0 1.5rem;
  overflow-x: auto;
  border: 0;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.review-grid::-webkit-scrollbar { display: none; }
.review-grid blockquote,
.review-grid blockquote:last-child {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-height: 18.5rem;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.45rem;
  border: 1px solid #dedfda;
  border-radius: .7rem;
  background: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.review-grid blockquote > .review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  color: #171817;
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: 0;
}
.review-name { color: #171817; font-family: var(--body); font-weight: 600; line-height: 1.25; }
.review-person {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.review-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1.5px solid #f15a24;
  border-radius: 50%;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.review-avatar--1 { background: #2e6b56; }
.review-avatar--2 { background: #506d8e; }
.review-avatar--3 { background: #a45a3c; }
.review-avatar--4 { background: #6b5d91; }
.review-avatar--5 { background: #77704b; }
.review-avatar--6 { background: #3d7b7a; }
.review-person img {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border: 1.5px solid #f15a24;
  border-radius: 50%;
  object-fit: cover;
}
.review-grid footer {
  display: grid;
  gap: .16rem;
  margin: 0;
  color: #171817;
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: 0;
  line-height: 1.25;
}
.review-grid footer strong { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.review-grid footer span { color: #73756f; font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.review-stars {
  flex: 0 0 auto;
  color: #f15a24;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}
.review-stars.floating-stars { gap: .08rem; }
.review-stars.floating-stars svg { width: .78rem; height: .78rem; fill: currentColor; color: inherit; }
.review-grid blockquote > p {
  margin: 1.35rem 0 0;
  color: #363834;
  font-family: var(--body);
  font-size: clamp(.92rem, 1.05vw, 1.04rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}
.review-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
}
.review-carousel-dots button {
  width: .42rem;
  height: .42rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7b8b2;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.review-carousel-dots button[aria-current="true"] { width: 1.4rem; background: #f15a24; }

@media (max-width: 820px) {
  .review-grid {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .review-grid blockquote,
  .review-grid blockquote:last-child { flex-basis: min(79vw, 21rem); min-height: 14.5rem; }
}

@media (max-width: 580px) {
  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card-wide,
  .service-card-wide:nth-child(5),
  .service-card:last-child {
    min-height: 0;
    grid-template-rows: auto auto;
  }
  .service-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .process-card-image {
    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
    width: 3.7rem;
    height: 3.7rem;
    margin: 0;
  }
}

/* Service cards: keep the image inside the card with a quiet inset so the
   cards stay compact and the photography has room to breathe. */
body[data-page="home"] .service-card,
.service-card:nth-child(2),
.service-card:nth-child(4),
.service-card-wide,
.service-card-wide:nth-child(5),
.service-card:last-child {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
  padding: .7rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .45rem 1.4rem rgba(23, 24, 23, .08);
}

.service-card img {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: .65rem;
  object-fit: cover;
  transform: none;
}

.service-card:hover img {
  transform: none;
}

.service-content,
.service-card-dark .service-content {
  flex: 1 1 auto;
  width: 100%;
  padding: .2rem .45rem .35rem;
}

.service-content h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.35rem, 1.75vw, 1.7rem);
}

.service-content p,
.service-card-dark .service-content p {
  margin-bottom: .85rem;
  font-size: .88rem;
}

.service-usps {
  gap: .3rem;
  margin-bottom: .95rem;
}

.service-usps li {
  font-size: .75rem;
}

.service-content a,
.service-card-dark .service-content a {
  min-height: 2.65rem;
  padding: .65rem .9rem;
  font-size: .76rem;
}

@media (max-width: 580px) {
  body[data-page="home"] .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card-wide,
  .service-card-wide:nth-child(5),
  .service-card:last-child {
    min-height: 0;
    flex-basis: min(86vw, 22.5rem);
  }

  .service-card img {
    aspect-ratio: 16 / 9;
  }

  .service-content,
  .service-card-dark .service-content {
    padding: .15rem .35rem .3rem;
  }

  .service-content h3 {
    font-size: 1.55rem;
  }
}

/* Desktop service carousel: show a calm selection of cards and keep the
   remaining services one measured swipe or click away. */
.home-service-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .2rem;
}

.home-service-carousel-controls {
  display: flex;
  gap: .45rem;
}

.home-service-carousel-control {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}

.home-service-carousel-control .sv-icon-arrow,
.home-service-carousel-control .sv-icon-arrow-left {
  width: 1.1rem;
  height: 1.1rem;
}

.home-service-carousel-control:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.home-service-carousel-control:disabled {
  cursor: default;
  opacity: .35;
}

@media (min-width: 821px) {
  body[data-page="home"] .service-grid {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: .5rem .25rem 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="home"] .service-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .service-grid .service-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    grid-column: auto;
    scroll-snap-align: start;
  }

  body[data-page="home"] .service-carousel-dots {
    display: flex;
    align-items: center;
    gap: .45rem;
  }

  body[data-page="home"] .service-carousel-dots button {
    width: .42rem;
    height: .42rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #b7b8b2;
    cursor: pointer;
    transition: width .3s var(--ease), background .3s var(--ease);
  }

  body[data-page="home"] .service-carousel-dots button[aria-current="true"] {
    width: 1.4rem;
    background: var(--orange, #f15a24);
  }
}

@media (max-width: 820px) {
  .home-service-carousel-footer {
    justify-content: center;
  }

  .home-service-carousel-controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .service-grid {
    scroll-behavior: auto;
  }
}
