@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700&family=Fraunces:wght@600&display=swap');

:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --accent: #6d5dfc;
    --accent-dark: #5847e6;
    --text: #16182d;
    --muted: #5c607a;
    --border: #e6e8f0;
    --shadow: 0 16px 40px rgba(25, 33, 61, 0.12);
    --glow: 0 12px 30px rgba(109, 93, 252, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Epilogue', 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top right, #eef0ff, var(--bg) 60%);
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(246, 247, 251, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.25rem, 6vw, 5rem);
}

.header-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.logo small {
    font-family: 'Epilogue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-menu {
    position: relative;
}

.category-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    line-height: 1;
}

.category-menu__toggle:focus-visible,
.category-menu__toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 112, 60, 0.2);
}

.category-menu__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.category-menu__icon span {
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.category-menu__panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    width: min(320px, 85vw);
    display: none;
    z-index: 15;
}

.category-menu__panel.is-open {
    display: block;
}

.category-menu__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-menu__panel a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 12px;
    padding: 0.5rem 0.35rem;
    display: block;
}

.category-menu__panel a:hover {
    background: rgba(211, 84, 0, 0.08);
}

.main-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
}

.primary-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0.4rem;
    position: relative;
    z-index: 30;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.hero {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f5ff 100%);
    border-radius: 0;
    padding: 4rem clamp(1.25rem, 7vw, 5rem) 3.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.hero__content h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.hero__panel {
    background: rgba(109, 93, 252, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(109, 93, 252, 0.15);
    max-width: 840px;
    width: 100%;
    justify-self: end;
    overflow: hidden;
    aspect-ratio: 5 / 1.5;
    box-shadow: var(--shadow);
}
.hero__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.filters {
    margin-top: 2rem;
}

.hero h1 {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
}

.hero p {
    color: var(--muted);
    margin: 0 0 2rem;
    max-width: 620px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters input[type="text"] {
    flex: 2;
    min-width: 220px;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(25, 33, 61, 0.06);
}

.filters button,
.filters label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.3rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.filters button:hover,
.filters label:hover {
    background: var(--accent-dark);
}

.filters label {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(25, 33, 61, 0.06);
}

.filters input[type="checkbox"] {
    accent-color: var(--accent);
}

main {
    padding: 0 0 4rem;
}

.layout {
    width: 100%;
    margin: 0;
    padding: 0 clamp(1.5rem, 6vw, 5rem) 0 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.categories {
    position: sticky;
    top: 6rem;
    align-self: start;
    background: #fff;
    border-radius: 0 24px 24px 0;
    border: 1px solid var(--border);
    border-left: none;
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
    box-shadow: var(--shadow);
    margin-left: 0;
    margin-top: 6.5rem;
    min-height: 320px;
}

.categories h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories a {
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0.9rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--muted);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.categories a.active,
.categories a:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(211, 84, 0, 0.08);
}

.category-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.category-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.category-section p.meta {
    color: var(--muted);
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 12px 28px rgba(25, 33, 61, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(25, 33, 61, 0.18);
}

.card h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card .org {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.card .header {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(230, 232, 240, 0.9);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(109, 93, 252, 0.16);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.contact {
    font-size: 0.93rem;
    line-height: 1.45;
    display: grid;
    gap: 0.35rem;
}

.contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
}

.contact .phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

.schedule {
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(230, 232, 240, 0.5);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

.empty {
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
}

.contact-page {
    padding: 3rem clamp(1.25rem, 6vw, 5rem) 4rem;
    display: grid;
    gap: 2.5rem;
    justify-items: center;
}

.contact-hero {
    max-width: 820px;
}

.contact-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin: 0 0 1rem;
}

.contact-hero p {
    color: var(--muted);
    margin: 0 0 1rem;
}

.contact-hero__email {
    font-weight: 600;
    color: var(--text);
}

.contact-hero__email a {
    color: var(--accent-dark);
    text-decoration: none;
}

.contact-hero__email a:hover {
    text-decoration: underline;
}

.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    width: 100%;
}

.contact-intro {
    color: var(--muted);
    margin-top: 0.5rem;
}

.form-message {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border: 1px solid transparent;
    font-weight: 600;
}

.form-message p {
    margin: 0;
}

.form-message ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    font-weight: 500;
}

.form-message--success {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.form-message--error {
    background: #fef2f2;
    border-color: #f87171;
    color: #7f1d1d;
}

.contact-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: 0.4rem;
    color: var(--text);
}

.contact-category-other {
    gap: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 8px 20px rgba(25, 33, 61, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
    min-height: 48px;
    font-size: 1.02rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.2);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.field-grid--phones {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.contact-actions {
    display: flex;
    justify-content: stretch;
}

.contact-submit {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(109, 93, 252, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    text-align: center;
}

.contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(109, 93, 252, 0.32);
    background: var(--accent-dark);
}

.contact-form .schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .header-controls {
        gap: 0.75rem;
    }

    .category-menu__panel {
        position: fixed;
        top: 5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: min(70vh, 400px);
        overflow: auto;
    }

    .categories {
        position: static;
        margin-left: 0;
        border-radius: 24px;
        border-left: 1px solid var(--border);
        padding: 1rem;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 20;
        background: rgba(243, 241, 235, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        padding: 3rem 2rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .primary-cta {
        margin-top: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    body.menu-open .main-nav {
        transform: translateY(0);
    }

    body.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .nav-toggle span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-open .nav-toggle span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        padding: 0.75rem 1.25rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .hero__panel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        text-align: center;
        padding: 0;
        aspect-ratio: auto;
        border-radius: 20px;
    }

    .hero__panel img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: center;
    }

    .hero__panel strong {
        font-size: 2rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters input[type="text"],
    .filters button,
    .filters label {
        width: 100%;
    }

    .filters button,
    .filters label {
        justify-content: center;
    }

    .layout {
        padding: 0 1.25rem 2.5rem;
        gap: 1.5rem;
    }

    .categories {
        box-shadow: none;
        border-radius: 20px;
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .site-header__inner {
        padding: 0.6rem 1rem;
    }

    .hero__panel {
        grid-template-columns: 1fr;
        border-radius: 18px;
        overflow: hidden;
    }

    .categories {
        padding: 0.75rem;
    }
}
