/* GroundSpeed Partners theme
   Flattened from homepage concept revision 8 (October 16, 2026).
   Brand and Style Guide v2: white canvas, Navy headings, Ink body, Rust action.
   Source Serif 4 600 for headings, Inter for everything else. */

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/SourceSerif4-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-100-900.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #002652;
    --rust: #A8481B;
    --rust-hover: #873a17;
    --tan: #AA8369;
    --bone: #F4EFE5;
    --bone-hover: #dfd7c9;
    --gray: #565E68;
    --ink: #0F1A2B;
    --line: #CBD1D8;
    --navy-deep: #10345e;
    --serif: var(--gh-font-heading, "Source Serif 4"), Georgia, serif;
    --sans: var(--gh-font-body, Inter), Arial, sans-serif;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 400 18px/1.55 var(--sans);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--rust);
    outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 600; }
h2 { font-size: 42px; line-height: 1.15; letter-spacing: -1px; }
h3 { font-size: 29px; line-height: 1.22; letter-spacing: -.45px; }

.container { width: min(1200px, calc(100% - 112px)); margin: auto; }
.section { padding-top: 68px; padding-bottom: 68px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.9px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
    color: var(--rust);
    margin-bottom: 22px;
}
.skip { position: absolute; top: -100px; left: 20px; z-index: 20; background: var(--navy); color: var(--bone); padding: 15px; }
.skip:focus { top: 10px; }

/* Buttons and links */
.button {
    border: 1px solid var(--rust);
    background: var(--rust);
    color: var(--bone);
    padding: 15px 25px;
    min-height: 54px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
    transition: background .18s, border-color .18s;
}
.button:hover { background: var(--rust-hover); border-color: var(--rust-hover); }
.chevron {
    display: inline-block;
    background: currentColor;
    width: 9px;
    height: 12px;
    clip-path: polygon(0 0, 43% 0, 100% 50%, 43% 100%, 0 100%, 56% 50%);
    flex: none;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 0;
    background: transparent;
    padding: 10px 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logo-link { width: 280px; flex: none; display: block; }
.logo-link img { width: 100%; height: auto; }
.header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; color: var(--navy); }
.header nav > a { padding: 12px 0; }
.header nav > a:hover, .header nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-contact { border: 0; background: transparent; padding: 12px 0; min-height: 44px; color: var(--navy); font-size: 14px; font-weight: 600; }
.nav-contact:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.22fr;
    gap: 52px;
    padding-top: 64px;
    padding-bottom: 64px;
    align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
    font-size: 66px;
    line-height: 1.06;
    letter-spacing: -1.8px;
    text-wrap: balance;
    margin-bottom: 24px;
    max-width: 520px;
}
.hero-description { color: var(--ink); max-width: 445px; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 26px; }
.hero-actions .button { font-weight: 600; min-height: 56px; min-width: 155px; padding: 15px 28px; }
.hero-visual { position: relative; padding: 0; }
.hero .photo-frame { overflow: hidden; aspect-ratio: 3 / 2; }
.hero .work-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Section headings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading > p { color: var(--ink); font-size: 17px; max-width: 360px; margin-bottom: 4px; }

/* How we help */
.help { border-top: 1px solid var(--line); }
.help .section-heading { margin-bottom: 36px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--rust); }
.help-item { padding: 30px 30px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.help-item + .help-item { padding-left: 30px; border-left: 1px solid var(--line); }
.help-item:last-child { padding-right: 0; }
.help-item h3 { font-size: 27px; line-height: 1.2; letter-spacing: -.45px; margin-bottom: 20px; }
.help-item > p { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 22px; }
.help-item > .text-link { margin-top: auto; gap: 15px; font-size: 14px; min-height: 44px; }

/* How we work */
.process { background: var(--navy); color: var(--bone); }
.process h2 { color: #fff; }
.process .eyebrow { color: var(--bone); }
.approach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.approach-inner .eyebrow { margin-bottom: 16px; }
.approach-copy { color: #fff; font-size: 20px; line-height: 1.65; max-width: 440px; }

/* Team */
.team { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: center; }
.team-copy > .eyebrow { margin-bottom: 17px; }
.team h2 { max-width: 570px; margin-bottom: 20px; }
.team-copy > p:not(.eyebrow) { font-size: 17px; color: var(--ink); max-width: 520px; margin-bottom: 0; }
.team-names { display: block; list-style: none; border-top: 2px solid var(--navy); padding: 0; margin: 0; }
.team-names li { padding: 15px 0 16px; border-bottom: 1px solid var(--line); }
.team-name { display: block; font-size: 23px; line-height: 1.3; letter-spacing: -.3px; font-weight: 700; color: var(--navy); }
.team-title { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--gray); }

/* Contact band */
.contact-section { background: var(--navy); color: var(--bone); overflow: hidden; }
.contact-inner { min-height: 245px; display: flex; align-items: center; justify-content: space-between; position: relative; padding-top: 58px; padding-bottom: 58px; }
.contact-inner > div, .contact-inner > .button { position: relative; z-index: 1; }
.contact-inner > .button { margin-right: 130px; background: var(--bone); border-color: var(--bone); color: var(--navy); min-width: 171px; }
.contact-inner > .button:hover { background: var(--bone-hover); border-color: var(--bone-hover); }
.contact-section h2 { color: #fff; font-size: 54px; font-weight: 600; letter-spacing: -1.5px; margin-bottom: 14px; }
.contact-section p:not(.eyebrow) { font-size: 17px; color: #fff; }
.contact-chevron {
    position: absolute;
    right: -140px;
    top: -45px;
    width: 320px;
    height: 420px;
    background: var(--navy-deep);
    clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}

/* Footer */
.footer { background: var(--bone); padding: 42px 0 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; }
.firm-name { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.footer-top > div > p:last-child { font-size: 14px; color: var(--gray); line-height: 1.6; }
.footer-top > a { font-size: 13px; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.footer-top > a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--gray); }

/* Contact dialog */
dialog { border: 0; padding: 0; background: var(--bone); color: var(--ink); max-width: 660px; width: calc(100% - 32px); max-height: 90dvh; border-radius: 0; overflow: auto; }
dialog::backdrop { background: #0f1a2bbd; }
.dialog-inner { padding: 42px; position: relative; }
.dialog-close { position: absolute; top: 7px; right: 22px; min-height: 44px; min-width: 44px; padding: 5px; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }
dialog h2 { font-size: 36px; margin-bottom: 14px; }
dialog .eyebrow { margin-bottom: 14px; }
.dialog-intro { font-size: 16px; color: var(--ink); margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.optional-label { font-weight: 400; color: var(--gray); }
input, textarea, select { display: block; border: 1px solid #9d9b98; border-radius: 3px; background: #fffdf9; width: 100%; padding: 10px 11px; margin-top: 7px; color: var(--ink); font-size: 16px; line-height: 1.45; }
textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--rust); margin: 0 0 16px; }
.note-heading { font-weight: 700; color: var(--navy); margin: 20px 0 12px; font-size: 20px; }
#form-success .button { margin-top: 8px; }
.button[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Inner pages: posts, pages, listings */
.page-content { max-width: 760px; }
.page-content h1 { font-size: 54px; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 18px; }
.post-header { margin-bottom: 36px; }
.post-meta { font-size: 14px; color: var(--gray); }
.page-lead { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 620px; }
.post-feature-image { margin: 0 0 36px; }
.post-feature-image figcaption { font-size: 13px; color: var(--gray); margin-top: 10px; }
.gh-content { font-size: 18px; line-height: 1.65; }
.gh-content > * + * { margin-top: 1.2em; }
.gh-content h2 { font-size: 32px; margin-top: 2em; }
.gh-content h3 { font-size: 25px; margin-top: 1.6em; }
.gh-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.gh-content blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--rust); color: var(--gray); }
.gh-content img { height: auto; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.gh-content pre { background: var(--bone); padding: 18px; overflow: auto; font-size: 15px; }

/* Ghost editor card widths (wide and full-bleed images, galleries, embeds) */
.kg-width-wide { position: relative; width: min(1200px, calc(100vw - 112px)); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-card figcaption { font-size: 13px; color: var(--gray); margin-top: 10px; text-align: center; }
@media (max-width: 800px) {
    .kg-width-wide { width: calc(100vw - 40px); }
}
.post-list { border-top: 2px solid var(--rust); }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-card h3 { font-size: 27px; margin-bottom: 10px; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-card p { font-size: 16px; line-height: 1.65; margin-bottom: 10px; }
.pagination { display: flex; justify-content: space-between; margin-top: 32px; font-size: 14px; font-weight: 700; color: var(--navy); }
.pagination a:hover { text-decoration: underline; }

/* Responsive */
@media (min-width: 1550px) {
    .hero { padding-top: 84px; padding-bottom: 88px; }
}

@media (max-width: 1100px) {
    .container { width: calc(100% - 64px); }
    .header-inner { gap: 20px; }
    .logo-link { width: 230px; }
    .header nav { gap: 23px; }
    .hero { gap: 36px; grid-template-columns: 1fr 1.12fr; padding-top: 54px; padding-bottom: 54px; }
    .hero h1 { font-size: 54px; letter-spacing: -1.5px; }
    .hero-description { font-size: 17px; }
    .hero-actions { gap: 22px; }
    .section { padding-top: 75px; padding-bottom: 75px; }
    .section-heading > p { max-width: 285px; }
    .help-item { padding-right: 22px; }
    .help-item + .help-item { padding-left: 22px; }
    .help-item h3 { font-size: 24px; }
    .approach-inner { gap: 45px; }
    .approach-copy { font-size: 18px; }
    .team { gap: 50px; }
    .team-name { font-size: 21px; }
    .contact-inner > .button { margin-right: 80px; }
}

@media (max-width: 800px) {
    .container { width: calc(100% - 40px); }
    .header-inner { height: 87px; }
    .logo-link { width: 235px; }
    .menu-toggle { display: block; border: 1px solid var(--navy); color: var(--navy); background: transparent; border-radius: 4px; padding: 8px 14px; min-height: 44px; font-size: 14px; font-weight: 700; }
    .header nav { display: none; position: absolute; top: 86px; left: 0; right: 0; padding: 23px 24px; background: #fff; z-index: 5; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; }
    .header nav.is-open { display: flex; }
    .header nav > a { font-size: 16px; }
    .header nav .nav-contact { align-self: flex-start; font-size: 16px; }
    .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; padding-bottom: 42px; }
    .hero h1 { font-size: clamp(41px, 10.7vw, 56px); line-height: 1.08; letter-spacing: -1.1px; max-width: 580px; margin-bottom: 20px; }
    .hero-copy { max-width: 590px; }
    .hero-description { font-size: 17px; max-width: 500px; }
    .hero-actions { gap: 25px; margin-top: 24px; }
    .hero .photo-frame { aspect-ratio: 3 / 2; }
    .section { padding-top: 50px; padding-bottom: 50px; }
    h2 { font-size: 34px; letter-spacing: -.75px; }
    .section-heading { display: block; margin-bottom: 35px; }
    .section-heading > p { max-width: none; font-size: 16px; margin-top: 23px; }
    .help .section-heading { margin-bottom: 28px; }
    .help-grid { grid-template-columns: 1fr; border-top: 0; }
    .help-item, .help-item + .help-item, .help-item:last-child { padding: 27px 0; border-left: 0; border-top: 1px solid var(--line); }
    .help-item:first-child { border-top: 2px solid var(--rust); }
    .help-item:last-child { padding-bottom: 0; }
    .help-item h3 { font-size: 28px; margin-bottom: 14px; }
    .help-item > p { font-size: 17px; margin-bottom: 9px; max-width: 550px; }
    .help-item > .text-link { font-size: 14px; }
    .approach-inner { grid-template-columns: 1fr; gap: 24px; }
    .approach-copy { font-size: 17px; max-width: 540px; }
    .team { grid-template-columns: 1fr; gap: 28px; }
    .team-copy > p:not(.eyebrow) { font-size: 17px; }
    .team-name { font-size: 22px; }
    .team-title { font-size: 14px; }
    .contact-inner { min-height: 285px; display: block; padding-top: 45px; padding-bottom: 45px; }
    .contact-section h2 { font-size: 48px; }
    .contact-inner > .button { margin-top: 27px; margin-right: 0; }
    .contact-chevron { right: -115px; top: 5px; width: 255px; height: 340px; }
    .footer { padding-top: 33px; }
    .footer-top { gap: 25px; padding-bottom: 26px; }
    .footer-top > a { white-space: nowrap; font-size: 11px; }
    .firm-name { font-size: 16px; }
    .footer-top > div > p:last-child { font-size: 12px; }
    .footer-bottom { flex-wrap: wrap; justify-content: flex-start; gap: 11px 25px; font-size: 10px; }
    .dialog-inner { padding: 39px 24px 28px; }
    dialog h2 { font-size: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .page-content h1 { font-size: 40px; letter-spacing: -1px; }
}

@media (max-width: 380px) {
    .logo-link { width: 205px; }
    .hero h1 { font-size: 48px; }
    .hero-actions { gap: 18px; }
    .hero-actions .button { padding: 13px 19px; }
    .footer-top > a { white-space: normal; max-width: 75px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; }
}
