/*
 * ExtendedQuick brand foundation.
 * The licensed webfont files were not included with the brand guide. `local()`
 * uses a licensed workstation copy without generating broken asset requests.
 * When supplied, add the WOFF2 sources at the paths documented in the project
 * Copilot instructions.
 */
@font-face {
    font-family: 'Causten';
    src: local('Causten Light'),
         local('Causten-Light');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Causten';
    src: local('Causten Extra Bold'),
         local('Causten-ExtraBold');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --brand-primary-cyan: #01A8E6;
    --brand-ink-navy: #052236;
    --brand-field-cyan: #019CDC;
    --brand-field-navy: #042035;
    --brand-endorsement-gray: #808080;
    --brand-white: #FFFFFF;

    --brand-primary-cyan-rgb: 1, 168, 230;
    --brand-ink-navy-rgb: 5, 34, 54;
    --brand-field-cyan-rgb: 1, 156, 220;
    --brand-field-navy-rgb: 4, 32, 53;
    --brand-endorsement-gray-rgb: 128, 128, 128;
    --brand-white-rgb: 255, 255, 255;

    /* Action blue: deeper step of the brand cyan so white button text
       meets WCAG AA (4.9:1; hover 6.1:1). White on #01A8E6 is only 2.7:1. */
    --brand-action-blue: #0077B6;
    --brand-action-blue-hover: #0067A0;
    --brand-action-blue-rgb: 0, 119, 182;

    /* Reading/UI text uses Figtree (web font, full weight range) so every visitor
       gets the same legible type. Causten is kept for large display titles when
       installed; its licensed webfont files are not in the project. */
    --font-family-text: 'Figtree', Arial, Helvetica, sans-serif;
    --font-family-display: 'Causten', 'Figtree', Arial, Helvetica, sans-serif;
    --font-family-brand: var(--font-family-text);
    --font-weight-light: 300;
    --font-weight-extra-bold: 800;
    --font-size-headline-min: 36px;
    --font-size-headline-max: 48px;
    --font-size-subheading-min: 22px;
    --font-size-subheading-max: 28px;
    --font-size-body-min: 16px;
    --font-size-body-max: 18px;
    --headline-font-weight: var(--font-weight-extra-bold);
    --subheading-font-weight: 400;
    --body-font-weight: 400;
    --body-line-height: 1.6;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-family-brand);
}

body {
    color: var(--brand-ink-navy);
    background: var(--brand-white);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-ink-navy);
    font-family: var(--font-family-brand);
    font-weight: var(--headline-font-weight) !important;
}

strong,
b,
.btn,
.form__label,
.faq__btn {
    font-weight: 700;
}

/* Large display titles keep the brand face; small headings use the text face. */
h1,
h2,
.hero__title,
.section__title {
    font-family: var(--font-family-display);
}

h3,
h4,
h5,
h6 {
    font-weight: 700 !important;
}

.nav__link {
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.01em;
}

/* Over the hero photo, a soft shadow keeps white menu text crisp. */
.header:not(.scrolled):not(.header--solid) .nav__link:not(.nav__cta) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

a {
    color: var(--brand-ink-navy);
}

a:hover {
    color: var(--brand-field-cyan);
}

.btn--primary,
.skip-link {
    color: var(--brand-white);
    background: var(--brand-action-blue);
    box-shadow: 0 4px 16px rgba(var(--brand-action-blue-rgb), 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.skip-link:focus {
    color: var(--brand-white);
    background: var(--brand-action-blue-hover);
    box-shadow: 0 6px 24px rgba(var(--brand-action-blue-rgb), 0.38);
}

.header.scrolled .nav__cta,
.header.scrolled .nav__cta:hover,
.header--solid .nav__cta,
.header--solid .nav__cta:hover,
.nav__cta,
.nav__cta:hover {
    color: var(--brand-white);
    background: var(--brand-action-blue);
}

.header.scrolled .nav__cta:hover,
.header--solid .nav__cta:hover,
.nav__cta:hover {
    background: var(--brand-action-blue-hover);
}

.section--navy {
    color: var(--brand-white);
    background: var(--brand-field-navy);
}

.section--navy-light {
    background: rgba(var(--brand-field-cyan-rgb), 0.055);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy .section__subtitle {
    color: var(--brand-white);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: transparent;
}

.brand-logo picture {
    display: flex;
    align-items: center;
}

.brand-logo .brand-logo__variant--light {
    display: none;
}

.header.scrolled .brand-logo__variant--dark,
.header--solid .brand-logo__variant--dark {
    display: none;
}

.header.scrolled .brand-logo__variant--light,
.header--solid .brand-logo__variant--light {
    display: flex;
}

.nav.container {
    max-width: 1320px;
}

.nav__logo {
    flex-shrink: 0;
}

.nav__link {
    white-space: nowrap;
}

.nav__logo .brand-logo__image {
    width: 270px;
    height: auto;
    max-height: none;
    filter: none;
    opacity: 1;
}

.brand-logo__image--footer {
    width: 360px;
    height: auto;
    padding: 0.5rem 0.75rem;
    box-sizing: content-box;
    background: transparent;
    filter: none !important;
    opacity: 1 !important;
}

.footer {
    color: var(--brand-white);
    background: var(--brand-field-navy);
}

.footer__tagline,
.footer__link,
.footer__disclaimer,
.footer__copy {
    color: rgba(var(--brand-white-rgb), 0.78);
}

.footer__heading,
.footer__link:hover {
    color: var(--brand-white);
}

.step__num,
.eligibility__card--yes .eligibility__badge,
.thanks-plan-card__badge {
    color: var(--brand-ink-navy);
    background: var(--brand-primary-cyan);
}

.inboard__check,
.form__progress-label span:last-child,
.thanks-panel__eyebrow,
.thanks-option-row__payment-copy,
.thanks-option-row__retail-label,
.thanks-offers__note--strong {
    color: var(--brand-ink-navy);
}

.app-shell__main {
    width: min(88%, 1180px);
    min-height: 60vh;
    margin: 0 auto;
    padding: 3rem 0;
}

.app-shell__header {
    background: var(--brand-white);
    border-bottom: 1px solid rgba(var(--brand-ink-navy-rgb), 0.12);
}

.app-shell__nav {
    display: flex;
    align-items: center;
    min-height: 96px;
}

.app-shell__footer {
    color: var(--brand-white);
    background: var(--brand-field-navy);
    padding: 2.5rem 0;
}

.app-shell__footer-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.app-shell__footer p {
    margin: 0;
    color: rgba(var(--brand-white-rgb), 0.78);
}

@media (max-width: 1320px) {
    .brand-logo {
        padding: 0.45rem;
    }

    .nav__logo .brand-logo__image {
        width: 48px;
        max-width: 48px;
        height: auto;
    }

    .brand-logo__image--footer {
        width: min(360px, calc(100% - 1.5rem));
    }

    .app-shell__footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
