/* Shared scaffolding for the dedicated service pages.
   Every page redefines the custom properties below to build its own environment. */

.svc {
    --bg: #fff;
    --fg: #16131C;
    --muted: #4A4454;
    --line: #E8E2EF;
    --accent: #673A89;
    --accent-ink: #4E2C68;
    --on-accent: #fff;
    --card: #fff;
    --radius: 0;
    background: var(--bg);
    color: var(--fg);
}
.svc main { overflow-x: clip; }
:where(.svc) :is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(.svc) :is(ul, ol) { padding: 0; list-style: none; }
.svc :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.svc-w {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) { .svc-w { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .svc-w { padding-inline: 2rem; } }

.svc-sec { padding-block: 4rem; position: relative; }
@media (min-width: 1024px) { .svc-sec { padding-block: 6rem; } }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 40rem; }
.body-copy p { color: var(--muted); line-height: 1.72; max-width: 42rem; }
.body-copy p + p { margin-top: 1rem; }

/* Buttons */
.sb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sb__arrow { flex: none; transition: transform 0.25s ease; }
.sb:hover .sb__arrow { transform: translateX(3px); }
.sb--solid { background: var(--accent); color: var(--on-accent); }
.sb--solid:hover { background: var(--accent-ink); }
.sb--ghost { border-color: color-mix(in srgb, var(--fg) 22%, transparent); color: var(--fg); }
.sb--ghost:hover { border-color: var(--accent); color: var(--accent); }
.sb-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Reveal on scroll (only when JS is present) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { position: relative; flex: none; width: 14px; height: 14px; }
.faq__mark::before, .faq__mark::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1.5px;
    background: var(--accent);
    transition: transform 0.3s ease;
}
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0); }
.faq__a { padding: 0 2.5rem 1.4rem 0; }
.faq__a p { color: var(--muted); line-height: 1.7; max-width: 44rem; }

/* Related services */
.more { margin-top: 3rem; }
.more__h { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.more ul { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .more ul { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.more a { display: block; background: var(--bg); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; transition: background-color 0.25s ease; }
.more a:hover { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.more strong { display: block; font-size: 0.98rem; margin-bottom: 0.3rem; }
.more span { font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.svc-note { font-size: 0.82rem; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .svc *, .svc *::before, .svc *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Buttons for dark / purple bands */
.sb--onpurple { background: #fff; color: #4E2C68; }
.sb--onpurple:hover { background: #F0EBF5; }
.sb--outlight { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.sb--outlight:hover { background: rgba(255, 255, 255, 0.1); }

/* Dark pages: keep the shared header crisp instead of muddy grey */

/* Full-height hero with a facts strip, shared by every service page */
.svc .svc-hero { min-height: 100svh; padding: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; position: relative; overflow: hidden; }
.svc-hero__main { flex: 1; display: flex; align-items: center; padding: 7.5rem 0 3.5rem; position: relative; z-index: 1; }
.svc-hero__main > .svc-w { position: relative; z-index: 1; }
.hero-strip { position: relative; z-index: 2; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); }
.hero-strip dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 800px) { .hero-strip dl { grid-template-columns: repeat(4, 1fr); } }
.hero-strip dl > div { padding: 1.15rem 1rem 1.25rem 0; border-left: 0; animation: strip-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.9s + var(--i) * 110ms); }
@media (min-width: 800px) { .hero-strip dl > div { padding-left: 1.4rem; border-left: 1px solid var(--line); } .hero-strip dl > div:first-child { padding-left: 0; border-left: 0; } }
.hero-strip dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.hero-strip dd { margin: 0; font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
@keyframes strip-in { from { opacity: 0; transform: translateY(14px); } }

/* Headline words rise from a mask */
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hw > span { display: inline-block; transform: translateY(112%); animation: hw-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--w) * 55ms + 100ms); }
@keyframes hw-in { to { transform: none; } }

/* Hero container must fill the row, not shrink to its content */
.svc-hero__main > .svc-w { flex: 1 1 100%; min-width: 0; box-sizing: border-box; }

/* Photographs (assets/photos). Pages set --photo-radius; default square. */
.svc { --photo-radius: 0; }
.svc-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--photo-radius); background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.svc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-photo--band { aspect-ratio: 21 / 9; }
.svc-photo--inline { aspect-ratio: 3 / 2; max-width: 42rem; margin-top: 2.2rem; }
.svc-photo--col { aspect-ratio: 4 / 5; max-width: 30rem; }
.svc-photo--tile { aspect-ratio: 4 / 3; }
.svc-sec.svc-band { padding-block: 0; }
.svc-sec.svc-band + .svc-sec { padding-top: 4rem; }
@media (max-width: 700px) { .svc-photo--band { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .svc-sec.svc-band + .svc-sec { padding-top: 6rem; } }

.svc-gallery { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 760px) {
    .svc-gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
    .svc-gallery .svc-photo { aspect-ratio: auto; height: 100%; min-height: 14rem; }
    .svc-gallery .svc-photo:first-child { grid-row: 1 / span 2; }
}
.svc .svc-photo img { transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc .svc-photo:hover img { transform: scale(1.03); }
