/* Colors and fonts from rtsai.com. The heading font, Funnel Display, is
   served from fonts/ (SIL Open Font License, fonts/FunnelDisplay-LICENSE.txt).
   rtsai.com's body font, Spezia, is a licensed font, so body text uses the
   system sans-serif instead. */
@font-face {
    font-family: "Funnel Display Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url(../fonts/funnel-display-latin-ext-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Funnel Display Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url(../fonts/funnel-display-latin-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #1d58f4;
    --blue-dark: #1747cd;
    --navy: #0a225e;
    --tint: #f1f2f6;
    --text: #313131;
    --muted: #5f6573;
    --white: #ffffff;
    --border: #dfe2ea;

    --font-heading: "Funnel Display Variable", "Segoe UI", system-ui, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 16px;
    --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.narrow { max-width: 800px; }

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 10;
    background: var(--white);
    padding: 8px 12px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 50px;
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.button:hover { background: var(--blue-dark); }
.button-small { padding: 7px 18px; font-size: .95rem; }
.button-light { background: var(--white); color: var(--blue); }
.button-light:hover { background: var(--tint); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.site-nav a:not(.button) {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.site-nav a:not(.button):hover,
.site-nav a.active { color: var(--blue); }
.menu-toggle { display: none; }

/* Hero and page titles */
.hero, .page-title {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
}
.hero h1, .page-title h1 { color: var(--white); }
.hero-inner { padding-top: 110px; padding-bottom: 120px; }
.hero h1 { max-width: 860px; }
.hero p { font-size: 1.2rem; max-width: 640px; opacity: .92; margin-bottom: 1.8em; }
.page-title .container { padding-top: 70px; padding-bottom: 70px; }
.page-title p { font-size: 1.15rem; max-width: 680px; opacity: .92; margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.card p { color: var(--muted); margin: 0; }
.icon {
    width: 44px;
    height: 44px;
    padding: 9px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--tint);
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 36px;
}
.feature {
    border-top: 3px solid var(--blue);
    padding-top: 18px;
}
.feature p { color: var(--muted); margin: 0; }

/* Full-width image band */
.band {
    position: relative;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 34, 94, .78);
}
.band-inner {
    position: relative;
    padding: 110px 24px;
    max-width: 760px;
    text-align: center;
}
.band h2 { color: var(--white); }
.band p { font-size: 1.25rem; margin: 0; }

/* Call to action */
.callout { background: var(--blue); color: var(--white); padding: 60px 0; }
.callout h2 { color: var(--white); }
.callout p { margin: 0; opacity: .92; max-width: 620px; }
.callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

/* Contact */
.office-card h3 { margin-bottom: .3em; }
.office-card p { margin-bottom: 1.2em; }
.office-label {
    color: var(--blue) !important;
    font-weight: 600;
    font-size: .9rem;
}
.muted { color: var(--muted); }
.login-note { margin-top: 36px; color: var(--muted); }

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    padding: 60px 0 24px;
}
.footer-inner {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.footer-logo { width: 160px; align-self: flex-start; }
.offices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    flex: 1;
    max-width: 760px;
}
.offices address {
    display: flex;
    flex-direction: column;
    font-style: normal;
    font-size: .95rem;
}
.offices strong { color: var(--white); margin-bottom: 4px; }
.offices .office-label { color: #9fbaff !important; }
.offices a { color: var(--white); margin-top: 4px; }
.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .85rem;
}

/* Phones */
@media (max-width: 760px) {
    .menu-toggle {
        display: block;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 50px;
        background: var(--white);
        color: var(--navy);
        font: inherit;
        font-weight: 600;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 24px 24px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
    }
    .site-nav.open { display: flex; }
    .hero-inner { padding-top: 70px; padding-bottom: 80px; }
    h1 { overflow-wrap: break-word; }
    .section { padding: 56px 0; }
    .card-grid { grid-template-columns: 1fr; }
}
