/* Link affordances shared by the architecture pages and homepage expertise blocks. */
.expertise-link-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgb(15 23 42 / 6%);
    text-decoration: none;
}
.expertise-link-card h3 { margin-bottom: 0; color: #075985; }
.expertise-link-card > p { line-height: 1.75; color: #475569; }
.expertise-link-list { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
/* Keep button styling explicit, including inside existing service/contact cards. */
.expertise-button,
.home-service-card a.expertise-button,
.home-contact-card a.expertise-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid #0369a1;
    border-radius: .5rem;
    background: #0369a1;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 12%);
}
.expertise-button > span { color: inherit; }
.expertise-button:hover,
.home-service-card a.expertise-button:hover,
.home-contact-card a.expertise-button:hover {
    background: #075985;
    border-color: #075985;
    color: #fff;
    text-decoration: none;
}
.expertise-button:active { background: #0c4a6e; }
.expertise-button:focus-visible { outline: 3px solid #0369a1; outline-offset: 4px; }
.expertise-card-button { margin-top: auto; }
.expertise-nav-link { display: flex; justify-content: space-between; width: 100%; }
.expertise-action-arrow { margin-left: .75rem; color: inherit; }
/* Informational cards stay still; interactive cards have their own feedback above. */
.expertise-page .sa-card { transform: none; transition: none; }
.expertise-page .sa-card:hover { border-color: #e2e8f0; }
@media (min-width: 640px) {
    .expertise-page .expertise-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .expertise-link-card { transition: none; }
}

/* Every navigation row shares the same alignment and hit area. */
.main-menu-list { display: flex; flex-direction: column; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-menu-item {
    display: block;
    min-height: 44px;
    padding: .75rem 1rem;
    border-left: 3px solid transparent;
    color: #334155;
    line-height: 1.5;
    text-decoration: none;
}
.main-menu-item:hover { background: #f1f5f9; color: #075985; }
.main-menu-item[aria-current="page"] {
    border-left-color: #0369a1;
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
}
.main-menu-item:focus-visible { outline: 3px solid #0369a1; outline-offset: -3px; }
.main-menu-item--unavailable { color: #64748b; font-style: italic; }
.expertise-connections a { color: #0369a1; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.expertise-connections a:hover { color: #0c4a6e; text-decoration-thickness: 2px; }
.expertise-connections a:focus-visible { outline: 3px solid #0369a1; outline-offset: 3px; }

.page-breadcrumbs { background: #f8fafc; padding: .375rem 0; }
.page-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem 0; list-style: none; margin: 0; padding: 0; font-size: .75rem; line-height: 1.5; }
.page-breadcrumbs li { display: inline-flex; align-items: baseline; min-width: 0; }
.page-breadcrumbs a { display: inline-block; padding: .5rem 0; color: #64748b; font-weight: 400; text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: .2em; }
.page-breadcrumbs a:hover { color: #0369a1; text-decoration-color: currentColor; }
.page-breadcrumbs a:focus-visible { outline: 2px solid #0369a1; outline-offset: 3px; border-radius: 2px; }
.page-breadcrumbs__separator { align-self: center; margin: 0 .625rem; color: #94a3b8; font-size: .5rem; }
.page-breadcrumbs__separator i { color: inherit; }
.page-breadcrumbs [aria-current="page"] { color: #475569; font-weight: 400; overflow-wrap: anywhere; }

.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-actions .expertise-button { min-height: 48px; }
.contact-actions .contact-actions__call { background: white; color: #075985; border-color: #0369a1; }
.contact-actions .contact-actions__call:hover { background: #e0f2fe; color: #075985; }
.contact-actions i, .contact-dialog button i { color: inherit; }
.contact-dialog { width: calc(100% - 2rem); max-width: 36rem; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; color: #334155; box-shadow: 0 24px 64px rgb(15 23 42 / 25%); overflow-y: auto; }
.contact-dialog::backdrop { background: rgb(15 23 42 / 60%); }
.contact-dialog__content { padding: 1.5rem; }
.contact-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.contact-dialog__header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.contact-dialog__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: .5rem; color: #475569; background: #f1f5f9; cursor: pointer; }
.contact-dialog__close:hover { background: #e2e8f0; }
.contact-dialog__close:focus-visible { outline: 3px solid #0369a1; outline-offset: 2px; }
.contact-dialog__address { margin: 1rem 0 .5rem; overflow-wrap: anywhere; }
.contact-dialog__address a { color: #0369a1; text-decoration: underline; text-underline-offset: .2em; }
.contact-dialog p { line-height: 1.6; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { display: block; margin-bottom: .375rem; color: #334155; font-weight: 600; }
.contact-form input, .contact-form textarea { display: block; width: 100%; padding: .75rem; border: 1px solid #94a3b8; border-radius: .5rem; background: #fff; color: #0f172a; font-size: 1rem; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #0369a1; outline-offset: 2px; }
.contact-form [aria-invalid="true"] { border-color: #b91c1c; }
.contact-form .contact-form__error { margin-top: .25rem; color: #b91c1c; font-size: .875rem; }
.contact-form .contact-form__count { margin-top: .375rem; color: #64748b; font-size: .875rem; text-align: right; }
.contact-form__count span { color: inherit; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-dialog__success { margin: 1.5rem 0; padding: 1rem; border: 1px solid #86efac; border-radius: .75rem; background: #f0fdf4; }
.contact-dialog__success h3 { color: #166534; font-weight: 700; }
@media (max-width: 639px) {
    .contact-actions { flex-direction: column; }
    .contact-actions .expertise-button { width: 100%; }
    .contact-dialog__content { padding: 1.25rem; }
}
