/* =========================================================
   Jordan Business Services — classic & trustworthy
   Navy + warm white, brass accents, Newsreader / Public Sans
   ========================================================= */

:root {
    --navy: #142338;
    --navy-line: #2B3B55;
    --slate: #4A5B78;
    --ink: #3D4656;
    --muted: #5E6675;
    --on-navy: #F3EFE6;
    --on-navy-muted: #B9C1CF;

    --ground: #FAF8F4;
    --white: #FFFFFF;
    --sand: #EFE9DD;
    --line: #E4DED2;
    --line-strong: #D8D0C1;
    --field-line: #CFC7B8;

    --brass: #B08D57;        /* decorative rules and frames */
    --brass-text: #8C6B3A;   /* brass for text on light grounds (passes 4.5:1) */
    --brass-light: #C9A66B;  /* brass on navy */

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container: 1200px;
    --gutter: 24px;
    --section-y: clamp(72px, 10vw, 112px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
    margin: 0;
}

h1, h2, h3 {
    color: var(--navy);
    text-wrap: balance;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--brass-text);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brass-text);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--navy);
    color: var(--on-navy);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    color: var(--on-navy);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Type ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass-text);
}

.eyebrow--rule {
    margin-bottom: 26px;
}

.eyebrow--rule::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--brass);
}

.display {
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.display em {
    font-weight: 400;
    color: var(--slate);
}

.h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.lede {
    max-width: 560px;
    margin-top: 28px;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--navy);
    border-radius: 2px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--navy);
    color: var(--ground);
}

.btn--primary:hover {
    background: #0C1726;
    color: var(--ground);
}

.btn--secondary {
    background: transparent;
    color: var(--navy);
}

.btn--secondary:hover {
    background: var(--navy);
    color: var(--ground);
}

.btn--small {
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s var(--ease-out);
}

.btn:hover .icon--arrow {
    transform: translateX(3px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.94);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
    view-transition-name: site-header;
    transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -18px rgba(20, 35, 56, 0.45);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Brand name with the ProAdvisor certification badges beside it */
.site-header__id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

.proadvisor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proadvisor img {
    width: auto;
    height: 100px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--navy);
}

.brand:hover {
    color: var(--navy);
}

.brand__name {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand__tag {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:not(.btn):hover {
    color: var(--navy);
    border-bottom-color: var(--line-strong);
}

.site-nav a:not(.btn)[aria-current="page"] {
    font-weight: 600;
    color: var(--navy);
    border-bottom-color: var(--brass);
}

.site-nav__cta {
    margin-left: 12px;
}

/* Contact is the navy button; on its own page it gets a brass underline */
.site-nav a.btn[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--brass);
}

@media (max-width: 640px) {
    .site-header__inner {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .brand__name {
        font-size: 22px;
    }

    .proadvisor img {
        height: 72px;
    }

    .site-header__inner > nav {
        width: 100%;
    }

    .site-nav {
        margin-left: -14px;
    }

    .site-nav__cta {
        margin-left: auto;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--section-y) 0;
}

.section--white {
    background: var(--white);
}

.section--sand {
    background: var(--sand);
}

.section--navy {
    background: var(--navy);
    color: var(--on-navy);
}

.section--bordered {
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
    margin-bottom: 64px;
}

.section-head__title {
    flex: 1 1 520px;
    min-width: 0;
}

.section-head__text {
    flex: 1 1 340px;
    max-width: 440px;
    font-size: 17px;
}

/* ---------- Hero (home) ---------- */
.hero {
    padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 96px);
}

.hero__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.hero__copy {
    flex: 1 1 520px;
    min-width: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 32px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--muted);
}

.hero__meta-item .icon {
    width: 18px;
    height: 18px;
    color: var(--brass-text);
}

a.hero__meta-item {
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

/* Framed portrait */
.portrait {
    flex: 1 1 340px;
    max-width: 440px;
    min-width: 0;
}

.portrait__frame {
    position: relative;
    padding: 0 24px 24px 0;
}

.portrait__frame::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    right: 0;
    bottom: 0;
    border: 1px solid var(--brass);
}

.portrait__img {
    position: relative;
    width: 100%;
    height: auto;           /* let aspect-ratio win over the height attribute */
    max-height: 520px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    background: #5F5F5F;
}

.portrait__caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
}

.portrait__name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
}

.portrait__role {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- At-a-glance strip ---------- */
.glance {
    padding: 26px 0;
    background: var(--navy);
    color: var(--on-navy);
}

.glance__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}

.glance__list li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.glance__list .icon {
    color: var(--brass-light);
}

/* ---------- Services ---------- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 40px;
}

.service {
    flex: 1 1 300px;
    min-width: 0;
    padding-top: 32px;
    border-top: 1px solid var(--navy);
}

.service__num {
    margin-bottom: 28px;
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    color: var(--brass-text);
}

.service h3 {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
}

/* ---------- Why choose us ---------- */
.why {
    display: flex;
    flex-wrap: wrap;
    gap: 56px 80px;
}

.why__intro {
    flex: 1 1 340px;
    min-width: 0;
}

.why__intro p {
    margin: 20px 0 28px;
    font-size: 17px;
}

.why__panels {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.panel {
    flex: 1 1 280px;
    padding: 36px 32px;
    background: var(--white);
}

.panel .icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    color: var(--brass-text);
}

.panel h3 {
    margin: 20px 0 10px;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
}

/* ---------- Steps ---------- */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.step {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    gap: 20px;
}

.step__num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--navy);
}

.step h3 {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 600;
}

/* ---------- Closing call to action ---------- */
.cta {
    max-width: 820px;
    text-align: center;
}

.cta .h2 {
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.cta p {
    max-width: 560px;
    margin: 18px auto 36px;
    font-size: 18px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ---------- Page intro (about, contact) ---------- */
.page-intro {
    padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 6vw, 72px);
}

.page-intro .display {
    max-width: 900px;
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.05;
}

.page-intro .lede {
    max-width: 620px;
}

/* Short standalone pages (thank-you, 404) */
.notice {
    min-height: 60vh;
    padding-bottom: var(--section-y);
}

/* ---------- About: story ---------- */
.story {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px 88px;
    padding-bottom: var(--section-y);
}

.story .portrait {
    flex: 1 1 320px;
    max-width: 420px;
}

.story__text {
    flex: 999 1 480px;
    min-width: 0;
    padding-top: 8px;
}

.story__text .h2 {
    margin-bottom: 28px;
    font-size: clamp(30px, 3.6vw, 44px);
}

.story__text p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.75;
}

.story__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* ---------- About: mission ---------- */
.mission {
    max-width: 980px;
    text-align: center;
}

.mission .eyebrow {
    justify-content: center;
    margin-bottom: 32px;
    color: var(--brass-light);
}

.mission blockquote {
    font-family: var(--serif);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--on-navy);
}

.mission p {
    max-width: 620px;
    margin: 36px auto 0;
    font-size: 17px;
    color: var(--on-navy-muted);
}

/* ---------- About: values ---------- */
.values {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 40px;
    margin-top: 56px;
}

.value {
    flex: 1 1 240px;
    min-width: 0;
    padding-top: 28px;
    border-top: 1px solid var(--navy);
}

.value h3 {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
}

/* ---------- About: differentiators ---------- */
.apart {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 88px;
}

.apart__title {
    flex: 1 1 340px;
    min-width: 0;
}

.checklist {
    flex: 999 1 520px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-strong);
    font-size: 18px;
    color: var(--navy);
}

.checklist .icon {
    width: 22px;
    height: 22px;
    color: var(--brass-text);
}

/* ---------- Contact ---------- */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: var(--section-y);
}

.contact-card {
    flex: 1 1 320px;
    min-width: 0;
    padding: clamp(32px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
    background: var(--navy);
    color: var(--on-navy-muted);
}

.contact-card h2 {
    margin-bottom: 32px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    color: var(--on-navy);
}

.contact-card a {
    color: var(--on-navy);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--brass-light);
}

.contact-row {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--navy-line);
}

.contact-row:last-of-type {
    border-bottom: 1px solid var(--navy-line);
}

.contact-row .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    stroke-width: 1.6;
    color: var(--brass-light);
}

.contact-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-row__label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-light);
}

.contact-row__email {
    overflow-wrap: anywhere;
}

.hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 20px;
    margin-top: 8px;
}

.hours dd {
    color: var(--on-navy);
}

.contact-card__note {
    margin-top: 28px;
    font-size: 15px;
}

.form-card {
    flex: 999 1 560px;
    min-width: 0;
    padding: clamp(32px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
    background: var(--white);
    border: 1px solid var(--line);
}

.form-card h2 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
}

.form-card__hint {
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--muted);
}

.required {
    color: var(--brass-text);
}

.form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 20px;
}

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

.field--full {
    flex-basis: 100%;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--navy);
    background: var(--ground);
    border: 1px solid var(--field-line);
    border-radius: 2px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input,
.field select {
    height: 50px;
    padding: 0 14px;
}

.field textarea {
    min-height: 160px;
    padding: 14px;
    line-height: 1.55;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--brass-text);
    outline-offset: 0;
    border-color: var(--brass-text);
    background: var(--white);
}

.field textarea::placeholder {
    color: #767C88;
}

.form__footer {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
}

.form__footer p {
    font-size: 14px;
    color: var(--muted);
}

.form__honeypot {
    display: none;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 72px 0 32px;
    background: var(--navy);
    color: var(--on-navy-muted);
    font-size: 15px;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--navy-line);
}

.site-footer__brand {
    flex: 1 1 320px;
    min-width: 0;
}

.site-footer__name {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--on-navy);
}

.site-footer__brand p:not(.site-footer__name) {
    max-width: 340px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer__col--pages {
    flex: 0 1 160px;
}

.site-footer__col--contact {
    flex: 0 1 340px;
}

.site-footer__heading {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-light);
}

.site-footer__col a,
.site-footer__col span {
    padding: 6px 0;
    color: var(--on-navy);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer__col span {
    color: var(--on-navy-muted);
}

.site-footer__col a:hover {
    color: var(--brass-light);
}

.site-footer__legal {
    margin-top: 28px;
    font-size: 13px;
}

/* ---------- Motion ---------- */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: var(--ease-out);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.hero__copy > *,
.page-intro .container > * {
    animation: fadeUp 0.8s var(--ease-out) both;
}

.hero__copy > :nth-child(2),
.page-intro .container > :nth-child(2) {
    animation-delay: 0.1s;
}

.hero__copy > :nth-child(3),
.page-intro .container > :nth-child(3) {
    animation-delay: 0.2s;
}

.hero__copy > :nth-child(n + 4) {
    animation-delay: 0.3s;
}

.hero .portrait {
    animation: fadeUp 1s var(--ease-out) 0.2s both;
}

/* Scroll reveals (classes added by motion.js) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    @view-transition {
        navigation: none;
    }
}
