/* Home only: technical quotation spread and image-led service story. */
.ap-home .ap-estimate {
    background: #17212d;
    color: #f5f7fb;
    padding-block: clamp(36px, 3.5vw, 56px);
}
.ap-home .ap-estimate-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas: "heading drawing" "body drawing";
    grid-template-rows: auto 1fr;
    gap: 20px clamp(28px, 4vw, 56px);
    align-items: start;
}
.ap-home .ap-estimate-heading { grid-area: heading; margin: 0; padding-top: 0; }
.ap-home .ap-estimate .ap-eyebrow { color: #b1c4e4; }
.ap-home .ap-estimate h2, .ap-home .ap-service-story h2 {
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 16px 0 0;
}
.ap-home .ap-estimate h2 em { font-style: normal; color: #a6bff2; }
.ap-home .ap-estimate-body { grid-area: body; min-width: 0; }
.ap-home .ap-estimate-request > p { color: #c4cfde; font-size: 16px; line-height: 1.8; margin: 0; }
.ap-home .ap-estimate-request .ap-inline-actions { margin-top: 22px; gap: 16px 24px; }
.ap-home .ap-estimate-request .ap-button { background: #a9c0f3; color: #152235; border-color: #a9c0f3; }
.ap-home .ap-estimate-request .ap-button:hover { background: #c4d6ff; border-color: #c4d6ff; }
.ap-home .ap-estimate-request .ap-text-link { color: #edf2fb; border-color: #7e8da2; }
.ap-home .ap-estimate-request .ap-text-link:hover { color: #bed0ff; border-color: #bed0ff; }
.ap-home .ap-estimate-request .ap-estimate-note { font-size: 12px; margin-top: 16px; color: #a5b3c7; }
.ap-home .ap-estimate-drawing {
    grid-area: drawing;
    min-width: 0;
    background-image: linear-gradient(#afc5e007 1px, transparent 1px), linear-gradient(90deg, #afc5e007 1px, transparent 1px);
    background-size: 32px 32px;
    border-top: 1px solid #3a485a;
    border-bottom: 1px solid #3a485a;
}
.ap-home .ap-drawing-label, .ap-home .ap-drawing-caption {
    display: flex; justify-content: space-between; gap: 16px;
    font-size: 10px; letter-spacing: .08em; color: #a5b3c7; padding-block: 13px;
}
.ap-home .ap-drawing-label { text-transform: uppercase; }
.ap-home .ap-estimate-drawing svg { display: block; width: 100%; height: auto; max-height: 280px; }
.ap-home .ap-estimate-brief { border-top: 1px solid #3a485a; margin-top: 28px; padding-top: 20px; }
.ap-home .ap-estimate-brief > .ap-eyebrow { margin: 0 0 18px; font-size: 10px; }
.ap-home .ap-estimate-brief ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.ap-home .ap-estimate-brief li { display: flex; gap: 18px; padding-right: 24px; }
.ap-home .ap-estimate-brief li + li { border-left: 1px solid #3a485a; padding-left: 28px; }
.ap-home .ap-estimate-brief li > span { color: #9bb7eb; font-size: 12px; padding-top: 4px; }
.ap-home .ap-estimate-brief strong { display: block; font-size: 16px; font-weight: 600; }
.ap-home .ap-estimate-brief li p { color: #b3c0d2; font-size: 13px; line-height: 1.6; margin: 7px 0 0; }
/* Preserve the real calculator when data exists; no public forced-empty switch. */
.ap-home .ap-estimate-layout:has(.ap-calc) { grid-template-areas: "heading drawing" "body body"; }
.ap-home .ap-estimate-layout:has(.ap-calc) .ap-estimate-drawing svg { max-height: 230px; }
.ap-home .ap-estimate .ap-calc { padding: clamp(20px, 3vw, 40px); background: #fff; color: #1c2733; }
.ap-home .ap-estimate-body > .ap-hint { color: #c4cfde; }
.ap-home .ap-estimate-body > .ap-hint a { color: #bed0ff; }
.ap-home .ap-estimate:has(.ap-calc) .ap-estimate-brief { display: none; }
.ap-home .ap-service-story { background: #f6f7f5; padding-block: clamp(44px, 5.5vw, 88px); }
.ap-home .ap-service-story .ap-section-heading { align-items: flex-end; margin-bottom: 36px; }
.ap-home .ap-service-story h2 em { color: #586c8d; font-style: normal; }
.ap-home .ap-service-story .ap-section-heading > p { margin: 0 0 4px; max-width: 310px; font-size: 16px; line-height: 1.75; }
.ap-home .ap-service-layout { display: grid; grid-template-columns: 1fr 1.16fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.ap-home .ap-service-image { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.ap-home .ap-service-image > div { overflow: hidden; background: #263541; flex: 1; min-height: 360px; position: relative; }
.ap-home .ap-service-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.ap-home .ap-service-image figcaption { display: flex; gap: 20px; justify-content: space-between; padding-top: 12px; color: #53616b; font-size: 11px; }
.ap-home .ap-service-image figcaption > span:first-child { letter-spacing: .06em; text-transform: uppercase; }
.ap-home .ap-service-links { display: flex; flex-direction: column; }
.ap-home .ap-service-links > a { display: grid; grid-template-columns: 24px 1fr 44px; gap: 20px; align-items: start; padding: 30px 0; border-top: 1px solid #cbd2d9; color: #1c2733; flex: 1; text-decoration: none; }
.ap-home .ap-service-links > a:last-child { border-bottom: 1px solid #cbd2d9; }
.ap-home .ap-service-index { color: #586c8d; font-size: 12px; padding-top: 6px; }
.ap-home .ap-service-links h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 12px; }
.ap-home .ap-service-links p { font-size: 14px; line-height: 1.75; color: #53616b; margin: 0; max-width: 370px; }
.ap-home .ap-service-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b8c4d4; border-radius: 50%; color: #485f88; font-size: 22px; transition: color 200ms, background 200ms, border-color 200ms, transform 200ms; }
.ap-home .ap-service-links > a:hover h3, .ap-home .ap-service-links > a:focus-visible h3 { color: #465f9e; }
.ap-home .ap-service-links > a:hover .ap-service-arrow, .ap-home .ap-service-links > a:focus-visible .ap-service-arrow { color: #fff; background: #536bad; border-color: #536bad; transform: translate(2px, -2px); }
.ap-home .ap-service-links > a:focus-visible { outline: 2px solid #536bad; outline-offset: 5px; }
.ap-home .ap-estimate a:focus-visible { outline: 2px solid #bed0ff; outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
    .ap-home .ap-service-image:hover img { transform: scale(1.035); }
}
@media (max-width: 1100px) {
    .ap-home .ap-estimate-break { display: none; }
    .ap-home .ap-estimate-heading { padding-top: 0; }
    .ap-home .ap-estimate-request .ap-inline-actions { align-items: flex-start; }
    .ap-home .ap-service-layout { gap: 32px; }
    .ap-home .ap-service-links > a { gap: 14px; padding-block: 25px; }
}
@media (max-width: 800px) {
    .ap-home .ap-estimate-layout, .ap-home .ap-estimate-layout:has(.ap-calc) { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "heading" "body" "drawing"; gap: 24px; }
    .ap-home .ap-estimate-drawing { max-width: 540px; width: 100%; justify-self: center; }
    .ap-home .ap-estimate-drawing svg { max-height: 250px; }
    .ap-home .ap-estimate-brief { margin-top: 24px; }
    .ap-home .ap-estimate-brief li { gap: 12px; padding-right: 16px; }
    .ap-home .ap-estimate-brief li + li { padding-left: 16px; }
    .ap-home .ap-service-layout { grid-template-columns: 1fr; gap: 30px; }
    .ap-home .ap-service-image > div { min-height: 0; aspect-ratio: 1.65; flex: auto; }
    .ap-home .ap-service-links p { max-width: 490px; }
}
@media (max-width: 520px) {
    .ap-home .ap-estimate h2, .ap-home .ap-service-story h2 { font-size: clamp(28px, 7.5vw, 38px); }
    .ap-home .ap-estimate-request > p { font-size: 15px; line-height: 1.75; }
    .ap-home .ap-estimate-request .ap-inline-actions { gap: 14px; margin-top: 24px; }
    .ap-home .ap-estimate-request .ap-inline-actions a { justify-content: space-between; width: 100%; }
    .ap-home .ap-estimate-brief ol { grid-template-columns: 1fr; gap: 18px; }
    .ap-home .ap-estimate-brief li + li { border-left: 0; padding-left: 0; }
    .ap-home .ap-estimate-brief li { padding-right: 0; gap: 20px; }
    .ap-home .ap-estimate-brief li p { margin-top: 3px; }
    .ap-home .ap-drawing-label { font-size: 9px; letter-spacing: .04em; }
    .ap-home .ap-drawing-caption { font-size: 9px; letter-spacing: 0; }
    .ap-home .ap-service-story .ap-section-heading { display: block; margin-bottom: 26px; }
    .ap-home .ap-service-story .ap-section-heading > p { margin-top: 20px; font-size: 15px; }
    .ap-home .ap-service-story .ap-section-heading > p br { display: none; }
    .ap-home .ap-service-image > div { aspect-ratio: 1.2; }
    .ap-home .ap-service-image figcaption { gap: 12px; font-size: 10px; }
    .ap-home .ap-service-links > a { grid-template-columns: 20px 1fr 36px; gap: 10px; padding-block: 24px; }
    .ap-home .ap-service-arrow { width: 36px; height: 36px; font-size: 19px; }
    .ap-home .ap-service-links h3 { font-size: 21px; margin-bottom: 10px; }
    .ap-home .ap-service-links p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-home .ap-service-image img, .ap-home .ap-service-arrow { transition: none; transform: none !important; }
}
