/* Hero spacing and image treatment follow the live NCA home page. */
.home .hero {
    min-height: 0;
    justify-content: flex-start;
    gap: 0;
    padding-block: 101px;
    background-image: linear-gradient(#0b0c1096, #0b0c1096), url('vp2.jpg');
}
.home .hero > h1,
.home .hero > .wp-block-buttons {
    position: static;
    margin: 0;
}
.home .hero > p {
    margin: 32px 0 0;
}
.home .hero > .wp-block-buttons {
    margin-top: 48px;
}
.home .hero .wp-block-button__link {
    margin-top: 0;
}

/* Keep the title and its icon in the same grid row, beneath the photo. */
.home .service-grid > .service-card {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: .75rem;
    padding: 0 0 1.25rem;
}
.home .service-card > :is(figure, ul, .detail) {
    grid-column: 1 / -1;
    margin-inline: 0;
}
.home .service-card > figure { grid-row: 1; overflow: hidden; border-radius: 4px; }
.home .service-card > .service-number { inset: .5rem auto auto .5rem; margin: 0; }
.home .service-card > :is(.service-mark, h3) {
    grid-row: 2;
    align-self: center;
    min-width: 0;
    margin: 1rem 0 .5rem;
}
.home .service-card > h3 { grid-column: 2; line-height: 1.25; overflow-wrap: anywhere; }
.home .service-card > ul { grid-row: 3; }
.home .service-card > .detail { grid-row: 4; }

.home .service-card:nth-child(1) { --service-glyph: "\f239"; } /* Chart area */
.home .service-card:nth-child(2) { --service-glyph: "\f495"; } /* Spreadsheet */
.home .service-card:nth-child(3) { --service-glyph: "\f307"; } /* Team */
.home .strategy .solution-card:nth-child(1) { --service-glyph: "\f334"; } /* Shield */
.home .strategy .solution-card:nth-child(2) { --service-glyph: "\f481"; } /* Clipboard */
.home .strategy .solution-card:nth-child(3) { --service-glyph: "\f12e"; } /* Counsel */
.home .other .solution-card:nth-child(1) { --service-glyph: "\f322"; } /* Portfolio */
.home .other .solution-card:nth-child(2) { --service-glyph: "\f512"; } /* Building */
.home .other .solution-card:nth-child(3) { --service-glyph: "\f101"; } /* Discussion */

.home :is(.service-card > .service-mark, .solution-card > .mark) {
    position: static;
    display: grid;
    place-items: center;
    width: var(--icon-box, 3.5rem);
    height: var(--icon-box, 3.5rem);
    border-radius: 6px;
    background: #c5a05916;
    color: var(--gold);
    font-size: 0;
    line-height: 0;
}
.home .service-card > .service-mark { --icon-box: 2.75rem; grid-column: 1; }
.home :is(.service-card > .service-mark, .solution-card > .mark)::before {
    content: var(--service-glyph) / "";
    font: 400 var(--icon-size, 2rem)/1 dashicons;
}
.home .service-card > .service-mark { --icon-size: 1.5rem; }

.home .solution-grid > .solution-card {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    column-gap: clamp(.75rem, 1.6vw, 1.35rem);
    row-gap: .75rem;
    min-height: 0;
    padding: clamp(1.125rem, 2.2vw, 2rem);
    border: 1px solid #c5a05936;
    border-radius: 6px;
    background: #181715;
}
.home .solution-card > :is(.mark, h3, p, ul) { margin: 0; }
.home .solution-card > .mark { grid-area: 1 / 1; }
.home .solution-card > h3 {
    grid-area: 1 / 2;
    align-self: center;
    color: var(--light);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.home .solution-card > :is(p:not(.mark, .detail), ul) {
    grid-area: 2 / 2;
    color: #e3e0da;
}
.home .solution-card > .detail { grid-area: 3 / 2; margin-top: .25rem; font-weight: 650; }
.home .other .solution-grid > .solution-card {
    padding-inline: 0;
    border: 0;
    border-top: 1px solid #514536;
    border-radius: 0;
    background: transparent;
}
.home .other .solution-card > .mark { background: #c5a0590d; }

@media (min-width: 768px) and (max-width: 1000px) {
    .home .solution-card > :is(p:not(.mark, .detail), ul, .detail) { grid-column: 1 / -1; }
    .home .solution-grid { gap: 1rem; }
}

@media (max-width: 375px) {
    .home .solution-card > :is(p:not(.mark, .detail), ul, .detail) { grid-column: 1 / -1; }
}

.home :is(.about-grid, .contact-grid) {
    width: min(100% - 2 * var(--gutter), 1280px);
    padding-block: clamp(2rem, 4vw, 3.5rem);
}
.home .about-bg { background: var(--ink); }
.home .about-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.home .about-lead {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(1rem, 2.3vw, 2rem);
}
.home .about-grid > *,
.home .about-lead > *,
.home .about-points > *,
.home .contact-grid > * { margin: 0; min-width: 0; }
.home .about-lead img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 65% center;
    border-radius: 5px;
}
.home .about-grid h2,
.home .contact-grid h2 { margin: 0 0 .85rem; line-height: 1.3; }
.home .about-intro p { margin-block: 0; max-width: 55ch; }
.home .about-intro .detail { margin-top: .9rem; font-weight: 650; }
.home .about-points {
    display: grid;
    align-content: center;
    padding: 0;
}
.home .about-point {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .2rem .8rem;
    align-items: center;
    padding-block: .65rem;
}
.home .about-point + .about-point { border-top: 1px solid #36332e; }
.home .about-point > :is(h3, p) { grid-column: 2; margin: 0; }
.home .about-point h3 { font-size: 1.05rem; }
.home .about-point p { color: #dedbd3; line-height: 1.45; }
.home .about-point-idea { --about-symbol: "\f339"; }
.home .about-point-partner { --about-symbol: "\f103"; }
.home .about-point-security { --about-symbol: "\f160"; }
.home .about-point-response { --about-symbol: "\f469"; }
.home .about-point::before,
.home .contact-map::before {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background: #c5a05913;
    color: var(--gold);
    font: 400 1.25rem/1 dashicons;
    content: var(--about-symbol) / "";
}
.home .about-point::before { grid-area: 1 / 1 / span 2; }

.home .contact-bg { border-color: #514536; }
.home .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.05fr);
    align-items: start;
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
}
.home .contact-info { padding: 0; border: 0; }
.home .contact-info p { margin: .7rem 0 0; overflow-wrap: anywhere; }
.home .contact-map {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 13.25rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: #191a20;
    border: 1px solid #413931;
    border-radius: 5px;
}
.home .contact-map::before { margin-bottom: .75rem; content: "\f231" / ""; }
.home .contact-map h2 { margin-bottom: .4rem; }
.home .contact-map p { margin: 0; font-size: .92rem; color: #dedbd3; }
.home .contact-map .contact-map-link { margin-top: .8rem; font-weight: 650; }
.home .contact-form form { margin: 0; }

@media (max-width: 1050px) {
    .home .about-lead { grid-template-columns: minmax(0, 1fr); }
    .home .about-lead img { aspect-ratio: 16 / 9; }
    .home .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home .contact-form {
        grid-column: 1 / -1;
        padding-top: 1.25rem;
        border-top: 1px solid #413931;
    }
}

@media (max-width: 700px) {
    .home :is(.about-grid, .contact-grid) { grid-template-columns: minmax(0, 1fr); }
    .home .about-points { border-top: 1px solid #36332e; }
    .home .contact-map { min-height: 0; }
}
