:root {
    --color-primary: #2563eb;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-background: #ffffff;
    --color-header: #111827;
    --color-header-text: #ffffff;

    --max-width: 1100px;
}


* {
    box-sizing: border-box;
}


html {
    font-size: 16px;
}


body {
    margin: 0;

    background: var(--color-background);

    color: var(--color-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
}


.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin-inline: auto;
}


.site-header {
    background: var(--color-header);

    padding: 20px 0;
}


.site-logo {
    color: #ffffff;

    font-size: 1.25rem;

    font-weight: 700;

    text-decoration: none;
}


.site-main {
    padding: 60px 0;
}


.page {
    max-width: 800px;
}


.page-header {
    margin-bottom: 30px;
}


.page-header h1 {
    margin: 0;

    font-size: clamp(
        2rem,
        5vw,
        3.25rem
    );

    line-height: 1.1;
}


.page-content img {
    max-width: 100%;

    height: auto;
}


.page-content a {
    color: var(--color-primary);
}


.site-footer {
    border-top: 1px solid var(--color-border);

    background: var(--color-footer-bg, transparent);
    color: var(--color-muted);

    padding: 30px 0;

    margin-top: 60px;
}

body.cf-footer-center .site-footer {
    text-align: center;
}


.error-page {
    padding: 100px 0;
}


.error-page h1 {
    font-size: 3rem;
}

.site-navigation {
    background: var(--color-header);
}

.site-navigation-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-navigation-brand {
    color: var(--color-header-text);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-navigation-brand:hover {
    text-decoration: underline;
}

.site-navigation-list {
    display: flex;
    align-items: center;
    gap: 24px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation-item {
    margin: 0;
    padding: 0;
}

.site-navigation-item a {
    display: block;
    padding: 10px 0;

    color: var(--color-header-text);
    font-size: 0.95rem;
    font-weight: 500;

    text-decoration: none;
}

.site-navigation-item a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {

    .site-navigation-inner {
        padding: 16px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-navigation-list {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

}


/* embedded videos, maps and tables inside page content must never overflow on phones */
.page-content iframe {
    max-width: 100%;

    border: 0;
}


.page-content table {
    max-width: 100%;
}


.page-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;

    border-left: 4px solid var(--color-border);

    color: var(--color-muted);
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    max-width: 560px;

    margin-top: 2.5rem;
}


.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0 1rem;
}


.contact-form-row {
    margin-bottom: 1.25rem;
}


.contact-form-row label {
    display: block;
    margin-bottom: 0.4rem;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    color: var(--color-muted);
}


.contact-form-optional {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
}


.contact-form-row input,
.contact-form-row textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;

    border: 1px solid var(--color-border);
    border-radius: 8px;

    font: inherit;
    color: var(--color-text);
    background: var(--color-background);

    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


.contact-form-row textarea {
    min-height: 140px;

    resize: vertical;
}


.contact-form-row input:focus,
.contact-form-row textarea:focus {
    outline: none;

    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}


.contact-form-trap {
    position: absolute;
    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


.contact-form-submit {
    padding: 0.75rem 1.75rem;

    border: 0;
    border-radius: 8px;

    background: var(--color-primary);
    color: #ffffff;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
}


.contact-form-submit:hover {
    opacity: 0.9;
}


.contact-form-submit:active {
    transform: translateY(1px);
}


.contact-form-success {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;

    border-radius: 8px;

    background: #ecfdf5;
    color: #065f46;
}


.contact-form-error {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;

    border-radius: 8px;

    background: #fef2f2;
    color: #991b1b;
}


/* "Card" contact form style, turned on from Settings > Design */
body.cf-contact-card .contact-form {
    padding: 2rem;

    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


@media (max-width: 560px) {

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    body.cf-contact-card .contact-form {
        padding: 1.25rem;
    }

}


/* =========================================================
   DESIGN OPTIONS  (Settings > Design)
   Colors are applied as CSS variable overrides in the page's
   <head>; these classes cover the choices that are not a color.
   ========================================================= */

body.cf-font-serif {
    font-family: Georgia, "Times New Roman", Times, serif;
}

body.cf-font-rounded {
    font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif;
}


body.cf-buttons-square .contact-form-row input,
body.cf-buttons-square .contact-form-row textarea,
body.cf-buttons-square .contact-form-submit {
    border-radius: 2px;
}

body.cf-buttons-pill .contact-form-row input,
body.cf-buttons-pill .contact-form-row textarea {
    border-radius: 14px;
}

body.cf-buttons-pill .contact-form-submit {
    border-radius: 999px;
}
