:root {
    --purple: #66376e;
    --purple-dark: #4a2551;
    --orange: #e0953f;
    --ink: #1c1c1f;
    --muted: #4a4a52;
    --tint: #f6f1f7;
    --line: #ddd3df;
    --radius: 12px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.3125rem;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .75rem; color: var(--purple-dark); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.wrap { width: min(100% - 2rem, 90rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 54rem); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    padding: .75rem 1rem;
    background: var(--purple-dark);
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
}
.skip-link:focus { top: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 4px solid var(--purple);
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .6rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    color: var(--purple-dark);
    text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav a {
    display: inline-block;
    padding: .5rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.nav a:hover { color: var(--purple); text-decoration: underline; }

/* nav: inline on desktop, sidebar (popover) on mobile */
.menu-btn, .drawer__close { display: none; }
@media (min-width: 900px) {
    .drawer { display: block; position: static; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: auto; height: auto; inset: auto; }
}

/* hamburger / close icons drawn in CSS */
.icon, .icon::before, .icon::after {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--purple-dark);
    border-radius: 2px;
}
.icon { position: relative; }
.icon::before, .icon::after { content: ""; position: absolute; left: 0; }
.icon::before { top: -8px; }
.icon::after { top: 8px; }
.icon--x { background: transparent; }
.icon--x::before { top: 0; transform: rotate(45deg); }
.icon--x::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
    html { scroll-padding-top: 5rem; }
    body { font-size: 1.1875rem; line-height: 1.6; }

    .site-header__inner { flex-wrap: nowrap; }
    .brand { font-size: 1rem; }
    .brand img { width: 36px; height: 36px; }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        color: var(--purple-dark);
        background: #fff;
        border: 2px solid var(--purple);
        border-radius: var(--radius);
        cursor: pointer;
    }
    .menu-btn:hover { background: var(--tint); }

    .drawer {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(80vw, 20rem);
        height: 100dvh;
        margin: 0;
        padding: 4.5rem 1.5rem 1.5rem;
        border: 0;
        background: #fff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
        overflow-y: auto;
    }
    .drawer::backdrop { background: rgba(28, 28, 31, .5); }
    .drawer .nav { flex-direction: column; gap: 0; }
    .drawer .nav a { display: block; padding: 1rem 0; font-size: 1.3rem; border-bottom: 1px solid var(--line); }
    .drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        padding: 0;
        color: var(--purple-dark);
        background: transparent;
        border: 2px solid var(--purple);
        border-radius: var(--radius);
        cursor: pointer;
    }

    .hide-sm { display: none; }
    .actions .btn { width: 100%; text-align: center; padding-inline: 1rem; }
    .hero__lead { font-size: 1.35rem; }
    .card .btn { display: block; text-align: center; }
    .card .link { display: inline-block; margin: 1rem 0 0; }
}

/* buttons */
.btn {
    display: inline-block;
    padding: .85rem 1.4rem;
    min-height: 44px;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--purple);
    border-radius: var(--radius);
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }
.btn--small { padding: .55rem 1rem; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--purple-dark); }
.btn--ghost:hover { background: var(--tint); color: var(--purple-dark); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* hero */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1fr 1fr; }
}
.eyebrow {
    margin: 0 0 .5rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .95rem;
    color: var(--muted);
}
.hero__lead { font-size: 1.6rem; max-width: 34ch; color: var(--ink); }

/* sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--tint); }
.section__lead { color: var(--muted); max-width: 60ch; margin-bottom: 1.75rem; }
.group { margin: 2rem 0 1rem; color: var(--muted); }

.cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) {
    .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
}
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: .35rem; }
.card address { font-style: normal; margin-bottom: 1rem; }
.card .link { margin-left: 1rem; }
.card--rate { border-top-color: var(--purple); }
.rate {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--purple);
}

/* management */
.management { display: grid; gap: 2rem; align-items: start; }
.management img { width: 100%; max-width: 320px; border-radius: var(--radius); }
.management ul { padding-left: 1.2rem; }
@media (min-width: 800px) {
    .management { grid-template-columns: 320px 1fr; }
}
.management > div { max-width: 46rem; }

/* footer */
.site-footer {
    background: var(--purple-dark);
    color: #fff;
    padding-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; }
.h6 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 700px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: 1rem;
}
.site-footer__bottom p { margin: 0; }

/* short viewports (landscape phones, high zoom): don't let the sticky header eat the screen */
@media (max-height: 500px) {
    .site-header { position: static; }
    html { scroll-padding-top: 1rem; }
}
