/* HDSL v11: a blue-mineral, photo-led design system. */
:root {
    --blue: #245A91;
    --blue-deep: #152C40;
    --blue-ink: #152C40;
    --blue-soft: #E5EFF7;
    --blue-mist: #F3F7FA;
    --charcoal: #152C40;
    --slate: #536575;
    --muted: #586A79;
    --line: #CBD6DE;
    --gold: #245A91;
    --gold-soft: #E6F0F8;
    --shadow: 0 18px 42px rgba(17, 44, 64, .09);
    --radius: 3px;
    --wrap: 1240px;
    --reading: 760px;
    --earth: #152C40;
    --earth-light: #244761;
    --clay: #245A91;
    --cream: #F3F7FA;
    --paper: #FFFFFF;
    --sand: #D9E5ED;
}

html { scroll-padding-block: var(--scroll-header-space, 92px) var(--scroll-footer-space, 74px); overflow-x: clip; }
body { background: var(--paper); color: var(--earth); overflow-x: clip; }
h1, h2, h3 { color: var(--earth); letter-spacing: -.045em; text-wrap: balance; }
h1 { line-height: 1.02; }
h2 { line-height: 1.06; }
p, li { overflow-wrap: break-word; }
a { color: #245A91; }
a:hover { color: #173F67; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #152C40; }
.wrap { width: min(100% - 36px, var(--wrap)); }
.section { padding: clamp(72px, 9vw, 132px) 0; }
.kicker, .hero__eyebrow { color: #245A91; font-size: .76rem; letter-spacing: .14em; }
.section-heading { max-width: 850px; margin-bottom: clamp(34px, 5vw, 62px); }
.section-heading h2, .section-title { font-size: clamp(2.5rem, 5.8vw, 5rem); line-height: 1.04; }
.section-deck { font-size: clamp(1.18rem, 2vw, 1.5rem); line-height: 1.45; }

/* Quiet, legible navigation. */
.utility-bar { background: #152C40; border: 0; color: #F3F7FA; }
.utility-bar__inner { min-height: 36px; justify-content: space-between; }
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: none; }
.admin-bar .site-header { top: 46px; }
.site-header__inner { min-height: 72px; }
body.nav-open { overflow-x: clip; overflow-y: visible; }
.home-link { flex: 0 0 auto; }
.home-link__logo { display: block; width: clamp(136px, 40vw, 158px); height: auto; }
.nav-toggle { color: var(--earth); }
.primary-nav { background: var(--paper); }
.primary-nav a { color: var(--earth); border-color: var(--line); }
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--cream); }
.primary-nav__link--ground-truth { margin: 0; border-left-color: var(--clay); background: transparent; }
.primary-nav__link--ground-truth .nav-label small { color: #40576A; font-size: .8rem; line-height: 1.25; }
.header-call { background: var(--earth); color: #fff; box-shadow: none; }
.header-call:hover { background: #244761; color: #fff; }
.header-call span { color: #D9E5ED; }
.mobile-call { background: var(--clay); color: #fff; }
.mobile-call:hover { background: #173F67; color: #fff; }

/* Buttons are large enough for a thumb and remain obvious without color alone. */
.button { min-height: 52px; border-radius: 2px; padding: 14px 23px; }
.button--primary { background: var(--clay); color: #fff; }
.button--primary:hover { background: #173F67; color: #fff; }
.button--secondary { border-color: var(--earth); color: var(--earth); }
.button--secondary:hover { background: var(--cream); color: var(--earth); }
.button--light { color: var(--earth); }
.text-link { color: #245A91; text-decoration: underline; text-underline-offset: .25em; }

/* The same Franklin Mountains photograph anchors the entire first screen. */
.home .hero--focused { padding: 0; background: var(--cream); }
.home .hero--focused::before { display: none; }
.home .hero--focused .hero__grid { gap: 0; }
.home .hero--focused .hero__copy { padding: 56px 0 58px; }
.home .hero-logo { display: none; }
.home .hero__copy .kicker { margin-bottom: 20px; }
.home .hero__copy h1 { max-width: 12ch; margin-bottom: 25px; color: var(--earth); font-size: clamp(3.05rem, 11vw, 5.4rem); line-height: .99; }
.home .hero__lead { max-width: 42ch; margin-bottom: 29px; color: #4E5D6A; font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.48; }
.home .hero-photo { width: 100cqw; margin-left: calc(50% - 50cqw); background: var(--earth); }
.home .hero-photo::after { background: linear-gradient(180deg, transparent 68%, rgba(17, 44, 64, .65)); box-shadow: none; }
.home .hero-photo img { object-position: 48% 50%; }
.home .hero-photo figcaption { background: rgba(17, 44, 64, .9); color: #fff; }

/* The concrete work becomes an editorial sequence rather than a card wall. */
.home .concrete-focus { background: var(--paper); color: var(--earth); }
.home .concrete-focus .kicker { color: #245A91; }
.home .concrete-focus h2 { color: var(--earth); font-size: clamp(2.8rem, 6vw, 5.35rem); }
.home .concrete-focus .section-deck { color: var(--earth); }
.home .concrete-focus__copy > p:not(.kicker) { color: #4E5D6A; }
.home .concrete-focus .button--secondary { border-color: var(--earth); color: var(--earth); }
.home .concrete-focus .button--secondary:hover { background: var(--cream); }
.home .concrete-focus__steps { padding: 28px 25px; background: var(--cream); border: 0; border-top: 4px solid var(--clay); border-radius: 0; box-shadow: none; }
.home .concrete-focus__eyebrow { color: #245A91; }
.home .concrete-focus__steps li { border-color: #CAD7E2; }
.home .concrete-focus__steps li > span { color: #245A91; }
.home .concrete-focus__steps h3 { color: var(--earth); }
.home .concrete-focus__steps li p { color: #4E5D6A; }

.home .services-section { background: #EEF3F7; }
.home .services-section .section-heading { margin-inline: 0; text-align: left; }
.home .services-section .section-heading h2 { color: var(--earth); font-size: clamp(2.7rem, 6vw, 5.2rem); }
.home .services-section .section-heading > p:last-child { margin-inline: 0; color: #4E5D6A; }
.home .service-grid--illustrated { gap: 1px; background: #C8D6E1; border: 1px solid #C8D6E1; }
.home .service-grid--illustrated .service-card { border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
.home .service-grid--illustrated .service-card:hover { transform: none; box-shadow: none; }
.home .service-card__visual { min-height: 0; padding: 0; aspect-ratio: 3 / 2; border: 0; background: #D8E4EC; }
.home .service-card__visual::before, .home .service-card__visual::after { display: none; }
.home .service-card__visual img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.home .service-card__visual > span { display: block; top: auto; left: auto; right: 12px; bottom: 12px; padding: 5px 8px; background: rgba(10, 31, 49, .88); color: #fff; font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; }
.home .service-card__body { padding: 29px 25px 31px; border: 0; }
.home .service-card__body::before { width: 34px; height: 3px; background: var(--clay); }
.home .service-grid--illustrated .service-card h3, .home .service-grid--illustrated .service-card h3 a { color: var(--earth); }
.home .service-grid--illustrated .service-card p { color: #4E5D6A; }
.home .service-grid--illustrated .service-card .text-link { color: #245A91; }

.home .borderland-section { isolation: isolate; background: var(--earth); color: #F3F7FA; }
.home .borderland-section::before, .home .borderland-section::after { content: none; }
.home .borderland-photo { position: absolute; inset: 0; z-index: 0; margin: 0; border: 0; border-radius: 0; background: var(--earth); box-shadow: none; }
.home .borderland-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 29, 44, .88), rgba(10, 29, 44, .75) 52%, rgba(10, 29, 44, .55)); pointer-events: none; }
.home .borderland-photo picture { position: absolute; inset: -48px 0; width: 100%; height: calc(100% + 96px); }
.home .borderland-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 48%; transform: translate3d(0, var(--parallax-offset, 0px), 0); }
.home .borderland-photo figcaption { z-index: 1; right: 18px; bottom: 14px; background: rgba(10, 29, 44, .9); color: #fff; }
.home .borderland-section .wrap { position: relative; z-index: 1; }
.home .borderland-section p { color: #DDEAF3; }
.home .borderland-section .kicker { color: #BFDDF3; }
.home .borderland-section .section-title { max-width: 12ch; color: #fff !important; }
.home .condition-list { margin-top: 0; border: 0; }
.home .condition-list div { border: 0; border-radius: 2px; background: rgba(10, 29, 44, .86); }
.home .condition-list dt { color: #BFDDF3; }
.home .condition-list dd { color: #fff; }

.home .homeowners-section { position: relative; background: var(--paper); }
.home .homeowners-section::after { color: rgba(36, 90, 145, .045); }
.home .homeowner-copy { max-width: 920px; }
.home .homeowner-copy h2 { max-width: 16ch; }
.home .flat-rate { background: #EAF0F5; border: 1px solid #CAD7E2; border-left: 5px solid var(--clay); border-radius: 0; color: var(--earth); box-shadow: none; }
.home .flat-rate strong { color: var(--earth); }
.home .flat-rate p { color: #40576A; }

.home .deliverables-section { background: #EAF0F5; color: var(--earth); }
.home .deliverables-section .section-title, .home .deliverables-section .section-deck, .home .deliverables-section h3 { color: var(--earth) !important; }
.home .deliverables-section .section-heading > p, .home .deliverables-section .section-heading--split > p { color: #4E5D6A; }
.home .deliverable-grid { gap: 1px; background: #C8D6E1; border: 1px solid #C8D6E1; }
.home .deliverable-grid article { border: 0; border-radius: 0; background: var(--paper); }
.home .deliverable-grid article::after { display: none; }
.home .deliverable-grid article > span { color: #245A91; }
.home .deliverable-grid article p { color: #4E5D6A; }

.home .schedule-band { background: var(--earth); }
.home .schedule-band__content { background: var(--earth); }
.home .schedule-band .schedule-options article { border-color: #5A7287 !important; border-radius: 0; background: #203E58 !important; box-shadow: none; }
.home .schedule-band .schedule-options article p, .home .schedule-band .schedule-options article p:last-child, .home .schedule-band .schedule-options article div { color: #F2F7FB !important; }
.home .schedule-icon { border-color: #88B9DD; color: #D9EBF8; background: transparent; }
.home .schedule-band__note { color: #F2F7FB; }
.home .schedule-band__note a { color: #fff; }

/* Keep Ground Truth as a true archive of existing posts. */
.home .ground-truth-feature, .ground-truth-library, .related-section { background: var(--cream); }
.home .ground-truth-feature .section-heading { max-width: 920px; }
.article-card { padding: 28px; border: 1px solid #CAD7E2; border-top: 3px solid var(--cat, #245A91); border-radius: 0; background: var(--paper); box-shadow: none; }
.article-card::after { display: none; }
.article-card:hover { box-shadow: 0 12px 28px rgba(17, 44, 64, .08); }
.article-card h3 a { color: var(--earth); }
.article-card > p { color: #4E5D6A; }
.article-card__meta { border-color: var(--line); }
.article-card__meta a { color: #245A91; }
.cat-field-guides { --cat: #245A91; --cat-soft: #E6F0F8; }
.cat-training { --cat: #375D7A; --cat-soft: #E5F0F7; }
.cat-industry-news { --cat: #586D7D; --cat-soft: #E7EFF5; }
.category-chip { border-radius: 2px; }
.ground-truth-library .library-section { border-color: #CAD7E2; }
.library-section .section-heading { padding-left: 18px; border-left-color: var(--clay); }
.library-section .section-heading h2 { color: var(--earth); }
.library-section .section-heading > p { color: #4E5D6A; }
.filter-chip { border-color: #C8D6E1; box-shadow: none; }
.filter-chip.is-active, .filter-chip[aria-pressed="true"] { border-color: var(--earth); box-shadow: none; }

.home .contact-section, .closing-cta { background: var(--earth); color: #F2F7FB; }
.home .contact-section .section-title, .home .contact-section .section-deck, .closing-cta h2 { color: #fff !important; }
.home .contact-section .contact-copy > p { color: #DCE9F2; }
.home .contact-options a { border-color: #5A7287; background: #203E58; color: #fff; }
.home .contact-options small { color: #BFDDF3; }
.form-card { border: 1px solid #CAD7E2; border-radius: 0; box-shadow: 0 18px 40px rgba(16, 39, 57, .16); }
.form-card::before { background: var(--clay); }
.form-card__intro h2, .form-card__intro h3 { color: var(--earth); }

/* Interior pages share the same material palette and calmer panels. */
.inner-hero { background: var(--earth); border-color: #5A7287; }
.inner-hero::before { opacity: .08; background-image: linear-gradient(#D9E5ED 1px, transparent 1px), linear-gradient(90deg, #D9E5ED 1px, transparent 1px); }
.inner-hero::after { display: none; }
.inner-hero h1, .inner-hero h2 { color: #fff; }
.inner-hero .kicker { color: #BFDDF3; }
.inner-hero__lead, .inner-hero .breadcrumbs, .inner-hero .breadcrumbs a { color: #DCE9F2; }
.inner-hero .button--secondary { border-color: #D9E5ED; color: #fff; }
.inner-hero .button--secondary:hover { background: #244761; }
.ground-truth-hero__visual { border: 1px solid #5A7287; border-radius: 0; background: #244761; box-shadow: none; }
.ground-truth-hero .inner-hero__grid { max-width: var(--wrap); grid-template-columns: minmax(0, 1fr); }
.ground-truth-hero .inner-hero__grid > div:first-child { max-width: 930px; }
.scope-card, .scope-card--method, .source-rule { border: 1px solid #5A7287; border-left: 4px solid #7BAFDA; border-radius: 0; background: #244761; box-shadow: none; }
.scope-card__number, .scope-card--method p { color: #D9EBF8; }
.service-index-card__visual img, .service-hero .scope-card--method img { aspect-ratio: 3 / 2; object-fit: cover; }
.service-index-card__visual span { display: block; top: auto; left: auto; right: 12px; bottom: 12px; border: 0; border-radius: 0; background: rgba(10, 31, 49, .88); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; }
.service-render-note { display: block; margin: -8px 0 18px; color: #D9EBF8; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.service-detail, .contact-page, .article-layout, .legal-section { background: var(--cream); }
.service-detail__grid > section, .service-index-card, .work-list article, .legal-prose { border: 1px solid #CAD7E2; border-radius: 0; background: var(--paper); box-shadow: none; }
.service-detail__grid > section h2, .service-index-card h2, .work-list h2, .work-list h3, .legal-prose h2 { color: var(--earth); }
.service-detail__grid > section p, .work-list p { color: #4E5D6A; }
.deliverable-panel { border-color: #CAD7E2 !important; border-left-color: #245A91 !important; border-radius: 0 !important; background: var(--paper) !important; box-shadow: none; }
.limits-panel { border-color: #CAD7E2 !important; border-left-color: #5A7892 !important; border-radius: 0 !important; background: var(--paper) !important; }
.check-list li::before { border-color: #245A91; }
.service-index-card--featured { border-color: #245A91; box-shadow: none; }
.service-index-card__eyebrow { color: #245A91; }
.concrete-prep { background: #EAF0F5; }
.concrete-prep h2 { color: var(--earth); }
.concrete-prep p { color: #4E5D6A; }
.concrete-prep__note { border-left-color: var(--clay); border-radius: 0; box-shadow: none; }
.narrow-cta, .contact-page__grid > div:first-child { border-radius: 0; background: var(--earth); box-shadow: none; }
.contact-page__grid > div:first-child dt { color: #BFDDF3; }
.contact-page__grid > div:first-child dd { color: #F2F7FB; }
.ground-truth-article .article-hero { border-top-color: var(--cat, #245A91); background: var(--earth); }
.ground-truth-article .article-hero::before { opacity: .07; }
.ground-truth-article .article-dek, .ground-truth-article .breadcrumbs, .ground-truth-article .breadcrumbs a { color: #DCE9F2; }
.ground-truth-article .article-meta dt { color: #BFDDF3; }
.article-toc { border-color: #CAD7E2; box-shadow: none; }
.article-standard, .takeaways, .service-connection { border-radius: 0; box-shadow: none; }
.article-body h2, .service-connection h2 { color: var(--earth); }
.article-body h3 { color: #365976; }
.article-body blockquote { border-left-color: var(--clay); background: var(--cream); color: var(--earth); }
.service-connection { border-color: #CAD7E2; border-left-color: var(--clay); background: var(--cream); }

.site-footer { background: #102739; border-color: #506E84; }
.site-footer p, .site-footer span { color: #DEEAF3; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; }
.footer-disclaimer, .footer-bottom { border-color: #506E84; }

@media (min-width: 720px) {
    .wrap { width: min(100% - 64px, var(--wrap)); }
    .home .concrete-focus__steps { padding: 38px; }
}

@media (min-width: 980px) {
    .site-header__inner { min-height: 82px; }
    .home-link__logo { width: 172px; }
    .primary-nav a { min-height: 50px; padding-inline: 12px; font-size: .86rem; }
    .primary-nav .nav-label { white-space: nowrap; }
    .primary-nav__link--ground-truth { box-shadow: none; }
    .home .hero--focused { background: var(--earth); }
    .home .hero--focused .hero__grid { min-height: min(760px, 78vh); }
    .home .hero--focused .hero__copy { width: min(650px, 60%); margin: 0; padding: 55px 0; align-self: center; background: transparent; border: 0; box-shadow: none; }
    .home .hero--focused .hero__copy::after { display: none; }
    .home .hero__copy .kicker { color: #D9EBF8; }
    .home .hero__copy h1 { max-width: 11ch; color: #fff; font-size: clamp(4.2rem, 6.1vw, 6.5rem); text-shadow: 0 3px 18px rgba(0,0,0,.22); }
    .home .hero__lead { max-width: 40ch; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
    .home .hero__copy .button--secondary { color: #fff; border-color: #fff; }
    .home .hero__copy .button--secondary:hover { color: var(--earth); background: #fff; }
    .home .hero-photo { min-height: min(760px, 78vh); }
    .home .hero-photo::after { background: linear-gradient(90deg, rgba(10, 31, 49, .88) 0%, rgba(10, 31, 49, .53) 42%, rgba(10, 31, 49, .1) 75%), linear-gradient(0deg, rgba(10, 31, 49, .38), transparent 30%); }
    .home .hero-photo img { object-position: 50% 52%; }
    .home .concrete-focus__grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr); }
    .home .service-grid--illustrated { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home .deliverable-grid article { padding: 38px 28px; border: 0; }
}

@media (min-width: 980px) and (max-width: 1119px) {
    .header-actions { display: none; }
}

@media (max-width: 979px) {
    .primary-nav, .admin-bar .primary-nav { position: absolute; inset: 100% 0 auto; max-height: var(--nav-available-height, calc(100dvh - 160px)); padding: 16px 20px 24px; overscroll-behavior-y: contain; box-shadow: 0 18px 30px rgba(17, 44, 64, .18); }
    .mobile-call { padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px)); }
    .home .hero-photo { min-height: 280px; }
    .home .hero__copy .button-row { display: grid; grid-template-columns: 1fr; }
    .home .hero__copy .button { width: 100%; }
    .home .borderland-photo::after { background: rgba(10, 29, 44, .78); }
}

/* WordPress fixes its toolbar above 600px, then scrolls it away on phones. */
@media (min-width: 783px) {
    .admin-bar .site-header { top: 32px; }
}

@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .article-card, .service-card { transition: none !important; }
    .home .borderland-photo img { transform: none !important; }
}
