/* Shared website colors inspired by the new logo */
:root {
    --blue: #0645ad;
    --blue-dark: #082957;
    --red: #c8102e;
    --red-hover: #a30d25;
    --white: #ffffff;
    --light-background: #f4f7fc;
    --light-text: #e4edfa;
}

/* Keep padding and borders inside an element's set width */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--blue-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Center content and leave space beside it */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Company branding */
.site-header {
    padding: 24px 0;
    background-color: var(--white);
}

.brand {
    display: inline-block;
}

.brand-logo {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
}

/* Homepage introduction */
.hero {
    padding: 88px 0;
    background-color: var(--blue);
    color: var(--white);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;
    margin: 0 0 24px;
    font-size: 56px;
    line-height: 1.1;
}

.hero-description {
    max-width: 620px;
    margin: 0 0 32px;
    color: var(--light-text);
    font-size: 20px;
}

/* A navigation link styled as a button */
.button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 6px;
    background-color: var(--red);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background-color: var(--red-hover);
}

/* Make keyboard navigation visible */
a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

/* Services introduction */
.services-section {
    padding: 64px 0;
    background-color: var(--light-background);
}

.services-section h2 {
    margin: 0 0 16px;
    font-size: 32px;
}

.services-section p {
    max-width: 650px;
    margin: 0;
}

/* Adjust the layout for smaller screens */
@media (max-width: 600px) {
    .hero {
        padding: 56px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .services-section h2 {
        font-size: 28px;
    }
}

/* Space between the section introduction and cards */
.services-section .section-intro {
    margin-bottom: 32px;
}

/* Three equal columns on wide screens */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Individual service card */
.service-card {
    padding: 28px;
    border: 1px solid #dce3eb;
    border-top: 4px solid var(--red);
    border-radius: 8px;
    background-color: var(--white);
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
}

.service-card p {
    color: #425466;
    font-size: 16px;
}

/* Two columns on medium screens */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* One column on small screens */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* International markets */
.markets-section {
    padding: 64px 0;
    background-color: var(--white);
}

.markets-section h2 {
    margin: 0 0 16px;
    font-size: 32px;
}

.markets-intro {
    max-width: 700px;
    margin: 0 0 32px;
    color: #425466;
}

/* A responsive list of country cards */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.market-card {
    padding: 24px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background-color: var(--light-background);
}

.market-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.market-phone {
    display: inline-block;
    margin-top: 16px;
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.market-phone:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
    .markets-section h2 {
        font-size: 28px;
    }

    .markets-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared header layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 10px 0;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Shared footer */
.site-footer {
    padding: 40px 0;
    background-color: var(--blue-dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-content > div {
    max-width: 520px;
}

.footer-company {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    padding: 8px 0;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-links a:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
    .header-content,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Introduction shared by future interior pages */
.page-intro {
    padding: 64px 0;
    background-color: var(--blue);
    color: var(--white);
}

.page-intro h1 {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.15;
}

.page-intro-description {
    max-width: 700px;
    margin: 0;
    color: var(--light-text);
    font-size: 20px;
}

/* About Us sections */
.about-section {
    padding: 64px 0;
}

.about-section h2 {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.2;
}

.about-copy {
    max-width: 760px;
}

.about-copy p {
    margin: 0 0 20px;
}

/* Mission and vision */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.purpose-card {
    padding: 28px;
    border-top: 4px solid var(--red);
    border-radius: 8px;
    background-color: var(--light-background);
}

.purpose-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.purpose-card p {
    margin: 0;
}

/* Core values */
.values-section {
    background-color: var(--light-background);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.value-card {
    padding: 24px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background-color: var(--white);
}

.value-card dt {
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 20px;
    font-weight: 700;
}

.value-card dd {
    margin: 0;
}

/* Founder and closing section */
.founder-name {
    margin: 0 0 8px;
    font-size: 24px;
}

.founder-role {
    margin: 0 0 24px;
    color: var(--blue);
    font-weight: 700;
}

.commitment-section {
    background-color: var(--light-background);
}

/* Identify the current page in navigation */
.nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .page-intro {
        padding: 48px 0;
    }

    .page-intro h1 {
        font-size: 36px;
    }

    .about-section h2 {
        font-size: 28px;
    }

    .purpose-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Service cards on the dedicated services page */
.services-page .service-card {
    border-top-color: var(--blue);
}

/* Closing section on the services page */
.service-approach {
    padding: 64px 0;
    background-color: var(--white);
}

.service-approach h2 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.2;
}

.service-approach p {
    max-width: 760px;
    margin: 0 0 20px;
}

.service-approach .button {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .service-approach h2 {
        font-size: 28px;
    }
}

/* Links from service cards to detail pages */
.service-detail-link {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 0;
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-detail-link:hover,
.back-link:hover {
    text-decoration-thickness: 2px;
}

/* Shared styles for service detail pages */
.detail-section {
    padding: 64px 0;
}

.detail-section-light {
    background-color: var(--light-background);
}

.detail-section h2 {
    max-width: 800px;
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.2;
}

.detail-intro {
    max-width: 760px;
    margin: 0 0 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 0;
    color: var(--blue);
    text-underline-offset: 4px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.detail-card {
    padding: 28px;
    border: 1px solid #dce3eb;
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    background-color: var(--white);
}

.detail-card h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.3;
}

.detail-card p {
    margin: 0 0 16px;
}

.detail-card ul {
    margin: 0;
    padding-left: 20px;
}

.detail-card li + li {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .detail-section h2 {
        font-size: 28px;
    }
}

.nav-links a.nav-section-active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Steps for establishing a client project */
.expectations-list {
    max-width: 760px;
    margin: 0;
    padding-left: 28px;
}

.expectations-list li {
    padding-left: 8px;
}

.expectations-list li + li {
    margin-top: 20px;
}

.expectations-list li::marker {
    color: var(--blue);
    font-weight: 700;
}

.expectations-list strong {
    color: var(--blue-dark);
}

/* Expandable service catalog */
.service-catalog {
    display: grid;
    gap: 16px;
}

.service-category {
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background-color: var(--white);
}

.service-category summary {
    padding: 20px 24px;
    color: var(--blue);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.service-category summary:hover {
    background-color: var(--light-background);
}

.service-category summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.service-category[open] {
    border-color: var(--blue);
}

.service-category[open] summary {
    border-bottom: 1px solid #dce3eb;
}

.catalog-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0;
    padding: 24px 24px 24px 44px;
}

.catalog-service-list li {
    padding-left: 4px;
}

.catalog-service-list li::marker {
    color: var(--red);
}

@media (max-width: 600px) {
    .service-category summary {
        padding: 18px;
        font-size: 18px;
    }

    .catalog-service-list {
        grid-template-columns: 1fr;
        padding: 20px 20px 20px 36px;
    }
}

/* Contact page layout */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    align-items: start;
}

.contact-information {
    padding: 28px;
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    background-color: var(--light-background);
}

.contact-information a {
    color: var(--blue);
    overflow-wrap: anywhere;
}

/* Form preview notice */
.form-notice {
    padding: 16px;
    margin: 0 0 24px;
    border-left: 4px solid var(--blue);
    background-color: var(--light-background);
}

/* Shared inquiry form styles */
.inquiry-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.inquiry-fields legend {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #8292a6;
    border-radius: 6px;
    font: inherit;
    color: var(--blue-dark);
    background-color: var(--white);
}

.form-field textarea {
    resize: vertical;
}

.form-field small {
    color: #425466;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background-color: var(--light-background);
    opacity: 1;
}

button.button {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button.button:disabled {
    background-color: #596579;
    color: var(--white);
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field-error {
    margin: 6px 0 0;
    color: var(--red);
    font-weight: 700;
}

.form-field [aria-invalid="true"] {
    border: 2px solid var(--red);
}

.form-error-summary {
    padding: 16px;
    border-left: 4px solid var(--red);
    background-color: #fff2f4;
}

.form-result {
    padding: 16px;
    border-left: 4px solid var(--blue);
    background-color: var(--light-background);
}

/* WTForms renders SubmitField as an input. */
input.button {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

input.button:disabled {
    background-color: #596579;
    color: var(--white);
    cursor: not-allowed;
}

input.button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* Homepage inquiry actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.button.button-outline {
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
}

.button.button-outline:hover {
    background-color: var(--white);
    color: var(--blue);
}

/* Privacy and terms page layouts */
.policy-content {
    max-width: 800px;
}

.draft-notice {
    padding: 24px;
    margin-bottom: 32px;
    border-left: 5px solid var(--red);
    border-radius: 8px;
    background-color: var(--light-background);
    color: var(--blue-dark);
}

.draft-notice p {
    margin: 12px 0 0;
    line-height: 1.7;
}

.policy-section {
    padding: 24px 0;
    border-bottom: 1px solid #dce4ef;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 1.3rem;
}

.policy-section p {
    margin: 0;
    line-height: 1.8;
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
}

.footer-policy-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* About page: founder and commitment portraits */
.leadership-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.leadership-layout-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
}

.leadership-photo {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0;
}

.leadership-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dce3eb;
    border-radius: 12px;
}

.leadership-photo figcaption {
    margin-top: 12px;
    color: #425466;
    font-size: 14px;
    line-height: 1.5;
}

.leadership-copy {
    min-width: 0;
    padding-left: 24px;
    border-left: 4px solid var(--red);
}

@media (max-width: 760px) {
    .leadership-layout,
    .leadership-layout-reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .leadership-photo {
        justify-self: center;
    }

    .leadership-copy {
        padding-left: 18px;
    }
}

/* Homepage: illustrative call-center image */
.homepage-image-section {
    padding: 40px 0 0;
    background-color: var(--white);
}

.call-center-figure {
    margin: 0;
}

.call-center-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dce3eb;
    border-radius: 12px;
}

.call-center-figure figcaption {
    margin-top: 12px;
    color: #425466;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 600px) {
    .homepage-image-section {
        padding-top: 24px;
    }
}

.contact-information a {
    overflow-wrap: anywhere;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}