:root {
    --bg: #f7f4ef;
    --paper: #fff;
    --ink: #17212b;
    --muted: #617080;
    --brand: #0f5f6f;
    --brand-dark: #0b4854;
    --brand2: #b5502a;
    --line: #ded8cf;
    --shadow: 0 20px 50px rgba(23,33,43,.12);
    /* side gutter that also centers content on screens wider than 1320px */
    --gutter: max(clamp(1rem,4vw,4rem), calc((100% - 1320px) / 2))
}

html {
    scroll-padding-top: 7rem
}

* {
    box-sizing: border-box
}

body {
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55
}

a {
    color: inherit
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: .75rem
}

.skip-link:focus {
    left: 1rem;
    z-index: 10
}

.site-header {
    background: rgba(255,255,255,.92);
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px)
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .9rem;
    padding: .55rem var(--gutter);
    color: var(--muted);
    border-bottom: 1px solid var(--line)
}

.topbar nav,
.mainnav,
footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--gutter)
}

.logo {
    font-size: 1.55rem;
    text-decoration: none;
    letter-spacing: -.03em
}

.mainnav a,
.topbar a,
footer a {
    text-decoration: none
}

.mainnav a:hover,
.topbar a:hover,
footer a:hover {
    text-decoration: underline
}

.menu-btn {
    display: none
}

.mobile-extra {
    display: none
}

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

.hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 2rem;
    padding: clamp(3rem,8vw,7rem) var(--gutter);
    align-items: center
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    color: var(--brand);
    font-weight: 800
}

.hero h1 {
    font-size: clamp(2.4rem,6vw,5.4rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: .2em 0
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 60ch
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    padding: .85rem 1.2rem;
    text-decoration: none;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s
}

.primary {
    background: var(--brand);
    color: #fff
}

.primary:hover {
    background: var(--brand-dark)
}

.secondary {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line)
}

.secondary:hover {
    border-color: var(--brand);
    background: #f0f7f8
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: .4rem
}

.btn:focus-visible,
.small:focus-visible,
.menu-btn:focus-visible,
.slide-btn:focus-visible,
.social-links a:focus-visible {
    border-radius: 999px
}

.content-band :focus-visible,
footer :focus-visible {
    outline-color: #fff
}

.slider-card {
    background: var(--paper);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.tag {
    align-self: flex-start;
    background: var(--brand2);
    color: #fff;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .85rem;
    font-weight: 800
}

.slider-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    transition: border-color .2s, background .2s
}

.slide-btn:hover {
    border-color: var(--brand);
    background: #f0f7f8
}

.dots {
    display: flex;
    gap: .45rem
}

.dots span{
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--brand);
    opacity: .3;
    transition: opacity .2s
}

.dots span.active {
    opacity: 1
}

.search-panel {
    margin: 0 var(--gutter);
    background: var(--paper);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 2rem
}

.finder {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    align-items: end
}

.finder label {
    font-weight: 800
}

.finder input,
.finder select,
.newsletter input {
    width: 100%;
    margin-top: .35rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    font: inherit;
    background: #fff
}

.quick-grid,
.cards-3 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    padding: 3rem var(--gutter)
}

.quick-grid > a,
.cards-3 article,
.split > div {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    padding: 1.4rem
}

.quick-grid > a {
    display: block;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.quick-grid > a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand);
    text-decoration: none
}

.quick-grid h3::after {
    content: " →";
    color: var(--brand)
}

.quick-grid p {
    color: var(--muted);
    margin-bottom: 0
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 var(--gutter) 3rem
}

.event {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 1rem 0
}

.event span {
    min-width: 0
}

.course {
    display: grid;
    grid-template-columns: 1fr 10rem 1fr;
    align-items: start;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 1rem 0
}

.event time {
    background: var(--bg);
    border-radius: .8rem;
    padding: .5rem;
    font-weight: 800;
    min-width: 4.5rem;
    text-align: center
}

.course strong {
    min-width: 0
}

.course span {
    min-width: 0;
    text-align: left
}

.course button.small {
    justify-self: end
}

.small {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: .45rem .75rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .2s, color .2s
}

.small:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.content-band {
    margin: 0 var(--gutter) 3rem;
    background: var(--brand);
    color: #fff;
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center
}

.content-band .eyebrow,
.content-band p {
    color: #e6f3f5
}

.cards-3 {
    grid-template-columns: repeat(3,1fr);
    padding-top: 0
}

.newsletter {
    margin: 0 var(--gutter) 3rem;
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--line)
}

.newsletter form {
    max-width: 520px;
    margin: auto;
    text-align: left
}

.nl-label {
    display: block;
    font-weight: 800;
    margin-bottom: .35rem
}

.nl-row {
    display: flex;
    gap: .75rem
}

.newsletter input {
    margin: 0
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem var(--gutter);
    background: #12202a;
    color: #fff
}

.footer-contact p {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.75);
    font-size: .95rem
}

.footer-contact a {
    text-decoration: underline
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap
}

.social-links {
    align-items: center
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: background .2s, transform .2s
}

.social-links a:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-2px);
    text-decoration: none
}

@media(max-width: 900px) {
    .topbar {
        display: none
    }

    .hero,
    .search-panel,
    .split {
        grid-template-columns: 1fr
    }

    .finder,
    .quick-grid,
    .cards-3 {
        grid-template-columns: 1fr 1fr
    }

    .course {
        grid-template-columns: 1fr auto;
        grid-template-areas: "title title" "price button";
        row-gap: .35rem
    }

    .course strong {
        grid-area: title
    }

    .course span {
        grid-area: price
    }

    .course button.small {
        grid-area: button
    }

    .mainnav {
        display: none
    }

    .mainnav.open {
        display: flex;
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 4.5rem;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 1rem;
        padding: 1rem;
        flex-direction: column;
        box-shadow: var(--shadow)
    }

    .mainnav .mobile-extra {
        display: block;
        color: var(--muted)
    }

    .mainnav a:not(.mobile-extra) + .mobile-extra {
        border-top: 1px solid var(--line);
        padding-top: .85rem;
        margin-top: .35rem
    }

    .menu-btn {
        display: block;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 999px;
        padding: .6rem 1rem
    }

    .nl-row {
        flex-direction: column
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important
    }
}

@media(max-width: 560px) {
    .finder,
    .quick-grid,
    .cards-3 {
        grid-template-columns: 1fr
    }

    .content-band {
        display: block
    }

    .hero {
        padding-top: 2rem
    }

    .slider-card {
        min-height: 220px
    }
}
