/* The Latin font covers the site’s English copy and preserves its original heading weight. */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/18711b8d628a17e0.woff2") format('woff2');
    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;
}

/* Design tokens */
:root {
    --color-brand: #00396f;
    --color-brand-hover: #004483;
    --color-brand-active: #002449;
    --color-focus: #173b65;
    --color-heading: #1b1b1b;
    --color-text: #5e5e5e;
    --color-muted: #595959;
    --color-rule: #e2e2e2;
    --color-on-image: #f7f7f7;
    --font-body: Helvetica, Arial, sans-serif;
    --font-heading: "Open Sans", sans-serif;
    --font-size-body: 16px;
    --font-size-heading: 22px;
    --font-size-detail: 14px;
    --container-width: 100%;
    --column-padding: 12px;
    --section-spacing: 40px;
}

/* Base elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul {
    margin: 0;
}

a {
    color: var(--color-brand);
    text-decoration: none;
}

button, input, textarea {
    margin: 0;
    border-radius: 0;
    color: inherit;
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img, svg {
    vertical-align: middle;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 10001;
    padding: 12px;
    background: #fff;
    color: var(--color-focus);
}

.skip-link:focus {
    top: 12px;
}

/* Shared page layout */
.container {
    width: var(--container-width);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--section-spacing);
}

.content-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: calc(-1 * var(--column-padding));
}

.content-row > *,
.service-row > * {
    flex: 1 1 100%;
    max-width: 100%;
    padding-inline: var(--column-padding);
}

.content-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.content-stack > * {
    max-width: 100%;
    margin-bottom: 24px;
}

.content-stack > :last-child {
    margin-bottom: 0;
}

.content-heading {
    color: var(--color-heading);
    font-size: var(--font-size-heading);
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.rich-text {
    color: var(--color-text);
    line-height: 1.5;
    overflow-wrap: break-word;
}

.rich-text p {
    margin: 0;
}

.rich-text ul {
    margin: 0 32px;
    padding-left: 1.3em;
    text-align: left;
}

.content-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.button {
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 100%;
    padding: 16px 32px;
    border: 0;
    background: var(--color-brand);
    color: #fff;
    font-weight: 700;
    letter-spacing: .063em;
    line-height: normal;
    text-align: center;
    overflow-wrap: break-word;
}

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

.button:active {
    background: var(--color-brand-active);
}

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 2;
    padding-block: 8px;
    background: #fff;
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.site-header__brand {
    display: block;
}

.site-header__brand img {
    display: block;
    width: 53px;
    height: 80px;
    object-fit: contain;
}

.menu-toggle {
    position: absolute;
    left: 24px;
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-heading);
}

.desktop-nav {
    display: none;
}

.header-nav__list, .mobile-nav__list, .footer-nav__list {
    padding: 0;
    list-style: none;
}

.header-nav__list {
    white-space: nowrap;
    line-height: 24px;
}

.header-nav__list li, .footer-nav__list li {
    display: inline-block;
}

.header-nav__list li + li {
    margin-left: 32px;
}

.header-nav__list a {
    display: block;
    margin: -6px;
    padding: 6px;
    color: var(--color-heading);
    letter-spacing: .063em;
}

.header-nav__list a[aria-current] {
    margin: 0 0 -5px;
    padding: 0 0 4px;
    border-bottom: 1px solid;
    font-weight: 400;
}

.header-nav__list a:hover, .footer-nav__list a:hover {
    color: var(--color-brand);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    display: none;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 56px 24px 24px;
    border: 0;
    overflow-y: auto;
    background: #161616;
    color: #fff;
}

.mobile-menu:popover-open {
    display: block;
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
}

.mobile-nav__list li + li {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.mobile-nav__list a {
    display: block;
    padding: 16px 24px;
    color: inherit;
    font-size: 22px;
    line-height: 1.4;
}

.mobile-nav__list a[aria-current] {
    font-weight: 700;
}

@media (max-width: 1023px) {
    body:has(.mobile-menu:popover-open) {
        overflow: hidden;
    }
}

/* Image banners */
.page-banner {
    padding-block: 64px;
    background-image: linear-gradient(rgba(22, 22, 22, .85), rgba(22, 22, 22, .85)), url("/assets/images/fefb50810595e108.jpg");
    background-position: center;
    background-size: auto, cover;
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.125;
    overflow-wrap: break-word;
}

/* Home page */
.home-hero {
    display: flex;
    align-items: center;
    min-height: 500px;
    background-image: linear-gradient(rgba(22, 22, 22, .45), rgba(22, 22, 22, .45)), url("/assets/images/2dc63081c326e8dd.jpg");
    background-position: center top;
    background-size: auto, cover;
    color: var(--color-on-image);
    text-align: center;
}

.home-hero__inner {
    padding-block: 40px;
}

.home-hero__phone {
    margin-bottom: 32px;
    font-size: var(--font-size-heading);
    line-height: 1.5;
}

.home-hero__phone a {
    color: inherit;
}

.home-hero__phone a:hover {
    color: #4a97ff;
}

.home-hero__message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero__title {
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid;
    font-family: var(--font-heading);
    font-size: clamp(32px, 6.84vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.home-hero__tagline {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: var(--font-size-heading);
    font-weight: 700;
    line-height: 1.5;
}

.home-hero__button {
    margin-top: 32px;
}

.home-intro__media .content-image,
.founder__portrait .content-image {
    margin-bottom: 32px;
}

.home-intro__body {
    display: flex;
    align-items: center;
}

.founder__body {
    order: 1;
}

/* Services page */
.services-intro__body {
    text-align: center;
}

.services-intro .content-stack {
    align-items: center;
}

.services-list {
    padding-bottom: 64px;
}

.service-row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(-1 * var(--column-padding));
}

.service-row + .service-row {
    margin-top: 48px;
}

.service-row__media {
    margin-bottom: 24px;
}

.service-row__body {
    display: flex;
    align-items: center;
}

.service-row .content-stack > * {
    margin-bottom: 16px;
}

.service-row .content-stack > :last-child {
    margin-bottom: 0;
}

/* Contact page */
.contact-section__form {
    padding-top: 24px;
}

.contact-form {
    padding-bottom: 14px;
}

.form-field {
    position: relative;
    margin-bottom: 24px;
}

.form-field input, .form-field textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--color-rule);
    background: #fff;
    color: var(--color-text);
}

.form-field input {
    padding: 23px 16px 8px;
    line-height: normal;
}

.form-field:has(textarea) {
    margin-bottom: 27.5px;
}

.form-field textarea {
    padding: 16px;
    line-height: 1.75;
    resize: vertical;
}

.form-field input::placeholder, .form-field textarea::placeholder {
    color: inherit;
    opacity: 1;
}

.form-field label {
    position: absolute;
    top: 30%;
    left: 16px;
    color: var(--color-text);
    pointer-events: none;
    transition: transform .15s, font-size .15s;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    transform: translateY(-13px);
    font-size: 12px;
}

.form-field input:focus, .form-field textarea:focus {
    outline: 1px solid var(--color-brand);
    outline-offset: -1px;
}

.contact-form__submit {
    display: block;
    width: 100%;
}

.contact-note {
    margin-top: 41px;
    color: var(--color-text);
    font: 14px/1.5 var(--font-heading);
}

.contact-section__info {
    margin-top: 40px;
    padding-bottom: 24px;
    text-align: center;
}

.contact-section__intro {
    margin-bottom: 40px;
}

.contact-section__info .content-heading {
    margin-bottom: 24px;
}

.contact-section__details {
    padding-top: 48px;
    color: var(--color-text);
    line-height: 1.5;
}

.contact-section__details a:first-child::after {
    content: "";
    display: block;
}

.form-message {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--color-rule);
    color: var(--color-brand);
    line-height: 1.5;
}

.form-message--error {
    color: #a12622;
}

.form-message ul {
    padding-left: 20px;
}

.form-field [aria-invalid="true"] {
    border-color: #a12622;
}

/* Footer */
.site-footer {
    padding-block: 40px;
    text-align: center;
}

.site-footer__divider {
    height: 49px;
    padding-top: 24px;
}

.site-footer__divider::before {
    content: "";
    display: block;
    border-bottom: 1px solid var(--color-rule);
}

.site-footer__copyright, .site-footer__credit {
    color: var(--color-muted);
    font-size: var(--font-size-detail);
    line-height: 1.5;
    overflow-wrap: break-word;
}

.site-footer__copyright {
    margin-bottom: 24px;
}

.footer-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav__list a {
    display: inline-block;
    padding: 4px 8px;
    color: var(--color-heading);
    letter-spacing: .063em;
}

.site-footer__rule {
    width: 50px;
    height: 41px;
    margin: 0 auto 24px;
    border-bottom: 1px solid var(--color-rule);
}

/* Tablet: keep the original narrower reading columns and wider gutters. */
@media (min-width: 768px) {
    :root {
        --column-padding: 24px;
    }

    .page-banner h1 {
        font-size: 38px;
    }

    .home-hero__message {
        padding-left: 32px;
        border-right: 1px solid rgba(255, 255, 255, .5);
    }

    .home-hero__title {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .home-intro__media, .home-intro__body,
    .founder__body, .founder__portrait, .reading-column {
        flex-basis: 83.3333333333%;
        max-width: 83.3333333333%;
    }

    .contact-section__info {
        margin-top: 0;
        text-align: left;
    }

    .contact-form__submit {
        width: auto;
    }

    .service-row > * {
        flex-basis: 50%;
        max-width: 50%;
    }

    .service-row__media {
        margin-bottom: 0;
        padding-bottom: 24px;
    }

    .service-row--reverse {
        flex-direction: row-reverse;
    }

    .service-row .content-stack > * {
        margin-bottom: 24px;
    }

    .services-list {
        padding-bottom: 40px;
    }

    .site-footer {
        padding-block: 56px;
    }

    .footer-nav__list {
        display: block;
    }

    .footer-nav__list a {
        padding-block: 8px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --container-width: 984px;
    }

    .site-header {
        padding-block: 16px;
    }

    .site-header__inner {
        justify-content: space-between;
    }

    .menu-toggle, .mobile-menu:popover-open {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .home-hero {
        min-height: 850px;
        text-align: right;
    }

    .home-hero__inner {
        width: 100%;
        padding-block: 24px;
    }

    .home-hero__phone {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        padding-inline: 24px;
    }

    .home-hero__message {
        align-items: flex-end;
        width: 75%;
        max-width: 100%;
        margin-inline: auto 24px;
        padding-inline: 32px;
    }

    .home-hero__title {
        margin-bottom: 16px;
        padding-bottom: 16px;
        font-size: 50px;
    }

    .home-hero__tagline {
        margin-bottom: 16px;
    }

    .service-row__media {
        padding-bottom: 0;
    }

    .button::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border: 4px solid transparent;
        box-shadow: inset 0 0 0 1px #fff;
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s ease-out, visibility .3s ease-out;
    }

    .button:hover::after {
        visibility: visible;
        opacity: 1;
    }

    .home-intro__media, .founder__portrait {
        flex-basis: 33.3333333333%;
        max-width: 33.3333333333%;
    }

    .home-intro__body, .founder__body, .reading-column {
        flex-basis: 66.6666666667%;
        max-width: 66.6666666667%;
    }

    .home-intro__media .content-image,
    .founder__portrait .content-image {
        margin-bottom: 0;
    }

    .founder__body {
        order: 0;
    }

    .founder__portrait {
        order: 1;
    }

    .contact-section__form, .contact-section__info {
        flex-basis: 50%;
        max-width: 50%;
    }

    .contact-section__info {
        margin-top: 0;
        text-align: left;
    }

    .contact-form__submit {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-width: 1160px;
    }

    .page-banner h1 {
        font-size: 44px;
    }

    .home-hero__inner {
        width: var(--container-width);
    }

    .home-hero__title {
        font-size: 62px;
    }
}

@media (min-width: 1536px) {
    :root {
        --container-width: 1280px;
        --font-size-body: 18px;
        --font-size-heading: 24px;
        --font-size-detail: 16px;
    }

    .page-banner h1 {
        font-size: 48px;
    }

    .home-hero__title {
        font-size: 70px;
    }

    .form-field:has(textarea) {
        margin-bottom: 28px;
    }
}

/* Respect the visitor's motion preference. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none;
        transition: none;
        scroll-behavior: auto;
    }
}
