@font-face {
    font-family: "DM Sans";
    src: url("dm-sans-latin.woff2") format("woff2");
    font-weight: 100 1000;
    font-display: swap;
}
@font-face {
    font-family: Lora;
    src: url("lora-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
:root {
    --blue: #274f7f;
    --ink: #233854;
    --pink: #ee315d;
    --pink-dark: #b91e47;
    --heading-font: Lora, Georgia, serif;
    font: 16px/1.6 "DM Sans", Arial, sans-serif;
    color: #484e57;
    background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
main :is(h1, h2, h3), .service-card strong { font-family: var(--heading-font); font-weight: 650; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #ffb34b; outline-offset: 3px; }
.wrap { max-width: 1170px; margin: auto; padding-inline: 22px; }
.top { background: #f4f5f7; font-size: .85rem; }
.top .wrap { display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding-block: 7px; }
.top a { color: var(--pink-dark); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.payment-form { margin: 0; }
.top .payment-form .button { padding: 3px 10px; font-size: .8rem; }
.header { background: white; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: block; max-width: 100%; }
.brand img { display: block; max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav a { padding: 9px; color: var(--ink); font-size: .79rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current] { color: var(--pink-dark); }
.hero, .page-banner { color: white; background-color: var(--ink); background-size: cover; background-position: center; }
.hero {
    display: grid;
    align-items: center;
    min-height: 480px;
    padding-block: 70px;
    background-image: url("hero.png");
}
.hero .wrap { width: 100%; }
.hero h1, .hero p { text-shadow: 0 1px 4px #000, 0 2px 10px #000; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.15; }
.hero p { max-width: 570px; margin: 18px 0 24px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 11px 20px; border: 1px solid transparent; background: var(--pink-dark); color: white; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover { background: #951337; color: white; }
.button-outline { border-color: var(--ink); background: white; color: var(--ink); }
.service-band { background: var(--pink); }
.service-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-links a { display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 18px 22px; background: var(--pink-dark); color: white; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.service-links a:nth-child(even) { background: #a81d42; }
.service-links a:hover { background: #8c1736; }
.service-links img { flex: none; box-sizing: content-box; padding: 5px; border-radius: 5px; background: white; }
.section { padding-block: 56px; }
.section h2, .section h3 { color: var(--ink); line-height: 1.25; }
.welcome { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; }
.welcome img { display: block; width: 100%; height: auto; }
.welcome h2 { margin: 0; color: var(--pink-dark); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.welcome h3 { margin: 8px 0; }
.stripe { background: #edf2f8; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.contact-strip h2, .contact-strip p { margin: 0; }
.page-banner { padding-block: 30px; background-image: linear-gradient(#233854b8, #233854b8), url("inner.jpg"); }
.page-banner h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.75rem); line-height: 1.2; }
.intro { max-width: 750px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 20px; margin-top: 28px; }
.card, .panel { padding: 24px; border: 1px solid #dce4ee; background: white; }
.card h3 { margin-top: 0; }
.card a { font-weight: 700; }
.narrow { max-width: 800px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: block; font-weight: 700; }
.form input, .form select, .form textarea { width: 100%; padding: 11px; border: 1px solid #a5b4c7; background: white; font: inherit; }
.form textarea { min-height: 135px; }
.full { grid-column: 1 / -1; }
.hint { color: #536775; font-size: .9rem; }
.notice { padding: 15px; background: #e0f2e8; }
.errors { padding: 12px 20px; border-left: 4px solid #b43d29; background: #fff1ed; }
.footer { padding-block: 42px; background: var(--blue); color: #f1f5fa; }
.footer a { color: white; }
.footer .grid { margin-block: 0; }
.footer .brand { width: max-content; }
.footer-affiliations { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff55; font-size: .85rem; }
.footer-affiliations img { display: block; width: 150px; max-width: 100%; height: auto; margin-bottom: 4px; padding: 6px; }
.footer h2 { font-size: 1.15rem; }
.footer p { margin: 6px 0; }
.footer .small { margin-top: 24px; font-size: .85rem; }
.hidden-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 700px) {
    .form, .welcome, .service-links { grid-template-columns: 1fr; }
    .hero { min-height: 390px; padding-block: 45px; }
    .section { padding-block: 36px; }
    .welcome { gap: 22px; }
    .service-links { padding-inline: 0; }
    .service-links a { min-height: 72px; padding-block: 10px; }
}

.home-services { background: var(--ink); }
.home-services h2 { margin: 0; color: white; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    gap: 18px;
    margin-top: 22px;
}
.home-services .service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 155px;
    padding: 22px;
    border-radius: 8px;
    border-top: 5px solid var(--card-accent, #28354c);
    background: var(--card-fill, #e9edf4);
    color: #28354c;
    text-decoration: none;
}
.service-card:nth-child(4n + 1) {
    --card-accent: var(--pink);
    --card-fill: #fce7ed;
}
.service-card:nth-child(4n + 2) {
    --card-accent: #fec40d;
    --card-fill: #fff4cc;
}
.service-card:nth-child(4n + 3) {
    --card-accent: #f79544;
    --card-fill: #ffeddd;
}
.home-services .service-card {
    --card-accent: #8ebcff;
    --card-fill: #274f7f;
    color: white;
}
.home-services .service-card:nth-child(4n + 1) {
    --card-accent: var(--pink);
    --card-fill: #a51e48;
}
.home-services .service-card:nth-child(4n + 2) {
    --card-accent: #fec40d;
    --card-fill: #745000;
}
.home-services .service-card:nth-child(4n + 3) {
    --card-accent: #f79544;
    --card-fill: #963f16;
}
.service-card strong { font-size: 1.15rem; line-height: 1.25; }
.service-card:hover strong, .service-card:focus-visible strong { text-decoration: underline; }
.service-card-arrow { align-self: flex-end; margin-top: auto; font-size: 1.3rem; line-height: 1; }
@media (max-width: 740px) {
    .home-services .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    }
}
