/* Shared chrome — matches website/index.php brand language */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: "Elms Sans", system-ui, sans-serif;
    color: #16131C;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-header { transition: none; }
.header-logo { transition: filter 0.3s ease; }
.header-pad { position: relative; padding: 0.7rem 0.85rem 0.55rem; }
@media (min-width: 640px) { .header-pad { padding: 0.85rem 1.25rem 0.65rem; } }
/* Identical to index.php: floating glass pill */
.header-glass {
    position: relative; isolation: isolate; overflow: hidden; transform: translateZ(0);
    max-width: 80rem; margin: 0 auto; border-radius: 999px;
    background: linear-gradient(165deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.22) 42%, rgba(240,235,245,.36) 100%);
    backdrop-filter: blur(22px) saturate(1.85); -webkit-backdrop-filter: blur(22px) saturate(1.85);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 10px 36px rgba(78,44,104,.10), 0 1px 0 rgba(255,255,255,.82) inset, 0 -1px 0 rgba(103,58,137,.07) inset;
    transition: border-radius .4s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background .35s ease;
}
.header-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.06) 40%, transparent 58%), radial-gradient(90% 70% at 8% -20%, rgba(255,255,255,.7), transparent 52%); }
.header-glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.glass-sheen { position: absolute; top: -20%; bottom: -20%; width: 38%; left: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); transform: translateX(-130%) skewX(-18deg); animation: glass-sheen 8s ease-in-out infinite; }
@keyframes glass-sheen { 0%,18% { transform: translateX(-130%) skewX(-18deg); opacity: 0; } 32% { opacity: .45; } 48%,100% { transform: translateX(280%) skewX(-18deg); opacity: 0; } }
.header-bar { position: relative; z-index: 2; }
.site-header.is-scrolled .header-glass {
    background: linear-gradient(165deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.38) 48%, rgba(240,235,245,.48) 100%);
    box-shadow: 0 14px 40px rgba(78,44,104,.13), 0 1px 0 rgba(255,255,255,.88) inset, 0 -1px 0 rgba(103,58,137,.08) inset; }
@media (prefers-reduced-motion: reduce) { .glass-sheen { animation: none; display: none; } }

.nav-link { position: relative; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px; background: #673A89; transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22,1,.36,1); }
.nav-link:hover, .nav-link.is-active { color: #673A89; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.brand-logo { transition: opacity .25s ease, transform .25s ease; }
.brand-logo:hover { opacity: .85; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.btn i { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.btn:hover { transform: translateY(-2px); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #673A89; color: #fff; }
.btn-primary:hover { background: #4E2C68; box-shadow: 0 10px 24px rgba(103,58,137,.22); }
.btn-secondary { border: 1px solid #E8E2EF; background: rgba(255,255,255,.92); color: #16131C; }
.btn-secondary:hover { border-color: rgba(103,58,137,.4); box-shadow: 0 8px 20px rgba(22,19,28,.06); }
.btn-on-purple { background: #fff; color: #673A89; }
.btn-on-purple:hover { background: #F0EBF5; box-shadow: 0 10px 24px rgba(22,19,28,.12); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.footer-link { transition: color .2s ease; }
.footer-link:hover { color: #fff; }

/* Mobile menu: floating glass panel under the pill, like index */
#menu-scrim { display: none; position: fixed; inset: 0; z-index: 40; background: transparent; }
#menu-scrim.is-on { display: block; }
#mobile-menu { position: absolute; left: .85rem; right: .85rem; top: calc(100% - .2rem); z-index: 55; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 1.35rem; margin: 0; padding: 0;
    background: linear-gradient(165deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 42%, rgba(240,235,245,.78) 100%);
    backdrop-filter: blur(22px) saturate(1.85); -webkit-backdrop-filter: blur(22px) saturate(1.85);
    border: 1px solid rgba(255,255,255,.62); box-shadow: 0 16px 40px rgba(78,44,104,.14), 0 1px 0 rgba(255,255,255,.82) inset; }
#mobile-menu[hidden] { display: none; }
@media (min-width: 640px) { #mobile-menu { left: 1.25rem; right: 1.25rem; } }
.mobile-link { transition: color .2s ease, padding-left .2s ease; }
.mobile-link:hover { color: #673A89; padding-left: .35rem; }
.prose-asv p { margin: 0 0 1.1rem; color: #4A4454; line-height: 1.7; }
.prose-asv ul { margin: 0 0 1.1rem; padding-left: 1.15rem; color: #4A4454; }
.prose-asv li { margin: 0.35rem 0; line-height: 1.6; }
.prose-asv a { color: #673A89; text-decoration: underline; }
.page-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}
.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 42%, rgba(255,255,255,0.55) 68%, rgba(255,255,255,0.2) 100%);
}
@media (max-width: 1023px) {
    .page-hero-media::after {
        background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.88) 50%, rgba(255,255,255,0.92) 100%);
    }
}

/* Over dark sections: logo + controls turn white, same as index */
.site-header.is-over-dark .header-logo { filter: brightness(0) invert(1); }
.site-header.is-over-dark #menu-toggle { color: #fff; }
.site-header.is-over-dark .header-glass { background: linear-gradient(165deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.1) 100%); border-color: rgba(255,255,255,.22); }
.site-header.is-over-dark .nav-link { color: rgba(255,255,255,.88); }
.site-header.is-over-dark .nav-link:hover, .site-header.is-over-dark .nav-link.is-active { color: #fff; }
.site-header.is-over-dark .nav-link::after { background: #fff; }

/* Header Contact button: square at top, pill once the page is scrolled */
.site-header nav .btn-primary { border-radius: 0; transition: border-radius .4s cubic-bezier(.22,1,.36,1), background-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.site-header.is-scrolled nav .btn-primary { border-radius: 999px; padding-left: 1.2rem; padding-right: 1.2rem; }

/* Utility bar: contact strip above the header, scrolls away; the fixed header starts below it (see header script). */
:root { --utility-h: 2rem; }
@media (min-width: 640px) { :root { --utility-h: 2.25rem; } }
section.bg-asv-purple { background-color: #3F2254; }
.utility-bar { position: relative; z-index: 51; height: var(--utility-h); background: #673A89; color: #fff; font-size: 11px; letter-spacing: .02em; }
@media (min-width: 640px) { .utility-bar { font-size: 12px; } }
.utility-bar__in { max-width: 80rem; height: 100%; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
@media (min-width: 640px) { .utility-bar__in { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .utility-bar__in { padding: 0 2rem; } }
.utility-bar__contact { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; margin: 0; opacity: .95; white-space: nowrap; overflow: hidden; }
.utility-bar__contact a, .utility-bar__city { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: inherit; text-decoration: none; }
.utility-bar__contact a:hover { text-decoration: underline; }
.utility-bar__contact a span, .utility-bar__city span { overflow: hidden; text-overflow: ellipsis; }
.utility-bar__contact i { font-size: 10px; opacity: .9; flex: none; }
.utility-bar__dot { opacity: .5; flex: none; }
.utility-bar__tagline { display: none; margin: 0; font-weight: 500; opacity: .9; white-space: nowrap; }
@media (max-width: 639px) { .utility-bar__city, .utility-bar__dot--city { display: none; } }
@media (min-width: 768px) { .utility-bar__tagline { display: block; } }
/* Fixed header sits under the bar at the top of the page */
body:has(> .utility-bar) #site-header { top: var(--utility-h); }
/* Pages with a fixed header: push the first screen down by the bar height */
body:has(> .utility-bar) > main:not(#main) { padding-top: calc(5.5rem + var(--utility-h)); }
@media (min-width: 640px) { body:has(> .utility-bar) > main:not(#main) { padding-top: calc(6rem + var(--utility-h)); } }
.svc:has(> .utility-bar) .svc-hero__main { padding-top: calc(8.5rem + var(--utility-h)); }
/* About page: its hero carries the header offset itself */
.ab:has(> .utility-bar) > main { padding-top: 0; }
.ab:has(> .utility-bar) .ab-hero { padding-top: calc(8.5rem + var(--utility-h)); }
@media (min-width: 1024px) { .ab:has(> .utility-bar) .ab-hero { padding-top: calc(10rem + var(--utility-h)); } }
